@dedot/chaintypes 0.204.0 → 0.206.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.
@@ -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 by `Freezer` or `Admin` of the asset `id`; the signer account
5137
- * must have sufficient funds for a deposit to be taken.
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 by `Freezer` or `Admin` of the asset `id`; the signer account
8724
- * must have sufficient funds for a deposit to be taken.
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 by `Freezer` or `Admin` of the asset `id`; the signer account
10002
- * must have sufficient funds for a deposit to be taken.
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
- * * `gas_limit`: The gas limit enforced when executing the constructor.
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} gasLimit
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
- gasLimit: SpWeightsWeightV2Weight,
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
- gasLimit: SpWeightsWeightV2Weight;
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} gasLimit
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
- gasLimit: SpWeightsWeightV2Weight,
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
- gasLimit: SpWeightsWeightV2Weight;
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
- * * `gas_limit`: The gas limit enforced when executing the constructor.
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} gasLimit
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
- gasLimit: SpWeightsWeightV2Weight,
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
- gasLimit: SpWeightsWeightV2Weight;
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} gasLimit
11430
- * @param {bigint} storageDepositLimit
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
- gasLimit: SpWeightsWeightV2Weight,
11438
- storageDepositLimit: bigint,
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
- gasLimit: SpWeightsWeightV2Weight;
11449
- storageDepositLimit: bigint;
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} gasLimit
11466
- * @param {bigint} storageDepositLimit
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
- gasLimit: SpWeightsWeightV2Weight,
11474
- storageDepositLimit: bigint,
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
- gasLimit: SpWeightsWeightV2Weight;
11485
- storageDepositLimit: bigint;
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
- * and unreserved only when [`Self::remove_code`] is called. The size of the reserve
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
  **/