@dedot/chaintypes 0.41.0 → 0.43.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/astar/consts.d.ts +350 -2
- package/astar/errors.d.ts +661 -5
- package/astar/events.d.ts +949 -4
- package/astar/index.d.ts +1 -1
- package/astar/query.d.ts +662 -42
- package/astar/runtime.d.ts +60 -8
- package/astar/tx.d.ts +3136 -88
- package/astar/types.d.ts +2650 -242
- package/package.json +2 -2
- package/paseo/index.d.ts +1 -1
- package/westend-asset-hub/errors.d.ts +5 -0
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/runtime.d.ts +9 -16
- package/westend-asset-hub/tx.d.ts +1 -1
- package/westend-asset-hub/types.d.ts +38 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@coongcrafts.io>",
|
|
6
6
|
"main": "",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"directory": "dist"
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "c8d5d84414bd6813e7c8d25e4fd0c797185e86b3",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|
package/paseo/index.d.ts
CHANGED
|
@@ -1776,6 +1776,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1776
1776
|
**/
|
|
1777
1777
|
BalanceConversionFailed: GenericPalletError<Rv>;
|
|
1778
1778
|
|
|
1779
|
+
/**
|
|
1780
|
+
* Failed to convert an EVM balance to a native balance.
|
|
1781
|
+
**/
|
|
1782
|
+
DecimalPrecisionLoss: GenericPalletError<Rv>;
|
|
1783
|
+
|
|
1779
1784
|
/**
|
|
1780
1785
|
* Immutable data can only be set during deploys and only be read during calls.
|
|
1781
1786
|
* Additionally, it is only valid to set the data once and it must not be empty.
|
|
@@ -23,7 +23,7 @@ export interface VersionedWestendAssetHubApi<Rv extends RpcVersion> extends Gene
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @name: WestendAssetHubApi
|
|
26
|
-
* @specVersion:
|
|
26
|
+
* @specVersion: 1017002
|
|
27
27
|
**/
|
|
28
28
|
export interface WestendAssetHubApi {
|
|
29
29
|
legacy: VersionedWestendAssetHubApi<RpcLegacy>;
|
|
@@ -13,6 +13,7 @@ import type {
|
|
|
13
13
|
BytesLike,
|
|
14
14
|
AccountId32Like,
|
|
15
15
|
AccountId32,
|
|
16
|
+
U256,
|
|
16
17
|
H160,
|
|
17
18
|
FixedBytes,
|
|
18
19
|
} from 'dedot/codecs';
|
|
@@ -53,7 +54,9 @@ import type {
|
|
|
53
54
|
PalletRevivePrimitivesContractResult,
|
|
54
55
|
PalletRevivePrimitivesContractResultInstantiateReturnValue,
|
|
55
56
|
PalletRevivePrimitivesCode,
|
|
56
|
-
|
|
57
|
+
PalletRevivePrimitivesEthTransactInfo,
|
|
58
|
+
PalletRevivePrimitivesEthTransactError,
|
|
59
|
+
PalletReviveEvmApiRpcTypesGenGenericTransaction,
|
|
57
60
|
PalletRevivePrimitivesCodeUploadReturnValue,
|
|
58
61
|
PalletRevivePrimitivesContractAccessError,
|
|
59
62
|
} from './types';
|
|
@@ -876,12 +879,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
876
879
|
**/
|
|
877
880
|
reviveApi: {
|
|
878
881
|
/**
|
|
879
|
-
* Returns the free balance of the given `[H160]` address.
|
|
882
|
+
* Returns the free balance of the given `[H160]` address, using EVM decimals.
|
|
880
883
|
*
|
|
881
884
|
* @callname: ReviveApi_balance
|
|
882
885
|
* @param {H160} address
|
|
883
886
|
**/
|
|
884
|
-
balance: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<
|
|
887
|
+
balance: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<U256>>;
|
|
885
888
|
|
|
886
889
|
/**
|
|
887
890
|
* Returns the nonce of the given `[H160]` address.
|
|
@@ -949,23 +952,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
949
952
|
* See [`crate::Pallet::bare_eth_transact`]
|
|
950
953
|
*
|
|
951
954
|
* @callname: ReviveApi_eth_transact
|
|
952
|
-
* @param {
|
|
953
|
-
* @param {H160 | undefined} dest
|
|
954
|
-
* @param {bigint} value
|
|
955
|
-
* @param {BytesLike} input
|
|
956
|
-
* @param {SpWeightsWeightV2Weight | undefined} gas_limit
|
|
957
|
-
* @param {bigint | undefined} storage_deposit_limit
|
|
955
|
+
* @param {PalletReviveEvmApiRpcTypesGenGenericTransaction} tx
|
|
958
956
|
**/
|
|
959
957
|
ethTransact: GenericRuntimeApiMethod<
|
|
960
958
|
Rv,
|
|
961
959
|
(
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
value: bigint,
|
|
965
|
-
input: BytesLike,
|
|
966
|
-
gasLimit?: SpWeightsWeightV2Weight | undefined,
|
|
967
|
-
storageDepositLimit?: bigint | undefined,
|
|
968
|
-
) => Promise<PalletRevivePrimitivesEthContractResult>
|
|
960
|
+
tx: PalletReviveEvmApiRpcTypesGenGenericTransaction,
|
|
961
|
+
) => Promise<Result<PalletRevivePrimitivesEthTransactInfo, PalletRevivePrimitivesEthTransactError>>
|
|
969
962
|
>;
|
|
970
963
|
|
|
971
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
|
|
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
|
|
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
|
|
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.
|
|
@@ -13176,6 +13177,10 @@ export type PalletReviveError =
|
|
|
13176
13177
|
* Failed to convert a U256 to a Balance.
|
|
13177
13178
|
**/
|
|
13178
13179
|
| 'BalanceConversionFailed'
|
|
13180
|
+
/**
|
|
13181
|
+
* Failed to convert an EVM balance to a native balance.
|
|
13182
|
+
**/
|
|
13183
|
+
| 'DecimalPrecisionLoss'
|
|
13179
13184
|
/**
|
|
13180
13185
|
* Immutable data can only be set during deploys and only be read during calls.
|
|
13181
13186
|
* Additionally, it is only valid to set the data once and it must not be empty.
|
|
@@ -13389,13 +13394,41 @@ export type PalletRevivePrimitivesInstantiateReturnValue = {
|
|
|
13389
13394
|
addr: H160;
|
|
13390
13395
|
};
|
|
13391
13396
|
|
|
13392
|
-
export type
|
|
13393
|
-
|
|
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 = {
|
|
13394
13422
|
gasRequired: SpWeightsWeightV2Weight;
|
|
13395
13423
|
storageDeposit: bigint;
|
|
13396
|
-
|
|
13424
|
+
ethGas: U256;
|
|
13425
|
+
data: Bytes;
|
|
13397
13426
|
};
|
|
13398
13427
|
|
|
13428
|
+
export type PalletRevivePrimitivesEthTransactError =
|
|
13429
|
+
| { type: 'Data'; value: Bytes }
|
|
13430
|
+
| { type: 'Message'; value: string };
|
|
13431
|
+
|
|
13399
13432
|
export type PalletRevivePrimitivesCodeUploadReturnValue = { codeHash: H256; deposit: bigint };
|
|
13400
13433
|
|
|
13401
13434
|
export type PalletRevivePrimitivesContractAccessError = 'DoesntExist' | 'KeyDecodingFailed';
|