@dedot/chaintypes 0.177.0 → 0.179.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kusama-asset-hub/events.d.ts +50 -0
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/tx.d.ts +6 -2
- package/kusama-asset-hub/types.d.ts +57 -3
- package/package.json +2 -2
- package/westend-asset-hub/consts.d.ts +35 -1
- package/westend-asset-hub/errors.d.ts +23 -1
- package/westend-asset-hub/events.d.ts +10 -0
- package/westend-asset-hub/index.d.ts +3 -1
- package/westend-asset-hub/query.d.ts +118 -14
- package/westend-asset-hub/runtime.d.ts +80 -7
- package/westend-asset-hub/tx.d.ts +44 -18
- package/westend-asset-hub/types.d.ts +352 -58
- package/westend-asset-hub/view-functions.d.ts +79 -2
|
@@ -21,8 +21,9 @@ import type {
|
|
|
21
21
|
SpConsensusSlotsSlotDuration,
|
|
22
22
|
SpConsensusAuraSr25519AppSr25519Public,
|
|
23
23
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
24
|
+
CumulusPrimitivesCoreNextSlotSchedule,
|
|
24
25
|
SpConsensusSlotsSlot,
|
|
25
|
-
|
|
26
|
+
SpRuntimeBlockLazyBlock,
|
|
26
27
|
SpRuntimeExtrinsicInclusionMode,
|
|
27
28
|
SpCoreOpaqueMetadata,
|
|
28
29
|
SpRuntimeTransactionValidityTransactionValidityError,
|
|
@@ -52,6 +53,8 @@ import type {
|
|
|
52
53
|
XcmRuntimeApisAuthorizedAliasesError,
|
|
53
54
|
AssetsCommonRuntimeApiFungiblesAccessError,
|
|
54
55
|
CumulusPrimitivesCoreCollationInfo,
|
|
56
|
+
PalletReviveEvmApiRpcTypesGenBlock,
|
|
57
|
+
PalletReviveEvmBlockHashReceiptGasInfo,
|
|
55
58
|
PalletRevivePrimitivesContractResult,
|
|
56
59
|
PalletRevivePrimitivesContractResultInstantiateReturnValue,
|
|
57
60
|
PalletRevivePrimitivesCode,
|
|
@@ -61,7 +64,9 @@ import type {
|
|
|
61
64
|
PalletRevivePrimitivesCodeUploadReturnValue,
|
|
62
65
|
PalletRevivePrimitivesContractAccessError,
|
|
63
66
|
PalletReviveEvmApiDebugRpcTypesTrace,
|
|
67
|
+
SpRuntimeBlock,
|
|
64
68
|
PalletReviveEvmApiDebugRpcTypesTracerType,
|
|
69
|
+
PalletRevivePrimitivesBalanceConversionError,
|
|
65
70
|
} from './types.js';
|
|
66
71
|
|
|
67
72
|
export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
|
|
@@ -122,6 +127,27 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
122
127
|
**/
|
|
123
128
|
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
124
129
|
};
|
|
130
|
+
/**
|
|
131
|
+
* @runtimeapi: SlotSchedule - 0x5bfafc20876faaf0
|
|
132
|
+
**/
|
|
133
|
+
slotSchedule: {
|
|
134
|
+
/**
|
|
135
|
+
* Get the block production schedule for the next relay chain slot.
|
|
136
|
+
*
|
|
137
|
+
* - `num_cores`: The number of cores assigned to this parachain
|
|
138
|
+
*
|
|
139
|
+
* Returns a [`NextSlotSchedule`].
|
|
140
|
+
*
|
|
141
|
+
* @callname: SlotSchedule_next_slot_schedule
|
|
142
|
+
* @param {number} num_cores
|
|
143
|
+
**/
|
|
144
|
+
nextSlotSchedule: GenericRuntimeApiMethod<Rv, (numCores: number) => Promise<CumulusPrimitivesCoreNextSlotSchedule>>;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Generic runtime api call
|
|
148
|
+
**/
|
|
149
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
150
|
+
};
|
|
125
151
|
/**
|
|
126
152
|
* @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
|
|
127
153
|
**/
|
|
@@ -164,9 +190,9 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
164
190
|
* Execute the given block.
|
|
165
191
|
*
|
|
166
192
|
* @callname: Core_execute_block
|
|
167
|
-
* @param {
|
|
193
|
+
* @param {SpRuntimeBlockLazyBlock} block
|
|
168
194
|
**/
|
|
169
|
-
executeBlock: GenericRuntimeApiMethod<Rv, (block:
|
|
195
|
+
executeBlock: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlockLazyBlock) => Promise<[]>>;
|
|
170
196
|
|
|
171
197
|
/**
|
|
172
198
|
* Initialize a block with the given header and return the runtime executive mode.
|
|
@@ -259,12 +285,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
259
285
|
* Check that the inherents are valid. The inherent data will vary from chain to chain.
|
|
260
286
|
*
|
|
261
287
|
* @callname: BlockBuilder_check_inherents
|
|
262
|
-
* @param {
|
|
288
|
+
* @param {SpRuntimeBlockLazyBlock} block
|
|
263
289
|
* @param {SpInherentsInherentData} data
|
|
264
290
|
**/
|
|
265
291
|
checkInherents: GenericRuntimeApiMethod<
|
|
266
292
|
Rv,
|
|
267
|
-
(block:
|
|
293
|
+
(block: SpRuntimeBlockLazyBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
268
294
|
>;
|
|
269
295
|
|
|
270
296
|
/**
|
|
@@ -1019,7 +1045,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1019
1045
|
erasStakersPageCount: GenericRuntimeApiMethod<Rv, (era: number, account: AccountId32Like) => Promise<number>>;
|
|
1020
1046
|
|
|
1021
1047
|
/**
|
|
1022
|
-
* Returns true if validator `account` has pages to be claimed for the given era.
|
|
1048
|
+
* Returns true if a validator `account` has pages to be claimed for the given era.
|
|
1023
1049
|
*
|
|
1024
1050
|
* @callname: StakingApi_pending_rewards
|
|
1025
1051
|
* @param {number} era
|
|
@@ -1093,6 +1119,34 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1093
1119
|
* @runtimeapi: ReviveApi - 0x8c403e5c4a9fd442
|
|
1094
1120
|
**/
|
|
1095
1121
|
reviveApi: {
|
|
1122
|
+
/**
|
|
1123
|
+
* Returns the current ETH block.
|
|
1124
|
+
*
|
|
1125
|
+
* This is one block behind the substrate block.
|
|
1126
|
+
*
|
|
1127
|
+
* @callname: ReviveApi_eth_block
|
|
1128
|
+
**/
|
|
1129
|
+
ethBlock: GenericRuntimeApiMethod<Rv, () => Promise<PalletReviveEvmApiRpcTypesGenBlock>>;
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* Returns the ETH block hash for the given block number.
|
|
1133
|
+
*
|
|
1134
|
+
* @callname: ReviveApi_eth_block_hash
|
|
1135
|
+
* @param {U256} number
|
|
1136
|
+
**/
|
|
1137
|
+
ethBlockHash: GenericRuntimeApiMethod<Rv, (number: U256) => Promise<H256 | undefined>>;
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* The details needed to reconstruct the receipt information offchain.
|
|
1141
|
+
*
|
|
1142
|
+
* # Note
|
|
1143
|
+
*
|
|
1144
|
+
* Each entry corresponds to the appropriate Ethereum transaction in the current block.
|
|
1145
|
+
*
|
|
1146
|
+
* @callname: ReviveApi_eth_receipt_data
|
|
1147
|
+
**/
|
|
1148
|
+
ethReceiptData: GenericRuntimeApiMethod<Rv, () => Promise<Array<PalletReviveEvmBlockHashReceiptGasInfo>>>;
|
|
1149
|
+
|
|
1096
1150
|
/**
|
|
1097
1151
|
* Returns the block gas limit.
|
|
1098
1152
|
*
|
|
@@ -1308,7 +1362,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1308
1362
|
*
|
|
1309
1363
|
* @callname: ReviveApi_block_author
|
|
1310
1364
|
**/
|
|
1311
|
-
blockAuthor: GenericRuntimeApiMethod<Rv, () => Promise<H160
|
|
1365
|
+
blockAuthor: GenericRuntimeApiMethod<Rv, () => Promise<H160>>;
|
|
1312
1366
|
|
|
1313
1367
|
/**
|
|
1314
1368
|
* Get the H160 address associated to this account id
|
|
@@ -1318,6 +1372,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1318
1372
|
**/
|
|
1319
1373
|
address: GenericRuntimeApiMethod<Rv, (accountId: AccountId32Like) => Promise<H160>>;
|
|
1320
1374
|
|
|
1375
|
+
/**
|
|
1376
|
+
* Get the account id associated to this H160 address.
|
|
1377
|
+
*
|
|
1378
|
+
* @callname: ReviveApi_account_id
|
|
1379
|
+
* @param {H160} address
|
|
1380
|
+
**/
|
|
1381
|
+
accountId: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<AccountId32>>;
|
|
1382
|
+
|
|
1321
1383
|
/**
|
|
1322
1384
|
* The address used to call the runtime's pallets dispatchables
|
|
1323
1385
|
*
|
|
@@ -1333,6 +1395,17 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1333
1395
|
**/
|
|
1334
1396
|
code: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<Bytes>>;
|
|
1335
1397
|
|
|
1398
|
+
/**
|
|
1399
|
+
* Construct the new balance and dust components of this EVM balance.
|
|
1400
|
+
*
|
|
1401
|
+
* @callname: ReviveApi_new_balance_with_dust
|
|
1402
|
+
* @param {U256} balance
|
|
1403
|
+
**/
|
|
1404
|
+
newBalanceWithDust: GenericRuntimeApiMethod<
|
|
1405
|
+
Rv,
|
|
1406
|
+
(balance: U256) => Promise<Result<[bigint, number], PalletRevivePrimitivesBalanceConversionError>>
|
|
1407
|
+
>;
|
|
1408
|
+
|
|
1336
1409
|
/**
|
|
1337
1410
|
* Generic runtime api call
|
|
1338
1411
|
**/
|
|
@@ -5060,9 +5060,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
5060
5060
|
*
|
|
5061
5061
|
* A deposit will be taken from the signer account.
|
|
5062
5062
|
*
|
|
5063
|
-
* - `origin`: Must be Signed
|
|
5064
|
-
*
|
|
5065
|
-
* - `id`: The identifier of the asset for the account to be created
|
|
5063
|
+
* - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
|
|
5064
|
+
* to be taken.
|
|
5065
|
+
* - `id`: The identifier of the asset for the account to be created, the asset status must
|
|
5066
|
+
* be live.
|
|
5066
5067
|
* - `who`: The account to be created.
|
|
5067
5068
|
*
|
|
5068
5069
|
* Emits `Touched` event when successful.
|
|
@@ -8745,9 +8746,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8745
8746
|
*
|
|
8746
8747
|
* A deposit will be taken from the signer account.
|
|
8747
8748
|
*
|
|
8748
|
-
* - `origin`: Must be Signed
|
|
8749
|
-
*
|
|
8750
|
-
* - `id`: The identifier of the asset for the account to be created
|
|
8749
|
+
* - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
|
|
8750
|
+
* to be taken.
|
|
8751
|
+
* - `id`: The identifier of the asset for the account to be created, the asset status must
|
|
8752
|
+
* be live.
|
|
8751
8753
|
* - `who`: The account to be created.
|
|
8752
8754
|
*
|
|
8753
8755
|
* Emits `Touched` event when successful.
|
|
@@ -10058,9 +10060,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10058
10060
|
*
|
|
10059
10061
|
* A deposit will be taken from the signer account.
|
|
10060
10062
|
*
|
|
10061
|
-
* - `origin`: Must be Signed
|
|
10062
|
-
*
|
|
10063
|
-
* - `id`: The identifier of the asset for the account to be created
|
|
10063
|
+
* - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
|
|
10064
|
+
* to be taken.
|
|
10065
|
+
* - `id`: The identifier of the asset for the account to be created, the asset status must
|
|
10066
|
+
* be live.
|
|
10064
10067
|
* - `who`: The account to be created.
|
|
10065
10068
|
*
|
|
10066
10069
|
* Emits `Touched` event when successful.
|
|
@@ -10449,9 +10452,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10449
10452
|
* # Parameters
|
|
10450
10453
|
*
|
|
10451
10454
|
* * `payload`: The encoded [`crate::evm::TransactionSigned`].
|
|
10452
|
-
* * `gas_limit`: The gas limit enforced during contract execution.
|
|
10453
|
-
* * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
|
|
10454
|
-
* storage usage.
|
|
10455
10455
|
*
|
|
10456
10456
|
* # Note
|
|
10457
10457
|
*
|
|
@@ -10636,6 +10636,20 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10636
10636
|
* Same as [`Self::instantiate_with_code`], but intended to be dispatched **only**
|
|
10637
10637
|
* by an EVM transaction through the EVM compatibility layer.
|
|
10638
10638
|
*
|
|
10639
|
+
* # Parameters
|
|
10640
|
+
*
|
|
10641
|
+
* * `value`: The balance to transfer from the `origin` to the newly created contract.
|
|
10642
|
+
* * `gas_limit`: The gas limit enforced when executing the constructor.
|
|
10643
|
+
* * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
|
|
10644
|
+
* from the caller to pay for the storage consumed.
|
|
10645
|
+
* * `code`: The contract code to deploy in raw bytes.
|
|
10646
|
+
* * `data`: The input data to pass to the contract constructor.
|
|
10647
|
+
* * `salt`: Used for the address derivation. If `Some` is supplied then `CREATE2`
|
|
10648
|
+
* semantics are used. If `None` then `CRATE1` is used.
|
|
10649
|
+
* * `transaction_encoded`: The RLP encoding of the signed Ethereum transaction,
|
|
10650
|
+
* represented as [crate::evm::TransactionSigned], provided by the Ethereum wallet. This
|
|
10651
|
+
* is used for building the Ethereum transaction root.
|
|
10652
|
+
*
|
|
10639
10653
|
* Calling this dispatchable ensures that the origin's nonce is bumped only once,
|
|
10640
10654
|
* via the `CheckNonce` transaction extension. In contrast, [`Self::instantiate_with_code`]
|
|
10641
10655
|
* also bumps the nonce after contract instantiation, since it may be invoked multiple
|
|
@@ -10643,18 +10657,22 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10643
10657
|
*
|
|
10644
10658
|
* @param {U256} value
|
|
10645
10659
|
* @param {SpWeightsWeightV2Weight} gasLimit
|
|
10646
|
-
* @param {bigint} storageDepositLimit
|
|
10647
10660
|
* @param {BytesLike} code
|
|
10648
10661
|
* @param {BytesLike} data
|
|
10662
|
+
* @param {BytesLike} transactionEncoded
|
|
10663
|
+
* @param {U256} effectiveGasPrice
|
|
10664
|
+
* @param {number} encodedLen
|
|
10649
10665
|
**/
|
|
10650
10666
|
ethInstantiateWithCode: GenericTxCall<
|
|
10651
10667
|
Rv,
|
|
10652
10668
|
(
|
|
10653
10669
|
value: U256,
|
|
10654
10670
|
gasLimit: SpWeightsWeightV2Weight,
|
|
10655
|
-
storageDepositLimit: bigint,
|
|
10656
10671
|
code: BytesLike,
|
|
10657
10672
|
data: BytesLike,
|
|
10673
|
+
transactionEncoded: BytesLike,
|
|
10674
|
+
effectiveGasPrice: U256,
|
|
10675
|
+
encodedLen: number,
|
|
10658
10676
|
) => ChainSubmittableExtrinsic<
|
|
10659
10677
|
Rv,
|
|
10660
10678
|
{
|
|
@@ -10664,9 +10682,11 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10664
10682
|
params: {
|
|
10665
10683
|
value: U256;
|
|
10666
10684
|
gasLimit: SpWeightsWeightV2Weight;
|
|
10667
|
-
storageDepositLimit: bigint;
|
|
10668
10685
|
code: BytesLike;
|
|
10669
10686
|
data: BytesLike;
|
|
10687
|
+
transactionEncoded: BytesLike;
|
|
10688
|
+
effectiveGasPrice: U256;
|
|
10689
|
+
encodedLen: number;
|
|
10670
10690
|
};
|
|
10671
10691
|
};
|
|
10672
10692
|
}
|
|
@@ -10680,8 +10700,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10680
10700
|
* @param {H160} dest
|
|
10681
10701
|
* @param {U256} value
|
|
10682
10702
|
* @param {SpWeightsWeightV2Weight} gasLimit
|
|
10683
|
-
* @param {bigint} storageDepositLimit
|
|
10684
10703
|
* @param {BytesLike} data
|
|
10704
|
+
* @param {BytesLike} transactionEncoded
|
|
10705
|
+
* @param {U256} effectiveGasPrice
|
|
10706
|
+
* @param {number} encodedLen
|
|
10685
10707
|
**/
|
|
10686
10708
|
ethCall: GenericTxCall<
|
|
10687
10709
|
Rv,
|
|
@@ -10689,8 +10711,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10689
10711
|
dest: H160,
|
|
10690
10712
|
value: U256,
|
|
10691
10713
|
gasLimit: SpWeightsWeightV2Weight,
|
|
10692
|
-
storageDepositLimit: bigint,
|
|
10693
10714
|
data: BytesLike,
|
|
10715
|
+
transactionEncoded: BytesLike,
|
|
10716
|
+
effectiveGasPrice: U256,
|
|
10717
|
+
encodedLen: number,
|
|
10694
10718
|
) => ChainSubmittableExtrinsic<
|
|
10695
10719
|
Rv,
|
|
10696
10720
|
{
|
|
@@ -10701,8 +10725,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10701
10725
|
dest: H160;
|
|
10702
10726
|
value: U256;
|
|
10703
10727
|
gasLimit: SpWeightsWeightV2Weight;
|
|
10704
|
-
storageDepositLimit: bigint;
|
|
10705
10728
|
data: BytesLike;
|
|
10729
|
+
transactionEncoded: BytesLike;
|
|
10730
|
+
effectiveGasPrice: U256;
|
|
10731
|
+
encodedLen: number;
|
|
10706
10732
|
};
|
|
10707
10733
|
};
|
|
10708
10734
|
}
|