@dedot/chaintypes 0.205.0 → 0.207.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/json-rpc.d.ts +11 -9
- package/basilisk/consts.d.ts +86 -19
- package/basilisk/errors.d.ts +66 -24
- package/basilisk/events.d.ts +211 -51
- package/basilisk/index.d.ts +1 -1
- package/basilisk/json-rpc.d.ts +10 -7
- package/basilisk/query.d.ts +120 -61
- package/basilisk/runtime.d.ts +389 -84
- package/basilisk/tx.d.ts +404 -48
- package/basilisk/types.d.ts +1068 -386
- package/package.json +2 -2
- package/paseo-hydration/events.d.ts +10 -12
- package/paseo-hydration/index.d.ts +1 -1
- package/paseo-hydration/query.d.ts +9 -0
- package/paseo-hydration/tx.d.ts +14 -21
- package/paseo-hydration/types.d.ts +20 -28
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.207.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": "
|
|
28
|
+
"gitHead": "998a4f5dd236acf1cac6520a0c3bdad9234b0ac2",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|
|
@@ -2767,25 +2767,23 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
2767
2767
|
>;
|
|
2768
2768
|
|
|
2769
2769
|
/**
|
|
2770
|
-
* Sign
|
|
2770
|
+
* Sign bidirectional request event
|
|
2771
2771
|
**/
|
|
2772
|
-
|
|
2772
|
+
SignBidirectionalRequested: GenericPalletEvent<
|
|
2773
2773
|
'Signet',
|
|
2774
|
-
'
|
|
2774
|
+
'SignBidirectionalRequested',
|
|
2775
2775
|
{
|
|
2776
2776
|
sender: AccountId32;
|
|
2777
|
-
|
|
2778
|
-
|
|
2777
|
+
serializedTransaction: Bytes;
|
|
2778
|
+
caip2Id: Bytes;
|
|
2779
2779
|
keyVersion: number;
|
|
2780
2780
|
deposit: bigint;
|
|
2781
2781
|
path: Bytes;
|
|
2782
2782
|
algo: Bytes;
|
|
2783
2783
|
dest: Bytes;
|
|
2784
2784
|
params: Bytes;
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
callbackSerializationFormat: number;
|
|
2788
|
-
callbackSerializationSchema: Bytes;
|
|
2785
|
+
outputDeserializationSchema: Bytes;
|
|
2786
|
+
respondSerializationSchema: Bytes;
|
|
2789
2787
|
}
|
|
2790
2788
|
>;
|
|
2791
2789
|
|
|
@@ -2808,11 +2806,11 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
2808
2806
|
>;
|
|
2809
2807
|
|
|
2810
2808
|
/**
|
|
2811
|
-
*
|
|
2809
|
+
* Respond bidirectional event
|
|
2812
2810
|
**/
|
|
2813
|
-
|
|
2811
|
+
RespondBidirectionalEvent: GenericPalletEvent<
|
|
2814
2812
|
'Signet',
|
|
2815
|
-
'
|
|
2813
|
+
'RespondBidirectionalEvent',
|
|
2816
2814
|
{ requestId: FixedBytes<32>; responder: AccountId32; serializedOutput: Bytes; signature: PalletSignetSignature }
|
|
2817
2815
|
>;
|
|
2818
2816
|
|
|
@@ -2209,6 +2209,15 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2209
2209
|
**/
|
|
2210
2210
|
markedEvmAccounts: GenericStorageQuery<(arg: AccountId32Like) => [] | undefined, AccountId32>;
|
|
2211
2211
|
|
|
2212
|
+
/**
|
|
2213
|
+
* ERC20-style allowances storage for the MultiCurrency precompile:
|
|
2214
|
+
* (asset_id, owner, spender) -> allowance
|
|
2215
|
+
*
|
|
2216
|
+
* @param {[number, H160, H160]} arg
|
|
2217
|
+
* @param {Callback<bigint> =} callback
|
|
2218
|
+
**/
|
|
2219
|
+
allowances: GenericStorageQuery<(arg: [number, H160, H160]) => bigint, [number, H160, H160]>;
|
|
2220
|
+
|
|
2212
2221
|
/**
|
|
2213
2222
|
* Generic pallet storage query
|
|
2214
2223
|
**/
|
package/paseo-hydration/tx.d.ts
CHANGED
|
@@ -59,7 +59,6 @@ import type {
|
|
|
59
59
|
PalletReferralsLevel,
|
|
60
60
|
PalletReferralsFeeDistribution,
|
|
61
61
|
PalletHsmArbitrage,
|
|
62
|
-
PalletSignetSerializationFormat,
|
|
63
62
|
PalletSignetSignature,
|
|
64
63
|
PalletSignetErrorResponse,
|
|
65
64
|
PalletDispenserEvmTransactionParams,
|
|
@@ -9442,47 +9441,41 @@ export interface ChainTx<
|
|
|
9442
9441
|
* Request a signature for a serialized transaction
|
|
9443
9442
|
*
|
|
9444
9443
|
* @param {BytesLike} serializedTransaction
|
|
9445
|
-
* @param {
|
|
9444
|
+
* @param {BytesLike} caip2Id
|
|
9446
9445
|
* @param {number} keyVersion
|
|
9447
9446
|
* @param {BytesLike} path
|
|
9448
9447
|
* @param {BytesLike} algo
|
|
9449
9448
|
* @param {BytesLike} dest
|
|
9450
9449
|
* @param {BytesLike} params
|
|
9451
|
-
* @param {
|
|
9452
|
-
* @param {BytesLike}
|
|
9453
|
-
* @param {PalletSignetSerializationFormat} callbackSerializationFormat
|
|
9454
|
-
* @param {BytesLike} callbackSerializationSchema
|
|
9450
|
+
* @param {BytesLike} outputDeserializationSchema
|
|
9451
|
+
* @param {BytesLike} respondSerializationSchema
|
|
9455
9452
|
**/
|
|
9456
|
-
|
|
9453
|
+
signBidirectional: GenericTxCall<
|
|
9457
9454
|
(
|
|
9458
9455
|
serializedTransaction: BytesLike,
|
|
9459
|
-
|
|
9456
|
+
caip2Id: BytesLike,
|
|
9460
9457
|
keyVersion: number,
|
|
9461
9458
|
path: BytesLike,
|
|
9462
9459
|
algo: BytesLike,
|
|
9463
9460
|
dest: BytesLike,
|
|
9464
9461
|
params: BytesLike,
|
|
9465
|
-
|
|
9466
|
-
|
|
9467
|
-
callbackSerializationFormat: PalletSignetSerializationFormat,
|
|
9468
|
-
callbackSerializationSchema: BytesLike,
|
|
9462
|
+
outputDeserializationSchema: BytesLike,
|
|
9463
|
+
respondSerializationSchema: BytesLike,
|
|
9469
9464
|
) => ChainSubmittableExtrinsic<
|
|
9470
9465
|
{
|
|
9471
9466
|
pallet: 'Signet';
|
|
9472
9467
|
palletCall: {
|
|
9473
|
-
name: '
|
|
9468
|
+
name: 'SignBidirectional';
|
|
9474
9469
|
params: {
|
|
9475
9470
|
serializedTransaction: BytesLike;
|
|
9476
|
-
|
|
9471
|
+
caip2Id: BytesLike;
|
|
9477
9472
|
keyVersion: number;
|
|
9478
9473
|
path: BytesLike;
|
|
9479
9474
|
algo: BytesLike;
|
|
9480
9475
|
dest: BytesLike;
|
|
9481
9476
|
params: BytesLike;
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
callbackSerializationFormat: PalletSignetSerializationFormat;
|
|
9485
|
-
callbackSerializationSchema: BytesLike;
|
|
9477
|
+
outputDeserializationSchema: BytesLike;
|
|
9478
|
+
respondSerializationSchema: BytesLike;
|
|
9486
9479
|
};
|
|
9487
9480
|
};
|
|
9488
9481
|
},
|
|
@@ -9537,7 +9530,7 @@ export interface ChainTx<
|
|
|
9537
9530
|
* @param {BytesLike} serializedOutput
|
|
9538
9531
|
* @param {PalletSignetSignature} signature
|
|
9539
9532
|
**/
|
|
9540
|
-
|
|
9533
|
+
respondBidirectional: GenericTxCall<
|
|
9541
9534
|
(
|
|
9542
9535
|
requestId: FixedBytes<32>,
|
|
9543
9536
|
serializedOutput: BytesLike,
|
|
@@ -9546,7 +9539,7 @@ export interface ChainTx<
|
|
|
9546
9539
|
{
|
|
9547
9540
|
pallet: 'Signet';
|
|
9548
9541
|
palletCall: {
|
|
9549
|
-
name: '
|
|
9542
|
+
name: 'RespondBidirectional';
|
|
9550
9543
|
params: { requestId: FixedBytes<32>; serializedOutput: BytesLike; signature: PalletSignetSignature };
|
|
9551
9544
|
};
|
|
9552
9545
|
},
|
|
@@ -9572,7 +9565,7 @@ export interface ChainTx<
|
|
|
9572
9565
|
* - Charges the configured fee in `FeeAsset`.
|
|
9573
9566
|
* - Transfers the requested faucet asset from the user to `FeeDestination`.
|
|
9574
9567
|
* - Builds an EVM transaction calling `IGasFaucet::fund`.
|
|
9575
|
-
* - Submits a signing request to SigNet via `pallet_signet::
|
|
9568
|
+
* - Submits a signing request to SigNet via `pallet_signet::sign_bidirectional`.
|
|
9576
9569
|
*
|
|
9577
9570
|
* The `request_id` must match the ID derived internally from the inputs,
|
|
9578
9571
|
* otherwise the call will fail with `InvalidRequestId`.
|
|
@@ -10262,19 +10262,17 @@ export type PalletSignetCall =
|
|
|
10262
10262
|
* Request a signature for a serialized transaction
|
|
10263
10263
|
**/
|
|
10264
10264
|
| {
|
|
10265
|
-
name: '
|
|
10265
|
+
name: 'SignBidirectional';
|
|
10266
10266
|
params: {
|
|
10267
10267
|
serializedTransaction: Bytes;
|
|
10268
|
-
|
|
10268
|
+
caip2Id: Bytes;
|
|
10269
10269
|
keyVersion: number;
|
|
10270
10270
|
path: Bytes;
|
|
10271
10271
|
algo: Bytes;
|
|
10272
10272
|
dest: Bytes;
|
|
10273
10273
|
params: Bytes;
|
|
10274
|
-
|
|
10275
|
-
|
|
10276
|
-
callbackSerializationFormat: PalletSignetSerializationFormat;
|
|
10277
|
-
callbackSerializationSchema: Bytes;
|
|
10274
|
+
outputDeserializationSchema: Bytes;
|
|
10275
|
+
respondSerializationSchema: Bytes;
|
|
10278
10276
|
};
|
|
10279
10277
|
}
|
|
10280
10278
|
/**
|
|
@@ -10289,7 +10287,7 @@ export type PalletSignetCall =
|
|
|
10289
10287
|
* Provide a read response with signature
|
|
10290
10288
|
**/
|
|
10291
10289
|
| {
|
|
10292
|
-
name: '
|
|
10290
|
+
name: 'RespondBidirectional';
|
|
10293
10291
|
params: { requestId: FixedBytes<32>; serializedOutput: Bytes; signature: PalletSignetSignature };
|
|
10294
10292
|
};
|
|
10295
10293
|
|
|
@@ -10324,19 +10322,17 @@ export type PalletSignetCallLike =
|
|
|
10324
10322
|
* Request a signature for a serialized transaction
|
|
10325
10323
|
**/
|
|
10326
10324
|
| {
|
|
10327
|
-
name: '
|
|
10325
|
+
name: 'SignBidirectional';
|
|
10328
10326
|
params: {
|
|
10329
10327
|
serializedTransaction: BytesLike;
|
|
10330
|
-
|
|
10328
|
+
caip2Id: BytesLike;
|
|
10331
10329
|
keyVersion: number;
|
|
10332
10330
|
path: BytesLike;
|
|
10333
10331
|
algo: BytesLike;
|
|
10334
10332
|
dest: BytesLike;
|
|
10335
10333
|
params: BytesLike;
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
callbackSerializationFormat: PalletSignetSerializationFormat;
|
|
10339
|
-
callbackSerializationSchema: BytesLike;
|
|
10334
|
+
outputDeserializationSchema: BytesLike;
|
|
10335
|
+
respondSerializationSchema: BytesLike;
|
|
10340
10336
|
};
|
|
10341
10337
|
}
|
|
10342
10338
|
/**
|
|
@@ -10351,12 +10347,10 @@ export type PalletSignetCallLike =
|
|
|
10351
10347
|
* Provide a read response with signature
|
|
10352
10348
|
**/
|
|
10353
10349
|
| {
|
|
10354
|
-
name: '
|
|
10350
|
+
name: 'RespondBidirectional';
|
|
10355
10351
|
params: { requestId: FixedBytes<32>; serializedOutput: BytesLike; signature: PalletSignetSignature };
|
|
10356
10352
|
};
|
|
10357
10353
|
|
|
10358
|
-
export type PalletSignetSerializationFormat = 'Borsh' | 'AbiJson';
|
|
10359
|
-
|
|
10360
10354
|
export type PalletSignetSignature = { bigR: PalletSignetAffinePoint; s: FixedBytes<32>; recoveryId: number };
|
|
10361
10355
|
|
|
10362
10356
|
export type PalletSignetAffinePoint = { x: FixedBytes<32>; y: FixedBytes<32> };
|
|
@@ -10376,7 +10370,7 @@ export type PalletDispenserCall =
|
|
|
10376
10370
|
* - Charges the configured fee in `FeeAsset`.
|
|
10377
10371
|
* - Transfers the requested faucet asset from the user to `FeeDestination`.
|
|
10378
10372
|
* - Builds an EVM transaction calling `IGasFaucet::fund`.
|
|
10379
|
-
* - Submits a signing request to SigNet via `pallet_signet::
|
|
10373
|
+
* - Submits a signing request to SigNet via `pallet_signet::sign_bidirectional`.
|
|
10380
10374
|
*
|
|
10381
10375
|
* The `request_id` must match the ID derived internally from the inputs,
|
|
10382
10376
|
* otherwise the call will fail with `InvalidRequestId`.
|
|
@@ -10431,7 +10425,7 @@ export type PalletDispenserCallLike =
|
|
|
10431
10425
|
* - Charges the configured fee in `FeeAsset`.
|
|
10432
10426
|
* - Transfers the requested faucet asset from the user to `FeeDestination`.
|
|
10433
10427
|
* - Builds an EVM transaction calling `IGasFaucet::fund`.
|
|
10434
|
-
* - Submits a signing request to SigNet via `pallet_signet::
|
|
10428
|
+
* - Submits a signing request to SigNet via `pallet_signet::sign_bidirectional`.
|
|
10435
10429
|
*
|
|
10436
10430
|
* The `request_id` must match the ID derived internally from the inputs,
|
|
10437
10431
|
* otherwise the call will fail with `InvalidRequestId`.
|
|
@@ -15315,24 +15309,22 @@ export type PalletSignetEvent =
|
|
|
15315
15309
|
};
|
|
15316
15310
|
}
|
|
15317
15311
|
/**
|
|
15318
|
-
* Sign
|
|
15312
|
+
* Sign bidirectional request event
|
|
15319
15313
|
**/
|
|
15320
15314
|
| {
|
|
15321
|
-
name: '
|
|
15315
|
+
name: 'SignBidirectionalRequested';
|
|
15322
15316
|
data: {
|
|
15323
15317
|
sender: AccountId32;
|
|
15324
|
-
|
|
15325
|
-
|
|
15318
|
+
serializedTransaction: Bytes;
|
|
15319
|
+
caip2Id: Bytes;
|
|
15326
15320
|
keyVersion: number;
|
|
15327
15321
|
deposit: bigint;
|
|
15328
15322
|
path: Bytes;
|
|
15329
15323
|
algo: Bytes;
|
|
15330
15324
|
dest: Bytes;
|
|
15331
15325
|
params: Bytes;
|
|
15332
|
-
|
|
15333
|
-
|
|
15334
|
-
callbackSerializationFormat: number;
|
|
15335
|
-
callbackSerializationSchema: Bytes;
|
|
15326
|
+
outputDeserializationSchema: Bytes;
|
|
15327
|
+
respondSerializationSchema: Bytes;
|
|
15336
15328
|
};
|
|
15337
15329
|
}
|
|
15338
15330
|
/**
|
|
@@ -15347,10 +15339,10 @@ export type PalletSignetEvent =
|
|
|
15347
15339
|
**/
|
|
15348
15340
|
| { name: 'SignatureError'; data: { requestId: FixedBytes<32>; responder: AccountId32; error: Bytes } }
|
|
15349
15341
|
/**
|
|
15350
|
-
*
|
|
15342
|
+
* Respond bidirectional event
|
|
15351
15343
|
**/
|
|
15352
15344
|
| {
|
|
15353
|
-
name: '
|
|
15345
|
+
name: 'RespondBidirectionalEvent';
|
|
15354
15346
|
data: {
|
|
15355
15347
|
requestId: FixedBytes<32>;
|
|
15356
15348
|
responder: AccountId32;
|