-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
web-wallet: Retrieve and cache stake info using w3sper
Resolves @2946
- Loading branch information
1 parent
11a572d
commit 429c976
Showing
36 changed files
with
817 additions
and
120 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export default [ | ||
{ | ||
account: "", | ||
stakeInfo: { | ||
amount: { | ||
eligibility: 0n, | ||
locked: 0n, | ||
total: 1000000000000n, | ||
value: 1000000000000n, | ||
}, | ||
faults: 0, | ||
hardFaults: 0, | ||
nonce: 0n, | ||
reward: 11022842680864n, | ||
}, | ||
}, | ||
]; |
This file contains 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 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 |
---|---|---|
@@ -1,9 +1,15 @@ | ||
/* eslint-disable camelcase */ | ||
|
||
/** @type {WalletStakeInfo} */ | ||
/** @type {StakeInfo} */ | ||
export default { | ||
amount: 1000, | ||
has_key: true, | ||
has_staked: true, | ||
reward: 500, | ||
amount: { | ||
eligibility: 0n, | ||
locked: 0n, | ||
get total() { | ||
return this.value + this.locked; | ||
}, | ||
value: 1000000000000n, | ||
}, | ||
faults: 0, | ||
hardFaults: 0, | ||
nonce: 0n, | ||
reward: 11022842680864n, | ||
}; |
Oops, something went wrong.