@dedot/chaintypes 0.41.0 → 0.42.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.
|
|
3
|
+
"version": "0.42.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": "e5b931e9c5550f64ddf9fae4b2a4af1e7bb6c9b2",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|
|
@@ -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: 1017001
|
|
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';
|
|
@@ -876,12 +877,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
876
877
|
**/
|
|
877
878
|
reviveApi: {
|
|
878
879
|
/**
|
|
879
|
-
* Returns the free balance of the given `[H160]` address.
|
|
880
|
+
* Returns the free balance of the given `[H160]` address, using EVM decimals.
|
|
880
881
|
*
|
|
881
882
|
* @callname: ReviveApi_balance
|
|
882
883
|
* @param {H160} address
|
|
883
884
|
**/
|
|
884
|
-
balance: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<
|
|
885
|
+
balance: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<U256>>;
|
|
885
886
|
|
|
886
887
|
/**
|
|
887
888
|
* Returns the nonce of the given `[H160]` address.
|
|
@@ -951,7 +952,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
951
952
|
* @callname: ReviveApi_eth_transact
|
|
952
953
|
* @param {H160} origin
|
|
953
954
|
* @param {H160 | undefined} dest
|
|
954
|
-
* @param {
|
|
955
|
+
* @param {U256} value
|
|
955
956
|
* @param {BytesLike} input
|
|
956
957
|
* @param {SpWeightsWeightV2Weight | undefined} gas_limit
|
|
957
958
|
* @param {bigint | undefined} storage_deposit_limit
|
|
@@ -961,7 +962,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
961
962
|
(
|
|
962
963
|
origin: H160,
|
|
963
964
|
dest: H160 | undefined,
|
|
964
|
-
value:
|
|
965
|
+
value: U256,
|
|
965
966
|
input: BytesLike,
|
|
966
967
|
gasLimit?: SpWeightsWeightV2Weight | undefined,
|
|
967
968
|
storageDepositLimit?: bigint | undefined,
|
|
@@ -13176,6 +13176,10 @@ export type PalletReviveError =
|
|
|
13176
13176
|
* Failed to convert a U256 to a Balance.
|
|
13177
13177
|
**/
|
|
13178
13178
|
| 'BalanceConversionFailed'
|
|
13179
|
+
/**
|
|
13180
|
+
* Failed to convert an EVM balance to a native balance.
|
|
13181
|
+
**/
|
|
13182
|
+
| 'DecimalPrecisionLoss'
|
|
13179
13183
|
/**
|
|
13180
13184
|
* Immutable data can only be set during deploys and only be read during calls.
|
|
13181
13185
|
* Additionally, it is only valid to set the data once and it must not be empty.
|
|
@@ -13393,7 +13397,7 @@ export type PalletRevivePrimitivesEthContractResult = {
|
|
|
13393
13397
|
fee: bigint;
|
|
13394
13398
|
gasRequired: SpWeightsWeightV2Weight;
|
|
13395
13399
|
storageDeposit: bigint;
|
|
13396
|
-
result: Result<
|
|
13400
|
+
result: Result<PalletRevivePrimitivesExecReturnValue, DispatchError>;
|
|
13397
13401
|
};
|
|
13398
13402
|
|
|
13399
13403
|
export type PalletRevivePrimitivesCodeUploadReturnValue = { codeHash: H256; deposit: bigint };
|