@dedot/chaintypes 0.0.1-alpha.22
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/LICENSE +201 -0
- package/README.md +3 -0
- package/aleph/consts.d.ts +533 -0
- package/aleph/consts.js +2 -0
- package/aleph/errors.d.ts +822 -0
- package/aleph/errors.js +2 -0
- package/aleph/events.d.ts +997 -0
- package/aleph/events.js +2 -0
- package/aleph/index.d.ts +19 -0
- package/aleph/index.js +3 -0
- package/aleph/query.d.ts +1271 -0
- package/aleph/query.js +2 -0
- package/aleph/rpc.d.ts +575 -0
- package/aleph/rpc.js +2 -0
- package/aleph/runtime.d.ts +410 -0
- package/aleph/runtime.js +2 -0
- package/aleph/tx.d.ts +2206 -0
- package/aleph/tx.js +2 -0
- package/aleph/types.d.ts +5560 -0
- package/aleph/types.js +2 -0
- package/astar/consts.d.ts +679 -0
- package/astar/consts.js +2 -0
- package/astar/errors.d.ts +1317 -0
- package/astar/errors.js +2 -0
- package/astar/events.d.ts +1707 -0
- package/astar/events.js +2 -0
- package/astar/index.d.ts +19 -0
- package/astar/index.js +3 -0
- package/astar/query.d.ts +1474 -0
- package/astar/query.js +2 -0
- package/astar/rpc.d.ts +775 -0
- package/astar/rpc.js +2 -0
- package/astar/runtime.d.ts +262 -0
- package/astar/runtime.js +2 -0
- package/astar/tx.d.ts +4810 -0
- package/astar/tx.js +2 -0
- package/astar/types.d.ts +12338 -0
- package/astar/types.js +2 -0
- package/cjs/aleph/consts.js +3 -0
- package/cjs/aleph/errors.js +3 -0
- package/cjs/aleph/events.js +3 -0
- package/cjs/aleph/index.js +19 -0
- package/cjs/aleph/query.js +3 -0
- package/cjs/aleph/rpc.js +3 -0
- package/cjs/aleph/runtime.js +3 -0
- package/cjs/aleph/tx.js +3 -0
- package/cjs/aleph/types.js +3 -0
- package/cjs/astar/consts.js +3 -0
- package/cjs/astar/errors.js +3 -0
- package/cjs/astar/events.js +3 -0
- package/cjs/astar/index.js +19 -0
- package/cjs/astar/query.js +3 -0
- package/cjs/astar/rpc.js +3 -0
- package/cjs/astar/runtime.js +3 -0
- package/cjs/astar/tx.js +3 -0
- package/cjs/astar/types.js +3 -0
- package/cjs/index.js +2 -0
- package/cjs/kusama/consts.js +3 -0
- package/cjs/kusama/errors.js +3 -0
- package/cjs/kusama/events.js +3 -0
- package/cjs/kusama/index.js +19 -0
- package/cjs/kusama/query.js +3 -0
- package/cjs/kusama/rpc.js +3 -0
- package/cjs/kusama/runtime.js +3 -0
- package/cjs/kusama/tx.js +3 -0
- package/cjs/kusama/types.js +3 -0
- package/cjs/kusamaAssetHub/consts.js +3 -0
- package/cjs/kusamaAssetHub/errors.js +3 -0
- package/cjs/kusamaAssetHub/events.js +3 -0
- package/cjs/kusamaAssetHub/index.js +19 -0
- package/cjs/kusamaAssetHub/query.js +3 -0
- package/cjs/kusamaAssetHub/rpc.js +3 -0
- package/cjs/kusamaAssetHub/runtime.js +3 -0
- package/cjs/kusamaAssetHub/tx.js +3 -0
- package/cjs/kusamaAssetHub/types.js +3 -0
- package/cjs/moonbeam/consts.js +3 -0
- package/cjs/moonbeam/errors.js +3 -0
- package/cjs/moonbeam/events.js +3 -0
- package/cjs/moonbeam/index.js +19 -0
- package/cjs/moonbeam/query.js +3 -0
- package/cjs/moonbeam/rpc.js +3 -0
- package/cjs/moonbeam/runtime.js +3 -0
- package/cjs/moonbeam/tx.js +3 -0
- package/cjs/moonbeam/types.js +3 -0
- package/cjs/package.json +1 -0
- package/cjs/packageInfo.js +5 -0
- package/cjs/polkadot/consts.js +3 -0
- package/cjs/polkadot/errors.js +3 -0
- package/cjs/polkadot/events.js +3 -0
- package/cjs/polkadot/index.js +19 -0
- package/cjs/polkadot/query.js +3 -0
- package/cjs/polkadot/rpc.js +3 -0
- package/cjs/polkadot/runtime.js +3 -0
- package/cjs/polkadot/tx.js +3 -0
- package/cjs/polkadot/types.js +3 -0
- package/cjs/polkadotAssetHub/consts.js +3 -0
- package/cjs/polkadotAssetHub/errors.js +3 -0
- package/cjs/polkadotAssetHub/events.js +3 -0
- package/cjs/polkadotAssetHub/index.js +19 -0
- package/cjs/polkadotAssetHub/query.js +3 -0
- package/cjs/polkadotAssetHub/rpc.js +3 -0
- package/cjs/polkadotAssetHub/runtime.js +3 -0
- package/cjs/polkadotAssetHub/tx.js +3 -0
- package/cjs/polkadotAssetHub/types.js +3 -0
- package/cjs/rococoAssetHub/consts.js +3 -0
- package/cjs/rococoAssetHub/errors.js +3 -0
- package/cjs/rococoAssetHub/events.js +3 -0
- package/cjs/rococoAssetHub/index.js +19 -0
- package/cjs/rococoAssetHub/query.js +3 -0
- package/cjs/rococoAssetHub/rpc.js +3 -0
- package/cjs/rococoAssetHub/runtime.js +3 -0
- package/cjs/rococoAssetHub/tx.js +3 -0
- package/cjs/rococoAssetHub/types.js +3 -0
- package/cjs/substrate/consts.js +3 -0
- package/cjs/substrate/errors.js +3 -0
- package/cjs/substrate/events.js +3 -0
- package/cjs/substrate/index.js +19 -0
- package/cjs/substrate/query.js +3 -0
- package/cjs/substrate/rpc.js +3 -0
- package/cjs/substrate/runtime.js +3 -0
- package/cjs/substrate/tx.js +3 -0
- package/cjs/substrate/types.js +3 -0
- package/cjs/westendAssetHub/consts.js +3 -0
- package/cjs/westendAssetHub/errors.js +3 -0
- package/cjs/westendAssetHub/events.js +3 -0
- package/cjs/westendAssetHub/index.js +19 -0
- package/cjs/westendAssetHub/query.js +3 -0
- package/cjs/westendAssetHub/rpc.js +3 -0
- package/cjs/westendAssetHub/runtime.js +3 -0
- package/cjs/westendAssetHub/tx.js +3 -0
- package/cjs/westendAssetHub/types.js +3 -0
- package/index.d.ts +5 -0
- package/index.js +1 -0
- package/kusama/consts.d.ts +1427 -0
- package/kusama/consts.js +2 -0
- package/kusama/errors.d.ts +2494 -0
- package/kusama/errors.js +2 -0
- package/kusama/events.d.ts +2960 -0
- package/kusama/events.js +2 -0
- package/kusama/index.d.ts +19 -0
- package/kusama/index.js +3 -0
- package/kusama/query.d.ts +3251 -0
- package/kusama/query.js +2 -0
- package/kusama/rpc.d.ts +726 -0
- package/kusama/rpc.js +2 -0
- package/kusama/runtime.d.ts +844 -0
- package/kusama/runtime.js +2 -0
- package/kusama/tx.d.ts +6014 -0
- package/kusama/tx.js +2 -0
- package/kusama/types.d.ts +15903 -0
- package/kusama/types.js +2 -0
- package/kusamaAssetHub/consts.d.ts +632 -0
- package/kusamaAssetHub/consts.js +2 -0
- package/kusamaAssetHub/errors.d.ts +1164 -0
- package/kusamaAssetHub/errors.js +2 -0
- package/kusamaAssetHub/events.d.ts +2162 -0
- package/kusamaAssetHub/events.js +2 -0
- package/kusamaAssetHub/index.d.ts +19 -0
- package/kusamaAssetHub/index.js +3 -0
- package/kusamaAssetHub/query.d.ts +1301 -0
- package/kusamaAssetHub/query.js +2 -0
- package/kusamaAssetHub/rpc.d.ts +590 -0
- package/kusamaAssetHub/rpc.js +2 -0
- package/kusamaAssetHub/runtime.d.ts +402 -0
- package/kusamaAssetHub/runtime.js +2 -0
- package/kusamaAssetHub/tx.d.ts +4217 -0
- package/kusamaAssetHub/tx.js +2 -0
- package/kusamaAssetHub/types.d.ts +10418 -0
- package/kusamaAssetHub/types.js +2 -0
- package/moonbeam/consts.d.ts +961 -0
- package/moonbeam/consts.js +2 -0
- package/moonbeam/errors.d.ts +1797 -0
- package/moonbeam/errors.js +2 -0
- package/moonbeam/events.d.ts +2840 -0
- package/moonbeam/events.js +2 -0
- package/moonbeam/index.d.ts +19 -0
- package/moonbeam/index.js +3 -0
- package/moonbeam/query.d.ts +2027 -0
- package/moonbeam/query.js +2 -0
- package/moonbeam/rpc.d.ts +809 -0
- package/moonbeam/rpc.js +2 -0
- package/moonbeam/runtime.d.ts +506 -0
- package/moonbeam/runtime.js +2 -0
- package/moonbeam/tx.d.ts +5205 -0
- package/moonbeam/tx.js +2 -0
- package/moonbeam/types.d.ts +12349 -0
- package/moonbeam/types.js +2 -0
- package/package.json +33 -0
- package/packageInfo.d.ts +4 -0
- package/packageInfo.js +3 -0
- package/polkadot/consts.d.ts +1160 -0
- package/polkadot/consts.js +2 -0
- package/polkadot/errors.d.ts +2020 -0
- package/polkadot/errors.js +2 -0
- package/polkadot/events.d.ts +2235 -0
- package/polkadot/events.js +2 -0
- package/polkadot/index.d.ts +19 -0
- package/polkadot/index.js +3 -0
- package/polkadot/query.d.ts +2811 -0
- package/polkadot/query.js +2 -0
- package/polkadot/rpc.d.ts +726 -0
- package/polkadot/rpc.js +2 -0
- package/polkadot/runtime.d.ts +844 -0
- package/polkadot/runtime.js +2 -0
- package/polkadot/tx.d.ts +5009 -0
- package/polkadot/tx.js +2 -0
- package/polkadot/types.d.ts +13729 -0
- package/polkadot/types.js +2 -0
- package/polkadotAssetHub/consts.d.ts +524 -0
- package/polkadotAssetHub/consts.js +2 -0
- package/polkadotAssetHub/errors.d.ts +925 -0
- package/polkadotAssetHub/errors.js +2 -0
- package/polkadotAssetHub/events.d.ts +1787 -0
- package/polkadotAssetHub/events.js +2 -0
- package/polkadotAssetHub/index.d.ts +19 -0
- package/polkadotAssetHub/index.js +3 -0
- package/polkadotAssetHub/query.d.ts +1222 -0
- package/polkadotAssetHub/query.js +2 -0
- package/polkadotAssetHub/rpc.d.ts +590 -0
- package/polkadotAssetHub/rpc.js +2 -0
- package/polkadotAssetHub/runtime.d.ts +359 -0
- package/polkadotAssetHub/runtime.js +2 -0
- package/polkadotAssetHub/tx.d.ts +3492 -0
- package/polkadotAssetHub/tx.js +2 -0
- package/polkadotAssetHub/types.d.ts +9164 -0
- package/polkadotAssetHub/types.js +2 -0
- package/rococoAssetHub/consts.d.ts +658 -0
- package/rococoAssetHub/consts.js +2 -0
- package/rococoAssetHub/errors.d.ts +1231 -0
- package/rococoAssetHub/errors.js +2 -0
- package/rococoAssetHub/events.d.ts +2172 -0
- package/rococoAssetHub/events.js +2 -0
- package/rococoAssetHub/index.d.ts +19 -0
- package/rococoAssetHub/index.js +3 -0
- package/rococoAssetHub/query.d.ts +1269 -0
- package/rococoAssetHub/query.js +2 -0
- package/rococoAssetHub/rpc.d.ts +590 -0
- package/rococoAssetHub/rpc.js +2 -0
- package/rococoAssetHub/runtime.d.ts +428 -0
- package/rococoAssetHub/runtime.js +2 -0
- package/rococoAssetHub/tx.d.ts +4307 -0
- package/rococoAssetHub/tx.js +2 -0
- package/rococoAssetHub/types.d.ts +11066 -0
- package/rococoAssetHub/types.js +2 -0
- package/substrate/consts.d.ts +1971 -0
- package/substrate/consts.js +2 -0
- package/substrate/errors.d.ts +3337 -0
- package/substrate/errors.js +2 -0
- package/substrate/events.d.ts +4777 -0
- package/substrate/events.js +2 -0
- package/substrate/index.d.ts +19 -0
- package/substrate/index.js +3 -0
- package/substrate/query.d.ts +3350 -0
- package/substrate/query.js +2 -0
- package/substrate/rpc.d.ts +718 -0
- package/substrate/rpc.js +2 -0
- package/substrate/runtime.d.ts +708 -0
- package/substrate/runtime.js +2 -0
- package/substrate/tx.d.ts +8800 -0
- package/substrate/tx.js +2 -0
- package/substrate/types.d.ts +20332 -0
- package/substrate/types.js +2 -0
- package/westendAssetHub/consts.d.ts +658 -0
- package/westendAssetHub/consts.js +2 -0
- package/westendAssetHub/errors.d.ts +1231 -0
- package/westendAssetHub/errors.js +2 -0
- package/westendAssetHub/events.d.ts +2172 -0
- package/westendAssetHub/events.js +2 -0
- package/westendAssetHub/index.d.ts +19 -0
- package/westendAssetHub/index.js +3 -0
- package/westendAssetHub/query.d.ts +1269 -0
- package/westendAssetHub/query.js +2 -0
- package/westendAssetHub/rpc.d.ts +590 -0
- package/westendAssetHub/rpc.js +2 -0
- package/westendAssetHub/runtime.d.ts +456 -0
- package/westendAssetHub/runtime.js +2 -0
- package/westendAssetHub/tx.d.ts +4307 -0
- package/westendAssetHub/tx.js +2 -0
- package/westendAssetHub/types.d.ts +11062 -0
- package/westendAssetHub/types.js +2 -0
|
@@ -0,0 +1,533 @@
|
|
|
1
|
+
import type { GenericChainConsts } from '@dedot/types';
|
|
2
|
+
import type { RuntimeVersion, Permill } from '@dedot/codecs';
|
|
3
|
+
import type { FrameSystemLimitsBlockWeights, FrameSystemLimitsBlockLength, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, FrameSupportPalletId, PalletContractsSchedule } from './types';
|
|
4
|
+
export interface ChainConsts extends GenericChainConsts {
|
|
5
|
+
/**
|
|
6
|
+
* Pallet `System`'s constants
|
|
7
|
+
**/
|
|
8
|
+
system: {
|
|
9
|
+
/**
|
|
10
|
+
* Block & extrinsics weights: base values and limits.
|
|
11
|
+
**/
|
|
12
|
+
blockWeights: FrameSystemLimitsBlockWeights;
|
|
13
|
+
/**
|
|
14
|
+
* The maximum length of a block (in bytes).
|
|
15
|
+
**/
|
|
16
|
+
blockLength: FrameSystemLimitsBlockLength;
|
|
17
|
+
/**
|
|
18
|
+
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
|
19
|
+
**/
|
|
20
|
+
blockHashCount: number;
|
|
21
|
+
/**
|
|
22
|
+
* The weight of runtime database operations the runtime can invoke.
|
|
23
|
+
**/
|
|
24
|
+
dbWeight: SpWeightsRuntimeDbWeight;
|
|
25
|
+
/**
|
|
26
|
+
* Get the chain's current version.
|
|
27
|
+
**/
|
|
28
|
+
version: RuntimeVersion;
|
|
29
|
+
/**
|
|
30
|
+
* The designated SS58 prefix of this chain.
|
|
31
|
+
*
|
|
32
|
+
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
|
33
|
+
* that the runtime should know about the prefix in order to make use of it as
|
|
34
|
+
* an identifier of the chain.
|
|
35
|
+
**/
|
|
36
|
+
ss58Prefix: number;
|
|
37
|
+
/**
|
|
38
|
+
* Generic pallet constant
|
|
39
|
+
**/
|
|
40
|
+
[name: string]: any;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Pallet `RandomnessCollectiveFlip`'s constants
|
|
44
|
+
**/
|
|
45
|
+
randomnessCollectiveFlip: {
|
|
46
|
+
/**
|
|
47
|
+
* Generic pallet constant
|
|
48
|
+
**/
|
|
49
|
+
[name: string]: any;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Pallet `Scheduler`'s constants
|
|
53
|
+
**/
|
|
54
|
+
scheduler: {
|
|
55
|
+
/**
|
|
56
|
+
* The maximum weight that may be scheduled per block for any dispatchables.
|
|
57
|
+
**/
|
|
58
|
+
maximumWeight: SpWeightsWeightV2Weight;
|
|
59
|
+
/**
|
|
60
|
+
* The maximum number of scheduled calls in the queue for a single block.
|
|
61
|
+
*
|
|
62
|
+
* NOTE:
|
|
63
|
+
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
|
|
64
|
+
* higher limit under `runtime-benchmarks` feature.
|
|
65
|
+
**/
|
|
66
|
+
maxScheduledPerBlock: number;
|
|
67
|
+
/**
|
|
68
|
+
* Generic pallet constant
|
|
69
|
+
**/
|
|
70
|
+
[name: string]: any;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Pallet `Aura`'s constants
|
|
74
|
+
**/
|
|
75
|
+
aura: {
|
|
76
|
+
/**
|
|
77
|
+
* Generic pallet constant
|
|
78
|
+
**/
|
|
79
|
+
[name: string]: any;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Pallet `Timestamp`'s constants
|
|
83
|
+
**/
|
|
84
|
+
timestamp: {
|
|
85
|
+
/**
|
|
86
|
+
* The minimum period between blocks. Beware that this is different to the *expected*
|
|
87
|
+
* period that the block production apparatus provides. Your chosen consensus system will
|
|
88
|
+
* generally work with this to determine a sensible block time. e.g. For Aura, it will be
|
|
89
|
+
* double this period on default settings.
|
|
90
|
+
**/
|
|
91
|
+
minimumPeriod: bigint;
|
|
92
|
+
/**
|
|
93
|
+
* Generic pallet constant
|
|
94
|
+
**/
|
|
95
|
+
[name: string]: any;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Pallet `Balances`'s constants
|
|
99
|
+
**/
|
|
100
|
+
balances: {
|
|
101
|
+
/**
|
|
102
|
+
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
|
103
|
+
*
|
|
104
|
+
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
|
105
|
+
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
|
106
|
+
* In case you have multiple sources of provider references, you may also get unexpected
|
|
107
|
+
* behaviour if you set this to zero.
|
|
108
|
+
*
|
|
109
|
+
* Bottom line: Do yourself a favour and make it at least one!
|
|
110
|
+
**/
|
|
111
|
+
existentialDeposit: bigint;
|
|
112
|
+
/**
|
|
113
|
+
* The maximum number of locks that should exist on an account.
|
|
114
|
+
* Not strictly enforced, but used for weight estimation.
|
|
115
|
+
**/
|
|
116
|
+
maxLocks: number;
|
|
117
|
+
/**
|
|
118
|
+
* The maximum number of named reserves that can exist on an account.
|
|
119
|
+
**/
|
|
120
|
+
maxReserves: number;
|
|
121
|
+
/**
|
|
122
|
+
* The maximum number of holds that can exist on an account at any time.
|
|
123
|
+
**/
|
|
124
|
+
maxHolds: number;
|
|
125
|
+
/**
|
|
126
|
+
* The maximum number of individual freeze locks that can exist on an account at any time.
|
|
127
|
+
**/
|
|
128
|
+
maxFreezes: number;
|
|
129
|
+
/**
|
|
130
|
+
* Generic pallet constant
|
|
131
|
+
**/
|
|
132
|
+
[name: string]: any;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Pallet `TransactionPayment`'s constants
|
|
136
|
+
**/
|
|
137
|
+
transactionPayment: {
|
|
138
|
+
/**
|
|
139
|
+
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
|
140
|
+
* `priority`
|
|
141
|
+
*
|
|
142
|
+
* This value is multipled by the `final_fee` to obtain a "virtual tip" that is later
|
|
143
|
+
* added to a tip component in regular `priority` calculations.
|
|
144
|
+
* It means that a `Normal` transaction can front-run a similarly-sized `Operational`
|
|
145
|
+
* extrinsic (with no tip), by including a tip value greater than the virtual tip.
|
|
146
|
+
*
|
|
147
|
+
* ```rust,ignore
|
|
148
|
+
* // For `Normal`
|
|
149
|
+
* let priority = priority_calc(tip);
|
|
150
|
+
*
|
|
151
|
+
* // For `Operational`
|
|
152
|
+
* let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
|
|
153
|
+
* let priority = priority_calc(tip + virtual_tip);
|
|
154
|
+
* ```
|
|
155
|
+
*
|
|
156
|
+
* Note that since we use `final_fee` the multiplier applies also to the regular `tip`
|
|
157
|
+
* sent with the transaction. So, not only does the transaction get a priority bump based
|
|
158
|
+
* on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
|
|
159
|
+
* transactions.
|
|
160
|
+
**/
|
|
161
|
+
operationalFeeMultiplier: number;
|
|
162
|
+
/**
|
|
163
|
+
* Generic pallet constant
|
|
164
|
+
**/
|
|
165
|
+
[name: string]: any;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Pallet `Authorship`'s constants
|
|
169
|
+
**/
|
|
170
|
+
authorship: {
|
|
171
|
+
/**
|
|
172
|
+
* Generic pallet constant
|
|
173
|
+
**/
|
|
174
|
+
[name: string]: any;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Pallet `Staking`'s constants
|
|
178
|
+
**/
|
|
179
|
+
staking: {
|
|
180
|
+
/**
|
|
181
|
+
* Maximum number of nominations per nominator.
|
|
182
|
+
**/
|
|
183
|
+
maxNominations: number;
|
|
184
|
+
/**
|
|
185
|
+
* Number of eras to keep in history.
|
|
186
|
+
*
|
|
187
|
+
* Following information is kept for eras in `[current_era -
|
|
188
|
+
* HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
|
|
189
|
+
* `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
|
|
190
|
+
* `ErasTotalStake`, `ErasStartSessionIndex`,
|
|
191
|
+
* `StakingLedger.claimed_rewards`.
|
|
192
|
+
*
|
|
193
|
+
* Must be more than the number of eras delayed by session.
|
|
194
|
+
* I.e. active era must always be in history. I.e. `active_era >
|
|
195
|
+
* current_era - history_depth` must be guaranteed.
|
|
196
|
+
*
|
|
197
|
+
* If migrating an existing pallet from storage value to config value,
|
|
198
|
+
* this should be set to same value or greater as in storage.
|
|
199
|
+
*
|
|
200
|
+
* Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
|
|
201
|
+
* item `StakingLedger.claimed_rewards`. Setting this value lower than
|
|
202
|
+
* the existing value can lead to inconsistencies in the
|
|
203
|
+
* `StakingLedger` and will need to be handled properly in a migration.
|
|
204
|
+
* The test `reducing_history_depth_abrupt` shows this effect.
|
|
205
|
+
**/
|
|
206
|
+
historyDepth: number;
|
|
207
|
+
/**
|
|
208
|
+
* Number of sessions per era.
|
|
209
|
+
**/
|
|
210
|
+
sessionsPerEra: number;
|
|
211
|
+
/**
|
|
212
|
+
* Number of eras that staked funds must remain bonded for.
|
|
213
|
+
**/
|
|
214
|
+
bondingDuration: number;
|
|
215
|
+
/**
|
|
216
|
+
* Number of eras that slashes are deferred by, after computation.
|
|
217
|
+
*
|
|
218
|
+
* This should be less than the bonding duration. Set to 0 if slashes
|
|
219
|
+
* should be applied immediately, without opportunity for intervention.
|
|
220
|
+
**/
|
|
221
|
+
slashDeferDuration: number;
|
|
222
|
+
/**
|
|
223
|
+
* The maximum number of nominators rewarded for each validator.
|
|
224
|
+
*
|
|
225
|
+
* For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can
|
|
226
|
+
* claim their reward. This used to limit the i/o cost for the nominator payout.
|
|
227
|
+
**/
|
|
228
|
+
maxNominatorRewardedPerValidator: number;
|
|
229
|
+
/**
|
|
230
|
+
* The maximum number of `unlocking` chunks a [`StakingLedger`] can
|
|
231
|
+
* have. Effectively determines how many unique eras a staker may be
|
|
232
|
+
* unbonding in.
|
|
233
|
+
*
|
|
234
|
+
* Note: `MaxUnlockingChunks` is used as the upper bound for the
|
|
235
|
+
* `BoundedVec` item `StakingLedger.unlocking`. Setting this value
|
|
236
|
+
* lower than the existing value can lead to inconsistencies in the
|
|
237
|
+
* `StakingLedger` and will need to be handled properly in a runtime
|
|
238
|
+
* migration. The test `reducing_max_unlocking_chunks_abrupt` shows
|
|
239
|
+
* this effect.
|
|
240
|
+
**/
|
|
241
|
+
maxUnlockingChunks: number;
|
|
242
|
+
/**
|
|
243
|
+
* Generic pallet constant
|
|
244
|
+
**/
|
|
245
|
+
[name: string]: any;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Pallet `History`'s constants
|
|
249
|
+
**/
|
|
250
|
+
history: {
|
|
251
|
+
/**
|
|
252
|
+
* Generic pallet constant
|
|
253
|
+
**/
|
|
254
|
+
[name: string]: any;
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* Pallet `Session`'s constants
|
|
258
|
+
**/
|
|
259
|
+
session: {
|
|
260
|
+
/**
|
|
261
|
+
* Generic pallet constant
|
|
262
|
+
**/
|
|
263
|
+
[name: string]: any;
|
|
264
|
+
};
|
|
265
|
+
/**
|
|
266
|
+
* Pallet `Aleph`'s constants
|
|
267
|
+
**/
|
|
268
|
+
aleph: {
|
|
269
|
+
/**
|
|
270
|
+
* Generic pallet constant
|
|
271
|
+
**/
|
|
272
|
+
[name: string]: any;
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* Pallet `Elections`'s constants
|
|
276
|
+
**/
|
|
277
|
+
elections: {
|
|
278
|
+
/**
|
|
279
|
+
* The maximum number of winners that can be elected by this `ElectionProvider`
|
|
280
|
+
* implementation.
|
|
281
|
+
*
|
|
282
|
+
* Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
|
|
283
|
+
**/
|
|
284
|
+
maxWinners: number;
|
|
285
|
+
/**
|
|
286
|
+
* Generic pallet constant
|
|
287
|
+
**/
|
|
288
|
+
[name: string]: any;
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* Pallet `Treasury`'s constants
|
|
292
|
+
**/
|
|
293
|
+
treasury: {
|
|
294
|
+
/**
|
|
295
|
+
* Fraction of a proposal's value that should be bonded in order to place the proposal.
|
|
296
|
+
* An accepted proposal gets these back. A rejected proposal does not.
|
|
297
|
+
**/
|
|
298
|
+
proposalBond: Permill;
|
|
299
|
+
/**
|
|
300
|
+
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
|
301
|
+
**/
|
|
302
|
+
proposalBondMinimum: bigint;
|
|
303
|
+
/**
|
|
304
|
+
* Maximum amount of funds that should be placed in a deposit for making a proposal.
|
|
305
|
+
**/
|
|
306
|
+
proposalBondMaximum: bigint | undefined;
|
|
307
|
+
/**
|
|
308
|
+
* Period between successive spends.
|
|
309
|
+
**/
|
|
310
|
+
spendPeriod: number;
|
|
311
|
+
/**
|
|
312
|
+
* Percentage of spare funds (if any) that are burnt per spend period.
|
|
313
|
+
**/
|
|
314
|
+
burn: Permill;
|
|
315
|
+
/**
|
|
316
|
+
* The treasury's pallet id, used for deriving its sovereign account ID.
|
|
317
|
+
**/
|
|
318
|
+
palletId: FrameSupportPalletId;
|
|
319
|
+
/**
|
|
320
|
+
* The maximum number of approvals that can wait in the spending queue.
|
|
321
|
+
*
|
|
322
|
+
* NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
|
|
323
|
+
**/
|
|
324
|
+
maxApprovals: number;
|
|
325
|
+
/**
|
|
326
|
+
* Generic pallet constant
|
|
327
|
+
**/
|
|
328
|
+
[name: string]: any;
|
|
329
|
+
};
|
|
330
|
+
/**
|
|
331
|
+
* Pallet `Vesting`'s constants
|
|
332
|
+
**/
|
|
333
|
+
vesting: {
|
|
334
|
+
/**
|
|
335
|
+
* The minimum amount transferred to call `vested_transfer`.
|
|
336
|
+
**/
|
|
337
|
+
minVestedTransfer: bigint;
|
|
338
|
+
maxVestingSchedules: number;
|
|
339
|
+
/**
|
|
340
|
+
* Generic pallet constant
|
|
341
|
+
**/
|
|
342
|
+
[name: string]: any;
|
|
343
|
+
};
|
|
344
|
+
/**
|
|
345
|
+
* Pallet `Utility`'s constants
|
|
346
|
+
**/
|
|
347
|
+
utility: {
|
|
348
|
+
/**
|
|
349
|
+
* The limit on the number of batched calls.
|
|
350
|
+
**/
|
|
351
|
+
batchedCallsLimit: number;
|
|
352
|
+
/**
|
|
353
|
+
* Generic pallet constant
|
|
354
|
+
**/
|
|
355
|
+
[name: string]: any;
|
|
356
|
+
};
|
|
357
|
+
/**
|
|
358
|
+
* Pallet `Multisig`'s constants
|
|
359
|
+
**/
|
|
360
|
+
multisig: {
|
|
361
|
+
/**
|
|
362
|
+
* The base amount of currency needed to reserve for creating a multisig execution or to
|
|
363
|
+
* store a dispatch call for later.
|
|
364
|
+
*
|
|
365
|
+
* This is held for an additional storage item whose value size is
|
|
366
|
+
* `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
|
|
367
|
+
* `32 + sizeof(AccountId)` bytes.
|
|
368
|
+
**/
|
|
369
|
+
depositBase: bigint;
|
|
370
|
+
/**
|
|
371
|
+
* The amount of currency needed per unit threshold when creating a multisig execution.
|
|
372
|
+
*
|
|
373
|
+
* This is held for adding 32 bytes more into a pre-existing storage value.
|
|
374
|
+
**/
|
|
375
|
+
depositFactor: bigint;
|
|
376
|
+
/**
|
|
377
|
+
* The maximum amount of signatories allowed in the multisig.
|
|
378
|
+
**/
|
|
379
|
+
maxSignatories: number;
|
|
380
|
+
/**
|
|
381
|
+
* Generic pallet constant
|
|
382
|
+
**/
|
|
383
|
+
[name: string]: any;
|
|
384
|
+
};
|
|
385
|
+
/**
|
|
386
|
+
* Pallet `Sudo`'s constants
|
|
387
|
+
**/
|
|
388
|
+
sudo: {
|
|
389
|
+
/**
|
|
390
|
+
* Generic pallet constant
|
|
391
|
+
**/
|
|
392
|
+
[name: string]: any;
|
|
393
|
+
};
|
|
394
|
+
/**
|
|
395
|
+
* Pallet `Contracts`'s constants
|
|
396
|
+
**/
|
|
397
|
+
contracts: {
|
|
398
|
+
/**
|
|
399
|
+
* Cost schedule and limits.
|
|
400
|
+
**/
|
|
401
|
+
schedule: PalletContractsSchedule;
|
|
402
|
+
/**
|
|
403
|
+
* The amount of balance a caller has to pay for each byte of storage.
|
|
404
|
+
*
|
|
405
|
+
* # Note
|
|
406
|
+
*
|
|
407
|
+
* Changing this value for an existing chain might need a storage migration.
|
|
408
|
+
**/
|
|
409
|
+
depositPerByte: bigint;
|
|
410
|
+
/**
|
|
411
|
+
* Fallback value to limit the storage deposit if it's not being set by the caller.
|
|
412
|
+
**/
|
|
413
|
+
defaultDepositLimit: bigint;
|
|
414
|
+
/**
|
|
415
|
+
* The amount of balance a caller has to pay for each storage item.
|
|
416
|
+
*
|
|
417
|
+
* # Note
|
|
418
|
+
*
|
|
419
|
+
* Changing this value for an existing chain might need a storage migration.
|
|
420
|
+
**/
|
|
421
|
+
depositPerItem: bigint;
|
|
422
|
+
/**
|
|
423
|
+
* The maximum length of a contract code in bytes.
|
|
424
|
+
*
|
|
425
|
+
* The value should be chosen carefully taking into the account the overall memory limit
|
|
426
|
+
* your runtime has, as well as the [maximum allowed callstack
|
|
427
|
+
* depth](#associatedtype.CallStack). Look into the `integrity_test()` for some insights.
|
|
428
|
+
**/
|
|
429
|
+
maxCodeLen: number;
|
|
430
|
+
/**
|
|
431
|
+
* The maximum allowable length in bytes for storage keys.
|
|
432
|
+
**/
|
|
433
|
+
maxStorageKeyLen: number;
|
|
434
|
+
/**
|
|
435
|
+
* Make contract callable functions marked as `#[unstable]` available.
|
|
436
|
+
*
|
|
437
|
+
* Contracts that use `#[unstable]` functions won't be able to be uploaded unless
|
|
438
|
+
* this is set to `true`. This is only meant for testnets and dev nodes in order to
|
|
439
|
+
* experiment with new features.
|
|
440
|
+
*
|
|
441
|
+
* # Warning
|
|
442
|
+
*
|
|
443
|
+
* Do **not** set to `true` on productions chains.
|
|
444
|
+
**/
|
|
445
|
+
unsafeUnstableInterface: boolean;
|
|
446
|
+
/**
|
|
447
|
+
* The maximum length of the debug buffer in bytes.
|
|
448
|
+
**/
|
|
449
|
+
maxDebugBufferLen: number;
|
|
450
|
+
/**
|
|
451
|
+
* Generic pallet constant
|
|
452
|
+
**/
|
|
453
|
+
[name: string]: any;
|
|
454
|
+
};
|
|
455
|
+
/**
|
|
456
|
+
* Pallet `NominationPools`'s constants
|
|
457
|
+
**/
|
|
458
|
+
nominationPools: {
|
|
459
|
+
/**
|
|
460
|
+
* The nomination pool's pallet id.
|
|
461
|
+
**/
|
|
462
|
+
palletId: FrameSupportPalletId;
|
|
463
|
+
/**
|
|
464
|
+
* The maximum pool points-to-balance ratio that an `open` pool can have.
|
|
465
|
+
*
|
|
466
|
+
* This is important in the event slashing takes place and the pool's points-to-balance
|
|
467
|
+
* ratio becomes disproportional.
|
|
468
|
+
*
|
|
469
|
+
* Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
|
|
470
|
+
* are a function of number of points, and by setting this value to e.g. 10, you ensure
|
|
471
|
+
* that the total number of points in the system are at most 10 times the total_issuance of
|
|
472
|
+
* the chain, in the absolute worse case.
|
|
473
|
+
*
|
|
474
|
+
* For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
|
|
475
|
+
* Such a scenario would also be the equivalent of the pool being 90% slashed.
|
|
476
|
+
**/
|
|
477
|
+
maxPointsToBalance: number;
|
|
478
|
+
/**
|
|
479
|
+
* Generic pallet constant
|
|
480
|
+
**/
|
|
481
|
+
[name: string]: any;
|
|
482
|
+
};
|
|
483
|
+
/**
|
|
484
|
+
* Pallet `Identity`'s constants
|
|
485
|
+
**/
|
|
486
|
+
identity: {
|
|
487
|
+
/**
|
|
488
|
+
* The amount held on deposit for a registered identity
|
|
489
|
+
**/
|
|
490
|
+
basicDeposit: bigint;
|
|
491
|
+
/**
|
|
492
|
+
* The amount held on deposit per additional field for a registered identity.
|
|
493
|
+
**/
|
|
494
|
+
fieldDeposit: bigint;
|
|
495
|
+
/**
|
|
496
|
+
* The amount held on deposit for a registered subaccount. This should account for the fact
|
|
497
|
+
* that one storage item's value will increase by the size of an account ID, and there will
|
|
498
|
+
* be another trie item whose value is the size of an account ID plus 32 bytes.
|
|
499
|
+
**/
|
|
500
|
+
subAccountDeposit: bigint;
|
|
501
|
+
/**
|
|
502
|
+
* The maximum number of sub-accounts allowed per identified account.
|
|
503
|
+
**/
|
|
504
|
+
maxSubAccounts: number;
|
|
505
|
+
/**
|
|
506
|
+
* Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O
|
|
507
|
+
* required to access an identity, but can be pretty high.
|
|
508
|
+
**/
|
|
509
|
+
maxAdditionalFields: number;
|
|
510
|
+
/**
|
|
511
|
+
* Maxmimum number of registrars allowed in the system. Needed to bound the complexity
|
|
512
|
+
* of, e.g., updating judgements.
|
|
513
|
+
**/
|
|
514
|
+
maxRegistrars: number;
|
|
515
|
+
/**
|
|
516
|
+
* Generic pallet constant
|
|
517
|
+
**/
|
|
518
|
+
[name: string]: any;
|
|
519
|
+
};
|
|
520
|
+
/**
|
|
521
|
+
* Pallet `CommitteeManagement`'s constants
|
|
522
|
+
**/
|
|
523
|
+
committeeManagement: {
|
|
524
|
+
/**
|
|
525
|
+
* Nr of blocks in the session.
|
|
526
|
+
**/
|
|
527
|
+
sessionPeriod: number;
|
|
528
|
+
/**
|
|
529
|
+
* Generic pallet constant
|
|
530
|
+
**/
|
|
531
|
+
[name: string]: any;
|
|
532
|
+
};
|
|
533
|
+
}
|
package/aleph/consts.js
ADDED