@dedot/chaintypes 0.42.0 → 0.44.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.42.0",
3
+ "version": "0.44.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@coongcrafts.io>",
6
6
  "main": "",
@@ -12,14 +12,14 @@
12
12
  "copy": "cp -R ./src/* ./dist"
13
13
  },
14
14
  "dependencies": {
15
- "dedot": "^0.6.0"
15
+ "dedot": "^0.6.1"
16
16
  },
17
17
  "publishConfig": {
18
18
  "access": "public",
19
19
  "directory": "dist"
20
20
  },
21
21
  "license": "Apache-2.0",
22
- "gitHead": "e5b931e9c5550f64ddf9fae4b2a4af1e7bb6c9b2",
22
+ "gitHead": "88fa917e2d300e33a72e5e73ec575f65d09899c2",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts"
25
25
  }
package/paseo/index.d.ts CHANGED
@@ -23,7 +23,7 @@ export interface VersionedPaseoApi<Rv extends RpcVersion> extends GenericSubstra
23
23
 
24
24
  /**
25
25
  * @name: PaseoApi
26
- * @specVersion: 1003003
26
+ * @specVersion: 1003004
27
27
  **/
28
28
  export interface PaseoApi {
29
29
  legacy: VersionedPaseoApi<RpcLegacy>;
@@ -23,7 +23,7 @@ export interface VersionedWestendAssetHubApi<Rv extends RpcVersion> extends Gene
23
23
 
24
24
  /**
25
25
  * @name: WestendAssetHubApi
26
- * @specVersion: 1017001
26
+ * @specVersion: 1017002
27
27
  **/
28
28
  export interface WestendAssetHubApi {
29
29
  legacy: VersionedWestendAssetHubApi<RpcLegacy>;
@@ -54,7 +54,9 @@ import type {
54
54
  PalletRevivePrimitivesContractResult,
55
55
  PalletRevivePrimitivesContractResultInstantiateReturnValue,
56
56
  PalletRevivePrimitivesCode,
57
- PalletRevivePrimitivesEthContractResult,
57
+ PalletRevivePrimitivesEthTransactInfo,
58
+ PalletRevivePrimitivesEthTransactError,
59
+ PalletReviveEvmApiRpcTypesGenGenericTransaction,
58
60
  PalletRevivePrimitivesCodeUploadReturnValue,
59
61
  PalletRevivePrimitivesContractAccessError,
60
62
  } from './types';
@@ -950,23 +952,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
950
952
  * See [`crate::Pallet::bare_eth_transact`]
951
953
  *
952
954
  * @callname: ReviveApi_eth_transact
953
- * @param {H160} origin
954
- * @param {H160 | undefined} dest
955
- * @param {U256} value
956
- * @param {BytesLike} input
957
- * @param {SpWeightsWeightV2Weight | undefined} gas_limit
958
- * @param {bigint | undefined} storage_deposit_limit
955
+ * @param {PalletReviveEvmApiRpcTypesGenGenericTransaction} tx
959
956
  **/
960
957
  ethTransact: GenericRuntimeApiMethod<
961
958
  Rv,
962
959
  (
963
- origin: H160,
964
- dest: H160 | undefined,
965
- value: U256,
966
- input: BytesLike,
967
- gasLimit?: SpWeightsWeightV2Weight | undefined,
968
- storageDepositLimit?: bigint | undefined,
969
- ) => Promise<PalletRevivePrimitivesEthContractResult>
960
+ tx: PalletReviveEvmApiRpcTypesGenGenericTransaction,
961
+ ) => Promise<Result<PalletRevivePrimitivesEthTransactInfo, PalletRevivePrimitivesEthTransactError>>
970
962
  >;
971
963
 
972
964
  /**
@@ -8994,7 +8994,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8994
8994
  *
8995
8995
  * # Parameters
8996
8996
  *
8997
- * * `payload`: The RLP-encoded [`crate::evm::TransactionLegacySigned`].
8997
+ * * `payload`: The encoded [`crate::evm::TransactionSigned`].
8998
8998
  * * `gas_limit`: The gas limit enforced during contract execution.
8999
8999
  * * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
9000
9000
  * storage usage.
@@ -19,6 +19,7 @@ import type {
19
19
  Era,
20
20
  Header,
21
21
  UncheckedExtrinsic,
22
+ U256,
22
23
  } from 'dedot/codecs';
23
24
 
24
25
  export type FrameSystemAccountInfo = {
@@ -11713,7 +11714,7 @@ export type PalletReviveCall =
11713
11714
  *
11714
11715
  * # Parameters
11715
11716
  *
11716
- * * `payload`: The RLP-encoded [`crate::evm::TransactionLegacySigned`].
11717
+ * * `payload`: The encoded [`crate::evm::TransactionSigned`].
11717
11718
  * * `gas_limit`: The gas limit enforced during contract execution.
11718
11719
  * * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
11719
11720
  * storage usage.
@@ -11876,7 +11877,7 @@ export type PalletReviveCallLike =
11876
11877
  *
11877
11878
  * # Parameters
11878
11879
  *
11879
- * * `payload`: The RLP-encoded [`crate::evm::TransactionLegacySigned`].
11880
+ * * `payload`: The encoded [`crate::evm::TransactionSigned`].
11880
11881
  * * `gas_limit`: The gas limit enforced during contract execution.
11881
11882
  * * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
11882
11883
  * storage usage.
@@ -13393,13 +13394,41 @@ export type PalletRevivePrimitivesInstantiateReturnValue = {
13393
13394
  addr: H160;
13394
13395
  };
13395
13396
 
13396
- export type PalletRevivePrimitivesEthContractResult = {
13397
- fee: bigint;
13397
+ export type PalletReviveEvmApiRpcTypesGenGenericTransaction = {
13398
+ accessList?: Array<PalletReviveEvmApiRpcTypesGenAccessListEntry> | undefined;
13399
+ blobVersionedHashes: Array<H256>;
13400
+ blobs: Array<PalletReviveEvmApiByteBytes>;
13401
+ chainId?: U256 | undefined;
13402
+ from?: H160 | undefined;
13403
+ gas?: U256 | undefined;
13404
+ gasPrice?: U256 | undefined;
13405
+ input?: PalletReviveEvmApiByteBytes | undefined;
13406
+ maxFeePerBlobGas?: U256 | undefined;
13407
+ maxFeePerGas?: U256 | undefined;
13408
+ maxPriorityFeePerGas?: U256 | undefined;
13409
+ nonce?: U256 | undefined;
13410
+ to?: H160 | undefined;
13411
+ rType?: PalletReviveEvmApiByte | undefined;
13412
+ value?: U256 | undefined;
13413
+ };
13414
+
13415
+ export type PalletReviveEvmApiRpcTypesGenAccessListEntry = { address: H160; storageKeys: Array<H256> };
13416
+
13417
+ export type PalletReviveEvmApiByteBytes = Bytes;
13418
+
13419
+ export type PalletReviveEvmApiByte = number;
13420
+
13421
+ export type PalletRevivePrimitivesEthTransactInfo = {
13398
13422
  gasRequired: SpWeightsWeightV2Weight;
13399
13423
  storageDeposit: bigint;
13400
- result: Result<PalletRevivePrimitivesExecReturnValue, DispatchError>;
13424
+ ethGas: U256;
13425
+ data: Bytes;
13401
13426
  };
13402
13427
 
13428
+ export type PalletRevivePrimitivesEthTransactError =
13429
+ | { type: 'Data'; value: Bytes }
13430
+ | { type: 'Message'; value: string };
13431
+
13403
13432
  export type PalletRevivePrimitivesCodeUploadReturnValue = { codeHash: H256; deposit: bigint };
13404
13433
 
13405
13434
  export type PalletRevivePrimitivesContractAccessError = 'DoesntExist' | 'KeyDecodingFailed';