@dedot/chaintypes 0.131.0 → 0.133.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.
Files changed (58) hide show
  1. package/aleph/index.d.ts +2 -0
  2. package/aleph/view-functions.d.ts +5 -0
  3. package/astar/index.d.ts +2 -0
  4. package/astar/view-functions.d.ts +5 -0
  5. package/basilisk/index.d.ts +2 -0
  6. package/basilisk/view-functions.d.ts +5 -0
  7. package/hydration/index.d.ts +2 -0
  8. package/hydration/view-functions.d.ts +5 -0
  9. package/kusama/index.d.ts +2 -0
  10. package/kusama/view-functions.d.ts +5 -0
  11. package/kusama-asset-hub/index.d.ts +2 -0
  12. package/kusama-asset-hub/view-functions.d.ts +5 -0
  13. package/kusama-people/index.d.ts +2 -0
  14. package/kusama-people/view-functions.d.ts +5 -0
  15. package/moonbeam/index.d.ts +2 -0
  16. package/moonbeam/view-functions.d.ts +5 -0
  17. package/package.json +3 -3
  18. package/paseo/index.d.ts +2 -0
  19. package/paseo/view-functions.d.ts +5 -0
  20. package/paseo-asset-hub/index.d.ts +2 -0
  21. package/paseo-asset-hub/view-functions.d.ts +5 -0
  22. package/paseo-hydration/consts.d.ts +49 -133
  23. package/paseo-hydration/errors.d.ts +209 -212
  24. package/paseo-hydration/events.d.ts +141 -158
  25. package/paseo-hydration/index.d.ts +3 -1
  26. package/paseo-hydration/query.d.ts +101 -143
  27. package/paseo-hydration/runtime.d.ts +25 -0
  28. package/paseo-hydration/tx.d.ts +596 -682
  29. package/paseo-hydration/types.d.ts +945 -683
  30. package/paseo-hydration/view-functions.d.ts +5 -0
  31. package/paseo-people/index.d.ts +2 -0
  32. package/paseo-people/view-functions.d.ts +5 -0
  33. package/polkadot/index.d.ts +2 -0
  34. package/polkadot/view-functions.d.ts +5 -0
  35. package/polkadot-asset-hub/index.d.ts +2 -0
  36. package/polkadot-asset-hub/view-functions.d.ts +5 -0
  37. package/polkadot-people/index.d.ts +2 -0
  38. package/polkadot-people/view-functions.d.ts +5 -0
  39. package/substrate/index.d.ts +2 -0
  40. package/substrate/runtime.d.ts +11 -11
  41. package/substrate/types.d.ts +8 -1
  42. package/substrate/view-functions.d.ts +5 -0
  43. package/vara/index.d.ts +2 -0
  44. package/vara/view-functions.d.ts +5 -0
  45. package/westend/errors.d.ts +2 -0
  46. package/westend/index.d.ts +2 -0
  47. package/westend/query.d.ts +2 -0
  48. package/westend/tx.d.ts +12 -0
  49. package/westend/types.d.ts +11 -11
  50. package/westend/view-functions.d.ts +84 -0
  51. package/westend-asset-hub/errors.d.ts +2 -0
  52. package/westend-asset-hub/index.d.ts +2 -0
  53. package/westend-asset-hub/query.d.ts +2 -0
  54. package/westend-asset-hub/tx.d.ts +8 -0
  55. package/westend-asset-hub/types.d.ts +42 -44
  56. package/westend-asset-hub/view-functions.d.ts +82 -0
  57. package/westend-people/index.d.ts +2 -0
  58. package/westend-people/view-functions.d.ts +5 -0
package/aleph/index.d.ts CHANGED
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
7
7
  import { ChainErrors } from './errors.js';
8
8
  import { ChainEvents } from './events.js';
9
9
  import { RuntimeApis } from './runtime.js';
10
+ import { ChainViewFunctions } from './view-functions.js';
10
11
  import { ChainTx } from './tx.js';
11
12
 
12
13
  export * from './types.js';
@@ -18,6 +19,7 @@ export interface VersionedAlephApi<Rv extends RpcVersion> extends GenericSubstra
18
19
  errors: ChainErrors<Rv>;
19
20
  events: ChainEvents<Rv>;
20
21
  call: RuntimeApis<Rv>;
22
+ view: ChainViewFunctions<Rv>;
21
23
  tx: ChainTx<Rv>;
22
24
  }
23
25
 
@@ -0,0 +1,5 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
4
+
5
+ export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {}
package/astar/index.d.ts CHANGED
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
7
7
  import { ChainErrors } from './errors.js';
8
8
  import { ChainEvents } from './events.js';
9
9
  import { RuntimeApis } from './runtime.js';
10
+ import { ChainViewFunctions } from './view-functions.js';
10
11
  import { ChainTx } from './tx.js';
11
12
 
12
13
  export * from './types.js';
@@ -18,6 +19,7 @@ export interface VersionedAstarApi<Rv extends RpcVersion> extends GenericSubstra
18
19
  errors: ChainErrors<Rv>;
19
20
  events: ChainEvents<Rv>;
20
21
  call: RuntimeApis<Rv>;
22
+ view: ChainViewFunctions<Rv>;
21
23
  tx: ChainTx<Rv>;
22
24
  }
23
25
 
@@ -0,0 +1,5 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
4
+
5
+ export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {}
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
7
7
  import { ChainErrors } from './errors.js';
8
8
  import { ChainEvents } from './events.js';
9
9
  import { RuntimeApis } from './runtime.js';
10
+ import { ChainViewFunctions } from './view-functions.js';
10
11
  import { ChainTx } from './tx.js';
11
12
 
12
13
  export * from './types.js';
@@ -18,6 +19,7 @@ export interface VersionedBasiliskApi<Rv extends RpcVersion> extends GenericSubs
18
19
  errors: ChainErrors<Rv>;
19
20
  events: ChainEvents<Rv>;
20
21
  call: RuntimeApis<Rv>;
22
+ view: ChainViewFunctions<Rv>;
21
23
  tx: ChainTx<Rv>;
22
24
  }
23
25
 
@@ -0,0 +1,5 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
4
+
5
+ export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {}
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
7
7
  import { ChainErrors } from './errors.js';
8
8
  import { ChainEvents } from './events.js';
9
9
  import { RuntimeApis } from './runtime.js';
10
+ import { ChainViewFunctions } from './view-functions.js';
10
11
  import { ChainTx } from './tx.js';
11
12
 
12
13
  export * from './types.js';
@@ -18,6 +19,7 @@ export interface VersionedHydrationApi<Rv extends RpcVersion> extends GenericSub
18
19
  errors: ChainErrors<Rv>;
19
20
  events: ChainEvents<Rv>;
20
21
  call: RuntimeApis<Rv>;
22
+ view: ChainViewFunctions<Rv>;
21
23
  tx: ChainTx<Rv>;
22
24
  }
23
25
 
@@ -0,0 +1,5 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
4
+
5
+ export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {}
package/kusama/index.d.ts CHANGED
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
7
7
  import { ChainErrors } from './errors.js';
8
8
  import { ChainEvents } from './events.js';
9
9
  import { RuntimeApis } from './runtime.js';
10
+ import { ChainViewFunctions } from './view-functions.js';
10
11
  import { ChainTx } from './tx.js';
11
12
 
12
13
  export * from './types.js';
@@ -18,6 +19,7 @@ export interface VersionedKusamaApi<Rv extends RpcVersion> extends GenericSubstr
18
19
  errors: ChainErrors<Rv>;
19
20
  events: ChainEvents<Rv>;
20
21
  call: RuntimeApis<Rv>;
22
+ view: ChainViewFunctions<Rv>;
21
23
  tx: ChainTx<Rv>;
22
24
  }
23
25
 
@@ -0,0 +1,5 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
4
+
5
+ export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {}
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
7
7
  import { ChainErrors } from './errors.js';
8
8
  import { ChainEvents } from './events.js';
9
9
  import { RuntimeApis } from './runtime.js';
10
+ import { ChainViewFunctions } from './view-functions.js';
10
11
  import { ChainTx } from './tx.js';
11
12
 
12
13
  export * from './types.js';
@@ -18,6 +19,7 @@ export interface VersionedKusamaAssetHubApi<Rv extends RpcVersion> extends Gener
18
19
  errors: ChainErrors<Rv>;
19
20
  events: ChainEvents<Rv>;
20
21
  call: RuntimeApis<Rv>;
22
+ view: ChainViewFunctions<Rv>;
21
23
  tx: ChainTx<Rv>;
22
24
  }
23
25
 
@@ -0,0 +1,5 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
4
+
5
+ export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {}
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
7
7
  import { ChainErrors } from './errors.js';
8
8
  import { ChainEvents } from './events.js';
9
9
  import { RuntimeApis } from './runtime.js';
10
+ import { ChainViewFunctions } from './view-functions.js';
10
11
  import { ChainTx } from './tx.js';
11
12
 
12
13
  export * from './types.js';
@@ -18,6 +19,7 @@ export interface VersionedKusamaPeopleApi<Rv extends RpcVersion> extends Generic
18
19
  errors: ChainErrors<Rv>;
19
20
  events: ChainEvents<Rv>;
20
21
  call: RuntimeApis<Rv>;
22
+ view: ChainViewFunctions<Rv>;
21
23
  tx: ChainTx<Rv>;
22
24
  }
23
25
 
@@ -0,0 +1,5 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
4
+
5
+ export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {}
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
7
7
  import { ChainErrors } from './errors.js';
8
8
  import { ChainEvents } from './events.js';
9
9
  import { RuntimeApis } from './runtime.js';
10
+ import { ChainViewFunctions } from './view-functions.js';
10
11
  import { ChainTx } from './tx.js';
11
12
 
12
13
  export * from './types.js';
@@ -18,6 +19,7 @@ export interface VersionedMoonbeamApi<Rv extends RpcVersion> extends GenericSubs
18
19
  errors: ChainErrors<Rv>;
19
20
  events: ChainEvents<Rv>;
20
21
  call: RuntimeApis<Rv>;
22
+ view: ChainViewFunctions<Rv>;
21
23
  tx: ChainTx<Rv>;
22
24
  }
23
25
 
@@ -0,0 +1,5 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
4
+
5
+ export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.131.0",
3
+ "version": "0.133.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@dedot.dev>",
6
6
  "homepage": "https://dedot.dev",
@@ -18,14 +18,14 @@
18
18
  "copy": "cp -R ./src/* ./dist && rm ./dist/index.ts"
19
19
  },
20
20
  "peerDependencies": {
21
- "dedot": ">=0.7.1"
21
+ "dedot": ">=0.15.0"
22
22
  },
23
23
  "publishConfig": {
24
24
  "access": "public",
25
25
  "directory": "dist"
26
26
  },
27
27
  "license": "Apache-2.0",
28
- "gitHead": "9a0f917f6b068f43aaf1389d81247f39cdb22374",
28
+ "gitHead": "1403e839124cd1ed39ff8c6c9ac61724cae0b87c",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
package/paseo/index.d.ts CHANGED
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
7
7
  import { ChainErrors } from './errors.js';
8
8
  import { ChainEvents } from './events.js';
9
9
  import { RuntimeApis } from './runtime.js';
10
+ import { ChainViewFunctions } from './view-functions.js';
10
11
  import { ChainTx } from './tx.js';
11
12
 
12
13
  export * from './types.js';
@@ -18,6 +19,7 @@ export interface VersionedPaseoApi<Rv extends RpcVersion> extends GenericSubstra
18
19
  errors: ChainErrors<Rv>;
19
20
  events: ChainEvents<Rv>;
20
21
  call: RuntimeApis<Rv>;
22
+ view: ChainViewFunctions<Rv>;
21
23
  tx: ChainTx<Rv>;
22
24
  }
23
25
 
@@ -0,0 +1,5 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
4
+
5
+ export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {}
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
7
7
  import { ChainErrors } from './errors.js';
8
8
  import { ChainEvents } from './events.js';
9
9
  import { RuntimeApis } from './runtime.js';
10
+ import { ChainViewFunctions } from './view-functions.js';
10
11
  import { ChainTx } from './tx.js';
11
12
 
12
13
  export * from './types.js';
@@ -18,6 +19,7 @@ export interface VersionedPaseoAssetHubApi<Rv extends RpcVersion> extends Generi
18
19
  errors: ChainErrors<Rv>;
19
20
  events: ChainEvents<Rv>;
20
21
  call: RuntimeApis<Rv>;
22
+ view: ChainViewFunctions<Rv>;
21
23
  tx: ChainTx<Rv>;
22
24
  }
23
25
 
@@ -0,0 +1,5 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
4
+
5
+ export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {}
@@ -1,7 +1,7 @@
1
1
  // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainConsts, RpcVersion } from 'dedot/types';
4
- import type { RuntimeVersion, Permill, FixedBytes, Percent, AccountId32, Perbill, FixedU128 } from 'dedot/codecs';
4
+ import type { RuntimeVersion, Permill, AccountId32, FixedBytes, Perbill, FixedU128, Percent } from 'dedot/codecs';
5
5
  import type {
6
6
  FrameSystemLimitsBlockWeights,
7
7
  FrameSystemLimitsBlockLength,
@@ -370,97 +370,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
370
370
  **/
371
371
  [name: string]: any;
372
372
  };
373
- /**
374
- * Pallet `Elections`'s constants
375
- **/
376
- elections: {
377
- /**
378
- * Identifier for the elections-phragmen pallet's lock
379
- **/
380
- palletId: FixedBytes<8>;
381
-
382
- /**
383
- * How much should be locked up in order to submit one's candidacy.
384
- **/
385
- candidacyBond: bigint;
386
-
387
- /**
388
- * Base deposit associated with voting.
389
- *
390
- * This should be sensibly high to economically ensure the pallet cannot be attacked by
391
- * creating a gigantic number of votes.
392
- **/
393
- votingBondBase: bigint;
394
-
395
- /**
396
- * The amount of bond that need to be locked for each vote (32 bytes).
397
- **/
398
- votingBondFactor: bigint;
399
-
400
- /**
401
- * Number of members to elect.
402
- **/
403
- desiredMembers: number;
404
-
405
- /**
406
- * Number of runners_up to keep.
407
- **/
408
- desiredRunnersUp: number;
409
-
410
- /**
411
- * How long each seat is kept. This defines the next block number at which an election
412
- * round will happen. If set to zero, no elections are ever triggered and the module will
413
- * be in passive mode.
414
- **/
415
- termDuration: number;
416
-
417
- /**
418
- * The maximum number of candidates in a phragmen election.
419
- *
420
- * Warning: This impacts the size of the election which is run onchain. Chose wisely, and
421
- * consider how it will impact `T::WeightInfo::election_phragmen`.
422
- *
423
- * When this limit is reached no more candidates are accepted in the election.
424
- **/
425
- maxCandidates: number;
426
-
427
- /**
428
- * The maximum number of voters to allow in a phragmen election.
429
- *
430
- * Warning: This impacts the size of the election which is run onchain. Chose wisely, and
431
- * consider how it will impact `T::WeightInfo::election_phragmen`.
432
- *
433
- * When the limit is reached the new voters are ignored.
434
- **/
435
- maxVoters: number;
436
-
437
- /**
438
- * Maximum numbers of votes per voter.
439
- *
440
- * Warning: This impacts the size of the election which is run onchain. Chose wisely, and
441
- * consider how it will impact `T::WeightInfo::election_phragmen`.
442
- **/
443
- maxVotesPerVoter: number;
444
-
445
- /**
446
- * Generic pallet constant
447
- **/
448
- [name: string]: any;
449
- };
450
- /**
451
- * Pallet `Council`'s constants
452
- **/
453
- council: {
454
- /**
455
- * The maximum weight of a dispatch call that can be proposed and executed.
456
- **/
457
- maxProposalWeight: SpWeightsWeightV2Weight;
458
-
459
- /**
460
- * Generic pallet constant
461
- **/
462
- [name: string]: any;
463
- };
464
373
  /**
465
374
  * Pallet `TechnicalCommittee`'s constants
466
375
  **/
@@ -475,47 +384,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
475
384
  **/
476
385
  [name: string]: any;
477
386
  };
478
- /**
479
- * Pallet `Tips`'s constants
480
- **/
481
- tips: {
482
- /**
483
- * Maximum acceptable reason length.
484
- *
485
- * Benchmarks depend on this value, be sure to update weights file when changing this value
486
- **/
487
- maximumReasonLength: number;
488
-
489
- /**
490
- * The amount held on deposit per byte within the tip report reason or bounty description.
491
- **/
492
- dataDepositPerByte: bigint;
493
-
494
- /**
495
- * The period for which a tip remains open after is has achieved threshold tippers.
496
- **/
497
- tipCountdown: number;
498
-
499
- /**
500
- * The percent of the final tip which goes to the original reporter of the tip.
501
- **/
502
- tipFindersFee: Percent;
503
-
504
- /**
505
- * The non-zero amount held on deposit for placing a tip report.
506
- **/
507
- tipReportDepositBase: bigint;
508
-
509
- /**
510
- * The maximum amount for a single tip.
511
- **/
512
- maxTipAmount: bigint;
513
-
514
- /**
515
- * Generic pallet constant
516
- **/
517
- [name: string]: any;
518
- };
519
387
  /**
520
388
  * Pallet `Proxy`'s constants
521
389
  **/
@@ -1343,6 +1211,44 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1343
1211
  **/
1344
1212
  profitReceiver: AccountId32;
1345
1213
 
1214
+ /**
1215
+ * Asset ID of Hollar
1216
+ **/
1217
+ hollarId: number;
1218
+
1219
+ /**
1220
+ * Generic pallet constant
1221
+ **/
1222
+ [name: string]: any;
1223
+ };
1224
+ /**
1225
+ * Pallet `HSM`'s constants
1226
+ **/
1227
+ hsm: {
1228
+ /**
1229
+ * Asset ID of Hollar
1230
+ **/
1231
+ hollarId: number;
1232
+
1233
+ /**
1234
+ * Pallet ID to determine HSM account
1235
+ **/
1236
+ palletId: FrameSupportPalletId;
1237
+
1238
+ /**
1239
+ * The gas limit for the execution of EVM calls
1240
+ **/
1241
+ gasLimit: bigint;
1242
+
1243
+ /**
1244
+ * Generic pallet constant
1245
+ **/
1246
+ [name: string]: any;
1247
+ };
1248
+ /**
1249
+ * Pallet `Parameters`'s constants
1250
+ **/
1251
+ parameters: {
1346
1252
  /**
1347
1253
  * Generic pallet constant
1348
1254
  **/
@@ -1454,6 +1360,16 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1454
1360
  **/
1455
1361
  nftCollectionId: bigint;
1456
1362
 
1363
+ /**
1364
+ * Oracle source identifier for this pallet.
1365
+ **/
1366
+ oracleSource: FixedBytes<8>;
1367
+
1368
+ /**
1369
+ * Oracle's liquidity aggregation period.
1370
+ **/
1371
+ oraclePeriod: HydradxTraitsOracleOraclePeriod;
1372
+
1457
1373
  /**
1458
1374
  * Generic pallet constant
1459
1375
  **/