Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pallet_staking support #29

Merged
merged 87 commits into from
Jul 17, 2024
Merged

Add pallet_staking support #29

merged 87 commits into from
Jul 17, 2024

Conversation

WyzaXX
Copy link
Collaborator

@WyzaXX WyzaXX commented Jul 15, 2024

Implement pallet_staking calls and events which includes:
Events:
Staking.Reward
Staking.Rewarded
Staking.Bonded
Staking.Unbonded
Staking.Withdrawn
Staking.Slash
Staking.Slashed

Calls:
Staking.bond
Staking.bond_extra
Staking.rebond
Staking.unbond
Staking.set_payee
Staking.set_controller

Implement stakers entity which contains data for a given staker with relevant information for it.

Add full support for polkadot and kusama

arrusev and others added 30 commits June 7, 2024 17:11
Signed-off-by: Anton Rusev <anton.rusev@limechain.tech>
…e into corresponding files, add kusama main.ts file, implement balances.transfer, identity_setIdentity pallets.
Remove chainApiConfig.
Implement dynamic loading of a chain from its config file.
Implement decoders for each pallet event and call in each chain.
Delete unused index.ts files
Rename api folder to decoders in each chain
Clean up code.
moved code from chain.ts to main.ts

moved chain gateway to be initialized in createIndexer, NOT in each chain

moved type-bundles polkadex and zeitgeist.json into their corresponding chainFolders

deleted unnecessary calls folder in each chain (balances transfer calls code) as its unused

updated commands.json

updated folder structure of each chain

updated templates folder

added README.md
Signed-off-by: Anton Rusev <anton.rusev@limechain.tech>
Updated each chain main.ts file to match current design

Removed unused calls from each chain metadata.json

Re-ran sqd typegen so the types are up to date with metadata.json

Cleanup code
Signed-off-by: Anton Rusev <anton.rusev@limechain.tech>
Signed-off-by: Anton Rusev <anton.rusev@limechain.tech>
Rename corresponding ones to match chainName
Signed-off-by: Anton Rusev <anton.rusev@limechain.tech>
Signed-off-by: Anton Rusev <anton.rusev@limechain.tech>
arrusev and others added 11 commits July 10, 2024 10:58
Signed-off-by: Anton Rusev <anton.rusev@limechain.tech>
Signed-off-by: Anton Rusev <anton.rusev@limechain.tech>
Signed-off-by: Anton Rusev <anton.rusev@limechain.tech>
Signed-off-by: Anton Rusev <anton.rusev@limechain.tech>
Signed-off-by: Anton Rusev <anton.rusev@limechain.tech>
Signed-off-by: Anton Rusev <anton.rusev@limechain.tech>
…to staker entity

Signed-off-by: Anton Rusev <anton.rusev@limechain.tech>
@WyzaXX WyzaXX changed the title Add pallet_staking pallet Add pallet_staking support Jul 15, 2024
@nistanimirov nistanimirov linked an issue Jul 16, 2024 that may be closed by this pull request
4 tasks
@WyzaXX WyzaXX merged commit fad6fa8 into main Jul 17, 2024
2 checks passed
@WyzaXX WyzaXX deleted the feat/pallet_staking branch July 29, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Staking pallet indexing
5 participants