@dedot/chaintypes 0.53.0 → 0.55.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.
package/substrate/tx.d.ts CHANGED
@@ -23,6 +23,7 @@ import type {
23
23
  FixedBytes,
24
24
  FixedU64,
25
25
  Perquintill,
26
+ H160,
26
27
  } from 'dedot/codecs';
27
28
  import type {
28
29
  KitchensinkRuntimeRuntimeCallLike,
@@ -44,6 +45,7 @@ import type {
44
45
  PalletStakingPalletConfigOpU32,
45
46
  PalletStakingPalletConfigOpPercent,
46
47
  PalletStakingPalletConfigOpPerbill,
48
+ PalletStakingUnlockChunk,
47
49
  KitchensinkRuntimeSessionKeys,
48
50
  FrameSupportPreimagesBounded,
49
51
  PalletDemocracyVoteAccountVote,
@@ -51,6 +53,7 @@ import type {
51
53
  PalletDemocracyMetadataOwner,
52
54
  PalletElectionsPhragmenRenouncing,
53
55
  SpConsensusGrandpaEquivocationProof,
56
+ FrameSupportTokensFungibleUnionOfNativeOrWithId,
54
57
  PalletContractsWasmDeterminism,
55
58
  PalletImOnlineHeartbeat,
56
59
  PalletImOnlineSr25519AppSr25519Signature,
@@ -59,7 +62,9 @@ import type {
59
62
  PalletVestingVestingInfo,
60
63
  KitchensinkRuntimeProxyType,
61
64
  PalletMultisigTimepoint,
62
- SpConsensusBeefyEquivocationProof,
65
+ SpConsensusBeefyDoubleVotingProof,
66
+ SpConsensusBeefyForkVotingProof,
67
+ SpConsensusBeefyFutureBlockVotingProof,
63
68
  PalletUniquesDestroyWitness,
64
69
  PalletNftsCollectionConfig,
65
70
  PalletNftsDestroyWitness,
@@ -75,6 +80,7 @@ import type {
75
80
  PalletNftsPreSignedAttributes,
76
81
  PalletCoreFellowshipParamsType,
77
82
  PalletCoreFellowshipWish,
83
+ PalletCoreFellowshipParamsTypeOption,
78
84
  SpTransactionStorageProofTransactionStorageProof,
79
85
  PalletStateTrieMigrationMigrationLimits,
80
86
  PalletStateTrieMigrationMigrationTask,
@@ -94,7 +100,6 @@ import type {
94
100
  PalletNominationPoolsClaimPermission,
95
101
  PalletNominationPoolsCommissionChangeRate,
96
102
  PalletNominationPoolsCommissionClaimPermission,
97
- FrameSupportTokensFungibleUnionOfNativeOrWithId,
98
103
  PalletMigrationsMigrationCursor,
99
104
  PalletMigrationsHistoricCleanupSelector,
100
105
  PalletBrokerConfigRecord,
@@ -102,6 +107,7 @@ import type {
102
107
  PalletBrokerRegionId,
103
108
  PalletBrokerCoreMask,
104
109
  PalletBrokerFinality,
110
+ PalletBrokerOnDemandRevenueRecord,
105
111
  PalletMixnetRegistration,
106
112
  SpMixnetAppSignature,
107
113
  KitchensinkRuntimeRuntimeParameters,
@@ -1024,7 +1030,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1024
1030
  *
1025
1031
  * This will waive the transaction fee if at least all but 10% of the accounts needed to
1026
1032
  * be upgraded. (We let some not have to be upgraded just in order to allow for the
1027
- * possibililty of churn).
1033
+ * possibility of churn).
1028
1034
  *
1029
1035
  * @param {Array<AccountId32Like>} who
1030
1036
  **/
@@ -1094,6 +1100,35 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1094
1100
  >
1095
1101
  >;
1096
1102
 
1103
+ /**
1104
+ * Burn the specified liquid free balance from the origin account.
1105
+ *
1106
+ * If the origin's account ends up below the existential deposit as a result
1107
+ * of the burn and `keep_alive` is false, the account will be reaped.
1108
+ *
1109
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
1110
+ * this `burn` operation will reduce total issuance by the amount _burned_.
1111
+ *
1112
+ * @param {bigint} value
1113
+ * @param {boolean} keepAlive
1114
+ **/
1115
+ burn: GenericTxCall<
1116
+ Rv,
1117
+ (
1118
+ value: bigint,
1119
+ keepAlive: boolean,
1120
+ ) => ChainSubmittableExtrinsic<
1121
+ Rv,
1122
+ {
1123
+ pallet: 'Balances';
1124
+ palletCall: {
1125
+ name: 'Burn';
1126
+ params: { value: bigint; keepAlive: boolean };
1127
+ };
1128
+ }
1129
+ >
1130
+ >;
1131
+
1097
1132
  /**
1098
1133
  * Generic pallet tx call
1099
1134
  **/
@@ -1268,7 +1303,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1268
1303
  * - Three extra DB entries.
1269
1304
  *
1270
1305
  * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
1271
- * unless the `origin` falls below _existential deposit_ and gets removed as dust.
1306
+ * unless the `origin` falls below _existential deposit_ (or equal to 0) and gets removed
1307
+ * as dust.
1272
1308
  *
1273
1309
  * @param {bigint} value
1274
1310
  * @param {PalletStakingRewardDestination} payee
@@ -1325,7 +1361,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1325
1361
  /**
1326
1362
  * Schedule a portion of the stash to be unlocked ready for transfer out after the bond
1327
1363
  * period ends. If this leaves an amount actively bonded less than
1328
- * T::Currency::minimum_balance(), then it is increased to the full amount.
1364
+ * [`asset::existential_deposit`], then it is increased to the full amount.
1329
1365
  *
1330
1366
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
1331
1367
  *
@@ -1377,7 +1413,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1377
1413
  * this call results in a complete removal of all the data related to the stash account.
1378
1414
  * In this case, the `num_slashing_spans` must be larger or equal to the number of
1379
1415
  * slashing spans associated with the stash account in the [`SlashingSpans`] storage type,
1380
- * otherwise the call will fail. The call weight is directly propotional to
1416
+ * otherwise the call will fail. The call weight is directly proportional to
1381
1417
  * `num_slashing_spans`.
1382
1418
  *
1383
1419
  * ## Complexity
@@ -1562,7 +1598,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1562
1598
  >;
1563
1599
 
1564
1600
  /**
1565
- * Increments the ideal number of validators upto maximum of
1601
+ * Increments the ideal number of validators up to maximum of
1566
1602
  * `ElectionProviderBase::MaxWinners`.
1567
1603
  *
1568
1604
  * The dispatch origin must be Root.
@@ -1587,7 +1623,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1587
1623
  >;
1588
1624
 
1589
1625
  /**
1590
- * Scale up the ideal number of validators by a factor upto maximum of
1626
+ * Scale up the ideal number of validators by a factor up to maximum of
1591
1627
  * `ElectionProviderBase::MaxWinners`.
1592
1628
  *
1593
1629
  * The dispatch origin must be Root.
@@ -1839,6 +1875,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1839
1875
  *
1840
1876
  * 1. the `total_balance` of the stash is below existential deposit.
1841
1877
  * 2. or, the `ledger.total` of the stash is below existential deposit.
1878
+ * 3. or, existential deposit is zero and either `total_balance` or `ledger.total` is zero.
1842
1879
  *
1843
1880
  * The former can happen in cases like a slash; the latter when a fully unbonded account
1844
1881
  * is still receiving staking rewards in `RewardDestination::Staked`.
@@ -2135,6 +2172,48 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2135
2172
  >
2136
2173
  >;
2137
2174
 
2175
+ /**
2176
+ * Restores the state of a ledger which is in an inconsistent state.
2177
+ *
2178
+ * The requirements to restore a ledger are the following:
2179
+ * * The stash is bonded; or
2180
+ * * The stash is not bonded but it has a staking lock left behind; or
2181
+ * * If the stash has an associated ledger and its state is inconsistent; or
2182
+ * * If the ledger is not corrupted *but* its staking lock is out of sync.
2183
+ *
2184
+ * The `maybe_*` input parameters will overwrite the corresponding data and metadata of the
2185
+ * ledger associated with the stash. If the input parameters are not set, the ledger will
2186
+ * be reset values from on-chain state.
2187
+ *
2188
+ * @param {AccountId32Like} stash
2189
+ * @param {AccountId32Like | undefined} maybeController
2190
+ * @param {bigint | undefined} maybeTotal
2191
+ * @param {Array<PalletStakingUnlockChunk> | undefined} maybeUnlocking
2192
+ **/
2193
+ restoreLedger: GenericTxCall<
2194
+ Rv,
2195
+ (
2196
+ stash: AccountId32Like,
2197
+ maybeController: AccountId32Like | undefined,
2198
+ maybeTotal: bigint | undefined,
2199
+ maybeUnlocking: Array<PalletStakingUnlockChunk> | undefined,
2200
+ ) => ChainSubmittableExtrinsic<
2201
+ Rv,
2202
+ {
2203
+ pallet: 'Staking';
2204
+ palletCall: {
2205
+ name: 'RestoreLedger';
2206
+ params: {
2207
+ stash: AccountId32Like;
2208
+ maybeController: AccountId32Like | undefined;
2209
+ maybeTotal: bigint | undefined;
2210
+ maybeUnlocking: Array<PalletStakingUnlockChunk> | undefined;
2211
+ };
2212
+ };
2213
+ }
2214
+ >
2215
+ >;
2216
+
2138
2217
  /**
2139
2218
  * Generic pallet tx call
2140
2219
  **/
@@ -3037,6 +3116,58 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3037
3116
  >
3038
3117
  >;
3039
3118
 
3119
+ /**
3120
+ * Disapprove the proposal and burn the cost held for storing this proposal.
3121
+ *
3122
+ * Parameters:
3123
+ * - `origin`: must be the `KillOrigin`.
3124
+ * - `proposal_hash`: The hash of the proposal that should be killed.
3125
+ *
3126
+ * Emits `Killed` and `ProposalCostBurned` if any cost was held for a given proposal.
3127
+ *
3128
+ * @param {H256} proposalHash
3129
+ **/
3130
+ kill: GenericTxCall<
3131
+ Rv,
3132
+ (proposalHash: H256) => ChainSubmittableExtrinsic<
3133
+ Rv,
3134
+ {
3135
+ pallet: 'Council';
3136
+ palletCall: {
3137
+ name: 'Kill';
3138
+ params: { proposalHash: H256 };
3139
+ };
3140
+ }
3141
+ >
3142
+ >;
3143
+
3144
+ /**
3145
+ * Release the cost held for storing a proposal once the given proposal is completed.
3146
+ *
3147
+ * If there is no associated cost for the given proposal, this call will have no effect.
3148
+ *
3149
+ * Parameters:
3150
+ * - `origin`: must be `Signed` or `Root`.
3151
+ * - `proposal_hash`: The hash of the proposal.
3152
+ *
3153
+ * Emits `ProposalCostReleased` if any cost held for a given proposal.
3154
+ *
3155
+ * @param {H256} proposalHash
3156
+ **/
3157
+ releaseProposalCost: GenericTxCall<
3158
+ Rv,
3159
+ (proposalHash: H256) => ChainSubmittableExtrinsic<
3160
+ Rv,
3161
+ {
3162
+ pallet: 'Council';
3163
+ palletCall: {
3164
+ name: 'ReleaseProposalCost';
3165
+ params: { proposalHash: H256 };
3166
+ };
3167
+ }
3168
+ >
3169
+ >;
3170
+
3040
3171
  /**
3041
3172
  * Generic pallet tx call
3042
3173
  **/
@@ -3279,6 +3410,58 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3279
3410
  >
3280
3411
  >;
3281
3412
 
3413
+ /**
3414
+ * Disapprove the proposal and burn the cost held for storing this proposal.
3415
+ *
3416
+ * Parameters:
3417
+ * - `origin`: must be the `KillOrigin`.
3418
+ * - `proposal_hash`: The hash of the proposal that should be killed.
3419
+ *
3420
+ * Emits `Killed` and `ProposalCostBurned` if any cost was held for a given proposal.
3421
+ *
3422
+ * @param {H256} proposalHash
3423
+ **/
3424
+ kill: GenericTxCall<
3425
+ Rv,
3426
+ (proposalHash: H256) => ChainSubmittableExtrinsic<
3427
+ Rv,
3428
+ {
3429
+ pallet: 'TechnicalCommittee';
3430
+ palletCall: {
3431
+ name: 'Kill';
3432
+ params: { proposalHash: H256 };
3433
+ };
3434
+ }
3435
+ >
3436
+ >;
3437
+
3438
+ /**
3439
+ * Release the cost held for storing a proposal once the given proposal is completed.
3440
+ *
3441
+ * If there is no associated cost for the given proposal, this call will have no effect.
3442
+ *
3443
+ * Parameters:
3444
+ * - `origin`: must be `Signed` or `Root`.
3445
+ * - `proposal_hash`: The hash of the proposal.
3446
+ *
3447
+ * Emits `ProposalCostReleased` if any cost held for a given proposal.
3448
+ *
3449
+ * @param {H256} proposalHash
3450
+ **/
3451
+ releaseProposalCost: GenericTxCall<
3452
+ Rv,
3453
+ (proposalHash: H256) => ChainSubmittableExtrinsic<
3454
+ Rv,
3455
+ {
3456
+ pallet: 'TechnicalCommittee';
3457
+ palletCall: {
3458
+ name: 'ReleaseProposalCost';
3459
+ params: { proposalHash: H256 };
3460
+ };
3461
+ }
3462
+ >
3463
+ >;
3464
+
3282
3465
  /**
3283
3466
  * Generic pallet tx call
3284
3467
  **/
@@ -3764,112 +3947,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3764
3947
  * Pallet `Treasury`'s transaction calls
3765
3948
  **/
3766
3949
  treasury: {
3767
- /**
3768
- * Put forward a suggestion for spending.
3769
- *
3770
- * ## Dispatch Origin
3771
- *
3772
- * Must be signed.
3773
- *
3774
- * ## Details
3775
- * A deposit proportional to the value is reserved and slashed if the proposal is rejected.
3776
- * It is returned once the proposal is awarded.
3777
- *
3778
- * ### Complexity
3779
- * - O(1)
3780
- *
3781
- * ## Events
3782
- *
3783
- * Emits [`Event::Proposed`] if successful.
3784
- *
3785
- * @param {bigint} value
3786
- * @param {MultiAddressLike} beneficiary
3787
- **/
3788
- proposeSpend: GenericTxCall<
3789
- Rv,
3790
- (
3791
- value: bigint,
3792
- beneficiary: MultiAddressLike,
3793
- ) => ChainSubmittableExtrinsic<
3794
- Rv,
3795
- {
3796
- pallet: 'Treasury';
3797
- palletCall: {
3798
- name: 'ProposeSpend';
3799
- params: { value: bigint; beneficiary: MultiAddressLike };
3800
- };
3801
- }
3802
- >
3803
- >;
3804
-
3805
- /**
3806
- * Reject a proposed spend.
3807
- *
3808
- * ## Dispatch Origin
3809
- *
3810
- * Must be [`Config::RejectOrigin`].
3811
- *
3812
- * ## Details
3813
- * The original deposit will be slashed.
3814
- *
3815
- * ### Complexity
3816
- * - O(1)
3817
- *
3818
- * ## Events
3819
- *
3820
- * Emits [`Event::Rejected`] if successful.
3821
- *
3822
- * @param {number} proposalId
3823
- **/
3824
- rejectProposal: GenericTxCall<
3825
- Rv,
3826
- (proposalId: number) => ChainSubmittableExtrinsic<
3827
- Rv,
3828
- {
3829
- pallet: 'Treasury';
3830
- palletCall: {
3831
- name: 'RejectProposal';
3832
- params: { proposalId: number };
3833
- };
3834
- }
3835
- >
3836
- >;
3837
-
3838
- /**
3839
- * Approve a proposal.
3840
- *
3841
- * ## Dispatch Origin
3842
- *
3843
- * Must be [`Config::ApproveOrigin`].
3844
- *
3845
- * ## Details
3846
- *
3847
- * At a later time, the proposal will be allocated to the beneficiary and the original
3848
- * deposit will be returned.
3849
- *
3850
- * ### Complexity
3851
- * - O(1).
3852
- *
3853
- * ## Events
3854
- *
3855
- * No events are emitted from this dispatch.
3856
- *
3857
- * @param {number} proposalId
3858
- **/
3859
- approveProposal: GenericTxCall<
3860
- Rv,
3861
- (proposalId: number) => ChainSubmittableExtrinsic<
3862
- Rv,
3863
- {
3864
- pallet: 'Treasury';
3865
- palletCall: {
3866
- name: 'ApproveProposal';
3867
- params: { proposalId: number };
3868
- };
3869
- }
3870
- >
3871
- >;
3872
-
3873
3950
  /**
3874
3951
  * Propose and approve a spend of treasury funds.
3875
3952
  *
@@ -3976,7 +4053,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3976
4053
  *
3977
4054
  * Emits [`Event::AssetSpendApproved`] if successful.
3978
4055
  *
3979
- * @param {number} assetKind
4056
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} assetKind
3980
4057
  * @param {bigint} amount
3981
4058
  * @param {MultiAddressLike} beneficiary
3982
4059
  * @param {number | undefined} validFrom
@@ -3984,7 +4061,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3984
4061
  spend: GenericTxCall<
3985
4062
  Rv,
3986
4063
  (
3987
- assetKind: number,
4064
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId,
3988
4065
  amount: bigint,
3989
4066
  beneficiary: MultiAddressLike,
3990
4067
  validFrom: number | undefined,
@@ -3994,7 +4071,12 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3994
4071
  pallet: 'Treasury';
3995
4072
  palletCall: {
3996
4073
  name: 'Spend';
3997
- params: { assetKind: number; amount: bigint; beneficiary: MultiAddressLike; validFrom: number | undefined };
4074
+ params: {
4075
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
4076
+ amount: bigint;
4077
+ beneficiary: MultiAddressLike;
4078
+ validFrom: number | undefined;
4079
+ };
3998
4080
  };
3999
4081
  }
4000
4082
  >
@@ -4005,7 +4087,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4005
4087
  *
4006
4088
  * ## Dispatch Origin
4007
4089
  *
4008
- * Must be signed.
4090
+ * Must be signed
4009
4091
  *
4010
4092
  * ## Details
4011
4093
  *
@@ -4123,13 +4205,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4123
4205
  * ## Complexity
4124
4206
  * - O(1)
4125
4207
  *
4126
- * @param {number} assetKind
4208
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} assetKind
4127
4209
  * @param {FixedU128} rate
4128
4210
  **/
4129
4211
  create: GenericTxCall<
4130
4212
  Rv,
4131
4213
  (
4132
- assetKind: number,
4214
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId,
4133
4215
  rate: FixedU128,
4134
4216
  ) => ChainSubmittableExtrinsic<
4135
4217
  Rv,
@@ -4137,7 +4219,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4137
4219
  pallet: 'AssetRate';
4138
4220
  palletCall: {
4139
4221
  name: 'Create';
4140
- params: { assetKind: number; rate: FixedU128 };
4222
+ params: { assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId; rate: FixedU128 };
4141
4223
  };
4142
4224
  }
4143
4225
  >
@@ -4149,13 +4231,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4149
4231
  * ## Complexity
4150
4232
  * - O(1)
4151
4233
  *
4152
- * @param {number} assetKind
4234
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} assetKind
4153
4235
  * @param {FixedU128} rate
4154
4236
  **/
4155
4237
  update: GenericTxCall<
4156
4238
  Rv,
4157
4239
  (
4158
- assetKind: number,
4240
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId,
4159
4241
  rate: FixedU128,
4160
4242
  ) => ChainSubmittableExtrinsic<
4161
4243
  Rv,
@@ -4163,7 +4245,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4163
4245
  pallet: 'AssetRate';
4164
4246
  palletCall: {
4165
4247
  name: 'Update';
4166
- params: { assetKind: number; rate: FixedU128 };
4248
+ params: { assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId; rate: FixedU128 };
4167
4249
  };
4168
4250
  }
4169
4251
  >
@@ -4175,17 +4257,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4175
4257
  * ## Complexity
4176
4258
  * - O(1)
4177
4259
  *
4178
- * @param {number} assetKind
4260
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} assetKind
4179
4261
  **/
4180
4262
  remove: GenericTxCall<
4181
4263
  Rv,
4182
- (assetKind: number) => ChainSubmittableExtrinsic<
4264
+ (assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId) => ChainSubmittableExtrinsic<
4183
4265
  Rv,
4184
4266
  {
4185
4267
  pallet: 'AssetRate';
4186
4268
  palletCall: {
4187
4269
  name: 'Remove';
4188
- params: { assetKind: number };
4270
+ params: { assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId };
4189
4271
  };
4190
4272
  }
4191
4273
  >
@@ -4873,7 +4955,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4873
4955
  * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
4874
4956
  *
4875
4957
  * ```nocompile
4876
- * Self::registrars().get(reg_index).unwrap().fee
4958
+ * Registrars::<T>::get().get(reg_index).unwrap().fee
4877
4959
  * ```
4878
4960
  *
4879
4961
  * Emits `JudgementRequested` if successful.
@@ -5193,8 +5275,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
5193
5275
  /**
5194
5276
  * Add an `AccountId` with permission to grant usernames with a given `suffix` appended.
5195
5277
  *
5196
- * The authority can grant up to `allocation` usernames. To top up their allocation, they
5197
- * should just issue (or request via governance) a new `add_username_authority` call.
5278
+ * The authority can grant up to `allocation` usernames. To top up the allocation or
5279
+ * change the account used to grant usernames, this call can be used with the updated
5280
+ * parameters to overwrite the existing configuration.
5198
5281
  *
5199
5282
  * @param {MultiAddressLike} authority
5200
5283
  * @param {BytesLike} suffix
@@ -5221,17 +5304,21 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
5221
5304
  /**
5222
5305
  * Remove `authority` from the username authorities.
5223
5306
  *
5307
+ * @param {BytesLike} suffix
5224
5308
  * @param {MultiAddressLike} authority
5225
5309
  **/
5226
5310
  removeUsernameAuthority: GenericTxCall<
5227
5311
  Rv,
5228
- (authority: MultiAddressLike) => ChainSubmittableExtrinsic<
5312
+ (
5313
+ suffix: BytesLike,
5314
+ authority: MultiAddressLike,
5315
+ ) => ChainSubmittableExtrinsic<
5229
5316
  Rv,
5230
5317
  {
5231
5318
  pallet: 'Identity';
5232
5319
  palletCall: {
5233
5320
  name: 'RemoveUsernameAuthority';
5234
- params: { authority: MultiAddressLike };
5321
+ params: { suffix: BytesLike; authority: MultiAddressLike };
5235
5322
  };
5236
5323
  }
5237
5324
  >
@@ -5240,7 +5327,11 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
5240
5327
  /**
5241
5328
  * Set the username for `who`. Must be called by a username authority.
5242
5329
  *
5243
- * The authority must have an `allocation`. Users can either pre-sign their usernames or
5330
+ * If `use_allocation` is set, the authority must have a username allocation available to
5331
+ * spend. Otherwise, the authority will need to put up a deposit for registering the
5332
+ * username.
5333
+ *
5334
+ * Users can either pre-sign their usernames or
5244
5335
  * accept them later.
5245
5336
  *
5246
5337
  * Usernames must:
@@ -5251,6 +5342,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
5251
5342
  * @param {MultiAddressLike} who
5252
5343
  * @param {BytesLike} username
5253
5344
  * @param {SpRuntimeMultiSignature | undefined} signature
5345
+ * @param {boolean} useAllocation
5254
5346
  **/
5255
5347
  setUsernameFor: GenericTxCall<
5256
5348
  Rv,
@@ -5258,13 +5350,19 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
5258
5350
  who: MultiAddressLike,
5259
5351
  username: BytesLike,
5260
5352
  signature: SpRuntimeMultiSignature | undefined,
5353
+ useAllocation: boolean,
5261
5354
  ) => ChainSubmittableExtrinsic<
5262
5355
  Rv,
5263
5356
  {
5264
5357
  pallet: 'Identity';
5265
5358
  palletCall: {
5266
5359
  name: 'SetUsernameFor';
5267
- params: { who: MultiAddressLike; username: BytesLike; signature: SpRuntimeMultiSignature | undefined };
5360
+ params: {
5361
+ who: MultiAddressLike;
5362
+ username: BytesLike;
5363
+ signature: SpRuntimeMultiSignature | undefined;
5364
+ useAllocation: boolean;
5365
+ };
5268
5366
  };
5269
5367
  }
5270
5368
  >
@@ -5331,19 +5429,20 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
5331
5429
  >;
5332
5430
 
5333
5431
  /**
5334
- * Remove a username that corresponds to an account with no identity. Exists when a user
5335
- * gets a username but then calls `clear_identity`.
5432
+ * Start the process of removing a username by placing it in the unbinding usernames map.
5433
+ * Once the grace period has passed, the username can be deleted by calling
5434
+ * [remove_username](crate::Call::remove_username).
5336
5435
  *
5337
5436
  * @param {BytesLike} username
5338
5437
  **/
5339
- removeDanglingUsername: GenericTxCall<
5438
+ unbindUsername: GenericTxCall<
5340
5439
  Rv,
5341
5440
  (username: BytesLike) => ChainSubmittableExtrinsic<
5342
5441
  Rv,
5343
5442
  {
5344
5443
  pallet: 'Identity';
5345
5444
  palletCall: {
5346
- name: 'RemoveDanglingUsername';
5445
+ name: 'UnbindUsername';
5347
5446
  params: { username: BytesLike };
5348
5447
  };
5349
5448
  }
@@ -5351,30 +5450,70 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
5351
5450
  >;
5352
5451
 
5353
5452
  /**
5354
- * Generic pallet tx call
5355
- **/
5356
- [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
5357
- };
5358
- /**
5359
- * Pallet `Society`'s transaction calls
5360
- **/
5361
- society: {
5362
- /**
5363
- * A user outside of the society can make a bid for entry.
5364
- *
5365
- * Payment: The group's Candidate Deposit will be reserved for making a bid. It is returned
5366
- * when the bid becomes a member, or if the bid calls `unbid`.
5367
- *
5368
- * The dispatch origin for this call must be _Signed_.
5453
+ * Permanently delete a username which has been unbinding for longer than the grace period.
5454
+ * Caller is refunded the fee if the username expired and the removal was successful.
5369
5455
  *
5370
- * Parameters:
5371
- * - `value`: A one time payment the bid would like to receive when joining the society.
5372
- *
5373
- * @param {bigint} value
5456
+ * @param {BytesLike} username
5374
5457
  **/
5375
- bid: GenericTxCall<
5458
+ removeUsername: GenericTxCall<
5376
5459
  Rv,
5377
- (value: bigint) => ChainSubmittableExtrinsic<
5460
+ (username: BytesLike) => ChainSubmittableExtrinsic<
5461
+ Rv,
5462
+ {
5463
+ pallet: 'Identity';
5464
+ palletCall: {
5465
+ name: 'RemoveUsername';
5466
+ params: { username: BytesLike };
5467
+ };
5468
+ }
5469
+ >
5470
+ >;
5471
+
5472
+ /**
5473
+ * Call with [ForceOrigin](crate::Config::ForceOrigin) privileges which deletes a username
5474
+ * and slashes any deposit associated with it.
5475
+ *
5476
+ * @param {BytesLike} username
5477
+ **/
5478
+ killUsername: GenericTxCall<
5479
+ Rv,
5480
+ (username: BytesLike) => ChainSubmittableExtrinsic<
5481
+ Rv,
5482
+ {
5483
+ pallet: 'Identity';
5484
+ palletCall: {
5485
+ name: 'KillUsername';
5486
+ params: { username: BytesLike };
5487
+ };
5488
+ }
5489
+ >
5490
+ >;
5491
+
5492
+ /**
5493
+ * Generic pallet tx call
5494
+ **/
5495
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
5496
+ };
5497
+ /**
5498
+ * Pallet `Society`'s transaction calls
5499
+ **/
5500
+ society: {
5501
+ /**
5502
+ * A user outside of the society can make a bid for entry.
5503
+ *
5504
+ * Payment: The group's Candidate Deposit will be reserved for making a bid. It is returned
5505
+ * when the bid becomes a member, or if the bid calls `unbid`.
5506
+ *
5507
+ * The dispatch origin for this call must be _Signed_.
5508
+ *
5509
+ * Parameters:
5510
+ * - `value`: A one time payment the bid would like to receive when joining the society.
5511
+ *
5512
+ * @param {bigint} value
5513
+ **/
5514
+ bid: GenericTxCall<
5515
+ Rv,
5516
+ (value: bigint) => ChainSubmittableExtrinsic<
5378
5517
  Rv,
5379
5518
  {
5380
5519
  pallet: 'Society';
@@ -6760,6 +6899,49 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6760
6899
  >
6761
6900
  >;
6762
6901
 
6902
+ /**
6903
+ * Increase the block size by including the specified garbage bytes.
6904
+ *
6905
+ * @param {Array<FixedBytes<1024>>} garbage
6906
+ **/
6907
+ bloat: GenericTxCall<
6908
+ Rv,
6909
+ (garbage: Array<FixedBytes<1024>>) => ChainSubmittableExtrinsic<
6910
+ Rv,
6911
+ {
6912
+ pallet: 'Glutton';
6913
+ palletCall: {
6914
+ name: 'Bloat';
6915
+ params: { garbage: Array<FixedBytes<1024>> };
6916
+ };
6917
+ }
6918
+ >
6919
+ >;
6920
+
6921
+ /**
6922
+ * Set how much of the block length should be filled with trash data on each block.
6923
+ *
6924
+ * `1.0` means that all block should be filled. If set to `1.0`, storage proof size will
6925
+ * be close to zero.
6926
+ *
6927
+ * Only callable by Root or `AdminOrigin`.
6928
+ *
6929
+ * @param {FixedU64} blockLength
6930
+ **/
6931
+ setBlockLength: GenericTxCall<
6932
+ Rv,
6933
+ (blockLength: FixedU64) => ChainSubmittableExtrinsic<
6934
+ Rv,
6935
+ {
6936
+ pallet: 'Glutton';
6937
+ palletCall: {
6938
+ name: 'SetBlockLength';
6939
+ params: { blockLength: FixedU64 };
6940
+ };
6941
+ }
6942
+ >
6943
+ >;
6944
+
6763
6945
  /**
6764
6946
  * Generic pallet tx call
6765
6947
  **/
@@ -7752,6 +7934,41 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7752
7934
  >
7753
7935
  >;
7754
7936
 
7937
+ /**
7938
+ * Approve bountry and propose a curator simultaneously.
7939
+ * This call is a shortcut to calling `approve_bounty` and `propose_curator` separately.
7940
+ *
7941
+ * May only be called from `T::SpendOrigin`.
7942
+ *
7943
+ * - `bounty_id`: Bounty ID to approve.
7944
+ * - `curator`: The curator account whom will manage this bounty.
7945
+ * - `fee`: The curator fee.
7946
+ *
7947
+ * ## Complexity
7948
+ * - O(1).
7949
+ *
7950
+ * @param {number} bountyId
7951
+ * @param {MultiAddressLike} curator
7952
+ * @param {bigint} fee
7953
+ **/
7954
+ approveBountyWithCurator: GenericTxCall<
7955
+ Rv,
7956
+ (
7957
+ bountyId: number,
7958
+ curator: MultiAddressLike,
7959
+ fee: bigint,
7960
+ ) => ChainSubmittableExtrinsic<
7961
+ Rv,
7962
+ {
7963
+ pallet: 'Bounties';
7964
+ palletCall: {
7965
+ name: 'ApproveBountyWithCurator';
7966
+ params: { bountyId: number; curator: MultiAddressLike; fee: bigint };
7967
+ };
7968
+ }
7969
+ >
7970
+ >;
7971
+
7755
7972
  /**
7756
7973
  * Generic pallet tx call
7757
7974
  **/
@@ -7998,7 +8215,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7998
8215
  *
7999
8216
  * Parameters:
8000
8217
  * - `id`: The identifier of the new asset. This must not be currently in use to identify
8001
- * an existing asset.
8218
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
8002
8219
  * - `admin`: The admin of this class of assets. The admin is the initial address of each
8003
8220
  * member of the asset class's admin team.
8004
8221
  * - `min_balance`: The minimum balance of this new asset that any single account must
@@ -8040,7 +8257,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8040
8257
  * Unlike `create`, no funds are reserved.
8041
8258
  *
8042
8259
  * - `id`: The identifier of the new asset. This must not be currently in use to identify
8043
- * an existing asset.
8260
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
8044
8261
  * - `owner`: The owner of this class of assets. The owner has full superuser permissions
8045
8262
  * over this asset, but may later change and configure the permissions using
8046
8263
  * `transfer_ownership` and `set_team`.
@@ -8086,8 +8303,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8086
8303
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
8087
8304
  * asset.
8088
8305
  *
8089
- * The asset class must be frozen before calling `start_destroy`.
8090
- *
8091
8306
  * @param {number} id
8092
8307
  **/
8093
8308
  startDestroy: GenericTxCall<
@@ -9142,6 +9357,46 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9142
9357
  >
9143
9358
  >;
9144
9359
 
9360
+ /**
9361
+ * Transfer the entire transferable balance from the caller asset account.
9362
+ *
9363
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
9364
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
9365
+ * transferred by this function. To ensure that this function results in a killed account,
9366
+ * you might need to prepare the account by removing any reference counters, storage
9367
+ * deposits, etc...
9368
+ *
9369
+ * The dispatch origin of this call must be Signed.
9370
+ *
9371
+ * - `id`: The identifier of the asset for the account holding a deposit.
9372
+ * - `dest`: The recipient of the transfer.
9373
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
9374
+ * of the funds the asset account has, causing the sender asset account to be killed
9375
+ * (false), or transfer everything except at least the minimum balance, which will
9376
+ * guarantee to keep the sender asset account alive (true).
9377
+ *
9378
+ * @param {number} id
9379
+ * @param {MultiAddressLike} dest
9380
+ * @param {boolean} keepAlive
9381
+ **/
9382
+ transferAll: GenericTxCall<
9383
+ Rv,
9384
+ (
9385
+ id: number,
9386
+ dest: MultiAddressLike,
9387
+ keepAlive: boolean,
9388
+ ) => ChainSubmittableExtrinsic<
9389
+ Rv,
9390
+ {
9391
+ pallet: 'Assets';
9392
+ palletCall: {
9393
+ name: 'TransferAll';
9394
+ params: { id: number; dest: MultiAddressLike; keepAlive: boolean };
9395
+ };
9396
+ }
9397
+ >
9398
+ >;
9399
+
9145
9400
  /**
9146
9401
  * Generic pallet tx call
9147
9402
  **/
@@ -9162,7 +9417,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9162
9417
  *
9163
9418
  * Parameters:
9164
9419
  * - `id`: The identifier of the new asset. This must not be currently in use to identify
9165
- * an existing asset.
9420
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
9166
9421
  * - `admin`: The admin of this class of assets. The admin is the initial address of each
9167
9422
  * member of the asset class's admin team.
9168
9423
  * - `min_balance`: The minimum balance of this new asset that any single account must
@@ -9204,7 +9459,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9204
9459
  * Unlike `create`, no funds are reserved.
9205
9460
  *
9206
9461
  * - `id`: The identifier of the new asset. This must not be currently in use to identify
9207
- * an existing asset.
9462
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
9208
9463
  * - `owner`: The owner of this class of assets. The owner has full superuser permissions
9209
9464
  * over this asset, but may later change and configure the permissions using
9210
9465
  * `transfer_ownership` and `set_team`.
@@ -9250,8 +9505,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9250
9505
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
9251
9506
  * asset.
9252
9507
  *
9253
- * The asset class must be frozen before calling `start_destroy`.
9254
- *
9255
9508
  * @param {number} id
9256
9509
  **/
9257
9510
  startDestroy: GenericTxCall<
@@ -10306,6 +10559,46 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
10306
10559
  >
10307
10560
  >;
10308
10561
 
10562
+ /**
10563
+ * Transfer the entire transferable balance from the caller asset account.
10564
+ *
10565
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
10566
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
10567
+ * transferred by this function. To ensure that this function results in a killed account,
10568
+ * you might need to prepare the account by removing any reference counters, storage
10569
+ * deposits, etc...
10570
+ *
10571
+ * The dispatch origin of this call must be Signed.
10572
+ *
10573
+ * - `id`: The identifier of the asset for the account holding a deposit.
10574
+ * - `dest`: The recipient of the transfer.
10575
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
10576
+ * of the funds the asset account has, causing the sender asset account to be killed
10577
+ * (false), or transfer everything except at least the minimum balance, which will
10578
+ * guarantee to keep the sender asset account alive (true).
10579
+ *
10580
+ * @param {number} id
10581
+ * @param {MultiAddressLike} dest
10582
+ * @param {boolean} keepAlive
10583
+ **/
10584
+ transferAll: GenericTxCall<
10585
+ Rv,
10586
+ (
10587
+ id: number,
10588
+ dest: MultiAddressLike,
10589
+ keepAlive: boolean,
10590
+ ) => ChainSubmittableExtrinsic<
10591
+ Rv,
10592
+ {
10593
+ pallet: 'PoolAssets';
10594
+ palletCall: {
10595
+ name: 'TransferAll';
10596
+ params: { id: number; dest: MultiAddressLike; keepAlive: boolean };
10597
+ };
10598
+ }
10599
+ >
10600
+ >;
10601
+
10309
10602
  /**
10310
10603
  * Generic pallet tx call
10311
10604
  **/
@@ -10321,21 +10614,21 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
10321
10614
  * against the extracted offender. If both are valid, the offence
10322
10615
  * will be reported.
10323
10616
  *
10324
- * @param {SpConsensusBeefyEquivocationProof} equivocationProof
10617
+ * @param {SpConsensusBeefyDoubleVotingProof} equivocationProof
10325
10618
  * @param {SpSessionMembershipProof} keyOwnerProof
10326
10619
  **/
10327
- reportEquivocation: GenericTxCall<
10620
+ reportDoubleVoting: GenericTxCall<
10328
10621
  Rv,
10329
10622
  (
10330
- equivocationProof: SpConsensusBeefyEquivocationProof,
10623
+ equivocationProof: SpConsensusBeefyDoubleVotingProof,
10331
10624
  keyOwnerProof: SpSessionMembershipProof,
10332
10625
  ) => ChainSubmittableExtrinsic<
10333
10626
  Rv,
10334
10627
  {
10335
10628
  pallet: 'Beefy';
10336
10629
  palletCall: {
10337
- name: 'ReportEquivocation';
10338
- params: { equivocationProof: SpConsensusBeefyEquivocationProof; keyOwnerProof: SpSessionMembershipProof };
10630
+ name: 'ReportDoubleVoting';
10631
+ params: { equivocationProof: SpConsensusBeefyDoubleVotingProof; keyOwnerProof: SpSessionMembershipProof };
10339
10632
  };
10340
10633
  }
10341
10634
  >
@@ -10352,21 +10645,21 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
10352
10645
  * if the block author is defined it will be defined as the equivocation
10353
10646
  * reporter.
10354
10647
  *
10355
- * @param {SpConsensusBeefyEquivocationProof} equivocationProof
10648
+ * @param {SpConsensusBeefyDoubleVotingProof} equivocationProof
10356
10649
  * @param {SpSessionMembershipProof} keyOwnerProof
10357
10650
  **/
10358
- reportEquivocationUnsigned: GenericTxCall<
10651
+ reportDoubleVotingUnsigned: GenericTxCall<
10359
10652
  Rv,
10360
10653
  (
10361
- equivocationProof: SpConsensusBeefyEquivocationProof,
10654
+ equivocationProof: SpConsensusBeefyDoubleVotingProof,
10362
10655
  keyOwnerProof: SpSessionMembershipProof,
10363
10656
  ) => ChainSubmittableExtrinsic<
10364
10657
  Rv,
10365
10658
  {
10366
10659
  pallet: 'Beefy';
10367
10660
  palletCall: {
10368
- name: 'ReportEquivocationUnsigned';
10369
- params: { equivocationProof: SpConsensusBeefyEquivocationProof; keyOwnerProof: SpSessionMembershipProof };
10661
+ name: 'ReportDoubleVotingUnsigned';
10662
+ params: { equivocationProof: SpConsensusBeefyDoubleVotingProof; keyOwnerProof: SpSessionMembershipProof };
10370
10663
  };
10371
10664
  }
10372
10665
  >
@@ -10395,91 +10688,207 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
10395
10688
  >;
10396
10689
 
10397
10690
  /**
10398
- * Generic pallet tx call
10399
- **/
10400
- [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
10401
- };
10402
- /**
10403
- * Pallet `Lottery`'s transaction calls
10404
- **/
10405
- lottery: {
10406
- /**
10407
- * Buy a ticket to enter the lottery.
10408
- *
10409
- * This extrinsic acts as a passthrough function for `call`. In all
10410
- * situations where `call` alone would succeed, this extrinsic should
10411
- * succeed.
10412
- *
10413
- * If `call` is successful, then we will attempt to purchase a ticket,
10414
- * which may fail silently. To detect success of a ticket purchase, you
10415
- * should listen for the `TicketBought` event.
10416
- *
10417
- * This extrinsic must be called by a signed origin.
10691
+ * Report fork voting equivocation. This method will verify the equivocation proof
10692
+ * and validate the given key ownership proof against the extracted offender.
10693
+ * If both are valid, the offence will be reported.
10418
10694
  *
10419
- * @param {KitchensinkRuntimeRuntimeCallLike} call
10695
+ * @param {SpConsensusBeefyForkVotingProof} equivocationProof
10696
+ * @param {SpSessionMembershipProof} keyOwnerProof
10420
10697
  **/
10421
- buyTicket: GenericTxCall<
10698
+ reportForkVoting: GenericTxCall<
10422
10699
  Rv,
10423
- (call: KitchensinkRuntimeRuntimeCallLike) => ChainSubmittableExtrinsic<
10700
+ (
10701
+ equivocationProof: SpConsensusBeefyForkVotingProof,
10702
+ keyOwnerProof: SpSessionMembershipProof,
10703
+ ) => ChainSubmittableExtrinsic<
10424
10704
  Rv,
10425
10705
  {
10426
- pallet: 'Lottery';
10706
+ pallet: 'Beefy';
10427
10707
  palletCall: {
10428
- name: 'BuyTicket';
10429
- params: { call: KitchensinkRuntimeRuntimeCallLike };
10708
+ name: 'ReportForkVoting';
10709
+ params: { equivocationProof: SpConsensusBeefyForkVotingProof; keyOwnerProof: SpSessionMembershipProof };
10430
10710
  };
10431
10711
  }
10432
10712
  >
10433
10713
  >;
10434
10714
 
10435
10715
  /**
10436
- * Set calls in storage which can be used to purchase a lottery ticket.
10716
+ * Report fork voting equivocation. This method will verify the equivocation proof
10717
+ * and validate the given key ownership proof against the extracted offender.
10718
+ * If both are valid, the offence will be reported.
10437
10719
  *
10438
- * This function only matters if you use the `ValidateCall` implementation
10439
- * provided by this pallet, which uses storage to determine the valid calls.
10440
- *
10441
- * This extrinsic must be called by the Manager origin.
10720
+ * This extrinsic must be called unsigned and it is expected that only
10721
+ * block authors will call it (validated in `ValidateUnsigned`), as such
10722
+ * if the block author is defined it will be defined as the equivocation
10723
+ * reporter.
10442
10724
  *
10443
- * @param {Array<KitchensinkRuntimeRuntimeCallLike>} calls
10725
+ * @param {SpConsensusBeefyForkVotingProof} equivocationProof
10726
+ * @param {SpSessionMembershipProof} keyOwnerProof
10444
10727
  **/
10445
- setCalls: GenericTxCall<
10728
+ reportForkVotingUnsigned: GenericTxCall<
10446
10729
  Rv,
10447
- (calls: Array<KitchensinkRuntimeRuntimeCallLike>) => ChainSubmittableExtrinsic<
10730
+ (
10731
+ equivocationProof: SpConsensusBeefyForkVotingProof,
10732
+ keyOwnerProof: SpSessionMembershipProof,
10733
+ ) => ChainSubmittableExtrinsic<
10448
10734
  Rv,
10449
10735
  {
10450
- pallet: 'Lottery';
10736
+ pallet: 'Beefy';
10451
10737
  palletCall: {
10452
- name: 'SetCalls';
10453
- params: { calls: Array<KitchensinkRuntimeRuntimeCallLike> };
10738
+ name: 'ReportForkVotingUnsigned';
10739
+ params: { equivocationProof: SpConsensusBeefyForkVotingProof; keyOwnerProof: SpSessionMembershipProof };
10454
10740
  };
10455
10741
  }
10456
10742
  >
10457
10743
  >;
10458
10744
 
10459
10745
  /**
10460
- * Start a lottery using the provided configuration.
10461
- *
10462
- * This extrinsic must be called by the `ManagerOrigin`.
10463
- *
10464
- * Parameters:
10746
+ * Report future block voting equivocation. This method will verify the equivocation proof
10747
+ * and validate the given key ownership proof against the extracted offender.
10748
+ * If both are valid, the offence will be reported.
10465
10749
  *
10466
- * * `price`: The cost of a single ticket.
10467
- * * `length`: How long the lottery should run for starting at the current block.
10468
- * * `delay`: How long after the lottery end we should wait before picking a winner.
10469
- * * `repeat`: If the lottery should repeat when completed.
10470
- *
10471
- * @param {bigint} price
10472
- * @param {number} length
10473
- * @param {number} delay
10474
- * @param {boolean} repeat
10750
+ * @param {SpConsensusBeefyFutureBlockVotingProof} equivocationProof
10751
+ * @param {SpSessionMembershipProof} keyOwnerProof
10475
10752
  **/
10476
- startLottery: GenericTxCall<
10753
+ reportFutureBlockVoting: GenericTxCall<
10477
10754
  Rv,
10478
10755
  (
10479
- price: bigint,
10480
- length: number,
10481
- delay: number,
10482
- repeat: boolean,
10756
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
10757
+ keyOwnerProof: SpSessionMembershipProof,
10758
+ ) => ChainSubmittableExtrinsic<
10759
+ Rv,
10760
+ {
10761
+ pallet: 'Beefy';
10762
+ palletCall: {
10763
+ name: 'ReportFutureBlockVoting';
10764
+ params: {
10765
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof;
10766
+ keyOwnerProof: SpSessionMembershipProof;
10767
+ };
10768
+ };
10769
+ }
10770
+ >
10771
+ >;
10772
+
10773
+ /**
10774
+ * Report future block voting equivocation. This method will verify the equivocation proof
10775
+ * and validate the given key ownership proof against the extracted offender.
10776
+ * If both are valid, the offence will be reported.
10777
+ *
10778
+ * This extrinsic must be called unsigned and it is expected that only
10779
+ * block authors will call it (validated in `ValidateUnsigned`), as such
10780
+ * if the block author is defined it will be defined as the equivocation
10781
+ * reporter.
10782
+ *
10783
+ * @param {SpConsensusBeefyFutureBlockVotingProof} equivocationProof
10784
+ * @param {SpSessionMembershipProof} keyOwnerProof
10785
+ **/
10786
+ reportFutureBlockVotingUnsigned: GenericTxCall<
10787
+ Rv,
10788
+ (
10789
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
10790
+ keyOwnerProof: SpSessionMembershipProof,
10791
+ ) => ChainSubmittableExtrinsic<
10792
+ Rv,
10793
+ {
10794
+ pallet: 'Beefy';
10795
+ palletCall: {
10796
+ name: 'ReportFutureBlockVotingUnsigned';
10797
+ params: {
10798
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof;
10799
+ keyOwnerProof: SpSessionMembershipProof;
10800
+ };
10801
+ };
10802
+ }
10803
+ >
10804
+ >;
10805
+
10806
+ /**
10807
+ * Generic pallet tx call
10808
+ **/
10809
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
10810
+ };
10811
+ /**
10812
+ * Pallet `Lottery`'s transaction calls
10813
+ **/
10814
+ lottery: {
10815
+ /**
10816
+ * Buy a ticket to enter the lottery.
10817
+ *
10818
+ * This extrinsic acts as a passthrough function for `call`. In all
10819
+ * situations where `call` alone would succeed, this extrinsic should
10820
+ * succeed.
10821
+ *
10822
+ * If `call` is successful, then we will attempt to purchase a ticket,
10823
+ * which may fail silently. To detect success of a ticket purchase, you
10824
+ * should listen for the `TicketBought` event.
10825
+ *
10826
+ * This extrinsic must be called by a signed origin.
10827
+ *
10828
+ * @param {KitchensinkRuntimeRuntimeCallLike} call
10829
+ **/
10830
+ buyTicket: GenericTxCall<
10831
+ Rv,
10832
+ (call: KitchensinkRuntimeRuntimeCallLike) => ChainSubmittableExtrinsic<
10833
+ Rv,
10834
+ {
10835
+ pallet: 'Lottery';
10836
+ palletCall: {
10837
+ name: 'BuyTicket';
10838
+ params: { call: KitchensinkRuntimeRuntimeCallLike };
10839
+ };
10840
+ }
10841
+ >
10842
+ >;
10843
+
10844
+ /**
10845
+ * Set calls in storage which can be used to purchase a lottery ticket.
10846
+ *
10847
+ * This function only matters if you use the `ValidateCall` implementation
10848
+ * provided by this pallet, which uses storage to determine the valid calls.
10849
+ *
10850
+ * This extrinsic must be called by the Manager origin.
10851
+ *
10852
+ * @param {Array<KitchensinkRuntimeRuntimeCallLike>} calls
10853
+ **/
10854
+ setCalls: GenericTxCall<
10855
+ Rv,
10856
+ (calls: Array<KitchensinkRuntimeRuntimeCallLike>) => ChainSubmittableExtrinsic<
10857
+ Rv,
10858
+ {
10859
+ pallet: 'Lottery';
10860
+ palletCall: {
10861
+ name: 'SetCalls';
10862
+ params: { calls: Array<KitchensinkRuntimeRuntimeCallLike> };
10863
+ };
10864
+ }
10865
+ >
10866
+ >;
10867
+
10868
+ /**
10869
+ * Start a lottery using the provided configuration.
10870
+ *
10871
+ * This extrinsic must be called by the `ManagerOrigin`.
10872
+ *
10873
+ * Parameters:
10874
+ *
10875
+ * * `price`: The cost of a single ticket.
10876
+ * * `length`: How long the lottery should run for starting at the current block.
10877
+ * * `delay`: How long after the lottery end we should wait before picking a winner.
10878
+ * * `repeat`: If the lottery should repeat when completed.
10879
+ *
10880
+ * @param {bigint} price
10881
+ * @param {number} length
10882
+ * @param {number} delay
10883
+ * @param {boolean} repeat
10884
+ **/
10885
+ startLottery: GenericTxCall<
10886
+ Rv,
10887
+ (
10888
+ price: bigint,
10889
+ length: number,
10890
+ delay: number,
10891
+ repeat: boolean,
10483
10892
  ) => ChainSubmittableExtrinsic<
10484
10893
  Rv,
10485
10894
  {
@@ -13569,6 +13978,33 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
13569
13978
  >
13570
13979
  >;
13571
13980
 
13981
+ /**
13982
+ * Fast promotions can skip ranks and ignore the `min_promotion_period`.
13983
+ *
13984
+ * This is useful for out-of-band promotions, hence it has its own `FastPromoteOrigin` to
13985
+ * be (possibly) more restrictive than `PromoteOrigin`. Note that the member must already
13986
+ * be inducted.
13987
+ *
13988
+ * @param {AccountId32Like} who
13989
+ * @param {number} toRank
13990
+ **/
13991
+ promoteFast: GenericTxCall<
13992
+ Rv,
13993
+ (
13994
+ who: AccountId32Like,
13995
+ toRank: number,
13996
+ ) => ChainSubmittableExtrinsic<
13997
+ Rv,
13998
+ {
13999
+ pallet: 'CoreFellowship';
14000
+ palletCall: {
14001
+ name: 'PromoteFast';
14002
+ params: { who: AccountId32Like; toRank: number };
14003
+ };
14004
+ }
14005
+ >
14006
+ >;
14007
+
13572
14008
  /**
13573
14009
  * Stop tracking a prior member who is now not a ranked member of the collective.
13574
14010
  *
@@ -13647,6 +14083,31 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
13647
14083
  >
13648
14084
  >;
13649
14085
 
14086
+ /**
14087
+ * Set the parameters partially.
14088
+ *
14089
+ * - `origin`: An origin complying with `ParamsOrigin` or root.
14090
+ * - `partial_params`: The new parameters for the pallet.
14091
+ *
14092
+ * This update config with multiple arguments without duplicating
14093
+ * the fields that does not need to update (set to None).
14094
+ *
14095
+ * @param {PalletCoreFellowshipParamsTypeOption} partialParams
14096
+ **/
14097
+ setPartialParams: GenericTxCall<
14098
+ Rv,
14099
+ (partialParams: PalletCoreFellowshipParamsTypeOption) => ChainSubmittableExtrinsic<
14100
+ Rv,
14101
+ {
14102
+ pallet: 'CoreFellowship';
14103
+ palletCall: {
14104
+ name: 'SetPartialParams';
14105
+ params: { partialParams: PalletCoreFellowshipParamsTypeOption };
14106
+ };
14107
+ }
14108
+ >
14109
+ >;
14110
+
13650
14111
  /**
13651
14112
  * Generic pallet tx call
13652
14113
  **/
@@ -15216,6 +15677,58 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
15216
15677
  >
15217
15678
  >;
15218
15679
 
15680
+ /**
15681
+ * Disapprove the proposal and burn the cost held for storing this proposal.
15682
+ *
15683
+ * Parameters:
15684
+ * - `origin`: must be the `KillOrigin`.
15685
+ * - `proposal_hash`: The hash of the proposal that should be killed.
15686
+ *
15687
+ * Emits `Killed` and `ProposalCostBurned` if any cost was held for a given proposal.
15688
+ *
15689
+ * @param {H256} proposalHash
15690
+ **/
15691
+ kill: GenericTxCall<
15692
+ Rv,
15693
+ (proposalHash: H256) => ChainSubmittableExtrinsic<
15694
+ Rv,
15695
+ {
15696
+ pallet: 'AllianceMotion';
15697
+ palletCall: {
15698
+ name: 'Kill';
15699
+ params: { proposalHash: H256 };
15700
+ };
15701
+ }
15702
+ >
15703
+ >;
15704
+
15705
+ /**
15706
+ * Release the cost held for storing a proposal once the given proposal is completed.
15707
+ *
15708
+ * If there is no associated cost for the given proposal, this call will have no effect.
15709
+ *
15710
+ * Parameters:
15711
+ * - `origin`: must be `Signed` or `Root`.
15712
+ * - `proposal_hash`: The hash of the proposal.
15713
+ *
15714
+ * Emits `ProposalCostReleased` if any cost held for a given proposal.
15715
+ *
15716
+ * @param {H256} proposalHash
15717
+ **/
15718
+ releaseProposalCost: GenericTxCall<
15719
+ Rv,
15720
+ (proposalHash: H256) => ChainSubmittableExtrinsic<
15721
+ Rv,
15722
+ {
15723
+ pallet: 'AllianceMotion';
15724
+ palletCall: {
15725
+ name: 'ReleaseProposalCost';
15726
+ params: { proposalHash: H256 };
15727
+ };
15728
+ }
15729
+ >
15730
+ >;
15731
+
15219
15732
  /**
15220
15733
  * Generic pallet tx call
15221
15734
  **/
@@ -15598,8 +16111,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
15598
16111
  **/
15599
16112
  nominationPools: {
15600
16113
  /**
15601
- * Stake funds with a pool. The amount to bond is transferred from the member to the
15602
- * pools account and immediately increases the pools bond.
16114
+ * Stake funds with a pool. The amount to bond is transferred from the member to the pool
16115
+ * account and immediately increases the pools bond.
16116
+ *
16117
+ * The method of transferring the amount to the pool account is determined by
16118
+ * [`adapter::StakeStrategyType`]. If the pool is configured to use
16119
+ * [`adapter::StakeStrategyType::Delegate`], the funds remain in the account of
16120
+ * the `origin`, while the pool gains the right to use these funds for staking.
15603
16121
  *
15604
16122
  * # Note
15605
16123
  *
@@ -15662,7 +16180,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
15662
16180
  * The member will earn rewards pro rata based on the members stake vs the sum of the
15663
16181
  * members in the pools stake. Rewards do not "expire".
15664
16182
  *
15665
- * See `claim_payout_other` to caim rewards on bahalf of some `other` pool member.
16183
+ * See `claim_payout_other` to claim rewards on behalf of some `other` pool member.
15666
16184
  *
15667
16185
  **/
15668
16186
  claimPayout: GenericTxCall<
@@ -15778,7 +16296,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
15778
16296
  *
15779
16297
  * # Note
15780
16298
  *
15781
- * If the target is the depositor, the pool will be destroyed.
16299
+ * - If the target is the depositor, the pool will be destroyed.
16300
+ * - If the pool has any pending slash, we also try to slash the member before letting them
16301
+ * withdraw. This calculation adds some weight overhead and is only defensive. In reality,
16302
+ * pool slashes must have been already applied via permissionless [`Call::apply_slash`].
15782
16303
  *
15783
16304
  * @param {MultiAddressLike} memberAccount
15784
16305
  * @param {number} numSlashingSpans
@@ -15977,7 +16498,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
15977
16498
 
15978
16499
  /**
15979
16500
  * Update configurations for the nomination pools. The origin for this call must be
15980
- * Root.
16501
+ * [`Config::AdminOrigin`].
15981
16502
  *
15982
16503
  * # Arguments
15983
16504
  *
@@ -16104,7 +16625,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
16104
16625
  *
16105
16626
  * In the case of `origin != other`, `origin` can only bond extra pending rewards of
16106
16627
  * `other` members assuming set_claim_permission for the given member is
16107
- * `PermissionlessAll` or `PermissionlessCompound`.
16628
+ * `PermissionlessCompound` or `PermissionlessAll`.
16108
16629
  *
16109
16630
  * @param {MultiAddressLike} member
16110
16631
  * @param {PalletNominationPoolsBondExtra} extra
@@ -16130,15 +16651,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
16130
16651
  * Allows a pool member to set a claim permission to allow or disallow permissionless
16131
16652
  * bonding and withdrawing.
16132
16653
  *
16133
- * By default, this is `Permissioned`, which implies only the pool member themselves can
16134
- * claim their pending rewards. If a pool member wishes so, they can set this to
16135
- * `PermissionlessAll` to allow any account to claim their rewards and bond extra to the
16136
- * pool.
16137
- *
16138
16654
  * # Arguments
16139
16655
  *
16140
16656
  * * `origin` - Member of a pool.
16141
- * * `actor` - Account to claim reward. // improve this
16657
+ * * `permission` - The permission to be applied.
16142
16658
  *
16143
16659
  * @param {PalletNominationPoolsClaimPermission} permission
16144
16660
  **/
@@ -16159,8 +16675,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
16159
16675
  /**
16160
16676
  * `origin` can claim payouts on some pool member `other`'s behalf.
16161
16677
  *
16162
- * Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order
16163
- * for this call to be successful.
16678
+ * Pool member `other` must have a `PermissionlessWithdraw` or `PermissionlessAll` claim
16679
+ * permission for this call to be successful.
16164
16680
  *
16165
16681
  * @param {AccountId32Like} other
16166
16682
  **/
@@ -16310,7 +16826,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
16310
16826
  * Set or remove a pool's commission claim permission.
16311
16827
  *
16312
16828
  * Determines who can claim the pool's pending commission. Only the `Root` role of the pool
16313
- * is able to conifigure commission claim permissions.
16829
+ * is able to configure commission claim permissions.
16314
16830
  *
16315
16831
  * @param {number} poolId
16316
16832
  * @param {PalletNominationPoolsCommissionClaimPermission | undefined} permission
@@ -16333,81 +16849,160 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
16333
16849
  >;
16334
16850
 
16335
16851
  /**
16336
- * Generic pallet tx call
16337
- **/
16338
- [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
16339
- };
16340
- /**
16341
- * Pallet `RankedPolls`'s transaction calls
16342
- **/
16343
- rankedPolls: {
16344
- /**
16345
- * Propose a referendum on a privileged action.
16852
+ * Apply a pending slash on a member.
16346
16853
  *
16347
- * - `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds
16348
- * available.
16349
- * - `proposal_origin`: The origin from which the proposal should be executed.
16350
- * - `proposal`: The proposal.
16351
- * - `enactment_moment`: The moment that the proposal should be enacted.
16854
+ * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
16855
+ * [`adapter::StakeStrategyType::Delegate`].
16352
16856
  *
16353
- * Emits `Submitted`.
16857
+ * This call can be dispatched permissionlessly (i.e. by any account). If the member has
16858
+ * slash to be applied, caller may be rewarded with the part of the slash.
16354
16859
  *
16355
- * @param {KitchensinkRuntimeOriginCaller} proposalOrigin
16356
- * @param {FrameSupportPreimagesBounded} proposal
16357
- * @param {FrameSupportScheduleDispatchTime} enactmentMoment
16860
+ * @param {MultiAddressLike} memberAccount
16358
16861
  **/
16359
- submit: GenericTxCall<
16862
+ applySlash: GenericTxCall<
16360
16863
  Rv,
16361
- (
16362
- proposalOrigin: KitchensinkRuntimeOriginCaller,
16363
- proposal: FrameSupportPreimagesBounded,
16364
- enactmentMoment: FrameSupportScheduleDispatchTime,
16365
- ) => ChainSubmittableExtrinsic<
16864
+ (memberAccount: MultiAddressLike) => ChainSubmittableExtrinsic<
16366
16865
  Rv,
16367
16866
  {
16368
- pallet: 'RankedPolls';
16867
+ pallet: 'NominationPools';
16369
16868
  palletCall: {
16370
- name: 'Submit';
16371
- params: {
16372
- proposalOrigin: KitchensinkRuntimeOriginCaller;
16373
- proposal: FrameSupportPreimagesBounded;
16374
- enactmentMoment: FrameSupportScheduleDispatchTime;
16375
- };
16869
+ name: 'ApplySlash';
16870
+ params: { memberAccount: MultiAddressLike };
16376
16871
  };
16377
16872
  }
16378
16873
  >
16379
16874
  >;
16380
16875
 
16381
16876
  /**
16382
- * Post the Decision Deposit for a referendum.
16877
+ * Migrates delegated funds from the pool account to the `member_account`.
16383
16878
  *
16384
- * - `origin`: must be `Signed` and the account must have funds available for the
16385
- * referendum's track's Decision Deposit.
16386
- * - `index`: The index of the submitted referendum whose Decision Deposit is yet to be
16387
- * posted.
16879
+ * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
16880
+ * [`adapter::StakeStrategyType::Delegate`].
16388
16881
  *
16389
- * Emits `DecisionDepositPlaced`.
16882
+ * This is a permission-less call and refunds any fee if claim is successful.
16390
16883
  *
16391
- * @param {number} index
16884
+ * If the pool has migrated to delegation based staking, the staked tokens of pool members
16885
+ * can be moved and held in their own account. See [`adapter::DelegateStake`]
16886
+ *
16887
+ * @param {MultiAddressLike} memberAccount
16392
16888
  **/
16393
- placeDecisionDeposit: GenericTxCall<
16889
+ migrateDelegation: GenericTxCall<
16394
16890
  Rv,
16395
- (index: number) => ChainSubmittableExtrinsic<
16891
+ (memberAccount: MultiAddressLike) => ChainSubmittableExtrinsic<
16396
16892
  Rv,
16397
16893
  {
16398
- pallet: 'RankedPolls';
16894
+ pallet: 'NominationPools';
16399
16895
  palletCall: {
16400
- name: 'PlaceDecisionDeposit';
16401
- params: { index: number };
16896
+ name: 'MigrateDelegation';
16897
+ params: { memberAccount: MultiAddressLike };
16402
16898
  };
16403
16899
  }
16404
16900
  >
16405
16901
  >;
16406
16902
 
16407
16903
  /**
16408
- * Refund the Decision Deposit for a closed referendum back to the depositor.
16904
+ * Migrate pool from [`adapter::StakeStrategyType::Transfer`] to
16905
+ * [`adapter::StakeStrategyType::Delegate`].
16409
16906
  *
16410
- * - `origin`: must be `Signed` or `Root`.
16907
+ * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
16908
+ * [`adapter::StakeStrategyType::Delegate`].
16909
+ *
16910
+ * This call can be dispatched permissionlessly, and refunds any fee if successful.
16911
+ *
16912
+ * If the pool has already migrated to delegation based staking, this call will fail.
16913
+ *
16914
+ * @param {number} poolId
16915
+ **/
16916
+ migratePoolToDelegateStake: GenericTxCall<
16917
+ Rv,
16918
+ (poolId: number) => ChainSubmittableExtrinsic<
16919
+ Rv,
16920
+ {
16921
+ pallet: 'NominationPools';
16922
+ palletCall: {
16923
+ name: 'MigratePoolToDelegateStake';
16924
+ params: { poolId: number };
16925
+ };
16926
+ }
16927
+ >
16928
+ >;
16929
+
16930
+ /**
16931
+ * Generic pallet tx call
16932
+ **/
16933
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
16934
+ };
16935
+ /**
16936
+ * Pallet `RankedPolls`'s transaction calls
16937
+ **/
16938
+ rankedPolls: {
16939
+ /**
16940
+ * Propose a referendum on a privileged action.
16941
+ *
16942
+ * - `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds
16943
+ * available.
16944
+ * - `proposal_origin`: The origin from which the proposal should be executed.
16945
+ * - `proposal`: The proposal.
16946
+ * - `enactment_moment`: The moment that the proposal should be enacted.
16947
+ *
16948
+ * Emits `Submitted`.
16949
+ *
16950
+ * @param {KitchensinkRuntimeOriginCaller} proposalOrigin
16951
+ * @param {FrameSupportPreimagesBounded} proposal
16952
+ * @param {FrameSupportScheduleDispatchTime} enactmentMoment
16953
+ **/
16954
+ submit: GenericTxCall<
16955
+ Rv,
16956
+ (
16957
+ proposalOrigin: KitchensinkRuntimeOriginCaller,
16958
+ proposal: FrameSupportPreimagesBounded,
16959
+ enactmentMoment: FrameSupportScheduleDispatchTime,
16960
+ ) => ChainSubmittableExtrinsic<
16961
+ Rv,
16962
+ {
16963
+ pallet: 'RankedPolls';
16964
+ palletCall: {
16965
+ name: 'Submit';
16966
+ params: {
16967
+ proposalOrigin: KitchensinkRuntimeOriginCaller;
16968
+ proposal: FrameSupportPreimagesBounded;
16969
+ enactmentMoment: FrameSupportScheduleDispatchTime;
16970
+ };
16971
+ };
16972
+ }
16973
+ >
16974
+ >;
16975
+
16976
+ /**
16977
+ * Post the Decision Deposit for a referendum.
16978
+ *
16979
+ * - `origin`: must be `Signed` and the account must have funds available for the
16980
+ * referendum's track's Decision Deposit.
16981
+ * - `index`: The index of the submitted referendum whose Decision Deposit is yet to be
16982
+ * posted.
16983
+ *
16984
+ * Emits `DecisionDepositPlaced`.
16985
+ *
16986
+ * @param {number} index
16987
+ **/
16988
+ placeDecisionDeposit: GenericTxCall<
16989
+ Rv,
16990
+ (index: number) => ChainSubmittableExtrinsic<
16991
+ Rv,
16992
+ {
16993
+ pallet: 'RankedPolls';
16994
+ palletCall: {
16995
+ name: 'PlaceDecisionDeposit';
16996
+ params: { index: number };
16997
+ };
16998
+ }
16999
+ >
17000
+ >;
17001
+
17002
+ /**
17003
+ * Refund the Decision Deposit for a closed referendum back to the depositor.
17004
+ *
17005
+ * - `origin`: must be `Signed` or `Root`.
16411
17006
  * - `index`: The index of a closed referendum whose Decision Deposit has not yet been
16412
17007
  * refunded.
16413
17008
  *
@@ -16835,7 +17430,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
16835
17430
  * calls to render the liquidity withdrawable and rectify the exchange rate.
16836
17431
  *
16837
17432
  * Once liquidity is added, someone may successfully call
16838
- * [`Pallet::swap_exact_tokens_for_tokens`] successfully.
17433
+ * [`Pallet::swap_exact_tokens_for_tokens`].
16839
17434
  *
16840
17435
  * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset1
16841
17436
  * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset2
@@ -16995,6 +17590,42 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
16995
17590
  >
16996
17591
  >;
16997
17592
 
17593
+ /**
17594
+ * Touch an existing pool to fulfill prerequisites before providing liquidity, such as
17595
+ * ensuring that the pool's accounts are in place. It is typically useful when a pool
17596
+ * creator removes the pool's accounts and does not provide a liquidity. This action may
17597
+ * involve holding assets from the caller as a deposit for creating the pool's accounts.
17598
+ *
17599
+ * The origin must be Signed.
17600
+ *
17601
+ * - `asset1`: The asset ID of an existing pool with a pair (asset1, asset2).
17602
+ * - `asset2`: The asset ID of an existing pool with a pair (asset1, asset2).
17603
+ *
17604
+ * Emits `Touched` event when successful.
17605
+ *
17606
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset1
17607
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset2
17608
+ **/
17609
+ touch: GenericTxCall<
17610
+ Rv,
17611
+ (
17612
+ asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId,
17613
+ asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId,
17614
+ ) => ChainSubmittableExtrinsic<
17615
+ Rv,
17616
+ {
17617
+ pallet: 'AssetConversion';
17618
+ palletCall: {
17619
+ name: 'Touch';
17620
+ params: {
17621
+ asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId;
17622
+ asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId;
17623
+ };
17624
+ };
17625
+ }
17626
+ >
17627
+ >;
17628
+
16998
17629
  /**
16999
17630
  * Generic pallet tx call
17000
17631
  **/
@@ -17715,24 +18346,28 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
17715
18346
  * Begin the Bulk Coretime sales rotation.
17716
18347
  *
17717
18348
  * - `origin`: Must be Root or pass `AdminOrigin`.
17718
- * - `initial_price`: The price of Bulk Coretime in the first sale.
17719
- * - `core_count`: The number of cores which can be allocated.
18349
+ * - `end_price`: The price after the leadin period of Bulk Coretime in the first sale.
18350
+ * - `extra_cores`: Number of extra cores that should be requested on top of the cores
18351
+ * required for `Reservations` and `Leases`.
17720
18352
  *
17721
- * @param {bigint} initialPrice
17722
- * @param {number} coreCount
18353
+ * This will call [`Self::request_core_count`] internally to set the correct core count on
18354
+ * the relay chain.
18355
+ *
18356
+ * @param {bigint} endPrice
18357
+ * @param {number} extraCores
17723
18358
  **/
17724
18359
  startSales: GenericTxCall<
17725
18360
  Rv,
17726
18361
  (
17727
- initialPrice: bigint,
17728
- coreCount: number,
18362
+ endPrice: bigint,
18363
+ extraCores: number,
17729
18364
  ) => ChainSubmittableExtrinsic<
17730
18365
  Rv,
17731
18366
  {
17732
18367
  pallet: 'Broker';
17733
18368
  palletCall: {
17734
18369
  name: 'StartSales';
17735
- params: { initialPrice: bigint; coreCount: number };
18370
+ params: { endPrice: bigint; extraCores: number };
17736
18371
  };
17737
18372
  }
17738
18373
  >
@@ -17934,13 +18569,12 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
17934
18569
  /**
17935
18570
  * Claim the revenue owed from inclusion in the Instantaneous Coretime Pool.
17936
18571
  *
17937
- * - `origin`: Must be a Signed origin of the account which owns the Region `region_id`.
18572
+ * - `origin`: Must be a Signed origin.
17938
18573
  * - `region_id`: The Region which was assigned to the Pool.
17939
- * - `max_timeslices`: The maximum number of timeslices which should be processed. This may
17940
- * effect the weight of the call but should be ideally made equivalant to the length of
17941
- * the Region `region_id`. If it is less than this, then further dispatches will be
17942
- * required with the `region_id` which makes up any remainders of the region to be
17943
- * collected.
18574
+ * - `max_timeslices`: The maximum number of timeslices which should be processed. This
18575
+ * must be greater than 0. This may affect the weight of the call but should be ideally
18576
+ * made equivalent to the length of the Region `region_id`. If less, further dispatches
18577
+ * will be required with the same `region_id` to claim revenue for the remainder.
17944
18578
  *
17945
18579
  * @param {PalletBrokerRegionId} regionId
17946
18580
  * @param {number} maxTimeslices
@@ -18123,6 +18757,110 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
18123
18757
  >
18124
18758
  >;
18125
18759
 
18760
+ /**
18761
+ *
18762
+ * @param {PalletBrokerOnDemandRevenueRecord} revenue
18763
+ **/
18764
+ notifyRevenue: GenericTxCall<
18765
+ Rv,
18766
+ (revenue: PalletBrokerOnDemandRevenueRecord) => ChainSubmittableExtrinsic<
18767
+ Rv,
18768
+ {
18769
+ pallet: 'Broker';
18770
+ palletCall: {
18771
+ name: 'NotifyRevenue';
18772
+ params: { revenue: PalletBrokerOnDemandRevenueRecord };
18773
+ };
18774
+ }
18775
+ >
18776
+ >;
18777
+
18778
+ /**
18779
+ * Extrinsic for enabling auto renewal.
18780
+ *
18781
+ * Callable by the sovereign account of the task on the specified core. This account
18782
+ * will be charged at the start of every bulk period for renewing core time.
18783
+ *
18784
+ * - `origin`: Must be the sovereign account of the task
18785
+ * - `core`: The core to which the task to be renewed is currently assigned.
18786
+ * - `task`: The task for which we want to enable auto renewal.
18787
+ * - `workload_end_hint`: should be used when enabling auto-renewal for a core that is not
18788
+ * expiring in the upcoming bulk period (e.g., due to holding a lease) since it would be
18789
+ * inefficient to look up when the core expires to schedule the next renewal.
18790
+ *
18791
+ * @param {number} core
18792
+ * @param {number} task
18793
+ * @param {number | undefined} workloadEndHint
18794
+ **/
18795
+ enableAutoRenew: GenericTxCall<
18796
+ Rv,
18797
+ (
18798
+ core: number,
18799
+ task: number,
18800
+ workloadEndHint: number | undefined,
18801
+ ) => ChainSubmittableExtrinsic<
18802
+ Rv,
18803
+ {
18804
+ pallet: 'Broker';
18805
+ palletCall: {
18806
+ name: 'EnableAutoRenew';
18807
+ params: { core: number; task: number; workloadEndHint: number | undefined };
18808
+ };
18809
+ }
18810
+ >
18811
+ >;
18812
+
18813
+ /**
18814
+ * Extrinsic for disabling auto renewal.
18815
+ *
18816
+ * Callable by the sovereign account of the task on the specified core.
18817
+ *
18818
+ * - `origin`: Must be the sovereign account of the task.
18819
+ * - `core`: The core for which we want to disable auto renewal.
18820
+ * - `task`: The task for which we want to disable auto renewal.
18821
+ *
18822
+ * @param {number} core
18823
+ * @param {number} task
18824
+ **/
18825
+ disableAutoRenew: GenericTxCall<
18826
+ Rv,
18827
+ (
18828
+ core: number,
18829
+ task: number,
18830
+ ) => ChainSubmittableExtrinsic<
18831
+ Rv,
18832
+ {
18833
+ pallet: 'Broker';
18834
+ palletCall: {
18835
+ name: 'DisableAutoRenew';
18836
+ params: { core: number; task: number };
18837
+ };
18838
+ }
18839
+ >
18840
+ >;
18841
+
18842
+ /**
18843
+ *
18844
+ * @param {number} id
18845
+ * @param {number} other
18846
+ **/
18847
+ swapLeases: GenericTxCall<
18848
+ Rv,
18849
+ (
18850
+ id: number,
18851
+ other: number,
18852
+ ) => ChainSubmittableExtrinsic<
18853
+ Rv,
18854
+ {
18855
+ pallet: 'Broker';
18856
+ palletCall: {
18857
+ name: 'SwapLeases';
18858
+ params: { id: number; other: number };
18859
+ };
18860
+ }
18861
+ >
18862
+ >;
18863
+
18126
18864
  /**
18127
18865
  * Generic pallet tx call
18128
18866
  **/
@@ -18186,6 +18924,399 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
18186
18924
  >
18187
18925
  >;
18188
18926
 
18927
+ /**
18928
+ * Generic pallet tx call
18929
+ **/
18930
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
18931
+ };
18932
+ /**
18933
+ * Pallet `AssetConversionMigration`'s transaction calls
18934
+ **/
18935
+ assetConversionMigration: {
18936
+ /**
18937
+ * Migrates an existing pool to a new account ID derivation method for a given asset pair.
18938
+ * If the migration is successful, transaction fees are refunded to the caller.
18939
+ *
18940
+ * Must be signed.
18941
+ *
18942
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset1
18943
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset2
18944
+ **/
18945
+ migrateToNewAccount: GenericTxCall<
18946
+ Rv,
18947
+ (
18948
+ asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId,
18949
+ asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId,
18950
+ ) => ChainSubmittableExtrinsic<
18951
+ Rv,
18952
+ {
18953
+ pallet: 'AssetConversionMigration';
18954
+ palletCall: {
18955
+ name: 'MigrateToNewAccount';
18956
+ params: {
18957
+ asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId;
18958
+ asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId;
18959
+ };
18960
+ };
18961
+ }
18962
+ >
18963
+ >;
18964
+
18965
+ /**
18966
+ * Generic pallet tx call
18967
+ **/
18968
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
18969
+ };
18970
+ /**
18971
+ * Pallet `Revive`'s transaction calls
18972
+ **/
18973
+ revive: {
18974
+ /**
18975
+ * A raw EVM transaction, typically dispatched by an Ethereum JSON-RPC server.
18976
+ *
18977
+ * # Parameters
18978
+ *
18979
+ * * `payload`: The RLP-encoded [`crate::evm::TransactionLegacySigned`].
18980
+ * * `gas_limit`: The gas limit enforced during contract execution.
18981
+ * * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
18982
+ * storage usage.
18983
+ *
18984
+ * # Note
18985
+ *
18986
+ * This call cannot be dispatched directly; attempting to do so will result in a failed
18987
+ * transaction. It serves as a wrapper for an Ethereum transaction. When submitted, the
18988
+ * runtime converts it into a [`sp_runtime::generic::CheckedExtrinsic`] by recovering the
18989
+ * signer and validating the transaction.
18990
+ *
18991
+ * @param {BytesLike} payload
18992
+ * @param {SpWeightsWeightV2Weight} gasLimit
18993
+ * @param {bigint} storageDepositLimit
18994
+ **/
18995
+ ethTransact: GenericTxCall<
18996
+ Rv,
18997
+ (
18998
+ payload: BytesLike,
18999
+ gasLimit: SpWeightsWeightV2Weight,
19000
+ storageDepositLimit: bigint,
19001
+ ) => ChainSubmittableExtrinsic<
19002
+ Rv,
19003
+ {
19004
+ pallet: 'Revive';
19005
+ palletCall: {
19006
+ name: 'EthTransact';
19007
+ params: { payload: BytesLike; gasLimit: SpWeightsWeightV2Weight; storageDepositLimit: bigint };
19008
+ };
19009
+ }
19010
+ >
19011
+ >;
19012
+
19013
+ /**
19014
+ * Makes a call to an account, optionally transferring some balance.
19015
+ *
19016
+ * # Parameters
19017
+ *
19018
+ * * `dest`: Address of the contract to call.
19019
+ * * `value`: The balance to transfer from the `origin` to `dest`.
19020
+ * * `gas_limit`: The gas limit enforced when executing the constructor.
19021
+ * * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
19022
+ * caller to pay for the storage consumed.
19023
+ * * `data`: The input data to pass to the contract.
19024
+ *
19025
+ * * If the account is a smart-contract account, the associated code will be
19026
+ * executed and any value will be transferred.
19027
+ * * If the account is a regular account, any value will be transferred.
19028
+ * * If no account exists and the call value is not less than `existential_deposit`,
19029
+ * a regular account will be created and any value will be transferred.
19030
+ *
19031
+ * @param {H160} dest
19032
+ * @param {bigint} value
19033
+ * @param {SpWeightsWeightV2Weight} gasLimit
19034
+ * @param {bigint} storageDepositLimit
19035
+ * @param {BytesLike} data
19036
+ **/
19037
+ call: GenericTxCall<
19038
+ Rv,
19039
+ (
19040
+ dest: H160,
19041
+ value: bigint,
19042
+ gasLimit: SpWeightsWeightV2Weight,
19043
+ storageDepositLimit: bigint,
19044
+ data: BytesLike,
19045
+ ) => ChainSubmittableExtrinsic<
19046
+ Rv,
19047
+ {
19048
+ pallet: 'Revive';
19049
+ palletCall: {
19050
+ name: 'Call';
19051
+ params: {
19052
+ dest: H160;
19053
+ value: bigint;
19054
+ gasLimit: SpWeightsWeightV2Weight;
19055
+ storageDepositLimit: bigint;
19056
+ data: BytesLike;
19057
+ };
19058
+ };
19059
+ }
19060
+ >
19061
+ >;
19062
+
19063
+ /**
19064
+ * Instantiates a contract from a previously deployed wasm binary.
19065
+ *
19066
+ * This function is identical to [`Self::instantiate_with_code`] but without the
19067
+ * code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
19068
+ * must be supplied.
19069
+ *
19070
+ * @param {bigint} value
19071
+ * @param {SpWeightsWeightV2Weight} gasLimit
19072
+ * @param {bigint} storageDepositLimit
19073
+ * @param {H256} codeHash
19074
+ * @param {BytesLike} data
19075
+ * @param {FixedBytes<32> | undefined} salt
19076
+ **/
19077
+ instantiate: GenericTxCall<
19078
+ Rv,
19079
+ (
19080
+ value: bigint,
19081
+ gasLimit: SpWeightsWeightV2Weight,
19082
+ storageDepositLimit: bigint,
19083
+ codeHash: H256,
19084
+ data: BytesLike,
19085
+ salt: FixedBytes<32> | undefined,
19086
+ ) => ChainSubmittableExtrinsic<
19087
+ Rv,
19088
+ {
19089
+ pallet: 'Revive';
19090
+ palletCall: {
19091
+ name: 'Instantiate';
19092
+ params: {
19093
+ value: bigint;
19094
+ gasLimit: SpWeightsWeightV2Weight;
19095
+ storageDepositLimit: bigint;
19096
+ codeHash: H256;
19097
+ data: BytesLike;
19098
+ salt: FixedBytes<32> | undefined;
19099
+ };
19100
+ };
19101
+ }
19102
+ >
19103
+ >;
19104
+
19105
+ /**
19106
+ * Instantiates a new contract from the supplied `code` optionally transferring
19107
+ * some balance.
19108
+ *
19109
+ * This dispatchable has the same effect as calling [`Self::upload_code`] +
19110
+ * [`Self::instantiate`]. Bundling them together provides efficiency gains. Please
19111
+ * also check the documentation of [`Self::upload_code`].
19112
+ *
19113
+ * # Parameters
19114
+ *
19115
+ * * `value`: The balance to transfer from the `origin` to the newly created contract.
19116
+ * * `gas_limit`: The gas limit enforced when executing the constructor.
19117
+ * * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
19118
+ * from the caller to pay for the storage consumed.
19119
+ * * `code`: The contract code to deploy in raw bytes.
19120
+ * * `data`: The input data to pass to the contract constructor.
19121
+ * * `salt`: Used for the address derivation. If `Some` is supplied then `CREATE2`
19122
+ * semantics are used. If `None` then `CRATE1` is used.
19123
+ *
19124
+ *
19125
+ * Instantiation is executed as follows:
19126
+ *
19127
+ * - The supplied `code` is deployed, and a `code_hash` is created for that code.
19128
+ * - If the `code_hash` already exists on the chain the underlying `code` will be shared.
19129
+ * - The destination address is computed based on the sender, code_hash and the salt.
19130
+ * - The smart-contract account is created at the computed address.
19131
+ * - The `value` is transferred to the new account.
19132
+ * - The `deploy` function is executed in the context of the newly-created account.
19133
+ *
19134
+ * @param {bigint} value
19135
+ * @param {SpWeightsWeightV2Weight} gasLimit
19136
+ * @param {bigint} storageDepositLimit
19137
+ * @param {BytesLike} code
19138
+ * @param {BytesLike} data
19139
+ * @param {FixedBytes<32> | undefined} salt
19140
+ **/
19141
+ instantiateWithCode: GenericTxCall<
19142
+ Rv,
19143
+ (
19144
+ value: bigint,
19145
+ gasLimit: SpWeightsWeightV2Weight,
19146
+ storageDepositLimit: bigint,
19147
+ code: BytesLike,
19148
+ data: BytesLike,
19149
+ salt: FixedBytes<32> | undefined,
19150
+ ) => ChainSubmittableExtrinsic<
19151
+ Rv,
19152
+ {
19153
+ pallet: 'Revive';
19154
+ palletCall: {
19155
+ name: 'InstantiateWithCode';
19156
+ params: {
19157
+ value: bigint;
19158
+ gasLimit: SpWeightsWeightV2Weight;
19159
+ storageDepositLimit: bigint;
19160
+ code: BytesLike;
19161
+ data: BytesLike;
19162
+ salt: FixedBytes<32> | undefined;
19163
+ };
19164
+ };
19165
+ }
19166
+ >
19167
+ >;
19168
+
19169
+ /**
19170
+ * Upload new `code` without instantiating a contract from it.
19171
+ *
19172
+ * If the code does not already exist a deposit is reserved from the caller
19173
+ * and unreserved only when [`Self::remove_code`] is called. The size of the reserve
19174
+ * depends on the size of the supplied `code`.
19175
+ *
19176
+ * # Note
19177
+ *
19178
+ * Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
19179
+ * To avoid this situation a constructor could employ access control so that it can
19180
+ * only be instantiated by permissioned entities. The same is true when uploading
19181
+ * through [`Self::instantiate_with_code`].
19182
+ *
19183
+ * @param {BytesLike} code
19184
+ * @param {bigint} storageDepositLimit
19185
+ **/
19186
+ uploadCode: GenericTxCall<
19187
+ Rv,
19188
+ (
19189
+ code: BytesLike,
19190
+ storageDepositLimit: bigint,
19191
+ ) => ChainSubmittableExtrinsic<
19192
+ Rv,
19193
+ {
19194
+ pallet: 'Revive';
19195
+ palletCall: {
19196
+ name: 'UploadCode';
19197
+ params: { code: BytesLike; storageDepositLimit: bigint };
19198
+ };
19199
+ }
19200
+ >
19201
+ >;
19202
+
19203
+ /**
19204
+ * Remove the code stored under `code_hash` and refund the deposit to its owner.
19205
+ *
19206
+ * A code can only be removed by its original uploader (its owner) and only if it is
19207
+ * not used by any contract.
19208
+ *
19209
+ * @param {H256} codeHash
19210
+ **/
19211
+ removeCode: GenericTxCall<
19212
+ Rv,
19213
+ (codeHash: H256) => ChainSubmittableExtrinsic<
19214
+ Rv,
19215
+ {
19216
+ pallet: 'Revive';
19217
+ palletCall: {
19218
+ name: 'RemoveCode';
19219
+ params: { codeHash: H256 };
19220
+ };
19221
+ }
19222
+ >
19223
+ >;
19224
+
19225
+ /**
19226
+ * Privileged function that changes the code of an existing contract.
19227
+ *
19228
+ * This takes care of updating refcounts and all other necessary operations. Returns
19229
+ * an error if either the `code_hash` or `dest` do not exist.
19230
+ *
19231
+ * # Note
19232
+ *
19233
+ * This does **not** change the address of the contract in question. This means
19234
+ * that the contract address is no longer derived from its code hash after calling
19235
+ * this dispatchable.
19236
+ *
19237
+ * @param {H160} dest
19238
+ * @param {H256} codeHash
19239
+ **/
19240
+ setCode: GenericTxCall<
19241
+ Rv,
19242
+ (
19243
+ dest: H160,
19244
+ codeHash: H256,
19245
+ ) => ChainSubmittableExtrinsic<
19246
+ Rv,
19247
+ {
19248
+ pallet: 'Revive';
19249
+ palletCall: {
19250
+ name: 'SetCode';
19251
+ params: { dest: H160; codeHash: H256 };
19252
+ };
19253
+ }
19254
+ >
19255
+ >;
19256
+
19257
+ /**
19258
+ * Register the callers account id so that it can be used in contract interactions.
19259
+ *
19260
+ * This will error if the origin is already mapped or is a eth native `Address20`. It will
19261
+ * take a deposit that can be released by calling [`Self::unmap_account`].
19262
+ *
19263
+ **/
19264
+ mapAccount: GenericTxCall<
19265
+ Rv,
19266
+ () => ChainSubmittableExtrinsic<
19267
+ Rv,
19268
+ {
19269
+ pallet: 'Revive';
19270
+ palletCall: {
19271
+ name: 'MapAccount';
19272
+ };
19273
+ }
19274
+ >
19275
+ >;
19276
+
19277
+ /**
19278
+ * Unregister the callers account id in order to free the deposit.
19279
+ *
19280
+ * There is no reason to ever call this function other than freeing up the deposit.
19281
+ * This is only useful when the account should no longer be used.
19282
+ *
19283
+ **/
19284
+ unmapAccount: GenericTxCall<
19285
+ Rv,
19286
+ () => ChainSubmittableExtrinsic<
19287
+ Rv,
19288
+ {
19289
+ pallet: 'Revive';
19290
+ palletCall: {
19291
+ name: 'UnmapAccount';
19292
+ };
19293
+ }
19294
+ >
19295
+ >;
19296
+
19297
+ /**
19298
+ * Dispatch an `call` with the origin set to the callers fallback address.
19299
+ *
19300
+ * Every `AccountId32` can control its corresponding fallback account. The fallback account
19301
+ * is the `AccountId20` with the last 12 bytes set to `0xEE`. This is essentially a
19302
+ * recovery function in case an `AccountId20` was used without creating a mapping first.
19303
+ *
19304
+ * @param {KitchensinkRuntimeRuntimeCallLike} call
19305
+ **/
19306
+ dispatchAsFallbackAccount: GenericTxCall<
19307
+ Rv,
19308
+ (call: KitchensinkRuntimeRuntimeCallLike) => ChainSubmittableExtrinsic<
19309
+ Rv,
19310
+ {
19311
+ pallet: 'Revive';
19312
+ palletCall: {
19313
+ name: 'DispatchAsFallbackAccount';
19314
+ params: { call: KitchensinkRuntimeRuntimeCallLike };
19315
+ };
19316
+ }
19317
+ >
19318
+ >;
19319
+
18189
19320
  /**
18190
19321
  * Generic pallet tx call
18191
19322
  **/