@dedot/chaintypes 0.211.0 → 0.212.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.
@@ -80,7 +80,7 @@ import type {
80
80
  PalletNominationPoolsConfigOp,
81
81
  PalletNominationPoolsConfigOpU32,
82
82
  PalletNominationPoolsConfigOpPerbill,
83
- PalletNominationPoolsConfigOp004,
83
+ PalletNominationPoolsConfigOpAccountId32,
84
84
  PalletNominationPoolsClaimPermission,
85
85
  PalletNominationPoolsCommissionChangeRate,
86
86
  PalletNominationPoolsCommissionClaimPermission,
@@ -5084,9 +5084,10 @@ export interface ChainTx<
5084
5084
  *
5085
5085
  * A deposit will be taken from the signer account.
5086
5086
  *
5087
- * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account
5088
- * must have sufficient funds for a deposit to be taken.
5089
- * - `id`: The identifier of the asset for the account to be created.
5087
+ * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
5088
+ * to be taken.
5089
+ * - `id`: The identifier of the asset for the account to be created, the asset status must
5090
+ * be live.
5090
5091
  * - `who`: The account to be created.
5091
5092
  *
5092
5093
  * Emits `Touched` event when successful.
@@ -8671,9 +8672,10 @@ export interface ChainTx<
8671
8672
  *
8672
8673
  * A deposit will be taken from the signer account.
8673
8674
  *
8674
- * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account
8675
- * must have sufficient funds for a deposit to be taken.
8676
- * - `id`: The identifier of the asset for the account to be created.
8675
+ * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
8676
+ * to be taken.
8677
+ * - `id`: The identifier of the asset for the account to be created, the asset status must
8678
+ * be live.
8677
8679
  * - `who`: The account to be created.
8678
8680
  *
8679
8681
  * Emits `Touched` event when successful.
@@ -9849,9 +9851,10 @@ export interface ChainTx<
9849
9851
  *
9850
9852
  * A deposit will be taken from the signer account.
9851
9853
  *
9852
- * - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account
9853
- * must have sufficient funds for a deposit to be taken.
9854
- * - `id`: The identifier of the asset for the account to be created.
9854
+ * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
9855
+ * to be taken.
9856
+ * - `id`: The identifier of the asset for the account to be created, the asset status must
9857
+ * be live.
9855
9858
  * - `who`: The account to be created.
9856
9859
  *
9857
9860
  * Emits `Touched` event when successful.
@@ -12367,16 +12370,16 @@ export interface ChainTx<
12367
12370
  * most pool members and they should be informed of changes to pool roles.
12368
12371
  *
12369
12372
  * @param {number} poolId
12370
- * @param {PalletNominationPoolsConfigOp004} newRoot
12371
- * @param {PalletNominationPoolsConfigOp004} newNominator
12372
- * @param {PalletNominationPoolsConfigOp004} newBouncer
12373
+ * @param {PalletNominationPoolsConfigOpAccountId32} newRoot
12374
+ * @param {PalletNominationPoolsConfigOpAccountId32} newNominator
12375
+ * @param {PalletNominationPoolsConfigOpAccountId32} newBouncer
12373
12376
  **/
12374
12377
  updateRoles: GenericTxCall<
12375
12378
  (
12376
12379
  poolId: number,
12377
- newRoot: PalletNominationPoolsConfigOp004,
12378
- newNominator: PalletNominationPoolsConfigOp004,
12379
- newBouncer: PalletNominationPoolsConfigOp004,
12380
+ newRoot: PalletNominationPoolsConfigOpAccountId32,
12381
+ newNominator: PalletNominationPoolsConfigOpAccountId32,
12382
+ newBouncer: PalletNominationPoolsConfigOpAccountId32,
12380
12383
  ) => ChainSubmittableExtrinsic<
12381
12384
  {
12382
12385
  pallet: 'NominationPools';
@@ -12384,9 +12387,9 @@ export interface ChainTx<
12384
12387
  name: 'UpdateRoles';
12385
12388
  params: {
12386
12389
  poolId: number;
12387
- newRoot: PalletNominationPoolsConfigOp004;
12388
- newNominator: PalletNominationPoolsConfigOp004;
12389
- newBouncer: PalletNominationPoolsConfigOp004;
12390
+ newRoot: PalletNominationPoolsConfigOpAccountId32;
12391
+ newNominator: PalletNominationPoolsConfigOpAccountId32;
12392
+ newBouncer: PalletNominationPoolsConfigOpAccountId32;
12390
12393
  };
12391
12394
  };
12392
12395
  },
@@ -14056,9 +14059,6 @@ export interface ChainTx<
14056
14059
  * # Parameters
14057
14060
  *
14058
14061
  * * `payload`: The encoded [`crate::evm::TransactionSigned`].
14059
- * * `gas_limit`: The gas limit enforced during contract execution.
14060
- * * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
14061
- * storage usage.
14062
14062
  *
14063
14063
  * # Note
14064
14064
  *
@@ -14089,7 +14089,7 @@ export interface ChainTx<
14089
14089
  *
14090
14090
  * * `dest`: Address of the contract to call.
14091
14091
  * * `value`: The balance to transfer from the `origin` to `dest`.
14092
- * * `gas_limit`: The gas limit enforced when executing the constructor.
14092
+ * * `weight_limit`: The weight limit enforced when executing the constructor.
14093
14093
  * * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
14094
14094
  * caller to pay for the storage consumed.
14095
14095
  * * `data`: The input data to pass to the contract.
@@ -14102,7 +14102,7 @@ export interface ChainTx<
14102
14102
  *
14103
14103
  * @param {H160} dest
14104
14104
  * @param {bigint} value
14105
- * @param {SpWeightsWeightV2Weight} gasLimit
14105
+ * @param {SpWeightsWeightV2Weight} weightLimit
14106
14106
  * @param {bigint} storageDepositLimit
14107
14107
  * @param {BytesLike} data
14108
14108
  **/
@@ -14110,7 +14110,7 @@ export interface ChainTx<
14110
14110
  (
14111
14111
  dest: H160,
14112
14112
  value: bigint,
14113
- gasLimit: SpWeightsWeightV2Weight,
14113
+ weightLimit: SpWeightsWeightV2Weight,
14114
14114
  storageDepositLimit: bigint,
14115
14115
  data: BytesLike,
14116
14116
  ) => ChainSubmittableExtrinsic<
@@ -14121,7 +14121,7 @@ export interface ChainTx<
14121
14121
  params: {
14122
14122
  dest: H160;
14123
14123
  value: bigint;
14124
- gasLimit: SpWeightsWeightV2Weight;
14124
+ weightLimit: SpWeightsWeightV2Weight;
14125
14125
  storageDepositLimit: bigint;
14126
14126
  data: BytesLike;
14127
14127
  };
@@ -14139,7 +14139,7 @@ export interface ChainTx<
14139
14139
  * must be supplied.
14140
14140
  *
14141
14141
  * @param {bigint} value
14142
- * @param {SpWeightsWeightV2Weight} gasLimit
14142
+ * @param {SpWeightsWeightV2Weight} weightLimit
14143
14143
  * @param {bigint} storageDepositLimit
14144
14144
  * @param {H256} codeHash
14145
14145
  * @param {BytesLike} data
@@ -14148,7 +14148,7 @@ export interface ChainTx<
14148
14148
  instantiate: GenericTxCall<
14149
14149
  (
14150
14150
  value: bigint,
14151
- gasLimit: SpWeightsWeightV2Weight,
14151
+ weightLimit: SpWeightsWeightV2Weight,
14152
14152
  storageDepositLimit: bigint,
14153
14153
  codeHash: H256,
14154
14154
  data: BytesLike,
@@ -14160,7 +14160,7 @@ export interface ChainTx<
14160
14160
  name: 'Instantiate';
14161
14161
  params: {
14162
14162
  value: bigint;
14163
- gasLimit: SpWeightsWeightV2Weight;
14163
+ weightLimit: SpWeightsWeightV2Weight;
14164
14164
  storageDepositLimit: bigint;
14165
14165
  codeHash: H256;
14166
14166
  data: BytesLike;
@@ -14183,7 +14183,7 @@ export interface ChainTx<
14183
14183
  * # Parameters
14184
14184
  *
14185
14185
  * * `value`: The balance to transfer from the `origin` to the newly created contract.
14186
- * * `gas_limit`: The gas limit enforced when executing the constructor.
14186
+ * * `weight_limit`: The weight limit enforced when executing the constructor.
14187
14187
  * * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
14188
14188
  * from the caller to pay for the storage consumed.
14189
14189
  * * `code`: The contract code to deploy in raw bytes.
@@ -14202,7 +14202,7 @@ export interface ChainTx<
14202
14202
  * - The `deploy` function is executed in the context of the newly-created account.
14203
14203
  *
14204
14204
  * @param {bigint} value
14205
- * @param {SpWeightsWeightV2Weight} gasLimit
14205
+ * @param {SpWeightsWeightV2Weight} weightLimit
14206
14206
  * @param {bigint} storageDepositLimit
14207
14207
  * @param {BytesLike} code
14208
14208
  * @param {BytesLike} data
@@ -14211,7 +14211,7 @@ export interface ChainTx<
14211
14211
  instantiateWithCode: GenericTxCall<
14212
14212
  (
14213
14213
  value: bigint,
14214
- gasLimit: SpWeightsWeightV2Weight,
14214
+ weightLimit: SpWeightsWeightV2Weight,
14215
14215
  storageDepositLimit: bigint,
14216
14216
  code: BytesLike,
14217
14217
  data: BytesLike,
@@ -14223,7 +14223,7 @@ export interface ChainTx<
14223
14223
  name: 'InstantiateWithCode';
14224
14224
  params: {
14225
14225
  value: bigint;
14226
- gasLimit: SpWeightsWeightV2Weight;
14226
+ weightLimit: SpWeightsWeightV2Weight;
14227
14227
  storageDepositLimit: bigint;
14228
14228
  code: BytesLike;
14229
14229
  data: BytesLike;
@@ -14239,24 +14239,44 @@ export interface ChainTx<
14239
14239
  * Same as [`Self::instantiate_with_code`], but intended to be dispatched **only**
14240
14240
  * by an EVM transaction through the EVM compatibility layer.
14241
14241
  *
14242
+ * # Parameters
14243
+ *
14244
+ * * `value`: The balance to transfer from the `origin` to the newly created contract.
14245
+ * * `weight_limit`: The gas limit used to derive the transaction weight for transaction
14246
+ * payment
14247
+ * * `eth_gas_limit`: The Ethereum gas limit governing the resource usage of the execution
14248
+ * * `code`: The contract code to deploy in raw bytes.
14249
+ * * `data`: The input data to pass to the contract constructor.
14250
+ * * `transaction_encoded`: The RLP encoding of the signed Ethereum transaction,
14251
+ * represented as [crate::evm::TransactionSigned], provided by the Ethereum wallet. This
14252
+ * is used for building the Ethereum transaction root.
14253
+ * * effective_gas_price: the price of a unit of gas
14254
+ * * encoded len: the byte code size of the `eth_transact` extrinsic
14255
+ *
14242
14256
  * Calling this dispatchable ensures that the origin's nonce is bumped only once,
14243
14257
  * via the `CheckNonce` transaction extension. In contrast, [`Self::instantiate_with_code`]
14244
14258
  * also bumps the nonce after contract instantiation, since it may be invoked multiple
14245
14259
  * times within a batch call transaction.
14246
14260
  *
14247
14261
  * @param {U256} value
14248
- * @param {SpWeightsWeightV2Weight} gasLimit
14249
- * @param {bigint} storageDepositLimit
14262
+ * @param {SpWeightsWeightV2Weight} weightLimit
14263
+ * @param {U256} ethGasLimit
14250
14264
  * @param {BytesLike} code
14251
14265
  * @param {BytesLike} data
14266
+ * @param {BytesLike} transactionEncoded
14267
+ * @param {U256} effectiveGasPrice
14268
+ * @param {number} encodedLen
14252
14269
  **/
14253
14270
  ethInstantiateWithCode: GenericTxCall<
14254
14271
  (
14255
14272
  value: U256,
14256
- gasLimit: SpWeightsWeightV2Weight,
14257
- storageDepositLimit: bigint,
14273
+ weightLimit: SpWeightsWeightV2Weight,
14274
+ ethGasLimit: U256,
14258
14275
  code: BytesLike,
14259
14276
  data: BytesLike,
14277
+ transactionEncoded: BytesLike,
14278
+ effectiveGasPrice: U256,
14279
+ encodedLen: number,
14260
14280
  ) => ChainSubmittableExtrinsic<
14261
14281
  {
14262
14282
  pallet: 'Revive';
@@ -14264,10 +14284,13 @@ export interface ChainTx<
14264
14284
  name: 'EthInstantiateWithCode';
14265
14285
  params: {
14266
14286
  value: U256;
14267
- gasLimit: SpWeightsWeightV2Weight;
14268
- storageDepositLimit: bigint;
14287
+ weightLimit: SpWeightsWeightV2Weight;
14288
+ ethGasLimit: U256;
14269
14289
  code: BytesLike;
14270
14290
  data: BytesLike;
14291
+ transactionEncoded: BytesLike;
14292
+ effectiveGasPrice: U256;
14293
+ encodedLen: number;
14271
14294
  };
14272
14295
  };
14273
14296
  },
@@ -14279,19 +14302,39 @@ export interface ChainTx<
14279
14302
  * Same as [`Self::call`], but intended to be dispatched **only**
14280
14303
  * by an EVM transaction through the EVM compatibility layer.
14281
14304
  *
14305
+ * # Parameters
14306
+ *
14307
+ * * `dest`: The Ethereum address of the account to be called
14308
+ * * `value`: The balance to transfer from the `origin` to the newly created contract.
14309
+ * * `weight_limit`: The gas limit used to derive the transaction weight for transaction
14310
+ * payment
14311
+ * * `eth_gas_limit`: The Ethereum gas limit governing the resource usage of the execution
14312
+ * * `data`: The input data to pass to the contract constructor.
14313
+ * * `transaction_encoded`: The RLP encoding of the signed Ethereum transaction,
14314
+ * represented as [crate::evm::TransactionSigned], provided by the Ethereum wallet. This
14315
+ * is used for building the Ethereum transaction root.
14316
+ * * effective_gas_price: the price of a unit of gas
14317
+ * * encoded len: the byte code size of the `eth_transact` extrinsic
14318
+ *
14282
14319
  * @param {H160} dest
14283
14320
  * @param {U256} value
14284
- * @param {SpWeightsWeightV2Weight} gasLimit
14285
- * @param {bigint} storageDepositLimit
14321
+ * @param {SpWeightsWeightV2Weight} weightLimit
14322
+ * @param {U256} ethGasLimit
14286
14323
  * @param {BytesLike} data
14324
+ * @param {BytesLike} transactionEncoded
14325
+ * @param {U256} effectiveGasPrice
14326
+ * @param {number} encodedLen
14287
14327
  **/
14288
14328
  ethCall: GenericTxCall<
14289
14329
  (
14290
14330
  dest: H160,
14291
14331
  value: U256,
14292
- gasLimit: SpWeightsWeightV2Weight,
14293
- storageDepositLimit: bigint,
14332
+ weightLimit: SpWeightsWeightV2Weight,
14333
+ ethGasLimit: U256,
14294
14334
  data: BytesLike,
14335
+ transactionEncoded: BytesLike,
14336
+ effectiveGasPrice: U256,
14337
+ encodedLen: number,
14295
14338
  ) => ChainSubmittableExtrinsic<
14296
14339
  {
14297
14340
  pallet: 'Revive';
@@ -14300,9 +14343,12 @@ export interface ChainTx<
14300
14343
  params: {
14301
14344
  dest: H160;
14302
14345
  value: U256;
14303
- gasLimit: SpWeightsWeightV2Weight;
14304
- storageDepositLimit: bigint;
14346
+ weightLimit: SpWeightsWeightV2Weight;
14347
+ ethGasLimit: U256;
14305
14348
  data: BytesLike;
14349
+ transactionEncoded: BytesLike;
14350
+ effectiveGasPrice: U256;
14351
+ encodedLen: number;
14306
14352
  };
14307
14353
  };
14308
14354
  },
@@ -14310,12 +14356,42 @@ export interface ChainTx<
14310
14356
  >
14311
14357
  >;
14312
14358
 
14359
+ /**
14360
+ * Executes a Substrate runtime call from an Ethereum transaction.
14361
+ *
14362
+ * This dispatchable is intended to be called **only** through the EVM compatibility
14363
+ * layer. The provided call will be dispatched using `RawOrigin::Signed`.
14364
+ *
14365
+ * # Parameters
14366
+ *
14367
+ * * `origin`: Must be an [`Origin::EthTransaction`] origin.
14368
+ * * `call`: The Substrate runtime call to execute.
14369
+ * * `transaction_encoded`: The RLP encoding of the Ethereum transaction,
14370
+ *
14371
+ * @param {AssetHubPaseoRuntimeRuntimeCallLike} call
14372
+ * @param {BytesLike} transactionEncoded
14373
+ **/
14374
+ ethSubstrateCall: GenericTxCall<
14375
+ (
14376
+ call: AssetHubPaseoRuntimeRuntimeCallLike,
14377
+ transactionEncoded: BytesLike,
14378
+ ) => ChainSubmittableExtrinsic<
14379
+ {
14380
+ pallet: 'Revive';
14381
+ palletCall: {
14382
+ name: 'EthSubstrateCall';
14383
+ params: { call: AssetHubPaseoRuntimeRuntimeCallLike; transactionEncoded: BytesLike };
14384
+ };
14385
+ },
14386
+ ChainKnownTypes
14387
+ >
14388
+ >;
14389
+
14313
14390
  /**
14314
14391
  * Upload new `code` without instantiating a contract from it.
14315
14392
  *
14316
14393
  * If the code does not already exist a deposit is reserved from the caller
14317
- * and unreserved only when [`Self::remove_code`] is called. The size of the reserve
14318
- * depends on the size of the supplied `code`.
14394
+ * The size of the reserve depends on the size of the supplied `code`.
14319
14395
  *
14320
14396
  * # Note
14321
14397
  *
@@ -14324,6 +14400,9 @@ export interface ChainTx<
14324
14400
  * only be instantiated by permissioned entities. The same is true when uploading
14325
14401
  * through [`Self::instantiate_with_code`].
14326
14402
  *
14403
+ * If the refcount of the code reaches zero after terminating the last contract that
14404
+ * references this code, the code will be removed automatically.
14405
+ *
14327
14406
  * @param {BytesLike} code
14328
14407
  * @param {bigint} storageDepositLimit
14329
14408
  **/