@dedot/chaintypes 0.0.1-next.f5bf4fc2.1 → 0.1.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 +3 -1
- package/aleph/consts.d.ts +94 -13
- package/aleph/errors.d.ts +251 -182
- package/aleph/events.d.ts +319 -102
- package/aleph/index.d.ts +16 -11
- package/aleph/json-rpc.d.ts +76 -0
- package/aleph/query.d.ts +261 -168
- package/aleph/runtime.d.ts +90 -39
- package/aleph/tx.d.ts +1822 -1052
- package/aleph/types.d.ts +458 -138
- package/astar/consts.d.ts +112 -116
- package/astar/errors.d.ts +342 -409
- package/astar/events.d.ts +449 -358
- package/astar/index.d.ts +16 -11
- package/astar/json-rpc.d.ts +131 -0
- package/astar/query.d.ts +459 -367
- package/astar/runtime.d.ts +591 -98
- package/astar/tx.d.ts +2485 -3430
- package/astar/types.d.ts +1530 -4436
- package/index.d.ts +3 -0
- package/index.ts +3 -0
- package/kusama/consts.d.ts +54 -115
- package/kusama/errors.d.ts +696 -682
- package/kusama/events.d.ts +592 -407
- package/kusama/index.d.ts +16 -11
- package/kusama/json-rpc.d.ts +103 -0
- package/kusama/query.d.ts +840 -538
- package/kusama/runtime.d.ts +136 -65
- package/kusama/tx.d.ts +4557 -3051
- package/kusama/types.d.ts +1437 -1161
- package/kusamaAssetHub/consts.d.ts +66 -20
- package/kusamaAssetHub/errors.d.ts +428 -308
- package/kusamaAssetHub/events.d.ts +497 -305
- package/kusamaAssetHub/index.d.ts +16 -11
- package/kusamaAssetHub/json-rpc.d.ts +89 -0
- package/kusamaAssetHub/query.d.ts +376 -253
- package/kusamaAssetHub/runtime.d.ts +82 -41
- package/kusamaAssetHub/tx.d.ts +3264 -1955
- package/kusamaAssetHub/types.d.ts +1262 -726
- package/moonbeam/consts.d.ts +115 -170
- package/moonbeam/errors.d.ts +564 -787
- package/moonbeam/events.d.ts +583 -746
- package/moonbeam/index.d.ts +16 -11
- package/moonbeam/json-rpc.d.ts +137 -0
- package/moonbeam/query.d.ts +507 -607
- package/moonbeam/runtime.d.ts +132 -47
- package/moonbeam/tx.d.ts +3309 -3268
- package/moonbeam/types.d.ts +1484 -1375
- package/package.json +4 -14
- package/paseo/consts.d.ts +1331 -0
- package/paseo/errors.d.ts +2644 -0
- package/paseo/events.d.ts +2821 -0
- package/paseo/index.d.ts +27 -0
- package/paseo/json-rpc.d.ts +103 -0
- package/paseo/query.d.ts +3709 -0
- package/paseo/runtime.d.ts +1205 -0
- package/paseo/tx.d.ts +8024 -0
- package/paseo/types.d.ts +10194 -0
- package/polkadot/consts.d.ts +95 -50
- package/polkadot/errors.d.ts +619 -468
- package/polkadot/events.d.ts +582 -257
- package/polkadot/index.d.ts +16 -11
- package/polkadot/json-rpc.d.ts +103 -0
- package/polkadot/query.d.ts +770 -399
- package/polkadot/runtime.d.ts +136 -65
- package/polkadot/tx.d.ts +4268 -2368
- package/polkadot/types.d.ts +1570 -745
- package/polkadotAssetHub/consts.d.ts +154 -15
- package/polkadotAssetHub/errors.d.ts +615 -234
- package/polkadotAssetHub/events.d.ts +829 -270
- package/polkadotAssetHub/index.d.ts +16 -11
- package/polkadotAssetHub/json-rpc.d.ts +89 -0
- package/polkadotAssetHub/query.d.ts +438 -243
- package/polkadotAssetHub/runtime.d.ts +147 -40
- package/polkadotAssetHub/tx.d.ts +3747 -1643
- package/polkadotAssetHub/types.d.ts +2096 -806
- package/rococo/consts.d.ts +51 -32
- package/rococo/errors.d.ts +549 -605
- package/rococo/events.d.ts +447 -238
- package/rococo/index.d.ts +16 -11
- package/rococo/json-rpc.d.ts +103 -0
- package/rococo/query.d.ts +724 -426
- package/rococo/runtime.d.ts +366 -144
- package/rococo/tx.d.ts +6850 -3079
- package/rococo/types.d.ts +5959 -1619
- package/rococoAssetHub/consts.d.ts +92 -7
- package/rococoAssetHub/errors.d.ts +381 -285
- package/rococoAssetHub/events.d.ts +461 -140
- package/rococoAssetHub/index.d.ts +16 -11
- package/rococoAssetHub/json-rpc.d.ts +89 -0
- package/rococoAssetHub/query.d.ts +487 -174
- package/rococoAssetHub/runtime.d.ts +235 -51
- package/rococoAssetHub/tx.d.ts +6005 -2163
- package/rococoAssetHub/types.d.ts +6683 -1003
- package/substrate/consts.d.ts +233 -52
- package/substrate/errors.d.ts +966 -781
- package/substrate/events.d.ts +1226 -381
- package/substrate/index.d.ts +16 -11
- package/substrate/json-rpc.d.ts +103 -0
- package/substrate/query.d.ts +1090 -460
- package/substrate/runtime.d.ts +274 -71
- package/substrate/tx.d.ts +12313 -4510
- package/substrate/types.d.ts +11036 -1432
- package/westend/consts.d.ts +1349 -0
- package/westend/errors.d.ts +2736 -0
- package/westend/events.d.ts +2906 -0
- package/westend/index.d.ts +27 -0
- package/westend/json-rpc.d.ts +103 -0
- package/westend/query.d.ts +3855 -0
- package/westend/runtime.d.ts +1437 -0
- package/westend/tx.d.ts +10248 -0
- package/westend/types.d.ts +14769 -0
- package/westendAssetHub/consts.d.ts +126 -7
- package/westendAssetHub/errors.d.ts +426 -285
- package/westendAssetHub/events.d.ts +498 -140
- package/westendAssetHub/index.d.ts +16 -11
- package/westendAssetHub/json-rpc.d.ts +89 -0
- package/westendAssetHub/query.d.ts +526 -174
- package/westendAssetHub/runtime.d.ts +245 -56
- package/westendAssetHub/tx.d.ts +6196 -2166
- package/westendAssetHub/types.d.ts +6913 -1002
- package/westendPeople/consts.d.ts +434 -0
- package/westendPeople/errors.d.ts +769 -0
- package/westendPeople/events.d.ts +1082 -0
- package/westendPeople/index.d.ts +27 -0
- package/westendPeople/json-rpc.d.ts +89 -0
- package/westendPeople/query.d.ts +1209 -0
- package/westendPeople/runtime.d.ts +636 -0
- package/westendPeople/tx.d.ts +2891 -0
- package/westendPeople/types.d.ts +4984 -0
- package/aleph/rpc.d.ts +0 -727
- package/astar/rpc.d.ts +0 -974
- package/kusama/rpc.d.ts +0 -904
- package/kusamaAssetHub/rpc.d.ts +0 -746
- package/moonbeam/rpc.d.ts +0 -1015
- package/packageInfo.d.ts +0 -4
- package/packageInfo.js +0 -2
- package/packageInfo.ts +0 -3
- package/polkadot/rpc.d.ts +0 -904
- package/polkadotAssetHub/rpc.d.ts +0 -746
- package/rococo/rpc.d.ts +0 -904
- package/rococoAssetHub/rpc.d.ts +0 -746
- package/substrate/rpc.d.ts +0 -894
- package/westendAssetHub/rpc.d.ts +0 -746
package/astar/consts.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
// Generated by
|
|
1
|
+
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericChainConsts } from '
|
|
4
|
-
import type { RuntimeVersion } from '
|
|
3
|
+
import type { GenericChainConsts, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type { RuntimeVersion, FixedU128, AccountId32, Perbill } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
6
|
FrameSystemLimitsBlockWeights,
|
|
7
7
|
FrameSystemLimitsBlockLength,
|
|
8
8
|
SpWeightsRuntimeDbWeight,
|
|
9
|
-
|
|
9
|
+
StagingXcmV3MultilocationMultiLocation,
|
|
10
10
|
SpWeightsWeightV2Weight,
|
|
11
11
|
PalletContractsSchedule,
|
|
12
|
-
|
|
12
|
+
PalletContractsEnvironment,
|
|
13
13
|
} from './types';
|
|
14
14
|
|
|
15
|
-
export interface ChainConsts extends GenericChainConsts {
|
|
15
|
+
export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
|
|
16
16
|
/**
|
|
17
17
|
* Pallet `System`'s constants
|
|
18
18
|
**/
|
|
@@ -118,10 +118,12 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
118
118
|
**/
|
|
119
119
|
timestamp: {
|
|
120
120
|
/**
|
|
121
|
-
* The minimum period between blocks.
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
121
|
+
* The minimum period between blocks.
|
|
122
|
+
*
|
|
123
|
+
* Be aware that this is different to the *expected* period that the block production
|
|
124
|
+
* apparatus provides. Your chosen consensus system will generally work with this to
|
|
125
|
+
* determine a sensible block time. For example, in the Aura pallet it will be double this
|
|
126
|
+
* period on default settings.
|
|
125
127
|
**/
|
|
126
128
|
minimumPeriod: bigint;
|
|
127
129
|
|
|
@@ -335,6 +337,18 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
335
337
|
* Pallet `DappStaking`'s constants
|
|
336
338
|
**/
|
|
337
339
|
dappStaking: {
|
|
340
|
+
/**
|
|
341
|
+
* Base native currency price used to calculate base number of slots.
|
|
342
|
+
* This is used to adjust tier configuration, tier thresholds specifically, based on the native token price changes.
|
|
343
|
+
*
|
|
344
|
+
* When dApp staking thresholds were modeled, a base price was set from which the initial configuration is derived.
|
|
345
|
+
* E.g. for a price of 0.05$, we get 100 slots, and certain tier thresholds.
|
|
346
|
+
* Using these values as the base, we can adjust the configuration based on the current price.
|
|
347
|
+
*
|
|
348
|
+
* This is connected with the `TierSlots` associated type, since it's used to calculate the total number of slots for the given price.
|
|
349
|
+
**/
|
|
350
|
+
baseNativeCurrencyPrice: FixedU128;
|
|
351
|
+
|
|
338
352
|
/**
|
|
339
353
|
* Maximum length of a single era reward span length entry.
|
|
340
354
|
**/
|
|
@@ -382,6 +396,11 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
382
396
|
**/
|
|
383
397
|
numberOfTiers: number;
|
|
384
398
|
|
|
399
|
+
/**
|
|
400
|
+
* Tier ranking enabled.
|
|
401
|
+
**/
|
|
402
|
+
rankingEnabled: boolean;
|
|
403
|
+
|
|
385
404
|
/**
|
|
386
405
|
* Generic pallet constant
|
|
387
406
|
**/
|
|
@@ -435,6 +454,64 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
435
454
|
**/
|
|
436
455
|
[name: string]: any;
|
|
437
456
|
};
|
|
457
|
+
/**
|
|
458
|
+
* Pallet `PriceAggregator`'s constants
|
|
459
|
+
**/
|
|
460
|
+
priceAggregator: {
|
|
461
|
+
/**
|
|
462
|
+
* Maximum number of distinct currency values we can store during a single block.
|
|
463
|
+
**/
|
|
464
|
+
maxValuesPerBlock: number;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Maximum length of the circular buffer used to calculate the moving average.
|
|
468
|
+
**/
|
|
469
|
+
circularBufferLength: number;
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Duration of aggregation period expressed in the number of blocks.
|
|
473
|
+
* During this time, currency values are aggregated, and are then used to calculate the average value.
|
|
474
|
+
**/
|
|
475
|
+
aggregationDuration: number;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Generic pallet constant
|
|
479
|
+
**/
|
|
480
|
+
[name: string]: any;
|
|
481
|
+
};
|
|
482
|
+
/**
|
|
483
|
+
* Pallet `Oracle`'s constants
|
|
484
|
+
**/
|
|
485
|
+
oracle: {
|
|
486
|
+
/**
|
|
487
|
+
* The root operator account id, record all sudo feeds on this account.
|
|
488
|
+
**/
|
|
489
|
+
rootOperatorAccountId: AccountId32;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Maximum size of HasDispatched
|
|
493
|
+
**/
|
|
494
|
+
maxHasDispatchedSize: number;
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Maximum size the vector used for feed values
|
|
498
|
+
**/
|
|
499
|
+
maxFeedValues: number;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Generic pallet constant
|
|
503
|
+
**/
|
|
504
|
+
[name: string]: any;
|
|
505
|
+
};
|
|
506
|
+
/**
|
|
507
|
+
* Pallet `OracleMembership`'s constants
|
|
508
|
+
**/
|
|
509
|
+
oracleMembership: {
|
|
510
|
+
/**
|
|
511
|
+
* Generic pallet constant
|
|
512
|
+
**/
|
|
513
|
+
[name: string]: any;
|
|
514
|
+
};
|
|
438
515
|
/**
|
|
439
516
|
* Pallet `Authorship`'s constants
|
|
440
517
|
**/
|
|
@@ -532,7 +609,7 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
532
609
|
/**
|
|
533
610
|
* Self chain location.
|
|
534
611
|
**/
|
|
535
|
-
selfLocation:
|
|
612
|
+
selfLocation: StagingXcmV3MultilocationMultiLocation;
|
|
536
613
|
|
|
537
614
|
/**
|
|
538
615
|
* Base XCM weight.
|
|
@@ -550,7 +627,7 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
550
627
|
/**
|
|
551
628
|
* Pallet `EVM`'s constants
|
|
552
629
|
**/
|
|
553
|
-
|
|
630
|
+
evm: {
|
|
554
631
|
/**
|
|
555
632
|
* Generic pallet constant
|
|
556
633
|
**/
|
|
@@ -607,9 +684,15 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
607
684
|
depositPerItem: bigint;
|
|
608
685
|
|
|
609
686
|
/**
|
|
610
|
-
* The
|
|
611
|
-
*
|
|
612
|
-
*
|
|
687
|
+
* The percentage of the storage deposit that should be held for using a code hash.
|
|
688
|
+
* Instantiating a contract, or calling [`chain_extension::Ext::add_delegate_dependency`]
|
|
689
|
+
* protects the code from being removed. In order to prevent abuse these actions are
|
|
690
|
+
* protected with a percentage of the code deposit.
|
|
691
|
+
**/
|
|
692
|
+
codeHashLockupDepositPercent: Perbill;
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* The maximum length of a contract code in bytes.
|
|
613
696
|
*
|
|
614
697
|
* The value should be chosen carefully taking into the account the overall memory limit
|
|
615
698
|
* your runtime has, as well as the [maximum allowed callstack
|
|
@@ -622,6 +705,12 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
622
705
|
**/
|
|
623
706
|
maxStorageKeyLen: number;
|
|
624
707
|
|
|
708
|
+
/**
|
|
709
|
+
* The maximum number of delegate_dependencies that a contract can lock with
|
|
710
|
+
* [`chain_extension::Ext::add_delegate_dependency`].
|
|
711
|
+
**/
|
|
712
|
+
maxDelegateDependencies: number;
|
|
713
|
+
|
|
625
714
|
/**
|
|
626
715
|
* Make contract callable functions marked as `#[unstable]` available.
|
|
627
716
|
*
|
|
@@ -641,115 +730,22 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
641
730
|
maxDebugBufferLen: number;
|
|
642
731
|
|
|
643
732
|
/**
|
|
644
|
-
*
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
/**
|
|
649
|
-
* Pallet `Sudo`'s constants
|
|
650
|
-
**/
|
|
651
|
-
sudo: {
|
|
652
|
-
/**
|
|
653
|
-
* Generic pallet constant
|
|
654
|
-
**/
|
|
655
|
-
[name: string]: any;
|
|
656
|
-
};
|
|
657
|
-
/**
|
|
658
|
-
* Pallet `StaticPriceProvider`'s constants
|
|
659
|
-
**/
|
|
660
|
-
staticPriceProvider: {
|
|
661
|
-
/**
|
|
662
|
-
* Generic pallet constant
|
|
733
|
+
* Type that bundles together all the runtime configurable interface types.
|
|
734
|
+
*
|
|
735
|
+
* This is not a real config. We just mention the type here as constant so that
|
|
736
|
+
* its type appears in the metadata. Only valid value is `()`.
|
|
663
737
|
**/
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
/**
|
|
667
|
-
* Pallet `DappStakingMigration`'s constants
|
|
668
|
-
**/
|
|
669
|
-
dappStakingMigration: {
|
|
738
|
+
environment: PalletContractsEnvironment;
|
|
739
|
+
|
|
670
740
|
/**
|
|
671
741
|
* Generic pallet constant
|
|
672
742
|
**/
|
|
673
743
|
[name: string]: any;
|
|
674
744
|
};
|
|
675
745
|
/**
|
|
676
|
-
* Pallet `
|
|
746
|
+
* Pallet `Sudo`'s constants
|
|
677
747
|
**/
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
* Number of blocks per era.
|
|
681
|
-
**/
|
|
682
|
-
blockPerEra: number;
|
|
683
|
-
|
|
684
|
-
/**
|
|
685
|
-
* Deposit that will be reserved as part of new contract registration.
|
|
686
|
-
**/
|
|
687
|
-
registerDeposit: bigint;
|
|
688
|
-
|
|
689
|
-
/**
|
|
690
|
-
* Maximum number of unique stakers per contract.
|
|
691
|
-
**/
|
|
692
|
-
maxNumberOfStakersPerContract: number;
|
|
693
|
-
|
|
694
|
-
/**
|
|
695
|
-
* Minimum amount user must have staked on contract.
|
|
696
|
-
* User can stake less if they already have the minimum staking amount staked on that particular contract.
|
|
697
|
-
**/
|
|
698
|
-
minimumStakingAmount: bigint;
|
|
699
|
-
|
|
700
|
-
/**
|
|
701
|
-
* Dapps staking pallet Id
|
|
702
|
-
**/
|
|
703
|
-
palletId: FrameSupportPalletId;
|
|
704
|
-
|
|
705
|
-
/**
|
|
706
|
-
* Minimum amount that should be left on staker account after staking.
|
|
707
|
-
* Serves as a safeguard to prevent users from locking their entire free balance.
|
|
708
|
-
**/
|
|
709
|
-
minimumRemainingAmount: bigint;
|
|
710
|
-
|
|
711
|
-
/**
|
|
712
|
-
* Max number of unlocking chunks per account Id <-> contract Id pairing.
|
|
713
|
-
* If value is zero, unlocking becomes impossible.
|
|
714
|
-
**/
|
|
715
|
-
maxUnlockingChunks: number;
|
|
716
|
-
|
|
717
|
-
/**
|
|
718
|
-
* Number of eras that need to pass until unstaked value can be withdrawn.
|
|
719
|
-
* Current era is always counted as full era (regardless how much blocks are remaining).
|
|
720
|
-
* When set to `0`, it's equal to having no unbonding period.
|
|
721
|
-
**/
|
|
722
|
-
unbondingPeriod: number;
|
|
723
|
-
|
|
724
|
-
/**
|
|
725
|
-
* Max number of unique `EraStake` values that can exist for a `(staker, contract)` pairing.
|
|
726
|
-
* When stakers claims rewards, they will either keep the number of `EraStake` values the same or they will reduce them by one.
|
|
727
|
-
* Stakers cannot add an additional `EraStake` value by calling `bond&stake` or `unbond&unstake` if they've reached the max number of values.
|
|
728
|
-
*
|
|
729
|
-
* This ensures that history doesn't grow indefinitely - if there are too many chunks, stakers should first claim their former rewards
|
|
730
|
-
* before adding additional `EraStake` values.
|
|
731
|
-
**/
|
|
732
|
-
maxEraStakeValues: number;
|
|
733
|
-
|
|
734
|
-
/**
|
|
735
|
-
* Number of eras that need to pass until dApp rewards for the unregistered contracts can be burned.
|
|
736
|
-
* Developer can still claim rewards after this period has passed, iff it hasn't been burned yet.
|
|
737
|
-
*
|
|
738
|
-
* For example, if retention is set to `2` and current era is `10`, it means that all unclaimed rewards bellow era `8` can be burned.
|
|
739
|
-
**/
|
|
740
|
-
unregisteredDappRewardRetention: number;
|
|
741
|
-
|
|
742
|
-
/**
|
|
743
|
-
* Can be used to force pallet into permanent maintenance mode.
|
|
744
|
-
**/
|
|
745
|
-
forcePalletDisabled: boolean;
|
|
746
|
-
|
|
747
|
-
/**
|
|
748
|
-
* The fee that will be charged for claiming rewards on behalf of a staker.
|
|
749
|
-
* This amount will be transferred from the staker over to the caller.
|
|
750
|
-
**/
|
|
751
|
-
delegateClaimFee: bigint;
|
|
752
|
-
|
|
748
|
+
sudo: {
|
|
753
749
|
/**
|
|
754
750
|
* Generic pallet constant
|
|
755
751
|
**/
|