Skip to content
This repository was archived by the owner on Mar 13, 2023. It is now read-only.

Refactor Staking#978

Merged
aurexav merged 5 commits intomasterfrom
xavier-staking
Dec 7, 2021
Merged

Refactor Staking#978
aurexav merged 5 commits intomasterfrom
xavier-staking

Conversation

@aurexav
Copy link
Copy Markdown
Member

@aurexav aurexav commented Dec 6, 2021

Close #976.

I'll rebase this branch after #977 get merged.

@aurexav aurexav marked this pull request as ready for review December 6, 2021 14:27
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 7, 2021

Commit 66bcc4e

Pangolin

Check Runtime Version

Check Storage Prefix

Pallet Ethereum:
+ 	Item: Storage { name: "CurrentBlock", type: Plain("EthereumBlockV0") }
- 	Item: Storage { name: "CurrentBlock", type: Plain("ethereum::Block") }
+ 	Item: Storage { name: "CurrentReceipts", type: Plain("Vec<EthereumReceipt>") }
- 	Item: Storage { name: "CurrentReceipts", type: Plain("Vec<ethereum::Receipt>") }
+ 	Item: Storage { name: "Pending", type: Plain("Vec<(TransactionV0, TransactionStatus, EthereumReceipt)>") }
- 	Item: Storage { name: "Pending", type: Plain("Vec<(ethereum::Transaction, TransactionStatus, ethereum::Receipt)>") }

Pallet Identity:
+ 	Item: Storage { name: "IdentityOf", type: Map { hasher: Twox64Concat, key: "T::AccountId", value: "Registration<BalanceOf<T>, T::MaxRegistrars, T::MaxAdditionalFields>", unused: false } }
- 	Item: Storage { name: "IdentityOf", type: Map { hasher: Twox64Concat, key: "T::AccountId", value: "Registration<BalanceOf<T>>", unused: false } }
+ 	Item: Storage { name: "Registrars", type: Plain("BoundedVec<Option<RegistrarInfo<BalanceOf<T>, T::AccountId>>, T\n::MaxRegistrars>") }
- 	Item: Storage { name: "Registrars", type: Plain("Vec<Option<RegistrarInfo<BalanceOf<T>, T::AccountId>>>") }
+ 	Item: Storage { name: "SubsOf", type: Map { hasher: Twox64Concat, key: "T::AccountId", value: "(BalanceOf<T>, BoundedVec<T::AccountId, T::MaxSubAccounts>)", unused: false } }
- 	Item: Storage { name: "SubsOf", type: Map { hasher: Twox64Concat, key: "T::AccountId", value: "(BalanceOf<T>, Vec<T::AccountId>)", unused: false } }

- Pallet: "Instance2Treasury"

+ Pallet: "KtonTreasury"

Pallet Proxy:
+ 	Item: Storage { name: "Announcements", type: Map { hasher: Twox64Concat, key: "T::AccountId", value: "(BoundedVec<Announcement<T::AccountId, CallHashOf<T>, T::\n BlockNumber>, T::MaxPending>, BalanceOf<T>,)", unused: false } }
- 	Item: Storage { name: "Announcements", type: Map { hasher: Twox64Concat, key: "T::AccountId", value: "(BoundedVec<Announcement<T::AccountId, CallHashOf<T>, T::\n BlockNumber>, T::MaxPending,>, BalanceOf<T>,)", unused: false } }
+ 	Item: Storage { name: "Proxies", type: Map { hasher: Twox64Concat, key: "T::AccountId", value: "(BoundedVec<ProxyDefinition<T::AccountId, T::ProxyType, T::\n BlockNumber>, T::MaxProxies>, BalanceOf<T>,)", unused: false } }
- 	Item: Storage { name: "Proxies", type: Map { hasher: Twox64Concat, key: "T::AccountId", value: "(BoundedVec<ProxyDefinition<T::AccountId, T::ProxyType, T::\n BlockNumber>, T::MaxProxies,>, BalanceOf<T>)", unused: false } }

Pallet Staking:
+ 	Item: Storage { name: "ChillThreshold", type: Plain("Percent") }
+ 	Item: Storage { name: "CounterForNominators", type: Plain("u32") }
+ 	Item: Storage { name: "CounterForValidators", type: Plain("u32") }
+ 	Item: Storage { name: "MaxNominatorsCount", type: Plain("u32") }
+ 	Item: Storage { name: "MaxValidatorsCount", type: Plain("u32") }
+ 	Item: Storage { name: "MinNominatorBond", type: Plain("RingBalance<T>") }
+ 	Item: Storage { name: "MinValidatorBond", type: Plain("RingBalance<T>") }​

Pangoro

Check Runtime Version

Check Storage Prefix

Pallet Staking:
+ 	Item: Storage { name: "ChillThreshold", type: Plain("Percent") }
+ 	Item: Storage { name: "CounterForNominators", type: Plain("u32") }
+ 	Item: Storage { name: "CounterForValidators", type: Plain("u32") }
+ 	Item: Storage { name: "MaxNominatorsCount", type: Plain("u32") }
+ 	Item: Storage { name: "MaxValidatorsCount", type: Plain("u32") }
+ 	Item: Storage { name: "MinNominatorBond", type: Plain("RingBalance<T>") }
+ 	Item: Storage { name: "MinValidatorBond", type: Plain("RingBalance<T>") }​

@aurexav aurexav merged commit 1808ded into master Dec 7, 2021
@aurexav aurexav deleted the xavier-staking branch December 7, 2021 15:43
@aurexav
Copy link
Copy Markdown
Member Author

aurexav commented Dec 7, 2021

@AsceticBear @hackfisher

This basically just some files structure refactor. So I merge this directly.

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.

Refactor Staking

1 participant