Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

Add all TokenFactory, Staking and Oracle Proto#79

Merged
BrandonWeng merged 9 commits intomainfrom
bweng-tx-validation-me
Oct 29, 2022
Merged

Add all TokenFactory, Staking and Oracle Proto#79
BrandonWeng merged 9 commits intomainfrom
bweng-tx-validation-me

Conversation

@BrandonWeng
Copy link
Contributor

@BrandonWeng BrandonWeng commented Oct 28, 2022

Describe your changes and provide context

Adding child leaves for all the token factory, oracle and staking.

Found it tedious going back and forth updating the keys for each

sei-protocol/sei-chain#350

Testing performed to validate your change

Proto Files

@BrandonWeng BrandonWeng changed the title Add Token Factory Proto Add all TokenFactory, Staking and Oracle Proto Oct 28, 2022
KV_TOKENFACTORY_METADATA = 22; // child of KV_TOKENFACTORY
KV_TOKENFACTORY_ADMIN = 23; // child of KV_TOKENFACTORY
KV_TOKENFACTORY_CREATOR = 24; // child of KV_TOKENFACTORY
KV_ORACLE_EXCHANGE_RATE = 25; // child of KV_ORACLE
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to do anything to the existing oracle ones (do they conflict in any way)? It looks fine, but not sure if any changes we made affect them

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They should be fine, I tried to make sure that each prefix key has their own child, so at least it should be 1-1

KV_STAKING_REDELEGATION_QUEUE = 36; // child of KV_STAKING
KV_STAKING_VALIDATOR_QUEUE = 37; // child of KV_STAKING
KV_STAKING_HISTORICAL_INFO = 38; // child of KV_STAKING
KV_STAKING_UNBOUNDING = 39; // child of KV_STAKING
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: typo - should be UNBONDING

KV_STAKING_VALIDATION_POWER = 28; // child of KV_STAKING
KV_STAKING_TOTAL_POWER = 29; // child of KV_STAKING
KV_STAKING_VALIDATORS_CON_ADDR = 30; // child of KV_STAKING
KV_STAKING_UNBOUNDING_DELEGATION = 31; // child of KV_STAKING
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: type - should be UNBONDING (same for next line)

@BrandonWeng BrandonWeng merged commit 02063f0 into main Oct 29, 2022
@BrandonWeng BrandonWeng deleted the bweng-tx-validation-me branch October 29, 2022 13:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants