@dedot/chaintypes 0.96.0 → 0.98.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -878,6 +878,148 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
878
878
  **/
879
879
  [method: string]: GenericRuntimeApiMethod<Rv>;
880
880
  };
881
+ /**
882
+ * @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
883
+ **/
884
+ nominationPoolsApi: {
885
+ /**
886
+ * Returns the pending rewards for the member that the AccountId was given for.
887
+ *
888
+ * @callname: NominationPoolsApi_pending_rewards
889
+ * @param {AccountId32Like} who
890
+ **/
891
+ pendingRewards: GenericRuntimeApiMethod<Rv, (who: AccountId32Like) => Promise<bigint>>;
892
+
893
+ /**
894
+ * Returns the equivalent balance of `points` for a given pool.
895
+ *
896
+ * @callname: NominationPoolsApi_points_to_balance
897
+ * @param {number} pool_id
898
+ * @param {bigint} points
899
+ **/
900
+ pointsToBalance: GenericRuntimeApiMethod<Rv, (poolId: number, points: bigint) => Promise<bigint>>;
901
+
902
+ /**
903
+ * Returns the equivalent points of `new_funds` for a given pool.
904
+ *
905
+ * @callname: NominationPoolsApi_balance_to_points
906
+ * @param {number} pool_id
907
+ * @param {bigint} new_funds
908
+ **/
909
+ balanceToPoints: GenericRuntimeApiMethod<Rv, (poolId: number, newFunds: bigint) => Promise<bigint>>;
910
+
911
+ /**
912
+ * Returns the pending slash for a given pool.
913
+ *
914
+ * @callname: NominationPoolsApi_pool_pending_slash
915
+ * @param {number} pool_id
916
+ **/
917
+ poolPendingSlash: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<bigint>>;
918
+
919
+ /**
920
+ * Returns the pending slash for a given pool member.
921
+ *
922
+ * If pending slash of the member exceeds `ExistentialDeposit`, it can be reported on
923
+ * chain.
924
+ *
925
+ * @callname: NominationPoolsApi_member_pending_slash
926
+ * @param {AccountId32Like} member
927
+ **/
928
+ memberPendingSlash: GenericRuntimeApiMethod<Rv, (member: AccountId32Like) => Promise<bigint>>;
929
+
930
+ /**
931
+ * Returns true if the pool with `pool_id` needs migration.
932
+ *
933
+ * This can happen when the `pallet-nomination-pools` has switched to using strategy
934
+ * [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake) but the pool
935
+ * still has funds that were staked using the older strategy
936
+ * [TransferStake](pallet_nomination_pools::adapter::TransferStake). Use
937
+ * [`migrate_pool_to_delegate_stake`](pallet_nomination_pools::Call::migrate_pool_to_delegate_stake)
938
+ * to migrate the pool.
939
+ *
940
+ * @callname: NominationPoolsApi_pool_needs_delegate_migration
941
+ * @param {number} pool_id
942
+ **/
943
+ poolNeedsDelegateMigration: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<boolean>>;
944
+
945
+ /**
946
+ * Returns true if the delegated funds of the pool `member` needs migration.
947
+ *
948
+ * Once a pool has successfully migrated to the strategy
949
+ * [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake), the funds of the
950
+ * member can be migrated from pool account to the member's account. Use
951
+ * [`migrate_delegation`](pallet_nomination_pools::Call::migrate_delegation)
952
+ * to migrate the funds of the pool member.
953
+ *
954
+ * @callname: NominationPoolsApi_member_needs_delegate_migration
955
+ * @param {AccountId32Like} member
956
+ **/
957
+ memberNeedsDelegateMigration: GenericRuntimeApiMethod<Rv, (member: AccountId32Like) => Promise<boolean>>;
958
+
959
+ /**
960
+ * Returns the total contribution of a pool member including any balance that is unbonding.
961
+ *
962
+ * @callname: NominationPoolsApi_member_total_balance
963
+ * @param {AccountId32Like} who
964
+ **/
965
+ memberTotalBalance: GenericRuntimeApiMethod<Rv, (who: AccountId32Like) => Promise<bigint>>;
966
+
967
+ /**
968
+ * Total balance contributed to the pool.
969
+ *
970
+ * @callname: NominationPoolsApi_pool_balance
971
+ * @param {number} pool_id
972
+ **/
973
+ poolBalance: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<bigint>>;
974
+
975
+ /**
976
+ * Returns the bonded account and reward account associated with the pool_id.
977
+ *
978
+ * @callname: NominationPoolsApi_pool_accounts
979
+ * @param {number} pool_id
980
+ **/
981
+ poolAccounts: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<[AccountId32, AccountId32]>>;
982
+
983
+ /**
984
+ * Generic runtime api call
985
+ **/
986
+ [method: string]: GenericRuntimeApiMethod<Rv>;
987
+ };
988
+ /**
989
+ * @runtimeapi: StakingApi - 0x18ef58a3b67ba770
990
+ **/
991
+ stakingApi: {
992
+ /**
993
+ * Returns the nominations quota for a nominator with a given balance.
994
+ *
995
+ * @callname: StakingApi_nominations_quota
996
+ * @param {bigint} balance
997
+ **/
998
+ nominationsQuota: GenericRuntimeApiMethod<Rv, (balance: bigint) => Promise<number>>;
999
+
1000
+ /**
1001
+ * Returns the page count of exposures for a validator `account` in a given era.
1002
+ *
1003
+ * @callname: StakingApi_eras_stakers_page_count
1004
+ * @param {number} era
1005
+ * @param {AccountId32Like} account
1006
+ **/
1007
+ erasStakersPageCount: GenericRuntimeApiMethod<Rv, (era: number, account: AccountId32Like) => Promise<number>>;
1008
+
1009
+ /**
1010
+ * Returns true if validator `account` has pages to be claimed for the given era.
1011
+ *
1012
+ * @callname: StakingApi_pending_rewards
1013
+ * @param {number} era
1014
+ * @param {AccountId32Like} account
1015
+ **/
1016
+ pendingRewards: GenericRuntimeApiMethod<Rv, (era: number, account: AccountId32Like) => Promise<boolean>>;
1017
+
1018
+ /**
1019
+ * Generic runtime api call
1020
+ **/
1021
+ [method: string]: GenericRuntimeApiMethod<Rv>;
1022
+ };
881
1023
  /**
882
1024
  * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
883
1025
  **/