-
Notifications
You must be signed in to change notification settings - Fork 281
Staking support #99
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
Merged
Staking support #99
Changes from 1 commit
Commits
Show all changes
110 commits
Select commit
Hold shift + click to select a range
6bdf5e8
Initial Staking API
Demi-Marie 10667e3
Merge branch 'master' of github.com:paritytech/substrate-subxt
Demi-Marie d4a085a
Add more staking types
Demi-Marie c08e22a
Reformat
Demi-Marie 93c347c
Remove dead code
Demi-Marie fef1260
Fix missing documentation
Demi-Marie 3d6e2ee
Reformat
Demi-Marie c0b1904
Merge branch 'master' into staking
Demi-Marie 8721237
Merge branch 'master' into staking
Demi-Marie a28fb20
Staking: use proc macros
Demi-Marie cfabfe8
Add partial session support
Demi-Marie ff967e9
Reformat
Demi-Marie 716dd13
Try to implement nomination
Demi-Marie 88ac3cb
Use the #[module] macro
Demi-Marie 122260f
Explain undefined method diagnostics
Demi-Marie ffbffd4
Use ‘#[module]’ and implement session for Kusama
Demi-Marie 1b4dc07
Don’t impl ‘Staking’ for all ‘T: System’
Demi-Marie ebfdc17
Add staking payout support
Demi-Marie aaf190e
Fix compilation errors and remove useless lifetimes
Demi-Marie 5ff1b17
Merge branch 'master' into staking
Demi-Marie 58da217
Merge branch 'master' into staking
Demi-Marie ab9612b
Respond to code review
Demi-Marie 193104c
Make signing fallable and asynchronous
Demi-Marie 7868f2c
Merge branch 'async-signer' into staking
Demi-Marie c4942c4
Reformat
Demi-Marie c6ade8b
Refactor as suggested by Andrew Jones (@ascjones).
Demi-Marie 36b124d
Reformat
Demi-Marie bc19991
Refactor as suggested by Andrew Jones (@ascjones).
Demi-Marie 9fd2949
Merge branch 'async-signer' into staking
Demi-Marie e3e30cf
Trait cleanups
Demi-Marie ba4f90c
Merge branch 'master' into staking
Demi-Marie 06aa7e2
Make the `Signer` impl require Send + Sync
Demi-Marie 49b3b1e
Use the correct key for staking maps
Demi-Marie 3314ea1
Implement set_payee call
Demi-Marie 57e2390
Switch to associated types for Staking
Demi-Marie 067c6f9
Implement `set_keys`
Demi-Marie 83c6c61
Remove impl of Signer for Box<dyn Signer + Send + Sync>
Demi-Marie 5bdeee4
Merge branch 'master' into staking
Demi-Marie 7587469
Merge branch 'master' into staking
Demi-Marie 06bc4ab
Fix Polkadot and Kusama ‘SessionKey’ structs
Demi-Marie 6ccfc9c
Include a copy of `ValidatorId`
Demi-Marie d4d7b1d
Merge branch 'master' into staking
Demi-Marie c63b74c
Fix syntax error in Cargo.toml
Demi-Marie 4d8ccab
Fix compile errors
Demi-Marie 90e3b9b
Add Debug impls
Demi-Marie 2bea59f
Fix return type of `BondedStore`
Demi-Marie a95fd8a
Use some upstream type definitions
Demi-Marie f15c5f6
Merge branch 'master' into staking
Demi-Marie d3df9ea
Bump deps and fix build
Demi-Marie ff8e37f
Remove last reference to Kusama feature
Demi-Marie fe20eb5
Merge remote-tracking branch 'origin/master' into staking
Demi-Marie e80ddd4
Merge branch 'master' into staking
Demi-Marie 94ce5ce
Merge branch 'master' into staking
Demi-Marie ae676c9
Merge branch 'master' into staking
DemiMarie e829a46
Merge branch 'master' into staking
DemiMarie 6bf960f
Fix compilation errors
DemiMarie 528b218
Implement the `concat` in `twox_64_concat`
DemiMarie 7bad6c6
Merge branch 'master' into staking
DemiMarie da36675
Expose properties and per-era preferences
DemiMarie d5b1138
Era rewards point support
DemiMarie 28533f6
Expose clipped exposure
DemiMarie c330e68
Era reward points support
DemiMarie 59decaf
Make `PayoutStakersCall` public
DemiMarie 93fafcd
Merge remote-tracking branch 'origin/master' into staking
DemiMarie 8bcde31
Merge branch 'master' into staking
DemiMarie b03b28b
Add in all default features for debugging
DemiMarie 2744127
Chill support and update to latest Substrate
DemiMarie 3efe16f
If property fetch fails, use dummy values
DemiMarie dd15f22
Merge branch 'master' into staking
DemiMarie 773d43e
Merge branch 'master' into staking
dvdplm d3865a6
Fix tests
DemiMarie 0084f87
Fix header
DemiMarie 33f1710
Remove some code Ledgeracio does not need
DemiMarie 9f34f76
More deletions
DemiMarie 1df5a64
Remove more code not needed for Ledgeracio
DemiMarie c622641
Remove a pointless change in Cargo.toml
DemiMarie b253a7a
Remove more junk
DemiMarie 1394bb9
Merge branch 'staking' of github.com:paritytech/substrate-subxt into …
dvdplm 9a86802
Revert contracts put_code test to pure code (not using the macro)
ascjones 0e7bc2d
Test contract instantiate
ascjones 92bcd26
Fmt
ascjones 95c8900
Merge remote-tracking branch 'origin/aj-contract-test' into staking
DemiMarie b3687af
Merge branch 'staking' of github.com:paritytech/substrate-subxt into …
dvdplm 3020f32
Merge branch 'master' into staking
DemiMarie 303c5f4
WIP
dvdplm 2e74c1e
Merge branch 'master' into dp-testing-stasking-playground
DemiMarie f0a5f61
Add some more submission tests
DemiMarie e0b41af
Merge branch 'dp-testing-stasking-playground' into staking
DemiMarie 0516987
Reformat
DemiMarie dffbba6
More tests
DemiMarie 0860bad
Cleanup
dvdplm ec96a42
Hopefully fix CI
DemiMarie 01869a7
Remove dead code
DemiMarie b54b1b9
Test chill
DemiMarie 68ff645
Add missing docs
DemiMarie 9c6c663
Merge remote-tracking branch 'origin/master' into staking
DemiMarie bc8bc36
Remove unnecessary use
DemiMarie dd4dce9
Revert "Remove unnecessary use"
DemiMarie 1eb67d9
Retry on temporary failures
DemiMarie d63661f
Ignore the staking tests on CI
DemiMarie 369cb88
Add separate tests for nomination, validation announcment and chilling
dvdplm 24848b3
Obey the fmt
dvdplm e2862d8
Run CI with at most one test thread
DemiMarie 8a79571
Implement tests for staking
DemiMarie f3da309
More tests
DemiMarie 18e8029
Remove unhelpful println!
DemiMarie f7cda4a
Revert changes in contract tests
DemiMarie 15c0206
Reformat
DemiMarie d659e91
Remove spurious diff
DemiMarie 52960b7
More tests
DemiMarie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -16,7 +16,10 @@ | |||||
|
|
||||||
| //! Implements support for the frame_staking module. | ||||||
|
||||||
| //! Implements support for the frame_staking module. | |
| //! Implements support for the pallet_staking module. |
Demi-Marie marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Demi-Marie marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
| /// Just a Balance/BlockNumber tuple to encode when a chunk of funds will be unlocked. | |
| /// A Balance/BlockNumber tuple to encode when a chunk of funds will be unlocked. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.