@dedot/chaintypes 0.203.0 → 0.205.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/errors.d.ts +5 -0
- package/kusama/events.d.ts +20 -0
- package/kusama/index.d.ts +1 -1
- package/kusama/query.d.ts +36 -5
- package/kusama/runtime.d.ts +25 -20
- package/kusama/tx.d.ts +19 -0
- package/kusama/types.d.ts +49 -6
- package/kusama-asset-hub/consts.d.ts +70 -1
- package/kusama-asset-hub/errors.d.ts +61 -1
- package/kusama-asset-hub/events.d.ts +10 -0
- package/kusama-asset-hub/index.d.ts +4 -1
- package/kusama-asset-hub/query.d.ts +77 -0
- package/kusama-asset-hub/runtime.d.ts +68 -1
- package/kusama-asset-hub/tx.d.ts +116 -37
- package/kusama-asset-hub/types.d.ts +483 -58
- package/kusama-people/consts.d.ts +9 -0
- package/kusama-people/index.d.ts +2 -1
- package/kusama-people/query.d.ts +10 -0
- package/kusama-people/runtime.d.ts +25 -0
- package/kusama-people/types.d.ts +23 -0
- package/package.json +2 -2
|
@@ -55,16 +55,20 @@ import type {
|
|
|
55
55
|
CumulusPrimitivesCoreCollationInfo,
|
|
56
56
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
57
57
|
SystemParachainsCommonApisInflationInfo,
|
|
58
|
+
PalletReviveEvmApiRpcTypesGenBlock,
|
|
59
|
+
PalletReviveEvmBlockHashReceiptGasInfo,
|
|
58
60
|
PalletRevivePrimitivesContractResult,
|
|
59
61
|
PalletRevivePrimitivesContractResultInstantiateReturnValue,
|
|
60
62
|
PalletRevivePrimitivesCode,
|
|
61
63
|
PalletRevivePrimitivesEthTransactInfo,
|
|
62
64
|
PalletRevivePrimitivesEthTransactError,
|
|
63
65
|
PalletReviveEvmApiRpcTypesGenGenericTransaction,
|
|
66
|
+
PalletReviveEvmApiRpcTypesDryRunConfig,
|
|
64
67
|
PalletRevivePrimitivesCodeUploadReturnValue,
|
|
65
68
|
PalletRevivePrimitivesContractAccessError,
|
|
66
69
|
PalletReviveEvmApiDebugRpcTypesTrace,
|
|
67
70
|
PalletReviveEvmApiDebugRpcTypesTracerType,
|
|
71
|
+
PalletRevivePrimitivesBalanceConversionError,
|
|
68
72
|
} from './types.js';
|
|
69
73
|
|
|
70
74
|
export interface RuntimeApis extends GenericRuntimeApis {
|
|
@@ -1024,6 +1028,34 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1024
1028
|
* @runtimeapi: ReviveApi - 0x8c403e5c4a9fd442
|
|
1025
1029
|
**/
|
|
1026
1030
|
reviveApi: {
|
|
1031
|
+
/**
|
|
1032
|
+
* Returns the current ETH block.
|
|
1033
|
+
*
|
|
1034
|
+
* This is one block behind the substrate block.
|
|
1035
|
+
*
|
|
1036
|
+
* @callname: ReviveApi_eth_block
|
|
1037
|
+
**/
|
|
1038
|
+
ethBlock: GenericRuntimeApiMethod<() => Promise<PalletReviveEvmApiRpcTypesGenBlock>>;
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
* Returns the ETH block hash for the given block number.
|
|
1042
|
+
*
|
|
1043
|
+
* @callname: ReviveApi_eth_block_hash
|
|
1044
|
+
* @param {U256} number
|
|
1045
|
+
**/
|
|
1046
|
+
ethBlockHash: GenericRuntimeApiMethod<(number: U256) => Promise<H256 | undefined>>;
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* The details needed to reconstruct the receipt information offchain.
|
|
1050
|
+
*
|
|
1051
|
+
* # Note
|
|
1052
|
+
*
|
|
1053
|
+
* Each entry corresponds to the appropriate Ethereum transaction in the current block.
|
|
1054
|
+
*
|
|
1055
|
+
* @callname: ReviveApi_eth_receipt_data
|
|
1056
|
+
**/
|
|
1057
|
+
ethReceiptData: GenericRuntimeApiMethod<() => Promise<Array<PalletReviveEvmBlockHashReceiptGasInfo>>>;
|
|
1058
|
+
|
|
1027
1059
|
/**
|
|
1028
1060
|
* Returns the block gas limit.
|
|
1029
1061
|
*
|
|
@@ -1107,6 +1139,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1107
1139
|
/**
|
|
1108
1140
|
* Perform an Ethereum call.
|
|
1109
1141
|
*
|
|
1142
|
+
* Deprecated use `v2` version instead.
|
|
1110
1143
|
* See [`crate::Pallet::dry_run_eth_transact`]
|
|
1111
1144
|
*
|
|
1112
1145
|
* @callname: ReviveApi_eth_transact
|
|
@@ -1118,6 +1151,22 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1118
1151
|
) => Promise<Result<PalletRevivePrimitivesEthTransactInfo, PalletRevivePrimitivesEthTransactError>>
|
|
1119
1152
|
>;
|
|
1120
1153
|
|
|
1154
|
+
/**
|
|
1155
|
+
* Perform an Ethereum call.
|
|
1156
|
+
*
|
|
1157
|
+
* See [`crate::Pallet::dry_run_eth_transact`]
|
|
1158
|
+
*
|
|
1159
|
+
* @callname: ReviveApi_eth_transact_with_config
|
|
1160
|
+
* @param {PalletReviveEvmApiRpcTypesGenGenericTransaction} tx
|
|
1161
|
+
* @param {PalletReviveEvmApiRpcTypesDryRunConfig} config
|
|
1162
|
+
**/
|
|
1163
|
+
ethTransactWithConfig: GenericRuntimeApiMethod<
|
|
1164
|
+
(
|
|
1165
|
+
tx: PalletReviveEvmApiRpcTypesGenGenericTransaction,
|
|
1166
|
+
config: PalletReviveEvmApiRpcTypesDryRunConfig,
|
|
1167
|
+
) => Promise<Result<PalletRevivePrimitivesEthTransactInfo, PalletRevivePrimitivesEthTransactError>>
|
|
1168
|
+
>;
|
|
1169
|
+
|
|
1121
1170
|
/**
|
|
1122
1171
|
* Upload new code without instantiating a contract from it.
|
|
1123
1172
|
*
|
|
@@ -1230,7 +1279,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1230
1279
|
*
|
|
1231
1280
|
* @callname: ReviveApi_block_author
|
|
1232
1281
|
**/
|
|
1233
|
-
blockAuthor: GenericRuntimeApiMethod<() => Promise<H160
|
|
1282
|
+
blockAuthor: GenericRuntimeApiMethod<() => Promise<H160>>;
|
|
1234
1283
|
|
|
1235
1284
|
/**
|
|
1236
1285
|
* Get the H160 address associated to this account id
|
|
@@ -1240,6 +1289,14 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1240
1289
|
**/
|
|
1241
1290
|
address: GenericRuntimeApiMethod<(accountId: AccountId32Like) => Promise<H160>>;
|
|
1242
1291
|
|
|
1292
|
+
/**
|
|
1293
|
+
* Get the account id associated to this H160 address.
|
|
1294
|
+
*
|
|
1295
|
+
* @callname: ReviveApi_account_id
|
|
1296
|
+
* @param {H160} address
|
|
1297
|
+
**/
|
|
1298
|
+
accountId: GenericRuntimeApiMethod<(address: H160) => Promise<AccountId32>>;
|
|
1299
|
+
|
|
1243
1300
|
/**
|
|
1244
1301
|
* The address used to call the runtime's pallets dispatchables
|
|
1245
1302
|
*
|
|
@@ -1255,6 +1312,16 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1255
1312
|
**/
|
|
1256
1313
|
code: GenericRuntimeApiMethod<(address: H160) => Promise<Bytes>>;
|
|
1257
1314
|
|
|
1315
|
+
/**
|
|
1316
|
+
* Construct the new balance and dust components of this EVM balance.
|
|
1317
|
+
*
|
|
1318
|
+
* @callname: ReviveApi_new_balance_with_dust
|
|
1319
|
+
* @param {U256} balance
|
|
1320
|
+
**/
|
|
1321
|
+
newBalanceWithDust: GenericRuntimeApiMethod<
|
|
1322
|
+
(balance: U256) => Promise<Result<[bigint, number], PalletRevivePrimitivesBalanceConversionError>>
|
|
1323
|
+
>;
|
|
1324
|
+
|
|
1258
1325
|
/**
|
|
1259
1326
|
* Generic runtime api call
|
|
1260
1327
|
**/
|
package/kusama-asset-hub/tx.d.ts
CHANGED
|
@@ -5133,9 +5133,10 @@ export interface ChainTx<
|
|
|
5133
5133
|
*
|
|
5134
5134
|
* A deposit will be taken from the signer account.
|
|
5135
5135
|
*
|
|
5136
|
-
* - `origin`: Must be Signed
|
|
5137
|
-
*
|
|
5138
|
-
* - `id`: The identifier of the asset for the account to be created
|
|
5136
|
+
* - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
|
|
5137
|
+
* to be taken.
|
|
5138
|
+
* - `id`: The identifier of the asset for the account to be created, the asset status must
|
|
5139
|
+
* be live.
|
|
5139
5140
|
* - `who`: The account to be created.
|
|
5140
5141
|
*
|
|
5141
5142
|
* Emits `Touched` event when successful.
|
|
@@ -8720,9 +8721,10 @@ export interface ChainTx<
|
|
|
8720
8721
|
*
|
|
8721
8722
|
* A deposit will be taken from the signer account.
|
|
8722
8723
|
*
|
|
8723
|
-
* - `origin`: Must be Signed
|
|
8724
|
-
*
|
|
8725
|
-
* - `id`: The identifier of the asset for the account to be created
|
|
8724
|
+
* - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
|
|
8725
|
+
* to be taken.
|
|
8726
|
+
* - `id`: The identifier of the asset for the account to be created, the asset status must
|
|
8727
|
+
* be live.
|
|
8726
8728
|
* - `who`: The account to be created.
|
|
8727
8729
|
*
|
|
8728
8730
|
* Emits `Touched` event when successful.
|
|
@@ -9998,9 +10000,10 @@ export interface ChainTx<
|
|
|
9998
10000
|
*
|
|
9999
10001
|
* A deposit will be taken from the signer account.
|
|
10000
10002
|
*
|
|
10001
|
-
* - `origin`: Must be Signed
|
|
10002
|
-
*
|
|
10003
|
-
* - `id`: The identifier of the asset for the account to be created
|
|
10003
|
+
* - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
|
|
10004
|
+
* to be taken.
|
|
10005
|
+
* - `id`: The identifier of the asset for the account to be created, the asset status must
|
|
10006
|
+
* be live.
|
|
10004
10007
|
* - `who`: The account to be created.
|
|
10005
10008
|
*
|
|
10006
10009
|
* Emits `Touched` event when successful.
|
|
@@ -11237,9 +11240,6 @@ export interface ChainTx<
|
|
|
11237
11240
|
* # Parameters
|
|
11238
11241
|
*
|
|
11239
11242
|
* * `payload`: The encoded [`crate::evm::TransactionSigned`].
|
|
11240
|
-
* * `gas_limit`: The gas limit enforced during contract execution.
|
|
11241
|
-
* * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
|
|
11242
|
-
* storage usage.
|
|
11243
11243
|
*
|
|
11244
11244
|
* # Note
|
|
11245
11245
|
*
|
|
@@ -11270,7 +11270,7 @@ export interface ChainTx<
|
|
|
11270
11270
|
*
|
|
11271
11271
|
* * `dest`: Address of the contract to call.
|
|
11272
11272
|
* * `value`: The balance to transfer from the `origin` to `dest`.
|
|
11273
|
-
* * `
|
|
11273
|
+
* * `weight_limit`: The weight limit enforced when executing the constructor.
|
|
11274
11274
|
* * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
|
|
11275
11275
|
* caller to pay for the storage consumed.
|
|
11276
11276
|
* * `data`: The input data to pass to the contract.
|
|
@@ -11283,7 +11283,7 @@ export interface ChainTx<
|
|
|
11283
11283
|
*
|
|
11284
11284
|
* @param {H160} dest
|
|
11285
11285
|
* @param {bigint} value
|
|
11286
|
-
* @param {SpWeightsWeightV2Weight}
|
|
11286
|
+
* @param {SpWeightsWeightV2Weight} weightLimit
|
|
11287
11287
|
* @param {bigint} storageDepositLimit
|
|
11288
11288
|
* @param {BytesLike} data
|
|
11289
11289
|
**/
|
|
@@ -11291,7 +11291,7 @@ export interface ChainTx<
|
|
|
11291
11291
|
(
|
|
11292
11292
|
dest: H160,
|
|
11293
11293
|
value: bigint,
|
|
11294
|
-
|
|
11294
|
+
weightLimit: SpWeightsWeightV2Weight,
|
|
11295
11295
|
storageDepositLimit: bigint,
|
|
11296
11296
|
data: BytesLike,
|
|
11297
11297
|
) => ChainSubmittableExtrinsic<
|
|
@@ -11302,7 +11302,7 @@ export interface ChainTx<
|
|
|
11302
11302
|
params: {
|
|
11303
11303
|
dest: H160;
|
|
11304
11304
|
value: bigint;
|
|
11305
|
-
|
|
11305
|
+
weightLimit: SpWeightsWeightV2Weight;
|
|
11306
11306
|
storageDepositLimit: bigint;
|
|
11307
11307
|
data: BytesLike;
|
|
11308
11308
|
};
|
|
@@ -11320,7 +11320,7 @@ export interface ChainTx<
|
|
|
11320
11320
|
* must be supplied.
|
|
11321
11321
|
*
|
|
11322
11322
|
* @param {bigint} value
|
|
11323
|
-
* @param {SpWeightsWeightV2Weight}
|
|
11323
|
+
* @param {SpWeightsWeightV2Weight} weightLimit
|
|
11324
11324
|
* @param {bigint} storageDepositLimit
|
|
11325
11325
|
* @param {H256} codeHash
|
|
11326
11326
|
* @param {BytesLike} data
|
|
@@ -11329,7 +11329,7 @@ export interface ChainTx<
|
|
|
11329
11329
|
instantiate: GenericTxCall<
|
|
11330
11330
|
(
|
|
11331
11331
|
value: bigint,
|
|
11332
|
-
|
|
11332
|
+
weightLimit: SpWeightsWeightV2Weight,
|
|
11333
11333
|
storageDepositLimit: bigint,
|
|
11334
11334
|
codeHash: H256,
|
|
11335
11335
|
data: BytesLike,
|
|
@@ -11341,7 +11341,7 @@ export interface ChainTx<
|
|
|
11341
11341
|
name: 'Instantiate';
|
|
11342
11342
|
params: {
|
|
11343
11343
|
value: bigint;
|
|
11344
|
-
|
|
11344
|
+
weightLimit: SpWeightsWeightV2Weight;
|
|
11345
11345
|
storageDepositLimit: bigint;
|
|
11346
11346
|
codeHash: H256;
|
|
11347
11347
|
data: BytesLike;
|
|
@@ -11364,7 +11364,7 @@ export interface ChainTx<
|
|
|
11364
11364
|
* # Parameters
|
|
11365
11365
|
*
|
|
11366
11366
|
* * `value`: The balance to transfer from the `origin` to the newly created contract.
|
|
11367
|
-
* * `
|
|
11367
|
+
* * `weight_limit`: The weight limit enforced when executing the constructor.
|
|
11368
11368
|
* * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
|
|
11369
11369
|
* from the caller to pay for the storage consumed.
|
|
11370
11370
|
* * `code`: The contract code to deploy in raw bytes.
|
|
@@ -11383,7 +11383,7 @@ export interface ChainTx<
|
|
|
11383
11383
|
* - The `deploy` function is executed in the context of the newly-created account.
|
|
11384
11384
|
*
|
|
11385
11385
|
* @param {bigint} value
|
|
11386
|
-
* @param {SpWeightsWeightV2Weight}
|
|
11386
|
+
* @param {SpWeightsWeightV2Weight} weightLimit
|
|
11387
11387
|
* @param {bigint} storageDepositLimit
|
|
11388
11388
|
* @param {BytesLike} code
|
|
11389
11389
|
* @param {BytesLike} data
|
|
@@ -11392,7 +11392,7 @@ export interface ChainTx<
|
|
|
11392
11392
|
instantiateWithCode: GenericTxCall<
|
|
11393
11393
|
(
|
|
11394
11394
|
value: bigint,
|
|
11395
|
-
|
|
11395
|
+
weightLimit: SpWeightsWeightV2Weight,
|
|
11396
11396
|
storageDepositLimit: bigint,
|
|
11397
11397
|
code: BytesLike,
|
|
11398
11398
|
data: BytesLike,
|
|
@@ -11404,7 +11404,7 @@ export interface ChainTx<
|
|
|
11404
11404
|
name: 'InstantiateWithCode';
|
|
11405
11405
|
params: {
|
|
11406
11406
|
value: bigint;
|
|
11407
|
-
|
|
11407
|
+
weightLimit: SpWeightsWeightV2Weight;
|
|
11408
11408
|
storageDepositLimit: bigint;
|
|
11409
11409
|
code: BytesLike;
|
|
11410
11410
|
data: BytesLike;
|
|
@@ -11420,24 +11420,44 @@ export interface ChainTx<
|
|
|
11420
11420
|
* Same as [`Self::instantiate_with_code`], but intended to be dispatched **only**
|
|
11421
11421
|
* by an EVM transaction through the EVM compatibility layer.
|
|
11422
11422
|
*
|
|
11423
|
+
* # Parameters
|
|
11424
|
+
*
|
|
11425
|
+
* * `value`: The balance to transfer from the `origin` to the newly created contract.
|
|
11426
|
+
* * `weight_limit`: The gas limit used to derive the transaction weight for transaction
|
|
11427
|
+
* payment
|
|
11428
|
+
* * `eth_gas_limit`: The Ethereum gas limit governing the resource usage of the execution
|
|
11429
|
+
* * `code`: The contract code to deploy in raw bytes.
|
|
11430
|
+
* * `data`: The input data to pass to the contract constructor.
|
|
11431
|
+
* * `transaction_encoded`: The RLP encoding of the signed Ethereum transaction,
|
|
11432
|
+
* represented as [crate::evm::TransactionSigned], provided by the Ethereum wallet. This
|
|
11433
|
+
* is used for building the Ethereum transaction root.
|
|
11434
|
+
* * effective_gas_price: the price of a unit of gas
|
|
11435
|
+
* * encoded len: the byte code size of the `eth_transact` extrinsic
|
|
11436
|
+
*
|
|
11423
11437
|
* Calling this dispatchable ensures that the origin's nonce is bumped only once,
|
|
11424
11438
|
* via the `CheckNonce` transaction extension. In contrast, [`Self::instantiate_with_code`]
|
|
11425
11439
|
* also bumps the nonce after contract instantiation, since it may be invoked multiple
|
|
11426
11440
|
* times within a batch call transaction.
|
|
11427
11441
|
*
|
|
11428
11442
|
* @param {U256} value
|
|
11429
|
-
* @param {SpWeightsWeightV2Weight}
|
|
11430
|
-
* @param {
|
|
11443
|
+
* @param {SpWeightsWeightV2Weight} weightLimit
|
|
11444
|
+
* @param {U256} ethGasLimit
|
|
11431
11445
|
* @param {BytesLike} code
|
|
11432
11446
|
* @param {BytesLike} data
|
|
11447
|
+
* @param {BytesLike} transactionEncoded
|
|
11448
|
+
* @param {U256} effectiveGasPrice
|
|
11449
|
+
* @param {number} encodedLen
|
|
11433
11450
|
**/
|
|
11434
11451
|
ethInstantiateWithCode: GenericTxCall<
|
|
11435
11452
|
(
|
|
11436
11453
|
value: U256,
|
|
11437
|
-
|
|
11438
|
-
|
|
11454
|
+
weightLimit: SpWeightsWeightV2Weight,
|
|
11455
|
+
ethGasLimit: U256,
|
|
11439
11456
|
code: BytesLike,
|
|
11440
11457
|
data: BytesLike,
|
|
11458
|
+
transactionEncoded: BytesLike,
|
|
11459
|
+
effectiveGasPrice: U256,
|
|
11460
|
+
encodedLen: number,
|
|
11441
11461
|
) => ChainSubmittableExtrinsic<
|
|
11442
11462
|
{
|
|
11443
11463
|
pallet: 'Revive';
|
|
@@ -11445,10 +11465,13 @@ export interface ChainTx<
|
|
|
11445
11465
|
name: 'EthInstantiateWithCode';
|
|
11446
11466
|
params: {
|
|
11447
11467
|
value: U256;
|
|
11448
|
-
|
|
11449
|
-
|
|
11468
|
+
weightLimit: SpWeightsWeightV2Weight;
|
|
11469
|
+
ethGasLimit: U256;
|
|
11450
11470
|
code: BytesLike;
|
|
11451
11471
|
data: BytesLike;
|
|
11472
|
+
transactionEncoded: BytesLike;
|
|
11473
|
+
effectiveGasPrice: U256;
|
|
11474
|
+
encodedLen: number;
|
|
11452
11475
|
};
|
|
11453
11476
|
};
|
|
11454
11477
|
},
|
|
@@ -11460,19 +11483,39 @@ export interface ChainTx<
|
|
|
11460
11483
|
* Same as [`Self::call`], but intended to be dispatched **only**
|
|
11461
11484
|
* by an EVM transaction through the EVM compatibility layer.
|
|
11462
11485
|
*
|
|
11486
|
+
* # Parameters
|
|
11487
|
+
*
|
|
11488
|
+
* * `dest`: The Ethereum address of the account to be called
|
|
11489
|
+
* * `value`: The balance to transfer from the `origin` to the newly created contract.
|
|
11490
|
+
* * `weight_limit`: The gas limit used to derive the transaction weight for transaction
|
|
11491
|
+
* payment
|
|
11492
|
+
* * `eth_gas_limit`: The Ethereum gas limit governing the resource usage of the execution
|
|
11493
|
+
* * `data`: The input data to pass to the contract constructor.
|
|
11494
|
+
* * `transaction_encoded`: The RLP encoding of the signed Ethereum transaction,
|
|
11495
|
+
* represented as [crate::evm::TransactionSigned], provided by the Ethereum wallet. This
|
|
11496
|
+
* is used for building the Ethereum transaction root.
|
|
11497
|
+
* * effective_gas_price: the price of a unit of gas
|
|
11498
|
+
* * encoded len: the byte code size of the `eth_transact` extrinsic
|
|
11499
|
+
*
|
|
11463
11500
|
* @param {H160} dest
|
|
11464
11501
|
* @param {U256} value
|
|
11465
|
-
* @param {SpWeightsWeightV2Weight}
|
|
11466
|
-
* @param {
|
|
11502
|
+
* @param {SpWeightsWeightV2Weight} weightLimit
|
|
11503
|
+
* @param {U256} ethGasLimit
|
|
11467
11504
|
* @param {BytesLike} data
|
|
11505
|
+
* @param {BytesLike} transactionEncoded
|
|
11506
|
+
* @param {U256} effectiveGasPrice
|
|
11507
|
+
* @param {number} encodedLen
|
|
11468
11508
|
**/
|
|
11469
11509
|
ethCall: GenericTxCall<
|
|
11470
11510
|
(
|
|
11471
11511
|
dest: H160,
|
|
11472
11512
|
value: U256,
|
|
11473
|
-
|
|
11474
|
-
|
|
11513
|
+
weightLimit: SpWeightsWeightV2Weight,
|
|
11514
|
+
ethGasLimit: U256,
|
|
11475
11515
|
data: BytesLike,
|
|
11516
|
+
transactionEncoded: BytesLike,
|
|
11517
|
+
effectiveGasPrice: U256,
|
|
11518
|
+
encodedLen: number,
|
|
11476
11519
|
) => ChainSubmittableExtrinsic<
|
|
11477
11520
|
{
|
|
11478
11521
|
pallet: 'Revive';
|
|
@@ -11481,9 +11524,12 @@ export interface ChainTx<
|
|
|
11481
11524
|
params: {
|
|
11482
11525
|
dest: H160;
|
|
11483
11526
|
value: U256;
|
|
11484
|
-
|
|
11485
|
-
|
|
11527
|
+
weightLimit: SpWeightsWeightV2Weight;
|
|
11528
|
+
ethGasLimit: U256;
|
|
11486
11529
|
data: BytesLike;
|
|
11530
|
+
transactionEncoded: BytesLike;
|
|
11531
|
+
effectiveGasPrice: U256;
|
|
11532
|
+
encodedLen: number;
|
|
11487
11533
|
};
|
|
11488
11534
|
};
|
|
11489
11535
|
},
|
|
@@ -11491,12 +11537,42 @@ export interface ChainTx<
|
|
|
11491
11537
|
>
|
|
11492
11538
|
>;
|
|
11493
11539
|
|
|
11540
|
+
/**
|
|
11541
|
+
* Executes a Substrate runtime call from an Ethereum transaction.
|
|
11542
|
+
*
|
|
11543
|
+
* This dispatchable is intended to be called **only** through the EVM compatibility
|
|
11544
|
+
* layer. The provided call will be dispatched using `RawOrigin::Signed`.
|
|
11545
|
+
*
|
|
11546
|
+
* # Parameters
|
|
11547
|
+
*
|
|
11548
|
+
* * `origin`: Must be an [`Origin::EthTransaction`] origin.
|
|
11549
|
+
* * `call`: The Substrate runtime call to execute.
|
|
11550
|
+
* * `transaction_encoded`: The RLP encoding of the Ethereum transaction,
|
|
11551
|
+
*
|
|
11552
|
+
* @param {AssetHubKusamaRuntimeRuntimeCallLike} call
|
|
11553
|
+
* @param {BytesLike} transactionEncoded
|
|
11554
|
+
**/
|
|
11555
|
+
ethSubstrateCall: GenericTxCall<
|
|
11556
|
+
(
|
|
11557
|
+
call: AssetHubKusamaRuntimeRuntimeCallLike,
|
|
11558
|
+
transactionEncoded: BytesLike,
|
|
11559
|
+
) => ChainSubmittableExtrinsic<
|
|
11560
|
+
{
|
|
11561
|
+
pallet: 'Revive';
|
|
11562
|
+
palletCall: {
|
|
11563
|
+
name: 'EthSubstrateCall';
|
|
11564
|
+
params: { call: AssetHubKusamaRuntimeRuntimeCallLike; transactionEncoded: BytesLike };
|
|
11565
|
+
};
|
|
11566
|
+
},
|
|
11567
|
+
ChainKnownTypes
|
|
11568
|
+
>
|
|
11569
|
+
>;
|
|
11570
|
+
|
|
11494
11571
|
/**
|
|
11495
11572
|
* Upload new `code` without instantiating a contract from it.
|
|
11496
11573
|
*
|
|
11497
11574
|
* If the code does not already exist a deposit is reserved from the caller
|
|
11498
|
-
*
|
|
11499
|
-
* depends on the size of the supplied `code`.
|
|
11575
|
+
* The size of the reserve depends on the size of the supplied `code`.
|
|
11500
11576
|
*
|
|
11501
11577
|
* # Note
|
|
11502
11578
|
*
|
|
@@ -11505,6 +11581,9 @@ export interface ChainTx<
|
|
|
11505
11581
|
* only be instantiated by permissioned entities. The same is true when uploading
|
|
11506
11582
|
* through [`Self::instantiate_with_code`].
|
|
11507
11583
|
*
|
|
11584
|
+
* If the refcount of the code reaches zero after terminating the last contract that
|
|
11585
|
+
* references this code, the code will be removed automatically.
|
|
11586
|
+
*
|
|
11508
11587
|
* @param {BytesLike} code
|
|
11509
11588
|
* @param {bigint} storageDepositLimit
|
|
11510
11589
|
**/
|