@dedot/api 0.6.1 → 0.7.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.
@@ -1,6 +1,6 @@
1
- import type { AccountId32Like, BytesLike, Data, Extrinsic, FixedBytes, FixedU128, FixedU64, H256, MultiAddressLike, Perbill, Percent, Perquintill } from '@dedot/codecs';
1
+ import type { AccountId32Like, BytesLike, Data, Extrinsic, FixedBytes, FixedU128, FixedU64, H160, H256, MultiAddressLike, Perbill, Percent, Perquintill } from '@dedot/codecs';
2
2
  import type { GenericChainTx, GenericTxCall, IRuntimeTxCall, ISubmittableExtrinsic, ISubmittableExtrinsicLegacy, ISubmittableResult, RpcV2, RpcVersion } from '@dedot/types';
3
- import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemEventRecord, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeCallLike, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsBitFlags, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOp, PalletNominationPoolsConfigOp004, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOp, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyEquivocationProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from './types.js';
3
+ import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemEventRecord, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeCallLike, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerOnDemandRevenueRecord, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipParamsTypeOption, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsBitFlags, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOp, PalletNominationPoolsConfigOp004, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOp, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyForkVotingProof, SpConsensusBeefyFutureBlockVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from './types.js';
4
4
  export type ChainSubmittableExtrinsic<Rv extends RpcVersion, T extends IRuntimeTxCall = KitchensinkRuntimeRuntimeCallLike> = Extrinsic<MultiAddressLike, T, SpRuntimeMultiSignature, any[]> & (Rv extends RpcV2 ? ISubmittableExtrinsic<ISubmittableResult<FrameSystemEventRecord>> : ISubmittableExtrinsicLegacy<ISubmittableResult<FrameSystemEventRecord>>);
5
5
  export type TxCall<Rv extends RpcVersion> = (...args: any[]) => ChainSubmittableExtrinsic<Rv>;
6
6
  export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCall<Rv>> {
@@ -729,7 +729,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
729
729
  *
730
730
  * This will waive the transaction fee if at least all but 10% of the accounts needed to
731
731
  * be upgraded. (We let some not have to be upgraded just in order to allow for the
732
- * possibililty of churn).
732
+ * possibility of churn).
733
733
  *
734
734
  * @param {Array<AccountId32Like>} who
735
735
  **/
@@ -780,6 +780,28 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
780
780
  };
781
781
  };
782
782
  }>>;
783
+ /**
784
+ * Burn the specified liquid free balance from the origin account.
785
+ *
786
+ * If the origin's account ends up below the existential deposit as a result
787
+ * of the burn and `keep_alive` is false, the account will be reaped.
788
+ *
789
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
790
+ * this `burn` operation will reduce total issuance by the amount _burned_.
791
+ *
792
+ * @param {bigint} value
793
+ * @param {boolean} keepAlive
794
+ **/
795
+ burn: GenericTxCall<Rv, (value: bigint, keepAlive: boolean) => ChainSubmittableExtrinsic<Rv, {
796
+ pallet: 'Balances';
797
+ palletCall: {
798
+ name: 'Burn';
799
+ params: {
800
+ value: bigint;
801
+ keepAlive: boolean;
802
+ };
803
+ };
804
+ }>>;
783
805
  /**
784
806
  * Generic pallet tx call
785
807
  **/
@@ -922,7 +944,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
922
944
  * - Three extra DB entries.
923
945
  *
924
946
  * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
925
- * unless the `origin` falls below _existential deposit_ and gets removed as dust.
947
+ * unless the `origin` falls below _existential deposit_ (or equal to 0) and gets removed
948
+ * as dust.
926
949
  *
927
950
  * @param {bigint} value
928
951
  * @param {PalletStakingRewardDestination} payee
@@ -967,7 +990,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
967
990
  /**
968
991
  * Schedule a portion of the stash to be unlocked ready for transfer out after the bond
969
992
  * period ends. If this leaves an amount actively bonded less than
970
- * T::Currency::minimum_balance(), then it is increased to the full amount.
993
+ * [`asset::existential_deposit`], then it is increased to the full amount.
971
994
  *
972
995
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
973
996
  *
@@ -1014,7 +1037,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1014
1037
  * this call results in a complete removal of all the data related to the stash account.
1015
1038
  * In this case, the `num_slashing_spans` must be larger or equal to the number of
1016
1039
  * slashing spans associated with the stash account in the [`SlashingSpans`] storage type,
1017
- * otherwise the call will fail. The call weight is directly propotional to
1040
+ * otherwise the call will fail. The call weight is directly proportional to
1018
1041
  * `num_slashing_spans`.
1019
1042
  *
1020
1043
  * ## Complexity
@@ -1160,7 +1183,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1160
1183
  };
1161
1184
  }>>;
1162
1185
  /**
1163
- * Increments the ideal number of validators upto maximum of
1186
+ * Increments the ideal number of validators up to maximum of
1164
1187
  * `ElectionProviderBase::MaxWinners`.
1165
1188
  *
1166
1189
  * The dispatch origin must be Root.
@@ -1180,7 +1203,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1180
1203
  };
1181
1204
  }>>;
1182
1205
  /**
1183
- * Scale up the ideal number of validators by a factor upto maximum of
1206
+ * Scale up the ideal number of validators by a factor up to maximum of
1184
1207
  * `ElectionProviderBase::MaxWinners`.
1185
1208
  *
1186
1209
  * The dispatch origin must be Root.
@@ -1375,6 +1398,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1375
1398
  *
1376
1399
  * 1. the `total_balance` of the stash is below existential deposit.
1377
1400
  * 2. or, the `ledger.total` of the stash is below existential deposit.
1401
+ * 3. or, existential deposit is zero and either `total_balance` or `ledger.total` is zero.
1378
1402
  *
1379
1403
  * The former can happen in cases like a slash; the latter when a fully unbonded account
1380
1404
  * is still receiving staking rewards in `RewardDestination::Staked`.
@@ -1612,6 +1636,36 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1612
1636
  };
1613
1637
  };
1614
1638
  }>>;
1639
+ /**
1640
+ * Restores the state of a ledger which is in an inconsistent state.
1641
+ *
1642
+ * The requirements to restore a ledger are the following:
1643
+ * * The stash is bonded; or
1644
+ * * The stash is not bonded but it has a staking lock left behind; or
1645
+ * * If the stash has an associated ledger and its state is inconsistent; or
1646
+ * * If the ledger is not corrupted *but* its staking lock is out of sync.
1647
+ *
1648
+ * The `maybe_*` input parameters will overwrite the corresponding data and metadata of the
1649
+ * ledger associated with the stash. If the input parameters are not set, the ledger will
1650
+ * be reset values from on-chain state.
1651
+ *
1652
+ * @param {AccountId32Like} stash
1653
+ * @param {AccountId32Like | undefined} maybeController
1654
+ * @param {bigint | undefined} maybeTotal
1655
+ * @param {Array<PalletStakingUnlockChunk> | undefined} maybeUnlocking
1656
+ **/
1657
+ restoreLedger: GenericTxCall<Rv, (stash: AccountId32Like, maybeController: AccountId32Like | undefined, maybeTotal: bigint | undefined, maybeUnlocking: Array<PalletStakingUnlockChunk> | undefined) => ChainSubmittableExtrinsic<Rv, {
1658
+ pallet: 'Staking';
1659
+ palletCall: {
1660
+ name: 'RestoreLedger';
1661
+ params: {
1662
+ stash: AccountId32Like;
1663
+ maybeController: AccountId32Like | undefined;
1664
+ maybeTotal: bigint | undefined;
1665
+ maybeUnlocking: Array<PalletStakingUnlockChunk> | undefined;
1666
+ };
1667
+ };
1668
+ }>>;
1615
1669
  /**
1616
1670
  * Generic pallet tx call
1617
1671
  **/
@@ -2342,6 +2396,48 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2342
2396
  };
2343
2397
  };
2344
2398
  }>>;
2399
+ /**
2400
+ * Disapprove the proposal and burn the cost held for storing this proposal.
2401
+ *
2402
+ * Parameters:
2403
+ * - `origin`: must be the `KillOrigin`.
2404
+ * - `proposal_hash`: The hash of the proposal that should be killed.
2405
+ *
2406
+ * Emits `Killed` and `ProposalCostBurned` if any cost was held for a given proposal.
2407
+ *
2408
+ * @param {H256} proposalHash
2409
+ **/
2410
+ kill: GenericTxCall<Rv, (proposalHash: H256) => ChainSubmittableExtrinsic<Rv, {
2411
+ pallet: 'Council';
2412
+ palletCall: {
2413
+ name: 'Kill';
2414
+ params: {
2415
+ proposalHash: H256;
2416
+ };
2417
+ };
2418
+ }>>;
2419
+ /**
2420
+ * Release the cost held for storing a proposal once the given proposal is completed.
2421
+ *
2422
+ * If there is no associated cost for the given proposal, this call will have no effect.
2423
+ *
2424
+ * Parameters:
2425
+ * - `origin`: must be `Signed` or `Root`.
2426
+ * - `proposal_hash`: The hash of the proposal.
2427
+ *
2428
+ * Emits `ProposalCostReleased` if any cost held for a given proposal.
2429
+ *
2430
+ * @param {H256} proposalHash
2431
+ **/
2432
+ releaseProposalCost: GenericTxCall<Rv, (proposalHash: H256) => ChainSubmittableExtrinsic<Rv, {
2433
+ pallet: 'Council';
2434
+ palletCall: {
2435
+ name: 'ReleaseProposalCost';
2436
+ params: {
2437
+ proposalHash: H256;
2438
+ };
2439
+ };
2440
+ }>>;
2345
2441
  /**
2346
2442
  * Generic pallet tx call
2347
2443
  **/
@@ -2539,6 +2635,48 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2539
2635
  };
2540
2636
  };
2541
2637
  }>>;
2638
+ /**
2639
+ * Disapprove the proposal and burn the cost held for storing this proposal.
2640
+ *
2641
+ * Parameters:
2642
+ * - `origin`: must be the `KillOrigin`.
2643
+ * - `proposal_hash`: The hash of the proposal that should be killed.
2644
+ *
2645
+ * Emits `Killed` and `ProposalCostBurned` if any cost was held for a given proposal.
2646
+ *
2647
+ * @param {H256} proposalHash
2648
+ **/
2649
+ kill: GenericTxCall<Rv, (proposalHash: H256) => ChainSubmittableExtrinsic<Rv, {
2650
+ pallet: 'TechnicalCommittee';
2651
+ palletCall: {
2652
+ name: 'Kill';
2653
+ params: {
2654
+ proposalHash: H256;
2655
+ };
2656
+ };
2657
+ }>>;
2658
+ /**
2659
+ * Release the cost held for storing a proposal once the given proposal is completed.
2660
+ *
2661
+ * If there is no associated cost for the given proposal, this call will have no effect.
2662
+ *
2663
+ * Parameters:
2664
+ * - `origin`: must be `Signed` or `Root`.
2665
+ * - `proposal_hash`: The hash of the proposal.
2666
+ *
2667
+ * Emits `ProposalCostReleased` if any cost held for a given proposal.
2668
+ *
2669
+ * @param {H256} proposalHash
2670
+ **/
2671
+ releaseProposalCost: GenericTxCall<Rv, (proposalHash: H256) => ChainSubmittableExtrinsic<Rv, {
2672
+ pallet: 'TechnicalCommittee';
2673
+ palletCall: {
2674
+ name: 'ReleaseProposalCost';
2675
+ params: {
2676
+ proposalHash: H256;
2677
+ };
2678
+ };
2679
+ }>>;
2542
2680
  /**
2543
2681
  * Generic pallet tx call
2544
2682
  **/
@@ -2926,95 +3064,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2926
3064
  * Pallet `Treasury`'s transaction calls
2927
3065
  **/
2928
3066
  treasury: {
2929
- /**
2930
- * Put forward a suggestion for spending.
2931
- *
2932
- * ## Dispatch Origin
2933
- *
2934
- * Must be signed.
2935
- *
2936
- * ## Details
2937
- * A deposit proportional to the value is reserved and slashed if the proposal is rejected.
2938
- * It is returned once the proposal is awarded.
2939
- *
2940
- * ### Complexity
2941
- * - O(1)
2942
- *
2943
- * ## Events
2944
- *
2945
- * Emits [`Event::Proposed`] if successful.
2946
- *
2947
- * @param {bigint} value
2948
- * @param {MultiAddressLike} beneficiary
2949
- **/
2950
- proposeSpend: GenericTxCall<Rv, (value: bigint, beneficiary: MultiAddressLike) => ChainSubmittableExtrinsic<Rv, {
2951
- pallet: 'Treasury';
2952
- palletCall: {
2953
- name: 'ProposeSpend';
2954
- params: {
2955
- value: bigint;
2956
- beneficiary: MultiAddressLike;
2957
- };
2958
- };
2959
- }>>;
2960
- /**
2961
- * Reject a proposed spend.
2962
- *
2963
- * ## Dispatch Origin
2964
- *
2965
- * Must be [`Config::RejectOrigin`].
2966
- *
2967
- * ## Details
2968
- * The original deposit will be slashed.
2969
- *
2970
- * ### Complexity
2971
- * - O(1)
2972
- *
2973
- * ## Events
2974
- *
2975
- * Emits [`Event::Rejected`] if successful.
2976
- *
2977
- * @param {number} proposalId
2978
- **/
2979
- rejectProposal: GenericTxCall<Rv, (proposalId: number) => ChainSubmittableExtrinsic<Rv, {
2980
- pallet: 'Treasury';
2981
- palletCall: {
2982
- name: 'RejectProposal';
2983
- params: {
2984
- proposalId: number;
2985
- };
2986
- };
2987
- }>>;
2988
- /**
2989
- * Approve a proposal.
2990
- *
2991
- * ## Dispatch Origin
2992
- *
2993
- * Must be [`Config::ApproveOrigin`].
2994
- *
2995
- * ## Details
2996
- *
2997
- * At a later time, the proposal will be allocated to the beneficiary and the original
2998
- * deposit will be returned.
2999
- *
3000
- * ### Complexity
3001
- * - O(1).
3002
- *
3003
- * ## Events
3004
- *
3005
- * No events are emitted from this dispatch.
3006
- *
3007
- * @param {number} proposalId
3008
- **/
3009
- approveProposal: GenericTxCall<Rv, (proposalId: number) => ChainSubmittableExtrinsic<Rv, {
3010
- pallet: 'Treasury';
3011
- palletCall: {
3012
- name: 'ApproveProposal';
3013
- params: {
3014
- proposalId: number;
3015
- };
3016
- };
3017
- }>>;
3018
3067
  /**
3019
3068
  * Propose and approve a spend of treasury funds.
3020
3069
  *
@@ -3109,17 +3158,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3109
3158
  *
3110
3159
  * Emits [`Event::AssetSpendApproved`] if successful.
3111
3160
  *
3112
- * @param {number} assetKind
3161
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} assetKind
3113
3162
  * @param {bigint} amount
3114
3163
  * @param {MultiAddressLike} beneficiary
3115
3164
  * @param {number | undefined} validFrom
3116
3165
  **/
3117
- spend: GenericTxCall<Rv, (assetKind: number, amount: bigint, beneficiary: MultiAddressLike, validFrom: number | undefined) => ChainSubmittableExtrinsic<Rv, {
3166
+ spend: GenericTxCall<Rv, (assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId, amount: bigint, beneficiary: MultiAddressLike, validFrom: number | undefined) => ChainSubmittableExtrinsic<Rv, {
3118
3167
  pallet: 'Treasury';
3119
3168
  palletCall: {
3120
3169
  name: 'Spend';
3121
3170
  params: {
3122
- assetKind: number;
3171
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
3123
3172
  amount: bigint;
3124
3173
  beneficiary: MultiAddressLike;
3125
3174
  validFrom: number | undefined;
@@ -3131,7 +3180,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3131
3180
  *
3132
3181
  * ## Dispatch Origin
3133
3182
  *
3134
- * Must be signed.
3183
+ * Must be signed
3135
3184
  *
3136
3185
  * ## Details
3137
3186
  *
@@ -3234,15 +3283,15 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3234
3283
  * ## Complexity
3235
3284
  * - O(1)
3236
3285
  *
3237
- * @param {number} assetKind
3286
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} assetKind
3238
3287
  * @param {FixedU128} rate
3239
3288
  **/
3240
- create: GenericTxCall<Rv, (assetKind: number, rate: FixedU128) => ChainSubmittableExtrinsic<Rv, {
3289
+ create: GenericTxCall<Rv, (assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId, rate: FixedU128) => ChainSubmittableExtrinsic<Rv, {
3241
3290
  pallet: 'AssetRate';
3242
3291
  palletCall: {
3243
3292
  name: 'Create';
3244
3293
  params: {
3245
- assetKind: number;
3294
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
3246
3295
  rate: FixedU128;
3247
3296
  };
3248
3297
  };
@@ -3253,15 +3302,15 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3253
3302
  * ## Complexity
3254
3303
  * - O(1)
3255
3304
  *
3256
- * @param {number} assetKind
3305
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} assetKind
3257
3306
  * @param {FixedU128} rate
3258
3307
  **/
3259
- update: GenericTxCall<Rv, (assetKind: number, rate: FixedU128) => ChainSubmittableExtrinsic<Rv, {
3308
+ update: GenericTxCall<Rv, (assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId, rate: FixedU128) => ChainSubmittableExtrinsic<Rv, {
3260
3309
  pallet: 'AssetRate';
3261
3310
  palletCall: {
3262
3311
  name: 'Update';
3263
3312
  params: {
3264
- assetKind: number;
3313
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
3265
3314
  rate: FixedU128;
3266
3315
  };
3267
3316
  };
@@ -3272,14 +3321,14 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3272
3321
  * ## Complexity
3273
3322
  * - O(1)
3274
3323
  *
3275
- * @param {number} assetKind
3324
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} assetKind
3276
3325
  **/
3277
- remove: GenericTxCall<Rv, (assetKind: number) => ChainSubmittableExtrinsic<Rv, {
3326
+ remove: GenericTxCall<Rv, (assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId) => ChainSubmittableExtrinsic<Rv, {
3278
3327
  pallet: 'AssetRate';
3279
3328
  palletCall: {
3280
3329
  name: 'Remove';
3281
3330
  params: {
3282
- assetKind: number;
3331
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
3283
3332
  };
3284
3333
  };
3285
3334
  }>>;
@@ -3795,7 +3844,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3795
3844
  * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
3796
3845
  *
3797
3846
  * ```nocompile
3798
- * Self::registrars().get(reg_index).unwrap().fee
3847
+ * Registrars::<T>::get().get(reg_index).unwrap().fee
3799
3848
  * ```
3800
3849
  *
3801
3850
  * Emits `JudgementRequested` if successful.
@@ -4044,8 +4093,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4044
4093
  /**
4045
4094
  * Add an `AccountId` with permission to grant usernames with a given `suffix` appended.
4046
4095
  *
4047
- * The authority can grant up to `allocation` usernames. To top up their allocation, they
4048
- * should just issue (or request via governance) a new `add_username_authority` call.
4096
+ * The authority can grant up to `allocation` usernames. To top up the allocation or
4097
+ * change the account used to grant usernames, this call can be used with the updated
4098
+ * parameters to overwrite the existing configuration.
4049
4099
  *
4050
4100
  * @param {MultiAddressLike} authority
4051
4101
  * @param {BytesLike} suffix
@@ -4065,13 +4115,15 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4065
4115
  /**
4066
4116
  * Remove `authority` from the username authorities.
4067
4117
  *
4118
+ * @param {BytesLike} suffix
4068
4119
  * @param {MultiAddressLike} authority
4069
4120
  **/
4070
- removeUsernameAuthority: GenericTxCall<Rv, (authority: MultiAddressLike) => ChainSubmittableExtrinsic<Rv, {
4121
+ removeUsernameAuthority: GenericTxCall<Rv, (suffix: BytesLike, authority: MultiAddressLike) => ChainSubmittableExtrinsic<Rv, {
4071
4122
  pallet: 'Identity';
4072
4123
  palletCall: {
4073
4124
  name: 'RemoveUsernameAuthority';
4074
4125
  params: {
4126
+ suffix: BytesLike;
4075
4127
  authority: MultiAddressLike;
4076
4128
  };
4077
4129
  };
@@ -4079,7 +4131,11 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4079
4131
  /**
4080
4132
  * Set the username for `who`. Must be called by a username authority.
4081
4133
  *
4082
- * The authority must have an `allocation`. Users can either pre-sign their usernames or
4134
+ * If `use_allocation` is set, the authority must have a username allocation available to
4135
+ * spend. Otherwise, the authority will need to put up a deposit for registering the
4136
+ * username.
4137
+ *
4138
+ * Users can either pre-sign their usernames or
4083
4139
  * accept them later.
4084
4140
  *
4085
4141
  * Usernames must:
@@ -4090,8 +4146,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4090
4146
  * @param {MultiAddressLike} who
4091
4147
  * @param {BytesLike} username
4092
4148
  * @param {SpRuntimeMultiSignature | undefined} signature
4149
+ * @param {boolean} useAllocation
4093
4150
  **/
4094
- setUsernameFor: GenericTxCall<Rv, (who: MultiAddressLike, username: BytesLike, signature: SpRuntimeMultiSignature | undefined) => ChainSubmittableExtrinsic<Rv, {
4151
+ setUsernameFor: GenericTxCall<Rv, (who: MultiAddressLike, username: BytesLike, signature: SpRuntimeMultiSignature | undefined, useAllocation: boolean) => ChainSubmittableExtrinsic<Rv, {
4095
4152
  pallet: 'Identity';
4096
4153
  palletCall: {
4097
4154
  name: 'SetUsernameFor';
@@ -4099,6 +4156,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4099
4156
  who: MultiAddressLike;
4100
4157
  username: BytesLike;
4101
4158
  signature: SpRuntimeMultiSignature | undefined;
4159
+ useAllocation: boolean;
4102
4160
  };
4103
4161
  };
4104
4162
  }>>;
@@ -4148,15 +4206,46 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4148
4206
  };
4149
4207
  }>>;
4150
4208
  /**
4151
- * Remove a username that corresponds to an account with no identity. Exists when a user
4152
- * gets a username but then calls `clear_identity`.
4209
+ * Start the process of removing a username by placing it in the unbinding usernames map.
4210
+ * Once the grace period has passed, the username can be deleted by calling
4211
+ * [remove_username](crate::Call::remove_username).
4212
+ *
4213
+ * @param {BytesLike} username
4214
+ **/
4215
+ unbindUsername: GenericTxCall<Rv, (username: BytesLike) => ChainSubmittableExtrinsic<Rv, {
4216
+ pallet: 'Identity';
4217
+ palletCall: {
4218
+ name: 'UnbindUsername';
4219
+ params: {
4220
+ username: BytesLike;
4221
+ };
4222
+ };
4223
+ }>>;
4224
+ /**
4225
+ * Permanently delete a username which has been unbinding for longer than the grace period.
4226
+ * Caller is refunded the fee if the username expired and the removal was successful.
4227
+ *
4228
+ * @param {BytesLike} username
4229
+ **/
4230
+ removeUsername: GenericTxCall<Rv, (username: BytesLike) => ChainSubmittableExtrinsic<Rv, {
4231
+ pallet: 'Identity';
4232
+ palletCall: {
4233
+ name: 'RemoveUsername';
4234
+ params: {
4235
+ username: BytesLike;
4236
+ };
4237
+ };
4238
+ }>>;
4239
+ /**
4240
+ * Call with [ForceOrigin](crate::Config::ForceOrigin) privileges which deletes a username
4241
+ * and slashes any deposit associated with it.
4153
4242
  *
4154
4243
  * @param {BytesLike} username
4155
4244
  **/
4156
- removeDanglingUsername: GenericTxCall<Rv, (username: BytesLike) => ChainSubmittableExtrinsic<Rv, {
4245
+ killUsername: GenericTxCall<Rv, (username: BytesLike) => ChainSubmittableExtrinsic<Rv, {
4157
4246
  pallet: 'Identity';
4158
4247
  palletCall: {
4159
- name: 'RemoveDanglingUsername';
4248
+ name: 'KillUsername';
4160
4249
  params: {
4161
4250
  username: BytesLike;
4162
4251
  };
@@ -5239,6 +5328,39 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
5239
5328
  };
5240
5329
  };
5241
5330
  }>>;
5331
+ /**
5332
+ * Increase the block size by including the specified garbage bytes.
5333
+ *
5334
+ * @param {Array<FixedBytes<1024>>} garbage
5335
+ **/
5336
+ bloat: GenericTxCall<Rv, (garbage: Array<FixedBytes<1024>>) => ChainSubmittableExtrinsic<Rv, {
5337
+ pallet: 'Glutton';
5338
+ palletCall: {
5339
+ name: 'Bloat';
5340
+ params: {
5341
+ garbage: Array<FixedBytes<1024>>;
5342
+ };
5343
+ };
5344
+ }>>;
5345
+ /**
5346
+ * Set how much of the block length should be filled with trash data on each block.
5347
+ *
5348
+ * `1.0` means that all block should be filled. If set to `1.0`, storage proof size will
5349
+ * be close to zero.
5350
+ *
5351
+ * Only callable by Root or `AdminOrigin`.
5352
+ *
5353
+ * @param {FixedU64} blockLength
5354
+ **/
5355
+ setBlockLength: GenericTxCall<Rv, (blockLength: FixedU64) => ChainSubmittableExtrinsic<Rv, {
5356
+ pallet: 'Glutton';
5357
+ palletCall: {
5358
+ name: 'SetBlockLength';
5359
+ params: {
5360
+ blockLength: FixedU64;
5361
+ };
5362
+ };
5363
+ }>>;
5242
5364
  /**
5243
5365
  * Generic pallet tx call
5244
5366
  **/
@@ -6023,6 +6145,34 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6023
6145
  };
6024
6146
  };
6025
6147
  }>>;
6148
+ /**
6149
+ * Approve bountry and propose a curator simultaneously.
6150
+ * This call is a shortcut to calling `approve_bounty` and `propose_curator` separately.
6151
+ *
6152
+ * May only be called from `T::SpendOrigin`.
6153
+ *
6154
+ * - `bounty_id`: Bounty ID to approve.
6155
+ * - `curator`: The curator account whom will manage this bounty.
6156
+ * - `fee`: The curator fee.
6157
+ *
6158
+ * ## Complexity
6159
+ * - O(1).
6160
+ *
6161
+ * @param {number} bountyId
6162
+ * @param {MultiAddressLike} curator
6163
+ * @param {bigint} fee
6164
+ **/
6165
+ approveBountyWithCurator: GenericTxCall<Rv, (bountyId: number, curator: MultiAddressLike, fee: bigint) => ChainSubmittableExtrinsic<Rv, {
6166
+ pallet: 'Bounties';
6167
+ palletCall: {
6168
+ name: 'ApproveBountyWithCurator';
6169
+ params: {
6170
+ bountyId: number;
6171
+ curator: MultiAddressLike;
6172
+ fee: bigint;
6173
+ };
6174
+ };
6175
+ }>>;
6026
6176
  /**
6027
6177
  * Generic pallet tx call
6028
6178
  **/
@@ -6233,7 +6383,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6233
6383
  *
6234
6384
  * Parameters:
6235
6385
  * - `id`: The identifier of the new asset. This must not be currently in use to identify
6236
- * an existing asset.
6386
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
6237
6387
  * - `admin`: The admin of this class of assets. The admin is the initial address of each
6238
6388
  * member of the asset class's admin team.
6239
6389
  * - `min_balance`: The minimum balance of this new asset that any single account must
@@ -6268,7 +6418,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6268
6418
  * Unlike `create`, no funds are reserved.
6269
6419
  *
6270
6420
  * - `id`: The identifier of the new asset. This must not be currently in use to identify
6271
- * an existing asset.
6421
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
6272
6422
  * - `owner`: The owner of this class of assets. The owner has full superuser permissions
6273
6423
  * over this asset, but may later change and configure the permissions using
6274
6424
  * `transfer_ownership` and `set_team`.
@@ -6307,8 +6457,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6307
6457
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
6308
6458
  * asset.
6309
6459
  *
6310
- * The asset class must be frozen before calling `start_destroy`.
6311
- *
6312
6460
  * @param {number} id
6313
6461
  **/
6314
6462
  startDestroy: GenericTxCall<Rv, (id: number) => ChainSubmittableExtrinsic<Rv, {
@@ -7163,26 +7311,59 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7163
7311
  };
7164
7312
  }>>;
7165
7313
  /**
7166
- * Generic pallet tx call
7167
- **/
7168
- [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
7169
- };
7170
- /**
7171
- * Pallet `PoolAssets`'s transaction calls
7172
- **/
7173
- poolAssets: {
7174
- /**
7175
- * Issue a new class of fungible assets from a public origin.
7176
- *
7177
- * This new asset class has no assets initially and its owner is the origin.
7314
+ * Transfer the entire transferable balance from the caller asset account.
7178
7315
  *
7179
- * The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
7316
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
7317
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
7318
+ * transferred by this function. To ensure that this function results in a killed account,
7319
+ * you might need to prepare the account by removing any reference counters, storage
7320
+ * deposits, etc...
7180
7321
  *
7181
- * Funds of sender are reserved by `AssetDeposit`.
7322
+ * The dispatch origin of this call must be Signed.
7182
7323
  *
7183
- * Parameters:
7324
+ * - `id`: The identifier of the asset for the account holding a deposit.
7325
+ * - `dest`: The recipient of the transfer.
7326
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
7327
+ * of the funds the asset account has, causing the sender asset account to be killed
7328
+ * (false), or transfer everything except at least the minimum balance, which will
7329
+ * guarantee to keep the sender asset account alive (true).
7330
+ *
7331
+ * @param {number} id
7332
+ * @param {MultiAddressLike} dest
7333
+ * @param {boolean} keepAlive
7334
+ **/
7335
+ transferAll: GenericTxCall<Rv, (id: number, dest: MultiAddressLike, keepAlive: boolean) => ChainSubmittableExtrinsic<Rv, {
7336
+ pallet: 'Assets';
7337
+ palletCall: {
7338
+ name: 'TransferAll';
7339
+ params: {
7340
+ id: number;
7341
+ dest: MultiAddressLike;
7342
+ keepAlive: boolean;
7343
+ };
7344
+ };
7345
+ }>>;
7346
+ /**
7347
+ * Generic pallet tx call
7348
+ **/
7349
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
7350
+ };
7351
+ /**
7352
+ * Pallet `PoolAssets`'s transaction calls
7353
+ **/
7354
+ poolAssets: {
7355
+ /**
7356
+ * Issue a new class of fungible assets from a public origin.
7357
+ *
7358
+ * This new asset class has no assets initially and its owner is the origin.
7359
+ *
7360
+ * The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
7361
+ *
7362
+ * Funds of sender are reserved by `AssetDeposit`.
7363
+ *
7364
+ * Parameters:
7184
7365
  * - `id`: The identifier of the new asset. This must not be currently in use to identify
7185
- * an existing asset.
7366
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
7186
7367
  * - `admin`: The admin of this class of assets. The admin is the initial address of each
7187
7368
  * member of the asset class's admin team.
7188
7369
  * - `min_balance`: The minimum balance of this new asset that any single account must
@@ -7217,7 +7398,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7217
7398
  * Unlike `create`, no funds are reserved.
7218
7399
  *
7219
7400
  * - `id`: The identifier of the new asset. This must not be currently in use to identify
7220
- * an existing asset.
7401
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
7221
7402
  * - `owner`: The owner of this class of assets. The owner has full superuser permissions
7222
7403
  * over this asset, but may later change and configure the permissions using
7223
7404
  * `transfer_ownership` and `set_team`.
@@ -7256,8 +7437,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7256
7437
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
7257
7438
  * asset.
7258
7439
  *
7259
- * The asset class must be frozen before calling `start_destroy`.
7260
- *
7261
7440
  * @param {number} id
7262
7441
  **/
7263
7442
  startDestroy: GenericTxCall<Rv, (id: number) => ChainSubmittableExtrinsic<Rv, {
@@ -8111,6 +8290,39 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8111
8290
  };
8112
8291
  };
8113
8292
  }>>;
8293
+ /**
8294
+ * Transfer the entire transferable balance from the caller asset account.
8295
+ *
8296
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
8297
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
8298
+ * transferred by this function. To ensure that this function results in a killed account,
8299
+ * you might need to prepare the account by removing any reference counters, storage
8300
+ * deposits, etc...
8301
+ *
8302
+ * The dispatch origin of this call must be Signed.
8303
+ *
8304
+ * - `id`: The identifier of the asset for the account holding a deposit.
8305
+ * - `dest`: The recipient of the transfer.
8306
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
8307
+ * of the funds the asset account has, causing the sender asset account to be killed
8308
+ * (false), or transfer everything except at least the minimum balance, which will
8309
+ * guarantee to keep the sender asset account alive (true).
8310
+ *
8311
+ * @param {number} id
8312
+ * @param {MultiAddressLike} dest
8313
+ * @param {boolean} keepAlive
8314
+ **/
8315
+ transferAll: GenericTxCall<Rv, (id: number, dest: MultiAddressLike, keepAlive: boolean) => ChainSubmittableExtrinsic<Rv, {
8316
+ pallet: 'PoolAssets';
8317
+ palletCall: {
8318
+ name: 'TransferAll';
8319
+ params: {
8320
+ id: number;
8321
+ dest: MultiAddressLike;
8322
+ keepAlive: boolean;
8323
+ };
8324
+ };
8325
+ }>>;
8114
8326
  /**
8115
8327
  * Generic pallet tx call
8116
8328
  **/
@@ -8126,15 +8338,15 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8126
8338
  * against the extracted offender. If both are valid, the offence
8127
8339
  * will be reported.
8128
8340
  *
8129
- * @param {SpConsensusBeefyEquivocationProof} equivocationProof
8341
+ * @param {SpConsensusBeefyDoubleVotingProof} equivocationProof
8130
8342
  * @param {SpSessionMembershipProof} keyOwnerProof
8131
8343
  **/
8132
- reportEquivocation: GenericTxCall<Rv, (equivocationProof: SpConsensusBeefyEquivocationProof, keyOwnerProof: SpSessionMembershipProof) => ChainSubmittableExtrinsic<Rv, {
8344
+ reportDoubleVoting: GenericTxCall<Rv, (equivocationProof: SpConsensusBeefyDoubleVotingProof, keyOwnerProof: SpSessionMembershipProof) => ChainSubmittableExtrinsic<Rv, {
8133
8345
  pallet: 'Beefy';
8134
8346
  palletCall: {
8135
- name: 'ReportEquivocation';
8347
+ name: 'ReportDoubleVoting';
8136
8348
  params: {
8137
- equivocationProof: SpConsensusBeefyEquivocationProof;
8349
+ equivocationProof: SpConsensusBeefyDoubleVotingProof;
8138
8350
  keyOwnerProof: SpSessionMembershipProof;
8139
8351
  };
8140
8352
  };
@@ -8150,15 +8362,15 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8150
8362
  * if the block author is defined it will be defined as the equivocation
8151
8363
  * reporter.
8152
8364
  *
8153
- * @param {SpConsensusBeefyEquivocationProof} equivocationProof
8365
+ * @param {SpConsensusBeefyDoubleVotingProof} equivocationProof
8154
8366
  * @param {SpSessionMembershipProof} keyOwnerProof
8155
8367
  **/
8156
- reportEquivocationUnsigned: GenericTxCall<Rv, (equivocationProof: SpConsensusBeefyEquivocationProof, keyOwnerProof: SpSessionMembershipProof) => ChainSubmittableExtrinsic<Rv, {
8368
+ reportDoubleVotingUnsigned: GenericTxCall<Rv, (equivocationProof: SpConsensusBeefyDoubleVotingProof, keyOwnerProof: SpSessionMembershipProof) => ChainSubmittableExtrinsic<Rv, {
8157
8369
  pallet: 'Beefy';
8158
8370
  palletCall: {
8159
- name: 'ReportEquivocationUnsigned';
8371
+ name: 'ReportDoubleVotingUnsigned';
8160
8372
  params: {
8161
- equivocationProof: SpConsensusBeefyEquivocationProof;
8373
+ equivocationProof: SpConsensusBeefyDoubleVotingProof;
8162
8374
  keyOwnerProof: SpSessionMembershipProof;
8163
8375
  };
8164
8376
  };
@@ -8180,6 +8392,88 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8180
8392
  };
8181
8393
  };
8182
8394
  }>>;
8395
+ /**
8396
+ * Report fork voting equivocation. This method will verify the equivocation proof
8397
+ * and validate the given key ownership proof against the extracted offender.
8398
+ * If both are valid, the offence will be reported.
8399
+ *
8400
+ * @param {SpConsensusBeefyForkVotingProof} equivocationProof
8401
+ * @param {SpSessionMembershipProof} keyOwnerProof
8402
+ **/
8403
+ reportForkVoting: GenericTxCall<Rv, (equivocationProof: SpConsensusBeefyForkVotingProof, keyOwnerProof: SpSessionMembershipProof) => ChainSubmittableExtrinsic<Rv, {
8404
+ pallet: 'Beefy';
8405
+ palletCall: {
8406
+ name: 'ReportForkVoting';
8407
+ params: {
8408
+ equivocationProof: SpConsensusBeefyForkVotingProof;
8409
+ keyOwnerProof: SpSessionMembershipProof;
8410
+ };
8411
+ };
8412
+ }>>;
8413
+ /**
8414
+ * Report fork voting equivocation. This method will verify the equivocation proof
8415
+ * and validate the given key ownership proof against the extracted offender.
8416
+ * If both are valid, the offence will be reported.
8417
+ *
8418
+ * This extrinsic must be called unsigned and it is expected that only
8419
+ * block authors will call it (validated in `ValidateUnsigned`), as such
8420
+ * if the block author is defined it will be defined as the equivocation
8421
+ * reporter.
8422
+ *
8423
+ * @param {SpConsensusBeefyForkVotingProof} equivocationProof
8424
+ * @param {SpSessionMembershipProof} keyOwnerProof
8425
+ **/
8426
+ reportForkVotingUnsigned: GenericTxCall<Rv, (equivocationProof: SpConsensusBeefyForkVotingProof, keyOwnerProof: SpSessionMembershipProof) => ChainSubmittableExtrinsic<Rv, {
8427
+ pallet: 'Beefy';
8428
+ palletCall: {
8429
+ name: 'ReportForkVotingUnsigned';
8430
+ params: {
8431
+ equivocationProof: SpConsensusBeefyForkVotingProof;
8432
+ keyOwnerProof: SpSessionMembershipProof;
8433
+ };
8434
+ };
8435
+ }>>;
8436
+ /**
8437
+ * Report future block voting equivocation. This method will verify the equivocation proof
8438
+ * and validate the given key ownership proof against the extracted offender.
8439
+ * If both are valid, the offence will be reported.
8440
+ *
8441
+ * @param {SpConsensusBeefyFutureBlockVotingProof} equivocationProof
8442
+ * @param {SpSessionMembershipProof} keyOwnerProof
8443
+ **/
8444
+ reportFutureBlockVoting: GenericTxCall<Rv, (equivocationProof: SpConsensusBeefyFutureBlockVotingProof, keyOwnerProof: SpSessionMembershipProof) => ChainSubmittableExtrinsic<Rv, {
8445
+ pallet: 'Beefy';
8446
+ palletCall: {
8447
+ name: 'ReportFutureBlockVoting';
8448
+ params: {
8449
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof;
8450
+ keyOwnerProof: SpSessionMembershipProof;
8451
+ };
8452
+ };
8453
+ }>>;
8454
+ /**
8455
+ * Report future block voting equivocation. This method will verify the equivocation proof
8456
+ * and validate the given key ownership proof against the extracted offender.
8457
+ * If both are valid, the offence will be reported.
8458
+ *
8459
+ * This extrinsic must be called unsigned and it is expected that only
8460
+ * block authors will call it (validated in `ValidateUnsigned`), as such
8461
+ * if the block author is defined it will be defined as the equivocation
8462
+ * reporter.
8463
+ *
8464
+ * @param {SpConsensusBeefyFutureBlockVotingProof} equivocationProof
8465
+ * @param {SpSessionMembershipProof} keyOwnerProof
8466
+ **/
8467
+ reportFutureBlockVotingUnsigned: GenericTxCall<Rv, (equivocationProof: SpConsensusBeefyFutureBlockVotingProof, keyOwnerProof: SpSessionMembershipProof) => ChainSubmittableExtrinsic<Rv, {
8468
+ pallet: 'Beefy';
8469
+ palletCall: {
8470
+ name: 'ReportFutureBlockVotingUnsigned';
8471
+ params: {
8472
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof;
8473
+ keyOwnerProof: SpSessionMembershipProof;
8474
+ };
8475
+ };
8476
+ }>>;
8183
8477
  /**
8184
8478
  * Generic pallet tx call
8185
8479
  **/
@@ -10673,6 +10967,26 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
10673
10967
  };
10674
10968
  };
10675
10969
  }>>;
10970
+ /**
10971
+ * Fast promotions can skip ranks and ignore the `min_promotion_period`.
10972
+ *
10973
+ * This is useful for out-of-band promotions, hence it has its own `FastPromoteOrigin` to
10974
+ * be (possibly) more restrictive than `PromoteOrigin`. Note that the member must already
10975
+ * be inducted.
10976
+ *
10977
+ * @param {AccountId32Like} who
10978
+ * @param {number} toRank
10979
+ **/
10980
+ promoteFast: GenericTxCall<Rv, (who: AccountId32Like, toRank: number) => ChainSubmittableExtrinsic<Rv, {
10981
+ pallet: 'CoreFellowship';
10982
+ palletCall: {
10983
+ name: 'PromoteFast';
10984
+ params: {
10985
+ who: AccountId32Like;
10986
+ toRank: number;
10987
+ };
10988
+ };
10989
+ }>>;
10676
10990
  /**
10677
10991
  * Stop tracking a prior member who is now not a ranked member of the collective.
10678
10992
  *
@@ -10732,6 +11046,26 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
10732
11046
  name: 'Import';
10733
11047
  };
10734
11048
  }>>;
11049
+ /**
11050
+ * Set the parameters partially.
11051
+ *
11052
+ * - `origin`: An origin complying with `ParamsOrigin` or root.
11053
+ * - `partial_params`: The new parameters for the pallet.
11054
+ *
11055
+ * This update config with multiple arguments without duplicating
11056
+ * the fields that does not need to update (set to None).
11057
+ *
11058
+ * @param {PalletCoreFellowshipParamsTypeOption} partialParams
11059
+ **/
11060
+ setPartialParams: GenericTxCall<Rv, (partialParams: PalletCoreFellowshipParamsTypeOption) => ChainSubmittableExtrinsic<Rv, {
11061
+ pallet: 'CoreFellowship';
11062
+ palletCall: {
11063
+ name: 'SetPartialParams';
11064
+ params: {
11065
+ partialParams: PalletCoreFellowshipParamsTypeOption;
11066
+ };
11067
+ };
11068
+ }>>;
10735
11069
  /**
10736
11070
  * Generic pallet tx call
10737
11071
  **/
@@ -11994,6 +12328,48 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
11994
12328
  };
11995
12329
  };
11996
12330
  }>>;
12331
+ /**
12332
+ * Disapprove the proposal and burn the cost held for storing this proposal.
12333
+ *
12334
+ * Parameters:
12335
+ * - `origin`: must be the `KillOrigin`.
12336
+ * - `proposal_hash`: The hash of the proposal that should be killed.
12337
+ *
12338
+ * Emits `Killed` and `ProposalCostBurned` if any cost was held for a given proposal.
12339
+ *
12340
+ * @param {H256} proposalHash
12341
+ **/
12342
+ kill: GenericTxCall<Rv, (proposalHash: H256) => ChainSubmittableExtrinsic<Rv, {
12343
+ pallet: 'AllianceMotion';
12344
+ palletCall: {
12345
+ name: 'Kill';
12346
+ params: {
12347
+ proposalHash: H256;
12348
+ };
12349
+ };
12350
+ }>>;
12351
+ /**
12352
+ * Release the cost held for storing a proposal once the given proposal is completed.
12353
+ *
12354
+ * If there is no associated cost for the given proposal, this call will have no effect.
12355
+ *
12356
+ * Parameters:
12357
+ * - `origin`: must be `Signed` or `Root`.
12358
+ * - `proposal_hash`: The hash of the proposal.
12359
+ *
12360
+ * Emits `ProposalCostReleased` if any cost held for a given proposal.
12361
+ *
12362
+ * @param {H256} proposalHash
12363
+ **/
12364
+ releaseProposalCost: GenericTxCall<Rv, (proposalHash: H256) => ChainSubmittableExtrinsic<Rv, {
12365
+ pallet: 'AllianceMotion';
12366
+ palletCall: {
12367
+ name: 'ReleaseProposalCost';
12368
+ params: {
12369
+ proposalHash: H256;
12370
+ };
12371
+ };
12372
+ }>>;
11997
12373
  /**
11998
12374
  * Generic pallet tx call
11999
12375
  **/
@@ -12270,8 +12646,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
12270
12646
  **/
12271
12647
  nominationPools: {
12272
12648
  /**
12273
- * Stake funds with a pool. The amount to bond is transferred from the member to the
12274
- * pools account and immediately increases the pools bond.
12649
+ * Stake funds with a pool. The amount to bond is transferred from the member to the pool
12650
+ * account and immediately increases the pools bond.
12651
+ *
12652
+ * The method of transferring the amount to the pool account is determined by
12653
+ * [`adapter::StakeStrategyType`]. If the pool is configured to use
12654
+ * [`adapter::StakeStrategyType::Delegate`], the funds remain in the account of
12655
+ * the `origin`, while the pool gains the right to use these funds for staking.
12275
12656
  *
12276
12657
  * # Note
12277
12658
  *
@@ -12322,7 +12703,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
12322
12703
  * The member will earn rewards pro rata based on the members stake vs the sum of the
12323
12704
  * members in the pools stake. Rewards do not "expire".
12324
12705
  *
12325
- * See `claim_payout_other` to caim rewards on bahalf of some `other` pool member.
12706
+ * See `claim_payout_other` to claim rewards on behalf of some `other` pool member.
12326
12707
  *
12327
12708
  **/
12328
12709
  claimPayout: GenericTxCall<Rv, () => ChainSubmittableExtrinsic<Rv, {
@@ -12417,7 +12798,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
12417
12798
  *
12418
12799
  * # Note
12419
12800
  *
12420
- * If the target is the depositor, the pool will be destroyed.
12801
+ * - If the target is the depositor, the pool will be destroyed.
12802
+ * - If the pool has any pending slash, we also try to slash the member before letting them
12803
+ * withdraw. This calculation adds some weight overhead and is only defensive. In reality,
12804
+ * pool slashes must have been already applied via permissionless [`Call::apply_slash`].
12421
12805
  *
12422
12806
  * @param {MultiAddressLike} memberAccount
12423
12807
  * @param {number} numSlashingSpans
@@ -12568,7 +12952,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
12568
12952
  }>>;
12569
12953
  /**
12570
12954
  * Update configurations for the nomination pools. The origin for this call must be
12571
- * Root.
12955
+ * [`Config::AdminOrigin`].
12572
12956
  *
12573
12957
  * # Arguments
12574
12958
  *
@@ -12664,7 +13048,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
12664
13048
  *
12665
13049
  * In the case of `origin != other`, `origin` can only bond extra pending rewards of
12666
13050
  * `other` members assuming set_claim_permission for the given member is
12667
- * `PermissionlessAll` or `PermissionlessCompound`.
13051
+ * `PermissionlessCompound` or `PermissionlessAll`.
12668
13052
  *
12669
13053
  * @param {MultiAddressLike} member
12670
13054
  * @param {PalletNominationPoolsBondExtra} extra
@@ -12683,15 +13067,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
12683
13067
  * Allows a pool member to set a claim permission to allow or disallow permissionless
12684
13068
  * bonding and withdrawing.
12685
13069
  *
12686
- * By default, this is `Permissioned`, which implies only the pool member themselves can
12687
- * claim their pending rewards. If a pool member wishes so, they can set this to
12688
- * `PermissionlessAll` to allow any account to claim their rewards and bond extra to the
12689
- * pool.
12690
- *
12691
13070
  * # Arguments
12692
13071
  *
12693
13072
  * * `origin` - Member of a pool.
12694
- * * `actor` - Account to claim reward. // improve this
13073
+ * * `permission` - The permission to be applied.
12695
13074
  *
12696
13075
  * @param {PalletNominationPoolsClaimPermission} permission
12697
13076
  **/
@@ -12707,8 +13086,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
12707
13086
  /**
12708
13087
  * `origin` can claim payouts on some pool member `other`'s behalf.
12709
13088
  *
12710
- * Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order
12711
- * for this call to be successful.
13089
+ * Pool member `other` must have a `PermissionlessWithdraw` or `PermissionlessAll` claim
13090
+ * permission for this call to be successful.
12712
13091
  *
12713
13092
  * @param {AccountId32Like} other
12714
13093
  **/
@@ -12822,7 +13201,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
12822
13201
  * Set or remove a pool's commission claim permission.
12823
13202
  *
12824
13203
  * Determines who can claim the pool's pending commission. Only the `Root` role of the pool
12825
- * is able to conifigure commission claim permissions.
13204
+ * is able to configure commission claim permissions.
12826
13205
  *
12827
13206
  * @param {number} poolId
12828
13207
  * @param {PalletNominationPoolsCommissionClaimPermission | undefined} permission
@@ -12837,6 +13216,70 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
12837
13216
  };
12838
13217
  };
12839
13218
  }>>;
13219
+ /**
13220
+ * Apply a pending slash on a member.
13221
+ *
13222
+ * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
13223
+ * [`adapter::StakeStrategyType::Delegate`].
13224
+ *
13225
+ * This call can be dispatched permissionlessly (i.e. by any account). If the member has
13226
+ * slash to be applied, caller may be rewarded with the part of the slash.
13227
+ *
13228
+ * @param {MultiAddressLike} memberAccount
13229
+ **/
13230
+ applySlash: GenericTxCall<Rv, (memberAccount: MultiAddressLike) => ChainSubmittableExtrinsic<Rv, {
13231
+ pallet: 'NominationPools';
13232
+ palletCall: {
13233
+ name: 'ApplySlash';
13234
+ params: {
13235
+ memberAccount: MultiAddressLike;
13236
+ };
13237
+ };
13238
+ }>>;
13239
+ /**
13240
+ * Migrates delegated funds from the pool account to the `member_account`.
13241
+ *
13242
+ * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
13243
+ * [`adapter::StakeStrategyType::Delegate`].
13244
+ *
13245
+ * This is a permission-less call and refunds any fee if claim is successful.
13246
+ *
13247
+ * If the pool has migrated to delegation based staking, the staked tokens of pool members
13248
+ * can be moved and held in their own account. See [`adapter::DelegateStake`]
13249
+ *
13250
+ * @param {MultiAddressLike} memberAccount
13251
+ **/
13252
+ migrateDelegation: GenericTxCall<Rv, (memberAccount: MultiAddressLike) => ChainSubmittableExtrinsic<Rv, {
13253
+ pallet: 'NominationPools';
13254
+ palletCall: {
13255
+ name: 'MigrateDelegation';
13256
+ params: {
13257
+ memberAccount: MultiAddressLike;
13258
+ };
13259
+ };
13260
+ }>>;
13261
+ /**
13262
+ * Migrate pool from [`adapter::StakeStrategyType::Transfer`] to
13263
+ * [`adapter::StakeStrategyType::Delegate`].
13264
+ *
13265
+ * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
13266
+ * [`adapter::StakeStrategyType::Delegate`].
13267
+ *
13268
+ * This call can be dispatched permissionlessly, and refunds any fee if successful.
13269
+ *
13270
+ * If the pool has already migrated to delegation based staking, this call will fail.
13271
+ *
13272
+ * @param {number} poolId
13273
+ **/
13274
+ migratePoolToDelegateStake: GenericTxCall<Rv, (poolId: number) => ChainSubmittableExtrinsic<Rv, {
13275
+ pallet: 'NominationPools';
13276
+ palletCall: {
13277
+ name: 'MigratePoolToDelegateStake';
13278
+ params: {
13279
+ poolId: number;
13280
+ };
13281
+ };
13282
+ }>>;
12840
13283
  /**
12841
13284
  * Generic pallet tx call
12842
13285
  **/
@@ -13234,7 +13677,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
13234
13677
  * calls to render the liquidity withdrawable and rectify the exchange rate.
13235
13678
  *
13236
13679
  * Once liquidity is added, someone may successfully call
13237
- * [`Pallet::swap_exact_tokens_for_tokens`] successfully.
13680
+ * [`Pallet::swap_exact_tokens_for_tokens`].
13238
13681
  *
13239
13682
  * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset1
13240
13683
  * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset2
@@ -13339,6 +13782,32 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
13339
13782
  };
13340
13783
  };
13341
13784
  }>>;
13785
+ /**
13786
+ * Touch an existing pool to fulfill prerequisites before providing liquidity, such as
13787
+ * ensuring that the pool's accounts are in place. It is typically useful when a pool
13788
+ * creator removes the pool's accounts and does not provide a liquidity. This action may
13789
+ * involve holding assets from the caller as a deposit for creating the pool's accounts.
13790
+ *
13791
+ * The origin must be Signed.
13792
+ *
13793
+ * - `asset1`: The asset ID of an existing pool with a pair (asset1, asset2).
13794
+ * - `asset2`: The asset ID of an existing pool with a pair (asset1, asset2).
13795
+ *
13796
+ * Emits `Touched` event when successful.
13797
+ *
13798
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset1
13799
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset2
13800
+ **/
13801
+ touch: GenericTxCall<Rv, (asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId) => ChainSubmittableExtrinsic<Rv, {
13802
+ pallet: 'AssetConversion';
13803
+ palletCall: {
13804
+ name: 'Touch';
13805
+ params: {
13806
+ asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId;
13807
+ asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId;
13808
+ };
13809
+ };
13810
+ }>>;
13342
13811
  /**
13343
13812
  * Generic pallet tx call
13344
13813
  **/
@@ -13900,19 +14369,23 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
13900
14369
  * Begin the Bulk Coretime sales rotation.
13901
14370
  *
13902
14371
  * - `origin`: Must be Root or pass `AdminOrigin`.
13903
- * - `initial_price`: The price of Bulk Coretime in the first sale.
13904
- * - `core_count`: The number of cores which can be allocated.
14372
+ * - `end_price`: The price after the leadin period of Bulk Coretime in the first sale.
14373
+ * - `extra_cores`: Number of extra cores that should be requested on top of the cores
14374
+ * required for `Reservations` and `Leases`.
13905
14375
  *
13906
- * @param {bigint} initialPrice
13907
- * @param {number} coreCount
14376
+ * This will call [`Self::request_core_count`] internally to set the correct core count on
14377
+ * the relay chain.
14378
+ *
14379
+ * @param {bigint} endPrice
14380
+ * @param {number} extraCores
13908
14381
  **/
13909
- startSales: GenericTxCall<Rv, (initialPrice: bigint, coreCount: number) => ChainSubmittableExtrinsic<Rv, {
14382
+ startSales: GenericTxCall<Rv, (endPrice: bigint, extraCores: number) => ChainSubmittableExtrinsic<Rv, {
13910
14383
  pallet: 'Broker';
13911
14384
  palletCall: {
13912
14385
  name: 'StartSales';
13913
14386
  params: {
13914
- initialPrice: bigint;
13915
- coreCount: number;
14387
+ endPrice: bigint;
14388
+ extraCores: number;
13916
14389
  };
13917
14390
  };
13918
14391
  }>>;
@@ -14067,13 +14540,12 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
14067
14540
  /**
14068
14541
  * Claim the revenue owed from inclusion in the Instantaneous Coretime Pool.
14069
14542
  *
14070
- * - `origin`: Must be a Signed origin of the account which owns the Region `region_id`.
14543
+ * - `origin`: Must be a Signed origin.
14071
14544
  * - `region_id`: The Region which was assigned to the Pool.
14072
- * - `max_timeslices`: The maximum number of timeslices which should be processed. This may
14073
- * effect the weight of the call but should be ideally made equivalant to the length of
14074
- * the Region `region_id`. If it is less than this, then further dispatches will be
14075
- * required with the `region_id` which makes up any remainders of the region to be
14076
- * collected.
14545
+ * - `max_timeslices`: The maximum number of timeslices which should be processed. This
14546
+ * must be greater than 0. This may affect the weight of the call but should be ideally
14547
+ * made equivalent to the length of the Region `region_id`. If less, further dispatches
14548
+ * will be required with the same `region_id` to claim revenue for the remainder.
14077
14549
  *
14078
14550
  * @param {PalletBrokerRegionId} regionId
14079
14551
  * @param {number} maxTimeslices
@@ -14211,16 +14683,94 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
14211
14683
  };
14212
14684
  }>>;
14213
14685
  /**
14214
- * Generic pallet tx call
14215
- **/
14216
- [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
14217
- };
14218
- /**
14219
- * Pallet `Mixnet`'s transaction calls
14220
- **/
14221
- mixnet: {
14222
- /**
14223
- * Register a mixnode for the following session.
14686
+ *
14687
+ * @param {PalletBrokerOnDemandRevenueRecord} revenue
14688
+ **/
14689
+ notifyRevenue: GenericTxCall<Rv, (revenue: PalletBrokerOnDemandRevenueRecord) => ChainSubmittableExtrinsic<Rv, {
14690
+ pallet: 'Broker';
14691
+ palletCall: {
14692
+ name: 'NotifyRevenue';
14693
+ params: {
14694
+ revenue: PalletBrokerOnDemandRevenueRecord;
14695
+ };
14696
+ };
14697
+ }>>;
14698
+ /**
14699
+ * Extrinsic for enabling auto renewal.
14700
+ *
14701
+ * Callable by the sovereign account of the task on the specified core. This account
14702
+ * will be charged at the start of every bulk period for renewing core time.
14703
+ *
14704
+ * - `origin`: Must be the sovereign account of the task
14705
+ * - `core`: The core to which the task to be renewed is currently assigned.
14706
+ * - `task`: The task for which we want to enable auto renewal.
14707
+ * - `workload_end_hint`: should be used when enabling auto-renewal for a core that is not
14708
+ * expiring in the upcoming bulk period (e.g., due to holding a lease) since it would be
14709
+ * inefficient to look up when the core expires to schedule the next renewal.
14710
+ *
14711
+ * @param {number} core
14712
+ * @param {number} task
14713
+ * @param {number | undefined} workloadEndHint
14714
+ **/
14715
+ enableAutoRenew: GenericTxCall<Rv, (core: number, task: number, workloadEndHint: number | undefined) => ChainSubmittableExtrinsic<Rv, {
14716
+ pallet: 'Broker';
14717
+ palletCall: {
14718
+ name: 'EnableAutoRenew';
14719
+ params: {
14720
+ core: number;
14721
+ task: number;
14722
+ workloadEndHint: number | undefined;
14723
+ };
14724
+ };
14725
+ }>>;
14726
+ /**
14727
+ * Extrinsic for disabling auto renewal.
14728
+ *
14729
+ * Callable by the sovereign account of the task on the specified core.
14730
+ *
14731
+ * - `origin`: Must be the sovereign account of the task.
14732
+ * - `core`: The core for which we want to disable auto renewal.
14733
+ * - `task`: The task for which we want to disable auto renewal.
14734
+ *
14735
+ * @param {number} core
14736
+ * @param {number} task
14737
+ **/
14738
+ disableAutoRenew: GenericTxCall<Rv, (core: number, task: number) => ChainSubmittableExtrinsic<Rv, {
14739
+ pallet: 'Broker';
14740
+ palletCall: {
14741
+ name: 'DisableAutoRenew';
14742
+ params: {
14743
+ core: number;
14744
+ task: number;
14745
+ };
14746
+ };
14747
+ }>>;
14748
+ /**
14749
+ *
14750
+ * @param {number} id
14751
+ * @param {number} other
14752
+ **/
14753
+ swapLeases: GenericTxCall<Rv, (id: number, other: number) => ChainSubmittableExtrinsic<Rv, {
14754
+ pallet: 'Broker';
14755
+ palletCall: {
14756
+ name: 'SwapLeases';
14757
+ params: {
14758
+ id: number;
14759
+ other: number;
14760
+ };
14761
+ };
14762
+ }>>;
14763
+ /**
14764
+ * Generic pallet tx call
14765
+ **/
14766
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
14767
+ };
14768
+ /**
14769
+ * Pallet `Mixnet`'s transaction calls
14770
+ **/
14771
+ mixnet: {
14772
+ /**
14773
+ * Register a mixnode for the following session.
14224
14774
  *
14225
14775
  * @param {PalletMixnetRegistration} registration
14226
14776
  * @param {SpMixnetAppSignature} signature
@@ -14266,4 +14816,301 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
14266
14816
  **/
14267
14817
  [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
14268
14818
  };
14819
+ /**
14820
+ * Pallet `AssetConversionMigration`'s transaction calls
14821
+ **/
14822
+ assetConversionMigration: {
14823
+ /**
14824
+ * Migrates an existing pool to a new account ID derivation method for a given asset pair.
14825
+ * If the migration is successful, transaction fees are refunded to the caller.
14826
+ *
14827
+ * Must be signed.
14828
+ *
14829
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset1
14830
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset2
14831
+ **/
14832
+ migrateToNewAccount: GenericTxCall<Rv, (asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId) => ChainSubmittableExtrinsic<Rv, {
14833
+ pallet: 'AssetConversionMigration';
14834
+ palletCall: {
14835
+ name: 'MigrateToNewAccount';
14836
+ params: {
14837
+ asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId;
14838
+ asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId;
14839
+ };
14840
+ };
14841
+ }>>;
14842
+ /**
14843
+ * Generic pallet tx call
14844
+ **/
14845
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
14846
+ };
14847
+ /**
14848
+ * Pallet `Revive`'s transaction calls
14849
+ **/
14850
+ revive: {
14851
+ /**
14852
+ * A raw EVM transaction, typically dispatched by an Ethereum JSON-RPC server.
14853
+ *
14854
+ * # Parameters
14855
+ *
14856
+ * * `payload`: The RLP-encoded [`crate::evm::TransactionLegacySigned`].
14857
+ * * `gas_limit`: The gas limit enforced during contract execution.
14858
+ * * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
14859
+ * storage usage.
14860
+ *
14861
+ * # Note
14862
+ *
14863
+ * This call cannot be dispatched directly; attempting to do so will result in a failed
14864
+ * transaction. It serves as a wrapper for an Ethereum transaction. When submitted, the
14865
+ * runtime converts it into a [`sp_runtime::generic::CheckedExtrinsic`] by recovering the
14866
+ * signer and validating the transaction.
14867
+ *
14868
+ * @param {BytesLike} payload
14869
+ * @param {SpWeightsWeightV2Weight} gasLimit
14870
+ * @param {bigint} storageDepositLimit
14871
+ **/
14872
+ ethTransact: GenericTxCall<Rv, (payload: BytesLike, gasLimit: SpWeightsWeightV2Weight, storageDepositLimit: bigint) => ChainSubmittableExtrinsic<Rv, {
14873
+ pallet: 'Revive';
14874
+ palletCall: {
14875
+ name: 'EthTransact';
14876
+ params: {
14877
+ payload: BytesLike;
14878
+ gasLimit: SpWeightsWeightV2Weight;
14879
+ storageDepositLimit: bigint;
14880
+ };
14881
+ };
14882
+ }>>;
14883
+ /**
14884
+ * Makes a call to an account, optionally transferring some balance.
14885
+ *
14886
+ * # Parameters
14887
+ *
14888
+ * * `dest`: Address of the contract to call.
14889
+ * * `value`: The balance to transfer from the `origin` to `dest`.
14890
+ * * `gas_limit`: The gas limit enforced when executing the constructor.
14891
+ * * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
14892
+ * caller to pay for the storage consumed.
14893
+ * * `data`: The input data to pass to the contract.
14894
+ *
14895
+ * * If the account is a smart-contract account, the associated code will be
14896
+ * executed and any value will be transferred.
14897
+ * * If the account is a regular account, any value will be transferred.
14898
+ * * If no account exists and the call value is not less than `existential_deposit`,
14899
+ * a regular account will be created and any value will be transferred.
14900
+ *
14901
+ * @param {H160} dest
14902
+ * @param {bigint} value
14903
+ * @param {SpWeightsWeightV2Weight} gasLimit
14904
+ * @param {bigint} storageDepositLimit
14905
+ * @param {BytesLike} data
14906
+ **/
14907
+ call: GenericTxCall<Rv, (dest: H160, value: bigint, gasLimit: SpWeightsWeightV2Weight, storageDepositLimit: bigint, data: BytesLike) => ChainSubmittableExtrinsic<Rv, {
14908
+ pallet: 'Revive';
14909
+ palletCall: {
14910
+ name: 'Call';
14911
+ params: {
14912
+ dest: H160;
14913
+ value: bigint;
14914
+ gasLimit: SpWeightsWeightV2Weight;
14915
+ storageDepositLimit: bigint;
14916
+ data: BytesLike;
14917
+ };
14918
+ };
14919
+ }>>;
14920
+ /**
14921
+ * Instantiates a contract from a previously deployed wasm binary.
14922
+ *
14923
+ * This function is identical to [`Self::instantiate_with_code`] but without the
14924
+ * code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
14925
+ * must be supplied.
14926
+ *
14927
+ * @param {bigint} value
14928
+ * @param {SpWeightsWeightV2Weight} gasLimit
14929
+ * @param {bigint} storageDepositLimit
14930
+ * @param {H256} codeHash
14931
+ * @param {BytesLike} data
14932
+ * @param {FixedBytes<32> | undefined} salt
14933
+ **/
14934
+ instantiate: GenericTxCall<Rv, (value: bigint, gasLimit: SpWeightsWeightV2Weight, storageDepositLimit: bigint, codeHash: H256, data: BytesLike, salt: FixedBytes<32> | undefined) => ChainSubmittableExtrinsic<Rv, {
14935
+ pallet: 'Revive';
14936
+ palletCall: {
14937
+ name: 'Instantiate';
14938
+ params: {
14939
+ value: bigint;
14940
+ gasLimit: SpWeightsWeightV2Weight;
14941
+ storageDepositLimit: bigint;
14942
+ codeHash: H256;
14943
+ data: BytesLike;
14944
+ salt: FixedBytes<32> | undefined;
14945
+ };
14946
+ };
14947
+ }>>;
14948
+ /**
14949
+ * Instantiates a new contract from the supplied `code` optionally transferring
14950
+ * some balance.
14951
+ *
14952
+ * This dispatchable has the same effect as calling [`Self::upload_code`] +
14953
+ * [`Self::instantiate`]. Bundling them together provides efficiency gains. Please
14954
+ * also check the documentation of [`Self::upload_code`].
14955
+ *
14956
+ * # Parameters
14957
+ *
14958
+ * * `value`: The balance to transfer from the `origin` to the newly created contract.
14959
+ * * `gas_limit`: The gas limit enforced when executing the constructor.
14960
+ * * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
14961
+ * from the caller to pay for the storage consumed.
14962
+ * * `code`: The contract code to deploy in raw bytes.
14963
+ * * `data`: The input data to pass to the contract constructor.
14964
+ * * `salt`: Used for the address derivation. If `Some` is supplied then `CREATE2`
14965
+ * semantics are used. If `None` then `CRATE1` is used.
14966
+ *
14967
+ *
14968
+ * Instantiation is executed as follows:
14969
+ *
14970
+ * - The supplied `code` is deployed, and a `code_hash` is created for that code.
14971
+ * - If the `code_hash` already exists on the chain the underlying `code` will be shared.
14972
+ * - The destination address is computed based on the sender, code_hash and the salt.
14973
+ * - The smart-contract account is created at the computed address.
14974
+ * - The `value` is transferred to the new account.
14975
+ * - The `deploy` function is executed in the context of the newly-created account.
14976
+ *
14977
+ * @param {bigint} value
14978
+ * @param {SpWeightsWeightV2Weight} gasLimit
14979
+ * @param {bigint} storageDepositLimit
14980
+ * @param {BytesLike} code
14981
+ * @param {BytesLike} data
14982
+ * @param {FixedBytes<32> | undefined} salt
14983
+ **/
14984
+ instantiateWithCode: GenericTxCall<Rv, (value: bigint, gasLimit: SpWeightsWeightV2Weight, storageDepositLimit: bigint, code: BytesLike, data: BytesLike, salt: FixedBytes<32> | undefined) => ChainSubmittableExtrinsic<Rv, {
14985
+ pallet: 'Revive';
14986
+ palletCall: {
14987
+ name: 'InstantiateWithCode';
14988
+ params: {
14989
+ value: bigint;
14990
+ gasLimit: SpWeightsWeightV2Weight;
14991
+ storageDepositLimit: bigint;
14992
+ code: BytesLike;
14993
+ data: BytesLike;
14994
+ salt: FixedBytes<32> | undefined;
14995
+ };
14996
+ };
14997
+ }>>;
14998
+ /**
14999
+ * Upload new `code` without instantiating a contract from it.
15000
+ *
15001
+ * If the code does not already exist a deposit is reserved from the caller
15002
+ * and unreserved only when [`Self::remove_code`] is called. The size of the reserve
15003
+ * depends on the size of the supplied `code`.
15004
+ *
15005
+ * # Note
15006
+ *
15007
+ * Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
15008
+ * To avoid this situation a constructor could employ access control so that it can
15009
+ * only be instantiated by permissioned entities. The same is true when uploading
15010
+ * through [`Self::instantiate_with_code`].
15011
+ *
15012
+ * @param {BytesLike} code
15013
+ * @param {bigint} storageDepositLimit
15014
+ **/
15015
+ uploadCode: GenericTxCall<Rv, (code: BytesLike, storageDepositLimit: bigint) => ChainSubmittableExtrinsic<Rv, {
15016
+ pallet: 'Revive';
15017
+ palletCall: {
15018
+ name: 'UploadCode';
15019
+ params: {
15020
+ code: BytesLike;
15021
+ storageDepositLimit: bigint;
15022
+ };
15023
+ };
15024
+ }>>;
15025
+ /**
15026
+ * Remove the code stored under `code_hash` and refund the deposit to its owner.
15027
+ *
15028
+ * A code can only be removed by its original uploader (its owner) and only if it is
15029
+ * not used by any contract.
15030
+ *
15031
+ * @param {H256} codeHash
15032
+ **/
15033
+ removeCode: GenericTxCall<Rv, (codeHash: H256) => ChainSubmittableExtrinsic<Rv, {
15034
+ pallet: 'Revive';
15035
+ palletCall: {
15036
+ name: 'RemoveCode';
15037
+ params: {
15038
+ codeHash: H256;
15039
+ };
15040
+ };
15041
+ }>>;
15042
+ /**
15043
+ * Privileged function that changes the code of an existing contract.
15044
+ *
15045
+ * This takes care of updating refcounts and all other necessary operations. Returns
15046
+ * an error if either the `code_hash` or `dest` do not exist.
15047
+ *
15048
+ * # Note
15049
+ *
15050
+ * This does **not** change the address of the contract in question. This means
15051
+ * that the contract address is no longer derived from its code hash after calling
15052
+ * this dispatchable.
15053
+ *
15054
+ * @param {H160} dest
15055
+ * @param {H256} codeHash
15056
+ **/
15057
+ setCode: GenericTxCall<Rv, (dest: H160, codeHash: H256) => ChainSubmittableExtrinsic<Rv, {
15058
+ pallet: 'Revive';
15059
+ palletCall: {
15060
+ name: 'SetCode';
15061
+ params: {
15062
+ dest: H160;
15063
+ codeHash: H256;
15064
+ };
15065
+ };
15066
+ }>>;
15067
+ /**
15068
+ * Register the callers account id so that it can be used in contract interactions.
15069
+ *
15070
+ * This will error if the origin is already mapped or is a eth native `Address20`. It will
15071
+ * take a deposit that can be released by calling [`Self::unmap_account`].
15072
+ *
15073
+ **/
15074
+ mapAccount: GenericTxCall<Rv, () => ChainSubmittableExtrinsic<Rv, {
15075
+ pallet: 'Revive';
15076
+ palletCall: {
15077
+ name: 'MapAccount';
15078
+ };
15079
+ }>>;
15080
+ /**
15081
+ * Unregister the callers account id in order to free the deposit.
15082
+ *
15083
+ * There is no reason to ever call this function other than freeing up the deposit.
15084
+ * This is only useful when the account should no longer be used.
15085
+ *
15086
+ **/
15087
+ unmapAccount: GenericTxCall<Rv, () => ChainSubmittableExtrinsic<Rv, {
15088
+ pallet: 'Revive';
15089
+ palletCall: {
15090
+ name: 'UnmapAccount';
15091
+ };
15092
+ }>>;
15093
+ /**
15094
+ * Dispatch an `call` with the origin set to the callers fallback address.
15095
+ *
15096
+ * Every `AccountId32` can control its corresponding fallback account. The fallback account
15097
+ * is the `AccountId20` with the last 12 bytes set to `0xEE`. This is essentially a
15098
+ * recovery function in case an `AccountId20` was used without creating a mapping first.
15099
+ *
15100
+ * @param {KitchensinkRuntimeRuntimeCallLike} call
15101
+ **/
15102
+ dispatchAsFallbackAccount: GenericTxCall<Rv, (call: KitchensinkRuntimeRuntimeCallLike) => ChainSubmittableExtrinsic<Rv, {
15103
+ pallet: 'Revive';
15104
+ palletCall: {
15105
+ name: 'DispatchAsFallbackAccount';
15106
+ params: {
15107
+ call: KitchensinkRuntimeRuntimeCallLike;
15108
+ };
15109
+ };
15110
+ }>>;
15111
+ /**
15112
+ * Generic pallet tx call
15113
+ **/
15114
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
15115
+ };
14269
15116
  }