@dedot/chaintypes 0.0.1-alpha.22
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/LICENSE +201 -0
- package/README.md +3 -0
- package/aleph/consts.d.ts +533 -0
- package/aleph/consts.js +2 -0
- package/aleph/errors.d.ts +822 -0
- package/aleph/errors.js +2 -0
- package/aleph/events.d.ts +997 -0
- package/aleph/events.js +2 -0
- package/aleph/index.d.ts +19 -0
- package/aleph/index.js +3 -0
- package/aleph/query.d.ts +1271 -0
- package/aleph/query.js +2 -0
- package/aleph/rpc.d.ts +575 -0
- package/aleph/rpc.js +2 -0
- package/aleph/runtime.d.ts +410 -0
- package/aleph/runtime.js +2 -0
- package/aleph/tx.d.ts +2206 -0
- package/aleph/tx.js +2 -0
- package/aleph/types.d.ts +5560 -0
- package/aleph/types.js +2 -0
- package/astar/consts.d.ts +679 -0
- package/astar/consts.js +2 -0
- package/astar/errors.d.ts +1317 -0
- package/astar/errors.js +2 -0
- package/astar/events.d.ts +1707 -0
- package/astar/events.js +2 -0
- package/astar/index.d.ts +19 -0
- package/astar/index.js +3 -0
- package/astar/query.d.ts +1474 -0
- package/astar/query.js +2 -0
- package/astar/rpc.d.ts +775 -0
- package/astar/rpc.js +2 -0
- package/astar/runtime.d.ts +262 -0
- package/astar/runtime.js +2 -0
- package/astar/tx.d.ts +4810 -0
- package/astar/tx.js +2 -0
- package/astar/types.d.ts +12338 -0
- package/astar/types.js +2 -0
- package/cjs/aleph/consts.js +3 -0
- package/cjs/aleph/errors.js +3 -0
- package/cjs/aleph/events.js +3 -0
- package/cjs/aleph/index.js +19 -0
- package/cjs/aleph/query.js +3 -0
- package/cjs/aleph/rpc.js +3 -0
- package/cjs/aleph/runtime.js +3 -0
- package/cjs/aleph/tx.js +3 -0
- package/cjs/aleph/types.js +3 -0
- package/cjs/astar/consts.js +3 -0
- package/cjs/astar/errors.js +3 -0
- package/cjs/astar/events.js +3 -0
- package/cjs/astar/index.js +19 -0
- package/cjs/astar/query.js +3 -0
- package/cjs/astar/rpc.js +3 -0
- package/cjs/astar/runtime.js +3 -0
- package/cjs/astar/tx.js +3 -0
- package/cjs/astar/types.js +3 -0
- package/cjs/index.js +2 -0
- package/cjs/kusama/consts.js +3 -0
- package/cjs/kusama/errors.js +3 -0
- package/cjs/kusama/events.js +3 -0
- package/cjs/kusama/index.js +19 -0
- package/cjs/kusama/query.js +3 -0
- package/cjs/kusama/rpc.js +3 -0
- package/cjs/kusama/runtime.js +3 -0
- package/cjs/kusama/tx.js +3 -0
- package/cjs/kusama/types.js +3 -0
- package/cjs/kusamaAssetHub/consts.js +3 -0
- package/cjs/kusamaAssetHub/errors.js +3 -0
- package/cjs/kusamaAssetHub/events.js +3 -0
- package/cjs/kusamaAssetHub/index.js +19 -0
- package/cjs/kusamaAssetHub/query.js +3 -0
- package/cjs/kusamaAssetHub/rpc.js +3 -0
- package/cjs/kusamaAssetHub/runtime.js +3 -0
- package/cjs/kusamaAssetHub/tx.js +3 -0
- package/cjs/kusamaAssetHub/types.js +3 -0
- package/cjs/moonbeam/consts.js +3 -0
- package/cjs/moonbeam/errors.js +3 -0
- package/cjs/moonbeam/events.js +3 -0
- package/cjs/moonbeam/index.js +19 -0
- package/cjs/moonbeam/query.js +3 -0
- package/cjs/moonbeam/rpc.js +3 -0
- package/cjs/moonbeam/runtime.js +3 -0
- package/cjs/moonbeam/tx.js +3 -0
- package/cjs/moonbeam/types.js +3 -0
- package/cjs/package.json +1 -0
- package/cjs/packageInfo.js +5 -0
- package/cjs/polkadot/consts.js +3 -0
- package/cjs/polkadot/errors.js +3 -0
- package/cjs/polkadot/events.js +3 -0
- package/cjs/polkadot/index.js +19 -0
- package/cjs/polkadot/query.js +3 -0
- package/cjs/polkadot/rpc.js +3 -0
- package/cjs/polkadot/runtime.js +3 -0
- package/cjs/polkadot/tx.js +3 -0
- package/cjs/polkadot/types.js +3 -0
- package/cjs/polkadotAssetHub/consts.js +3 -0
- package/cjs/polkadotAssetHub/errors.js +3 -0
- package/cjs/polkadotAssetHub/events.js +3 -0
- package/cjs/polkadotAssetHub/index.js +19 -0
- package/cjs/polkadotAssetHub/query.js +3 -0
- package/cjs/polkadotAssetHub/rpc.js +3 -0
- package/cjs/polkadotAssetHub/runtime.js +3 -0
- package/cjs/polkadotAssetHub/tx.js +3 -0
- package/cjs/polkadotAssetHub/types.js +3 -0
- package/cjs/rococoAssetHub/consts.js +3 -0
- package/cjs/rococoAssetHub/errors.js +3 -0
- package/cjs/rococoAssetHub/events.js +3 -0
- package/cjs/rococoAssetHub/index.js +19 -0
- package/cjs/rococoAssetHub/query.js +3 -0
- package/cjs/rococoAssetHub/rpc.js +3 -0
- package/cjs/rococoAssetHub/runtime.js +3 -0
- package/cjs/rococoAssetHub/tx.js +3 -0
- package/cjs/rococoAssetHub/types.js +3 -0
- package/cjs/substrate/consts.js +3 -0
- package/cjs/substrate/errors.js +3 -0
- package/cjs/substrate/events.js +3 -0
- package/cjs/substrate/index.js +19 -0
- package/cjs/substrate/query.js +3 -0
- package/cjs/substrate/rpc.js +3 -0
- package/cjs/substrate/runtime.js +3 -0
- package/cjs/substrate/tx.js +3 -0
- package/cjs/substrate/types.js +3 -0
- package/cjs/westendAssetHub/consts.js +3 -0
- package/cjs/westendAssetHub/errors.js +3 -0
- package/cjs/westendAssetHub/events.js +3 -0
- package/cjs/westendAssetHub/index.js +19 -0
- package/cjs/westendAssetHub/query.js +3 -0
- package/cjs/westendAssetHub/rpc.js +3 -0
- package/cjs/westendAssetHub/runtime.js +3 -0
- package/cjs/westendAssetHub/tx.js +3 -0
- package/cjs/westendAssetHub/types.js +3 -0
- package/index.d.ts +5 -0
- package/index.js +1 -0
- package/kusama/consts.d.ts +1427 -0
- package/kusama/consts.js +2 -0
- package/kusama/errors.d.ts +2494 -0
- package/kusama/errors.js +2 -0
- package/kusama/events.d.ts +2960 -0
- package/kusama/events.js +2 -0
- package/kusama/index.d.ts +19 -0
- package/kusama/index.js +3 -0
- package/kusama/query.d.ts +3251 -0
- package/kusama/query.js +2 -0
- package/kusama/rpc.d.ts +726 -0
- package/kusama/rpc.js +2 -0
- package/kusama/runtime.d.ts +844 -0
- package/kusama/runtime.js +2 -0
- package/kusama/tx.d.ts +6014 -0
- package/kusama/tx.js +2 -0
- package/kusama/types.d.ts +15903 -0
- package/kusama/types.js +2 -0
- package/kusamaAssetHub/consts.d.ts +632 -0
- package/kusamaAssetHub/consts.js +2 -0
- package/kusamaAssetHub/errors.d.ts +1164 -0
- package/kusamaAssetHub/errors.js +2 -0
- package/kusamaAssetHub/events.d.ts +2162 -0
- package/kusamaAssetHub/events.js +2 -0
- package/kusamaAssetHub/index.d.ts +19 -0
- package/kusamaAssetHub/index.js +3 -0
- package/kusamaAssetHub/query.d.ts +1301 -0
- package/kusamaAssetHub/query.js +2 -0
- package/kusamaAssetHub/rpc.d.ts +590 -0
- package/kusamaAssetHub/rpc.js +2 -0
- package/kusamaAssetHub/runtime.d.ts +402 -0
- package/kusamaAssetHub/runtime.js +2 -0
- package/kusamaAssetHub/tx.d.ts +4217 -0
- package/kusamaAssetHub/tx.js +2 -0
- package/kusamaAssetHub/types.d.ts +10418 -0
- package/kusamaAssetHub/types.js +2 -0
- package/moonbeam/consts.d.ts +961 -0
- package/moonbeam/consts.js +2 -0
- package/moonbeam/errors.d.ts +1797 -0
- package/moonbeam/errors.js +2 -0
- package/moonbeam/events.d.ts +2840 -0
- package/moonbeam/events.js +2 -0
- package/moonbeam/index.d.ts +19 -0
- package/moonbeam/index.js +3 -0
- package/moonbeam/query.d.ts +2027 -0
- package/moonbeam/query.js +2 -0
- package/moonbeam/rpc.d.ts +809 -0
- package/moonbeam/rpc.js +2 -0
- package/moonbeam/runtime.d.ts +506 -0
- package/moonbeam/runtime.js +2 -0
- package/moonbeam/tx.d.ts +5205 -0
- package/moonbeam/tx.js +2 -0
- package/moonbeam/types.d.ts +12349 -0
- package/moonbeam/types.js +2 -0
- package/package.json +33 -0
- package/packageInfo.d.ts +4 -0
- package/packageInfo.js +3 -0
- package/polkadot/consts.d.ts +1160 -0
- package/polkadot/consts.js +2 -0
- package/polkadot/errors.d.ts +2020 -0
- package/polkadot/errors.js +2 -0
- package/polkadot/events.d.ts +2235 -0
- package/polkadot/events.js +2 -0
- package/polkadot/index.d.ts +19 -0
- package/polkadot/index.js +3 -0
- package/polkadot/query.d.ts +2811 -0
- package/polkadot/query.js +2 -0
- package/polkadot/rpc.d.ts +726 -0
- package/polkadot/rpc.js +2 -0
- package/polkadot/runtime.d.ts +844 -0
- package/polkadot/runtime.js +2 -0
- package/polkadot/tx.d.ts +5009 -0
- package/polkadot/tx.js +2 -0
- package/polkadot/types.d.ts +13729 -0
- package/polkadot/types.js +2 -0
- package/polkadotAssetHub/consts.d.ts +524 -0
- package/polkadotAssetHub/consts.js +2 -0
- package/polkadotAssetHub/errors.d.ts +925 -0
- package/polkadotAssetHub/errors.js +2 -0
- package/polkadotAssetHub/events.d.ts +1787 -0
- package/polkadotAssetHub/events.js +2 -0
- package/polkadotAssetHub/index.d.ts +19 -0
- package/polkadotAssetHub/index.js +3 -0
- package/polkadotAssetHub/query.d.ts +1222 -0
- package/polkadotAssetHub/query.js +2 -0
- package/polkadotAssetHub/rpc.d.ts +590 -0
- package/polkadotAssetHub/rpc.js +2 -0
- package/polkadotAssetHub/runtime.d.ts +359 -0
- package/polkadotAssetHub/runtime.js +2 -0
- package/polkadotAssetHub/tx.d.ts +3492 -0
- package/polkadotAssetHub/tx.js +2 -0
- package/polkadotAssetHub/types.d.ts +9164 -0
- package/polkadotAssetHub/types.js +2 -0
- package/rococoAssetHub/consts.d.ts +658 -0
- package/rococoAssetHub/consts.js +2 -0
- package/rococoAssetHub/errors.d.ts +1231 -0
- package/rococoAssetHub/errors.js +2 -0
- package/rococoAssetHub/events.d.ts +2172 -0
- package/rococoAssetHub/events.js +2 -0
- package/rococoAssetHub/index.d.ts +19 -0
- package/rococoAssetHub/index.js +3 -0
- package/rococoAssetHub/query.d.ts +1269 -0
- package/rococoAssetHub/query.js +2 -0
- package/rococoAssetHub/rpc.d.ts +590 -0
- package/rococoAssetHub/rpc.js +2 -0
- package/rococoAssetHub/runtime.d.ts +428 -0
- package/rococoAssetHub/runtime.js +2 -0
- package/rococoAssetHub/tx.d.ts +4307 -0
- package/rococoAssetHub/tx.js +2 -0
- package/rococoAssetHub/types.d.ts +11066 -0
- package/rococoAssetHub/types.js +2 -0
- package/substrate/consts.d.ts +1971 -0
- package/substrate/consts.js +2 -0
- package/substrate/errors.d.ts +3337 -0
- package/substrate/errors.js +2 -0
- package/substrate/events.d.ts +4777 -0
- package/substrate/events.js +2 -0
- package/substrate/index.d.ts +19 -0
- package/substrate/index.js +3 -0
- package/substrate/query.d.ts +3350 -0
- package/substrate/query.js +2 -0
- package/substrate/rpc.d.ts +718 -0
- package/substrate/rpc.js +2 -0
- package/substrate/runtime.d.ts +708 -0
- package/substrate/runtime.js +2 -0
- package/substrate/tx.d.ts +8800 -0
- package/substrate/tx.js +2 -0
- package/substrate/types.d.ts +20332 -0
- package/substrate/types.js +2 -0
- package/westendAssetHub/consts.d.ts +658 -0
- package/westendAssetHub/consts.js +2 -0
- package/westendAssetHub/errors.d.ts +1231 -0
- package/westendAssetHub/errors.js +2 -0
- package/westendAssetHub/events.d.ts +2172 -0
- package/westendAssetHub/events.js +2 -0
- package/westendAssetHub/index.d.ts +19 -0
- package/westendAssetHub/index.js +3 -0
- package/westendAssetHub/query.d.ts +1269 -0
- package/westendAssetHub/query.js +2 -0
- package/westendAssetHub/rpc.d.ts +590 -0
- package/westendAssetHub/rpc.js +2 -0
- package/westendAssetHub/runtime.d.ts +456 -0
- package/westendAssetHub/runtime.js +2 -0
- package/westendAssetHub/tx.d.ts +4307 -0
- package/westendAssetHub/tx.js +2 -0
- package/westendAssetHub/types.d.ts +11062 -0
- package/westendAssetHub/types.js +2 -0
package/astar/tx.d.ts
ADDED
|
@@ -0,0 +1,4810 @@
|
|
|
1
|
+
import type { GenericChainTx, GenericTxCall, ISubmittableExtrinsic, ISubmittableResult, IRuntimeTxCall } from '@dedot/types';
|
|
2
|
+
import type { MultiAddressLike, Extrinsic, BytesLike, AccountId32Like, Data, H256, FixedBytes, H160, U256, FixedU64 } from '@dedot/codecs';
|
|
3
|
+
import type { AstarRuntimeRuntimeCallLike, SpRuntimeMultiSignature, FrameSystemEventRecord, AstarRuntimeOriginCaller, SpWeightsWeightV2Weight, PalletIdentityIdentityInfo, PalletIdentityBitFlags, PalletIdentityJudgement, PalletMultisigTimepoint, AstarRuntimeProxyType, CumulusPrimitivesParachainInherentParachainInherentData, PalletVestingVestingInfo, PalletInflationInflationParameters, AstarPrimitivesDappStakingSmartContract, PalletDappStakingV3ForcingType, AstarRuntimeSessionKeys, XcmVersionedMultiLocation, XcmVersionedXcm, XcmVersionedMultiAssets, XcmV3MultilocationMultiLocation, XcmV3WeightLimit, XcmVersionedMultiAsset, EthereumTransactionTransactionV2, PalletContractsWasmDeterminism, PalletDappsStakingRewardDestination, PalletDappsStakingContractStakeInfo } from './types';
|
|
4
|
+
export type ChainSubmittableExtrinsic<T extends IRuntimeTxCall = AstarRuntimeRuntimeCallLike> = Extrinsic<MultiAddressLike, T, SpRuntimeMultiSignature, any[]> & ISubmittableExtrinsic<ISubmittableResult<FrameSystemEventRecord>>;
|
|
5
|
+
export type TxCall = (...args: any[]) => ChainSubmittableExtrinsic;
|
|
6
|
+
export interface ChainTx extends GenericChainTx<TxCall> {
|
|
7
|
+
/**
|
|
8
|
+
* Pallet `System`'s transaction calls
|
|
9
|
+
**/
|
|
10
|
+
system: {
|
|
11
|
+
/**
|
|
12
|
+
* Make some on-chain remark.
|
|
13
|
+
*
|
|
14
|
+
* - `O(1)`
|
|
15
|
+
*
|
|
16
|
+
* @param {BytesLike} remark
|
|
17
|
+
**/
|
|
18
|
+
remark: GenericTxCall<(remark: BytesLike) => ChainSubmittableExtrinsic<{
|
|
19
|
+
pallet: 'System';
|
|
20
|
+
palletCall: {
|
|
21
|
+
name: 'Remark';
|
|
22
|
+
params: {
|
|
23
|
+
remark: BytesLike;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}>>;
|
|
27
|
+
/**
|
|
28
|
+
* Set the number of pages in the WebAssembly environment's heap.
|
|
29
|
+
*
|
|
30
|
+
* @param {bigint} pages
|
|
31
|
+
**/
|
|
32
|
+
setHeapPages: GenericTxCall<(pages: bigint) => ChainSubmittableExtrinsic<{
|
|
33
|
+
pallet: 'System';
|
|
34
|
+
palletCall: {
|
|
35
|
+
name: 'SetHeapPages';
|
|
36
|
+
params: {
|
|
37
|
+
pages: bigint;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}>>;
|
|
41
|
+
/**
|
|
42
|
+
* Set the new runtime code.
|
|
43
|
+
*
|
|
44
|
+
* @param {BytesLike} code
|
|
45
|
+
**/
|
|
46
|
+
setCode: GenericTxCall<(code: BytesLike) => ChainSubmittableExtrinsic<{
|
|
47
|
+
pallet: 'System';
|
|
48
|
+
palletCall: {
|
|
49
|
+
name: 'SetCode';
|
|
50
|
+
params: {
|
|
51
|
+
code: BytesLike;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}>>;
|
|
55
|
+
/**
|
|
56
|
+
* Set the new runtime code without doing any checks of the given `code`.
|
|
57
|
+
*
|
|
58
|
+
* @param {BytesLike} code
|
|
59
|
+
**/
|
|
60
|
+
setCodeWithoutChecks: GenericTxCall<(code: BytesLike) => ChainSubmittableExtrinsic<{
|
|
61
|
+
pallet: 'System';
|
|
62
|
+
palletCall: {
|
|
63
|
+
name: 'SetCodeWithoutChecks';
|
|
64
|
+
params: {
|
|
65
|
+
code: BytesLike;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
}>>;
|
|
69
|
+
/**
|
|
70
|
+
* Set some items of storage.
|
|
71
|
+
*
|
|
72
|
+
* @param {Array<[BytesLike, BytesLike]>} items
|
|
73
|
+
**/
|
|
74
|
+
setStorage: GenericTxCall<(items: Array<[BytesLike, BytesLike]>) => ChainSubmittableExtrinsic<{
|
|
75
|
+
pallet: 'System';
|
|
76
|
+
palletCall: {
|
|
77
|
+
name: 'SetStorage';
|
|
78
|
+
params: {
|
|
79
|
+
items: Array<[BytesLike, BytesLike]>;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
}>>;
|
|
83
|
+
/**
|
|
84
|
+
* Kill some items from storage.
|
|
85
|
+
*
|
|
86
|
+
* @param {Array<BytesLike>} keys
|
|
87
|
+
**/
|
|
88
|
+
killStorage: GenericTxCall<(keys: Array<BytesLike>) => ChainSubmittableExtrinsic<{
|
|
89
|
+
pallet: 'System';
|
|
90
|
+
palletCall: {
|
|
91
|
+
name: 'KillStorage';
|
|
92
|
+
params: {
|
|
93
|
+
keys: Array<BytesLike>;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
}>>;
|
|
97
|
+
/**
|
|
98
|
+
* Kill all storage items with a key that starts with the given prefix.
|
|
99
|
+
*
|
|
100
|
+
* **NOTE:** We rely on the Root origin to provide us the number of subkeys under
|
|
101
|
+
* the prefix we are removing to accurately calculate the weight of this function.
|
|
102
|
+
*
|
|
103
|
+
* @param {BytesLike} prefix
|
|
104
|
+
* @param {number} subkeys
|
|
105
|
+
**/
|
|
106
|
+
killPrefix: GenericTxCall<(prefix: BytesLike, subkeys: number) => ChainSubmittableExtrinsic<{
|
|
107
|
+
pallet: 'System';
|
|
108
|
+
palletCall: {
|
|
109
|
+
name: 'KillPrefix';
|
|
110
|
+
params: {
|
|
111
|
+
prefix: BytesLike;
|
|
112
|
+
subkeys: number;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
}>>;
|
|
116
|
+
/**
|
|
117
|
+
* Make some on-chain remark and emit event.
|
|
118
|
+
*
|
|
119
|
+
* @param {BytesLike} remark
|
|
120
|
+
**/
|
|
121
|
+
remarkWithEvent: GenericTxCall<(remark: BytesLike) => ChainSubmittableExtrinsic<{
|
|
122
|
+
pallet: 'System';
|
|
123
|
+
palletCall: {
|
|
124
|
+
name: 'RemarkWithEvent';
|
|
125
|
+
params: {
|
|
126
|
+
remark: BytesLike;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
}>>;
|
|
130
|
+
/**
|
|
131
|
+
* Generic pallet tx call
|
|
132
|
+
**/
|
|
133
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Pallet `Utility`'s transaction calls
|
|
137
|
+
**/
|
|
138
|
+
utility: {
|
|
139
|
+
/**
|
|
140
|
+
* Send a batch of dispatch calls.
|
|
141
|
+
*
|
|
142
|
+
* May be called from any origin except `None`.
|
|
143
|
+
*
|
|
144
|
+
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
|
145
|
+
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
|
146
|
+
*
|
|
147
|
+
* If origin is root then the calls are dispatched without checking origin filter. (This
|
|
148
|
+
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
149
|
+
*
|
|
150
|
+
* ## Complexity
|
|
151
|
+
* - O(C) where C is the number of calls to be batched.
|
|
152
|
+
*
|
|
153
|
+
* This will return `Ok` in all circumstances. To determine the success of the batch, an
|
|
154
|
+
* event is deposited. If a call failed and the batch was interrupted, then the
|
|
155
|
+
* `BatchInterrupted` event is deposited, along with the number of successful calls made
|
|
156
|
+
* and the error of the failed call. If all were successful, then the `BatchCompleted`
|
|
157
|
+
* event is deposited.
|
|
158
|
+
*
|
|
159
|
+
* @param {Array<AstarRuntimeRuntimeCallLike>} calls
|
|
160
|
+
**/
|
|
161
|
+
batch: GenericTxCall<(calls: Array<AstarRuntimeRuntimeCallLike>) => ChainSubmittableExtrinsic<{
|
|
162
|
+
pallet: 'Utility';
|
|
163
|
+
palletCall: {
|
|
164
|
+
name: 'Batch';
|
|
165
|
+
params: {
|
|
166
|
+
calls: Array<AstarRuntimeRuntimeCallLike>;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
}>>;
|
|
170
|
+
/**
|
|
171
|
+
* Send a call through an indexed pseudonym of the sender.
|
|
172
|
+
*
|
|
173
|
+
* Filter from origin are passed along. The call will be dispatched with an origin which
|
|
174
|
+
* use the same filter as the origin of this call.
|
|
175
|
+
*
|
|
176
|
+
* NOTE: If you need to ensure that any account-based filtering is not honored (i.e.
|
|
177
|
+
* because you expect `proxy` to have been used prior in the call stack and you do not want
|
|
178
|
+
* the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`
|
|
179
|
+
* in the Multisig pallet instead.
|
|
180
|
+
*
|
|
181
|
+
* NOTE: Prior to version *12, this was called `as_limited_sub`.
|
|
182
|
+
*
|
|
183
|
+
* The dispatch origin for this call must be _Signed_.
|
|
184
|
+
*
|
|
185
|
+
* @param {number} index
|
|
186
|
+
* @param {AstarRuntimeRuntimeCallLike} call
|
|
187
|
+
**/
|
|
188
|
+
asDerivative: GenericTxCall<(index: number, call: AstarRuntimeRuntimeCallLike) => ChainSubmittableExtrinsic<{
|
|
189
|
+
pallet: 'Utility';
|
|
190
|
+
palletCall: {
|
|
191
|
+
name: 'AsDerivative';
|
|
192
|
+
params: {
|
|
193
|
+
index: number;
|
|
194
|
+
call: AstarRuntimeRuntimeCallLike;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
}>>;
|
|
198
|
+
/**
|
|
199
|
+
* Send a batch of dispatch calls and atomically execute them.
|
|
200
|
+
* The whole transaction will rollback and fail if any of the calls failed.
|
|
201
|
+
*
|
|
202
|
+
* May be called from any origin except `None`.
|
|
203
|
+
*
|
|
204
|
+
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
|
205
|
+
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
|
206
|
+
*
|
|
207
|
+
* If origin is root then the calls are dispatched without checking origin filter. (This
|
|
208
|
+
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
209
|
+
*
|
|
210
|
+
* ## Complexity
|
|
211
|
+
* - O(C) where C is the number of calls to be batched.
|
|
212
|
+
*
|
|
213
|
+
* @param {Array<AstarRuntimeRuntimeCallLike>} calls
|
|
214
|
+
**/
|
|
215
|
+
batchAll: GenericTxCall<(calls: Array<AstarRuntimeRuntimeCallLike>) => ChainSubmittableExtrinsic<{
|
|
216
|
+
pallet: 'Utility';
|
|
217
|
+
palletCall: {
|
|
218
|
+
name: 'BatchAll';
|
|
219
|
+
params: {
|
|
220
|
+
calls: Array<AstarRuntimeRuntimeCallLike>;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
}>>;
|
|
224
|
+
/**
|
|
225
|
+
* Dispatches a function call with a provided origin.
|
|
226
|
+
*
|
|
227
|
+
* The dispatch origin for this call must be _Root_.
|
|
228
|
+
*
|
|
229
|
+
* ## Complexity
|
|
230
|
+
* - O(1).
|
|
231
|
+
*
|
|
232
|
+
* @param {AstarRuntimeOriginCaller} asOrigin
|
|
233
|
+
* @param {AstarRuntimeRuntimeCallLike} call
|
|
234
|
+
**/
|
|
235
|
+
dispatchAs: GenericTxCall<(asOrigin: AstarRuntimeOriginCaller, call: AstarRuntimeRuntimeCallLike) => ChainSubmittableExtrinsic<{
|
|
236
|
+
pallet: 'Utility';
|
|
237
|
+
palletCall: {
|
|
238
|
+
name: 'DispatchAs';
|
|
239
|
+
params: {
|
|
240
|
+
asOrigin: AstarRuntimeOriginCaller;
|
|
241
|
+
call: AstarRuntimeRuntimeCallLike;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
}>>;
|
|
245
|
+
/**
|
|
246
|
+
* Send a batch of dispatch calls.
|
|
247
|
+
* Unlike `batch`, it allows errors and won't interrupt.
|
|
248
|
+
*
|
|
249
|
+
* May be called from any origin except `None`.
|
|
250
|
+
*
|
|
251
|
+
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
|
252
|
+
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
|
253
|
+
*
|
|
254
|
+
* If origin is root then the calls are dispatch without checking origin filter. (This
|
|
255
|
+
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
256
|
+
*
|
|
257
|
+
* ## Complexity
|
|
258
|
+
* - O(C) where C is the number of calls to be batched.
|
|
259
|
+
*
|
|
260
|
+
* @param {Array<AstarRuntimeRuntimeCallLike>} calls
|
|
261
|
+
**/
|
|
262
|
+
forceBatch: GenericTxCall<(calls: Array<AstarRuntimeRuntimeCallLike>) => ChainSubmittableExtrinsic<{
|
|
263
|
+
pallet: 'Utility';
|
|
264
|
+
palletCall: {
|
|
265
|
+
name: 'ForceBatch';
|
|
266
|
+
params: {
|
|
267
|
+
calls: Array<AstarRuntimeRuntimeCallLike>;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
}>>;
|
|
271
|
+
/**
|
|
272
|
+
* Dispatch a function call with a specified weight.
|
|
273
|
+
*
|
|
274
|
+
* This function does not check the weight of the call, and instead allows the
|
|
275
|
+
* Root origin to specify the weight of the call.
|
|
276
|
+
*
|
|
277
|
+
* The dispatch origin for this call must be _Root_.
|
|
278
|
+
*
|
|
279
|
+
* @param {AstarRuntimeRuntimeCallLike} call
|
|
280
|
+
* @param {SpWeightsWeightV2Weight} weight
|
|
281
|
+
**/
|
|
282
|
+
withWeight: GenericTxCall<(call: AstarRuntimeRuntimeCallLike, weight: SpWeightsWeightV2Weight) => ChainSubmittableExtrinsic<{
|
|
283
|
+
pallet: 'Utility';
|
|
284
|
+
palletCall: {
|
|
285
|
+
name: 'WithWeight';
|
|
286
|
+
params: {
|
|
287
|
+
call: AstarRuntimeRuntimeCallLike;
|
|
288
|
+
weight: SpWeightsWeightV2Weight;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
}>>;
|
|
292
|
+
/**
|
|
293
|
+
* Generic pallet tx call
|
|
294
|
+
**/
|
|
295
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* Pallet `Identity`'s transaction calls
|
|
299
|
+
**/
|
|
300
|
+
identity: {
|
|
301
|
+
/**
|
|
302
|
+
* Add a registrar to the system.
|
|
303
|
+
*
|
|
304
|
+
* The dispatch origin for this call must be `T::RegistrarOrigin`.
|
|
305
|
+
*
|
|
306
|
+
* - `account`: the account of the registrar.
|
|
307
|
+
*
|
|
308
|
+
* Emits `RegistrarAdded` if successful.
|
|
309
|
+
*
|
|
310
|
+
* ## Complexity
|
|
311
|
+
* - `O(R)` where `R` registrar-count (governance-bounded and code-bounded).
|
|
312
|
+
*
|
|
313
|
+
* @param {MultiAddressLike} account
|
|
314
|
+
**/
|
|
315
|
+
addRegistrar: GenericTxCall<(account: MultiAddressLike) => ChainSubmittableExtrinsic<{
|
|
316
|
+
pallet: 'Identity';
|
|
317
|
+
palletCall: {
|
|
318
|
+
name: 'AddRegistrar';
|
|
319
|
+
params: {
|
|
320
|
+
account: MultiAddressLike;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
}>>;
|
|
324
|
+
/**
|
|
325
|
+
* Set an account's identity information and reserve the appropriate deposit.
|
|
326
|
+
*
|
|
327
|
+
* If the account already has identity information, the deposit is taken as part payment
|
|
328
|
+
* for the new deposit.
|
|
329
|
+
*
|
|
330
|
+
* The dispatch origin for this call must be _Signed_.
|
|
331
|
+
*
|
|
332
|
+
* - `info`: The identity information.
|
|
333
|
+
*
|
|
334
|
+
* Emits `IdentitySet` if successful.
|
|
335
|
+
*
|
|
336
|
+
* ## Complexity
|
|
337
|
+
* - `O(X + X' + R)`
|
|
338
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded)
|
|
339
|
+
* - where `R` judgements-count (registrar-count-bounded)
|
|
340
|
+
*
|
|
341
|
+
* @param {PalletIdentityIdentityInfo} info
|
|
342
|
+
**/
|
|
343
|
+
setIdentity: GenericTxCall<(info: PalletIdentityIdentityInfo) => ChainSubmittableExtrinsic<{
|
|
344
|
+
pallet: 'Identity';
|
|
345
|
+
palletCall: {
|
|
346
|
+
name: 'SetIdentity';
|
|
347
|
+
params: {
|
|
348
|
+
info: PalletIdentityIdentityInfo;
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
}>>;
|
|
352
|
+
/**
|
|
353
|
+
* Set the sub-accounts of the sender.
|
|
354
|
+
*
|
|
355
|
+
* Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned
|
|
356
|
+
* and an amount `SubAccountDeposit` will be reserved for each item in `subs`.
|
|
357
|
+
*
|
|
358
|
+
* The dispatch origin for this call must be _Signed_ and the sender must have a registered
|
|
359
|
+
* identity.
|
|
360
|
+
*
|
|
361
|
+
* - `subs`: The identity's (new) sub-accounts.
|
|
362
|
+
*
|
|
363
|
+
* ## Complexity
|
|
364
|
+
* - `O(P + S)`
|
|
365
|
+
* - where `P` old-subs-count (hard- and deposit-bounded).
|
|
366
|
+
* - where `S` subs-count (hard- and deposit-bounded).
|
|
367
|
+
*
|
|
368
|
+
* @param {Array<[AccountId32Like, Data]>} subs
|
|
369
|
+
**/
|
|
370
|
+
setSubs: GenericTxCall<(subs: Array<[AccountId32Like, Data]>) => ChainSubmittableExtrinsic<{
|
|
371
|
+
pallet: 'Identity';
|
|
372
|
+
palletCall: {
|
|
373
|
+
name: 'SetSubs';
|
|
374
|
+
params: {
|
|
375
|
+
subs: Array<[AccountId32Like, Data]>;
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
}>>;
|
|
379
|
+
/**
|
|
380
|
+
* Clear an account's identity info and all sub-accounts and return all deposits.
|
|
381
|
+
*
|
|
382
|
+
* Payment: All reserved balances on the account are returned.
|
|
383
|
+
*
|
|
384
|
+
* The dispatch origin for this call must be _Signed_ and the sender must have a registered
|
|
385
|
+
* identity.
|
|
386
|
+
*
|
|
387
|
+
* Emits `IdentityCleared` if successful.
|
|
388
|
+
*
|
|
389
|
+
* ## Complexity
|
|
390
|
+
* - `O(R + S + X)`
|
|
391
|
+
* - where `R` registrar-count (governance-bounded).
|
|
392
|
+
* - where `S` subs-count (hard- and deposit-bounded).
|
|
393
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
394
|
+
*
|
|
395
|
+
**/
|
|
396
|
+
clearIdentity: GenericTxCall<() => ChainSubmittableExtrinsic<{
|
|
397
|
+
pallet: 'Identity';
|
|
398
|
+
palletCall: {
|
|
399
|
+
name: 'ClearIdentity';
|
|
400
|
+
};
|
|
401
|
+
}>>;
|
|
402
|
+
/**
|
|
403
|
+
* Request a judgement from a registrar.
|
|
404
|
+
*
|
|
405
|
+
* Payment: At most `max_fee` will be reserved for payment to the registrar if judgement
|
|
406
|
+
* given.
|
|
407
|
+
*
|
|
408
|
+
* The dispatch origin for this call must be _Signed_ and the sender must have a
|
|
409
|
+
* registered identity.
|
|
410
|
+
*
|
|
411
|
+
* - `reg_index`: The index of the registrar whose judgement is requested.
|
|
412
|
+
* - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
|
|
413
|
+
*
|
|
414
|
+
* ```nocompile
|
|
415
|
+
* Self::registrars().get(reg_index).unwrap().fee
|
|
416
|
+
* ```
|
|
417
|
+
*
|
|
418
|
+
* Emits `JudgementRequested` if successful.
|
|
419
|
+
*
|
|
420
|
+
* ## Complexity
|
|
421
|
+
* - `O(R + X)`.
|
|
422
|
+
* - where `R` registrar-count (governance-bounded).
|
|
423
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
424
|
+
*
|
|
425
|
+
* @param {number} regIndex
|
|
426
|
+
* @param {bigint} maxFee
|
|
427
|
+
**/
|
|
428
|
+
requestJudgement: GenericTxCall<(regIndex: number, maxFee: bigint) => ChainSubmittableExtrinsic<{
|
|
429
|
+
pallet: 'Identity';
|
|
430
|
+
palletCall: {
|
|
431
|
+
name: 'RequestJudgement';
|
|
432
|
+
params: {
|
|
433
|
+
regIndex: number;
|
|
434
|
+
maxFee: bigint;
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
}>>;
|
|
438
|
+
/**
|
|
439
|
+
* Cancel a previous request.
|
|
440
|
+
*
|
|
441
|
+
* Payment: A previously reserved deposit is returned on success.
|
|
442
|
+
*
|
|
443
|
+
* The dispatch origin for this call must be _Signed_ and the sender must have a
|
|
444
|
+
* registered identity.
|
|
445
|
+
*
|
|
446
|
+
* - `reg_index`: The index of the registrar whose judgement is no longer requested.
|
|
447
|
+
*
|
|
448
|
+
* Emits `JudgementUnrequested` if successful.
|
|
449
|
+
*
|
|
450
|
+
* ## Complexity
|
|
451
|
+
* - `O(R + X)`.
|
|
452
|
+
* - where `R` registrar-count (governance-bounded).
|
|
453
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
454
|
+
*
|
|
455
|
+
* @param {number} regIndex
|
|
456
|
+
**/
|
|
457
|
+
cancelRequest: GenericTxCall<(regIndex: number) => ChainSubmittableExtrinsic<{
|
|
458
|
+
pallet: 'Identity';
|
|
459
|
+
palletCall: {
|
|
460
|
+
name: 'CancelRequest';
|
|
461
|
+
params: {
|
|
462
|
+
regIndex: number;
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
}>>;
|
|
466
|
+
/**
|
|
467
|
+
* Set the fee required for a judgement to be requested from a registrar.
|
|
468
|
+
*
|
|
469
|
+
* The dispatch origin for this call must be _Signed_ and the sender must be the account
|
|
470
|
+
* of the registrar whose index is `index`.
|
|
471
|
+
*
|
|
472
|
+
* - `index`: the index of the registrar whose fee is to be set.
|
|
473
|
+
* - `fee`: the new fee.
|
|
474
|
+
*
|
|
475
|
+
* ## Complexity
|
|
476
|
+
* - `O(R)`.
|
|
477
|
+
* - where `R` registrar-count (governance-bounded).
|
|
478
|
+
*
|
|
479
|
+
* @param {number} index
|
|
480
|
+
* @param {bigint} fee
|
|
481
|
+
**/
|
|
482
|
+
setFee: GenericTxCall<(index: number, fee: bigint) => ChainSubmittableExtrinsic<{
|
|
483
|
+
pallet: 'Identity';
|
|
484
|
+
palletCall: {
|
|
485
|
+
name: 'SetFee';
|
|
486
|
+
params: {
|
|
487
|
+
index: number;
|
|
488
|
+
fee: bigint;
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
}>>;
|
|
492
|
+
/**
|
|
493
|
+
* Change the account associated with a registrar.
|
|
494
|
+
*
|
|
495
|
+
* The dispatch origin for this call must be _Signed_ and the sender must be the account
|
|
496
|
+
* of the registrar whose index is `index`.
|
|
497
|
+
*
|
|
498
|
+
* - `index`: the index of the registrar whose fee is to be set.
|
|
499
|
+
* - `new`: the new account ID.
|
|
500
|
+
*
|
|
501
|
+
* ## Complexity
|
|
502
|
+
* - `O(R)`.
|
|
503
|
+
* - where `R` registrar-count (governance-bounded).
|
|
504
|
+
*
|
|
505
|
+
* @param {number} index
|
|
506
|
+
* @param {MultiAddressLike} new_
|
|
507
|
+
**/
|
|
508
|
+
setAccountId: GenericTxCall<(index: number, new_: MultiAddressLike) => ChainSubmittableExtrinsic<{
|
|
509
|
+
pallet: 'Identity';
|
|
510
|
+
palletCall: {
|
|
511
|
+
name: 'SetAccountId';
|
|
512
|
+
params: {
|
|
513
|
+
index: number;
|
|
514
|
+
new: MultiAddressLike;
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
}>>;
|
|
518
|
+
/**
|
|
519
|
+
* Set the field information for a registrar.
|
|
520
|
+
*
|
|
521
|
+
* The dispatch origin for this call must be _Signed_ and the sender must be the account
|
|
522
|
+
* of the registrar whose index is `index`.
|
|
523
|
+
*
|
|
524
|
+
* - `index`: the index of the registrar whose fee is to be set.
|
|
525
|
+
* - `fields`: the fields that the registrar concerns themselves with.
|
|
526
|
+
*
|
|
527
|
+
* ## Complexity
|
|
528
|
+
* - `O(R)`.
|
|
529
|
+
* - where `R` registrar-count (governance-bounded).
|
|
530
|
+
*
|
|
531
|
+
* @param {number} index
|
|
532
|
+
* @param {PalletIdentityBitFlags} fields
|
|
533
|
+
**/
|
|
534
|
+
setFields: GenericTxCall<(index: number, fields: PalletIdentityBitFlags) => ChainSubmittableExtrinsic<{
|
|
535
|
+
pallet: 'Identity';
|
|
536
|
+
palletCall: {
|
|
537
|
+
name: 'SetFields';
|
|
538
|
+
params: {
|
|
539
|
+
index: number;
|
|
540
|
+
fields: PalletIdentityBitFlags;
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
}>>;
|
|
544
|
+
/**
|
|
545
|
+
* Provide a judgement for an account's identity.
|
|
546
|
+
*
|
|
547
|
+
* The dispatch origin for this call must be _Signed_ and the sender must be the account
|
|
548
|
+
* of the registrar whose index is `reg_index`.
|
|
549
|
+
*
|
|
550
|
+
* - `reg_index`: the index of the registrar whose judgement is being made.
|
|
551
|
+
* - `target`: the account whose identity the judgement is upon. This must be an account
|
|
552
|
+
* with a registered identity.
|
|
553
|
+
* - `judgement`: the judgement of the registrar of index `reg_index` about `target`.
|
|
554
|
+
* - `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided.
|
|
555
|
+
*
|
|
556
|
+
* Emits `JudgementGiven` if successful.
|
|
557
|
+
*
|
|
558
|
+
* ## Complexity
|
|
559
|
+
* - `O(R + X)`.
|
|
560
|
+
* - where `R` registrar-count (governance-bounded).
|
|
561
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
562
|
+
*
|
|
563
|
+
* @param {number} regIndex
|
|
564
|
+
* @param {MultiAddressLike} target
|
|
565
|
+
* @param {PalletIdentityJudgement} judgement
|
|
566
|
+
* @param {H256} identity
|
|
567
|
+
**/
|
|
568
|
+
provideJudgement: GenericTxCall<(regIndex: number, target: MultiAddressLike, judgement: PalletIdentityJudgement, identity: H256) => ChainSubmittableExtrinsic<{
|
|
569
|
+
pallet: 'Identity';
|
|
570
|
+
palletCall: {
|
|
571
|
+
name: 'ProvideJudgement';
|
|
572
|
+
params: {
|
|
573
|
+
regIndex: number;
|
|
574
|
+
target: MultiAddressLike;
|
|
575
|
+
judgement: PalletIdentityJudgement;
|
|
576
|
+
identity: H256;
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
}>>;
|
|
580
|
+
/**
|
|
581
|
+
* Remove an account's identity and sub-account information and slash the deposits.
|
|
582
|
+
*
|
|
583
|
+
* Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by
|
|
584
|
+
* `Slash`. Verification request deposits are not returned; they should be cancelled
|
|
585
|
+
* manually using `cancel_request`.
|
|
586
|
+
*
|
|
587
|
+
* The dispatch origin for this call must match `T::ForceOrigin`.
|
|
588
|
+
*
|
|
589
|
+
* - `target`: the account whose identity the judgement is upon. This must be an account
|
|
590
|
+
* with a registered identity.
|
|
591
|
+
*
|
|
592
|
+
* Emits `IdentityKilled` if successful.
|
|
593
|
+
*
|
|
594
|
+
* ## Complexity
|
|
595
|
+
* - `O(R + S + X)`
|
|
596
|
+
* - where `R` registrar-count (governance-bounded).
|
|
597
|
+
* - where `S` subs-count (hard- and deposit-bounded).
|
|
598
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
599
|
+
*
|
|
600
|
+
* @param {MultiAddressLike} target
|
|
601
|
+
**/
|
|
602
|
+
killIdentity: GenericTxCall<(target: MultiAddressLike) => ChainSubmittableExtrinsic<{
|
|
603
|
+
pallet: 'Identity';
|
|
604
|
+
palletCall: {
|
|
605
|
+
name: 'KillIdentity';
|
|
606
|
+
params: {
|
|
607
|
+
target: MultiAddressLike;
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
}>>;
|
|
611
|
+
/**
|
|
612
|
+
* Add the given account to the sender's subs.
|
|
613
|
+
*
|
|
614
|
+
* Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated
|
|
615
|
+
* to the sender.
|
|
616
|
+
*
|
|
617
|
+
* The dispatch origin for this call must be _Signed_ and the sender must have a registered
|
|
618
|
+
* sub identity of `sub`.
|
|
619
|
+
*
|
|
620
|
+
* @param {MultiAddressLike} sub
|
|
621
|
+
* @param {Data} data
|
|
622
|
+
**/
|
|
623
|
+
addSub: GenericTxCall<(sub: MultiAddressLike, data: Data) => ChainSubmittableExtrinsic<{
|
|
624
|
+
pallet: 'Identity';
|
|
625
|
+
palletCall: {
|
|
626
|
+
name: 'AddSub';
|
|
627
|
+
params: {
|
|
628
|
+
sub: MultiAddressLike;
|
|
629
|
+
data: Data;
|
|
630
|
+
};
|
|
631
|
+
};
|
|
632
|
+
}>>;
|
|
633
|
+
/**
|
|
634
|
+
* Alter the associated name of the given sub-account.
|
|
635
|
+
*
|
|
636
|
+
* The dispatch origin for this call must be _Signed_ and the sender must have a registered
|
|
637
|
+
* sub identity of `sub`.
|
|
638
|
+
*
|
|
639
|
+
* @param {MultiAddressLike} sub
|
|
640
|
+
* @param {Data} data
|
|
641
|
+
**/
|
|
642
|
+
renameSub: GenericTxCall<(sub: MultiAddressLike, data: Data) => ChainSubmittableExtrinsic<{
|
|
643
|
+
pallet: 'Identity';
|
|
644
|
+
palletCall: {
|
|
645
|
+
name: 'RenameSub';
|
|
646
|
+
params: {
|
|
647
|
+
sub: MultiAddressLike;
|
|
648
|
+
data: Data;
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
}>>;
|
|
652
|
+
/**
|
|
653
|
+
* Remove the given account from the sender's subs.
|
|
654
|
+
*
|
|
655
|
+
* Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated
|
|
656
|
+
* to the sender.
|
|
657
|
+
*
|
|
658
|
+
* The dispatch origin for this call must be _Signed_ and the sender must have a registered
|
|
659
|
+
* sub identity of `sub`.
|
|
660
|
+
*
|
|
661
|
+
* @param {MultiAddressLike} sub
|
|
662
|
+
**/
|
|
663
|
+
removeSub: GenericTxCall<(sub: MultiAddressLike) => ChainSubmittableExtrinsic<{
|
|
664
|
+
pallet: 'Identity';
|
|
665
|
+
palletCall: {
|
|
666
|
+
name: 'RemoveSub';
|
|
667
|
+
params: {
|
|
668
|
+
sub: MultiAddressLike;
|
|
669
|
+
};
|
|
670
|
+
};
|
|
671
|
+
}>>;
|
|
672
|
+
/**
|
|
673
|
+
* Remove the sender as a sub-account.
|
|
674
|
+
*
|
|
675
|
+
* Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated
|
|
676
|
+
* to the sender (*not* the original depositor).
|
|
677
|
+
*
|
|
678
|
+
* The dispatch origin for this call must be _Signed_ and the sender must have a registered
|
|
679
|
+
* super-identity.
|
|
680
|
+
*
|
|
681
|
+
* NOTE: This should not normally be used, but is provided in the case that the non-
|
|
682
|
+
* controller of an account is maliciously registered as a sub-account.
|
|
683
|
+
*
|
|
684
|
+
**/
|
|
685
|
+
quitSub: GenericTxCall<() => ChainSubmittableExtrinsic<{
|
|
686
|
+
pallet: 'Identity';
|
|
687
|
+
palletCall: {
|
|
688
|
+
name: 'QuitSub';
|
|
689
|
+
};
|
|
690
|
+
}>>;
|
|
691
|
+
/**
|
|
692
|
+
* Generic pallet tx call
|
|
693
|
+
**/
|
|
694
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
695
|
+
};
|
|
696
|
+
/**
|
|
697
|
+
* Pallet `Timestamp`'s transaction calls
|
|
698
|
+
**/
|
|
699
|
+
timestamp: {
|
|
700
|
+
/**
|
|
701
|
+
* Set the current time.
|
|
702
|
+
*
|
|
703
|
+
* This call should be invoked exactly once per block. It will panic at the finalization
|
|
704
|
+
* phase, if this call hasn't been invoked by that time.
|
|
705
|
+
*
|
|
706
|
+
* The timestamp should be greater than the previous one by the amount specified by
|
|
707
|
+
* `MinimumPeriod`.
|
|
708
|
+
*
|
|
709
|
+
* The dispatch origin for this call must be `Inherent`.
|
|
710
|
+
*
|
|
711
|
+
* ## Complexity
|
|
712
|
+
* - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
|
|
713
|
+
* - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in
|
|
714
|
+
* `on_finalize`)
|
|
715
|
+
* - 1 event handler `on_timestamp_set`. Must be `O(1)`.
|
|
716
|
+
*
|
|
717
|
+
* @param {bigint} now
|
|
718
|
+
**/
|
|
719
|
+
set: GenericTxCall<(now: bigint) => ChainSubmittableExtrinsic<{
|
|
720
|
+
pallet: 'Timestamp';
|
|
721
|
+
palletCall: {
|
|
722
|
+
name: 'Set';
|
|
723
|
+
params: {
|
|
724
|
+
now: bigint;
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
}>>;
|
|
728
|
+
/**
|
|
729
|
+
* Generic pallet tx call
|
|
730
|
+
**/
|
|
731
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
732
|
+
};
|
|
733
|
+
/**
|
|
734
|
+
* Pallet `Multisig`'s transaction calls
|
|
735
|
+
**/
|
|
736
|
+
multisig: {
|
|
737
|
+
/**
|
|
738
|
+
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
|
739
|
+
*
|
|
740
|
+
* The dispatch origin for this call must be _Signed_.
|
|
741
|
+
*
|
|
742
|
+
* - `other_signatories`: The accounts (other than the sender) who are part of the
|
|
743
|
+
* multi-signature, but do not participate in the approval process.
|
|
744
|
+
* - `call`: The call to be executed.
|
|
745
|
+
*
|
|
746
|
+
* Result is equivalent to the dispatched result.
|
|
747
|
+
*
|
|
748
|
+
* ## Complexity
|
|
749
|
+
* O(Z + C) where Z is the length of the call and C its execution weight.
|
|
750
|
+
*
|
|
751
|
+
* @param {Array<AccountId32Like>} otherSignatories
|
|
752
|
+
* @param {AstarRuntimeRuntimeCallLike} call
|
|
753
|
+
**/
|
|
754
|
+
asMultiThreshold1: GenericTxCall<(otherSignatories: Array<AccountId32Like>, call: AstarRuntimeRuntimeCallLike) => ChainSubmittableExtrinsic<{
|
|
755
|
+
pallet: 'Multisig';
|
|
756
|
+
palletCall: {
|
|
757
|
+
name: 'AsMultiThreshold1';
|
|
758
|
+
params: {
|
|
759
|
+
otherSignatories: Array<AccountId32Like>;
|
|
760
|
+
call: AstarRuntimeRuntimeCallLike;
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
}>>;
|
|
764
|
+
/**
|
|
765
|
+
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
766
|
+
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
767
|
+
*
|
|
768
|
+
* If there are enough, then dispatch the call.
|
|
769
|
+
*
|
|
770
|
+
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
771
|
+
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
772
|
+
* is cancelled.
|
|
773
|
+
*
|
|
774
|
+
* The dispatch origin for this call must be _Signed_.
|
|
775
|
+
*
|
|
776
|
+
* - `threshold`: The total number of approvals for this dispatch before it is executed.
|
|
777
|
+
* - `other_signatories`: The accounts (other than the sender) who can approve this
|
|
778
|
+
* dispatch. May not be empty.
|
|
779
|
+
* - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is
|
|
780
|
+
* not the first approval, then it must be `Some`, with the timepoint (block number and
|
|
781
|
+
* transaction index) of the first approval transaction.
|
|
782
|
+
* - `call`: The call to be executed.
|
|
783
|
+
*
|
|
784
|
+
* NOTE: Unless this is the final approval, you will generally want to use
|
|
785
|
+
* `approve_as_multi` instead, since it only requires a hash of the call.
|
|
786
|
+
*
|
|
787
|
+
* Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
|
|
788
|
+
* on success, result is `Ok` and the result from the interior call, if it was executed,
|
|
789
|
+
* may be found in the deposited `MultisigExecuted` event.
|
|
790
|
+
*
|
|
791
|
+
* ## Complexity
|
|
792
|
+
* - `O(S + Z + Call)`.
|
|
793
|
+
* - Up to one balance-reserve or unreserve operation.
|
|
794
|
+
* - One passthrough operation, one insert, both `O(S)` where `S` is the number of
|
|
795
|
+
* signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
|
|
796
|
+
* - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len.
|
|
797
|
+
* - One encode & hash, both of complexity `O(S)`.
|
|
798
|
+
* - Up to one binary search and insert (`O(logS + S)`).
|
|
799
|
+
* - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove.
|
|
800
|
+
* - One event.
|
|
801
|
+
* - The weight of the `call`.
|
|
802
|
+
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
|
803
|
+
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
|
804
|
+
*
|
|
805
|
+
* @param {number} threshold
|
|
806
|
+
* @param {Array<AccountId32Like>} otherSignatories
|
|
807
|
+
* @param {PalletMultisigTimepoint | undefined} maybeTimepoint
|
|
808
|
+
* @param {AstarRuntimeRuntimeCallLike} call
|
|
809
|
+
* @param {SpWeightsWeightV2Weight} maxWeight
|
|
810
|
+
**/
|
|
811
|
+
asMulti: GenericTxCall<(threshold: number, otherSignatories: Array<AccountId32Like>, maybeTimepoint: PalletMultisigTimepoint | undefined, call: AstarRuntimeRuntimeCallLike, maxWeight: SpWeightsWeightV2Weight) => ChainSubmittableExtrinsic<{
|
|
812
|
+
pallet: 'Multisig';
|
|
813
|
+
palletCall: {
|
|
814
|
+
name: 'AsMulti';
|
|
815
|
+
params: {
|
|
816
|
+
threshold: number;
|
|
817
|
+
otherSignatories: Array<AccountId32Like>;
|
|
818
|
+
maybeTimepoint: PalletMultisigTimepoint | undefined;
|
|
819
|
+
call: AstarRuntimeRuntimeCallLike;
|
|
820
|
+
maxWeight: SpWeightsWeightV2Weight;
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
}>>;
|
|
824
|
+
/**
|
|
825
|
+
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
826
|
+
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
827
|
+
*
|
|
828
|
+
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
829
|
+
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
830
|
+
* is cancelled.
|
|
831
|
+
*
|
|
832
|
+
* The dispatch origin for this call must be _Signed_.
|
|
833
|
+
*
|
|
834
|
+
* - `threshold`: The total number of approvals for this dispatch before it is executed.
|
|
835
|
+
* - `other_signatories`: The accounts (other than the sender) who can approve this
|
|
836
|
+
* dispatch. May not be empty.
|
|
837
|
+
* - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is
|
|
838
|
+
* not the first approval, then it must be `Some`, with the timepoint (block number and
|
|
839
|
+
* transaction index) of the first approval transaction.
|
|
840
|
+
* - `call_hash`: The hash of the call to be executed.
|
|
841
|
+
*
|
|
842
|
+
* NOTE: If this is the final approval, you will want to use `as_multi` instead.
|
|
843
|
+
*
|
|
844
|
+
* ## Complexity
|
|
845
|
+
* - `O(S)`.
|
|
846
|
+
* - Up to one balance-reserve or unreserve operation.
|
|
847
|
+
* - One passthrough operation, one insert, both `O(S)` where `S` is the number of
|
|
848
|
+
* signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
|
|
849
|
+
* - One encode & hash, both of complexity `O(S)`.
|
|
850
|
+
* - Up to one binary search and insert (`O(logS + S)`).
|
|
851
|
+
* - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove.
|
|
852
|
+
* - One event.
|
|
853
|
+
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
|
854
|
+
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
|
855
|
+
*
|
|
856
|
+
* @param {number} threshold
|
|
857
|
+
* @param {Array<AccountId32Like>} otherSignatories
|
|
858
|
+
* @param {PalletMultisigTimepoint | undefined} maybeTimepoint
|
|
859
|
+
* @param {FixedBytes<32>} callHash
|
|
860
|
+
* @param {SpWeightsWeightV2Weight} maxWeight
|
|
861
|
+
**/
|
|
862
|
+
approveAsMulti: GenericTxCall<(threshold: number, otherSignatories: Array<AccountId32Like>, maybeTimepoint: PalletMultisigTimepoint | undefined, callHash: FixedBytes<32>, maxWeight: SpWeightsWeightV2Weight) => ChainSubmittableExtrinsic<{
|
|
863
|
+
pallet: 'Multisig';
|
|
864
|
+
palletCall: {
|
|
865
|
+
name: 'ApproveAsMulti';
|
|
866
|
+
params: {
|
|
867
|
+
threshold: number;
|
|
868
|
+
otherSignatories: Array<AccountId32Like>;
|
|
869
|
+
maybeTimepoint: PalletMultisigTimepoint | undefined;
|
|
870
|
+
callHash: FixedBytes<32>;
|
|
871
|
+
maxWeight: SpWeightsWeightV2Weight;
|
|
872
|
+
};
|
|
873
|
+
};
|
|
874
|
+
}>>;
|
|
875
|
+
/**
|
|
876
|
+
* Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
|
|
877
|
+
* for this operation will be unreserved on success.
|
|
878
|
+
*
|
|
879
|
+
* The dispatch origin for this call must be _Signed_.
|
|
880
|
+
*
|
|
881
|
+
* - `threshold`: The total number of approvals for this dispatch before it is executed.
|
|
882
|
+
* - `other_signatories`: The accounts (other than the sender) who can approve this
|
|
883
|
+
* dispatch. May not be empty.
|
|
884
|
+
* - `timepoint`: The timepoint (block number and transaction index) of the first approval
|
|
885
|
+
* transaction for this dispatch.
|
|
886
|
+
* - `call_hash`: The hash of the call to be executed.
|
|
887
|
+
*
|
|
888
|
+
* ## Complexity
|
|
889
|
+
* - `O(S)`.
|
|
890
|
+
* - Up to one balance-reserve or unreserve operation.
|
|
891
|
+
* - One passthrough operation, one insert, both `O(S)` where `S` is the number of
|
|
892
|
+
* signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
|
|
893
|
+
* - One encode & hash, both of complexity `O(S)`.
|
|
894
|
+
* - One event.
|
|
895
|
+
* - I/O: 1 read `O(S)`, one remove.
|
|
896
|
+
* - Storage: removes one item.
|
|
897
|
+
*
|
|
898
|
+
* @param {number} threshold
|
|
899
|
+
* @param {Array<AccountId32Like>} otherSignatories
|
|
900
|
+
* @param {PalletMultisigTimepoint} timepoint
|
|
901
|
+
* @param {FixedBytes<32>} callHash
|
|
902
|
+
**/
|
|
903
|
+
cancelAsMulti: GenericTxCall<(threshold: number, otherSignatories: Array<AccountId32Like>, timepoint: PalletMultisigTimepoint, callHash: FixedBytes<32>) => ChainSubmittableExtrinsic<{
|
|
904
|
+
pallet: 'Multisig';
|
|
905
|
+
palletCall: {
|
|
906
|
+
name: 'CancelAsMulti';
|
|
907
|
+
params: {
|
|
908
|
+
threshold: number;
|
|
909
|
+
otherSignatories: Array<AccountId32Like>;
|
|
910
|
+
timepoint: PalletMultisigTimepoint;
|
|
911
|
+
callHash: FixedBytes<32>;
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
}>>;
|
|
915
|
+
/**
|
|
916
|
+
* Generic pallet tx call
|
|
917
|
+
**/
|
|
918
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
919
|
+
};
|
|
920
|
+
/**
|
|
921
|
+
* Pallet `Proxy`'s transaction calls
|
|
922
|
+
**/
|
|
923
|
+
proxy: {
|
|
924
|
+
/**
|
|
925
|
+
* Dispatch the given `call` from an account that the sender is authorised for through
|
|
926
|
+
* `add_proxy`.
|
|
927
|
+
*
|
|
928
|
+
* The dispatch origin for this call must be _Signed_.
|
|
929
|
+
*
|
|
930
|
+
* Parameters:
|
|
931
|
+
* - `real`: The account that the proxy will make a call on behalf of.
|
|
932
|
+
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
|
933
|
+
* - `call`: The call to be made by the `real` account.
|
|
934
|
+
*
|
|
935
|
+
* @param {MultiAddressLike} real
|
|
936
|
+
* @param {AstarRuntimeProxyType | undefined} forceProxyType
|
|
937
|
+
* @param {AstarRuntimeRuntimeCallLike} call
|
|
938
|
+
**/
|
|
939
|
+
proxy: GenericTxCall<(real: MultiAddressLike, forceProxyType: AstarRuntimeProxyType | undefined, call: AstarRuntimeRuntimeCallLike) => ChainSubmittableExtrinsic<{
|
|
940
|
+
pallet: 'Proxy';
|
|
941
|
+
palletCall: {
|
|
942
|
+
name: 'Proxy';
|
|
943
|
+
params: {
|
|
944
|
+
real: MultiAddressLike;
|
|
945
|
+
forceProxyType: AstarRuntimeProxyType | undefined;
|
|
946
|
+
call: AstarRuntimeRuntimeCallLike;
|
|
947
|
+
};
|
|
948
|
+
};
|
|
949
|
+
}>>;
|
|
950
|
+
/**
|
|
951
|
+
* Register a proxy account for the sender that is able to make calls on its behalf.
|
|
952
|
+
*
|
|
953
|
+
* The dispatch origin for this call must be _Signed_.
|
|
954
|
+
*
|
|
955
|
+
* Parameters:
|
|
956
|
+
* - `proxy`: The account that the `caller` would like to make a proxy.
|
|
957
|
+
* - `proxy_type`: The permissions allowed for this proxy account.
|
|
958
|
+
* - `delay`: The announcement period required of the initial proxy. Will generally be
|
|
959
|
+
* zero.
|
|
960
|
+
*
|
|
961
|
+
* @param {MultiAddressLike} delegate
|
|
962
|
+
* @param {AstarRuntimeProxyType} proxyType
|
|
963
|
+
* @param {number} delay
|
|
964
|
+
**/
|
|
965
|
+
addProxy: GenericTxCall<(delegate: MultiAddressLike, proxyType: AstarRuntimeProxyType, delay: number) => ChainSubmittableExtrinsic<{
|
|
966
|
+
pallet: 'Proxy';
|
|
967
|
+
palletCall: {
|
|
968
|
+
name: 'AddProxy';
|
|
969
|
+
params: {
|
|
970
|
+
delegate: MultiAddressLike;
|
|
971
|
+
proxyType: AstarRuntimeProxyType;
|
|
972
|
+
delay: number;
|
|
973
|
+
};
|
|
974
|
+
};
|
|
975
|
+
}>>;
|
|
976
|
+
/**
|
|
977
|
+
* Unregister a proxy account for the sender.
|
|
978
|
+
*
|
|
979
|
+
* The dispatch origin for this call must be _Signed_.
|
|
980
|
+
*
|
|
981
|
+
* Parameters:
|
|
982
|
+
* - `proxy`: The account that the `caller` would like to remove as a proxy.
|
|
983
|
+
* - `proxy_type`: The permissions currently enabled for the removed proxy account.
|
|
984
|
+
*
|
|
985
|
+
* @param {MultiAddressLike} delegate
|
|
986
|
+
* @param {AstarRuntimeProxyType} proxyType
|
|
987
|
+
* @param {number} delay
|
|
988
|
+
**/
|
|
989
|
+
removeProxy: GenericTxCall<(delegate: MultiAddressLike, proxyType: AstarRuntimeProxyType, delay: number) => ChainSubmittableExtrinsic<{
|
|
990
|
+
pallet: 'Proxy';
|
|
991
|
+
palletCall: {
|
|
992
|
+
name: 'RemoveProxy';
|
|
993
|
+
params: {
|
|
994
|
+
delegate: MultiAddressLike;
|
|
995
|
+
proxyType: AstarRuntimeProxyType;
|
|
996
|
+
delay: number;
|
|
997
|
+
};
|
|
998
|
+
};
|
|
999
|
+
}>>;
|
|
1000
|
+
/**
|
|
1001
|
+
* Unregister all proxy accounts for the sender.
|
|
1002
|
+
*
|
|
1003
|
+
* The dispatch origin for this call must be _Signed_.
|
|
1004
|
+
*
|
|
1005
|
+
* WARNING: This may be called on accounts created by `pure`, however if done, then
|
|
1006
|
+
* the unreserved fees will be inaccessible. **All access to this account will be lost.**
|
|
1007
|
+
*
|
|
1008
|
+
**/
|
|
1009
|
+
removeProxies: GenericTxCall<() => ChainSubmittableExtrinsic<{
|
|
1010
|
+
pallet: 'Proxy';
|
|
1011
|
+
palletCall: {
|
|
1012
|
+
name: 'RemoveProxies';
|
|
1013
|
+
};
|
|
1014
|
+
}>>;
|
|
1015
|
+
/**
|
|
1016
|
+
* Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and
|
|
1017
|
+
* initialize it with a proxy of `proxy_type` for `origin` sender.
|
|
1018
|
+
*
|
|
1019
|
+
* Requires a `Signed` origin.
|
|
1020
|
+
*
|
|
1021
|
+
* - `proxy_type`: The type of the proxy that the sender will be registered as over the
|
|
1022
|
+
* new account. This will almost always be the most permissive `ProxyType` possible to
|
|
1023
|
+
* allow for maximum flexibility.
|
|
1024
|
+
* - `index`: A disambiguation index, in case this is called multiple times in the same
|
|
1025
|
+
* transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just
|
|
1026
|
+
* want to use `0`.
|
|
1027
|
+
* - `delay`: The announcement period required of the initial proxy. Will generally be
|
|
1028
|
+
* zero.
|
|
1029
|
+
*
|
|
1030
|
+
* Fails with `Duplicate` if this has already been called in this transaction, from the
|
|
1031
|
+
* same sender, with the same parameters.
|
|
1032
|
+
*
|
|
1033
|
+
* Fails if there are insufficient funds to pay for deposit.
|
|
1034
|
+
*
|
|
1035
|
+
* @param {AstarRuntimeProxyType} proxyType
|
|
1036
|
+
* @param {number} delay
|
|
1037
|
+
* @param {number} index
|
|
1038
|
+
**/
|
|
1039
|
+
createPure: GenericTxCall<(proxyType: AstarRuntimeProxyType, delay: number, index: number) => ChainSubmittableExtrinsic<{
|
|
1040
|
+
pallet: 'Proxy';
|
|
1041
|
+
palletCall: {
|
|
1042
|
+
name: 'CreatePure';
|
|
1043
|
+
params: {
|
|
1044
|
+
proxyType: AstarRuntimeProxyType;
|
|
1045
|
+
delay: number;
|
|
1046
|
+
index: number;
|
|
1047
|
+
};
|
|
1048
|
+
};
|
|
1049
|
+
}>>;
|
|
1050
|
+
/**
|
|
1051
|
+
* Removes a previously spawned pure proxy.
|
|
1052
|
+
*
|
|
1053
|
+
* WARNING: **All access to this account will be lost.** Any funds held in it will be
|
|
1054
|
+
* inaccessible.
|
|
1055
|
+
*
|
|
1056
|
+
* Requires a `Signed` origin, and the sender account must have been created by a call to
|
|
1057
|
+
* `pure` with corresponding parameters.
|
|
1058
|
+
*
|
|
1059
|
+
* - `spawner`: The account that originally called `pure` to create this account.
|
|
1060
|
+
* - `index`: The disambiguation index originally passed to `pure`. Probably `0`.
|
|
1061
|
+
* - `proxy_type`: The proxy type originally passed to `pure`.
|
|
1062
|
+
* - `height`: The height of the chain when the call to `pure` was processed.
|
|
1063
|
+
* - `ext_index`: The extrinsic index in which the call to `pure` was processed.
|
|
1064
|
+
*
|
|
1065
|
+
* Fails with `NoPermission` in case the caller is not a previously created pure
|
|
1066
|
+
* account whose `pure` call has corresponding parameters.
|
|
1067
|
+
*
|
|
1068
|
+
* @param {MultiAddressLike} spawner
|
|
1069
|
+
* @param {AstarRuntimeProxyType} proxyType
|
|
1070
|
+
* @param {number} index
|
|
1071
|
+
* @param {number} height
|
|
1072
|
+
* @param {number} extIndex
|
|
1073
|
+
**/
|
|
1074
|
+
killPure: GenericTxCall<(spawner: MultiAddressLike, proxyType: AstarRuntimeProxyType, index: number, height: number, extIndex: number) => ChainSubmittableExtrinsic<{
|
|
1075
|
+
pallet: 'Proxy';
|
|
1076
|
+
palletCall: {
|
|
1077
|
+
name: 'KillPure';
|
|
1078
|
+
params: {
|
|
1079
|
+
spawner: MultiAddressLike;
|
|
1080
|
+
proxyType: AstarRuntimeProxyType;
|
|
1081
|
+
index: number;
|
|
1082
|
+
height: number;
|
|
1083
|
+
extIndex: number;
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
}>>;
|
|
1087
|
+
/**
|
|
1088
|
+
* Publish the hash of a proxy-call that will be made in the future.
|
|
1089
|
+
*
|
|
1090
|
+
* This must be called some number of blocks before the corresponding `proxy` is attempted
|
|
1091
|
+
* if the delay associated with the proxy relationship is greater than zero.
|
|
1092
|
+
*
|
|
1093
|
+
* No more than `MaxPending` announcements may be made at any one time.
|
|
1094
|
+
*
|
|
1095
|
+
* This will take a deposit of `AnnouncementDepositFactor` as well as
|
|
1096
|
+
* `AnnouncementDepositBase` if there are no other pending announcements.
|
|
1097
|
+
*
|
|
1098
|
+
* The dispatch origin for this call must be _Signed_ and a proxy of `real`.
|
|
1099
|
+
*
|
|
1100
|
+
* Parameters:
|
|
1101
|
+
* - `real`: The account that the proxy will make a call on behalf of.
|
|
1102
|
+
* - `call_hash`: The hash of the call to be made by the `real` account.
|
|
1103
|
+
*
|
|
1104
|
+
* @param {MultiAddressLike} real
|
|
1105
|
+
* @param {H256} callHash
|
|
1106
|
+
**/
|
|
1107
|
+
announce: GenericTxCall<(real: MultiAddressLike, callHash: H256) => ChainSubmittableExtrinsic<{
|
|
1108
|
+
pallet: 'Proxy';
|
|
1109
|
+
palletCall: {
|
|
1110
|
+
name: 'Announce';
|
|
1111
|
+
params: {
|
|
1112
|
+
real: MultiAddressLike;
|
|
1113
|
+
callHash: H256;
|
|
1114
|
+
};
|
|
1115
|
+
};
|
|
1116
|
+
}>>;
|
|
1117
|
+
/**
|
|
1118
|
+
* Remove a given announcement.
|
|
1119
|
+
*
|
|
1120
|
+
* May be called by a proxy account to remove a call they previously announced and return
|
|
1121
|
+
* the deposit.
|
|
1122
|
+
*
|
|
1123
|
+
* The dispatch origin for this call must be _Signed_.
|
|
1124
|
+
*
|
|
1125
|
+
* Parameters:
|
|
1126
|
+
* - `real`: The account that the proxy will make a call on behalf of.
|
|
1127
|
+
* - `call_hash`: The hash of the call to be made by the `real` account.
|
|
1128
|
+
*
|
|
1129
|
+
* @param {MultiAddressLike} real
|
|
1130
|
+
* @param {H256} callHash
|
|
1131
|
+
**/
|
|
1132
|
+
removeAnnouncement: GenericTxCall<(real: MultiAddressLike, callHash: H256) => ChainSubmittableExtrinsic<{
|
|
1133
|
+
pallet: 'Proxy';
|
|
1134
|
+
palletCall: {
|
|
1135
|
+
name: 'RemoveAnnouncement';
|
|
1136
|
+
params: {
|
|
1137
|
+
real: MultiAddressLike;
|
|
1138
|
+
callHash: H256;
|
|
1139
|
+
};
|
|
1140
|
+
};
|
|
1141
|
+
}>>;
|
|
1142
|
+
/**
|
|
1143
|
+
* Remove the given announcement of a delegate.
|
|
1144
|
+
*
|
|
1145
|
+
* May be called by a target (proxied) account to remove a call that one of their delegates
|
|
1146
|
+
* (`delegate`) has announced they want to execute. The deposit is returned.
|
|
1147
|
+
*
|
|
1148
|
+
* The dispatch origin for this call must be _Signed_.
|
|
1149
|
+
*
|
|
1150
|
+
* Parameters:
|
|
1151
|
+
* - `delegate`: The account that previously announced the call.
|
|
1152
|
+
* - `call_hash`: The hash of the call to be made.
|
|
1153
|
+
*
|
|
1154
|
+
* @param {MultiAddressLike} delegate
|
|
1155
|
+
* @param {H256} callHash
|
|
1156
|
+
**/
|
|
1157
|
+
rejectAnnouncement: GenericTxCall<(delegate: MultiAddressLike, callHash: H256) => ChainSubmittableExtrinsic<{
|
|
1158
|
+
pallet: 'Proxy';
|
|
1159
|
+
palletCall: {
|
|
1160
|
+
name: 'RejectAnnouncement';
|
|
1161
|
+
params: {
|
|
1162
|
+
delegate: MultiAddressLike;
|
|
1163
|
+
callHash: H256;
|
|
1164
|
+
};
|
|
1165
|
+
};
|
|
1166
|
+
}>>;
|
|
1167
|
+
/**
|
|
1168
|
+
* Dispatch the given `call` from an account that the sender is authorized for through
|
|
1169
|
+
* `add_proxy`.
|
|
1170
|
+
*
|
|
1171
|
+
* Removes any corresponding announcement(s).
|
|
1172
|
+
*
|
|
1173
|
+
* The dispatch origin for this call must be _Signed_.
|
|
1174
|
+
*
|
|
1175
|
+
* Parameters:
|
|
1176
|
+
* - `real`: The account that the proxy will make a call on behalf of.
|
|
1177
|
+
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
|
1178
|
+
* - `call`: The call to be made by the `real` account.
|
|
1179
|
+
*
|
|
1180
|
+
* @param {MultiAddressLike} delegate
|
|
1181
|
+
* @param {MultiAddressLike} real
|
|
1182
|
+
* @param {AstarRuntimeProxyType | undefined} forceProxyType
|
|
1183
|
+
* @param {AstarRuntimeRuntimeCallLike} call
|
|
1184
|
+
**/
|
|
1185
|
+
proxyAnnounced: GenericTxCall<(delegate: MultiAddressLike, real: MultiAddressLike, forceProxyType: AstarRuntimeProxyType | undefined, call: AstarRuntimeRuntimeCallLike) => ChainSubmittableExtrinsic<{
|
|
1186
|
+
pallet: 'Proxy';
|
|
1187
|
+
palletCall: {
|
|
1188
|
+
name: 'ProxyAnnounced';
|
|
1189
|
+
params: {
|
|
1190
|
+
delegate: MultiAddressLike;
|
|
1191
|
+
real: MultiAddressLike;
|
|
1192
|
+
forceProxyType: AstarRuntimeProxyType | undefined;
|
|
1193
|
+
call: AstarRuntimeRuntimeCallLike;
|
|
1194
|
+
};
|
|
1195
|
+
};
|
|
1196
|
+
}>>;
|
|
1197
|
+
/**
|
|
1198
|
+
* Generic pallet tx call
|
|
1199
|
+
**/
|
|
1200
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
1201
|
+
};
|
|
1202
|
+
/**
|
|
1203
|
+
* Pallet `ParachainSystem`'s transaction calls
|
|
1204
|
+
**/
|
|
1205
|
+
parachainSystem: {
|
|
1206
|
+
/**
|
|
1207
|
+
* Set the current validation data.
|
|
1208
|
+
*
|
|
1209
|
+
* This should be invoked exactly once per block. It will panic at the finalization
|
|
1210
|
+
* phase if the call was not invoked.
|
|
1211
|
+
*
|
|
1212
|
+
* The dispatch origin for this call must be `Inherent`
|
|
1213
|
+
*
|
|
1214
|
+
* As a side effect, this function upgrades the current validation function
|
|
1215
|
+
* if the appropriate time has come.
|
|
1216
|
+
*
|
|
1217
|
+
* @param {CumulusPrimitivesParachainInherentParachainInherentData} data
|
|
1218
|
+
**/
|
|
1219
|
+
setValidationData: GenericTxCall<(data: CumulusPrimitivesParachainInherentParachainInherentData) => ChainSubmittableExtrinsic<{
|
|
1220
|
+
pallet: 'ParachainSystem';
|
|
1221
|
+
palletCall: {
|
|
1222
|
+
name: 'SetValidationData';
|
|
1223
|
+
params: {
|
|
1224
|
+
data: CumulusPrimitivesParachainInherentParachainInherentData;
|
|
1225
|
+
};
|
|
1226
|
+
};
|
|
1227
|
+
}>>;
|
|
1228
|
+
/**
|
|
1229
|
+
*
|
|
1230
|
+
* @param {BytesLike} message
|
|
1231
|
+
**/
|
|
1232
|
+
sudoSendUpwardMessage: GenericTxCall<(message: BytesLike) => ChainSubmittableExtrinsic<{
|
|
1233
|
+
pallet: 'ParachainSystem';
|
|
1234
|
+
palletCall: {
|
|
1235
|
+
name: 'SudoSendUpwardMessage';
|
|
1236
|
+
params: {
|
|
1237
|
+
message: BytesLike;
|
|
1238
|
+
};
|
|
1239
|
+
};
|
|
1240
|
+
}>>;
|
|
1241
|
+
/**
|
|
1242
|
+
* Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
|
|
1243
|
+
* later.
|
|
1244
|
+
*
|
|
1245
|
+
* The `check_version` parameter sets a boolean flag for whether or not the runtime's spec
|
|
1246
|
+
* version and name should be verified on upgrade. Since the authorization only has a hash,
|
|
1247
|
+
* it cannot actually perform the verification.
|
|
1248
|
+
*
|
|
1249
|
+
* This call requires Root origin.
|
|
1250
|
+
*
|
|
1251
|
+
* @param {H256} codeHash
|
|
1252
|
+
* @param {boolean} checkVersion
|
|
1253
|
+
**/
|
|
1254
|
+
authorizeUpgrade: GenericTxCall<(codeHash: H256, checkVersion: boolean) => ChainSubmittableExtrinsic<{
|
|
1255
|
+
pallet: 'ParachainSystem';
|
|
1256
|
+
palletCall: {
|
|
1257
|
+
name: 'AuthorizeUpgrade';
|
|
1258
|
+
params: {
|
|
1259
|
+
codeHash: H256;
|
|
1260
|
+
checkVersion: boolean;
|
|
1261
|
+
};
|
|
1262
|
+
};
|
|
1263
|
+
}>>;
|
|
1264
|
+
/**
|
|
1265
|
+
* Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
|
|
1266
|
+
*
|
|
1267
|
+
* If the authorization required a version check, this call will ensure the spec name
|
|
1268
|
+
* remains unchanged and that the spec version has increased.
|
|
1269
|
+
*
|
|
1270
|
+
* Note that this function will not apply the new `code`, but only attempt to schedule the
|
|
1271
|
+
* upgrade with the Relay Chain.
|
|
1272
|
+
*
|
|
1273
|
+
* All origins are allowed.
|
|
1274
|
+
*
|
|
1275
|
+
* @param {BytesLike} code
|
|
1276
|
+
**/
|
|
1277
|
+
enactAuthorizedUpgrade: GenericTxCall<(code: BytesLike) => ChainSubmittableExtrinsic<{
|
|
1278
|
+
pallet: 'ParachainSystem';
|
|
1279
|
+
palletCall: {
|
|
1280
|
+
name: 'EnactAuthorizedUpgrade';
|
|
1281
|
+
params: {
|
|
1282
|
+
code: BytesLike;
|
|
1283
|
+
};
|
|
1284
|
+
};
|
|
1285
|
+
}>>;
|
|
1286
|
+
/**
|
|
1287
|
+
* Generic pallet tx call
|
|
1288
|
+
**/
|
|
1289
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
1290
|
+
};
|
|
1291
|
+
/**
|
|
1292
|
+
* Pallet `ParachainInfo`'s transaction calls
|
|
1293
|
+
**/
|
|
1294
|
+
parachainInfo: {
|
|
1295
|
+
/**
|
|
1296
|
+
* Generic pallet tx call
|
|
1297
|
+
**/
|
|
1298
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
1299
|
+
};
|
|
1300
|
+
/**
|
|
1301
|
+
* Pallet `Balances`'s transaction calls
|
|
1302
|
+
**/
|
|
1303
|
+
balances: {
|
|
1304
|
+
/**
|
|
1305
|
+
* Transfer some liquid free balance to another account.
|
|
1306
|
+
*
|
|
1307
|
+
* `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
|
|
1308
|
+
* If the sender's account is below the existential deposit as a result
|
|
1309
|
+
* of the transfer, the account will be reaped.
|
|
1310
|
+
*
|
|
1311
|
+
* The dispatch origin for this call must be `Signed` by the transactor.
|
|
1312
|
+
*
|
|
1313
|
+
* @param {MultiAddressLike} dest
|
|
1314
|
+
* @param {bigint} value
|
|
1315
|
+
**/
|
|
1316
|
+
transferAllowDeath: GenericTxCall<(dest: MultiAddressLike, value: bigint) => ChainSubmittableExtrinsic<{
|
|
1317
|
+
pallet: 'Balances';
|
|
1318
|
+
palletCall: {
|
|
1319
|
+
name: 'TransferAllowDeath';
|
|
1320
|
+
params: {
|
|
1321
|
+
dest: MultiAddressLike;
|
|
1322
|
+
value: bigint;
|
|
1323
|
+
};
|
|
1324
|
+
};
|
|
1325
|
+
}>>;
|
|
1326
|
+
/**
|
|
1327
|
+
* Set the regular balance of a given account; it also takes a reserved balance but this
|
|
1328
|
+
* must be the same as the account's current reserved balance.
|
|
1329
|
+
*
|
|
1330
|
+
* The dispatch origin for this call is `root`.
|
|
1331
|
+
*
|
|
1332
|
+
* WARNING: This call is DEPRECATED! Use `force_set_balance` instead.
|
|
1333
|
+
*
|
|
1334
|
+
* @param {MultiAddressLike} who
|
|
1335
|
+
* @param {bigint} newFree
|
|
1336
|
+
* @param {bigint} oldReserved
|
|
1337
|
+
**/
|
|
1338
|
+
setBalanceDeprecated: GenericTxCall<(who: MultiAddressLike, newFree: bigint, oldReserved: bigint) => ChainSubmittableExtrinsic<{
|
|
1339
|
+
pallet: 'Balances';
|
|
1340
|
+
palletCall: {
|
|
1341
|
+
name: 'SetBalanceDeprecated';
|
|
1342
|
+
params: {
|
|
1343
|
+
who: MultiAddressLike;
|
|
1344
|
+
newFree: bigint;
|
|
1345
|
+
oldReserved: bigint;
|
|
1346
|
+
};
|
|
1347
|
+
};
|
|
1348
|
+
}>>;
|
|
1349
|
+
/**
|
|
1350
|
+
* Exactly as `transfer_allow_death`, except the origin must be root and the source account
|
|
1351
|
+
* may be specified.
|
|
1352
|
+
*
|
|
1353
|
+
* @param {MultiAddressLike} source
|
|
1354
|
+
* @param {MultiAddressLike} dest
|
|
1355
|
+
* @param {bigint} value
|
|
1356
|
+
**/
|
|
1357
|
+
forceTransfer: GenericTxCall<(source: MultiAddressLike, dest: MultiAddressLike, value: bigint) => ChainSubmittableExtrinsic<{
|
|
1358
|
+
pallet: 'Balances';
|
|
1359
|
+
palletCall: {
|
|
1360
|
+
name: 'ForceTransfer';
|
|
1361
|
+
params: {
|
|
1362
|
+
source: MultiAddressLike;
|
|
1363
|
+
dest: MultiAddressLike;
|
|
1364
|
+
value: bigint;
|
|
1365
|
+
};
|
|
1366
|
+
};
|
|
1367
|
+
}>>;
|
|
1368
|
+
/**
|
|
1369
|
+
* Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
|
|
1370
|
+
* kill the origin account.
|
|
1371
|
+
*
|
|
1372
|
+
* 99% of the time you want [`transfer_allow_death`] instead.
|
|
1373
|
+
*
|
|
1374
|
+
* [`transfer_allow_death`]: struct.Pallet.html#method.transfer
|
|
1375
|
+
*
|
|
1376
|
+
* @param {MultiAddressLike} dest
|
|
1377
|
+
* @param {bigint} value
|
|
1378
|
+
**/
|
|
1379
|
+
transferKeepAlive: GenericTxCall<(dest: MultiAddressLike, value: bigint) => ChainSubmittableExtrinsic<{
|
|
1380
|
+
pallet: 'Balances';
|
|
1381
|
+
palletCall: {
|
|
1382
|
+
name: 'TransferKeepAlive';
|
|
1383
|
+
params: {
|
|
1384
|
+
dest: MultiAddressLike;
|
|
1385
|
+
value: bigint;
|
|
1386
|
+
};
|
|
1387
|
+
};
|
|
1388
|
+
}>>;
|
|
1389
|
+
/**
|
|
1390
|
+
* Transfer the entire transferable balance from the caller account.
|
|
1391
|
+
*
|
|
1392
|
+
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
|
1393
|
+
* any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
|
|
1394
|
+
* transferred by this function. To ensure that this function results in a killed account,
|
|
1395
|
+
* you might need to prepare the account by removing any reference counters, storage
|
|
1396
|
+
* deposits, etc...
|
|
1397
|
+
*
|
|
1398
|
+
* The dispatch origin of this call must be Signed.
|
|
1399
|
+
*
|
|
1400
|
+
* - `dest`: The recipient of the transfer.
|
|
1401
|
+
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
1402
|
+
* of the funds the account has, causing the sender account to be killed (false), or
|
|
1403
|
+
* transfer everything except at least the existential deposit, which will guarantee to
|
|
1404
|
+
* keep the sender account alive (true).
|
|
1405
|
+
*
|
|
1406
|
+
* @param {MultiAddressLike} dest
|
|
1407
|
+
* @param {boolean} keepAlive
|
|
1408
|
+
**/
|
|
1409
|
+
transferAll: GenericTxCall<(dest: MultiAddressLike, keepAlive: boolean) => ChainSubmittableExtrinsic<{
|
|
1410
|
+
pallet: 'Balances';
|
|
1411
|
+
palletCall: {
|
|
1412
|
+
name: 'TransferAll';
|
|
1413
|
+
params: {
|
|
1414
|
+
dest: MultiAddressLike;
|
|
1415
|
+
keepAlive: boolean;
|
|
1416
|
+
};
|
|
1417
|
+
};
|
|
1418
|
+
}>>;
|
|
1419
|
+
/**
|
|
1420
|
+
* Unreserve some balance from a user by force.
|
|
1421
|
+
*
|
|
1422
|
+
* Can only be called by ROOT.
|
|
1423
|
+
*
|
|
1424
|
+
* @param {MultiAddressLike} who
|
|
1425
|
+
* @param {bigint} amount
|
|
1426
|
+
**/
|
|
1427
|
+
forceUnreserve: GenericTxCall<(who: MultiAddressLike, amount: bigint) => ChainSubmittableExtrinsic<{
|
|
1428
|
+
pallet: 'Balances';
|
|
1429
|
+
palletCall: {
|
|
1430
|
+
name: 'ForceUnreserve';
|
|
1431
|
+
params: {
|
|
1432
|
+
who: MultiAddressLike;
|
|
1433
|
+
amount: bigint;
|
|
1434
|
+
};
|
|
1435
|
+
};
|
|
1436
|
+
}>>;
|
|
1437
|
+
/**
|
|
1438
|
+
* Upgrade a specified account.
|
|
1439
|
+
*
|
|
1440
|
+
* - `origin`: Must be `Signed`.
|
|
1441
|
+
* - `who`: The account to be upgraded.
|
|
1442
|
+
*
|
|
1443
|
+
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
|
1444
|
+
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
|
1445
|
+
* possibililty of churn).
|
|
1446
|
+
*
|
|
1447
|
+
* @param {Array<AccountId32Like>} who
|
|
1448
|
+
**/
|
|
1449
|
+
upgradeAccounts: GenericTxCall<(who: Array<AccountId32Like>) => ChainSubmittableExtrinsic<{
|
|
1450
|
+
pallet: 'Balances';
|
|
1451
|
+
palletCall: {
|
|
1452
|
+
name: 'UpgradeAccounts';
|
|
1453
|
+
params: {
|
|
1454
|
+
who: Array<AccountId32Like>;
|
|
1455
|
+
};
|
|
1456
|
+
};
|
|
1457
|
+
}>>;
|
|
1458
|
+
/**
|
|
1459
|
+
* Alias for `transfer_allow_death`, provided only for name-wise compatibility.
|
|
1460
|
+
*
|
|
1461
|
+
* WARNING: DEPRECATED! Will be released in approximately 3 months.
|
|
1462
|
+
*
|
|
1463
|
+
* @param {MultiAddressLike} dest
|
|
1464
|
+
* @param {bigint} value
|
|
1465
|
+
**/
|
|
1466
|
+
transfer: GenericTxCall<(dest: MultiAddressLike, value: bigint) => ChainSubmittableExtrinsic<{
|
|
1467
|
+
pallet: 'Balances';
|
|
1468
|
+
palletCall: {
|
|
1469
|
+
name: 'Transfer';
|
|
1470
|
+
params: {
|
|
1471
|
+
dest: MultiAddressLike;
|
|
1472
|
+
value: bigint;
|
|
1473
|
+
};
|
|
1474
|
+
};
|
|
1475
|
+
}>>;
|
|
1476
|
+
/**
|
|
1477
|
+
* Set the regular balance of a given account.
|
|
1478
|
+
*
|
|
1479
|
+
* The dispatch origin for this call is `root`.
|
|
1480
|
+
*
|
|
1481
|
+
* @param {MultiAddressLike} who
|
|
1482
|
+
* @param {bigint} newFree
|
|
1483
|
+
**/
|
|
1484
|
+
forceSetBalance: GenericTxCall<(who: MultiAddressLike, newFree: bigint) => ChainSubmittableExtrinsic<{
|
|
1485
|
+
pallet: 'Balances';
|
|
1486
|
+
palletCall: {
|
|
1487
|
+
name: 'ForceSetBalance';
|
|
1488
|
+
params: {
|
|
1489
|
+
who: MultiAddressLike;
|
|
1490
|
+
newFree: bigint;
|
|
1491
|
+
};
|
|
1492
|
+
};
|
|
1493
|
+
}>>;
|
|
1494
|
+
/**
|
|
1495
|
+
* Generic pallet tx call
|
|
1496
|
+
**/
|
|
1497
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
1498
|
+
};
|
|
1499
|
+
/**
|
|
1500
|
+
* Pallet `Vesting`'s transaction calls
|
|
1501
|
+
**/
|
|
1502
|
+
vesting: {
|
|
1503
|
+
/**
|
|
1504
|
+
* Unlock any vested funds of the sender account.
|
|
1505
|
+
*
|
|
1506
|
+
* The dispatch origin for this call must be _Signed_ and the sender must have funds still
|
|
1507
|
+
* locked under this pallet.
|
|
1508
|
+
*
|
|
1509
|
+
* Emits either `VestingCompleted` or `VestingUpdated`.
|
|
1510
|
+
*
|
|
1511
|
+
* ## Complexity
|
|
1512
|
+
* - `O(1)`.
|
|
1513
|
+
*
|
|
1514
|
+
**/
|
|
1515
|
+
vest: GenericTxCall<() => ChainSubmittableExtrinsic<{
|
|
1516
|
+
pallet: 'Vesting';
|
|
1517
|
+
palletCall: {
|
|
1518
|
+
name: 'Vest';
|
|
1519
|
+
};
|
|
1520
|
+
}>>;
|
|
1521
|
+
/**
|
|
1522
|
+
* Unlock any vested funds of a `target` account.
|
|
1523
|
+
*
|
|
1524
|
+
* The dispatch origin for this call must be _Signed_.
|
|
1525
|
+
*
|
|
1526
|
+
* - `target`: The account whose vested funds should be unlocked. Must have funds still
|
|
1527
|
+
* locked under this pallet.
|
|
1528
|
+
*
|
|
1529
|
+
* Emits either `VestingCompleted` or `VestingUpdated`.
|
|
1530
|
+
*
|
|
1531
|
+
* ## Complexity
|
|
1532
|
+
* - `O(1)`.
|
|
1533
|
+
*
|
|
1534
|
+
* @param {MultiAddressLike} target
|
|
1535
|
+
**/
|
|
1536
|
+
vestOther: GenericTxCall<(target: MultiAddressLike) => ChainSubmittableExtrinsic<{
|
|
1537
|
+
pallet: 'Vesting';
|
|
1538
|
+
palletCall: {
|
|
1539
|
+
name: 'VestOther';
|
|
1540
|
+
params: {
|
|
1541
|
+
target: MultiAddressLike;
|
|
1542
|
+
};
|
|
1543
|
+
};
|
|
1544
|
+
}>>;
|
|
1545
|
+
/**
|
|
1546
|
+
* Create a vested transfer.
|
|
1547
|
+
*
|
|
1548
|
+
* The dispatch origin for this call must be _Signed_.
|
|
1549
|
+
*
|
|
1550
|
+
* - `target`: The account receiving the vested funds.
|
|
1551
|
+
* - `schedule`: The vesting schedule attached to the transfer.
|
|
1552
|
+
*
|
|
1553
|
+
* Emits `VestingCreated`.
|
|
1554
|
+
*
|
|
1555
|
+
* NOTE: This will unlock all schedules through the current block.
|
|
1556
|
+
*
|
|
1557
|
+
* ## Complexity
|
|
1558
|
+
* - `O(1)`.
|
|
1559
|
+
*
|
|
1560
|
+
* @param {MultiAddressLike} target
|
|
1561
|
+
* @param {PalletVestingVestingInfo} schedule
|
|
1562
|
+
**/
|
|
1563
|
+
vestedTransfer: GenericTxCall<(target: MultiAddressLike, schedule: PalletVestingVestingInfo) => ChainSubmittableExtrinsic<{
|
|
1564
|
+
pallet: 'Vesting';
|
|
1565
|
+
palletCall: {
|
|
1566
|
+
name: 'VestedTransfer';
|
|
1567
|
+
params: {
|
|
1568
|
+
target: MultiAddressLike;
|
|
1569
|
+
schedule: PalletVestingVestingInfo;
|
|
1570
|
+
};
|
|
1571
|
+
};
|
|
1572
|
+
}>>;
|
|
1573
|
+
/**
|
|
1574
|
+
* Force a vested transfer.
|
|
1575
|
+
*
|
|
1576
|
+
* The dispatch origin for this call must be _Root_.
|
|
1577
|
+
*
|
|
1578
|
+
* - `source`: The account whose funds should be transferred.
|
|
1579
|
+
* - `target`: The account that should be transferred the vested funds.
|
|
1580
|
+
* - `schedule`: The vesting schedule attached to the transfer.
|
|
1581
|
+
*
|
|
1582
|
+
* Emits `VestingCreated`.
|
|
1583
|
+
*
|
|
1584
|
+
* NOTE: This will unlock all schedules through the current block.
|
|
1585
|
+
*
|
|
1586
|
+
* ## Complexity
|
|
1587
|
+
* - `O(1)`.
|
|
1588
|
+
*
|
|
1589
|
+
* @param {MultiAddressLike} source
|
|
1590
|
+
* @param {MultiAddressLike} target
|
|
1591
|
+
* @param {PalletVestingVestingInfo} schedule
|
|
1592
|
+
**/
|
|
1593
|
+
forceVestedTransfer: GenericTxCall<(source: MultiAddressLike, target: MultiAddressLike, schedule: PalletVestingVestingInfo) => ChainSubmittableExtrinsic<{
|
|
1594
|
+
pallet: 'Vesting';
|
|
1595
|
+
palletCall: {
|
|
1596
|
+
name: 'ForceVestedTransfer';
|
|
1597
|
+
params: {
|
|
1598
|
+
source: MultiAddressLike;
|
|
1599
|
+
target: MultiAddressLike;
|
|
1600
|
+
schedule: PalletVestingVestingInfo;
|
|
1601
|
+
};
|
|
1602
|
+
};
|
|
1603
|
+
}>>;
|
|
1604
|
+
/**
|
|
1605
|
+
* Merge two vesting schedules together, creating a new vesting schedule that unlocks over
|
|
1606
|
+
* the highest possible start and end blocks. If both schedules have already started the
|
|
1607
|
+
* current block will be used as the schedule start; with the caveat that if one schedule
|
|
1608
|
+
* is finished by the current block, the other will be treated as the new merged schedule,
|
|
1609
|
+
* unmodified.
|
|
1610
|
+
*
|
|
1611
|
+
* NOTE: If `schedule1_index == schedule2_index` this is a no-op.
|
|
1612
|
+
* NOTE: This will unlock all schedules through the current block prior to merging.
|
|
1613
|
+
* NOTE: If both schedules have ended by the current block, no new schedule will be created
|
|
1614
|
+
* and both will be removed.
|
|
1615
|
+
*
|
|
1616
|
+
* Merged schedule attributes:
|
|
1617
|
+
* - `starting_block`: `MAX(schedule1.starting_block, scheduled2.starting_block,
|
|
1618
|
+
* current_block)`.
|
|
1619
|
+
* - `ending_block`: `MAX(schedule1.ending_block, schedule2.ending_block)`.
|
|
1620
|
+
* - `locked`: `schedule1.locked_at(current_block) + schedule2.locked_at(current_block)`.
|
|
1621
|
+
*
|
|
1622
|
+
* The dispatch origin for this call must be _Signed_.
|
|
1623
|
+
*
|
|
1624
|
+
* - `schedule1_index`: index of the first schedule to merge.
|
|
1625
|
+
* - `schedule2_index`: index of the second schedule to merge.
|
|
1626
|
+
*
|
|
1627
|
+
* @param {number} schedule1Index
|
|
1628
|
+
* @param {number} schedule2Index
|
|
1629
|
+
**/
|
|
1630
|
+
mergeSchedules: GenericTxCall<(schedule1Index: number, schedule2Index: number) => ChainSubmittableExtrinsic<{
|
|
1631
|
+
pallet: 'Vesting';
|
|
1632
|
+
palletCall: {
|
|
1633
|
+
name: 'MergeSchedules';
|
|
1634
|
+
params: {
|
|
1635
|
+
schedule1Index: number;
|
|
1636
|
+
schedule2Index: number;
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
}>>;
|
|
1640
|
+
/**
|
|
1641
|
+
* Generic pallet tx call
|
|
1642
|
+
**/
|
|
1643
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
1644
|
+
};
|
|
1645
|
+
/**
|
|
1646
|
+
* Pallet `Inflation`'s transaction calls
|
|
1647
|
+
**/
|
|
1648
|
+
inflation: {
|
|
1649
|
+
/**
|
|
1650
|
+
* Used to force-set the inflation parameters.
|
|
1651
|
+
* The parameters must be valid, all parts summing up to one whole (100%), otherwise the call will fail.
|
|
1652
|
+
*
|
|
1653
|
+
* Must be called by `root` origin.
|
|
1654
|
+
*
|
|
1655
|
+
* Purpose of the call is testing & handling unforeseen circumstances.
|
|
1656
|
+
*
|
|
1657
|
+
* @param {PalletInflationInflationParameters} params
|
|
1658
|
+
**/
|
|
1659
|
+
forceSetInflationParams: GenericTxCall<(params: PalletInflationInflationParameters) => ChainSubmittableExtrinsic<{
|
|
1660
|
+
pallet: 'Inflation';
|
|
1661
|
+
palletCall: {
|
|
1662
|
+
name: 'ForceSetInflationParams';
|
|
1663
|
+
params: {
|
|
1664
|
+
params: PalletInflationInflationParameters;
|
|
1665
|
+
};
|
|
1666
|
+
};
|
|
1667
|
+
}>>;
|
|
1668
|
+
/**
|
|
1669
|
+
* Used to force inflation recalculation.
|
|
1670
|
+
* This is done in the same way as it would be done in an appropriate block, but this call forces it.
|
|
1671
|
+
*
|
|
1672
|
+
* Must be called by `root` origin.
|
|
1673
|
+
*
|
|
1674
|
+
* Purpose of the call is testing & handling unforeseen circumstances.
|
|
1675
|
+
*
|
|
1676
|
+
* @param {number} nextEra
|
|
1677
|
+
**/
|
|
1678
|
+
forceInflationRecalculation: GenericTxCall<(nextEra: number) => ChainSubmittableExtrinsic<{
|
|
1679
|
+
pallet: 'Inflation';
|
|
1680
|
+
palletCall: {
|
|
1681
|
+
name: 'ForceInflationRecalculation';
|
|
1682
|
+
params: {
|
|
1683
|
+
nextEra: number;
|
|
1684
|
+
};
|
|
1685
|
+
};
|
|
1686
|
+
}>>;
|
|
1687
|
+
/**
|
|
1688
|
+
* Generic pallet tx call
|
|
1689
|
+
**/
|
|
1690
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
1691
|
+
};
|
|
1692
|
+
/**
|
|
1693
|
+
* Pallet `DappStaking`'s transaction calls
|
|
1694
|
+
**/
|
|
1695
|
+
dappStaking: {
|
|
1696
|
+
/**
|
|
1697
|
+
* Wrapper around _legacy-like_ `unbond_and_unstake`.
|
|
1698
|
+
*
|
|
1699
|
+
* Used to support legacy Ledger users so they can start the unlocking process for their funds.
|
|
1700
|
+
*
|
|
1701
|
+
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
1702
|
+
* @param {bigint} value
|
|
1703
|
+
**/
|
|
1704
|
+
unbondAndUnstake: GenericTxCall<(contractId: AstarPrimitivesDappStakingSmartContract, value: bigint) => ChainSubmittableExtrinsic<{
|
|
1705
|
+
pallet: 'DappStaking';
|
|
1706
|
+
palletCall: {
|
|
1707
|
+
name: 'UnbondAndUnstake';
|
|
1708
|
+
params: {
|
|
1709
|
+
contractId: AstarPrimitivesDappStakingSmartContract;
|
|
1710
|
+
value: bigint;
|
|
1711
|
+
};
|
|
1712
|
+
};
|
|
1713
|
+
}>>;
|
|
1714
|
+
/**
|
|
1715
|
+
* Wrapper around _legacy-like_ `withdraw_unbonded`.
|
|
1716
|
+
*
|
|
1717
|
+
* Used to support legacy Ledger users so they can reclaim unlocked chunks back into
|
|
1718
|
+
* their _transferable_ free balance.
|
|
1719
|
+
*
|
|
1720
|
+
**/
|
|
1721
|
+
withdrawUnbonded: GenericTxCall<() => ChainSubmittableExtrinsic<{
|
|
1722
|
+
pallet: 'DappStaking';
|
|
1723
|
+
palletCall: {
|
|
1724
|
+
name: 'WithdrawUnbonded';
|
|
1725
|
+
};
|
|
1726
|
+
}>>;
|
|
1727
|
+
/**
|
|
1728
|
+
* Used to enable or disable maintenance mode.
|
|
1729
|
+
* Can only be called by manager origin.
|
|
1730
|
+
*
|
|
1731
|
+
* @param {boolean} enabled
|
|
1732
|
+
**/
|
|
1733
|
+
maintenanceMode: GenericTxCall<(enabled: boolean) => ChainSubmittableExtrinsic<{
|
|
1734
|
+
pallet: 'DappStaking';
|
|
1735
|
+
palletCall: {
|
|
1736
|
+
name: 'MaintenanceMode';
|
|
1737
|
+
params: {
|
|
1738
|
+
enabled: boolean;
|
|
1739
|
+
};
|
|
1740
|
+
};
|
|
1741
|
+
}>>;
|
|
1742
|
+
/**
|
|
1743
|
+
* Used to register a new contract for dApp staking.
|
|
1744
|
+
*
|
|
1745
|
+
* If successful, smart contract will be assigned a simple, unique numerical identifier.
|
|
1746
|
+
* Owner is set to be initial beneficiary & manager of the dApp.
|
|
1747
|
+
*
|
|
1748
|
+
* @param {AccountId32Like} owner
|
|
1749
|
+
* @param {AstarPrimitivesDappStakingSmartContract} smartContract
|
|
1750
|
+
**/
|
|
1751
|
+
register: GenericTxCall<(owner: AccountId32Like, smartContract: AstarPrimitivesDappStakingSmartContract) => ChainSubmittableExtrinsic<{
|
|
1752
|
+
pallet: 'DappStaking';
|
|
1753
|
+
palletCall: {
|
|
1754
|
+
name: 'Register';
|
|
1755
|
+
params: {
|
|
1756
|
+
owner: AccountId32Like;
|
|
1757
|
+
smartContract: AstarPrimitivesDappStakingSmartContract;
|
|
1758
|
+
};
|
|
1759
|
+
};
|
|
1760
|
+
}>>;
|
|
1761
|
+
/**
|
|
1762
|
+
* Used to modify the reward beneficiary account for a dApp.
|
|
1763
|
+
*
|
|
1764
|
+
* Caller has to be dApp owner.
|
|
1765
|
+
* If set to `None`, rewards will be deposited to the dApp owner.
|
|
1766
|
+
* After this call, all existing & future rewards will be paid out to the beneficiary.
|
|
1767
|
+
*
|
|
1768
|
+
* @param {AstarPrimitivesDappStakingSmartContract} smartContract
|
|
1769
|
+
* @param {AccountId32Like | undefined} beneficiary
|
|
1770
|
+
**/
|
|
1771
|
+
setDappRewardBeneficiary: GenericTxCall<(smartContract: AstarPrimitivesDappStakingSmartContract, beneficiary: AccountId32Like | undefined) => ChainSubmittableExtrinsic<{
|
|
1772
|
+
pallet: 'DappStaking';
|
|
1773
|
+
palletCall: {
|
|
1774
|
+
name: 'SetDappRewardBeneficiary';
|
|
1775
|
+
params: {
|
|
1776
|
+
smartContract: AstarPrimitivesDappStakingSmartContract;
|
|
1777
|
+
beneficiary: AccountId32Like | undefined;
|
|
1778
|
+
};
|
|
1779
|
+
};
|
|
1780
|
+
}>>;
|
|
1781
|
+
/**
|
|
1782
|
+
* Used to change dApp owner.
|
|
1783
|
+
*
|
|
1784
|
+
* Can be called by dApp owner or dApp staking manager origin.
|
|
1785
|
+
* This is useful in two cases:
|
|
1786
|
+
* 1. when the dApp owner account is compromised, manager can change the owner to a new account
|
|
1787
|
+
* 2. if project wants to transfer ownership to a new account (DAO, multisig, etc.).
|
|
1788
|
+
*
|
|
1789
|
+
* @param {AstarPrimitivesDappStakingSmartContract} smartContract
|
|
1790
|
+
* @param {AccountId32Like} newOwner
|
|
1791
|
+
**/
|
|
1792
|
+
setDappOwner: GenericTxCall<(smartContract: AstarPrimitivesDappStakingSmartContract, newOwner: AccountId32Like) => ChainSubmittableExtrinsic<{
|
|
1793
|
+
pallet: 'DappStaking';
|
|
1794
|
+
palletCall: {
|
|
1795
|
+
name: 'SetDappOwner';
|
|
1796
|
+
params: {
|
|
1797
|
+
smartContract: AstarPrimitivesDappStakingSmartContract;
|
|
1798
|
+
newOwner: AccountId32Like;
|
|
1799
|
+
};
|
|
1800
|
+
};
|
|
1801
|
+
}>>;
|
|
1802
|
+
/**
|
|
1803
|
+
* Unregister dApp from dApp staking protocol, making it ineligible for future rewards.
|
|
1804
|
+
* This doesn't remove the dApp completely from the system just yet, but it can no longer be used for staking.
|
|
1805
|
+
*
|
|
1806
|
+
* Can be called by dApp staking manager origin.
|
|
1807
|
+
*
|
|
1808
|
+
* @param {AstarPrimitivesDappStakingSmartContract} smartContract
|
|
1809
|
+
**/
|
|
1810
|
+
unregister: GenericTxCall<(smartContract: AstarPrimitivesDappStakingSmartContract) => ChainSubmittableExtrinsic<{
|
|
1811
|
+
pallet: 'DappStaking';
|
|
1812
|
+
palletCall: {
|
|
1813
|
+
name: 'Unregister';
|
|
1814
|
+
params: {
|
|
1815
|
+
smartContract: AstarPrimitivesDappStakingSmartContract;
|
|
1816
|
+
};
|
|
1817
|
+
};
|
|
1818
|
+
}>>;
|
|
1819
|
+
/**
|
|
1820
|
+
* Locks additional funds into dApp staking.
|
|
1821
|
+
*
|
|
1822
|
+
* In case caller account doesn't have sufficient balance to cover the specified amount, everything is locked.
|
|
1823
|
+
* After adjustment, lock amount must be greater than zero and in total must be equal or greater than the minimum locked amount.
|
|
1824
|
+
*
|
|
1825
|
+
* Locked amount can immediately be used for staking.
|
|
1826
|
+
*
|
|
1827
|
+
* @param {bigint} amount
|
|
1828
|
+
**/
|
|
1829
|
+
lock: GenericTxCall<(amount: bigint) => ChainSubmittableExtrinsic<{
|
|
1830
|
+
pallet: 'DappStaking';
|
|
1831
|
+
palletCall: {
|
|
1832
|
+
name: 'Lock';
|
|
1833
|
+
params: {
|
|
1834
|
+
amount: bigint;
|
|
1835
|
+
};
|
|
1836
|
+
};
|
|
1837
|
+
}>>;
|
|
1838
|
+
/**
|
|
1839
|
+
* Attempts to start the unlocking process for the specified amount.
|
|
1840
|
+
*
|
|
1841
|
+
* Only the amount that isn't actively used for staking can be unlocked.
|
|
1842
|
+
* If the amount is greater than the available amount for unlocking, everything is unlocked.
|
|
1843
|
+
* If the remaining locked amount would take the account below the minimum locked amount, everything is unlocked.
|
|
1844
|
+
*
|
|
1845
|
+
* @param {bigint} amount
|
|
1846
|
+
**/
|
|
1847
|
+
unlock: GenericTxCall<(amount: bigint) => ChainSubmittableExtrinsic<{
|
|
1848
|
+
pallet: 'DappStaking';
|
|
1849
|
+
palletCall: {
|
|
1850
|
+
name: 'Unlock';
|
|
1851
|
+
params: {
|
|
1852
|
+
amount: bigint;
|
|
1853
|
+
};
|
|
1854
|
+
};
|
|
1855
|
+
}>>;
|
|
1856
|
+
/**
|
|
1857
|
+
* Claims all of fully unlocked chunks, removing the lock from them.
|
|
1858
|
+
*
|
|
1859
|
+
**/
|
|
1860
|
+
claimUnlocked: GenericTxCall<() => ChainSubmittableExtrinsic<{
|
|
1861
|
+
pallet: 'DappStaking';
|
|
1862
|
+
palletCall: {
|
|
1863
|
+
name: 'ClaimUnlocked';
|
|
1864
|
+
};
|
|
1865
|
+
}>>;
|
|
1866
|
+
/**
|
|
1867
|
+
*
|
|
1868
|
+
**/
|
|
1869
|
+
relockUnlocking: GenericTxCall<() => ChainSubmittableExtrinsic<{
|
|
1870
|
+
pallet: 'DappStaking';
|
|
1871
|
+
palletCall: {
|
|
1872
|
+
name: 'RelockUnlocking';
|
|
1873
|
+
};
|
|
1874
|
+
}>>;
|
|
1875
|
+
/**
|
|
1876
|
+
* Stake the specified amount on a smart contract.
|
|
1877
|
+
* The precise `amount` specified **must** be available for staking.
|
|
1878
|
+
* The total amount staked on a dApp must be greater than the minimum required value.
|
|
1879
|
+
*
|
|
1880
|
+
* Depending on the period type, appropriate stake amount will be updated. During `Voting` subperiod, `voting` stake amount is updated,
|
|
1881
|
+
* and same for `Build&Earn` subperiod.
|
|
1882
|
+
*
|
|
1883
|
+
* Staked amount is only eligible for rewards from the next era onwards.
|
|
1884
|
+
*
|
|
1885
|
+
* @param {AstarPrimitivesDappStakingSmartContract} smartContract
|
|
1886
|
+
* @param {bigint} amount
|
|
1887
|
+
**/
|
|
1888
|
+
stake: GenericTxCall<(smartContract: AstarPrimitivesDappStakingSmartContract, amount: bigint) => ChainSubmittableExtrinsic<{
|
|
1889
|
+
pallet: 'DappStaking';
|
|
1890
|
+
palletCall: {
|
|
1891
|
+
name: 'Stake';
|
|
1892
|
+
params: {
|
|
1893
|
+
smartContract: AstarPrimitivesDappStakingSmartContract;
|
|
1894
|
+
amount: bigint;
|
|
1895
|
+
};
|
|
1896
|
+
};
|
|
1897
|
+
}>>;
|
|
1898
|
+
/**
|
|
1899
|
+
* Unstake the specified amount from a smart contract.
|
|
1900
|
+
* The `amount` specified **must** not exceed what's staked, otherwise the call will fail.
|
|
1901
|
+
*
|
|
1902
|
+
* If unstaking the specified `amount` would take staker below the minimum stake threshold, everything is unstaked.
|
|
1903
|
+
*
|
|
1904
|
+
* Depending on the period type, appropriate stake amount will be updated.
|
|
1905
|
+
* In case amount is unstaked during `Voting` subperiod, the `voting` amount is reduced.
|
|
1906
|
+
* In case amount is unstaked during `Build&Earn` subperiod, first the `build_and_earn` is reduced,
|
|
1907
|
+
* and any spillover is subtracted from the `voting` amount.
|
|
1908
|
+
*
|
|
1909
|
+
* @param {AstarPrimitivesDappStakingSmartContract} smartContract
|
|
1910
|
+
* @param {bigint} amount
|
|
1911
|
+
**/
|
|
1912
|
+
unstake: GenericTxCall<(smartContract: AstarPrimitivesDappStakingSmartContract, amount: bigint) => ChainSubmittableExtrinsic<{
|
|
1913
|
+
pallet: 'DappStaking';
|
|
1914
|
+
palletCall: {
|
|
1915
|
+
name: 'Unstake';
|
|
1916
|
+
params: {
|
|
1917
|
+
smartContract: AstarPrimitivesDappStakingSmartContract;
|
|
1918
|
+
amount: bigint;
|
|
1919
|
+
};
|
|
1920
|
+
};
|
|
1921
|
+
}>>;
|
|
1922
|
+
/**
|
|
1923
|
+
* Claims some staker rewards, if user has any.
|
|
1924
|
+
* In the case of a successful call, at least one era will be claimed, with the possibility of multiple claims happening.
|
|
1925
|
+
*
|
|
1926
|
+
**/
|
|
1927
|
+
claimStakerRewards: GenericTxCall<() => ChainSubmittableExtrinsic<{
|
|
1928
|
+
pallet: 'DappStaking';
|
|
1929
|
+
palletCall: {
|
|
1930
|
+
name: 'ClaimStakerRewards';
|
|
1931
|
+
};
|
|
1932
|
+
}>>;
|
|
1933
|
+
/**
|
|
1934
|
+
* Used to claim bonus reward for a smart contract, if eligible.
|
|
1935
|
+
*
|
|
1936
|
+
* @param {AstarPrimitivesDappStakingSmartContract} smartContract
|
|
1937
|
+
**/
|
|
1938
|
+
claimBonusReward: GenericTxCall<(smartContract: AstarPrimitivesDappStakingSmartContract) => ChainSubmittableExtrinsic<{
|
|
1939
|
+
pallet: 'DappStaking';
|
|
1940
|
+
palletCall: {
|
|
1941
|
+
name: 'ClaimBonusReward';
|
|
1942
|
+
params: {
|
|
1943
|
+
smartContract: AstarPrimitivesDappStakingSmartContract;
|
|
1944
|
+
};
|
|
1945
|
+
};
|
|
1946
|
+
}>>;
|
|
1947
|
+
/**
|
|
1948
|
+
* Used to claim dApp reward for the specified era.
|
|
1949
|
+
*
|
|
1950
|
+
* @param {AstarPrimitivesDappStakingSmartContract} smartContract
|
|
1951
|
+
* @param {number} era
|
|
1952
|
+
**/
|
|
1953
|
+
claimDappReward: GenericTxCall<(smartContract: AstarPrimitivesDappStakingSmartContract, era: number) => ChainSubmittableExtrinsic<{
|
|
1954
|
+
pallet: 'DappStaking';
|
|
1955
|
+
palletCall: {
|
|
1956
|
+
name: 'ClaimDappReward';
|
|
1957
|
+
params: {
|
|
1958
|
+
smartContract: AstarPrimitivesDappStakingSmartContract;
|
|
1959
|
+
era: number;
|
|
1960
|
+
};
|
|
1961
|
+
};
|
|
1962
|
+
}>>;
|
|
1963
|
+
/**
|
|
1964
|
+
* Used to unstake funds from a contract that was unregistered after an account staked on it.
|
|
1965
|
+
* This is required if staker wants to re-stake these funds on another active contract during the ongoing period.
|
|
1966
|
+
*
|
|
1967
|
+
* @param {AstarPrimitivesDappStakingSmartContract} smartContract
|
|
1968
|
+
**/
|
|
1969
|
+
unstakeFromUnregistered: GenericTxCall<(smartContract: AstarPrimitivesDappStakingSmartContract) => ChainSubmittableExtrinsic<{
|
|
1970
|
+
pallet: 'DappStaking';
|
|
1971
|
+
palletCall: {
|
|
1972
|
+
name: 'UnstakeFromUnregistered';
|
|
1973
|
+
params: {
|
|
1974
|
+
smartContract: AstarPrimitivesDappStakingSmartContract;
|
|
1975
|
+
};
|
|
1976
|
+
};
|
|
1977
|
+
}>>;
|
|
1978
|
+
/**
|
|
1979
|
+
* Cleanup expired stake entries for the contract.
|
|
1980
|
+
*
|
|
1981
|
+
* Entry is considered to be expired if:
|
|
1982
|
+
* 1. It's from a past period & the account wasn't a loyal staker, meaning there's no claimable bonus reward.
|
|
1983
|
+
* 2. It's from a period older than the oldest claimable period, regardless whether the account was loyal or not.
|
|
1984
|
+
*
|
|
1985
|
+
**/
|
|
1986
|
+
cleanupExpiredEntries: GenericTxCall<() => ChainSubmittableExtrinsic<{
|
|
1987
|
+
pallet: 'DappStaking';
|
|
1988
|
+
palletCall: {
|
|
1989
|
+
name: 'CleanupExpiredEntries';
|
|
1990
|
+
};
|
|
1991
|
+
}>>;
|
|
1992
|
+
/**
|
|
1993
|
+
* Used to force a change of era or subperiod.
|
|
1994
|
+
* The effect isn't immediate but will happen on the next block.
|
|
1995
|
+
*
|
|
1996
|
+
* Used for testing purposes, when we want to force an era change, or a subperiod change.
|
|
1997
|
+
* Not intended to be used in production, except in case of unforeseen circumstances.
|
|
1998
|
+
*
|
|
1999
|
+
* Can only be called by manager origin.
|
|
2000
|
+
*
|
|
2001
|
+
* @param {PalletDappStakingV3ForcingType} forcingType
|
|
2002
|
+
**/
|
|
2003
|
+
force: GenericTxCall<(forcingType: PalletDappStakingV3ForcingType) => ChainSubmittableExtrinsic<{
|
|
2004
|
+
pallet: 'DappStaking';
|
|
2005
|
+
palletCall: {
|
|
2006
|
+
name: 'Force';
|
|
2007
|
+
params: {
|
|
2008
|
+
forcingType: PalletDappStakingV3ForcingType;
|
|
2009
|
+
};
|
|
2010
|
+
};
|
|
2011
|
+
}>>;
|
|
2012
|
+
/**
|
|
2013
|
+
* Generic pallet tx call
|
|
2014
|
+
**/
|
|
2015
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
2016
|
+
};
|
|
2017
|
+
/**
|
|
2018
|
+
* Pallet `Assets`'s transaction calls
|
|
2019
|
+
**/
|
|
2020
|
+
assets: {
|
|
2021
|
+
/**
|
|
2022
|
+
* Issue a new class of fungible assets from a public origin.
|
|
2023
|
+
*
|
|
2024
|
+
* This new asset class has no assets initially and its owner is the origin.
|
|
2025
|
+
*
|
|
2026
|
+
* The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
|
|
2027
|
+
*
|
|
2028
|
+
* Funds of sender are reserved by `AssetDeposit`.
|
|
2029
|
+
*
|
|
2030
|
+
* Parameters:
|
|
2031
|
+
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
2032
|
+
* an existing asset.
|
|
2033
|
+
* - `admin`: The admin of this class of assets. The admin is the initial address of each
|
|
2034
|
+
* member of the asset class's admin team.
|
|
2035
|
+
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
2036
|
+
* have. If an account's balance is reduced below this, then it collapses to zero.
|
|
2037
|
+
*
|
|
2038
|
+
* Emits `Created` event when successful.
|
|
2039
|
+
*
|
|
2040
|
+
* Weight: `O(1)`
|
|
2041
|
+
*
|
|
2042
|
+
* @param {bigint} id
|
|
2043
|
+
* @param {MultiAddressLike} admin
|
|
2044
|
+
* @param {bigint} minBalance
|
|
2045
|
+
**/
|
|
2046
|
+
create: GenericTxCall<(id: bigint, admin: MultiAddressLike, minBalance: bigint) => ChainSubmittableExtrinsic<{
|
|
2047
|
+
pallet: 'Assets';
|
|
2048
|
+
palletCall: {
|
|
2049
|
+
name: 'Create';
|
|
2050
|
+
params: {
|
|
2051
|
+
id: bigint;
|
|
2052
|
+
admin: MultiAddressLike;
|
|
2053
|
+
minBalance: bigint;
|
|
2054
|
+
};
|
|
2055
|
+
};
|
|
2056
|
+
}>>;
|
|
2057
|
+
/**
|
|
2058
|
+
* Issue a new class of fungible assets from a privileged origin.
|
|
2059
|
+
*
|
|
2060
|
+
* This new asset class has no assets initially.
|
|
2061
|
+
*
|
|
2062
|
+
* The origin must conform to `ForceOrigin`.
|
|
2063
|
+
*
|
|
2064
|
+
* Unlike `create`, no funds are reserved.
|
|
2065
|
+
*
|
|
2066
|
+
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
2067
|
+
* an existing asset.
|
|
2068
|
+
* - `owner`: The owner of this class of assets. The owner has full superuser permissions
|
|
2069
|
+
* over this asset, but may later change and configure the permissions using
|
|
2070
|
+
* `transfer_ownership` and `set_team`.
|
|
2071
|
+
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
2072
|
+
* have. If an account's balance is reduced below this, then it collapses to zero.
|
|
2073
|
+
*
|
|
2074
|
+
* Emits `ForceCreated` event when successful.
|
|
2075
|
+
*
|
|
2076
|
+
* Weight: `O(1)`
|
|
2077
|
+
*
|
|
2078
|
+
* @param {bigint} id
|
|
2079
|
+
* @param {MultiAddressLike} owner
|
|
2080
|
+
* @param {boolean} isSufficient
|
|
2081
|
+
* @param {bigint} minBalance
|
|
2082
|
+
**/
|
|
2083
|
+
forceCreate: GenericTxCall<(id: bigint, owner: MultiAddressLike, isSufficient: boolean, minBalance: bigint) => ChainSubmittableExtrinsic<{
|
|
2084
|
+
pallet: 'Assets';
|
|
2085
|
+
palletCall: {
|
|
2086
|
+
name: 'ForceCreate';
|
|
2087
|
+
params: {
|
|
2088
|
+
id: bigint;
|
|
2089
|
+
owner: MultiAddressLike;
|
|
2090
|
+
isSufficient: boolean;
|
|
2091
|
+
minBalance: bigint;
|
|
2092
|
+
};
|
|
2093
|
+
};
|
|
2094
|
+
}>>;
|
|
2095
|
+
/**
|
|
2096
|
+
* Start the process of destroying a fungible asset class.
|
|
2097
|
+
*
|
|
2098
|
+
* `start_destroy` is the first in a series of extrinsics that should be called, to allow
|
|
2099
|
+
* destruction of an asset class.
|
|
2100
|
+
*
|
|
2101
|
+
* The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`.
|
|
2102
|
+
*
|
|
2103
|
+
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
2104
|
+
* asset.
|
|
2105
|
+
*
|
|
2106
|
+
* The asset class must be frozen before calling `start_destroy`.
|
|
2107
|
+
*
|
|
2108
|
+
* @param {bigint} id
|
|
2109
|
+
**/
|
|
2110
|
+
startDestroy: GenericTxCall<(id: bigint) => ChainSubmittableExtrinsic<{
|
|
2111
|
+
pallet: 'Assets';
|
|
2112
|
+
palletCall: {
|
|
2113
|
+
name: 'StartDestroy';
|
|
2114
|
+
params: {
|
|
2115
|
+
id: bigint;
|
|
2116
|
+
};
|
|
2117
|
+
};
|
|
2118
|
+
}>>;
|
|
2119
|
+
/**
|
|
2120
|
+
* Destroy all accounts associated with a given asset.
|
|
2121
|
+
*
|
|
2122
|
+
* `destroy_accounts` should only be called after `start_destroy` has been called, and the
|
|
2123
|
+
* asset is in a `Destroying` state.
|
|
2124
|
+
*
|
|
2125
|
+
* Due to weight restrictions, this function may need to be called multiple times to fully
|
|
2126
|
+
* destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time.
|
|
2127
|
+
*
|
|
2128
|
+
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
2129
|
+
* asset.
|
|
2130
|
+
*
|
|
2131
|
+
* Each call emits the `Event::DestroyedAccounts` event.
|
|
2132
|
+
*
|
|
2133
|
+
* @param {bigint} id
|
|
2134
|
+
**/
|
|
2135
|
+
destroyAccounts: GenericTxCall<(id: bigint) => ChainSubmittableExtrinsic<{
|
|
2136
|
+
pallet: 'Assets';
|
|
2137
|
+
palletCall: {
|
|
2138
|
+
name: 'DestroyAccounts';
|
|
2139
|
+
params: {
|
|
2140
|
+
id: bigint;
|
|
2141
|
+
};
|
|
2142
|
+
};
|
|
2143
|
+
}>>;
|
|
2144
|
+
/**
|
|
2145
|
+
* Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit).
|
|
2146
|
+
*
|
|
2147
|
+
* `destroy_approvals` should only be called after `start_destroy` has been called, and the
|
|
2148
|
+
* asset is in a `Destroying` state.
|
|
2149
|
+
*
|
|
2150
|
+
* Due to weight restrictions, this function may need to be called multiple times to fully
|
|
2151
|
+
* destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time.
|
|
2152
|
+
*
|
|
2153
|
+
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
2154
|
+
* asset.
|
|
2155
|
+
*
|
|
2156
|
+
* Each call emits the `Event::DestroyedApprovals` event.
|
|
2157
|
+
*
|
|
2158
|
+
* @param {bigint} id
|
|
2159
|
+
**/
|
|
2160
|
+
destroyApprovals: GenericTxCall<(id: bigint) => ChainSubmittableExtrinsic<{
|
|
2161
|
+
pallet: 'Assets';
|
|
2162
|
+
palletCall: {
|
|
2163
|
+
name: 'DestroyApprovals';
|
|
2164
|
+
params: {
|
|
2165
|
+
id: bigint;
|
|
2166
|
+
};
|
|
2167
|
+
};
|
|
2168
|
+
}>>;
|
|
2169
|
+
/**
|
|
2170
|
+
* Complete destroying asset and unreserve currency.
|
|
2171
|
+
*
|
|
2172
|
+
* `finish_destroy` should only be called after `start_destroy` has been called, and the
|
|
2173
|
+
* asset is in a `Destroying` state. All accounts or approvals should be destroyed before
|
|
2174
|
+
* hand.
|
|
2175
|
+
*
|
|
2176
|
+
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
2177
|
+
* asset.
|
|
2178
|
+
*
|
|
2179
|
+
* Each successful call emits the `Event::Destroyed` event.
|
|
2180
|
+
*
|
|
2181
|
+
* @param {bigint} id
|
|
2182
|
+
**/
|
|
2183
|
+
finishDestroy: GenericTxCall<(id: bigint) => ChainSubmittableExtrinsic<{
|
|
2184
|
+
pallet: 'Assets';
|
|
2185
|
+
palletCall: {
|
|
2186
|
+
name: 'FinishDestroy';
|
|
2187
|
+
params: {
|
|
2188
|
+
id: bigint;
|
|
2189
|
+
};
|
|
2190
|
+
};
|
|
2191
|
+
}>>;
|
|
2192
|
+
/**
|
|
2193
|
+
* Mint assets of a particular class.
|
|
2194
|
+
*
|
|
2195
|
+
* The origin must be Signed and the sender must be the Issuer of the asset `id`.
|
|
2196
|
+
*
|
|
2197
|
+
* - `id`: The identifier of the asset to have some amount minted.
|
|
2198
|
+
* - `beneficiary`: The account to be credited with the minted assets.
|
|
2199
|
+
* - `amount`: The amount of the asset to be minted.
|
|
2200
|
+
*
|
|
2201
|
+
* Emits `Issued` event when successful.
|
|
2202
|
+
*
|
|
2203
|
+
* Weight: `O(1)`
|
|
2204
|
+
* Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`.
|
|
2205
|
+
*
|
|
2206
|
+
* @param {bigint} id
|
|
2207
|
+
* @param {MultiAddressLike} beneficiary
|
|
2208
|
+
* @param {bigint} amount
|
|
2209
|
+
**/
|
|
2210
|
+
mint: GenericTxCall<(id: bigint, beneficiary: MultiAddressLike, amount: bigint) => ChainSubmittableExtrinsic<{
|
|
2211
|
+
pallet: 'Assets';
|
|
2212
|
+
palletCall: {
|
|
2213
|
+
name: 'Mint';
|
|
2214
|
+
params: {
|
|
2215
|
+
id: bigint;
|
|
2216
|
+
beneficiary: MultiAddressLike;
|
|
2217
|
+
amount: bigint;
|
|
2218
|
+
};
|
|
2219
|
+
};
|
|
2220
|
+
}>>;
|
|
2221
|
+
/**
|
|
2222
|
+
* Reduce the balance of `who` by as much as possible up to `amount` assets of `id`.
|
|
2223
|
+
*
|
|
2224
|
+
* Origin must be Signed and the sender should be the Manager of the asset `id`.
|
|
2225
|
+
*
|
|
2226
|
+
* Bails with `NoAccount` if the `who` is already dead.
|
|
2227
|
+
*
|
|
2228
|
+
* - `id`: The identifier of the asset to have some amount burned.
|
|
2229
|
+
* - `who`: The account to be debited from.
|
|
2230
|
+
* - `amount`: The maximum amount by which `who`'s balance should be reduced.
|
|
2231
|
+
*
|
|
2232
|
+
* Emits `Burned` with the actual amount burned. If this takes the balance to below the
|
|
2233
|
+
* minimum for the asset, then the amount burned is increased to take it to zero.
|
|
2234
|
+
*
|
|
2235
|
+
* Weight: `O(1)`
|
|
2236
|
+
* Modes: Post-existence of `who`; Pre & post Zombie-status of `who`.
|
|
2237
|
+
*
|
|
2238
|
+
* @param {bigint} id
|
|
2239
|
+
* @param {MultiAddressLike} who
|
|
2240
|
+
* @param {bigint} amount
|
|
2241
|
+
**/
|
|
2242
|
+
burn: GenericTxCall<(id: bigint, who: MultiAddressLike, amount: bigint) => ChainSubmittableExtrinsic<{
|
|
2243
|
+
pallet: 'Assets';
|
|
2244
|
+
palletCall: {
|
|
2245
|
+
name: 'Burn';
|
|
2246
|
+
params: {
|
|
2247
|
+
id: bigint;
|
|
2248
|
+
who: MultiAddressLike;
|
|
2249
|
+
amount: bigint;
|
|
2250
|
+
};
|
|
2251
|
+
};
|
|
2252
|
+
}>>;
|
|
2253
|
+
/**
|
|
2254
|
+
* Move some assets from the sender account to another.
|
|
2255
|
+
*
|
|
2256
|
+
* Origin must be Signed.
|
|
2257
|
+
*
|
|
2258
|
+
* - `id`: The identifier of the asset to have some amount transferred.
|
|
2259
|
+
* - `target`: The account to be credited.
|
|
2260
|
+
* - `amount`: The amount by which the sender's balance of assets should be reduced and
|
|
2261
|
+
* `target`'s balance increased. The amount actually transferred may be slightly greater in
|
|
2262
|
+
* the case that the transfer would otherwise take the sender balance above zero but below
|
|
2263
|
+
* the minimum balance. Must be greater than zero.
|
|
2264
|
+
*
|
|
2265
|
+
* Emits `Transferred` with the actual amount transferred. If this takes the source balance
|
|
2266
|
+
* to below the minimum for the asset, then the amount transferred is increased to take it
|
|
2267
|
+
* to zero.
|
|
2268
|
+
*
|
|
2269
|
+
* Weight: `O(1)`
|
|
2270
|
+
* Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
|
|
2271
|
+
* `target`.
|
|
2272
|
+
*
|
|
2273
|
+
* @param {bigint} id
|
|
2274
|
+
* @param {MultiAddressLike} target
|
|
2275
|
+
* @param {bigint} amount
|
|
2276
|
+
**/
|
|
2277
|
+
transfer: GenericTxCall<(id: bigint, target: MultiAddressLike, amount: bigint) => ChainSubmittableExtrinsic<{
|
|
2278
|
+
pallet: 'Assets';
|
|
2279
|
+
palletCall: {
|
|
2280
|
+
name: 'Transfer';
|
|
2281
|
+
params: {
|
|
2282
|
+
id: bigint;
|
|
2283
|
+
target: MultiAddressLike;
|
|
2284
|
+
amount: bigint;
|
|
2285
|
+
};
|
|
2286
|
+
};
|
|
2287
|
+
}>>;
|
|
2288
|
+
/**
|
|
2289
|
+
* Move some assets from the sender account to another, keeping the sender account alive.
|
|
2290
|
+
*
|
|
2291
|
+
* Origin must be Signed.
|
|
2292
|
+
*
|
|
2293
|
+
* - `id`: The identifier of the asset to have some amount transferred.
|
|
2294
|
+
* - `target`: The account to be credited.
|
|
2295
|
+
* - `amount`: The amount by which the sender's balance of assets should be reduced and
|
|
2296
|
+
* `target`'s balance increased. The amount actually transferred may be slightly greater in
|
|
2297
|
+
* the case that the transfer would otherwise take the sender balance above zero but below
|
|
2298
|
+
* the minimum balance. Must be greater than zero.
|
|
2299
|
+
*
|
|
2300
|
+
* Emits `Transferred` with the actual amount transferred. If this takes the source balance
|
|
2301
|
+
* to below the minimum for the asset, then the amount transferred is increased to take it
|
|
2302
|
+
* to zero.
|
|
2303
|
+
*
|
|
2304
|
+
* Weight: `O(1)`
|
|
2305
|
+
* Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
|
|
2306
|
+
* `target`.
|
|
2307
|
+
*
|
|
2308
|
+
* @param {bigint} id
|
|
2309
|
+
* @param {MultiAddressLike} target
|
|
2310
|
+
* @param {bigint} amount
|
|
2311
|
+
**/
|
|
2312
|
+
transferKeepAlive: GenericTxCall<(id: bigint, target: MultiAddressLike, amount: bigint) => ChainSubmittableExtrinsic<{
|
|
2313
|
+
pallet: 'Assets';
|
|
2314
|
+
palletCall: {
|
|
2315
|
+
name: 'TransferKeepAlive';
|
|
2316
|
+
params: {
|
|
2317
|
+
id: bigint;
|
|
2318
|
+
target: MultiAddressLike;
|
|
2319
|
+
amount: bigint;
|
|
2320
|
+
};
|
|
2321
|
+
};
|
|
2322
|
+
}>>;
|
|
2323
|
+
/**
|
|
2324
|
+
* Move some assets from one account to another.
|
|
2325
|
+
*
|
|
2326
|
+
* Origin must be Signed and the sender should be the Admin of the asset `id`.
|
|
2327
|
+
*
|
|
2328
|
+
* - `id`: The identifier of the asset to have some amount transferred.
|
|
2329
|
+
* - `source`: The account to be debited.
|
|
2330
|
+
* - `dest`: The account to be credited.
|
|
2331
|
+
* - `amount`: The amount by which the `source`'s balance of assets should be reduced and
|
|
2332
|
+
* `dest`'s balance increased. The amount actually transferred may be slightly greater in
|
|
2333
|
+
* the case that the transfer would otherwise take the `source` balance above zero but
|
|
2334
|
+
* below the minimum balance. Must be greater than zero.
|
|
2335
|
+
*
|
|
2336
|
+
* Emits `Transferred` with the actual amount transferred. If this takes the source balance
|
|
2337
|
+
* to below the minimum for the asset, then the amount transferred is increased to take it
|
|
2338
|
+
* to zero.
|
|
2339
|
+
*
|
|
2340
|
+
* Weight: `O(1)`
|
|
2341
|
+
* Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of
|
|
2342
|
+
* `dest`.
|
|
2343
|
+
*
|
|
2344
|
+
* @param {bigint} id
|
|
2345
|
+
* @param {MultiAddressLike} source
|
|
2346
|
+
* @param {MultiAddressLike} dest
|
|
2347
|
+
* @param {bigint} amount
|
|
2348
|
+
**/
|
|
2349
|
+
forceTransfer: GenericTxCall<(id: bigint, source: MultiAddressLike, dest: MultiAddressLike, amount: bigint) => ChainSubmittableExtrinsic<{
|
|
2350
|
+
pallet: 'Assets';
|
|
2351
|
+
palletCall: {
|
|
2352
|
+
name: 'ForceTransfer';
|
|
2353
|
+
params: {
|
|
2354
|
+
id: bigint;
|
|
2355
|
+
source: MultiAddressLike;
|
|
2356
|
+
dest: MultiAddressLike;
|
|
2357
|
+
amount: bigint;
|
|
2358
|
+
};
|
|
2359
|
+
};
|
|
2360
|
+
}>>;
|
|
2361
|
+
/**
|
|
2362
|
+
* Disallow further unprivileged transfers of an asset `id` from an account `who`. `who`
|
|
2363
|
+
* must already exist as an entry in `Account`s of the asset. If you want to freeze an
|
|
2364
|
+
* account that does not have an entry, use `touch_other` first.
|
|
2365
|
+
*
|
|
2366
|
+
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
|
|
2367
|
+
*
|
|
2368
|
+
* - `id`: The identifier of the asset to be frozen.
|
|
2369
|
+
* - `who`: The account to be frozen.
|
|
2370
|
+
*
|
|
2371
|
+
* Emits `Frozen`.
|
|
2372
|
+
*
|
|
2373
|
+
* Weight: `O(1)`
|
|
2374
|
+
*
|
|
2375
|
+
* @param {bigint} id
|
|
2376
|
+
* @param {MultiAddressLike} who
|
|
2377
|
+
**/
|
|
2378
|
+
freeze: GenericTxCall<(id: bigint, who: MultiAddressLike) => ChainSubmittableExtrinsic<{
|
|
2379
|
+
pallet: 'Assets';
|
|
2380
|
+
palletCall: {
|
|
2381
|
+
name: 'Freeze';
|
|
2382
|
+
params: {
|
|
2383
|
+
id: bigint;
|
|
2384
|
+
who: MultiAddressLike;
|
|
2385
|
+
};
|
|
2386
|
+
};
|
|
2387
|
+
}>>;
|
|
2388
|
+
/**
|
|
2389
|
+
* Allow unprivileged transfers to and from an account again.
|
|
2390
|
+
*
|
|
2391
|
+
* Origin must be Signed and the sender should be the Admin of the asset `id`.
|
|
2392
|
+
*
|
|
2393
|
+
* - `id`: The identifier of the asset to be frozen.
|
|
2394
|
+
* - `who`: The account to be unfrozen.
|
|
2395
|
+
*
|
|
2396
|
+
* Emits `Thawed`.
|
|
2397
|
+
*
|
|
2398
|
+
* Weight: `O(1)`
|
|
2399
|
+
*
|
|
2400
|
+
* @param {bigint} id
|
|
2401
|
+
* @param {MultiAddressLike} who
|
|
2402
|
+
**/
|
|
2403
|
+
thaw: GenericTxCall<(id: bigint, who: MultiAddressLike) => ChainSubmittableExtrinsic<{
|
|
2404
|
+
pallet: 'Assets';
|
|
2405
|
+
palletCall: {
|
|
2406
|
+
name: 'Thaw';
|
|
2407
|
+
params: {
|
|
2408
|
+
id: bigint;
|
|
2409
|
+
who: MultiAddressLike;
|
|
2410
|
+
};
|
|
2411
|
+
};
|
|
2412
|
+
}>>;
|
|
2413
|
+
/**
|
|
2414
|
+
* Disallow further unprivileged transfers for the asset class.
|
|
2415
|
+
*
|
|
2416
|
+
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
|
|
2417
|
+
*
|
|
2418
|
+
* - `id`: The identifier of the asset to be frozen.
|
|
2419
|
+
*
|
|
2420
|
+
* Emits `Frozen`.
|
|
2421
|
+
*
|
|
2422
|
+
* Weight: `O(1)`
|
|
2423
|
+
*
|
|
2424
|
+
* @param {bigint} id
|
|
2425
|
+
**/
|
|
2426
|
+
freezeAsset: GenericTxCall<(id: bigint) => ChainSubmittableExtrinsic<{
|
|
2427
|
+
pallet: 'Assets';
|
|
2428
|
+
palletCall: {
|
|
2429
|
+
name: 'FreezeAsset';
|
|
2430
|
+
params: {
|
|
2431
|
+
id: bigint;
|
|
2432
|
+
};
|
|
2433
|
+
};
|
|
2434
|
+
}>>;
|
|
2435
|
+
/**
|
|
2436
|
+
* Allow unprivileged transfers for the asset again.
|
|
2437
|
+
*
|
|
2438
|
+
* Origin must be Signed and the sender should be the Admin of the asset `id`.
|
|
2439
|
+
*
|
|
2440
|
+
* - `id`: The identifier of the asset to be thawed.
|
|
2441
|
+
*
|
|
2442
|
+
* Emits `Thawed`.
|
|
2443
|
+
*
|
|
2444
|
+
* Weight: `O(1)`
|
|
2445
|
+
*
|
|
2446
|
+
* @param {bigint} id
|
|
2447
|
+
**/
|
|
2448
|
+
thawAsset: GenericTxCall<(id: bigint) => ChainSubmittableExtrinsic<{
|
|
2449
|
+
pallet: 'Assets';
|
|
2450
|
+
palletCall: {
|
|
2451
|
+
name: 'ThawAsset';
|
|
2452
|
+
params: {
|
|
2453
|
+
id: bigint;
|
|
2454
|
+
};
|
|
2455
|
+
};
|
|
2456
|
+
}>>;
|
|
2457
|
+
/**
|
|
2458
|
+
* Change the Owner of an asset.
|
|
2459
|
+
*
|
|
2460
|
+
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
2461
|
+
*
|
|
2462
|
+
* - `id`: The identifier of the asset.
|
|
2463
|
+
* - `owner`: The new Owner of this asset.
|
|
2464
|
+
*
|
|
2465
|
+
* Emits `OwnerChanged`.
|
|
2466
|
+
*
|
|
2467
|
+
* Weight: `O(1)`
|
|
2468
|
+
*
|
|
2469
|
+
* @param {bigint} id
|
|
2470
|
+
* @param {MultiAddressLike} owner
|
|
2471
|
+
**/
|
|
2472
|
+
transferOwnership: GenericTxCall<(id: bigint, owner: MultiAddressLike) => ChainSubmittableExtrinsic<{
|
|
2473
|
+
pallet: 'Assets';
|
|
2474
|
+
palletCall: {
|
|
2475
|
+
name: 'TransferOwnership';
|
|
2476
|
+
params: {
|
|
2477
|
+
id: bigint;
|
|
2478
|
+
owner: MultiAddressLike;
|
|
2479
|
+
};
|
|
2480
|
+
};
|
|
2481
|
+
}>>;
|
|
2482
|
+
/**
|
|
2483
|
+
* Change the Issuer, Admin and Freezer of an asset.
|
|
2484
|
+
*
|
|
2485
|
+
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
2486
|
+
*
|
|
2487
|
+
* - `id`: The identifier of the asset to be frozen.
|
|
2488
|
+
* - `issuer`: The new Issuer of this asset.
|
|
2489
|
+
* - `admin`: The new Admin of this asset.
|
|
2490
|
+
* - `freezer`: The new Freezer of this asset.
|
|
2491
|
+
*
|
|
2492
|
+
* Emits `TeamChanged`.
|
|
2493
|
+
*
|
|
2494
|
+
* Weight: `O(1)`
|
|
2495
|
+
*
|
|
2496
|
+
* @param {bigint} id
|
|
2497
|
+
* @param {MultiAddressLike} issuer
|
|
2498
|
+
* @param {MultiAddressLike} admin
|
|
2499
|
+
* @param {MultiAddressLike} freezer
|
|
2500
|
+
**/
|
|
2501
|
+
setTeam: GenericTxCall<(id: bigint, issuer: MultiAddressLike, admin: MultiAddressLike, freezer: MultiAddressLike) => ChainSubmittableExtrinsic<{
|
|
2502
|
+
pallet: 'Assets';
|
|
2503
|
+
palletCall: {
|
|
2504
|
+
name: 'SetTeam';
|
|
2505
|
+
params: {
|
|
2506
|
+
id: bigint;
|
|
2507
|
+
issuer: MultiAddressLike;
|
|
2508
|
+
admin: MultiAddressLike;
|
|
2509
|
+
freezer: MultiAddressLike;
|
|
2510
|
+
};
|
|
2511
|
+
};
|
|
2512
|
+
}>>;
|
|
2513
|
+
/**
|
|
2514
|
+
* Set the metadata for an asset.
|
|
2515
|
+
*
|
|
2516
|
+
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
2517
|
+
*
|
|
2518
|
+
* Funds of sender are reserved according to the formula:
|
|
2519
|
+
* `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into
|
|
2520
|
+
* account any already reserved funds.
|
|
2521
|
+
*
|
|
2522
|
+
* - `id`: The identifier of the asset to update.
|
|
2523
|
+
* - `name`: The user friendly name of this asset. Limited in length by `StringLimit`.
|
|
2524
|
+
* - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`.
|
|
2525
|
+
* - `decimals`: The number of decimals this asset uses to represent one unit.
|
|
2526
|
+
*
|
|
2527
|
+
* Emits `MetadataSet`.
|
|
2528
|
+
*
|
|
2529
|
+
* Weight: `O(1)`
|
|
2530
|
+
*
|
|
2531
|
+
* @param {bigint} id
|
|
2532
|
+
* @param {BytesLike} name
|
|
2533
|
+
* @param {BytesLike} symbol
|
|
2534
|
+
* @param {number} decimals
|
|
2535
|
+
**/
|
|
2536
|
+
setMetadata: GenericTxCall<(id: bigint, name: BytesLike, symbol: BytesLike, decimals: number) => ChainSubmittableExtrinsic<{
|
|
2537
|
+
pallet: 'Assets';
|
|
2538
|
+
palletCall: {
|
|
2539
|
+
name: 'SetMetadata';
|
|
2540
|
+
params: {
|
|
2541
|
+
id: bigint;
|
|
2542
|
+
name: BytesLike;
|
|
2543
|
+
symbol: BytesLike;
|
|
2544
|
+
decimals: number;
|
|
2545
|
+
};
|
|
2546
|
+
};
|
|
2547
|
+
}>>;
|
|
2548
|
+
/**
|
|
2549
|
+
* Clear the metadata for an asset.
|
|
2550
|
+
*
|
|
2551
|
+
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
2552
|
+
*
|
|
2553
|
+
* Any deposit is freed for the asset owner.
|
|
2554
|
+
*
|
|
2555
|
+
* - `id`: The identifier of the asset to clear.
|
|
2556
|
+
*
|
|
2557
|
+
* Emits `MetadataCleared`.
|
|
2558
|
+
*
|
|
2559
|
+
* Weight: `O(1)`
|
|
2560
|
+
*
|
|
2561
|
+
* @param {bigint} id
|
|
2562
|
+
**/
|
|
2563
|
+
clearMetadata: GenericTxCall<(id: bigint) => ChainSubmittableExtrinsic<{
|
|
2564
|
+
pallet: 'Assets';
|
|
2565
|
+
palletCall: {
|
|
2566
|
+
name: 'ClearMetadata';
|
|
2567
|
+
params: {
|
|
2568
|
+
id: bigint;
|
|
2569
|
+
};
|
|
2570
|
+
};
|
|
2571
|
+
}>>;
|
|
2572
|
+
/**
|
|
2573
|
+
* Force the metadata for an asset to some value.
|
|
2574
|
+
*
|
|
2575
|
+
* Origin must be ForceOrigin.
|
|
2576
|
+
*
|
|
2577
|
+
* Any deposit is left alone.
|
|
2578
|
+
*
|
|
2579
|
+
* - `id`: The identifier of the asset to update.
|
|
2580
|
+
* - `name`: The user friendly name of this asset. Limited in length by `StringLimit`.
|
|
2581
|
+
* - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`.
|
|
2582
|
+
* - `decimals`: The number of decimals this asset uses to represent one unit.
|
|
2583
|
+
*
|
|
2584
|
+
* Emits `MetadataSet`.
|
|
2585
|
+
*
|
|
2586
|
+
* Weight: `O(N + S)` where N and S are the length of the name and symbol respectively.
|
|
2587
|
+
*
|
|
2588
|
+
* @param {bigint} id
|
|
2589
|
+
* @param {BytesLike} name
|
|
2590
|
+
* @param {BytesLike} symbol
|
|
2591
|
+
* @param {number} decimals
|
|
2592
|
+
* @param {boolean} isFrozen
|
|
2593
|
+
**/
|
|
2594
|
+
forceSetMetadata: GenericTxCall<(id: bigint, name: BytesLike, symbol: BytesLike, decimals: number, isFrozen: boolean) => ChainSubmittableExtrinsic<{
|
|
2595
|
+
pallet: 'Assets';
|
|
2596
|
+
palletCall: {
|
|
2597
|
+
name: 'ForceSetMetadata';
|
|
2598
|
+
params: {
|
|
2599
|
+
id: bigint;
|
|
2600
|
+
name: BytesLike;
|
|
2601
|
+
symbol: BytesLike;
|
|
2602
|
+
decimals: number;
|
|
2603
|
+
isFrozen: boolean;
|
|
2604
|
+
};
|
|
2605
|
+
};
|
|
2606
|
+
}>>;
|
|
2607
|
+
/**
|
|
2608
|
+
* Clear the metadata for an asset.
|
|
2609
|
+
*
|
|
2610
|
+
* Origin must be ForceOrigin.
|
|
2611
|
+
*
|
|
2612
|
+
* Any deposit is returned.
|
|
2613
|
+
*
|
|
2614
|
+
* - `id`: The identifier of the asset to clear.
|
|
2615
|
+
*
|
|
2616
|
+
* Emits `MetadataCleared`.
|
|
2617
|
+
*
|
|
2618
|
+
* Weight: `O(1)`
|
|
2619
|
+
*
|
|
2620
|
+
* @param {bigint} id
|
|
2621
|
+
**/
|
|
2622
|
+
forceClearMetadata: GenericTxCall<(id: bigint) => ChainSubmittableExtrinsic<{
|
|
2623
|
+
pallet: 'Assets';
|
|
2624
|
+
palletCall: {
|
|
2625
|
+
name: 'ForceClearMetadata';
|
|
2626
|
+
params: {
|
|
2627
|
+
id: bigint;
|
|
2628
|
+
};
|
|
2629
|
+
};
|
|
2630
|
+
}>>;
|
|
2631
|
+
/**
|
|
2632
|
+
* Alter the attributes of a given asset.
|
|
2633
|
+
*
|
|
2634
|
+
* Origin must be `ForceOrigin`.
|
|
2635
|
+
*
|
|
2636
|
+
* - `id`: The identifier of the asset.
|
|
2637
|
+
* - `owner`: The new Owner of this asset.
|
|
2638
|
+
* - `issuer`: The new Issuer of this asset.
|
|
2639
|
+
* - `admin`: The new Admin of this asset.
|
|
2640
|
+
* - `freezer`: The new Freezer of this asset.
|
|
2641
|
+
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
2642
|
+
* have. If an account's balance is reduced below this, then it collapses to zero.
|
|
2643
|
+
* - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient
|
|
2644
|
+
* value to account for the state bloat associated with its balance storage. If set to
|
|
2645
|
+
* `true`, then non-zero balances may be stored without a `consumer` reference (and thus
|
|
2646
|
+
* an ED in the Balances pallet or whatever else is used to control user-account state
|
|
2647
|
+
* growth).
|
|
2648
|
+
* - `is_frozen`: Whether this asset class is frozen except for permissioned/admin
|
|
2649
|
+
* instructions.
|
|
2650
|
+
*
|
|
2651
|
+
* Emits `AssetStatusChanged` with the identity of the asset.
|
|
2652
|
+
*
|
|
2653
|
+
* Weight: `O(1)`
|
|
2654
|
+
*
|
|
2655
|
+
* @param {bigint} id
|
|
2656
|
+
* @param {MultiAddressLike} owner
|
|
2657
|
+
* @param {MultiAddressLike} issuer
|
|
2658
|
+
* @param {MultiAddressLike} admin
|
|
2659
|
+
* @param {MultiAddressLike} freezer
|
|
2660
|
+
* @param {bigint} minBalance
|
|
2661
|
+
* @param {boolean} isSufficient
|
|
2662
|
+
* @param {boolean} isFrozen
|
|
2663
|
+
**/
|
|
2664
|
+
forceAssetStatus: GenericTxCall<(id: bigint, owner: MultiAddressLike, issuer: MultiAddressLike, admin: MultiAddressLike, freezer: MultiAddressLike, minBalance: bigint, isSufficient: boolean, isFrozen: boolean) => ChainSubmittableExtrinsic<{
|
|
2665
|
+
pallet: 'Assets';
|
|
2666
|
+
palletCall: {
|
|
2667
|
+
name: 'ForceAssetStatus';
|
|
2668
|
+
params: {
|
|
2669
|
+
id: bigint;
|
|
2670
|
+
owner: MultiAddressLike;
|
|
2671
|
+
issuer: MultiAddressLike;
|
|
2672
|
+
admin: MultiAddressLike;
|
|
2673
|
+
freezer: MultiAddressLike;
|
|
2674
|
+
minBalance: bigint;
|
|
2675
|
+
isSufficient: boolean;
|
|
2676
|
+
isFrozen: boolean;
|
|
2677
|
+
};
|
|
2678
|
+
};
|
|
2679
|
+
}>>;
|
|
2680
|
+
/**
|
|
2681
|
+
* Approve an amount of asset for transfer by a delegated third-party account.
|
|
2682
|
+
*
|
|
2683
|
+
* Origin must be Signed.
|
|
2684
|
+
*
|
|
2685
|
+
* Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account
|
|
2686
|
+
* for the purpose of holding the approval. If some non-zero amount of assets is already
|
|
2687
|
+
* approved from signing account to `delegate`, then it is topped up or unreserved to
|
|
2688
|
+
* meet the right value.
|
|
2689
|
+
*
|
|
2690
|
+
* NOTE: The signing account does not need to own `amount` of assets at the point of
|
|
2691
|
+
* making this call.
|
|
2692
|
+
*
|
|
2693
|
+
* - `id`: The identifier of the asset.
|
|
2694
|
+
* - `delegate`: The account to delegate permission to transfer asset.
|
|
2695
|
+
* - `amount`: The amount of asset that may be transferred by `delegate`. If there is
|
|
2696
|
+
* already an approval in place, then this acts additively.
|
|
2697
|
+
*
|
|
2698
|
+
* Emits `ApprovedTransfer` on success.
|
|
2699
|
+
*
|
|
2700
|
+
* Weight: `O(1)`
|
|
2701
|
+
*
|
|
2702
|
+
* @param {bigint} id
|
|
2703
|
+
* @param {MultiAddressLike} delegate
|
|
2704
|
+
* @param {bigint} amount
|
|
2705
|
+
**/
|
|
2706
|
+
approveTransfer: GenericTxCall<(id: bigint, delegate: MultiAddressLike, amount: bigint) => ChainSubmittableExtrinsic<{
|
|
2707
|
+
pallet: 'Assets';
|
|
2708
|
+
palletCall: {
|
|
2709
|
+
name: 'ApproveTransfer';
|
|
2710
|
+
params: {
|
|
2711
|
+
id: bigint;
|
|
2712
|
+
delegate: MultiAddressLike;
|
|
2713
|
+
amount: bigint;
|
|
2714
|
+
};
|
|
2715
|
+
};
|
|
2716
|
+
}>>;
|
|
2717
|
+
/**
|
|
2718
|
+
* Cancel all of some asset approved for delegated transfer by a third-party account.
|
|
2719
|
+
*
|
|
2720
|
+
* Origin must be Signed and there must be an approval in place between signer and
|
|
2721
|
+
* `delegate`.
|
|
2722
|
+
*
|
|
2723
|
+
* Unreserves any deposit previously reserved by `approve_transfer` for the approval.
|
|
2724
|
+
*
|
|
2725
|
+
* - `id`: The identifier of the asset.
|
|
2726
|
+
* - `delegate`: The account delegated permission to transfer asset.
|
|
2727
|
+
*
|
|
2728
|
+
* Emits `ApprovalCancelled` on success.
|
|
2729
|
+
*
|
|
2730
|
+
* Weight: `O(1)`
|
|
2731
|
+
*
|
|
2732
|
+
* @param {bigint} id
|
|
2733
|
+
* @param {MultiAddressLike} delegate
|
|
2734
|
+
**/
|
|
2735
|
+
cancelApproval: GenericTxCall<(id: bigint, delegate: MultiAddressLike) => ChainSubmittableExtrinsic<{
|
|
2736
|
+
pallet: 'Assets';
|
|
2737
|
+
palletCall: {
|
|
2738
|
+
name: 'CancelApproval';
|
|
2739
|
+
params: {
|
|
2740
|
+
id: bigint;
|
|
2741
|
+
delegate: MultiAddressLike;
|
|
2742
|
+
};
|
|
2743
|
+
};
|
|
2744
|
+
}>>;
|
|
2745
|
+
/**
|
|
2746
|
+
* Cancel all of some asset approved for delegated transfer by a third-party account.
|
|
2747
|
+
*
|
|
2748
|
+
* Origin must be either ForceOrigin or Signed origin with the signer being the Admin
|
|
2749
|
+
* account of the asset `id`.
|
|
2750
|
+
*
|
|
2751
|
+
* Unreserves any deposit previously reserved by `approve_transfer` for the approval.
|
|
2752
|
+
*
|
|
2753
|
+
* - `id`: The identifier of the asset.
|
|
2754
|
+
* - `delegate`: The account delegated permission to transfer asset.
|
|
2755
|
+
*
|
|
2756
|
+
* Emits `ApprovalCancelled` on success.
|
|
2757
|
+
*
|
|
2758
|
+
* Weight: `O(1)`
|
|
2759
|
+
*
|
|
2760
|
+
* @param {bigint} id
|
|
2761
|
+
* @param {MultiAddressLike} owner
|
|
2762
|
+
* @param {MultiAddressLike} delegate
|
|
2763
|
+
**/
|
|
2764
|
+
forceCancelApproval: GenericTxCall<(id: bigint, owner: MultiAddressLike, delegate: MultiAddressLike) => ChainSubmittableExtrinsic<{
|
|
2765
|
+
pallet: 'Assets';
|
|
2766
|
+
palletCall: {
|
|
2767
|
+
name: 'ForceCancelApproval';
|
|
2768
|
+
params: {
|
|
2769
|
+
id: bigint;
|
|
2770
|
+
owner: MultiAddressLike;
|
|
2771
|
+
delegate: MultiAddressLike;
|
|
2772
|
+
};
|
|
2773
|
+
};
|
|
2774
|
+
}>>;
|
|
2775
|
+
/**
|
|
2776
|
+
* Transfer some asset balance from a previously delegated account to some third-party
|
|
2777
|
+
* account.
|
|
2778
|
+
*
|
|
2779
|
+
* Origin must be Signed and there must be an approval in place by the `owner` to the
|
|
2780
|
+
* signer.
|
|
2781
|
+
*
|
|
2782
|
+
* If the entire amount approved for transfer is transferred, then any deposit previously
|
|
2783
|
+
* reserved by `approve_transfer` is unreserved.
|
|
2784
|
+
*
|
|
2785
|
+
* - `id`: The identifier of the asset.
|
|
2786
|
+
* - `owner`: The account which previously approved for a transfer of at least `amount` and
|
|
2787
|
+
* from which the asset balance will be withdrawn.
|
|
2788
|
+
* - `destination`: The account to which the asset balance of `amount` will be transferred.
|
|
2789
|
+
* - `amount`: The amount of assets to transfer.
|
|
2790
|
+
*
|
|
2791
|
+
* Emits `TransferredApproved` on success.
|
|
2792
|
+
*
|
|
2793
|
+
* Weight: `O(1)`
|
|
2794
|
+
*
|
|
2795
|
+
* @param {bigint} id
|
|
2796
|
+
* @param {MultiAddressLike} owner
|
|
2797
|
+
* @param {MultiAddressLike} destination
|
|
2798
|
+
* @param {bigint} amount
|
|
2799
|
+
**/
|
|
2800
|
+
transferApproved: GenericTxCall<(id: bigint, owner: MultiAddressLike, destination: MultiAddressLike, amount: bigint) => ChainSubmittableExtrinsic<{
|
|
2801
|
+
pallet: 'Assets';
|
|
2802
|
+
palletCall: {
|
|
2803
|
+
name: 'TransferApproved';
|
|
2804
|
+
params: {
|
|
2805
|
+
id: bigint;
|
|
2806
|
+
owner: MultiAddressLike;
|
|
2807
|
+
destination: MultiAddressLike;
|
|
2808
|
+
amount: bigint;
|
|
2809
|
+
};
|
|
2810
|
+
};
|
|
2811
|
+
}>>;
|
|
2812
|
+
/**
|
|
2813
|
+
* Create an asset account for non-provider assets.
|
|
2814
|
+
*
|
|
2815
|
+
* A deposit will be taken from the signer account.
|
|
2816
|
+
*
|
|
2817
|
+
* - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
|
|
2818
|
+
* to be taken.
|
|
2819
|
+
* - `id`: The identifier of the asset for the account to be created.
|
|
2820
|
+
*
|
|
2821
|
+
* Emits `Touched` event when successful.
|
|
2822
|
+
*
|
|
2823
|
+
* @param {bigint} id
|
|
2824
|
+
**/
|
|
2825
|
+
touch: GenericTxCall<(id: bigint) => ChainSubmittableExtrinsic<{
|
|
2826
|
+
pallet: 'Assets';
|
|
2827
|
+
palletCall: {
|
|
2828
|
+
name: 'Touch';
|
|
2829
|
+
params: {
|
|
2830
|
+
id: bigint;
|
|
2831
|
+
};
|
|
2832
|
+
};
|
|
2833
|
+
}>>;
|
|
2834
|
+
/**
|
|
2835
|
+
* Return the deposit (if any) of an asset account or a consumer reference (if any) of an
|
|
2836
|
+
* account.
|
|
2837
|
+
*
|
|
2838
|
+
* The origin must be Signed.
|
|
2839
|
+
*
|
|
2840
|
+
* - `id`: The identifier of the asset for which the caller would like the deposit
|
|
2841
|
+
* refunded.
|
|
2842
|
+
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
|
2843
|
+
*
|
|
2844
|
+
* Emits `Refunded` event when successful.
|
|
2845
|
+
*
|
|
2846
|
+
* @param {bigint} id
|
|
2847
|
+
* @param {boolean} allowBurn
|
|
2848
|
+
**/
|
|
2849
|
+
refund: GenericTxCall<(id: bigint, allowBurn: boolean) => ChainSubmittableExtrinsic<{
|
|
2850
|
+
pallet: 'Assets';
|
|
2851
|
+
palletCall: {
|
|
2852
|
+
name: 'Refund';
|
|
2853
|
+
params: {
|
|
2854
|
+
id: bigint;
|
|
2855
|
+
allowBurn: boolean;
|
|
2856
|
+
};
|
|
2857
|
+
};
|
|
2858
|
+
}>>;
|
|
2859
|
+
/**
|
|
2860
|
+
* Sets the minimum balance of an asset.
|
|
2861
|
+
*
|
|
2862
|
+
* Only works if there aren't any accounts that are holding the asset or if
|
|
2863
|
+
* the new value of `min_balance` is less than the old one.
|
|
2864
|
+
*
|
|
2865
|
+
* Origin must be Signed and the sender has to be the Owner of the
|
|
2866
|
+
* asset `id`.
|
|
2867
|
+
*
|
|
2868
|
+
* - `id`: The identifier of the asset.
|
|
2869
|
+
* - `min_balance`: The new value of `min_balance`.
|
|
2870
|
+
*
|
|
2871
|
+
* Emits `AssetMinBalanceChanged` event when successful.
|
|
2872
|
+
*
|
|
2873
|
+
* @param {bigint} id
|
|
2874
|
+
* @param {bigint} minBalance
|
|
2875
|
+
**/
|
|
2876
|
+
setMinBalance: GenericTxCall<(id: bigint, minBalance: bigint) => ChainSubmittableExtrinsic<{
|
|
2877
|
+
pallet: 'Assets';
|
|
2878
|
+
palletCall: {
|
|
2879
|
+
name: 'SetMinBalance';
|
|
2880
|
+
params: {
|
|
2881
|
+
id: bigint;
|
|
2882
|
+
minBalance: bigint;
|
|
2883
|
+
};
|
|
2884
|
+
};
|
|
2885
|
+
}>>;
|
|
2886
|
+
/**
|
|
2887
|
+
* Create an asset account for `who`.
|
|
2888
|
+
*
|
|
2889
|
+
* A deposit will be taken from the signer account.
|
|
2890
|
+
*
|
|
2891
|
+
* - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account
|
|
2892
|
+
* must have sufficient funds for a deposit to be taken.
|
|
2893
|
+
* - `id`: The identifier of the asset for the account to be created.
|
|
2894
|
+
* - `who`: The account to be created.
|
|
2895
|
+
*
|
|
2896
|
+
* Emits `Touched` event when successful.
|
|
2897
|
+
*
|
|
2898
|
+
* @param {bigint} id
|
|
2899
|
+
* @param {MultiAddressLike} who
|
|
2900
|
+
**/
|
|
2901
|
+
touchOther: GenericTxCall<(id: bigint, who: MultiAddressLike) => ChainSubmittableExtrinsic<{
|
|
2902
|
+
pallet: 'Assets';
|
|
2903
|
+
palletCall: {
|
|
2904
|
+
name: 'TouchOther';
|
|
2905
|
+
params: {
|
|
2906
|
+
id: bigint;
|
|
2907
|
+
who: MultiAddressLike;
|
|
2908
|
+
};
|
|
2909
|
+
};
|
|
2910
|
+
}>>;
|
|
2911
|
+
/**
|
|
2912
|
+
* Return the deposit (if any) of a target asset account. Useful if you are the depositor.
|
|
2913
|
+
*
|
|
2914
|
+
* The origin must be Signed and either the account owner, depositor, or asset `Admin`. In
|
|
2915
|
+
* order to burn a non-zero balance of the asset, the caller must be the account and should
|
|
2916
|
+
* use `refund`.
|
|
2917
|
+
*
|
|
2918
|
+
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
2919
|
+
* - `who`: The account to refund.
|
|
2920
|
+
*
|
|
2921
|
+
* Emits `Refunded` event when successful.
|
|
2922
|
+
*
|
|
2923
|
+
* @param {bigint} id
|
|
2924
|
+
* @param {MultiAddressLike} who
|
|
2925
|
+
**/
|
|
2926
|
+
refundOther: GenericTxCall<(id: bigint, who: MultiAddressLike) => ChainSubmittableExtrinsic<{
|
|
2927
|
+
pallet: 'Assets';
|
|
2928
|
+
palletCall: {
|
|
2929
|
+
name: 'RefundOther';
|
|
2930
|
+
params: {
|
|
2931
|
+
id: bigint;
|
|
2932
|
+
who: MultiAddressLike;
|
|
2933
|
+
};
|
|
2934
|
+
};
|
|
2935
|
+
}>>;
|
|
2936
|
+
/**
|
|
2937
|
+
* Disallow further unprivileged transfers of an asset `id` to and from an account `who`.
|
|
2938
|
+
*
|
|
2939
|
+
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
|
|
2940
|
+
*
|
|
2941
|
+
* - `id`: The identifier of the account's asset.
|
|
2942
|
+
* - `who`: The account to be unblocked.
|
|
2943
|
+
*
|
|
2944
|
+
* Emits `Blocked`.
|
|
2945
|
+
*
|
|
2946
|
+
* Weight: `O(1)`
|
|
2947
|
+
*
|
|
2948
|
+
* @param {bigint} id
|
|
2949
|
+
* @param {MultiAddressLike} who
|
|
2950
|
+
**/
|
|
2951
|
+
block: GenericTxCall<(id: bigint, who: MultiAddressLike) => ChainSubmittableExtrinsic<{
|
|
2952
|
+
pallet: 'Assets';
|
|
2953
|
+
palletCall: {
|
|
2954
|
+
name: 'Block';
|
|
2955
|
+
params: {
|
|
2956
|
+
id: bigint;
|
|
2957
|
+
who: MultiAddressLike;
|
|
2958
|
+
};
|
|
2959
|
+
};
|
|
2960
|
+
}>>;
|
|
2961
|
+
/**
|
|
2962
|
+
* Generic pallet tx call
|
|
2963
|
+
**/
|
|
2964
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
2965
|
+
};
|
|
2966
|
+
/**
|
|
2967
|
+
* Pallet `CollatorSelection`'s transaction calls
|
|
2968
|
+
**/
|
|
2969
|
+
collatorSelection: {
|
|
2970
|
+
/**
|
|
2971
|
+
* Set the list of invulnerable (fixed) collators.
|
|
2972
|
+
*
|
|
2973
|
+
* @param {Array<AccountId32Like>} new_
|
|
2974
|
+
**/
|
|
2975
|
+
setInvulnerables: GenericTxCall<(new_: Array<AccountId32Like>) => ChainSubmittableExtrinsic<{
|
|
2976
|
+
pallet: 'CollatorSelection';
|
|
2977
|
+
palletCall: {
|
|
2978
|
+
name: 'SetInvulnerables';
|
|
2979
|
+
params: {
|
|
2980
|
+
new: Array<AccountId32Like>;
|
|
2981
|
+
};
|
|
2982
|
+
};
|
|
2983
|
+
}>>;
|
|
2984
|
+
/**
|
|
2985
|
+
* Set the ideal number of collators (not including the invulnerables).
|
|
2986
|
+
* If lowering this number, then the number of running collators could be higher than this figure.
|
|
2987
|
+
* Aside from that edge case, there should be no other way to have more collators than the desired number.
|
|
2988
|
+
*
|
|
2989
|
+
* @param {number} max
|
|
2990
|
+
**/
|
|
2991
|
+
setDesiredCandidates: GenericTxCall<(max: number) => ChainSubmittableExtrinsic<{
|
|
2992
|
+
pallet: 'CollatorSelection';
|
|
2993
|
+
palletCall: {
|
|
2994
|
+
name: 'SetDesiredCandidates';
|
|
2995
|
+
params: {
|
|
2996
|
+
max: number;
|
|
2997
|
+
};
|
|
2998
|
+
};
|
|
2999
|
+
}>>;
|
|
3000
|
+
/**
|
|
3001
|
+
* Set the candidacy bond amount.
|
|
3002
|
+
*
|
|
3003
|
+
* @param {bigint} bond
|
|
3004
|
+
**/
|
|
3005
|
+
setCandidacyBond: GenericTxCall<(bond: bigint) => ChainSubmittableExtrinsic<{
|
|
3006
|
+
pallet: 'CollatorSelection';
|
|
3007
|
+
palletCall: {
|
|
3008
|
+
name: 'SetCandidacyBond';
|
|
3009
|
+
params: {
|
|
3010
|
+
bond: bigint;
|
|
3011
|
+
};
|
|
3012
|
+
};
|
|
3013
|
+
}>>;
|
|
3014
|
+
/**
|
|
3015
|
+
* Register this account as a collator candidate. The account must (a) already have
|
|
3016
|
+
* registered session keys and (b) be able to reserve the `CandidacyBond`.
|
|
3017
|
+
*
|
|
3018
|
+
* This call is not available to `Invulnerable` collators.
|
|
3019
|
+
*
|
|
3020
|
+
**/
|
|
3021
|
+
registerAsCandidate: GenericTxCall<() => ChainSubmittableExtrinsic<{
|
|
3022
|
+
pallet: 'CollatorSelection';
|
|
3023
|
+
palletCall: {
|
|
3024
|
+
name: 'RegisterAsCandidate';
|
|
3025
|
+
};
|
|
3026
|
+
}>>;
|
|
3027
|
+
/**
|
|
3028
|
+
* Deregister `origin` as a collator candidate. Note that the collator can only leave on
|
|
3029
|
+
* session change. The `CandidacyBond` will be unreserved immediately.
|
|
3030
|
+
*
|
|
3031
|
+
* This call will fail if the total number of candidates would drop below `MinCandidates`.
|
|
3032
|
+
*
|
|
3033
|
+
* This call is not available to `Invulnerable` collators.
|
|
3034
|
+
*
|
|
3035
|
+
**/
|
|
3036
|
+
leaveIntent: GenericTxCall<() => ChainSubmittableExtrinsic<{
|
|
3037
|
+
pallet: 'CollatorSelection';
|
|
3038
|
+
palletCall: {
|
|
3039
|
+
name: 'LeaveIntent';
|
|
3040
|
+
};
|
|
3041
|
+
}>>;
|
|
3042
|
+
/**
|
|
3043
|
+
* Generic pallet tx call
|
|
3044
|
+
**/
|
|
3045
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
3046
|
+
};
|
|
3047
|
+
/**
|
|
3048
|
+
* Pallet `Session`'s transaction calls
|
|
3049
|
+
**/
|
|
3050
|
+
session: {
|
|
3051
|
+
/**
|
|
3052
|
+
* Sets the session key(s) of the function caller to `keys`.
|
|
3053
|
+
* Allows an account to set its session key prior to becoming a validator.
|
|
3054
|
+
* This doesn't take effect until the next session.
|
|
3055
|
+
*
|
|
3056
|
+
* The dispatch origin of this function must be signed.
|
|
3057
|
+
*
|
|
3058
|
+
* ## Complexity
|
|
3059
|
+
* - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
|
|
3060
|
+
* fixed.
|
|
3061
|
+
*
|
|
3062
|
+
* @param {AstarRuntimeSessionKeys} keys
|
|
3063
|
+
* @param {BytesLike} proof
|
|
3064
|
+
**/
|
|
3065
|
+
setKeys: GenericTxCall<(keys: AstarRuntimeSessionKeys, proof: BytesLike) => ChainSubmittableExtrinsic<{
|
|
3066
|
+
pallet: 'Session';
|
|
3067
|
+
palletCall: {
|
|
3068
|
+
name: 'SetKeys';
|
|
3069
|
+
params: {
|
|
3070
|
+
keys: AstarRuntimeSessionKeys;
|
|
3071
|
+
proof: BytesLike;
|
|
3072
|
+
};
|
|
3073
|
+
};
|
|
3074
|
+
}>>;
|
|
3075
|
+
/**
|
|
3076
|
+
* Removes any session key(s) of the function caller.
|
|
3077
|
+
*
|
|
3078
|
+
* This doesn't take effect until the next session.
|
|
3079
|
+
*
|
|
3080
|
+
* The dispatch origin of this function must be Signed and the account must be either be
|
|
3081
|
+
* convertible to a validator ID using the chain's typical addressing system (this usually
|
|
3082
|
+
* means being a controller account) or directly convertible into a validator ID (which
|
|
3083
|
+
* usually means being a stash account).
|
|
3084
|
+
*
|
|
3085
|
+
* ## Complexity
|
|
3086
|
+
* - `O(1)` in number of key types. Actual cost depends on the number of length of
|
|
3087
|
+
* `T::Keys::key_ids()` which is fixed.
|
|
3088
|
+
*
|
|
3089
|
+
**/
|
|
3090
|
+
purgeKeys: GenericTxCall<() => ChainSubmittableExtrinsic<{
|
|
3091
|
+
pallet: 'Session';
|
|
3092
|
+
palletCall: {
|
|
3093
|
+
name: 'PurgeKeys';
|
|
3094
|
+
};
|
|
3095
|
+
}>>;
|
|
3096
|
+
/**
|
|
3097
|
+
* Generic pallet tx call
|
|
3098
|
+
**/
|
|
3099
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
3100
|
+
};
|
|
3101
|
+
/**
|
|
3102
|
+
* Pallet `XcmpQueue`'s transaction calls
|
|
3103
|
+
**/
|
|
3104
|
+
xcmpQueue: {
|
|
3105
|
+
/**
|
|
3106
|
+
* Services a single overweight XCM.
|
|
3107
|
+
*
|
|
3108
|
+
* - `origin`: Must pass `ExecuteOverweightOrigin`.
|
|
3109
|
+
* - `index`: The index of the overweight XCM to service
|
|
3110
|
+
* - `weight_limit`: The amount of weight that XCM execution may take.
|
|
3111
|
+
*
|
|
3112
|
+
* Errors:
|
|
3113
|
+
* - `BadOverweightIndex`: XCM under `index` is not found in the `Overweight` storage map.
|
|
3114
|
+
* - `BadXcm`: XCM under `index` cannot be properly decoded into a valid XCM format.
|
|
3115
|
+
* - `WeightOverLimit`: XCM execution may use greater `weight_limit`.
|
|
3116
|
+
*
|
|
3117
|
+
* Events:
|
|
3118
|
+
* - `OverweightServiced`: On success.
|
|
3119
|
+
*
|
|
3120
|
+
* @param {bigint} index
|
|
3121
|
+
* @param {SpWeightsWeightV2Weight} weightLimit
|
|
3122
|
+
**/
|
|
3123
|
+
serviceOverweight: GenericTxCall<(index: bigint, weightLimit: SpWeightsWeightV2Weight) => ChainSubmittableExtrinsic<{
|
|
3124
|
+
pallet: 'XcmpQueue';
|
|
3125
|
+
palletCall: {
|
|
3126
|
+
name: 'ServiceOverweight';
|
|
3127
|
+
params: {
|
|
3128
|
+
index: bigint;
|
|
3129
|
+
weightLimit: SpWeightsWeightV2Weight;
|
|
3130
|
+
};
|
|
3131
|
+
};
|
|
3132
|
+
}>>;
|
|
3133
|
+
/**
|
|
3134
|
+
* Suspends all XCM executions for the XCMP queue, regardless of the sender's origin.
|
|
3135
|
+
*
|
|
3136
|
+
* - `origin`: Must pass `ControllerOrigin`.
|
|
3137
|
+
*
|
|
3138
|
+
**/
|
|
3139
|
+
suspendXcmExecution: GenericTxCall<() => ChainSubmittableExtrinsic<{
|
|
3140
|
+
pallet: 'XcmpQueue';
|
|
3141
|
+
palletCall: {
|
|
3142
|
+
name: 'SuspendXcmExecution';
|
|
3143
|
+
};
|
|
3144
|
+
}>>;
|
|
3145
|
+
/**
|
|
3146
|
+
* Resumes all XCM executions for the XCMP queue.
|
|
3147
|
+
*
|
|
3148
|
+
* Note that this function doesn't change the status of the in/out bound channels.
|
|
3149
|
+
*
|
|
3150
|
+
* - `origin`: Must pass `ControllerOrigin`.
|
|
3151
|
+
*
|
|
3152
|
+
**/
|
|
3153
|
+
resumeXcmExecution: GenericTxCall<() => ChainSubmittableExtrinsic<{
|
|
3154
|
+
pallet: 'XcmpQueue';
|
|
3155
|
+
palletCall: {
|
|
3156
|
+
name: 'ResumeXcmExecution';
|
|
3157
|
+
};
|
|
3158
|
+
}>>;
|
|
3159
|
+
/**
|
|
3160
|
+
* Overwrites the number of pages of messages which must be in the queue for the other side to be told to
|
|
3161
|
+
* suspend their sending.
|
|
3162
|
+
*
|
|
3163
|
+
* - `origin`: Must pass `Root`.
|
|
3164
|
+
* - `new`: Desired value for `QueueConfigData.suspend_value`
|
|
3165
|
+
*
|
|
3166
|
+
* @param {number} new_
|
|
3167
|
+
**/
|
|
3168
|
+
updateSuspendThreshold: GenericTxCall<(new_: number) => ChainSubmittableExtrinsic<{
|
|
3169
|
+
pallet: 'XcmpQueue';
|
|
3170
|
+
palletCall: {
|
|
3171
|
+
name: 'UpdateSuspendThreshold';
|
|
3172
|
+
params: {
|
|
3173
|
+
new: number;
|
|
3174
|
+
};
|
|
3175
|
+
};
|
|
3176
|
+
}>>;
|
|
3177
|
+
/**
|
|
3178
|
+
* Overwrites the number of pages of messages which must be in the queue after which we drop any further
|
|
3179
|
+
* messages from the channel.
|
|
3180
|
+
*
|
|
3181
|
+
* - `origin`: Must pass `Root`.
|
|
3182
|
+
* - `new`: Desired value for `QueueConfigData.drop_threshold`
|
|
3183
|
+
*
|
|
3184
|
+
* @param {number} new_
|
|
3185
|
+
**/
|
|
3186
|
+
updateDropThreshold: GenericTxCall<(new_: number) => ChainSubmittableExtrinsic<{
|
|
3187
|
+
pallet: 'XcmpQueue';
|
|
3188
|
+
palletCall: {
|
|
3189
|
+
name: 'UpdateDropThreshold';
|
|
3190
|
+
params: {
|
|
3191
|
+
new: number;
|
|
3192
|
+
};
|
|
3193
|
+
};
|
|
3194
|
+
}>>;
|
|
3195
|
+
/**
|
|
3196
|
+
* Overwrites the number of pages of messages which the queue must be reduced to before it signals that
|
|
3197
|
+
* message sending may recommence after it has been suspended.
|
|
3198
|
+
*
|
|
3199
|
+
* - `origin`: Must pass `Root`.
|
|
3200
|
+
* - `new`: Desired value for `QueueConfigData.resume_threshold`
|
|
3201
|
+
*
|
|
3202
|
+
* @param {number} new_
|
|
3203
|
+
**/
|
|
3204
|
+
updateResumeThreshold: GenericTxCall<(new_: number) => ChainSubmittableExtrinsic<{
|
|
3205
|
+
pallet: 'XcmpQueue';
|
|
3206
|
+
palletCall: {
|
|
3207
|
+
name: 'UpdateResumeThreshold';
|
|
3208
|
+
params: {
|
|
3209
|
+
new: number;
|
|
3210
|
+
};
|
|
3211
|
+
};
|
|
3212
|
+
}>>;
|
|
3213
|
+
/**
|
|
3214
|
+
* Overwrites the amount of remaining weight under which we stop processing messages.
|
|
3215
|
+
*
|
|
3216
|
+
* - `origin`: Must pass `Root`.
|
|
3217
|
+
* - `new`: Desired value for `QueueConfigData.threshold_weight`
|
|
3218
|
+
*
|
|
3219
|
+
* @param {SpWeightsWeightV2Weight} new_
|
|
3220
|
+
**/
|
|
3221
|
+
updateThresholdWeight: GenericTxCall<(new_: SpWeightsWeightV2Weight) => ChainSubmittableExtrinsic<{
|
|
3222
|
+
pallet: 'XcmpQueue';
|
|
3223
|
+
palletCall: {
|
|
3224
|
+
name: 'UpdateThresholdWeight';
|
|
3225
|
+
params: {
|
|
3226
|
+
new: SpWeightsWeightV2Weight;
|
|
3227
|
+
};
|
|
3228
|
+
};
|
|
3229
|
+
}>>;
|
|
3230
|
+
/**
|
|
3231
|
+
* Overwrites the speed to which the available weight approaches the maximum weight.
|
|
3232
|
+
* A lower number results in a faster progression. A value of 1 makes the entire weight available initially.
|
|
3233
|
+
*
|
|
3234
|
+
* - `origin`: Must pass `Root`.
|
|
3235
|
+
* - `new`: Desired value for `QueueConfigData.weight_restrict_decay`.
|
|
3236
|
+
*
|
|
3237
|
+
* @param {SpWeightsWeightV2Weight} new_
|
|
3238
|
+
**/
|
|
3239
|
+
updateWeightRestrictDecay: GenericTxCall<(new_: SpWeightsWeightV2Weight) => ChainSubmittableExtrinsic<{
|
|
3240
|
+
pallet: 'XcmpQueue';
|
|
3241
|
+
palletCall: {
|
|
3242
|
+
name: 'UpdateWeightRestrictDecay';
|
|
3243
|
+
params: {
|
|
3244
|
+
new: SpWeightsWeightV2Weight;
|
|
3245
|
+
};
|
|
3246
|
+
};
|
|
3247
|
+
}>>;
|
|
3248
|
+
/**
|
|
3249
|
+
* Overwrite the maximum amount of weight any individual message may consume.
|
|
3250
|
+
* Messages above this weight go into the overweight queue and may only be serviced explicitly.
|
|
3251
|
+
*
|
|
3252
|
+
* - `origin`: Must pass `Root`.
|
|
3253
|
+
* - `new`: Desired value for `QueueConfigData.xcmp_max_individual_weight`.
|
|
3254
|
+
*
|
|
3255
|
+
* @param {SpWeightsWeightV2Weight} new_
|
|
3256
|
+
**/
|
|
3257
|
+
updateXcmpMaxIndividualWeight: GenericTxCall<(new_: SpWeightsWeightV2Weight) => ChainSubmittableExtrinsic<{
|
|
3258
|
+
pallet: 'XcmpQueue';
|
|
3259
|
+
palletCall: {
|
|
3260
|
+
name: 'UpdateXcmpMaxIndividualWeight';
|
|
3261
|
+
params: {
|
|
3262
|
+
new: SpWeightsWeightV2Weight;
|
|
3263
|
+
};
|
|
3264
|
+
};
|
|
3265
|
+
}>>;
|
|
3266
|
+
/**
|
|
3267
|
+
* Generic pallet tx call
|
|
3268
|
+
**/
|
|
3269
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
3270
|
+
};
|
|
3271
|
+
/**
|
|
3272
|
+
* Pallet `PolkadotXcm`'s transaction calls
|
|
3273
|
+
**/
|
|
3274
|
+
polkadotXcm: {
|
|
3275
|
+
/**
|
|
3276
|
+
*
|
|
3277
|
+
* @param {XcmVersionedMultiLocation} dest
|
|
3278
|
+
* @param {XcmVersionedXcm} message
|
|
3279
|
+
**/
|
|
3280
|
+
send: GenericTxCall<(dest: XcmVersionedMultiLocation, message: XcmVersionedXcm) => ChainSubmittableExtrinsic<{
|
|
3281
|
+
pallet: 'PolkadotXcm';
|
|
3282
|
+
palletCall: {
|
|
3283
|
+
name: 'Send';
|
|
3284
|
+
params: {
|
|
3285
|
+
dest: XcmVersionedMultiLocation;
|
|
3286
|
+
message: XcmVersionedXcm;
|
|
3287
|
+
};
|
|
3288
|
+
};
|
|
3289
|
+
}>>;
|
|
3290
|
+
/**
|
|
3291
|
+
* Teleport some assets from the local chain to some destination chain.
|
|
3292
|
+
*
|
|
3293
|
+
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
3294
|
+
* index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,
|
|
3295
|
+
* with all fees taken as needed from the asset.
|
|
3296
|
+
*
|
|
3297
|
+
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
3298
|
+
* - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send
|
|
3299
|
+
* from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.
|
|
3300
|
+
* - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be
|
|
3301
|
+
* an `AccountId32` value.
|
|
3302
|
+
* - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the
|
|
3303
|
+
* `dest` side. May not be empty.
|
|
3304
|
+
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
|
3305
|
+
* fees.
|
|
3306
|
+
*
|
|
3307
|
+
* @param {XcmVersionedMultiLocation} dest
|
|
3308
|
+
* @param {XcmVersionedMultiLocation} beneficiary
|
|
3309
|
+
* @param {XcmVersionedMultiAssets} assets
|
|
3310
|
+
* @param {number} feeAssetItem
|
|
3311
|
+
**/
|
|
3312
|
+
teleportAssets: GenericTxCall<(dest: XcmVersionedMultiLocation, beneficiary: XcmVersionedMultiLocation, assets: XcmVersionedMultiAssets, feeAssetItem: number) => ChainSubmittableExtrinsic<{
|
|
3313
|
+
pallet: 'PolkadotXcm';
|
|
3314
|
+
palletCall: {
|
|
3315
|
+
name: 'TeleportAssets';
|
|
3316
|
+
params: {
|
|
3317
|
+
dest: XcmVersionedMultiLocation;
|
|
3318
|
+
beneficiary: XcmVersionedMultiLocation;
|
|
3319
|
+
assets: XcmVersionedMultiAssets;
|
|
3320
|
+
feeAssetItem: number;
|
|
3321
|
+
};
|
|
3322
|
+
};
|
|
3323
|
+
}>>;
|
|
3324
|
+
/**
|
|
3325
|
+
* Transfer some assets from the local chain to the sovereign account of a destination
|
|
3326
|
+
* chain and forward a notification XCM.
|
|
3327
|
+
*
|
|
3328
|
+
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
3329
|
+
* index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,
|
|
3330
|
+
* with all fees taken as needed from the asset.
|
|
3331
|
+
*
|
|
3332
|
+
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
3333
|
+
* - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send
|
|
3334
|
+
* from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.
|
|
3335
|
+
* - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be
|
|
3336
|
+
* an `AccountId32` value.
|
|
3337
|
+
* - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the
|
|
3338
|
+
* `dest` side.
|
|
3339
|
+
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
|
3340
|
+
* fees.
|
|
3341
|
+
*
|
|
3342
|
+
* @param {XcmVersionedMultiLocation} dest
|
|
3343
|
+
* @param {XcmVersionedMultiLocation} beneficiary
|
|
3344
|
+
* @param {XcmVersionedMultiAssets} assets
|
|
3345
|
+
* @param {number} feeAssetItem
|
|
3346
|
+
**/
|
|
3347
|
+
reserveTransferAssets: GenericTxCall<(dest: XcmVersionedMultiLocation, beneficiary: XcmVersionedMultiLocation, assets: XcmVersionedMultiAssets, feeAssetItem: number) => ChainSubmittableExtrinsic<{
|
|
3348
|
+
pallet: 'PolkadotXcm';
|
|
3349
|
+
palletCall: {
|
|
3350
|
+
name: 'ReserveTransferAssets';
|
|
3351
|
+
params: {
|
|
3352
|
+
dest: XcmVersionedMultiLocation;
|
|
3353
|
+
beneficiary: XcmVersionedMultiLocation;
|
|
3354
|
+
assets: XcmVersionedMultiAssets;
|
|
3355
|
+
feeAssetItem: number;
|
|
3356
|
+
};
|
|
3357
|
+
};
|
|
3358
|
+
}>>;
|
|
3359
|
+
/**
|
|
3360
|
+
* Execute an XCM message from a local, signed, origin.
|
|
3361
|
+
*
|
|
3362
|
+
* An event is deposited indicating whether `msg` could be executed completely or only
|
|
3363
|
+
* partially.
|
|
3364
|
+
*
|
|
3365
|
+
* No more than `max_weight` will be used in its attempted execution. If this is less than the
|
|
3366
|
+
* maximum amount of weight that the message could take to be executed, then no execution
|
|
3367
|
+
* attempt will be made.
|
|
3368
|
+
*
|
|
3369
|
+
* NOTE: A successful return to this does *not* imply that the `msg` was executed successfully
|
|
3370
|
+
* to completion; only that *some* of it was executed.
|
|
3371
|
+
*
|
|
3372
|
+
* @param {XcmVersionedXcm} message
|
|
3373
|
+
* @param {SpWeightsWeightV2Weight} maxWeight
|
|
3374
|
+
**/
|
|
3375
|
+
execute: GenericTxCall<(message: XcmVersionedXcm, maxWeight: SpWeightsWeightV2Weight) => ChainSubmittableExtrinsic<{
|
|
3376
|
+
pallet: 'PolkadotXcm';
|
|
3377
|
+
palletCall: {
|
|
3378
|
+
name: 'Execute';
|
|
3379
|
+
params: {
|
|
3380
|
+
message: XcmVersionedXcm;
|
|
3381
|
+
maxWeight: SpWeightsWeightV2Weight;
|
|
3382
|
+
};
|
|
3383
|
+
};
|
|
3384
|
+
}>>;
|
|
3385
|
+
/**
|
|
3386
|
+
* Extoll that a particular destination can be communicated with through a particular
|
|
3387
|
+
* version of XCM.
|
|
3388
|
+
*
|
|
3389
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
3390
|
+
* - `location`: The destination that is being described.
|
|
3391
|
+
* - `xcm_version`: The latest version of XCM that `location` supports.
|
|
3392
|
+
*
|
|
3393
|
+
* @param {XcmV3MultilocationMultiLocation} location
|
|
3394
|
+
* @param {number} xcmVersion
|
|
3395
|
+
**/
|
|
3396
|
+
forceXcmVersion: GenericTxCall<(location: XcmV3MultilocationMultiLocation, xcmVersion: number) => ChainSubmittableExtrinsic<{
|
|
3397
|
+
pallet: 'PolkadotXcm';
|
|
3398
|
+
palletCall: {
|
|
3399
|
+
name: 'ForceXcmVersion';
|
|
3400
|
+
params: {
|
|
3401
|
+
location: XcmV3MultilocationMultiLocation;
|
|
3402
|
+
xcmVersion: number;
|
|
3403
|
+
};
|
|
3404
|
+
};
|
|
3405
|
+
}>>;
|
|
3406
|
+
/**
|
|
3407
|
+
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
|
3408
|
+
* version a destination can accept is unknown).
|
|
3409
|
+
*
|
|
3410
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
3411
|
+
* - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.
|
|
3412
|
+
*
|
|
3413
|
+
* @param {number | undefined} maybeXcmVersion
|
|
3414
|
+
**/
|
|
3415
|
+
forceDefaultXcmVersion: GenericTxCall<(maybeXcmVersion: number | undefined) => ChainSubmittableExtrinsic<{
|
|
3416
|
+
pallet: 'PolkadotXcm';
|
|
3417
|
+
palletCall: {
|
|
3418
|
+
name: 'ForceDefaultXcmVersion';
|
|
3419
|
+
params: {
|
|
3420
|
+
maybeXcmVersion: number | undefined;
|
|
3421
|
+
};
|
|
3422
|
+
};
|
|
3423
|
+
}>>;
|
|
3424
|
+
/**
|
|
3425
|
+
* Ask a location to notify us regarding their XCM version and any changes to it.
|
|
3426
|
+
*
|
|
3427
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
3428
|
+
* - `location`: The location to which we should subscribe for XCM version notifications.
|
|
3429
|
+
*
|
|
3430
|
+
* @param {XcmVersionedMultiLocation} location
|
|
3431
|
+
**/
|
|
3432
|
+
forceSubscribeVersionNotify: GenericTxCall<(location: XcmVersionedMultiLocation) => ChainSubmittableExtrinsic<{
|
|
3433
|
+
pallet: 'PolkadotXcm';
|
|
3434
|
+
palletCall: {
|
|
3435
|
+
name: 'ForceSubscribeVersionNotify';
|
|
3436
|
+
params: {
|
|
3437
|
+
location: XcmVersionedMultiLocation;
|
|
3438
|
+
};
|
|
3439
|
+
};
|
|
3440
|
+
}>>;
|
|
3441
|
+
/**
|
|
3442
|
+
* Require that a particular destination should no longer notify us regarding any XCM
|
|
3443
|
+
* version changes.
|
|
3444
|
+
*
|
|
3445
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
3446
|
+
* - `location`: The location to which we are currently subscribed for XCM version
|
|
3447
|
+
* notifications which we no longer desire.
|
|
3448
|
+
*
|
|
3449
|
+
* @param {XcmVersionedMultiLocation} location
|
|
3450
|
+
**/
|
|
3451
|
+
forceUnsubscribeVersionNotify: GenericTxCall<(location: XcmVersionedMultiLocation) => ChainSubmittableExtrinsic<{
|
|
3452
|
+
pallet: 'PolkadotXcm';
|
|
3453
|
+
palletCall: {
|
|
3454
|
+
name: 'ForceUnsubscribeVersionNotify';
|
|
3455
|
+
params: {
|
|
3456
|
+
location: XcmVersionedMultiLocation;
|
|
3457
|
+
};
|
|
3458
|
+
};
|
|
3459
|
+
}>>;
|
|
3460
|
+
/**
|
|
3461
|
+
* Transfer some assets from the local chain to the sovereign account of a destination
|
|
3462
|
+
* chain and forward a notification XCM.
|
|
3463
|
+
*
|
|
3464
|
+
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
3465
|
+
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
|
3466
|
+
* is needed than `weight_limit`, then the operation will fail and the assets send may be
|
|
3467
|
+
* at risk.
|
|
3468
|
+
*
|
|
3469
|
+
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
3470
|
+
* - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send
|
|
3471
|
+
* from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.
|
|
3472
|
+
* - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be
|
|
3473
|
+
* an `AccountId32` value.
|
|
3474
|
+
* - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the
|
|
3475
|
+
* `dest` side.
|
|
3476
|
+
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
|
3477
|
+
* fees.
|
|
3478
|
+
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
|
3479
|
+
*
|
|
3480
|
+
* @param {XcmVersionedMultiLocation} dest
|
|
3481
|
+
* @param {XcmVersionedMultiLocation} beneficiary
|
|
3482
|
+
* @param {XcmVersionedMultiAssets} assets
|
|
3483
|
+
* @param {number} feeAssetItem
|
|
3484
|
+
* @param {XcmV3WeightLimit} weightLimit
|
|
3485
|
+
**/
|
|
3486
|
+
limitedReserveTransferAssets: GenericTxCall<(dest: XcmVersionedMultiLocation, beneficiary: XcmVersionedMultiLocation, assets: XcmVersionedMultiAssets, feeAssetItem: number, weightLimit: XcmV3WeightLimit) => ChainSubmittableExtrinsic<{
|
|
3487
|
+
pallet: 'PolkadotXcm';
|
|
3488
|
+
palletCall: {
|
|
3489
|
+
name: 'LimitedReserveTransferAssets';
|
|
3490
|
+
params: {
|
|
3491
|
+
dest: XcmVersionedMultiLocation;
|
|
3492
|
+
beneficiary: XcmVersionedMultiLocation;
|
|
3493
|
+
assets: XcmVersionedMultiAssets;
|
|
3494
|
+
feeAssetItem: number;
|
|
3495
|
+
weightLimit: XcmV3WeightLimit;
|
|
3496
|
+
};
|
|
3497
|
+
};
|
|
3498
|
+
}>>;
|
|
3499
|
+
/**
|
|
3500
|
+
* Teleport some assets from the local chain to some destination chain.
|
|
3501
|
+
*
|
|
3502
|
+
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
3503
|
+
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
|
3504
|
+
* is needed than `weight_limit`, then the operation will fail and the assets send may be
|
|
3505
|
+
* at risk.
|
|
3506
|
+
*
|
|
3507
|
+
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
3508
|
+
* - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send
|
|
3509
|
+
* from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.
|
|
3510
|
+
* - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be
|
|
3511
|
+
* an `AccountId32` value.
|
|
3512
|
+
* - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the
|
|
3513
|
+
* `dest` side. May not be empty.
|
|
3514
|
+
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
|
3515
|
+
* fees.
|
|
3516
|
+
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
|
3517
|
+
*
|
|
3518
|
+
* @param {XcmVersionedMultiLocation} dest
|
|
3519
|
+
* @param {XcmVersionedMultiLocation} beneficiary
|
|
3520
|
+
* @param {XcmVersionedMultiAssets} assets
|
|
3521
|
+
* @param {number} feeAssetItem
|
|
3522
|
+
* @param {XcmV3WeightLimit} weightLimit
|
|
3523
|
+
**/
|
|
3524
|
+
limitedTeleportAssets: GenericTxCall<(dest: XcmVersionedMultiLocation, beneficiary: XcmVersionedMultiLocation, assets: XcmVersionedMultiAssets, feeAssetItem: number, weightLimit: XcmV3WeightLimit) => ChainSubmittableExtrinsic<{
|
|
3525
|
+
pallet: 'PolkadotXcm';
|
|
3526
|
+
palletCall: {
|
|
3527
|
+
name: 'LimitedTeleportAssets';
|
|
3528
|
+
params: {
|
|
3529
|
+
dest: XcmVersionedMultiLocation;
|
|
3530
|
+
beneficiary: XcmVersionedMultiLocation;
|
|
3531
|
+
assets: XcmVersionedMultiAssets;
|
|
3532
|
+
feeAssetItem: number;
|
|
3533
|
+
weightLimit: XcmV3WeightLimit;
|
|
3534
|
+
};
|
|
3535
|
+
};
|
|
3536
|
+
}>>;
|
|
3537
|
+
/**
|
|
3538
|
+
* Set or unset the global suspension state of the XCM executor.
|
|
3539
|
+
*
|
|
3540
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
3541
|
+
* - `suspended`: `true` to suspend, `false` to resume.
|
|
3542
|
+
*
|
|
3543
|
+
* @param {boolean} suspended
|
|
3544
|
+
**/
|
|
3545
|
+
forceSuspension: GenericTxCall<(suspended: boolean) => ChainSubmittableExtrinsic<{
|
|
3546
|
+
pallet: 'PolkadotXcm';
|
|
3547
|
+
palletCall: {
|
|
3548
|
+
name: 'ForceSuspension';
|
|
3549
|
+
params: {
|
|
3550
|
+
suspended: boolean;
|
|
3551
|
+
};
|
|
3552
|
+
};
|
|
3553
|
+
}>>;
|
|
3554
|
+
/**
|
|
3555
|
+
* Generic pallet tx call
|
|
3556
|
+
**/
|
|
3557
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
3558
|
+
};
|
|
3559
|
+
/**
|
|
3560
|
+
* Pallet `CumulusXcm`'s transaction calls
|
|
3561
|
+
**/
|
|
3562
|
+
cumulusXcm: {
|
|
3563
|
+
/**
|
|
3564
|
+
* Generic pallet tx call
|
|
3565
|
+
**/
|
|
3566
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
3567
|
+
};
|
|
3568
|
+
/**
|
|
3569
|
+
* Pallet `DmpQueue`'s transaction calls
|
|
3570
|
+
**/
|
|
3571
|
+
dmpQueue: {
|
|
3572
|
+
/**
|
|
3573
|
+
* Service a single overweight message.
|
|
3574
|
+
*
|
|
3575
|
+
* @param {bigint} index
|
|
3576
|
+
* @param {SpWeightsWeightV2Weight} weightLimit
|
|
3577
|
+
**/
|
|
3578
|
+
serviceOverweight: GenericTxCall<(index: bigint, weightLimit: SpWeightsWeightV2Weight) => ChainSubmittableExtrinsic<{
|
|
3579
|
+
pallet: 'DmpQueue';
|
|
3580
|
+
palletCall: {
|
|
3581
|
+
name: 'ServiceOverweight';
|
|
3582
|
+
params: {
|
|
3583
|
+
index: bigint;
|
|
3584
|
+
weightLimit: SpWeightsWeightV2Weight;
|
|
3585
|
+
};
|
|
3586
|
+
};
|
|
3587
|
+
}>>;
|
|
3588
|
+
/**
|
|
3589
|
+
* Generic pallet tx call
|
|
3590
|
+
**/
|
|
3591
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
3592
|
+
};
|
|
3593
|
+
/**
|
|
3594
|
+
* Pallet `XcAssetConfig`'s transaction calls
|
|
3595
|
+
**/
|
|
3596
|
+
xcAssetConfig: {
|
|
3597
|
+
/**
|
|
3598
|
+
* Register new asset location to asset Id mapping.
|
|
3599
|
+
*
|
|
3600
|
+
* This makes the asset eligible for XCM interaction.
|
|
3601
|
+
*
|
|
3602
|
+
* @param {XcmVersionedMultiLocation} assetLocation
|
|
3603
|
+
* @param {bigint} assetId
|
|
3604
|
+
**/
|
|
3605
|
+
registerAssetLocation: GenericTxCall<(assetLocation: XcmVersionedMultiLocation, assetId: bigint) => ChainSubmittableExtrinsic<{
|
|
3606
|
+
pallet: 'XcAssetConfig';
|
|
3607
|
+
palletCall: {
|
|
3608
|
+
name: 'RegisterAssetLocation';
|
|
3609
|
+
params: {
|
|
3610
|
+
assetLocation: XcmVersionedMultiLocation;
|
|
3611
|
+
assetId: bigint;
|
|
3612
|
+
};
|
|
3613
|
+
};
|
|
3614
|
+
}>>;
|
|
3615
|
+
/**
|
|
3616
|
+
* Change the amount of units we are charging per execution second
|
|
3617
|
+
* for a given AssetLocation.
|
|
3618
|
+
*
|
|
3619
|
+
* @param {XcmVersionedMultiLocation} assetLocation
|
|
3620
|
+
* @param {bigint} unitsPerSecond
|
|
3621
|
+
**/
|
|
3622
|
+
setAssetUnitsPerSecond: GenericTxCall<(assetLocation: XcmVersionedMultiLocation, unitsPerSecond: bigint) => ChainSubmittableExtrinsic<{
|
|
3623
|
+
pallet: 'XcAssetConfig';
|
|
3624
|
+
palletCall: {
|
|
3625
|
+
name: 'SetAssetUnitsPerSecond';
|
|
3626
|
+
params: {
|
|
3627
|
+
assetLocation: XcmVersionedMultiLocation;
|
|
3628
|
+
unitsPerSecond: bigint;
|
|
3629
|
+
};
|
|
3630
|
+
};
|
|
3631
|
+
}>>;
|
|
3632
|
+
/**
|
|
3633
|
+
* Change the xcm type mapping for a given asset Id.
|
|
3634
|
+
* The new asset type will inherit old `units per second` value.
|
|
3635
|
+
*
|
|
3636
|
+
* @param {XcmVersionedMultiLocation} newAssetLocation
|
|
3637
|
+
* @param {bigint} assetId
|
|
3638
|
+
**/
|
|
3639
|
+
changeExistingAssetLocation: GenericTxCall<(newAssetLocation: XcmVersionedMultiLocation, assetId: bigint) => ChainSubmittableExtrinsic<{
|
|
3640
|
+
pallet: 'XcAssetConfig';
|
|
3641
|
+
palletCall: {
|
|
3642
|
+
name: 'ChangeExistingAssetLocation';
|
|
3643
|
+
params: {
|
|
3644
|
+
newAssetLocation: XcmVersionedMultiLocation;
|
|
3645
|
+
assetId: bigint;
|
|
3646
|
+
};
|
|
3647
|
+
};
|
|
3648
|
+
}>>;
|
|
3649
|
+
/**
|
|
3650
|
+
* Removes asset from the set of supported payment assets.
|
|
3651
|
+
*
|
|
3652
|
+
* The asset can still be interacted with via XCM but it cannot be used to pay for execution time.
|
|
3653
|
+
*
|
|
3654
|
+
* @param {XcmVersionedMultiLocation} assetLocation
|
|
3655
|
+
**/
|
|
3656
|
+
removePaymentAsset: GenericTxCall<(assetLocation: XcmVersionedMultiLocation) => ChainSubmittableExtrinsic<{
|
|
3657
|
+
pallet: 'XcAssetConfig';
|
|
3658
|
+
palletCall: {
|
|
3659
|
+
name: 'RemovePaymentAsset';
|
|
3660
|
+
params: {
|
|
3661
|
+
assetLocation: XcmVersionedMultiLocation;
|
|
3662
|
+
};
|
|
3663
|
+
};
|
|
3664
|
+
}>>;
|
|
3665
|
+
/**
|
|
3666
|
+
* Removes all information related to asset, removing it from XCM support.
|
|
3667
|
+
*
|
|
3668
|
+
* @param {bigint} assetId
|
|
3669
|
+
**/
|
|
3670
|
+
removeAsset: GenericTxCall<(assetId: bigint) => ChainSubmittableExtrinsic<{
|
|
3671
|
+
pallet: 'XcAssetConfig';
|
|
3672
|
+
palletCall: {
|
|
3673
|
+
name: 'RemoveAsset';
|
|
3674
|
+
params: {
|
|
3675
|
+
assetId: bigint;
|
|
3676
|
+
};
|
|
3677
|
+
};
|
|
3678
|
+
}>>;
|
|
3679
|
+
/**
|
|
3680
|
+
* Generic pallet tx call
|
|
3681
|
+
**/
|
|
3682
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
3683
|
+
};
|
|
3684
|
+
/**
|
|
3685
|
+
* Pallet `XTokens`'s transaction calls
|
|
3686
|
+
**/
|
|
3687
|
+
xTokens: {
|
|
3688
|
+
/**
|
|
3689
|
+
* Transfer native currencies.
|
|
3690
|
+
*
|
|
3691
|
+
* `dest_weight_limit` is the weight for XCM execution on the dest
|
|
3692
|
+
* chain, and it would be charged from the transferred assets. If set
|
|
3693
|
+
* below requirements, the execution may fail and assets wouldn't be
|
|
3694
|
+
* received.
|
|
3695
|
+
*
|
|
3696
|
+
* It's a no-op if any error on local XCM execution or message sending.
|
|
3697
|
+
* Note sending assets out per se doesn't guarantee they would be
|
|
3698
|
+
* received. Receiving depends on if the XCM message could be delivered
|
|
3699
|
+
* by the network, and if the receiving chain would handle
|
|
3700
|
+
* messages correctly.
|
|
3701
|
+
*
|
|
3702
|
+
* @param {bigint} currencyId
|
|
3703
|
+
* @param {bigint} amount
|
|
3704
|
+
* @param {XcmVersionedMultiLocation} dest
|
|
3705
|
+
* @param {XcmV3WeightLimit} destWeightLimit
|
|
3706
|
+
**/
|
|
3707
|
+
transfer: GenericTxCall<(currencyId: bigint, amount: bigint, dest: XcmVersionedMultiLocation, destWeightLimit: XcmV3WeightLimit) => ChainSubmittableExtrinsic<{
|
|
3708
|
+
pallet: 'XTokens';
|
|
3709
|
+
palletCall: {
|
|
3710
|
+
name: 'Transfer';
|
|
3711
|
+
params: {
|
|
3712
|
+
currencyId: bigint;
|
|
3713
|
+
amount: bigint;
|
|
3714
|
+
dest: XcmVersionedMultiLocation;
|
|
3715
|
+
destWeightLimit: XcmV3WeightLimit;
|
|
3716
|
+
};
|
|
3717
|
+
};
|
|
3718
|
+
}>>;
|
|
3719
|
+
/**
|
|
3720
|
+
* Transfer `MultiAsset`.
|
|
3721
|
+
*
|
|
3722
|
+
* `dest_weight_limit` is the weight for XCM execution on the dest
|
|
3723
|
+
* chain, and it would be charged from the transferred assets. If set
|
|
3724
|
+
* below requirements, the execution may fail and assets wouldn't be
|
|
3725
|
+
* received.
|
|
3726
|
+
*
|
|
3727
|
+
* It's a no-op if any error on local XCM execution or message sending.
|
|
3728
|
+
* Note sending assets out per se doesn't guarantee they would be
|
|
3729
|
+
* received. Receiving depends on if the XCM message could be delivered
|
|
3730
|
+
* by the network, and if the receiving chain would handle
|
|
3731
|
+
* messages correctly.
|
|
3732
|
+
*
|
|
3733
|
+
* @param {XcmVersionedMultiAsset} asset
|
|
3734
|
+
* @param {XcmVersionedMultiLocation} dest
|
|
3735
|
+
* @param {XcmV3WeightLimit} destWeightLimit
|
|
3736
|
+
**/
|
|
3737
|
+
transferMultiasset: GenericTxCall<(asset: XcmVersionedMultiAsset, dest: XcmVersionedMultiLocation, destWeightLimit: XcmV3WeightLimit) => ChainSubmittableExtrinsic<{
|
|
3738
|
+
pallet: 'XTokens';
|
|
3739
|
+
palletCall: {
|
|
3740
|
+
name: 'TransferMultiasset';
|
|
3741
|
+
params: {
|
|
3742
|
+
asset: XcmVersionedMultiAsset;
|
|
3743
|
+
dest: XcmVersionedMultiLocation;
|
|
3744
|
+
destWeightLimit: XcmV3WeightLimit;
|
|
3745
|
+
};
|
|
3746
|
+
};
|
|
3747
|
+
}>>;
|
|
3748
|
+
/**
|
|
3749
|
+
* Transfer native currencies specifying the fee and amount as
|
|
3750
|
+
* separate.
|
|
3751
|
+
*
|
|
3752
|
+
* `dest_weight_limit` is the weight for XCM execution on the dest
|
|
3753
|
+
* chain, and it would be charged from the transferred assets. If set
|
|
3754
|
+
* below requirements, the execution may fail and assets wouldn't be
|
|
3755
|
+
* received.
|
|
3756
|
+
*
|
|
3757
|
+
* `fee` is the amount to be spent to pay for execution in destination
|
|
3758
|
+
* chain. Both fee and amount will be subtracted form the callers
|
|
3759
|
+
* balance.
|
|
3760
|
+
*
|
|
3761
|
+
* If `fee` is not high enough to cover for the execution costs in the
|
|
3762
|
+
* destination chain, then the assets will be trapped in the
|
|
3763
|
+
* destination chain
|
|
3764
|
+
*
|
|
3765
|
+
* It's a no-op if any error on local XCM execution or message sending.
|
|
3766
|
+
* Note sending assets out per se doesn't guarantee they would be
|
|
3767
|
+
* received. Receiving depends on if the XCM message could be delivered
|
|
3768
|
+
* by the network, and if the receiving chain would handle
|
|
3769
|
+
* messages correctly.
|
|
3770
|
+
*
|
|
3771
|
+
* @param {bigint} currencyId
|
|
3772
|
+
* @param {bigint} amount
|
|
3773
|
+
* @param {bigint} fee
|
|
3774
|
+
* @param {XcmVersionedMultiLocation} dest
|
|
3775
|
+
* @param {XcmV3WeightLimit} destWeightLimit
|
|
3776
|
+
**/
|
|
3777
|
+
transferWithFee: GenericTxCall<(currencyId: bigint, amount: bigint, fee: bigint, dest: XcmVersionedMultiLocation, destWeightLimit: XcmV3WeightLimit) => ChainSubmittableExtrinsic<{
|
|
3778
|
+
pallet: 'XTokens';
|
|
3779
|
+
palletCall: {
|
|
3780
|
+
name: 'TransferWithFee';
|
|
3781
|
+
params: {
|
|
3782
|
+
currencyId: bigint;
|
|
3783
|
+
amount: bigint;
|
|
3784
|
+
fee: bigint;
|
|
3785
|
+
dest: XcmVersionedMultiLocation;
|
|
3786
|
+
destWeightLimit: XcmV3WeightLimit;
|
|
3787
|
+
};
|
|
3788
|
+
};
|
|
3789
|
+
}>>;
|
|
3790
|
+
/**
|
|
3791
|
+
* Transfer `MultiAsset` specifying the fee and amount as separate.
|
|
3792
|
+
*
|
|
3793
|
+
* `dest_weight_limit` is the weight for XCM execution on the dest
|
|
3794
|
+
* chain, and it would be charged from the transferred assets. If set
|
|
3795
|
+
* below requirements, the execution may fail and assets wouldn't be
|
|
3796
|
+
* received.
|
|
3797
|
+
*
|
|
3798
|
+
* `fee` is the multiasset to be spent to pay for execution in
|
|
3799
|
+
* destination chain. Both fee and amount will be subtracted form the
|
|
3800
|
+
* callers balance For now we only accept fee and asset having the same
|
|
3801
|
+
* `MultiLocation` id.
|
|
3802
|
+
*
|
|
3803
|
+
* If `fee` is not high enough to cover for the execution costs in the
|
|
3804
|
+
* destination chain, then the assets will be trapped in the
|
|
3805
|
+
* destination chain
|
|
3806
|
+
*
|
|
3807
|
+
* It's a no-op if any error on local XCM execution or message sending.
|
|
3808
|
+
* Note sending assets out per se doesn't guarantee they would be
|
|
3809
|
+
* received. Receiving depends on if the XCM message could be delivered
|
|
3810
|
+
* by the network, and if the receiving chain would handle
|
|
3811
|
+
* messages correctly.
|
|
3812
|
+
*
|
|
3813
|
+
* @param {XcmVersionedMultiAsset} asset
|
|
3814
|
+
* @param {XcmVersionedMultiAsset} fee
|
|
3815
|
+
* @param {XcmVersionedMultiLocation} dest
|
|
3816
|
+
* @param {XcmV3WeightLimit} destWeightLimit
|
|
3817
|
+
**/
|
|
3818
|
+
transferMultiassetWithFee: GenericTxCall<(asset: XcmVersionedMultiAsset, fee: XcmVersionedMultiAsset, dest: XcmVersionedMultiLocation, destWeightLimit: XcmV3WeightLimit) => ChainSubmittableExtrinsic<{
|
|
3819
|
+
pallet: 'XTokens';
|
|
3820
|
+
palletCall: {
|
|
3821
|
+
name: 'TransferMultiassetWithFee';
|
|
3822
|
+
params: {
|
|
3823
|
+
asset: XcmVersionedMultiAsset;
|
|
3824
|
+
fee: XcmVersionedMultiAsset;
|
|
3825
|
+
dest: XcmVersionedMultiLocation;
|
|
3826
|
+
destWeightLimit: XcmV3WeightLimit;
|
|
3827
|
+
};
|
|
3828
|
+
};
|
|
3829
|
+
}>>;
|
|
3830
|
+
/**
|
|
3831
|
+
* Transfer several currencies specifying the item to be used as fee
|
|
3832
|
+
*
|
|
3833
|
+
* `dest_weight_limit` is the weight for XCM execution on the dest
|
|
3834
|
+
* chain, and it would be charged from the transferred assets. If set
|
|
3835
|
+
* below requirements, the execution may fail and assets wouldn't be
|
|
3836
|
+
* received.
|
|
3837
|
+
*
|
|
3838
|
+
* `fee_item` is index of the currencies tuple that we want to use for
|
|
3839
|
+
* payment
|
|
3840
|
+
*
|
|
3841
|
+
* It's a no-op if any error on local XCM execution or message sending.
|
|
3842
|
+
* Note sending assets out per se doesn't guarantee they would be
|
|
3843
|
+
* received. Receiving depends on if the XCM message could be delivered
|
|
3844
|
+
* by the network, and if the receiving chain would handle
|
|
3845
|
+
* messages correctly.
|
|
3846
|
+
*
|
|
3847
|
+
* @param {Array<[bigint, bigint]>} currencies
|
|
3848
|
+
* @param {number} feeItem
|
|
3849
|
+
* @param {XcmVersionedMultiLocation} dest
|
|
3850
|
+
* @param {XcmV3WeightLimit} destWeightLimit
|
|
3851
|
+
**/
|
|
3852
|
+
transferMulticurrencies: GenericTxCall<(currencies: Array<[bigint, bigint]>, feeItem: number, dest: XcmVersionedMultiLocation, destWeightLimit: XcmV3WeightLimit) => ChainSubmittableExtrinsic<{
|
|
3853
|
+
pallet: 'XTokens';
|
|
3854
|
+
palletCall: {
|
|
3855
|
+
name: 'TransferMulticurrencies';
|
|
3856
|
+
params: {
|
|
3857
|
+
currencies: Array<[bigint, bigint]>;
|
|
3858
|
+
feeItem: number;
|
|
3859
|
+
dest: XcmVersionedMultiLocation;
|
|
3860
|
+
destWeightLimit: XcmV3WeightLimit;
|
|
3861
|
+
};
|
|
3862
|
+
};
|
|
3863
|
+
}>>;
|
|
3864
|
+
/**
|
|
3865
|
+
* Transfer several `MultiAsset` specifying the item to be used as fee
|
|
3866
|
+
*
|
|
3867
|
+
* `dest_weight_limit` is the weight for XCM execution on the dest
|
|
3868
|
+
* chain, and it would be charged from the transferred assets. If set
|
|
3869
|
+
* below requirements, the execution may fail and assets wouldn't be
|
|
3870
|
+
* received.
|
|
3871
|
+
*
|
|
3872
|
+
* `fee_item` is index of the MultiAssets that we want to use for
|
|
3873
|
+
* payment
|
|
3874
|
+
*
|
|
3875
|
+
* It's a no-op if any error on local XCM execution or message sending.
|
|
3876
|
+
* Note sending assets out per se doesn't guarantee they would be
|
|
3877
|
+
* received. Receiving depends on if the XCM message could be delivered
|
|
3878
|
+
* by the network, and if the receiving chain would handle
|
|
3879
|
+
* messages correctly.
|
|
3880
|
+
*
|
|
3881
|
+
* @param {XcmVersionedMultiAssets} assets
|
|
3882
|
+
* @param {number} feeItem
|
|
3883
|
+
* @param {XcmVersionedMultiLocation} dest
|
|
3884
|
+
* @param {XcmV3WeightLimit} destWeightLimit
|
|
3885
|
+
**/
|
|
3886
|
+
transferMultiassets: GenericTxCall<(assets: XcmVersionedMultiAssets, feeItem: number, dest: XcmVersionedMultiLocation, destWeightLimit: XcmV3WeightLimit) => ChainSubmittableExtrinsic<{
|
|
3887
|
+
pallet: 'XTokens';
|
|
3888
|
+
palletCall: {
|
|
3889
|
+
name: 'TransferMultiassets';
|
|
3890
|
+
params: {
|
|
3891
|
+
assets: XcmVersionedMultiAssets;
|
|
3892
|
+
feeItem: number;
|
|
3893
|
+
dest: XcmVersionedMultiLocation;
|
|
3894
|
+
destWeightLimit: XcmV3WeightLimit;
|
|
3895
|
+
};
|
|
3896
|
+
};
|
|
3897
|
+
}>>;
|
|
3898
|
+
/**
|
|
3899
|
+
* Generic pallet tx call
|
|
3900
|
+
**/
|
|
3901
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
3902
|
+
};
|
|
3903
|
+
/**
|
|
3904
|
+
* Pallet `EVM`'s transaction calls
|
|
3905
|
+
**/
|
|
3906
|
+
evm: {
|
|
3907
|
+
/**
|
|
3908
|
+
* Withdraw balance from EVM into currency/balances pallet.
|
|
3909
|
+
*
|
|
3910
|
+
* @param {H160} address
|
|
3911
|
+
* @param {bigint} value
|
|
3912
|
+
**/
|
|
3913
|
+
withdraw: GenericTxCall<(address: H160, value: bigint) => ChainSubmittableExtrinsic<{
|
|
3914
|
+
pallet: 'Evm';
|
|
3915
|
+
palletCall: {
|
|
3916
|
+
name: 'Withdraw';
|
|
3917
|
+
params: {
|
|
3918
|
+
address: H160;
|
|
3919
|
+
value: bigint;
|
|
3920
|
+
};
|
|
3921
|
+
};
|
|
3922
|
+
}>>;
|
|
3923
|
+
/**
|
|
3924
|
+
* Issue an EVM call operation. This is similar to a message call transaction in Ethereum.
|
|
3925
|
+
*
|
|
3926
|
+
* @param {H160} source
|
|
3927
|
+
* @param {H160} target
|
|
3928
|
+
* @param {BytesLike} input
|
|
3929
|
+
* @param {U256} value
|
|
3930
|
+
* @param {bigint} gasLimit
|
|
3931
|
+
* @param {U256} maxFeePerGas
|
|
3932
|
+
* @param {U256 | undefined} maxPriorityFeePerGas
|
|
3933
|
+
* @param {U256 | undefined} nonce
|
|
3934
|
+
* @param {Array<[H160, Array<H256>]>} accessList
|
|
3935
|
+
**/
|
|
3936
|
+
call: GenericTxCall<(source: H160, target: H160, input: BytesLike, value: U256, gasLimit: bigint, maxFeePerGas: U256, maxPriorityFeePerGas: U256 | undefined, nonce: U256 | undefined, accessList: Array<[H160, Array<H256>]>) => ChainSubmittableExtrinsic<{
|
|
3937
|
+
pallet: 'Evm';
|
|
3938
|
+
palletCall: {
|
|
3939
|
+
name: 'Call';
|
|
3940
|
+
params: {
|
|
3941
|
+
source: H160;
|
|
3942
|
+
target: H160;
|
|
3943
|
+
input: BytesLike;
|
|
3944
|
+
value: U256;
|
|
3945
|
+
gasLimit: bigint;
|
|
3946
|
+
maxFeePerGas: U256;
|
|
3947
|
+
maxPriorityFeePerGas: U256 | undefined;
|
|
3948
|
+
nonce: U256 | undefined;
|
|
3949
|
+
accessList: Array<[H160, Array<H256>]>;
|
|
3950
|
+
};
|
|
3951
|
+
};
|
|
3952
|
+
}>>;
|
|
3953
|
+
/**
|
|
3954
|
+
* Issue an EVM create operation. This is similar to a contract creation transaction in
|
|
3955
|
+
* Ethereum.
|
|
3956
|
+
*
|
|
3957
|
+
* @param {H160} source
|
|
3958
|
+
* @param {BytesLike} init
|
|
3959
|
+
* @param {U256} value
|
|
3960
|
+
* @param {bigint} gasLimit
|
|
3961
|
+
* @param {U256} maxFeePerGas
|
|
3962
|
+
* @param {U256 | undefined} maxPriorityFeePerGas
|
|
3963
|
+
* @param {U256 | undefined} nonce
|
|
3964
|
+
* @param {Array<[H160, Array<H256>]>} accessList
|
|
3965
|
+
**/
|
|
3966
|
+
create: GenericTxCall<(source: H160, init: BytesLike, value: U256, gasLimit: bigint, maxFeePerGas: U256, maxPriorityFeePerGas: U256 | undefined, nonce: U256 | undefined, accessList: Array<[H160, Array<H256>]>) => ChainSubmittableExtrinsic<{
|
|
3967
|
+
pallet: 'Evm';
|
|
3968
|
+
palletCall: {
|
|
3969
|
+
name: 'Create';
|
|
3970
|
+
params: {
|
|
3971
|
+
source: H160;
|
|
3972
|
+
init: BytesLike;
|
|
3973
|
+
value: U256;
|
|
3974
|
+
gasLimit: bigint;
|
|
3975
|
+
maxFeePerGas: U256;
|
|
3976
|
+
maxPriorityFeePerGas: U256 | undefined;
|
|
3977
|
+
nonce: U256 | undefined;
|
|
3978
|
+
accessList: Array<[H160, Array<H256>]>;
|
|
3979
|
+
};
|
|
3980
|
+
};
|
|
3981
|
+
}>>;
|
|
3982
|
+
/**
|
|
3983
|
+
* Issue an EVM create2 operation.
|
|
3984
|
+
*
|
|
3985
|
+
* @param {H160} source
|
|
3986
|
+
* @param {BytesLike} init
|
|
3987
|
+
* @param {H256} salt
|
|
3988
|
+
* @param {U256} value
|
|
3989
|
+
* @param {bigint} gasLimit
|
|
3990
|
+
* @param {U256} maxFeePerGas
|
|
3991
|
+
* @param {U256 | undefined} maxPriorityFeePerGas
|
|
3992
|
+
* @param {U256 | undefined} nonce
|
|
3993
|
+
* @param {Array<[H160, Array<H256>]>} accessList
|
|
3994
|
+
**/
|
|
3995
|
+
create2: GenericTxCall<(source: H160, init: BytesLike, salt: H256, value: U256, gasLimit: bigint, maxFeePerGas: U256, maxPriorityFeePerGas: U256 | undefined, nonce: U256 | undefined, accessList: Array<[H160, Array<H256>]>) => ChainSubmittableExtrinsic<{
|
|
3996
|
+
pallet: 'Evm';
|
|
3997
|
+
palletCall: {
|
|
3998
|
+
name: 'Create2';
|
|
3999
|
+
params: {
|
|
4000
|
+
source: H160;
|
|
4001
|
+
init: BytesLike;
|
|
4002
|
+
salt: H256;
|
|
4003
|
+
value: U256;
|
|
4004
|
+
gasLimit: bigint;
|
|
4005
|
+
maxFeePerGas: U256;
|
|
4006
|
+
maxPriorityFeePerGas: U256 | undefined;
|
|
4007
|
+
nonce: U256 | undefined;
|
|
4008
|
+
accessList: Array<[H160, Array<H256>]>;
|
|
4009
|
+
};
|
|
4010
|
+
};
|
|
4011
|
+
}>>;
|
|
4012
|
+
/**
|
|
4013
|
+
* Generic pallet tx call
|
|
4014
|
+
**/
|
|
4015
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
4016
|
+
};
|
|
4017
|
+
/**
|
|
4018
|
+
* Pallet `Ethereum`'s transaction calls
|
|
4019
|
+
**/
|
|
4020
|
+
ethereum: {
|
|
4021
|
+
/**
|
|
4022
|
+
* Transact an Ethereum transaction.
|
|
4023
|
+
*
|
|
4024
|
+
* @param {EthereumTransactionTransactionV2} transaction
|
|
4025
|
+
**/
|
|
4026
|
+
transact: GenericTxCall<(transaction: EthereumTransactionTransactionV2) => ChainSubmittableExtrinsic<{
|
|
4027
|
+
pallet: 'Ethereum';
|
|
4028
|
+
palletCall: {
|
|
4029
|
+
name: 'Transact';
|
|
4030
|
+
params: {
|
|
4031
|
+
transaction: EthereumTransactionTransactionV2;
|
|
4032
|
+
};
|
|
4033
|
+
};
|
|
4034
|
+
}>>;
|
|
4035
|
+
/**
|
|
4036
|
+
* Generic pallet tx call
|
|
4037
|
+
**/
|
|
4038
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
4039
|
+
};
|
|
4040
|
+
/**
|
|
4041
|
+
* Pallet `DynamicEvmBaseFee`'s transaction calls
|
|
4042
|
+
**/
|
|
4043
|
+
dynamicEvmBaseFee: {
|
|
4044
|
+
/**
|
|
4045
|
+
* `root-only` extrinsic to set the `base_fee_per_gas` value manually.
|
|
4046
|
+
* The specified value has to respect min & max limits configured in the runtime.
|
|
4047
|
+
*
|
|
4048
|
+
* @param {U256} fee
|
|
4049
|
+
**/
|
|
4050
|
+
setBaseFeePerGas: GenericTxCall<(fee: U256) => ChainSubmittableExtrinsic<{
|
|
4051
|
+
pallet: 'DynamicEvmBaseFee';
|
|
4052
|
+
palletCall: {
|
|
4053
|
+
name: 'SetBaseFeePerGas';
|
|
4054
|
+
params: {
|
|
4055
|
+
fee: U256;
|
|
4056
|
+
};
|
|
4057
|
+
};
|
|
4058
|
+
}>>;
|
|
4059
|
+
/**
|
|
4060
|
+
* Generic pallet tx call
|
|
4061
|
+
**/
|
|
4062
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
4063
|
+
};
|
|
4064
|
+
/**
|
|
4065
|
+
* Pallet `Contracts`'s transaction calls
|
|
4066
|
+
**/
|
|
4067
|
+
contracts: {
|
|
4068
|
+
/**
|
|
4069
|
+
* Deprecated version if [`Self::call`] for use in an in-storage `Call`.
|
|
4070
|
+
*
|
|
4071
|
+
* @param {MultiAddressLike} dest
|
|
4072
|
+
* @param {bigint} value
|
|
4073
|
+
* @param {bigint} gasLimit
|
|
4074
|
+
* @param {bigint | undefined} storageDepositLimit
|
|
4075
|
+
* @param {BytesLike} data
|
|
4076
|
+
**/
|
|
4077
|
+
callOldWeight: GenericTxCall<(dest: MultiAddressLike, value: bigint, gasLimit: bigint, storageDepositLimit: bigint | undefined, data: BytesLike) => ChainSubmittableExtrinsic<{
|
|
4078
|
+
pallet: 'Contracts';
|
|
4079
|
+
palletCall: {
|
|
4080
|
+
name: 'CallOldWeight';
|
|
4081
|
+
params: {
|
|
4082
|
+
dest: MultiAddressLike;
|
|
4083
|
+
value: bigint;
|
|
4084
|
+
gasLimit: bigint;
|
|
4085
|
+
storageDepositLimit: bigint | undefined;
|
|
4086
|
+
data: BytesLike;
|
|
4087
|
+
};
|
|
4088
|
+
};
|
|
4089
|
+
}>>;
|
|
4090
|
+
/**
|
|
4091
|
+
* Deprecated version if [`Self::instantiate_with_code`] for use in an in-storage `Call`.
|
|
4092
|
+
*
|
|
4093
|
+
* @param {bigint} value
|
|
4094
|
+
* @param {bigint} gasLimit
|
|
4095
|
+
* @param {bigint | undefined} storageDepositLimit
|
|
4096
|
+
* @param {BytesLike} code
|
|
4097
|
+
* @param {BytesLike} data
|
|
4098
|
+
* @param {BytesLike} salt
|
|
4099
|
+
**/
|
|
4100
|
+
instantiateWithCodeOldWeight: GenericTxCall<(value: bigint, gasLimit: bigint, storageDepositLimit: bigint | undefined, code: BytesLike, data: BytesLike, salt: BytesLike) => ChainSubmittableExtrinsic<{
|
|
4101
|
+
pallet: 'Contracts';
|
|
4102
|
+
palletCall: {
|
|
4103
|
+
name: 'InstantiateWithCodeOldWeight';
|
|
4104
|
+
params: {
|
|
4105
|
+
value: bigint;
|
|
4106
|
+
gasLimit: bigint;
|
|
4107
|
+
storageDepositLimit: bigint | undefined;
|
|
4108
|
+
code: BytesLike;
|
|
4109
|
+
data: BytesLike;
|
|
4110
|
+
salt: BytesLike;
|
|
4111
|
+
};
|
|
4112
|
+
};
|
|
4113
|
+
}>>;
|
|
4114
|
+
/**
|
|
4115
|
+
* Deprecated version if [`Self::instantiate`] for use in an in-storage `Call`.
|
|
4116
|
+
*
|
|
4117
|
+
* @param {bigint} value
|
|
4118
|
+
* @param {bigint} gasLimit
|
|
4119
|
+
* @param {bigint | undefined} storageDepositLimit
|
|
4120
|
+
* @param {H256} codeHash
|
|
4121
|
+
* @param {BytesLike} data
|
|
4122
|
+
* @param {BytesLike} salt
|
|
4123
|
+
**/
|
|
4124
|
+
instantiateOldWeight: GenericTxCall<(value: bigint, gasLimit: bigint, storageDepositLimit: bigint | undefined, codeHash: H256, data: BytesLike, salt: BytesLike) => ChainSubmittableExtrinsic<{
|
|
4125
|
+
pallet: 'Contracts';
|
|
4126
|
+
palletCall: {
|
|
4127
|
+
name: 'InstantiateOldWeight';
|
|
4128
|
+
params: {
|
|
4129
|
+
value: bigint;
|
|
4130
|
+
gasLimit: bigint;
|
|
4131
|
+
storageDepositLimit: bigint | undefined;
|
|
4132
|
+
codeHash: H256;
|
|
4133
|
+
data: BytesLike;
|
|
4134
|
+
salt: BytesLike;
|
|
4135
|
+
};
|
|
4136
|
+
};
|
|
4137
|
+
}>>;
|
|
4138
|
+
/**
|
|
4139
|
+
* Upload new `code` without instantiating a contract from it.
|
|
4140
|
+
*
|
|
4141
|
+
* If the code does not already exist a deposit is reserved from the caller
|
|
4142
|
+
* and unreserved only when [`Self::remove_code`] is called. The size of the reserve
|
|
4143
|
+
* depends on the instrumented size of the the supplied `code`.
|
|
4144
|
+
*
|
|
4145
|
+
* If the code already exists in storage it will still return `Ok` and upgrades
|
|
4146
|
+
* the in storage version to the current
|
|
4147
|
+
* [`InstructionWeights::version`](InstructionWeights).
|
|
4148
|
+
*
|
|
4149
|
+
* - `determinism`: If this is set to any other value but [`Determinism::Enforced`] then
|
|
4150
|
+
* the only way to use this code is to delegate call into it from an offchain execution.
|
|
4151
|
+
* Set to [`Determinism::Enforced`] if in doubt.
|
|
4152
|
+
*
|
|
4153
|
+
* # Note
|
|
4154
|
+
*
|
|
4155
|
+
* Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
|
|
4156
|
+
* To avoid this situation a constructor could employ access control so that it can
|
|
4157
|
+
* only be instantiated by permissioned entities. The same is true when uploading
|
|
4158
|
+
* through [`Self::instantiate_with_code`].
|
|
4159
|
+
*
|
|
4160
|
+
* @param {BytesLike} code
|
|
4161
|
+
* @param {bigint | undefined} storageDepositLimit
|
|
4162
|
+
* @param {PalletContractsWasmDeterminism} determinism
|
|
4163
|
+
**/
|
|
4164
|
+
uploadCode: GenericTxCall<(code: BytesLike, storageDepositLimit: bigint | undefined, determinism: PalletContractsWasmDeterminism) => ChainSubmittableExtrinsic<{
|
|
4165
|
+
pallet: 'Contracts';
|
|
4166
|
+
palletCall: {
|
|
4167
|
+
name: 'UploadCode';
|
|
4168
|
+
params: {
|
|
4169
|
+
code: BytesLike;
|
|
4170
|
+
storageDepositLimit: bigint | undefined;
|
|
4171
|
+
determinism: PalletContractsWasmDeterminism;
|
|
4172
|
+
};
|
|
4173
|
+
};
|
|
4174
|
+
}>>;
|
|
4175
|
+
/**
|
|
4176
|
+
* Remove the code stored under `code_hash` and refund the deposit to its owner.
|
|
4177
|
+
*
|
|
4178
|
+
* A code can only be removed by its original uploader (its owner) and only if it is
|
|
4179
|
+
* not used by any contract.
|
|
4180
|
+
*
|
|
4181
|
+
* @param {H256} codeHash
|
|
4182
|
+
**/
|
|
4183
|
+
removeCode: GenericTxCall<(codeHash: H256) => ChainSubmittableExtrinsic<{
|
|
4184
|
+
pallet: 'Contracts';
|
|
4185
|
+
palletCall: {
|
|
4186
|
+
name: 'RemoveCode';
|
|
4187
|
+
params: {
|
|
4188
|
+
codeHash: H256;
|
|
4189
|
+
};
|
|
4190
|
+
};
|
|
4191
|
+
}>>;
|
|
4192
|
+
/**
|
|
4193
|
+
* Privileged function that changes the code of an existing contract.
|
|
4194
|
+
*
|
|
4195
|
+
* This takes care of updating refcounts and all other necessary operations. Returns
|
|
4196
|
+
* an error if either the `code_hash` or `dest` do not exist.
|
|
4197
|
+
*
|
|
4198
|
+
* # Note
|
|
4199
|
+
*
|
|
4200
|
+
* This does **not** change the address of the contract in question. This means
|
|
4201
|
+
* that the contract address is no longer derived from its code hash after calling
|
|
4202
|
+
* this dispatchable.
|
|
4203
|
+
*
|
|
4204
|
+
* @param {MultiAddressLike} dest
|
|
4205
|
+
* @param {H256} codeHash
|
|
4206
|
+
**/
|
|
4207
|
+
setCode: GenericTxCall<(dest: MultiAddressLike, codeHash: H256) => ChainSubmittableExtrinsic<{
|
|
4208
|
+
pallet: 'Contracts';
|
|
4209
|
+
palletCall: {
|
|
4210
|
+
name: 'SetCode';
|
|
4211
|
+
params: {
|
|
4212
|
+
dest: MultiAddressLike;
|
|
4213
|
+
codeHash: H256;
|
|
4214
|
+
};
|
|
4215
|
+
};
|
|
4216
|
+
}>>;
|
|
4217
|
+
/**
|
|
4218
|
+
* Makes a call to an account, optionally transferring some balance.
|
|
4219
|
+
*
|
|
4220
|
+
* # Parameters
|
|
4221
|
+
*
|
|
4222
|
+
* * `dest`: Address of the contract to call.
|
|
4223
|
+
* * `value`: The balance to transfer from the `origin` to `dest`.
|
|
4224
|
+
* * `gas_limit`: The gas limit enforced when executing the constructor.
|
|
4225
|
+
* * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
|
|
4226
|
+
* caller to pay for the storage consumed.
|
|
4227
|
+
* * `data`: The input data to pass to the contract.
|
|
4228
|
+
*
|
|
4229
|
+
* * If the account is a smart-contract account, the associated code will be
|
|
4230
|
+
* executed and any value will be transferred.
|
|
4231
|
+
* * If the account is a regular account, any value will be transferred.
|
|
4232
|
+
* * If no account exists and the call value is not less than `existential_deposit`,
|
|
4233
|
+
* a regular account will be created and any value will be transferred.
|
|
4234
|
+
*
|
|
4235
|
+
* @param {MultiAddressLike} dest
|
|
4236
|
+
* @param {bigint} value
|
|
4237
|
+
* @param {SpWeightsWeightV2Weight} gasLimit
|
|
4238
|
+
* @param {bigint | undefined} storageDepositLimit
|
|
4239
|
+
* @param {BytesLike} data
|
|
4240
|
+
**/
|
|
4241
|
+
call: GenericTxCall<(dest: MultiAddressLike, value: bigint, gasLimit: SpWeightsWeightV2Weight, storageDepositLimit: bigint | undefined, data: BytesLike) => ChainSubmittableExtrinsic<{
|
|
4242
|
+
pallet: 'Contracts';
|
|
4243
|
+
palletCall: {
|
|
4244
|
+
name: 'Call';
|
|
4245
|
+
params: {
|
|
4246
|
+
dest: MultiAddressLike;
|
|
4247
|
+
value: bigint;
|
|
4248
|
+
gasLimit: SpWeightsWeightV2Weight;
|
|
4249
|
+
storageDepositLimit: bigint | undefined;
|
|
4250
|
+
data: BytesLike;
|
|
4251
|
+
};
|
|
4252
|
+
};
|
|
4253
|
+
}>>;
|
|
4254
|
+
/**
|
|
4255
|
+
* Instantiates a new contract from the supplied `code` optionally transferring
|
|
4256
|
+
* some balance.
|
|
4257
|
+
*
|
|
4258
|
+
* This dispatchable has the same effect as calling [`Self::upload_code`] +
|
|
4259
|
+
* [`Self::instantiate`]. Bundling them together provides efficiency gains. Please
|
|
4260
|
+
* also check the documentation of [`Self::upload_code`].
|
|
4261
|
+
*
|
|
4262
|
+
* # Parameters
|
|
4263
|
+
*
|
|
4264
|
+
* * `value`: The balance to transfer from the `origin` to the newly created contract.
|
|
4265
|
+
* * `gas_limit`: The gas limit enforced when executing the constructor.
|
|
4266
|
+
* * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
|
|
4267
|
+
* from the caller to pay for the storage consumed.
|
|
4268
|
+
* * `code`: The contract code to deploy in raw bytes.
|
|
4269
|
+
* * `data`: The input data to pass to the contract constructor.
|
|
4270
|
+
* * `salt`: Used for the address derivation. See [`Pallet::contract_address`].
|
|
4271
|
+
*
|
|
4272
|
+
* Instantiation is executed as follows:
|
|
4273
|
+
*
|
|
4274
|
+
* - The supplied `code` is instrumented, deployed, and a `code_hash` is created for that
|
|
4275
|
+
* code.
|
|
4276
|
+
* - If the `code_hash` already exists on the chain the underlying `code` will be shared.
|
|
4277
|
+
* - The destination address is computed based on the sender, code_hash and the salt.
|
|
4278
|
+
* - The smart-contract account is created at the computed address.
|
|
4279
|
+
* - The `value` is transferred to the new account.
|
|
4280
|
+
* - The `deploy` function is executed in the context of the newly-created account.
|
|
4281
|
+
*
|
|
4282
|
+
* @param {bigint} value
|
|
4283
|
+
* @param {SpWeightsWeightV2Weight} gasLimit
|
|
4284
|
+
* @param {bigint | undefined} storageDepositLimit
|
|
4285
|
+
* @param {BytesLike} code
|
|
4286
|
+
* @param {BytesLike} data
|
|
4287
|
+
* @param {BytesLike} salt
|
|
4288
|
+
**/
|
|
4289
|
+
instantiateWithCode: GenericTxCall<(value: bigint, gasLimit: SpWeightsWeightV2Weight, storageDepositLimit: bigint | undefined, code: BytesLike, data: BytesLike, salt: BytesLike) => ChainSubmittableExtrinsic<{
|
|
4290
|
+
pallet: 'Contracts';
|
|
4291
|
+
palletCall: {
|
|
4292
|
+
name: 'InstantiateWithCode';
|
|
4293
|
+
params: {
|
|
4294
|
+
value: bigint;
|
|
4295
|
+
gasLimit: SpWeightsWeightV2Weight;
|
|
4296
|
+
storageDepositLimit: bigint | undefined;
|
|
4297
|
+
code: BytesLike;
|
|
4298
|
+
data: BytesLike;
|
|
4299
|
+
salt: BytesLike;
|
|
4300
|
+
};
|
|
4301
|
+
};
|
|
4302
|
+
}>>;
|
|
4303
|
+
/**
|
|
4304
|
+
* Instantiates a contract from a previously deployed wasm binary.
|
|
4305
|
+
*
|
|
4306
|
+
* This function is identical to [`Self::instantiate_with_code`] but without the
|
|
4307
|
+
* code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
|
|
4308
|
+
* must be supplied.
|
|
4309
|
+
*
|
|
4310
|
+
* @param {bigint} value
|
|
4311
|
+
* @param {SpWeightsWeightV2Weight} gasLimit
|
|
4312
|
+
* @param {bigint | undefined} storageDepositLimit
|
|
4313
|
+
* @param {H256} codeHash
|
|
4314
|
+
* @param {BytesLike} data
|
|
4315
|
+
* @param {BytesLike} salt
|
|
4316
|
+
**/
|
|
4317
|
+
instantiate: GenericTxCall<(value: bigint, gasLimit: SpWeightsWeightV2Weight, storageDepositLimit: bigint | undefined, codeHash: H256, data: BytesLike, salt: BytesLike) => ChainSubmittableExtrinsic<{
|
|
4318
|
+
pallet: 'Contracts';
|
|
4319
|
+
palletCall: {
|
|
4320
|
+
name: 'Instantiate';
|
|
4321
|
+
params: {
|
|
4322
|
+
value: bigint;
|
|
4323
|
+
gasLimit: SpWeightsWeightV2Weight;
|
|
4324
|
+
storageDepositLimit: bigint | undefined;
|
|
4325
|
+
codeHash: H256;
|
|
4326
|
+
data: BytesLike;
|
|
4327
|
+
salt: BytesLike;
|
|
4328
|
+
};
|
|
4329
|
+
};
|
|
4330
|
+
}>>;
|
|
4331
|
+
/**
|
|
4332
|
+
* When a migration is in progress, this dispatchable can be used to run migration steps.
|
|
4333
|
+
* Calls that contribute to advancing the migration have their fees waived, as it's helpful
|
|
4334
|
+
* for the chain. Note that while the migration is in progress, the pallet will also
|
|
4335
|
+
* leverage the `on_idle` hooks to run migration steps.
|
|
4336
|
+
*
|
|
4337
|
+
* @param {SpWeightsWeightV2Weight} weightLimit
|
|
4338
|
+
**/
|
|
4339
|
+
migrate: GenericTxCall<(weightLimit: SpWeightsWeightV2Weight) => ChainSubmittableExtrinsic<{
|
|
4340
|
+
pallet: 'Contracts';
|
|
4341
|
+
palletCall: {
|
|
4342
|
+
name: 'Migrate';
|
|
4343
|
+
params: {
|
|
4344
|
+
weightLimit: SpWeightsWeightV2Weight;
|
|
4345
|
+
};
|
|
4346
|
+
};
|
|
4347
|
+
}>>;
|
|
4348
|
+
/**
|
|
4349
|
+
* Generic pallet tx call
|
|
4350
|
+
**/
|
|
4351
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
4352
|
+
};
|
|
4353
|
+
/**
|
|
4354
|
+
* Pallet `Sudo`'s transaction calls
|
|
4355
|
+
**/
|
|
4356
|
+
sudo: {
|
|
4357
|
+
/**
|
|
4358
|
+
* Authenticates the sudo key and dispatches a function call with `Root` origin.
|
|
4359
|
+
*
|
|
4360
|
+
* The dispatch origin for this call must be _Signed_.
|
|
4361
|
+
*
|
|
4362
|
+
* ## Complexity
|
|
4363
|
+
* - O(1).
|
|
4364
|
+
*
|
|
4365
|
+
* @param {AstarRuntimeRuntimeCallLike} call
|
|
4366
|
+
**/
|
|
4367
|
+
sudo: GenericTxCall<(call: AstarRuntimeRuntimeCallLike) => ChainSubmittableExtrinsic<{
|
|
4368
|
+
pallet: 'Sudo';
|
|
4369
|
+
palletCall: {
|
|
4370
|
+
name: 'Sudo';
|
|
4371
|
+
params: {
|
|
4372
|
+
call: AstarRuntimeRuntimeCallLike;
|
|
4373
|
+
};
|
|
4374
|
+
};
|
|
4375
|
+
}>>;
|
|
4376
|
+
/**
|
|
4377
|
+
* Authenticates the sudo key and dispatches a function call with `Root` origin.
|
|
4378
|
+
* This function does not check the weight of the call, and instead allows the
|
|
4379
|
+
* Sudo user to specify the weight of the call.
|
|
4380
|
+
*
|
|
4381
|
+
* The dispatch origin for this call must be _Signed_.
|
|
4382
|
+
*
|
|
4383
|
+
* ## Complexity
|
|
4384
|
+
* - O(1).
|
|
4385
|
+
*
|
|
4386
|
+
* @param {AstarRuntimeRuntimeCallLike} call
|
|
4387
|
+
* @param {SpWeightsWeightV2Weight} weight
|
|
4388
|
+
**/
|
|
4389
|
+
sudoUncheckedWeight: GenericTxCall<(call: AstarRuntimeRuntimeCallLike, weight: SpWeightsWeightV2Weight) => ChainSubmittableExtrinsic<{
|
|
4390
|
+
pallet: 'Sudo';
|
|
4391
|
+
palletCall: {
|
|
4392
|
+
name: 'SudoUncheckedWeight';
|
|
4393
|
+
params: {
|
|
4394
|
+
call: AstarRuntimeRuntimeCallLike;
|
|
4395
|
+
weight: SpWeightsWeightV2Weight;
|
|
4396
|
+
};
|
|
4397
|
+
};
|
|
4398
|
+
}>>;
|
|
4399
|
+
/**
|
|
4400
|
+
* Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo
|
|
4401
|
+
* key.
|
|
4402
|
+
*
|
|
4403
|
+
* The dispatch origin for this call must be _Signed_.
|
|
4404
|
+
*
|
|
4405
|
+
* ## Complexity
|
|
4406
|
+
* - O(1).
|
|
4407
|
+
*
|
|
4408
|
+
* @param {MultiAddressLike} new_
|
|
4409
|
+
**/
|
|
4410
|
+
setKey: GenericTxCall<(new_: MultiAddressLike) => ChainSubmittableExtrinsic<{
|
|
4411
|
+
pallet: 'Sudo';
|
|
4412
|
+
palletCall: {
|
|
4413
|
+
name: 'SetKey';
|
|
4414
|
+
params: {
|
|
4415
|
+
new: MultiAddressLike;
|
|
4416
|
+
};
|
|
4417
|
+
};
|
|
4418
|
+
}>>;
|
|
4419
|
+
/**
|
|
4420
|
+
* Authenticates the sudo key and dispatches a function call with `Signed` origin from
|
|
4421
|
+
* a given account.
|
|
4422
|
+
*
|
|
4423
|
+
* The dispatch origin for this call must be _Signed_.
|
|
4424
|
+
*
|
|
4425
|
+
* ## Complexity
|
|
4426
|
+
* - O(1).
|
|
4427
|
+
*
|
|
4428
|
+
* @param {MultiAddressLike} who
|
|
4429
|
+
* @param {AstarRuntimeRuntimeCallLike} call
|
|
4430
|
+
**/
|
|
4431
|
+
sudoAs: GenericTxCall<(who: MultiAddressLike, call: AstarRuntimeRuntimeCallLike) => ChainSubmittableExtrinsic<{
|
|
4432
|
+
pallet: 'Sudo';
|
|
4433
|
+
palletCall: {
|
|
4434
|
+
name: 'SudoAs';
|
|
4435
|
+
params: {
|
|
4436
|
+
who: MultiAddressLike;
|
|
4437
|
+
call: AstarRuntimeRuntimeCallLike;
|
|
4438
|
+
};
|
|
4439
|
+
};
|
|
4440
|
+
}>>;
|
|
4441
|
+
/**
|
|
4442
|
+
* Generic pallet tx call
|
|
4443
|
+
**/
|
|
4444
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
4445
|
+
};
|
|
4446
|
+
/**
|
|
4447
|
+
* Pallet `StaticPriceProvider`'s transaction calls
|
|
4448
|
+
**/
|
|
4449
|
+
staticPriceProvider: {
|
|
4450
|
+
/**
|
|
4451
|
+
* Privileged action used to set the active native currency price.
|
|
4452
|
+
*
|
|
4453
|
+
* This is a temporary solution before oracle is implemented & operational.
|
|
4454
|
+
*
|
|
4455
|
+
* @param {FixedU64} price
|
|
4456
|
+
**/
|
|
4457
|
+
forceSetPrice: GenericTxCall<(price: FixedU64) => ChainSubmittableExtrinsic<{
|
|
4458
|
+
pallet: 'StaticPriceProvider';
|
|
4459
|
+
palletCall: {
|
|
4460
|
+
name: 'ForceSetPrice';
|
|
4461
|
+
params: {
|
|
4462
|
+
price: FixedU64;
|
|
4463
|
+
};
|
|
4464
|
+
};
|
|
4465
|
+
}>>;
|
|
4466
|
+
/**
|
|
4467
|
+
* Generic pallet tx call
|
|
4468
|
+
**/
|
|
4469
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
4470
|
+
};
|
|
4471
|
+
/**
|
|
4472
|
+
* Pallet `DappStakingMigration`'s transaction calls
|
|
4473
|
+
**/
|
|
4474
|
+
dappStakingMigration: {
|
|
4475
|
+
/**
|
|
4476
|
+
* Attempt to execute migration steps, consuming up to the specified amount of weight.
|
|
4477
|
+
* If no weight is specified, max allowed weight is used.
|
|
4478
|
+
*
|
|
4479
|
+
* Regardless of the specified weight limit, it will be clamped between the minimum & maximum allowed values.
|
|
4480
|
+
* This means that even if user specifies `Weight::zero()` as the limit,
|
|
4481
|
+
* the call will be charged & executed using the minimum allowed weight.
|
|
4482
|
+
*
|
|
4483
|
+
* @param {SpWeightsWeightV2Weight | undefined} weightLimit
|
|
4484
|
+
**/
|
|
4485
|
+
migrate: GenericTxCall<(weightLimit: SpWeightsWeightV2Weight | undefined) => ChainSubmittableExtrinsic<{
|
|
4486
|
+
pallet: 'DappStakingMigration';
|
|
4487
|
+
palletCall: {
|
|
4488
|
+
name: 'Migrate';
|
|
4489
|
+
params: {
|
|
4490
|
+
weightLimit: SpWeightsWeightV2Weight | undefined;
|
|
4491
|
+
};
|
|
4492
|
+
};
|
|
4493
|
+
}>>;
|
|
4494
|
+
/**
|
|
4495
|
+
* Generic pallet tx call
|
|
4496
|
+
**/
|
|
4497
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
4498
|
+
};
|
|
4499
|
+
/**
|
|
4500
|
+
* Pallet `DappsStaking`'s transaction calls
|
|
4501
|
+
**/
|
|
4502
|
+
dappsStaking: {
|
|
4503
|
+
/**
|
|
4504
|
+
* Used to register contract for dapps staking.
|
|
4505
|
+
* The origin account used is treated as the `developer` account.
|
|
4506
|
+
*
|
|
4507
|
+
* Depending on the pallet configuration/state it is possible that developer needs to be whitelisted prior to registration.
|
|
4508
|
+
*
|
|
4509
|
+
* As part of this call, `RegisterDeposit` will be reserved from devs account.
|
|
4510
|
+
*
|
|
4511
|
+
* @param {AccountId32Like} developer
|
|
4512
|
+
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
4513
|
+
**/
|
|
4514
|
+
register: GenericTxCall<(developer: AccountId32Like, contractId: AstarPrimitivesDappStakingSmartContract) => ChainSubmittableExtrinsic<{
|
|
4515
|
+
pallet: 'DappsStaking';
|
|
4516
|
+
palletCall: {
|
|
4517
|
+
name: 'Register';
|
|
4518
|
+
params: {
|
|
4519
|
+
developer: AccountId32Like;
|
|
4520
|
+
contractId: AstarPrimitivesDappStakingSmartContract;
|
|
4521
|
+
};
|
|
4522
|
+
};
|
|
4523
|
+
}>>;
|
|
4524
|
+
/**
|
|
4525
|
+
* Unregister existing contract from dapps staking, making it ineligible for rewards from current era onwards.
|
|
4526
|
+
* This must be called by the root (at the moment).
|
|
4527
|
+
*
|
|
4528
|
+
* Deposit is returned to the developer but existing stakers should manually call `withdraw_from_unregistered` if they wish to to unstake.
|
|
4529
|
+
*
|
|
4530
|
+
* **Warning**: After this action ,contract can not be registered for dapps staking again.
|
|
4531
|
+
*
|
|
4532
|
+
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
4533
|
+
**/
|
|
4534
|
+
unregister: GenericTxCall<(contractId: AstarPrimitivesDappStakingSmartContract) => ChainSubmittableExtrinsic<{
|
|
4535
|
+
pallet: 'DappsStaking';
|
|
4536
|
+
palletCall: {
|
|
4537
|
+
name: 'Unregister';
|
|
4538
|
+
params: {
|
|
4539
|
+
contractId: AstarPrimitivesDappStakingSmartContract;
|
|
4540
|
+
};
|
|
4541
|
+
};
|
|
4542
|
+
}>>;
|
|
4543
|
+
/**
|
|
4544
|
+
* Withdraw locked funds from a contract that was unregistered.
|
|
4545
|
+
*
|
|
4546
|
+
* Funds don't need to undergo the unbonding period - they are returned immediately to the staker's free balance.
|
|
4547
|
+
*
|
|
4548
|
+
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
4549
|
+
**/
|
|
4550
|
+
withdrawFromUnregistered: GenericTxCall<(contractId: AstarPrimitivesDappStakingSmartContract) => ChainSubmittableExtrinsic<{
|
|
4551
|
+
pallet: 'DappsStaking';
|
|
4552
|
+
palletCall: {
|
|
4553
|
+
name: 'WithdrawFromUnregistered';
|
|
4554
|
+
params: {
|
|
4555
|
+
contractId: AstarPrimitivesDappStakingSmartContract;
|
|
4556
|
+
};
|
|
4557
|
+
};
|
|
4558
|
+
}>>;
|
|
4559
|
+
/**
|
|
4560
|
+
* Lock up and stake balance of the origin account.
|
|
4561
|
+
*
|
|
4562
|
+
* `value` must be more than the `minimum_balance` specified by `MinimumStakingAmount`
|
|
4563
|
+
* unless account already has bonded value equal or more than 'minimum_balance'.
|
|
4564
|
+
*
|
|
4565
|
+
* The dispatch origin for this call must be _Signed_ by the staker's account.
|
|
4566
|
+
*
|
|
4567
|
+
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
4568
|
+
* @param {bigint} value
|
|
4569
|
+
**/
|
|
4570
|
+
bondAndStake: GenericTxCall<(contractId: AstarPrimitivesDappStakingSmartContract, value: bigint) => ChainSubmittableExtrinsic<{
|
|
4571
|
+
pallet: 'DappsStaking';
|
|
4572
|
+
palletCall: {
|
|
4573
|
+
name: 'BondAndStake';
|
|
4574
|
+
params: {
|
|
4575
|
+
contractId: AstarPrimitivesDappStakingSmartContract;
|
|
4576
|
+
value: bigint;
|
|
4577
|
+
};
|
|
4578
|
+
};
|
|
4579
|
+
}>>;
|
|
4580
|
+
/**
|
|
4581
|
+
* Start unbonding process and unstake balance from the contract.
|
|
4582
|
+
*
|
|
4583
|
+
* The unstaked amount will no longer be eligible for rewards but still won't be unlocked.
|
|
4584
|
+
* User needs to wait for the unbonding period to finish before being able to withdraw
|
|
4585
|
+
* the funds via `withdraw_unbonded` call.
|
|
4586
|
+
*
|
|
4587
|
+
* In case remaining staked balance on contract is below minimum staking amount,
|
|
4588
|
+
* entire stake for that contract will be unstaked.
|
|
4589
|
+
*
|
|
4590
|
+
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
4591
|
+
* @param {bigint} value
|
|
4592
|
+
**/
|
|
4593
|
+
unbondAndUnstake: GenericTxCall<(contractId: AstarPrimitivesDappStakingSmartContract, value: bigint) => ChainSubmittableExtrinsic<{
|
|
4594
|
+
pallet: 'DappsStaking';
|
|
4595
|
+
palletCall: {
|
|
4596
|
+
name: 'UnbondAndUnstake';
|
|
4597
|
+
params: {
|
|
4598
|
+
contractId: AstarPrimitivesDappStakingSmartContract;
|
|
4599
|
+
value: bigint;
|
|
4600
|
+
};
|
|
4601
|
+
};
|
|
4602
|
+
}>>;
|
|
4603
|
+
/**
|
|
4604
|
+
* Withdraw all funds that have completed the unbonding process.
|
|
4605
|
+
*
|
|
4606
|
+
* If there are unbonding chunks which will be fully unbonded in future eras,
|
|
4607
|
+
* they will remain and can be withdrawn later.
|
|
4608
|
+
*
|
|
4609
|
+
**/
|
|
4610
|
+
withdrawUnbonded: GenericTxCall<() => ChainSubmittableExtrinsic<{
|
|
4611
|
+
pallet: 'DappsStaking';
|
|
4612
|
+
palletCall: {
|
|
4613
|
+
name: 'WithdrawUnbonded';
|
|
4614
|
+
};
|
|
4615
|
+
}>>;
|
|
4616
|
+
/**
|
|
4617
|
+
* Transfer nomination from one contract to another.
|
|
4618
|
+
*
|
|
4619
|
+
* Same rules as for `bond_and_stake` and `unbond_and_unstake` apply.
|
|
4620
|
+
* Minor difference is that there is no unbonding period so this call won't
|
|
4621
|
+
* check whether max number of unbonding chunks is exceeded.
|
|
4622
|
+
*
|
|
4623
|
+
*
|
|
4624
|
+
* @param {AstarPrimitivesDappStakingSmartContract} originContractId
|
|
4625
|
+
* @param {bigint} value
|
|
4626
|
+
* @param {AstarPrimitivesDappStakingSmartContract} targetContractId
|
|
4627
|
+
**/
|
|
4628
|
+
nominationTransfer: GenericTxCall<(originContractId: AstarPrimitivesDappStakingSmartContract, value: bigint, targetContractId: AstarPrimitivesDappStakingSmartContract) => ChainSubmittableExtrinsic<{
|
|
4629
|
+
pallet: 'DappsStaking';
|
|
4630
|
+
palletCall: {
|
|
4631
|
+
name: 'NominationTransfer';
|
|
4632
|
+
params: {
|
|
4633
|
+
originContractId: AstarPrimitivesDappStakingSmartContract;
|
|
4634
|
+
value: bigint;
|
|
4635
|
+
targetContractId: AstarPrimitivesDappStakingSmartContract;
|
|
4636
|
+
};
|
|
4637
|
+
};
|
|
4638
|
+
}>>;
|
|
4639
|
+
/**
|
|
4640
|
+
* Claim earned staker rewards for the oldest unclaimed era.
|
|
4641
|
+
* In order to claim multiple eras, this call has to be called multiple times.
|
|
4642
|
+
*
|
|
4643
|
+
* The rewards are always added to the staker's free balance (account) but depending on the reward destination configuration,
|
|
4644
|
+
* they might be immediately re-staked.
|
|
4645
|
+
*
|
|
4646
|
+
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
4647
|
+
**/
|
|
4648
|
+
claimStaker: GenericTxCall<(contractId: AstarPrimitivesDappStakingSmartContract) => ChainSubmittableExtrinsic<{
|
|
4649
|
+
pallet: 'DappsStaking';
|
|
4650
|
+
palletCall: {
|
|
4651
|
+
name: 'ClaimStaker';
|
|
4652
|
+
params: {
|
|
4653
|
+
contractId: AstarPrimitivesDappStakingSmartContract;
|
|
4654
|
+
};
|
|
4655
|
+
};
|
|
4656
|
+
}>>;
|
|
4657
|
+
/**
|
|
4658
|
+
* Claim earned dapp rewards for the specified era.
|
|
4659
|
+
*
|
|
4660
|
+
* Call must ensure that the specified era is eligible for reward payout and that it hasn't already been paid out for the dapp.
|
|
4661
|
+
*
|
|
4662
|
+
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
4663
|
+
* @param {number} era
|
|
4664
|
+
**/
|
|
4665
|
+
claimDapp: GenericTxCall<(contractId: AstarPrimitivesDappStakingSmartContract, era: number) => ChainSubmittableExtrinsic<{
|
|
4666
|
+
pallet: 'DappsStaking';
|
|
4667
|
+
palletCall: {
|
|
4668
|
+
name: 'ClaimDapp';
|
|
4669
|
+
params: {
|
|
4670
|
+
contractId: AstarPrimitivesDappStakingSmartContract;
|
|
4671
|
+
era: number;
|
|
4672
|
+
};
|
|
4673
|
+
};
|
|
4674
|
+
}>>;
|
|
4675
|
+
/**
|
|
4676
|
+
* Force a new era at the start of the next block.
|
|
4677
|
+
*
|
|
4678
|
+
* The dispatch origin must be Root.
|
|
4679
|
+
*
|
|
4680
|
+
**/
|
|
4681
|
+
forceNewEra: GenericTxCall<() => ChainSubmittableExtrinsic<{
|
|
4682
|
+
pallet: 'DappsStaking';
|
|
4683
|
+
palletCall: {
|
|
4684
|
+
name: 'ForceNewEra';
|
|
4685
|
+
};
|
|
4686
|
+
}>>;
|
|
4687
|
+
/**
|
|
4688
|
+
* `true` will disable pallet, enabling maintenance mode. `false` will do the opposite.
|
|
4689
|
+
*
|
|
4690
|
+
* The dispatch origin must be Root.
|
|
4691
|
+
*
|
|
4692
|
+
* @param {boolean} enableMaintenance
|
|
4693
|
+
**/
|
|
4694
|
+
maintenanceMode: GenericTxCall<(enableMaintenance: boolean) => ChainSubmittableExtrinsic<{
|
|
4695
|
+
pallet: 'DappsStaking';
|
|
4696
|
+
palletCall: {
|
|
4697
|
+
name: 'MaintenanceMode';
|
|
4698
|
+
params: {
|
|
4699
|
+
enableMaintenance: boolean;
|
|
4700
|
+
};
|
|
4701
|
+
};
|
|
4702
|
+
}>>;
|
|
4703
|
+
/**
|
|
4704
|
+
* Used to set reward destination for staker rewards.
|
|
4705
|
+
*
|
|
4706
|
+
* User must be an active staker in order to use this call.
|
|
4707
|
+
* This will apply to all existing unclaimed rewards.
|
|
4708
|
+
*
|
|
4709
|
+
* @param {PalletDappsStakingRewardDestination} rewardDestination
|
|
4710
|
+
**/
|
|
4711
|
+
setRewardDestination: GenericTxCall<(rewardDestination: PalletDappsStakingRewardDestination) => ChainSubmittableExtrinsic<{
|
|
4712
|
+
pallet: 'DappsStaking';
|
|
4713
|
+
palletCall: {
|
|
4714
|
+
name: 'SetRewardDestination';
|
|
4715
|
+
params: {
|
|
4716
|
+
rewardDestination: PalletDappsStakingRewardDestination;
|
|
4717
|
+
};
|
|
4718
|
+
};
|
|
4719
|
+
}>>;
|
|
4720
|
+
/**
|
|
4721
|
+
* Used to force set `ContractEraStake` storage values.
|
|
4722
|
+
* The purpose of this call is only for fixing one of the issues detected with dapps-staking.
|
|
4723
|
+
*
|
|
4724
|
+
* The dispatch origin must be Root.
|
|
4725
|
+
*
|
|
4726
|
+
* @param {AstarPrimitivesDappStakingSmartContract} contract
|
|
4727
|
+
* @param {number} era
|
|
4728
|
+
* @param {PalletDappsStakingContractStakeInfo} contractStakeInfo
|
|
4729
|
+
**/
|
|
4730
|
+
setContractStakeInfo: GenericTxCall<(contract: AstarPrimitivesDappStakingSmartContract, era: number, contractStakeInfo: PalletDappsStakingContractStakeInfo) => ChainSubmittableExtrinsic<{
|
|
4731
|
+
pallet: 'DappsStaking';
|
|
4732
|
+
palletCall: {
|
|
4733
|
+
name: 'SetContractStakeInfo';
|
|
4734
|
+
params: {
|
|
4735
|
+
contract: AstarPrimitivesDappStakingSmartContract;
|
|
4736
|
+
era: number;
|
|
4737
|
+
contractStakeInfo: PalletDappsStakingContractStakeInfo;
|
|
4738
|
+
};
|
|
4739
|
+
};
|
|
4740
|
+
}>>;
|
|
4741
|
+
/**
|
|
4742
|
+
* Used to burn unclaimed & stale rewards from an unregistered contract.
|
|
4743
|
+
*
|
|
4744
|
+
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
4745
|
+
* @param {number} era
|
|
4746
|
+
**/
|
|
4747
|
+
burnStaleReward: GenericTxCall<(contractId: AstarPrimitivesDappStakingSmartContract, era: number) => ChainSubmittableExtrinsic<{
|
|
4748
|
+
pallet: 'DappsStaking';
|
|
4749
|
+
palletCall: {
|
|
4750
|
+
name: 'BurnStaleReward';
|
|
4751
|
+
params: {
|
|
4752
|
+
contractId: AstarPrimitivesDappStakingSmartContract;
|
|
4753
|
+
era: number;
|
|
4754
|
+
};
|
|
4755
|
+
};
|
|
4756
|
+
}>>;
|
|
4757
|
+
/**
|
|
4758
|
+
* Claim earned staker rewards for the given staker, and the oldest unclaimed era.
|
|
4759
|
+
* In order to claim multiple eras, this call has to be called multiple times.
|
|
4760
|
+
*
|
|
4761
|
+
* This call can only be used during the pallet decommission process.
|
|
4762
|
+
*
|
|
4763
|
+
* @param {AccountId32Like} staker
|
|
4764
|
+
* @param {AstarPrimitivesDappStakingSmartContract} contractId
|
|
4765
|
+
**/
|
|
4766
|
+
claimStakerFor: GenericTxCall<(staker: AccountId32Like, contractId: AstarPrimitivesDappStakingSmartContract) => ChainSubmittableExtrinsic<{
|
|
4767
|
+
pallet: 'DappsStaking';
|
|
4768
|
+
palletCall: {
|
|
4769
|
+
name: 'ClaimStakerFor';
|
|
4770
|
+
params: {
|
|
4771
|
+
staker: AccountId32Like;
|
|
4772
|
+
contractId: AstarPrimitivesDappStakingSmartContract;
|
|
4773
|
+
};
|
|
4774
|
+
};
|
|
4775
|
+
}>>;
|
|
4776
|
+
/**
|
|
4777
|
+
* Used to set reward destination for staker rewards, for the given staker
|
|
4778
|
+
*
|
|
4779
|
+
*
|
|
4780
|
+
* @param {AccountId32Like} staker
|
|
4781
|
+
* @param {PalletDappsStakingRewardDestination} rewardDestination
|
|
4782
|
+
**/
|
|
4783
|
+
setRewardDestinationFor: GenericTxCall<(staker: AccountId32Like, rewardDestination: PalletDappsStakingRewardDestination) => ChainSubmittableExtrinsic<{
|
|
4784
|
+
pallet: 'DappsStaking';
|
|
4785
|
+
palletCall: {
|
|
4786
|
+
name: 'SetRewardDestinationFor';
|
|
4787
|
+
params: {
|
|
4788
|
+
staker: AccountId32Like;
|
|
4789
|
+
rewardDestination: PalletDappsStakingRewardDestination;
|
|
4790
|
+
};
|
|
4791
|
+
};
|
|
4792
|
+
}>>;
|
|
4793
|
+
/**
|
|
4794
|
+
* Enable the `decommission` flag for the pallet.
|
|
4795
|
+
*
|
|
4796
|
+
* The dispatch origin must be Root.
|
|
4797
|
+
*
|
|
4798
|
+
**/
|
|
4799
|
+
decommission: GenericTxCall<() => ChainSubmittableExtrinsic<{
|
|
4800
|
+
pallet: 'DappsStaking';
|
|
4801
|
+
palletCall: {
|
|
4802
|
+
name: 'Decommission';
|
|
4803
|
+
};
|
|
4804
|
+
}>>;
|
|
4805
|
+
/**
|
|
4806
|
+
* Generic pallet tx call
|
|
4807
|
+
**/
|
|
4808
|
+
[callName: string]: GenericTxCall<TxCall>;
|
|
4809
|
+
};
|
|
4810
|
+
}
|