@dedot/chaintypes 0.160.0 → 0.161.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/kusama/consts.d.ts +24 -122
- package/kusama/errors.d.ts +108 -154
- package/kusama/events.d.ts +343 -246
- package/kusama/index.d.ts +1 -1
- package/kusama/query.d.ts +311 -138
- package/kusama/tx.d.ts +412 -444
- package/kusama/types.d.ts +871 -311
- package/kusama-asset-hub/consts.d.ts +762 -2
- package/kusama-asset-hub/errors.d.ts +1664 -127
- package/kusama-asset-hub/events.d.ts +2031 -1
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/query.d.ts +2068 -64
- package/kusama-asset-hub/tx.d.ts +12102 -5716
- package/kusama-asset-hub/types.d.ts +18076 -8899
- package/kusama-asset-hub/view-functions.d.ts +44 -0
- package/kusama-people/index.d.ts +1 -1
- package/package.json +2 -2
package/kusama/tx.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ import type {
|
|
|
20
20
|
Perbill,
|
|
21
21
|
EthereumAddressLike,
|
|
22
22
|
FixedBytes,
|
|
23
|
-
Perquintill,
|
|
24
23
|
FixedU128,
|
|
25
24
|
} from 'dedot/codecs';
|
|
26
25
|
import type {
|
|
@@ -67,6 +66,8 @@ import type {
|
|
|
67
66
|
PalletNominationPoolsClaimPermission,
|
|
68
67
|
PalletNominationPoolsCommissionChangeRate,
|
|
69
68
|
PalletNominationPoolsCommissionClaimPermission,
|
|
69
|
+
PalletStakingAsyncRcClientValidatorSetReport,
|
|
70
|
+
PalletStakingAsyncAhClientOperatingMode,
|
|
70
71
|
PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
|
|
71
72
|
PolkadotPrimitivesV8ExecutorParams,
|
|
72
73
|
PolkadotPrimitivesV8ApprovalVotingParams,
|
|
@@ -93,6 +94,10 @@ import type {
|
|
|
93
94
|
SpConsensusBeefyDoubleVotingProof,
|
|
94
95
|
SpConsensusBeefyForkVotingProof,
|
|
95
96
|
SpConsensusBeefyFutureBlockVotingProof,
|
|
97
|
+
PalletRcMigratorMigrationStage,
|
|
98
|
+
StagingXcmV5Response,
|
|
99
|
+
PalletRcMigratorQueuePriority,
|
|
100
|
+
PalletRcMigratorManagerMultisigVote,
|
|
96
101
|
} from './types.js';
|
|
97
102
|
|
|
98
103
|
export type ChainSubmittableExtrinsic<
|
|
@@ -6899,449 +6904,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
6899
6904
|
**/
|
|
6900
6905
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
6901
6906
|
};
|
|
6902
|
-
/**
|
|
6903
|
-
* Pallet `Nis`'s transaction calls
|
|
6904
|
-
**/
|
|
6905
|
-
nis: {
|
|
6906
|
-
/**
|
|
6907
|
-
* Place a bid.
|
|
6908
|
-
*
|
|
6909
|
-
* Origin must be Signed, and account must have at least `amount` in free balance.
|
|
6910
|
-
*
|
|
6911
|
-
* - `amount`: The amount of the bid; these funds will be reserved, and if/when
|
|
6912
|
-
* consolidated, removed. Must be at least `MinBid`.
|
|
6913
|
-
* - `duration`: The number of periods before which the newly consolidated bid may be
|
|
6914
|
-
* thawed. Must be greater than 1 and no more than `QueueCount`.
|
|
6915
|
-
*
|
|
6916
|
-
* Complexities:
|
|
6917
|
-
* - `Queues[duration].len()` (just take max).
|
|
6918
|
-
*
|
|
6919
|
-
* @param {bigint} amount
|
|
6920
|
-
* @param {number} duration
|
|
6921
|
-
**/
|
|
6922
|
-
placeBid: GenericTxCall<
|
|
6923
|
-
Rv,
|
|
6924
|
-
(
|
|
6925
|
-
amount: bigint,
|
|
6926
|
-
duration: number,
|
|
6927
|
-
) => ChainSubmittableExtrinsic<
|
|
6928
|
-
Rv,
|
|
6929
|
-
{
|
|
6930
|
-
pallet: 'Nis';
|
|
6931
|
-
palletCall: {
|
|
6932
|
-
name: 'PlaceBid';
|
|
6933
|
-
params: { amount: bigint; duration: number };
|
|
6934
|
-
};
|
|
6935
|
-
}
|
|
6936
|
-
>
|
|
6937
|
-
>;
|
|
6938
|
-
|
|
6939
|
-
/**
|
|
6940
|
-
* Retract a previously placed bid.
|
|
6941
|
-
*
|
|
6942
|
-
* Origin must be Signed, and the account should have previously issued a still-active bid
|
|
6943
|
-
* of `amount` for `duration`.
|
|
6944
|
-
*
|
|
6945
|
-
* - `amount`: The amount of the previous bid.
|
|
6946
|
-
* - `duration`: The duration of the previous bid.
|
|
6947
|
-
*
|
|
6948
|
-
* @param {bigint} amount
|
|
6949
|
-
* @param {number} duration
|
|
6950
|
-
**/
|
|
6951
|
-
retractBid: GenericTxCall<
|
|
6952
|
-
Rv,
|
|
6953
|
-
(
|
|
6954
|
-
amount: bigint,
|
|
6955
|
-
duration: number,
|
|
6956
|
-
) => ChainSubmittableExtrinsic<
|
|
6957
|
-
Rv,
|
|
6958
|
-
{
|
|
6959
|
-
pallet: 'Nis';
|
|
6960
|
-
palletCall: {
|
|
6961
|
-
name: 'RetractBid';
|
|
6962
|
-
params: { amount: bigint; duration: number };
|
|
6963
|
-
};
|
|
6964
|
-
}
|
|
6965
|
-
>
|
|
6966
|
-
>;
|
|
6967
|
-
|
|
6968
|
-
/**
|
|
6969
|
-
* Ensure we have sufficient funding for all potential payouts.
|
|
6970
|
-
*
|
|
6971
|
-
* - `origin`: Must be accepted by `FundOrigin`.
|
|
6972
|
-
*
|
|
6973
|
-
**/
|
|
6974
|
-
fundDeficit: GenericTxCall<
|
|
6975
|
-
Rv,
|
|
6976
|
-
() => ChainSubmittableExtrinsic<
|
|
6977
|
-
Rv,
|
|
6978
|
-
{
|
|
6979
|
-
pallet: 'Nis';
|
|
6980
|
-
palletCall: {
|
|
6981
|
-
name: 'FundDeficit';
|
|
6982
|
-
};
|
|
6983
|
-
}
|
|
6984
|
-
>
|
|
6985
|
-
>;
|
|
6986
|
-
|
|
6987
|
-
/**
|
|
6988
|
-
* Reduce or remove an outstanding receipt, placing the according proportion of funds into
|
|
6989
|
-
* the account of the owner.
|
|
6990
|
-
*
|
|
6991
|
-
* - `origin`: Must be Signed and the account must be the owner of the receipt `index` as
|
|
6992
|
-
* well as any fungible counterpart.
|
|
6993
|
-
* - `index`: The index of the receipt.
|
|
6994
|
-
* - `portion`: If `Some`, then only the given portion of the receipt should be thawed. If
|
|
6995
|
-
* `None`, then all of it should be.
|
|
6996
|
-
*
|
|
6997
|
-
* @param {number} index
|
|
6998
|
-
* @param {Perquintill | undefined} maybeProportion
|
|
6999
|
-
**/
|
|
7000
|
-
thawPrivate: GenericTxCall<
|
|
7001
|
-
Rv,
|
|
7002
|
-
(
|
|
7003
|
-
index: number,
|
|
7004
|
-
maybeProportion: Perquintill | undefined,
|
|
7005
|
-
) => ChainSubmittableExtrinsic<
|
|
7006
|
-
Rv,
|
|
7007
|
-
{
|
|
7008
|
-
pallet: 'Nis';
|
|
7009
|
-
palletCall: {
|
|
7010
|
-
name: 'ThawPrivate';
|
|
7011
|
-
params: { index: number; maybeProportion: Perquintill | undefined };
|
|
7012
|
-
};
|
|
7013
|
-
}
|
|
7014
|
-
>
|
|
7015
|
-
>;
|
|
7016
|
-
|
|
7017
|
-
/**
|
|
7018
|
-
* Reduce or remove an outstanding receipt, placing the according proportion of funds into
|
|
7019
|
-
* the account of the owner.
|
|
7020
|
-
*
|
|
7021
|
-
* - `origin`: Must be Signed and the account must be the owner of the fungible counterpart
|
|
7022
|
-
* for receipt `index`.
|
|
7023
|
-
* - `index`: The index of the receipt.
|
|
7024
|
-
*
|
|
7025
|
-
* @param {number} index
|
|
7026
|
-
**/
|
|
7027
|
-
thawCommunal: GenericTxCall<
|
|
7028
|
-
Rv,
|
|
7029
|
-
(index: number) => ChainSubmittableExtrinsic<
|
|
7030
|
-
Rv,
|
|
7031
|
-
{
|
|
7032
|
-
pallet: 'Nis';
|
|
7033
|
-
palletCall: {
|
|
7034
|
-
name: 'ThawCommunal';
|
|
7035
|
-
params: { index: number };
|
|
7036
|
-
};
|
|
7037
|
-
}
|
|
7038
|
-
>
|
|
7039
|
-
>;
|
|
7040
|
-
|
|
7041
|
-
/**
|
|
7042
|
-
* Make a private receipt communal and create fungible counterparts for its owner.
|
|
7043
|
-
*
|
|
7044
|
-
* @param {number} index
|
|
7045
|
-
**/
|
|
7046
|
-
communify: GenericTxCall<
|
|
7047
|
-
Rv,
|
|
7048
|
-
(index: number) => ChainSubmittableExtrinsic<
|
|
7049
|
-
Rv,
|
|
7050
|
-
{
|
|
7051
|
-
pallet: 'Nis';
|
|
7052
|
-
palletCall: {
|
|
7053
|
-
name: 'Communify';
|
|
7054
|
-
params: { index: number };
|
|
7055
|
-
};
|
|
7056
|
-
}
|
|
7057
|
-
>
|
|
7058
|
-
>;
|
|
7059
|
-
|
|
7060
|
-
/**
|
|
7061
|
-
* Make a communal receipt private and burn fungible counterparts from its owner.
|
|
7062
|
-
*
|
|
7063
|
-
* @param {number} index
|
|
7064
|
-
**/
|
|
7065
|
-
privatize: GenericTxCall<
|
|
7066
|
-
Rv,
|
|
7067
|
-
(index: number) => ChainSubmittableExtrinsic<
|
|
7068
|
-
Rv,
|
|
7069
|
-
{
|
|
7070
|
-
pallet: 'Nis';
|
|
7071
|
-
palletCall: {
|
|
7072
|
-
name: 'Privatize';
|
|
7073
|
-
params: { index: number };
|
|
7074
|
-
};
|
|
7075
|
-
}
|
|
7076
|
-
>
|
|
7077
|
-
>;
|
|
7078
|
-
|
|
7079
|
-
/**
|
|
7080
|
-
* Generic pallet tx call
|
|
7081
|
-
**/
|
|
7082
|
-
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
7083
|
-
};
|
|
7084
|
-
/**
|
|
7085
|
-
* Pallet `NisCounterpartBalances`'s transaction calls
|
|
7086
|
-
**/
|
|
7087
|
-
nisCounterpartBalances: {
|
|
7088
|
-
/**
|
|
7089
|
-
* Transfer some liquid free balance to another account.
|
|
7090
|
-
*
|
|
7091
|
-
* `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
|
|
7092
|
-
* If the sender's account is below the existential deposit as a result
|
|
7093
|
-
* of the transfer, the account will be reaped.
|
|
7094
|
-
*
|
|
7095
|
-
* The dispatch origin for this call must be `Signed` by the transactor.
|
|
7096
|
-
*
|
|
7097
|
-
* @param {MultiAddressLike} dest
|
|
7098
|
-
* @param {bigint} value
|
|
7099
|
-
**/
|
|
7100
|
-
transferAllowDeath: GenericTxCall<
|
|
7101
|
-
Rv,
|
|
7102
|
-
(
|
|
7103
|
-
dest: MultiAddressLike,
|
|
7104
|
-
value: bigint,
|
|
7105
|
-
) => ChainSubmittableExtrinsic<
|
|
7106
|
-
Rv,
|
|
7107
|
-
{
|
|
7108
|
-
pallet: 'NisCounterpartBalances';
|
|
7109
|
-
palletCall: {
|
|
7110
|
-
name: 'TransferAllowDeath';
|
|
7111
|
-
params: { dest: MultiAddressLike; value: bigint };
|
|
7112
|
-
};
|
|
7113
|
-
}
|
|
7114
|
-
>
|
|
7115
|
-
>;
|
|
7116
|
-
|
|
7117
|
-
/**
|
|
7118
|
-
* Exactly as `transfer_allow_death`, except the origin must be root and the source account
|
|
7119
|
-
* may be specified.
|
|
7120
|
-
*
|
|
7121
|
-
* @param {MultiAddressLike} source
|
|
7122
|
-
* @param {MultiAddressLike} dest
|
|
7123
|
-
* @param {bigint} value
|
|
7124
|
-
**/
|
|
7125
|
-
forceTransfer: GenericTxCall<
|
|
7126
|
-
Rv,
|
|
7127
|
-
(
|
|
7128
|
-
source: MultiAddressLike,
|
|
7129
|
-
dest: MultiAddressLike,
|
|
7130
|
-
value: bigint,
|
|
7131
|
-
) => ChainSubmittableExtrinsic<
|
|
7132
|
-
Rv,
|
|
7133
|
-
{
|
|
7134
|
-
pallet: 'NisCounterpartBalances';
|
|
7135
|
-
palletCall: {
|
|
7136
|
-
name: 'ForceTransfer';
|
|
7137
|
-
params: { source: MultiAddressLike; dest: MultiAddressLike; value: bigint };
|
|
7138
|
-
};
|
|
7139
|
-
}
|
|
7140
|
-
>
|
|
7141
|
-
>;
|
|
7142
|
-
|
|
7143
|
-
/**
|
|
7144
|
-
* Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
|
|
7145
|
-
* kill the origin account.
|
|
7146
|
-
*
|
|
7147
|
-
* 99% of the time you want [`transfer_allow_death`] instead.
|
|
7148
|
-
*
|
|
7149
|
-
* [`transfer_allow_death`]: struct.Pallet.html#method.transfer
|
|
7150
|
-
*
|
|
7151
|
-
* @param {MultiAddressLike} dest
|
|
7152
|
-
* @param {bigint} value
|
|
7153
|
-
**/
|
|
7154
|
-
transferKeepAlive: GenericTxCall<
|
|
7155
|
-
Rv,
|
|
7156
|
-
(
|
|
7157
|
-
dest: MultiAddressLike,
|
|
7158
|
-
value: bigint,
|
|
7159
|
-
) => ChainSubmittableExtrinsic<
|
|
7160
|
-
Rv,
|
|
7161
|
-
{
|
|
7162
|
-
pallet: 'NisCounterpartBalances';
|
|
7163
|
-
palletCall: {
|
|
7164
|
-
name: 'TransferKeepAlive';
|
|
7165
|
-
params: { dest: MultiAddressLike; value: bigint };
|
|
7166
|
-
};
|
|
7167
|
-
}
|
|
7168
|
-
>
|
|
7169
|
-
>;
|
|
7170
|
-
|
|
7171
|
-
/**
|
|
7172
|
-
* Transfer the entire transferable balance from the caller account.
|
|
7173
|
-
*
|
|
7174
|
-
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
|
7175
|
-
* any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
|
|
7176
|
-
* transferred by this function. To ensure that this function results in a killed account,
|
|
7177
|
-
* you might need to prepare the account by removing any reference counters, storage
|
|
7178
|
-
* deposits, etc...
|
|
7179
|
-
*
|
|
7180
|
-
* The dispatch origin of this call must be Signed.
|
|
7181
|
-
*
|
|
7182
|
-
* - `dest`: The recipient of the transfer.
|
|
7183
|
-
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
7184
|
-
* of the funds the account has, causing the sender account to be killed (false), or
|
|
7185
|
-
* transfer everything except at least the existential deposit, which will guarantee to
|
|
7186
|
-
* keep the sender account alive (true).
|
|
7187
|
-
*
|
|
7188
|
-
* @param {MultiAddressLike} dest
|
|
7189
|
-
* @param {boolean} keepAlive
|
|
7190
|
-
**/
|
|
7191
|
-
transferAll: GenericTxCall<
|
|
7192
|
-
Rv,
|
|
7193
|
-
(
|
|
7194
|
-
dest: MultiAddressLike,
|
|
7195
|
-
keepAlive: boolean,
|
|
7196
|
-
) => ChainSubmittableExtrinsic<
|
|
7197
|
-
Rv,
|
|
7198
|
-
{
|
|
7199
|
-
pallet: 'NisCounterpartBalances';
|
|
7200
|
-
palletCall: {
|
|
7201
|
-
name: 'TransferAll';
|
|
7202
|
-
params: { dest: MultiAddressLike; keepAlive: boolean };
|
|
7203
|
-
};
|
|
7204
|
-
}
|
|
7205
|
-
>
|
|
7206
|
-
>;
|
|
7207
|
-
|
|
7208
|
-
/**
|
|
7209
|
-
* Unreserve some balance from a user by force.
|
|
7210
|
-
*
|
|
7211
|
-
* Can only be called by ROOT.
|
|
7212
|
-
*
|
|
7213
|
-
* @param {MultiAddressLike} who
|
|
7214
|
-
* @param {bigint} amount
|
|
7215
|
-
**/
|
|
7216
|
-
forceUnreserve: GenericTxCall<
|
|
7217
|
-
Rv,
|
|
7218
|
-
(
|
|
7219
|
-
who: MultiAddressLike,
|
|
7220
|
-
amount: bigint,
|
|
7221
|
-
) => ChainSubmittableExtrinsic<
|
|
7222
|
-
Rv,
|
|
7223
|
-
{
|
|
7224
|
-
pallet: 'NisCounterpartBalances';
|
|
7225
|
-
palletCall: {
|
|
7226
|
-
name: 'ForceUnreserve';
|
|
7227
|
-
params: { who: MultiAddressLike; amount: bigint };
|
|
7228
|
-
};
|
|
7229
|
-
}
|
|
7230
|
-
>
|
|
7231
|
-
>;
|
|
7232
|
-
|
|
7233
|
-
/**
|
|
7234
|
-
* Upgrade a specified account.
|
|
7235
|
-
*
|
|
7236
|
-
* - `origin`: Must be `Signed`.
|
|
7237
|
-
* - `who`: The account to be upgraded.
|
|
7238
|
-
*
|
|
7239
|
-
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
|
7240
|
-
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
|
7241
|
-
* possibility of churn).
|
|
7242
|
-
*
|
|
7243
|
-
* @param {Array<AccountId32Like>} who
|
|
7244
|
-
**/
|
|
7245
|
-
upgradeAccounts: GenericTxCall<
|
|
7246
|
-
Rv,
|
|
7247
|
-
(who: Array<AccountId32Like>) => ChainSubmittableExtrinsic<
|
|
7248
|
-
Rv,
|
|
7249
|
-
{
|
|
7250
|
-
pallet: 'NisCounterpartBalances';
|
|
7251
|
-
palletCall: {
|
|
7252
|
-
name: 'UpgradeAccounts';
|
|
7253
|
-
params: { who: Array<AccountId32Like> };
|
|
7254
|
-
};
|
|
7255
|
-
}
|
|
7256
|
-
>
|
|
7257
|
-
>;
|
|
7258
|
-
|
|
7259
|
-
/**
|
|
7260
|
-
* Set the regular balance of a given account.
|
|
7261
|
-
*
|
|
7262
|
-
* The dispatch origin for this call is `root`.
|
|
7263
|
-
*
|
|
7264
|
-
* @param {MultiAddressLike} who
|
|
7265
|
-
* @param {bigint} newFree
|
|
7266
|
-
**/
|
|
7267
|
-
forceSetBalance: GenericTxCall<
|
|
7268
|
-
Rv,
|
|
7269
|
-
(
|
|
7270
|
-
who: MultiAddressLike,
|
|
7271
|
-
newFree: bigint,
|
|
7272
|
-
) => ChainSubmittableExtrinsic<
|
|
7273
|
-
Rv,
|
|
7274
|
-
{
|
|
7275
|
-
pallet: 'NisCounterpartBalances';
|
|
7276
|
-
palletCall: {
|
|
7277
|
-
name: 'ForceSetBalance';
|
|
7278
|
-
params: { who: MultiAddressLike; newFree: bigint };
|
|
7279
|
-
};
|
|
7280
|
-
}
|
|
7281
|
-
>
|
|
7282
|
-
>;
|
|
7283
|
-
|
|
7284
|
-
/**
|
|
7285
|
-
* Adjust the total issuance in a saturating way.
|
|
7286
|
-
*
|
|
7287
|
-
* Can only be called by root and always needs a positive `delta`.
|
|
7288
|
-
*
|
|
7289
|
-
* # Example
|
|
7290
|
-
*
|
|
7291
|
-
* @param {PalletBalancesAdjustmentDirection} direction
|
|
7292
|
-
* @param {bigint} delta
|
|
7293
|
-
**/
|
|
7294
|
-
forceAdjustTotalIssuance: GenericTxCall<
|
|
7295
|
-
Rv,
|
|
7296
|
-
(
|
|
7297
|
-
direction: PalletBalancesAdjustmentDirection,
|
|
7298
|
-
delta: bigint,
|
|
7299
|
-
) => ChainSubmittableExtrinsic<
|
|
7300
|
-
Rv,
|
|
7301
|
-
{
|
|
7302
|
-
pallet: 'NisCounterpartBalances';
|
|
7303
|
-
palletCall: {
|
|
7304
|
-
name: 'ForceAdjustTotalIssuance';
|
|
7305
|
-
params: { direction: PalletBalancesAdjustmentDirection; delta: bigint };
|
|
7306
|
-
};
|
|
7307
|
-
}
|
|
7308
|
-
>
|
|
7309
|
-
>;
|
|
7310
|
-
|
|
7311
|
-
/**
|
|
7312
|
-
* Burn the specified liquid free balance from the origin account.
|
|
7313
|
-
*
|
|
7314
|
-
* If the origin's account ends up below the existential deposit as a result
|
|
7315
|
-
* of the burn and `keep_alive` is false, the account will be reaped.
|
|
7316
|
-
*
|
|
7317
|
-
* Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
|
|
7318
|
-
* this `burn` operation will reduce total issuance by the amount _burned_.
|
|
7319
|
-
*
|
|
7320
|
-
* @param {bigint} value
|
|
7321
|
-
* @param {boolean} keepAlive
|
|
7322
|
-
**/
|
|
7323
|
-
burn: GenericTxCall<
|
|
7324
|
-
Rv,
|
|
7325
|
-
(
|
|
7326
|
-
value: bigint,
|
|
7327
|
-
keepAlive: boolean,
|
|
7328
|
-
) => ChainSubmittableExtrinsic<
|
|
7329
|
-
Rv,
|
|
7330
|
-
{
|
|
7331
|
-
pallet: 'NisCounterpartBalances';
|
|
7332
|
-
palletCall: {
|
|
7333
|
-
name: 'Burn';
|
|
7334
|
-
params: { value: bigint; keepAlive: boolean };
|
|
7335
|
-
};
|
|
7336
|
-
}
|
|
7337
|
-
>
|
|
7338
|
-
>;
|
|
7339
|
-
|
|
7340
|
-
/**
|
|
7341
|
-
* Generic pallet tx call
|
|
7342
|
-
**/
|
|
7343
|
-
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
7344
|
-
};
|
|
7345
6907
|
/**
|
|
7346
6908
|
* Pallet `VoterList`'s transaction calls
|
|
7347
6909
|
**/
|
|
@@ -8389,6 +7951,69 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8389
7951
|
**/
|
|
8390
7952
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
8391
7953
|
};
|
|
7954
|
+
/**
|
|
7955
|
+
* Pallet `StakingAhClient`'s transaction calls
|
|
7956
|
+
**/
|
|
7957
|
+
stakingAhClient: {
|
|
7958
|
+
/**
|
|
7959
|
+
*
|
|
7960
|
+
* @param {PalletStakingAsyncRcClientValidatorSetReport} report
|
|
7961
|
+
**/
|
|
7962
|
+
validatorSet: GenericTxCall<
|
|
7963
|
+
Rv,
|
|
7964
|
+
(report: PalletStakingAsyncRcClientValidatorSetReport) => ChainSubmittableExtrinsic<
|
|
7965
|
+
Rv,
|
|
7966
|
+
{
|
|
7967
|
+
pallet: 'StakingAhClient';
|
|
7968
|
+
palletCall: {
|
|
7969
|
+
name: 'ValidatorSet';
|
|
7970
|
+
params: { report: PalletStakingAsyncRcClientValidatorSetReport };
|
|
7971
|
+
};
|
|
7972
|
+
}
|
|
7973
|
+
>
|
|
7974
|
+
>;
|
|
7975
|
+
|
|
7976
|
+
/**
|
|
7977
|
+
* Allows governance to force set the operating mode of the pallet.
|
|
7978
|
+
*
|
|
7979
|
+
* @param {PalletStakingAsyncAhClientOperatingMode} mode
|
|
7980
|
+
**/
|
|
7981
|
+
setMode: GenericTxCall<
|
|
7982
|
+
Rv,
|
|
7983
|
+
(mode: PalletStakingAsyncAhClientOperatingMode) => ChainSubmittableExtrinsic<
|
|
7984
|
+
Rv,
|
|
7985
|
+
{
|
|
7986
|
+
pallet: 'StakingAhClient';
|
|
7987
|
+
palletCall: {
|
|
7988
|
+
name: 'SetMode';
|
|
7989
|
+
params: { mode: PalletStakingAsyncAhClientOperatingMode };
|
|
7990
|
+
};
|
|
7991
|
+
}
|
|
7992
|
+
>
|
|
7993
|
+
>;
|
|
7994
|
+
|
|
7995
|
+
/**
|
|
7996
|
+
* manually do what this pallet was meant to do at the end of the migration.
|
|
7997
|
+
*
|
|
7998
|
+
**/
|
|
7999
|
+
forceOnMigrationEnd: GenericTxCall<
|
|
8000
|
+
Rv,
|
|
8001
|
+
() => ChainSubmittableExtrinsic<
|
|
8002
|
+
Rv,
|
|
8003
|
+
{
|
|
8004
|
+
pallet: 'StakingAhClient';
|
|
8005
|
+
palletCall: {
|
|
8006
|
+
name: 'ForceOnMigrationEnd';
|
|
8007
|
+
};
|
|
8008
|
+
}
|
|
8009
|
+
>
|
|
8010
|
+
>;
|
|
8011
|
+
|
|
8012
|
+
/**
|
|
8013
|
+
* Generic pallet tx call
|
|
8014
|
+
**/
|
|
8015
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
8016
|
+
};
|
|
8392
8017
|
/**
|
|
8393
8018
|
* Pallet `Configuration`'s transaction calls
|
|
8394
8019
|
**/
|
|
@@ -12120,6 +11745,349 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
12120
11745
|
>
|
|
12121
11746
|
>;
|
|
12122
11747
|
|
|
11748
|
+
/**
|
|
11749
|
+
* Generic pallet tx call
|
|
11750
|
+
**/
|
|
11751
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
11752
|
+
};
|
|
11753
|
+
/**
|
|
11754
|
+
* Pallet `RcMigrator`'s transaction calls
|
|
11755
|
+
**/
|
|
11756
|
+
rcMigrator: {
|
|
11757
|
+
/**
|
|
11758
|
+
* Set the migration stage.
|
|
11759
|
+
*
|
|
11760
|
+
* This call is intended for emergency use only and is guarded by the
|
|
11761
|
+
* [`Config::AdminOrigin`].
|
|
11762
|
+
*
|
|
11763
|
+
* @param {PalletRcMigratorMigrationStage} stage
|
|
11764
|
+
**/
|
|
11765
|
+
forceSetStage: GenericTxCall<
|
|
11766
|
+
Rv,
|
|
11767
|
+
(stage: PalletRcMigratorMigrationStage) => ChainSubmittableExtrinsic<
|
|
11768
|
+
Rv,
|
|
11769
|
+
{
|
|
11770
|
+
pallet: 'RcMigrator';
|
|
11771
|
+
palletCall: {
|
|
11772
|
+
name: 'ForceSetStage';
|
|
11773
|
+
params: { stage: PalletRcMigratorMigrationStage };
|
|
11774
|
+
};
|
|
11775
|
+
}
|
|
11776
|
+
>
|
|
11777
|
+
>;
|
|
11778
|
+
|
|
11779
|
+
/**
|
|
11780
|
+
* Schedule the migration to start at a given moment.
|
|
11781
|
+
*
|
|
11782
|
+
* ### Parameters:
|
|
11783
|
+
* - `start`: The block number at which the migration will start. `DispatchTime` calculated
|
|
11784
|
+
* at the moment of the extrinsic execution.
|
|
11785
|
+
* - `warm_up`: Duration or timepoint that will be used to prepare for the migration. Calls
|
|
11786
|
+
* are filtered during this period. It is intended to give enough time for UMP and DMP
|
|
11787
|
+
* queues to empty. `DispatchTime` calculated at the moment of the transition to the
|
|
11788
|
+
* warm-up stage.
|
|
11789
|
+
* - `cool_off`: The block number at which the post migration cool-off period will end. The
|
|
11790
|
+
* `DispatchTime` calculated at the moment of the transition to the cool-off stage.
|
|
11791
|
+
* - `unsafe_ignore_staking_lock_check`: ONLY FOR TESTING. Ignore the check whether the
|
|
11792
|
+
* scheduled time point is far enough in the future.
|
|
11793
|
+
*
|
|
11794
|
+
* Note: If the staking election for next era is already complete, and the next
|
|
11795
|
+
* validator set is queued in `pallet-session`, we want to avoid starting the data
|
|
11796
|
+
* migration at this point as it can lead to some missed validator rewards. To address
|
|
11797
|
+
* this, we stop staking election at the start of migration and must wait atleast 1
|
|
11798
|
+
* session (set via warm_up) before starting the data migration.
|
|
11799
|
+
*
|
|
11800
|
+
* Read [`MigrationStage::Scheduled`] documentation for more details.
|
|
11801
|
+
*
|
|
11802
|
+
* @param {FrameSupportScheduleDispatchTime} start
|
|
11803
|
+
* @param {FrameSupportScheduleDispatchTime} warmUp
|
|
11804
|
+
* @param {FrameSupportScheduleDispatchTime} coolOff
|
|
11805
|
+
* @param {boolean} unsafeIgnoreStakingLockCheck
|
|
11806
|
+
**/
|
|
11807
|
+
scheduleMigration: GenericTxCall<
|
|
11808
|
+
Rv,
|
|
11809
|
+
(
|
|
11810
|
+
start: FrameSupportScheduleDispatchTime,
|
|
11811
|
+
warmUp: FrameSupportScheduleDispatchTime,
|
|
11812
|
+
coolOff: FrameSupportScheduleDispatchTime,
|
|
11813
|
+
unsafeIgnoreStakingLockCheck: boolean,
|
|
11814
|
+
) => ChainSubmittableExtrinsic<
|
|
11815
|
+
Rv,
|
|
11816
|
+
{
|
|
11817
|
+
pallet: 'RcMigrator';
|
|
11818
|
+
palletCall: {
|
|
11819
|
+
name: 'ScheduleMigration';
|
|
11820
|
+
params: {
|
|
11821
|
+
start: FrameSupportScheduleDispatchTime;
|
|
11822
|
+
warmUp: FrameSupportScheduleDispatchTime;
|
|
11823
|
+
coolOff: FrameSupportScheduleDispatchTime;
|
|
11824
|
+
unsafeIgnoreStakingLockCheck: boolean;
|
|
11825
|
+
};
|
|
11826
|
+
};
|
|
11827
|
+
}
|
|
11828
|
+
>
|
|
11829
|
+
>;
|
|
11830
|
+
|
|
11831
|
+
/**
|
|
11832
|
+
* Start the data migration.
|
|
11833
|
+
*
|
|
11834
|
+
* This is typically called by the Asset Hub to indicate it's readiness to receive the
|
|
11835
|
+
* migration data.
|
|
11836
|
+
*
|
|
11837
|
+
**/
|
|
11838
|
+
startDataMigration: GenericTxCall<
|
|
11839
|
+
Rv,
|
|
11840
|
+
() => ChainSubmittableExtrinsic<
|
|
11841
|
+
Rv,
|
|
11842
|
+
{
|
|
11843
|
+
pallet: 'RcMigrator';
|
|
11844
|
+
palletCall: {
|
|
11845
|
+
name: 'StartDataMigration';
|
|
11846
|
+
};
|
|
11847
|
+
}
|
|
11848
|
+
>
|
|
11849
|
+
>;
|
|
11850
|
+
|
|
11851
|
+
/**
|
|
11852
|
+
* Receive a query response from the Asset Hub for a previously sent xcm message.
|
|
11853
|
+
*
|
|
11854
|
+
* @param {bigint} queryId
|
|
11855
|
+
* @param {StagingXcmV5Response} response
|
|
11856
|
+
**/
|
|
11857
|
+
receiveQueryResponse: GenericTxCall<
|
|
11858
|
+
Rv,
|
|
11859
|
+
(
|
|
11860
|
+
queryId: bigint,
|
|
11861
|
+
response: StagingXcmV5Response,
|
|
11862
|
+
) => ChainSubmittableExtrinsic<
|
|
11863
|
+
Rv,
|
|
11864
|
+
{
|
|
11865
|
+
pallet: 'RcMigrator';
|
|
11866
|
+
palletCall: {
|
|
11867
|
+
name: 'ReceiveQueryResponse';
|
|
11868
|
+
params: { queryId: bigint; response: StagingXcmV5Response };
|
|
11869
|
+
};
|
|
11870
|
+
}
|
|
11871
|
+
>
|
|
11872
|
+
>;
|
|
11873
|
+
|
|
11874
|
+
/**
|
|
11875
|
+
* Resend a previously sent and unconfirmed XCM message.
|
|
11876
|
+
*
|
|
11877
|
+
* @param {bigint} queryId
|
|
11878
|
+
**/
|
|
11879
|
+
resendXcm: GenericTxCall<
|
|
11880
|
+
Rv,
|
|
11881
|
+
(queryId: bigint) => ChainSubmittableExtrinsic<
|
|
11882
|
+
Rv,
|
|
11883
|
+
{
|
|
11884
|
+
pallet: 'RcMigrator';
|
|
11885
|
+
palletCall: {
|
|
11886
|
+
name: 'ResendXcm';
|
|
11887
|
+
params: { queryId: bigint };
|
|
11888
|
+
};
|
|
11889
|
+
}
|
|
11890
|
+
>
|
|
11891
|
+
>;
|
|
11892
|
+
|
|
11893
|
+
/**
|
|
11894
|
+
* Set the unprocessed message buffer size.
|
|
11895
|
+
*
|
|
11896
|
+
* `None` means to use the configuration value.
|
|
11897
|
+
*
|
|
11898
|
+
* @param {number | undefined} new_
|
|
11899
|
+
**/
|
|
11900
|
+
setUnprocessedMsgBuffer: GenericTxCall<
|
|
11901
|
+
Rv,
|
|
11902
|
+
(new_: number | undefined) => ChainSubmittableExtrinsic<
|
|
11903
|
+
Rv,
|
|
11904
|
+
{
|
|
11905
|
+
pallet: 'RcMigrator';
|
|
11906
|
+
palletCall: {
|
|
11907
|
+
name: 'SetUnprocessedMsgBuffer';
|
|
11908
|
+
params: { new: number | undefined };
|
|
11909
|
+
};
|
|
11910
|
+
}
|
|
11911
|
+
>
|
|
11912
|
+
>;
|
|
11913
|
+
|
|
11914
|
+
/**
|
|
11915
|
+
* Set the AH UMP queue priority configuration.
|
|
11916
|
+
*
|
|
11917
|
+
* Can only be called by the `AdminOrigin`.
|
|
11918
|
+
*
|
|
11919
|
+
* @param {PalletRcMigratorQueuePriority} new_
|
|
11920
|
+
**/
|
|
11921
|
+
setAhUmpQueuePriority: GenericTxCall<
|
|
11922
|
+
Rv,
|
|
11923
|
+
(new_: PalletRcMigratorQueuePriority) => ChainSubmittableExtrinsic<
|
|
11924
|
+
Rv,
|
|
11925
|
+
{
|
|
11926
|
+
pallet: 'RcMigrator';
|
|
11927
|
+
palletCall: {
|
|
11928
|
+
name: 'SetAhUmpQueuePriority';
|
|
11929
|
+
params: { new: PalletRcMigratorQueuePriority };
|
|
11930
|
+
};
|
|
11931
|
+
}
|
|
11932
|
+
>
|
|
11933
|
+
>;
|
|
11934
|
+
|
|
11935
|
+
/**
|
|
11936
|
+
* Set the manager account id.
|
|
11937
|
+
*
|
|
11938
|
+
* The manager has the similar to [`Config::AdminOrigin`] privileges except that it
|
|
11939
|
+
* can not set the manager account id via `set_manager` call.
|
|
11940
|
+
*
|
|
11941
|
+
* @param {AccountId32Like | undefined} new_
|
|
11942
|
+
**/
|
|
11943
|
+
setManager: GenericTxCall<
|
|
11944
|
+
Rv,
|
|
11945
|
+
(new_: AccountId32Like | undefined) => ChainSubmittableExtrinsic<
|
|
11946
|
+
Rv,
|
|
11947
|
+
{
|
|
11948
|
+
pallet: 'RcMigrator';
|
|
11949
|
+
palletCall: {
|
|
11950
|
+
name: 'SetManager';
|
|
11951
|
+
params: { new: AccountId32Like | undefined };
|
|
11952
|
+
};
|
|
11953
|
+
}
|
|
11954
|
+
>
|
|
11955
|
+
>;
|
|
11956
|
+
|
|
11957
|
+
/**
|
|
11958
|
+
* XCM send call identical to the [`pallet_xcm::Pallet::send`] call but with the
|
|
11959
|
+
* [Config::SendXcm] router which will be able to send messages to the Asset Hub during
|
|
11960
|
+
* the migration.
|
|
11961
|
+
*
|
|
11962
|
+
* @param {XcmVersionedLocation} dest
|
|
11963
|
+
* @param {XcmVersionedXcm} message
|
|
11964
|
+
**/
|
|
11965
|
+
sendXcmMessage: GenericTxCall<
|
|
11966
|
+
Rv,
|
|
11967
|
+
(
|
|
11968
|
+
dest: XcmVersionedLocation,
|
|
11969
|
+
message: XcmVersionedXcm,
|
|
11970
|
+
) => ChainSubmittableExtrinsic<
|
|
11971
|
+
Rv,
|
|
11972
|
+
{
|
|
11973
|
+
pallet: 'RcMigrator';
|
|
11974
|
+
palletCall: {
|
|
11975
|
+
name: 'SendXcmMessage';
|
|
11976
|
+
params: { dest: XcmVersionedLocation; message: XcmVersionedXcm };
|
|
11977
|
+
};
|
|
11978
|
+
}
|
|
11979
|
+
>
|
|
11980
|
+
>;
|
|
11981
|
+
|
|
11982
|
+
/**
|
|
11983
|
+
* Set the accounts to be preserved on Relay Chain during the migration.
|
|
11984
|
+
*
|
|
11985
|
+
* The accounts must have no consumers references.
|
|
11986
|
+
*
|
|
11987
|
+
* @param {Array<AccountId32Like>} accounts
|
|
11988
|
+
**/
|
|
11989
|
+
preserveAccounts: GenericTxCall<
|
|
11990
|
+
Rv,
|
|
11991
|
+
(accounts: Array<AccountId32Like>) => ChainSubmittableExtrinsic<
|
|
11992
|
+
Rv,
|
|
11993
|
+
{
|
|
11994
|
+
pallet: 'RcMigrator';
|
|
11995
|
+
palletCall: {
|
|
11996
|
+
name: 'PreserveAccounts';
|
|
11997
|
+
params: { accounts: Array<AccountId32Like> };
|
|
11998
|
+
};
|
|
11999
|
+
}
|
|
12000
|
+
>
|
|
12001
|
+
>;
|
|
12002
|
+
|
|
12003
|
+
/**
|
|
12004
|
+
* Set the canceller account id.
|
|
12005
|
+
*
|
|
12006
|
+
* The canceller can only stop scheduled migration.
|
|
12007
|
+
*
|
|
12008
|
+
* @param {AccountId32Like | undefined} new_
|
|
12009
|
+
**/
|
|
12010
|
+
setCanceller: GenericTxCall<
|
|
12011
|
+
Rv,
|
|
12012
|
+
(new_: AccountId32Like | undefined) => ChainSubmittableExtrinsic<
|
|
12013
|
+
Rv,
|
|
12014
|
+
{
|
|
12015
|
+
pallet: 'RcMigrator';
|
|
12016
|
+
palletCall: {
|
|
12017
|
+
name: 'SetCanceller';
|
|
12018
|
+
params: { new: AccountId32Like | undefined };
|
|
12019
|
+
};
|
|
12020
|
+
}
|
|
12021
|
+
>
|
|
12022
|
+
>;
|
|
12023
|
+
|
|
12024
|
+
/**
|
|
12025
|
+
* Pause the migration.
|
|
12026
|
+
*
|
|
12027
|
+
**/
|
|
12028
|
+
pauseMigration: GenericTxCall<
|
|
12029
|
+
Rv,
|
|
12030
|
+
() => ChainSubmittableExtrinsic<
|
|
12031
|
+
Rv,
|
|
12032
|
+
{
|
|
12033
|
+
pallet: 'RcMigrator';
|
|
12034
|
+
palletCall: {
|
|
12035
|
+
name: 'PauseMigration';
|
|
12036
|
+
};
|
|
12037
|
+
}
|
|
12038
|
+
>
|
|
12039
|
+
>;
|
|
12040
|
+
|
|
12041
|
+
/**
|
|
12042
|
+
* Cancel the migration.
|
|
12043
|
+
*
|
|
12044
|
+
* Migration can only be cancelled if it is in the [`MigrationStage::Scheduled`] state.
|
|
12045
|
+
*
|
|
12046
|
+
**/
|
|
12047
|
+
cancelMigration: GenericTxCall<
|
|
12048
|
+
Rv,
|
|
12049
|
+
() => ChainSubmittableExtrinsic<
|
|
12050
|
+
Rv,
|
|
12051
|
+
{
|
|
12052
|
+
pallet: 'RcMigrator';
|
|
12053
|
+
palletCall: {
|
|
12054
|
+
name: 'CancelMigration';
|
|
12055
|
+
};
|
|
12056
|
+
}
|
|
12057
|
+
>
|
|
12058
|
+
>;
|
|
12059
|
+
|
|
12060
|
+
/**
|
|
12061
|
+
* Vote on behalf of any of the members in `MultisigMembers`.
|
|
12062
|
+
*
|
|
12063
|
+
* Unsigned extrinsic, requiring the `payload` to be signed.
|
|
12064
|
+
*
|
|
12065
|
+
* Upon each call, a new entry is created in `ManagerMultisigs` map the `payload.call` to
|
|
12066
|
+
* be dispatched. Once `MultisigThreshold` is reached, the entire map is deleted, and we
|
|
12067
|
+
* move on to the next round.
|
|
12068
|
+
*
|
|
12069
|
+
* The round system ensures that signatures from older round cannot be reused.
|
|
12070
|
+
*
|
|
12071
|
+
* @param {PalletRcMigratorManagerMultisigVote} payload
|
|
12072
|
+
* @param {SpRuntimeMultiSignature} sig
|
|
12073
|
+
**/
|
|
12074
|
+
voteManagerMultisig: GenericTxCall<
|
|
12075
|
+
Rv,
|
|
12076
|
+
(
|
|
12077
|
+
payload: PalletRcMigratorManagerMultisigVote,
|
|
12078
|
+
sig: SpRuntimeMultiSignature,
|
|
12079
|
+
) => ChainSubmittableExtrinsic<
|
|
12080
|
+
Rv,
|
|
12081
|
+
{
|
|
12082
|
+
pallet: 'RcMigrator';
|
|
12083
|
+
palletCall: {
|
|
12084
|
+
name: 'VoteManagerMultisig';
|
|
12085
|
+
params: { payload: PalletRcMigratorManagerMultisigVote; sig: SpRuntimeMultiSignature };
|
|
12086
|
+
};
|
|
12087
|
+
}
|
|
12088
|
+
>
|
|
12089
|
+
>;
|
|
12090
|
+
|
|
12123
12091
|
/**
|
|
12124
12092
|
* Generic pallet tx call
|
|
12125
12093
|
**/
|