Name | Lookup | Parameters | |
|---|---|---|---|
| wrap | 5f00 | 1 | |
| unwrap_all | 5f01 | - | |
| unwrap | 5f02 | 1 | |
| vote | 5f03 | 3 | |
| unlock | 5f04 | 2 |
Name | Lookup | Attributes | |
|---|---|---|---|
| DustRemoved | 5f00 | ["AccountId","BalanceOf"] | |
| Wrapped | 5f01 | ["AccountId","BalanceOf"] | |
| Unwrapped | 5f02 | ["AccountId","BalanceOf"] | |
| Voted | 5f03 | ["AccountId","ReferendumIndex","BalanceOf","BalanceOf"] |
Name | Type | |
|---|---|---|
| VoteAccountMap | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","AccountId"],"value":"Tuple:U128U128","keys_id":644,"value_id":661}} | |
| AccountVoteMap | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["AccountId","U32"],"value":"NULL","keys_id":662,"value_id":32}} | |
| StakerAccounts | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"phala_pallets:compute:wrapped_balances:pallet:FinanceAccount","keys_id":0,"value_id":663}} | |
| UnmintableDust | {"origin":"PlainType","plain_type":"U128","PlainTypeValue":6} |
Name | Type | Value | |
|---|---|---|---|
| WPhaAssetId | U32 | 10270000 | |
| WrappedBalancesAccountId | AccountId | 777068612f000000000000000000000000000000000000000000000000000000 |
Name | Docs |
|---|---|
| StakerAccountNotFound | user's `FinanceAccount` does not exist in storage: `StakerAccounts` |
| UnwrapAmountExceedsAvaliableStake | Trying to unwrap more than the available balance |
| VoteAmountLargerThanTotalStakes | Trying to vote more than the available balance |
| ReferendumInvalid | The vote is not currently on going |
| ReferendumOngoing | The vote is now on going and the W-PHA used in voting can not be unlocked |
| IterationsIsNotVaild | The Iteration exceed the max limitaion |