@dedot/chaintypes 0.175.0 → 0.176.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.
@@ -27,6 +27,8 @@ import type {
27
27
  SpRuntimeTransactionValidityValidTransaction,
28
28
  SpRuntimeTransactionValidityTransactionSource,
29
29
  SpCoreCryptoKeyTypeId,
30
+ FrameSupportViewFunctionsViewFunctionDispatchError,
31
+ FrameSupportViewFunctionsViewFunctionId,
30
32
  PalletTransactionPaymentRuntimeDispatchInfo,
31
33
  PalletTransactionPaymentFeeDetails,
32
34
  SpWeightsWeightV2Weight,
@@ -332,6 +334,30 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
332
334
  **/
333
335
  [method: string]: GenericRuntimeApiMethod<Rv>;
334
336
  };
337
+ /**
338
+ * @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
339
+ **/
340
+ runtimeViewFunction: {
341
+ /**
342
+ * Execute a view function query.
343
+ *
344
+ * @callname: RuntimeViewFunction_execute_view_function
345
+ * @param {FrameSupportViewFunctionsViewFunctionId} query_id
346
+ * @param {BytesLike} input
347
+ **/
348
+ executeViewFunction: GenericRuntimeApiMethod<
349
+ Rv,
350
+ (
351
+ queryId: FrameSupportViewFunctionsViewFunctionId,
352
+ input: BytesLike,
353
+ ) => Promise<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>
354
+ >;
355
+
356
+ /**
357
+ * Generic runtime api call
358
+ **/
359
+ [method: string]: GenericRuntimeApiMethod<Rv>;
360
+ };
335
361
  /**
336
362
  * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
337
363
  **/
@@ -842,6 +868,148 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
842
868
  **/
843
869
  parachainId: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotParachainPrimitivesPrimitivesId>>;
844
870
 
871
+ /**
872
+ * Generic runtime api call
873
+ **/
874
+ [method: string]: GenericRuntimeApiMethod<Rv>;
875
+ };
876
+ /**
877
+ * @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
878
+ **/
879
+ nominationPoolsApi: {
880
+ /**
881
+ * Returns the pending rewards for the member that the AccountId was given for.
882
+ *
883
+ * @callname: NominationPoolsApi_pending_rewards
884
+ * @param {AccountId32Like} who
885
+ **/
886
+ pendingRewards: GenericRuntimeApiMethod<Rv, (who: AccountId32Like) => Promise<bigint>>;
887
+
888
+ /**
889
+ * Returns the equivalent balance of `points` for a given pool.
890
+ *
891
+ * @callname: NominationPoolsApi_points_to_balance
892
+ * @param {number} pool_id
893
+ * @param {bigint} points
894
+ **/
895
+ pointsToBalance: GenericRuntimeApiMethod<Rv, (poolId: number, points: bigint) => Promise<bigint>>;
896
+
897
+ /**
898
+ * Returns the equivalent points of `new_funds` for a given pool.
899
+ *
900
+ * @callname: NominationPoolsApi_balance_to_points
901
+ * @param {number} pool_id
902
+ * @param {bigint} new_funds
903
+ **/
904
+ balanceToPoints: GenericRuntimeApiMethod<Rv, (poolId: number, newFunds: bigint) => Promise<bigint>>;
905
+
906
+ /**
907
+ * Returns the pending slash for a given pool.
908
+ *
909
+ * @callname: NominationPoolsApi_pool_pending_slash
910
+ * @param {number} pool_id
911
+ **/
912
+ poolPendingSlash: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<bigint>>;
913
+
914
+ /**
915
+ * Returns the pending slash for a given pool member.
916
+ *
917
+ * If pending slash of the member exceeds `ExistentialDeposit`, it can be reported on
918
+ * chain.
919
+ *
920
+ * @callname: NominationPoolsApi_member_pending_slash
921
+ * @param {AccountId32Like} member
922
+ **/
923
+ memberPendingSlash: GenericRuntimeApiMethod<Rv, (member: AccountId32Like) => Promise<bigint>>;
924
+
925
+ /**
926
+ * Returns true if the pool with `pool_id` needs migration.
927
+ *
928
+ * This can happen when the `pallet-nomination-pools` has switched to using strategy
929
+ * [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake) but the pool
930
+ * still has funds that were staked using the older strategy
931
+ * [TransferStake](pallet_nomination_pools::adapter::TransferStake). Use
932
+ * [`migrate_pool_to_delegate_stake`](pallet_nomination_pools::Call::migrate_pool_to_delegate_stake)
933
+ * to migrate the pool.
934
+ *
935
+ * @callname: NominationPoolsApi_pool_needs_delegate_migration
936
+ * @param {number} pool_id
937
+ **/
938
+ poolNeedsDelegateMigration: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<boolean>>;
939
+
940
+ /**
941
+ * Returns true if the delegated funds of the pool `member` needs migration.
942
+ *
943
+ * Once a pool has successfully migrated to the strategy
944
+ * [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake), the funds of the
945
+ * member can be migrated from pool account to the member's account. Use
946
+ * [`migrate_delegation`](pallet_nomination_pools::Call::migrate_delegation)
947
+ * to migrate the funds of the pool member.
948
+ *
949
+ * @callname: NominationPoolsApi_member_needs_delegate_migration
950
+ * @param {AccountId32Like} member
951
+ **/
952
+ memberNeedsDelegateMigration: GenericRuntimeApiMethod<Rv, (member: AccountId32Like) => Promise<boolean>>;
953
+
954
+ /**
955
+ * Returns the total contribution of a pool member including any balance that is unbonding.
956
+ *
957
+ * @callname: NominationPoolsApi_member_total_balance
958
+ * @param {AccountId32Like} who
959
+ **/
960
+ memberTotalBalance: GenericRuntimeApiMethod<Rv, (who: AccountId32Like) => Promise<bigint>>;
961
+
962
+ /**
963
+ * Total balance contributed to the pool.
964
+ *
965
+ * @callname: NominationPoolsApi_pool_balance
966
+ * @param {number} pool_id
967
+ **/
968
+ poolBalance: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<bigint>>;
969
+
970
+ /**
971
+ * Returns the bonded account and reward account associated with the pool_id.
972
+ *
973
+ * @callname: NominationPoolsApi_pool_accounts
974
+ * @param {number} pool_id
975
+ **/
976
+ poolAccounts: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<[AccountId32, AccountId32]>>;
977
+
978
+ /**
979
+ * Generic runtime api call
980
+ **/
981
+ [method: string]: GenericRuntimeApiMethod<Rv>;
982
+ };
983
+ /**
984
+ * @runtimeapi: StakingApi - 0x18ef58a3b67ba770
985
+ **/
986
+ stakingApi: {
987
+ /**
988
+ * Returns the nominations quota for a nominator with a given balance.
989
+ *
990
+ * @callname: StakingApi_nominations_quota
991
+ * @param {bigint} balance
992
+ **/
993
+ nominationsQuota: GenericRuntimeApiMethod<Rv, (balance: bigint) => Promise<number>>;
994
+
995
+ /**
996
+ * Returns the page count of exposures for a validator `account` in a given era.
997
+ *
998
+ * @callname: StakingApi_eras_stakers_page_count
999
+ * @param {number} era
1000
+ * @param {AccountId32Like} account
1001
+ **/
1002
+ erasStakersPageCount: GenericRuntimeApiMethod<Rv, (era: number, account: AccountId32Like) => Promise<number>>;
1003
+
1004
+ /**
1005
+ * Returns true if validator `account` has pages to be claimed for the given era.
1006
+ *
1007
+ * @callname: StakingApi_pending_rewards
1008
+ * @param {number} era
1009
+ * @param {AccountId32Like} account
1010
+ **/
1011
+ pendingRewards: GenericRuntimeApiMethod<Rv, (era: number, account: AccountId32Like) => Promise<boolean>>;
1012
+
845
1013
  /**
846
1014
  * Generic runtime api call
847
1015
  **/