@dedot/chaintypes 0.38.0 → 0.40.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.40.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": "7a12e4f185fcb38cf7d323c52939dec9e3d24d75",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|
package/paseo/json-rpc.d.ts
CHANGED
|
@@ -5,13 +5,6 @@ import type { JsonRpcApis } from 'dedot/types/json-rpc';
|
|
|
5
5
|
|
|
6
6
|
export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
|
|
7
7
|
JsonRpcApis,
|
|
8
|
-
| 'archive_unstable_body'
|
|
9
|
-
| 'archive_unstable_call'
|
|
10
|
-
| 'archive_unstable_finalizedHeight'
|
|
11
|
-
| 'archive_unstable_genesisHash'
|
|
12
|
-
| 'archive_unstable_hashByHeight'
|
|
13
|
-
| 'archive_unstable_header'
|
|
14
|
-
| 'archive_unstable_storage'
|
|
15
8
|
| 'author_hasKey'
|
|
16
9
|
| 'author_hasSessionKeys'
|
|
17
10
|
| 'author_insertKey'
|
|
@@ -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: 1016006
|
|
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,
|
|
@@ -740,6 +740,10 @@ export type StagingXcmV5Instruction =
|
|
|
740
740
|
assets: Array<StagingXcmV5AssetAssetTransferFilter>;
|
|
741
741
|
remoteXcm: StagingXcmV5Xcm;
|
|
742
742
|
};
|
|
743
|
+
}
|
|
744
|
+
| {
|
|
745
|
+
type: 'ExecuteWithOrigin';
|
|
746
|
+
value: { descendantOrigin?: StagingXcmV5Junctions | undefined; xcm: StagingXcmV5Xcm };
|
|
743
747
|
};
|
|
744
748
|
|
|
745
749
|
export type StagingXcmV5AssetAssets = Array<StagingXcmV5Asset>;
|
|
@@ -13172,6 +13176,10 @@ export type PalletReviveError =
|
|
|
13172
13176
|
* Failed to convert a U256 to a Balance.
|
|
13173
13177
|
**/
|
|
13174
13178
|
| 'BalanceConversionFailed'
|
|
13179
|
+
/**
|
|
13180
|
+
* Failed to convert an EVM balance to a native balance.
|
|
13181
|
+
**/
|
|
13182
|
+
| 'DecimalPrecisionLoss'
|
|
13175
13183
|
/**
|
|
13176
13184
|
* Immutable data can only be set during deploys and only be read during calls.
|
|
13177
13185
|
* Additionally, it is only valid to set the data once and it must not be empty.
|