@argonprotocol/mainchain 1.0.18 → 1.1.0-rc.2

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 (156) hide show
  1. package/README.md +110 -3
  2. package/lib/cli.cjs +3078 -0
  3. package/lib/cli.cjs.map +1 -0
  4. package/lib/cli.d.cts +1 -0
  5. package/lib/cli.d.ts +1 -0
  6. package/lib/cli.js +3073 -0
  7. package/lib/cli.js.map +1 -0
  8. package/lib/clis/index.cjs +3097 -0
  9. package/lib/clis/index.cjs.map +1 -0
  10. package/lib/clis/index.d.cts +26 -0
  11. package/lib/clis/index.d.ts +26 -0
  12. package/lib/clis/index.js +3077 -0
  13. package/lib/clis/index.js.map +1 -0
  14. package/lib/index.cjs +2402 -0
  15. package/lib/index.cjs.map +1 -0
  16. package/lib/index.d.cts +11542 -0
  17. package/lib/index.d.ts +11542 -0
  18. package/lib/index.js +2333 -0
  19. package/lib/index.js.map +1 -0
  20. package/lib/test-utils/index.cjs +2933 -0
  21. package/lib/test-utils/index.cjs.map +1 -0
  22. package/lib/test-utils/index.d.cts +180 -0
  23. package/lib/test-utils/index.d.ts +180 -0
  24. package/lib/test-utils/index.js +2915 -0
  25. package/lib/test-utils/index.js.map +1 -0
  26. package/package.json +50 -45
  27. package/lib/cjs/WageProtector.d.ts +0 -37
  28. package/lib/cjs/WageProtector.js +0 -64
  29. package/lib/cjs/WageProtector.js.map +0 -1
  30. package/lib/cjs/__test__/WageProtector.test.d.ts +0 -1
  31. package/lib/cjs/__test__/WageProtector.test.js +0 -28
  32. package/lib/cjs/__test__/WageProtector.test.js.map +0 -1
  33. package/lib/cjs/examples/decodePkcs.d.ts +0 -1
  34. package/lib/cjs/examples/decodePkcs.js +0 -48
  35. package/lib/cjs/examples/decodePkcs.js.map +0 -1
  36. package/lib/cjs/examples/findSs58Formats.d.ts +0 -1
  37. package/lib/cjs/examples/findSs58Formats.js +0 -42
  38. package/lib/cjs/examples/findSs58Formats.js.map +0 -1
  39. package/lib/cjs/index.d.ts +0 -32
  40. package/lib/cjs/index.js +0 -60
  41. package/lib/cjs/index.js.map +0 -1
  42. package/lib/cjs/interfaces/augment-api-consts.d.ts +0 -442
  43. package/lib/cjs/interfaces/augment-api-consts.js +0 -8
  44. package/lib/cjs/interfaces/augment-api-consts.js.map +0 -1
  45. package/lib/cjs/interfaces/augment-api-errors.d.ts +0 -919
  46. package/lib/cjs/interfaces/augment-api-errors.js +0 -8
  47. package/lib/cjs/interfaces/augment-api-errors.js.map +0 -1
  48. package/lib/cjs/interfaces/augment-api-events.d.ts +0 -1675
  49. package/lib/cjs/interfaces/augment-api-events.js +0 -8
  50. package/lib/cjs/interfaces/augment-api-events.js.map +0 -1
  51. package/lib/cjs/interfaces/augment-api-query.d.ts +0 -988
  52. package/lib/cjs/interfaces/augment-api-query.js +0 -8
  53. package/lib/cjs/interfaces/augment-api-query.js.map +0 -1
  54. package/lib/cjs/interfaces/augment-api-rpc.d.ts +0 -683
  55. package/lib/cjs/interfaces/augment-api-rpc.js +0 -8
  56. package/lib/cjs/interfaces/augment-api-rpc.js.map +0 -1
  57. package/lib/cjs/interfaces/augment-api-runtime.d.ts +0 -204
  58. package/lib/cjs/interfaces/augment-api-runtime.js +0 -8
  59. package/lib/cjs/interfaces/augment-api-runtime.js.map +0 -1
  60. package/lib/cjs/interfaces/augment-api-tx.d.ts +0 -1605
  61. package/lib/cjs/interfaces/augment-api-tx.js +0 -8
  62. package/lib/cjs/interfaces/augment-api-tx.js.map +0 -1
  63. package/lib/cjs/interfaces/augment-api.d.ts +0 -7
  64. package/lib/cjs/interfaces/augment-api.js +0 -12
  65. package/lib/cjs/interfaces/augment-api.js.map +0 -1
  66. package/lib/cjs/interfaces/augment-types.d.ts +0 -1316
  67. package/lib/cjs/interfaces/augment-types.js +0 -8
  68. package/lib/cjs/interfaces/augment-types.js.map +0 -1
  69. package/lib/cjs/interfaces/definitions.d.ts +0 -0
  70. package/lib/cjs/interfaces/definitions.js +0 -2
  71. package/lib/cjs/interfaces/definitions.js.map +0 -1
  72. package/lib/cjs/interfaces/lookup.d.ts +0 -2999
  73. package/lib/cjs/interfaces/lookup.js +0 -3262
  74. package/lib/cjs/interfaces/lookup.js.map +0 -1
  75. package/lib/cjs/interfaces/registry.d.ts +0 -250
  76. package/lib/cjs/interfaces/registry.js +0 -8
  77. package/lib/cjs/interfaces/registry.js.map +0 -1
  78. package/lib/cjs/interfaces/types-lookup.d.ts +0 -2974
  79. package/lib/cjs/interfaces/types-lookup.js +0 -8
  80. package/lib/cjs/interfaces/types-lookup.js.map +0 -1
  81. package/lib/cjs/package.json +0 -3
  82. package/lib/esm/WageProtector.d.ts +0 -37
  83. package/lib/esm/WageProtector.js +0 -60
  84. package/lib/esm/WageProtector.js.map +0 -1
  85. package/lib/esm/__test__/WageProtector.test.d.ts +0 -1
  86. package/lib/esm/__test__/WageProtector.test.js +0 -26
  87. package/lib/esm/__test__/WageProtector.test.js.map +0 -1
  88. package/lib/esm/examples/decodePkcs.d.ts +0 -1
  89. package/lib/esm/examples/decodePkcs.js +0 -45
  90. package/lib/esm/examples/decodePkcs.js.map +0 -1
  91. package/lib/esm/examples/findSs58Formats.d.ts +0 -1
  92. package/lib/esm/examples/findSs58Formats.js +0 -39
  93. package/lib/esm/examples/findSs58Formats.js.map +0 -1
  94. package/lib/esm/index.d.ts +0 -32
  95. package/lib/esm/index.js +0 -50
  96. package/lib/esm/index.js.map +0 -1
  97. package/lib/esm/interfaces/augment-api-consts.d.ts +0 -442
  98. package/lib/esm/interfaces/augment-api-consts.js +0 -6
  99. package/lib/esm/interfaces/augment-api-consts.js.map +0 -1
  100. package/lib/esm/interfaces/augment-api-errors.d.ts +0 -919
  101. package/lib/esm/interfaces/augment-api-errors.js +0 -6
  102. package/lib/esm/interfaces/augment-api-errors.js.map +0 -1
  103. package/lib/esm/interfaces/augment-api-events.d.ts +0 -1675
  104. package/lib/esm/interfaces/augment-api-events.js +0 -6
  105. package/lib/esm/interfaces/augment-api-events.js.map +0 -1
  106. package/lib/esm/interfaces/augment-api-query.d.ts +0 -988
  107. package/lib/esm/interfaces/augment-api-query.js +0 -6
  108. package/lib/esm/interfaces/augment-api-query.js.map +0 -1
  109. package/lib/esm/interfaces/augment-api-rpc.d.ts +0 -683
  110. package/lib/esm/interfaces/augment-api-rpc.js +0 -6
  111. package/lib/esm/interfaces/augment-api-rpc.js.map +0 -1
  112. package/lib/esm/interfaces/augment-api-runtime.d.ts +0 -204
  113. package/lib/esm/interfaces/augment-api-runtime.js +0 -6
  114. package/lib/esm/interfaces/augment-api-runtime.js.map +0 -1
  115. package/lib/esm/interfaces/augment-api-tx.d.ts +0 -1605
  116. package/lib/esm/interfaces/augment-api-tx.js +0 -6
  117. package/lib/esm/interfaces/augment-api-tx.js.map +0 -1
  118. package/lib/esm/interfaces/augment-api.d.ts +0 -7
  119. package/lib/esm/interfaces/augment-api.js +0 -10
  120. package/lib/esm/interfaces/augment-api.js.map +0 -1
  121. package/lib/esm/interfaces/augment-types.d.ts +0 -1316
  122. package/lib/esm/interfaces/augment-types.js +0 -6
  123. package/lib/esm/interfaces/augment-types.js.map +0 -1
  124. package/lib/esm/interfaces/definitions.d.ts +0 -0
  125. package/lib/esm/interfaces/definitions.js +0 -2
  126. package/lib/esm/interfaces/definitions.js.map +0 -1
  127. package/lib/esm/interfaces/lookup.d.ts +0 -2999
  128. package/lib/esm/interfaces/lookup.js +0 -3260
  129. package/lib/esm/interfaces/lookup.js.map +0 -1
  130. package/lib/esm/interfaces/registry.d.ts +0 -250
  131. package/lib/esm/interfaces/registry.js +0 -6
  132. package/lib/esm/interfaces/registry.js.map +0 -1
  133. package/lib/esm/interfaces/types-lookup.d.ts +0 -2974
  134. package/lib/esm/interfaces/types-lookup.js +0 -6
  135. package/lib/esm/interfaces/types-lookup.js.map +0 -1
  136. package/lib/tsconfig-cjs.tsbuildinfo +0 -1
  137. package/lib/tsconfig-types.tsbuildinfo +0 -1
  138. package/lib/tsconfig.tsbuildinfo +0 -1
  139. package/lib/types/WageProtector.d.ts +0 -37
  140. package/lib/types/__test__/WageProtector.test.d.ts +0 -1
  141. package/lib/types/examples/decodePkcs.d.ts +0 -1
  142. package/lib/types/examples/findSs58Formats.d.ts +0 -1
  143. package/lib/types/index.d.ts +0 -32
  144. package/lib/types/interfaces/augment-api-consts.d.ts +0 -442
  145. package/lib/types/interfaces/augment-api-errors.d.ts +0 -919
  146. package/lib/types/interfaces/augment-api-events.d.ts +0 -1675
  147. package/lib/types/interfaces/augment-api-query.d.ts +0 -988
  148. package/lib/types/interfaces/augment-api-rpc.d.ts +0 -683
  149. package/lib/types/interfaces/augment-api-runtime.d.ts +0 -204
  150. package/lib/types/interfaces/augment-api-tx.d.ts +0 -1605
  151. package/lib/types/interfaces/augment-api.d.ts +0 -7
  152. package/lib/types/interfaces/augment-types.d.ts +0 -1316
  153. package/lib/types/interfaces/definitions.d.ts +0 -0
  154. package/lib/types/interfaces/lookup.d.ts +0 -2999
  155. package/lib/types/interfaces/registry.d.ts +0 -250
  156. package/lib/types/interfaces/types-lookup.d.ts +0 -2974
@@ -1,442 +0,0 @@
1
- import '@polkadot/api-base/types/consts';
2
- import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
3
- import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
- import type { ITuple } from '@polkadot/types-codec/types';
5
- import type { Percent } from '@polkadot/types/interfaces/runtime';
6
- import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from '@polkadot/types/lookup';
7
- export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
8
- declare module '@polkadot/api-base/types/consts' {
9
- interface AugmentedConsts<ApiType extends ApiTypes> {
10
- balances: {
11
- /**
12
- * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
13
- *
14
- * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
15
- * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
16
- * In case you have multiple sources of provider references, you may also get unexpected
17
- * behaviour if you set this to zero.
18
- *
19
- * Bottom line: Do yourself a favour and make it at least one!
20
- **/
21
- existentialDeposit: u128 & AugmentedConst<ApiType>;
22
- /**
23
- * The maximum number of individual freeze locks that can exist on an account at any time.
24
- **/
25
- maxFreezes: u32 & AugmentedConst<ApiType>;
26
- /**
27
- * The maximum number of locks that should exist on an account.
28
- * Not strictly enforced, but used for weight estimation.
29
- *
30
- * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
31
- **/
32
- maxLocks: u32 & AugmentedConst<ApiType>;
33
- /**
34
- * The maximum number of named reserves that can exist on an account.
35
- *
36
- * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
37
- **/
38
- maxReserves: u32 & AugmentedConst<ApiType>;
39
- };
40
- bitcoinLocks: {
41
- /**
42
- * Argon blocks per day
43
- **/
44
- argonTicksPerDay: u64 & AugmentedConst<ApiType>;
45
- /**
46
- * The number of bitcoin blocks a bitcoin is locked for
47
- **/
48
- lockDurationBlocks: u64 & AugmentedConst<ApiType>;
49
- /**
50
- * The bitcoin blocks after an obligation expires which the vault will be allowed to claim
51
- * a bitcoin
52
- **/
53
- lockReclamationBlocks: u64 & AugmentedConst<ApiType>;
54
- /**
55
- * Number of bitcoin blocks a vault has to counter-sign a bitcoin release
56
- **/
57
- lockReleaseCosignDeadlineBlocks: u64 & AugmentedConst<ApiType>;
58
- /**
59
- * Maximum releasing utxos at a time
60
- **/
61
- maxConcurrentlyReleasingLocks: u32 & AugmentedConst<ApiType>;
62
- };
63
- bitcoinUtxos: {
64
- /**
65
- * Maximum bitcoin blocks to watch a Utxo for confirmation before canceling
66
- **/
67
- maxPendingConfirmationBlocks: u64 & AugmentedConst<ApiType>;
68
- /**
69
- * The maximum number of UTXOs that can be tracked in a block and/or expiring at same block
70
- **/
71
- maxPendingConfirmationUtxos: u32 & AugmentedConst<ApiType>;
72
- };
73
- blockRewards: {
74
- /**
75
- * The tick number at which the halving begins for ownership tokens
76
- **/
77
- halvingBeginTick: u64 & AugmentedConst<ApiType>;
78
- /**
79
- * Number of ticks for halving of ownership share rewards
80
- **/
81
- halvingTicks: u64 & AugmentedConst<ApiType>;
82
- /**
83
- * The growth path for both ownership and argons before halving
84
- **/
85
- incrementalGrowth: ITuple<[u128, u64, u128]> & AugmentedConst<ApiType>;
86
- /**
87
- * Percent as a number out of 100 of the block reward that goes to the miner.
88
- **/
89
- minerPayoutPercent: u128 & AugmentedConst<ApiType>;
90
- /**
91
- * Number of argons minted per block
92
- **/
93
- startingArgonsPerBlock: u128 & AugmentedConst<ApiType>;
94
- /**
95
- * Number of ownership tokens minted per block
96
- **/
97
- startingOwnershipTokensPerBlock: u128 & AugmentedConst<ApiType>;
98
- };
99
- blockSealSpec: {
100
- /**
101
- * The number of historical compute times to use to calculate the rolling compute average
102
- * (for adjustment)
103
- **/
104
- historicalComputeBlocksForAverage: u32 & AugmentedConst<ApiType>;
105
- /**
106
- * The number of historical vote blocks to use to calculate the rolling vote average
107
- **/
108
- historicalVoteBlocksForAverage: u32 & AugmentedConst<ApiType>;
109
- /**
110
- * The maximum active notaries allowed
111
- **/
112
- maxActiveNotaries: u32 & AugmentedConst<ApiType>;
113
- /**
114
- * The desired votes per block
115
- **/
116
- targetBlockVotes: u128 & AugmentedConst<ApiType>;
117
- };
118
- chainTransfer: {
119
- /**
120
- * How many transfers out can be queued per block
121
- **/
122
- maxPendingTransfersOutPerBlock: u32 & AugmentedConst<ApiType>;
123
- palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
124
- /**
125
- * How long a transfer should remain in storage before returning. NOTE: there is a 2 tick
126
- * grace period where we will still allow a transfer
127
- **/
128
- transferExpirationTicks: u64 & AugmentedConst<ApiType>;
129
- };
130
- grandpa: {
131
- /**
132
- * Max Authorities in use
133
- **/
134
- maxAuthorities: u32 & AugmentedConst<ApiType>;
135
- /**
136
- * The maximum number of nominators for each validator.
137
- **/
138
- maxNominators: u32 & AugmentedConst<ApiType>;
139
- /**
140
- * The maximum number of entries to keep in the set id to session index mapping.
141
- *
142
- * Since the `SetIdSession` map is only used for validating equivocations this
143
- * value should relate to the bonding duration of whatever staking system is
144
- * being used (if any). If equivocation handling is not enabled then this value
145
- * can be zero.
146
- **/
147
- maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
148
- };
149
- miningSlot: {
150
- /**
151
- * The max percent swing for the argonots per slot (from the last percent
152
- **/
153
- argonotsPercentAdjustmentDamper: u128 & AugmentedConst<ApiType>;
154
- /**
155
- * The increment that bids can be on (for instance, one cent increments)
156
- **/
157
- bidIncrements: u128 & AugmentedConst<ApiType>;
158
- /**
159
- * How many new miners can be in the cohort for each slot
160
- **/
161
- maxCohortSize: u32 & AugmentedConst<ApiType>;
162
- /**
163
- * The maximum percent of argonots in the network that should be required for
164
- * mining seats
165
- **/
166
- maximumArgonotProrataPercent: Percent & AugmentedConst<ApiType>;
167
- /**
168
- * The maximum number of Miners that the pallet can hold.
169
- **/
170
- maxMiners: u32 & AugmentedConst<ApiType>;
171
- /**
172
- * The minimum argonots needed per seat
173
- **/
174
- minimumArgonotsPerSeat: u128 & AugmentedConst<ApiType>;
175
- /**
176
- * The target number of bids per slot. This will adjust the argonots per seat up or
177
- * down to ensure mining slots are filled.
178
- **/
179
- targetBidsPerSlot: u32 & AugmentedConst<ApiType>;
180
- };
181
- mint: {
182
- /**
183
- * The maximum number of mint histories to keep
184
- **/
185
- maxMintHistoryToMaintain: u32 & AugmentedConst<ApiType>;
186
- /**
187
- * The maximum number of UTXOs that can be waiting for minting
188
- **/
189
- maxPendingMintUtxos: u32 & AugmentedConst<ApiType>;
190
- };
191
- multisig: {
192
- /**
193
- * The base amount of currency needed to reserve for creating a multisig execution or to
194
- * store a dispatch call for later.
195
- *
196
- * This is held for an additional storage item whose value size is
197
- * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
198
- * `32 + sizeof(AccountId)` bytes.
199
- **/
200
- depositBase: u128 & AugmentedConst<ApiType>;
201
- /**
202
- * The amount of currency needed per unit threshold when creating a multisig execution.
203
- *
204
- * This is held for adding 32 bytes more into a pre-existing storage value.
205
- **/
206
- depositFactor: u128 & AugmentedConst<ApiType>;
207
- /**
208
- * The maximum amount of signatories allowed in the multisig.
209
- **/
210
- maxSignatories: u32 & AugmentedConst<ApiType>;
211
- };
212
- notaries: {
213
- /**
214
- * The maximum active notaries allowed
215
- **/
216
- maxActiveNotaries: u32 & AugmentedConst<ApiType>;
217
- /**
218
- * Maximum hosts a notary can supply
219
- **/
220
- maxNotaryHosts: u32 & AugmentedConst<ApiType>;
221
- /**
222
- * The maximum blocks a proposal can sit unapproved
223
- **/
224
- maxProposalHoldBlocks: u32 & AugmentedConst<ApiType>;
225
- maxProposalsPerBlock: u32 & AugmentedConst<ApiType>;
226
- /**
227
- * Number of ticks to maintain key history for each notary
228
- * NOTE: only pruned when new keys are added
229
- **/
230
- maxTicksForKeyHistory: u32 & AugmentedConst<ApiType>;
231
- /**
232
- * Number of ticks to delay changing a notaries' meta (this is to allow a window for
233
- * notaries to switch to new keys after a new key is finalized)
234
- **/
235
- metaChangesTickDelay: u64 & AugmentedConst<ApiType>;
236
- };
237
- ownership: {
238
- /**
239
- * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
240
- *
241
- * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
242
- * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
243
- * In case you have multiple sources of provider references, you may also get unexpected
244
- * behaviour if you set this to zero.
245
- *
246
- * Bottom line: Do yourself a favour and make it at least one!
247
- **/
248
- existentialDeposit: u128 & AugmentedConst<ApiType>;
249
- /**
250
- * The maximum number of individual freeze locks that can exist on an account at any time.
251
- **/
252
- maxFreezes: u32 & AugmentedConst<ApiType>;
253
- /**
254
- * The maximum number of locks that should exist on an account.
255
- * Not strictly enforced, but used for weight estimation.
256
- *
257
- * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
258
- **/
259
- maxLocks: u32 & AugmentedConst<ApiType>;
260
- /**
261
- * The maximum number of named reserves that can exist on an account.
262
- *
263
- * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
264
- **/
265
- maxReserves: u32 & AugmentedConst<ApiType>;
266
- };
267
- priceIndex: {
268
- /**
269
- * The max price difference dropping below target or raising above target per tick. There's
270
- * no corresponding constant for time to recovery to target
271
- **/
272
- maxArgonChangePerTickAwayFromTarget: u128 & AugmentedConst<ApiType>;
273
- maxArgonTargetChangePerTick: u128 & AugmentedConst<ApiType>;
274
- /**
275
- * The maximum number of ticks to preserve a price index
276
- **/
277
- maxDowntimeTicksBeforeReset: u64 & AugmentedConst<ApiType>;
278
- /**
279
- * The oldest history to keep
280
- **/
281
- maxPriceAgeInTicks: u64 & AugmentedConst<ApiType>;
282
- };
283
- proxy: {
284
- /**
285
- * The base amount of currency needed to reserve for creating an announcement.
286
- *
287
- * This is held when a new storage item holding a `Balance` is created (typically 16
288
- * bytes).
289
- **/
290
- announcementDepositBase: u128 & AugmentedConst<ApiType>;
291
- /**
292
- * The amount of currency needed per announcement made.
293
- *
294
- * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
295
- * into a pre-existing storage value.
296
- **/
297
- announcementDepositFactor: u128 & AugmentedConst<ApiType>;
298
- /**
299
- * The maximum amount of time-delayed announcements that are allowed to be pending.
300
- **/
301
- maxPending: u32 & AugmentedConst<ApiType>;
302
- /**
303
- * The maximum amount of proxies allowed for a single account.
304
- **/
305
- maxProxies: u32 & AugmentedConst<ApiType>;
306
- /**
307
- * The base amount of currency needed to reserve for creating a proxy.
308
- *
309
- * This is held for an additional storage item whose value size is
310
- * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
311
- **/
312
- proxyDepositBase: u128 & AugmentedConst<ApiType>;
313
- /**
314
- * The amount of currency needed per proxy added.
315
- *
316
- * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
317
- * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
318
- * into account `32 + proxy_type.encode().len()` bytes of data.
319
- **/
320
- proxyDepositFactor: u128 & AugmentedConst<ApiType>;
321
- };
322
- system: {
323
- /**
324
- * Maximum number of block number to block hash mappings to keep (oldest pruned first).
325
- **/
326
- blockHashCount: u32 & AugmentedConst<ApiType>;
327
- /**
328
- * The maximum length of a block (in bytes).
329
- **/
330
- blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;
331
- /**
332
- * Block & extrinsics weights: base values and limits.
333
- **/
334
- blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;
335
- /**
336
- * The weight of runtime database operations the runtime can invoke.
337
- **/
338
- dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
339
- /**
340
- * The designated SS58 prefix of this chain.
341
- *
342
- * This replaces the "ss58Format" property declared in the chain spec. Reason is
343
- * that the runtime should know about the prefix in order to make use of it as
344
- * an identifier of the chain.
345
- **/
346
- ss58Prefix: u16 & AugmentedConst<ApiType>;
347
- /**
348
- * Get the chain's in-code version.
349
- **/
350
- version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
351
- };
352
- timestamp: {
353
- /**
354
- * The minimum period between blocks.
355
- *
356
- * Be aware that this is different to the *expected* period that the block production
357
- * apparatus provides. Your chosen consensus system will generally work with this to
358
- * determine a sensible block time. For example, in the Aura pallet it will be double this
359
- * period on default settings.
360
- **/
361
- minimumPeriod: u64 & AugmentedConst<ApiType>;
362
- };
363
- tokenGateway: {
364
- /**
365
- * The decimals of the native currency
366
- **/
367
- decimals: u8 & AugmentedConst<ApiType>;
368
- };
369
- transactionPayment: {
370
- /**
371
- * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
372
- * `priority`
373
- *
374
- * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
375
- * added to a tip component in regular `priority` calculations.
376
- * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
377
- * extrinsic (with no tip), by including a tip value greater than the virtual tip.
378
- *
379
- * ```rust,ignore
380
- * // For `Normal`
381
- * let priority = priority_calc(tip);
382
- *
383
- * // For `Operational`
384
- * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
385
- * let priority = priority_calc(tip + virtual_tip);
386
- * ```
387
- *
388
- * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
389
- * sent with the transaction. So, not only does the transaction get a priority bump based
390
- * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
391
- * transactions.
392
- **/
393
- operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
394
- };
395
- txPause: {
396
- /**
397
- * Maximum length for pallet name and call name SCALE encoded string names.
398
- *
399
- * TOO LONG NAMES WILL BE TREATED AS PAUSED.
400
- **/
401
- maxNameLen: u32 & AugmentedConst<ApiType>;
402
- };
403
- utility: {
404
- /**
405
- * The limit on the number of batched calls.
406
- **/
407
- batchedCallsLimit: u32 & AugmentedConst<ApiType>;
408
- };
409
- vaults: {
410
- /**
411
- * Max entrants allowed in the bid pool. This is only present because substrate prefers
412
- * limits
413
- **/
414
- maxBidPoolEntrants: u32 & AugmentedConst<ApiType>;
415
- /**
416
- * Pallet storage requires bounds, so we have to set a maximum number that can expire in a
417
- * single block
418
- **/
419
- maxConcurrentlyExpiringObligations: u32 & AugmentedConst<ApiType>;
420
- /**
421
- * The max pending vault term changes per block
422
- **/
423
- maxPendingTermModificationsPerTick: u32 & AugmentedConst<ApiType>;
424
- /**
425
- * Minimum amount for an obligation
426
- **/
427
- minimumObligationAmount: u128 & AugmentedConst<ApiType>;
428
- /**
429
- * The number of ticks that a funding change will be delayed before it takes effect
430
- **/
431
- miningArgonIncreaseTickDelay: u64 & AugmentedConst<ApiType>;
432
- /**
433
- * A pallet id that is used to hold the bid pool
434
- **/
435
- palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
436
- /**
437
- * Argon blocks per day
438
- **/
439
- ticksPerDay: u64 & AugmentedConst<ApiType>;
440
- };
441
- }
442
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
3
- /* eslint-disable */
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- // import type lookup before we augment - in some environments
6
- // this is required to allow for ambient/previous definitions
7
- require("@polkadot/api-base/types/consts");
8
- //# sourceMappingURL=augment-api-consts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"augment-api-consts.js","sourceRoot":"","sources":["../../../src/interfaces/augment-api-consts.ts"],"names":[],"mappings":";AAAA,mEAAmE;AACnE,oBAAoB;;AAEpB,8DAA8D;AAC9D,6DAA6D;AAC7D,2CAAyC"}