@dedot/chaintypes 0.100.0 → 0.101.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/README.md CHANGED
@@ -95,7 +95,7 @@ For more detailed information on connecting to networks, see the [official docum
95
95
  - Moonbeam
96
96
  - Aleph
97
97
  - Hydration
98
- - BasiliskApi
98
+ - Basilisk
99
99
 
100
100
  > Don't see your network? We welcome Pull Requests to add support for additional PolkadotSDK-based networks!
101
101
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.100.0",
3
+ "version": "0.101.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@dedot.dev>",
6
6
  "homepage": "https://dedot.dev",
@@ -25,7 +25,7 @@
25
25
  "directory": "dist"
26
26
  },
27
27
  "license": "Apache-2.0",
28
- "gitHead": "213e10fdc2a2b1e3be2b9dd150f2b2ca1b87939d",
28
+ "gitHead": "aea5fdeae906d7f82b60fc7b7dded85b7a595821",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
@@ -725,6 +725,36 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
725
725
  **/
726
726
  Unreachable: GenericPalletError<Rv>;
727
727
 
728
+ /**
729
+ * The asset provided for the tip is unsupported.
730
+ **/
731
+ UnsupportedAsset: GenericPalletError<Rv>;
732
+
733
+ /**
734
+ * Unable to withdraw asset.
735
+ **/
736
+ WithdrawError: GenericPalletError<Rv>;
737
+
738
+ /**
739
+ * Account could not be converted to a location.
740
+ **/
741
+ InvalidAccount: GenericPalletError<Rv>;
742
+
743
+ /**
744
+ * Provided tip asset could not be swapped for ether.
745
+ **/
746
+ SwapError: GenericPalletError<Rv>;
747
+
748
+ /**
749
+ * Ether could not be burned.
750
+ **/
751
+ BurnError: GenericPalletError<Rv>;
752
+
753
+ /**
754
+ * The tip provided is zero.
755
+ **/
756
+ TipAmountZero: GenericPalletError<Rv>;
757
+
728
758
  /**
729
759
  * Generic pallet error
730
760
  **/
@@ -23,7 +23,7 @@ export interface VersionedWestendAssetHubApi<Rv extends RpcVersion> extends Gene
23
23
 
24
24
  /**
25
25
  * @name: WestendAssetHubApi
26
- * @specVersion: 1018005
26
+ * @specVersion: 1018006
27
27
  **/
28
28
  export interface WestendAssetHubApi {
29
29
  legacy: VersionedWestendAssetHubApi<RpcLegacy>;
@@ -61,8 +61,8 @@ import type {
61
61
  PalletReviveEvmApiRpcTypesGenGenericTransaction,
62
62
  PalletRevivePrimitivesCodeUploadReturnValue,
63
63
  PalletRevivePrimitivesContractAccessError,
64
- PalletReviveEvmApiDebugRpcTypesCallTrace,
65
- PalletReviveEvmApiDebugRpcTypesTracerConfig,
64
+ PalletReviveEvmApiDebugRpcTypesTrace,
65
+ PalletReviveEvmApiDebugRpcTypesTracerType,
66
66
  } from './types.js';
67
67
 
68
68
  export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
@@ -1242,14 +1242,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1242
1242
  *
1243
1243
  * @callname: ReviveApi_trace_block
1244
1244
  * @param {SpRuntimeBlock} block
1245
- * @param {PalletReviveEvmApiDebugRpcTypesTracerConfig} config
1245
+ * @param {PalletReviveEvmApiDebugRpcTypesTracerType} config
1246
1246
  **/
1247
1247
  traceBlock: GenericRuntimeApiMethod<
1248
1248
  Rv,
1249
1249
  (
1250
1250
  block: SpRuntimeBlock,
1251
- config: PalletReviveEvmApiDebugRpcTypesTracerConfig,
1252
- ) => Promise<Array<[number, PalletReviveEvmApiDebugRpcTypesCallTrace]>>
1251
+ config: PalletReviveEvmApiDebugRpcTypesTracerType,
1252
+ ) => Promise<Array<[number, PalletReviveEvmApiDebugRpcTypesTrace]>>
1253
1253
  >;
1254
1254
 
1255
1255
  /**
@@ -1263,15 +1263,15 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1263
1263
  * @callname: ReviveApi_trace_tx
1264
1264
  * @param {SpRuntimeBlock} block
1265
1265
  * @param {number} tx_index
1266
- * @param {PalletReviveEvmApiDebugRpcTypesTracerConfig} config
1266
+ * @param {PalletReviveEvmApiDebugRpcTypesTracerType} config
1267
1267
  **/
1268
1268
  traceTx: GenericRuntimeApiMethod<
1269
1269
  Rv,
1270
1270
  (
1271
1271
  block: SpRuntimeBlock,
1272
1272
  txIndex: number,
1273
- config: PalletReviveEvmApiDebugRpcTypesTracerConfig,
1274
- ) => Promise<PalletReviveEvmApiDebugRpcTypesCallTrace | undefined>
1273
+ config: PalletReviveEvmApiDebugRpcTypesTracerType,
1274
+ ) => Promise<PalletReviveEvmApiDebugRpcTypesTrace | undefined>
1275
1275
  >;
1276
1276
 
1277
1277
  /**
@@ -1281,14 +1281,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1281
1281
  *
1282
1282
  * @callname: ReviveApi_trace_call
1283
1283
  * @param {PalletReviveEvmApiRpcTypesGenGenericTransaction} tx
1284
- * @param {PalletReviveEvmApiDebugRpcTypesTracerConfig} config
1284
+ * @param {PalletReviveEvmApiDebugRpcTypesTracerType} config
1285
1285
  **/
1286
1286
  traceCall: GenericRuntimeApiMethod<
1287
1287
  Rv,
1288
1288
  (
1289
1289
  tx: PalletReviveEvmApiRpcTypesGenGenericTransaction,
1290
- config: PalletReviveEvmApiDebugRpcTypesTracerConfig,
1291
- ) => Promise<Result<PalletReviveEvmApiDebugRpcTypesCallTrace, PalletRevivePrimitivesEthTransactError>>
1290
+ config: PalletReviveEvmApiDebugRpcTypesTracerType,
1291
+ ) => Promise<Result<PalletReviveEvmApiDebugRpcTypesTrace, PalletRevivePrimitivesEthTransactError>>
1292
1292
  >;
1293
1293
 
1294
1294
  /**
@@ -43,6 +43,8 @@ import type {
43
43
  CumulusPrimitivesCoreAggregateMessageOrigin,
44
44
  SnowbridgeCoreOperatingModeBasicOperatingMode,
45
45
  SnowbridgeCoreAssetMetadata,
46
+ SnowbridgeCoreRewardMessageId,
47
+ StagingXcmV5Asset,
46
48
  AssetHubWestendRuntimeOriginCaller,
47
49
  PalletMultisigTimepoint,
48
50
  AssetHubWestendRuntimeProxyType,
@@ -2828,6 +2830,30 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2828
2830
  >
2829
2831
  >;
2830
2832
 
2833
+ /**
2834
+ * Add an additional relayer tip for a committed message identified by `message_id`.
2835
+ * The tip asset will be swapped for ether.
2836
+ *
2837
+ * @param {SnowbridgeCoreRewardMessageId} messageId
2838
+ * @param {StagingXcmV5Asset} asset
2839
+ **/
2840
+ addTip: GenericTxCall<
2841
+ Rv,
2842
+ (
2843
+ messageId: SnowbridgeCoreRewardMessageId,
2844
+ asset: StagingXcmV5Asset,
2845
+ ) => ChainSubmittableExtrinsic<
2846
+ Rv,
2847
+ {
2848
+ pallet: 'SnowbridgeSystemFrontend';
2849
+ palletCall: {
2850
+ name: 'AddTip';
2851
+ params: { messageId: SnowbridgeCoreRewardMessageId; asset: StagingXcmV5Asset };
2852
+ };
2853
+ }
2854
+ >
2855
+ >;
2856
+
2831
2857
  /**
2832
2858
  * Generic pallet tx call
2833
2859
  **/
@@ -6216,7 +6216,12 @@ export type SnowbridgePalletSystemFrontendCall =
6216
6216
  * All origins are allowed, however `asset_id` must be a location nested within the origin
6217
6217
  * consensus system.
6218
6218
  **/
6219
- | { name: 'RegisterToken'; params: { assetId: XcmVersionedLocation; metadata: SnowbridgeCoreAssetMetadata } };
6219
+ | { name: 'RegisterToken'; params: { assetId: XcmVersionedLocation; metadata: SnowbridgeCoreAssetMetadata } }
6220
+ /**
6221
+ * Add an additional relayer tip for a committed message identified by `message_id`.
6222
+ * The tip asset will be swapped for ether.
6223
+ **/
6224
+ | { name: 'AddTip'; params: { messageId: SnowbridgeCoreRewardMessageId; asset: StagingXcmV5Asset } };
6220
6225
 
6221
6226
  export type SnowbridgePalletSystemFrontendCallLike =
6222
6227
  /**
@@ -6232,10 +6237,17 @@ export type SnowbridgePalletSystemFrontendCallLike =
6232
6237
  * All origins are allowed, however `asset_id` must be a location nested within the origin
6233
6238
  * consensus system.
6234
6239
  **/
6235
- | { name: 'RegisterToken'; params: { assetId: XcmVersionedLocation; metadata: SnowbridgeCoreAssetMetadata } };
6240
+ | { name: 'RegisterToken'; params: { assetId: XcmVersionedLocation; metadata: SnowbridgeCoreAssetMetadata } }
6241
+ /**
6242
+ * Add an additional relayer tip for a committed message identified by `message_id`.
6243
+ * The tip asset will be swapped for ether.
6244
+ **/
6245
+ | { name: 'AddTip'; params: { messageId: SnowbridgeCoreRewardMessageId; asset: StagingXcmV5Asset } };
6236
6246
 
6237
6247
  export type SnowbridgeCoreAssetMetadata = { name: Bytes; symbol: Bytes; decimals: number };
6238
6248
 
6249
+ export type SnowbridgeCoreRewardMessageId = { type: 'Inbound'; value: bigint } | { type: 'Outbound'; value: bigint };
6250
+
6239
6251
  /**
6240
6252
  * Contains a variant per dispatchable extrinsic that this pallet has.
6241
6253
  **/
@@ -18917,7 +18929,31 @@ export type SnowbridgePalletSystemFrontendError =
18917
18929
  * The desired destination was unreachable, generally because there is a no way of routing
18918
18930
  * to it.
18919
18931
  **/
18920
- | 'Unreachable';
18932
+ | 'Unreachable'
18933
+ /**
18934
+ * The asset provided for the tip is unsupported.
18935
+ **/
18936
+ | 'UnsupportedAsset'
18937
+ /**
18938
+ * Unable to withdraw asset.
18939
+ **/
18940
+ | 'WithdrawError'
18941
+ /**
18942
+ * Account could not be converted to a location.
18943
+ **/
18944
+ | 'InvalidAccount'
18945
+ /**
18946
+ * Provided tip asset could not be swapped for ether.
18947
+ **/
18948
+ | 'SwapError'
18949
+ /**
18950
+ * Ether could not be burned.
18951
+ **/
18952
+ | 'BurnError'
18953
+ /**
18954
+ * The tip provided is zero.
18955
+ **/
18956
+ | 'TipAmountZero';
18921
18957
 
18922
18958
  /**
18923
18959
  * The `Error` enum of this pallet.
@@ -21122,11 +21158,6 @@ export type PalletRevivePrimitivesCodeUploadReturnValue = { codeHash: H256; depo
21122
21158
 
21123
21159
  export type PalletRevivePrimitivesContractAccessError = 'DoesntExist' | 'KeyDecodingFailed';
21124
21160
 
21125
- export type PalletReviveEvmApiDebugRpcTypesTracerConfig = {
21126
- config: PalletReviveEvmApiDebugRpcTypesTracerType;
21127
- timeout?: Duration | undefined;
21128
- };
21129
-
21130
21161
  export type PalletReviveEvmApiDebugRpcTypesTracerType = {
21131
21162
  type: 'CallTracer';
21132
21163
  value?: PalletReviveEvmApiDebugRpcTypesCallTracerConfig | undefined;
@@ -21134,7 +21165,7 @@ export type PalletReviveEvmApiDebugRpcTypesTracerType = {
21134
21165
 
21135
21166
  export type PalletReviveEvmApiDebugRpcTypesCallTracerConfig = { withLogs: boolean; onlyTopCall: boolean };
21136
21167
 
21137
- export type Duration = [bigint, number];
21168
+ export type PalletReviveEvmApiDebugRpcTypesTrace = { type: 'Call'; value: PalletReviveEvmApiDebugRpcTypesCallTrace };
21138
21169
 
21139
21170
  export type PalletReviveEvmApiDebugRpcTypesCallTrace = {
21140
21171
  from: H160;