@argonprotocol/mainchain 1.4.3-dev.6cdce319 → 1.4.3-dev.6de0a801

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argonprotocol/mainchain",
3
- "version": "1.4.3-dev.6cdce319",
3
+ "version": "1.4.3-dev.6de0a801",
4
4
  "description": "A client for accessing the Argon mainchain apis.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,15 +14,17 @@
14
14
  "homepage": "https://github.com/argonprotocol/mainchain#readme",
15
15
  "scripts": {
16
16
  "build": "yarn generate:defs && yarn generate:meta && node clean-build.js && yarn tsc",
17
- "generate:defs": "tsx node_modules/.bin/polkadot-types-from-defs --endpoint metadata.json --input ./src/interfaces --package @argonprotocol/mainchain/interfaces",
18
- "generate:meta": "tsx node_modules/.bin/polkadot-types-from-chain --endpoint metadata.json --output ./src/interfaces --strict",
19
- "tsc": "tsup",
17
+ "generate:defs": "polkadot-types-from-defs --endpoint metadata.json --input ./src/interfaces --package @argonprotocol/mainchain/interfaces",
18
+ "generate:meta": "polkadot-types-from-chain --endpoint metadata.json --output ./src/interfaces --package @argonprotocol/mainchain/interfaces --strict",
19
+ "test": "vitest --run --config vitest.config.ts",
20
+ "tsc": "yarn workspace @argonprotocol/ethereum-contracts build && tsup",
20
21
  "watch": "tsup --watch",
21
22
  "typecheck": "tsc --noEmit"
22
23
  },
23
24
  "files": [
24
25
  "lib/",
25
- "browser/"
26
+ "browser/",
27
+ "src/interfaces/"
26
28
  ],
27
29
  "type": "module",
28
30
  "module": "./lib/index.js",
@@ -40,37 +42,38 @@
40
42
  "default": "./lib/index.cjs"
41
43
  }
42
44
  },
43
- "./clis": {
44
- "types": "./lib/clis/index.d.ts",
45
- "import": "./lib/clis/index.js",
46
- "require": {
47
- "types": "./lib/clis/index.d.cts",
48
- "default": "./lib/clis/index.cjs"
49
- }
45
+ "./interfaces/*": {
46
+ "types": "./src/interfaces/*/index.ts"
50
47
  }
51
48
  },
52
49
  "dependencies": {
53
- "@polkadot/api": "^16.4.4",
54
- "@polkadot/api-base": "^16.4.4",
55
- "@polkadot/keyring": "^13.5.5",
56
- "@polkadot/rpc-core": "^16.4.4",
57
- "@polkadot/rpc-provider": "^16.4.4",
58
- "@polkadot/types": "^16.4.4",
59
- "@polkadot/types-codec": "^16.4.4",
60
- "@polkadot/util": "^13.5.5",
61
- "@polkadot/util-crypto": "^13.5.5",
50
+ "@ethereumjs/block": "^10.1.1",
51
+ "@ethereumjs/mpt": "^10.1.1",
52
+ "@polkadot/api": "^16.5.6",
53
+ "@polkadot/api-base": "^16.5.6",
54
+ "@polkadot/keyring": "^14.0.3",
55
+ "@polkadot/rpc-core": "^16.5.6",
56
+ "@polkadot/rpc-provider": "^16.5.6",
57
+ "@polkadot/types": "^16.5.6",
58
+ "@polkadot/types-codec": "^16.5.6",
59
+ "@polkadot/util": "^14.0.3",
60
+ "@polkadot/util-crypto": "^14.0.3",
62
61
  "bignumber.js": "^9.3.1",
63
- "bs58check": "^4.0.0"
62
+ "bs58check": "^4.0.0",
63
+ "camelcase-keys": "^9.1.3",
64
+ "viem": "^2.38.5"
64
65
  },
65
66
  "devDependencies": {
66
- "@argonprotocol/testing": "1.4.3-dev.6cdce319",
67
- "@polkadot/typegen": "^16.4.4",
67
+ "@argonprotocol/ethereum-contracts": "workspace:*",
68
+ "@argonprotocol/testing": "1.4.3-dev.6de0a801",
69
+ "@polkadot/typegen": "^16.5.6",
68
70
  "@substrate/ss58-registry": "^1.51.0",
69
71
  "@types/node": "^20",
70
72
  "shx": "^0.4.0",
71
73
  "tsup": "^8.5.0",
72
74
  "tsx": "^4.20.4",
73
- "typescript": "^5.9.2"
75
+ "typescript": "^5.9.2",
76
+ "vitest": "^4.0.5"
74
77
  },
75
78
  "packageManager": "yarn@4.1.0"
76
79
  }
@@ -0,0 +1,597 @@
1
+ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
3
+
4
+ // import type lookup before we augment - in some environments
5
+ // this is required to allow for ambient/previous definitions
6
+ import type {} from '@polkadot/api-base/types/consts';
7
+
8
+ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
9
+ import type { bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
10
+ import type { ITuple } from '@polkadot/types-codec/types';
11
+ import type { AccountId32, Percent } from '@polkadot/types/interfaces/runtime';
12
+ import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from '@polkadot/types/lookup';
13
+
14
+ export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
15
+
16
+ declare module '@polkadot/api-base/types/consts' {
17
+ interface AugmentedConsts<ApiType extends ApiTypes> {
18
+ balances: {
19
+ /**
20
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
21
+ *
22
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
23
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
24
+ * In case you have multiple sources of provider references, you may also get unexpected
25
+ * behaviour if you set this to zero.
26
+ *
27
+ * Bottom line: Do yourself a favour and make it at least one!
28
+ **/
29
+ existentialDeposit: u128 & AugmentedConst<ApiType>;
30
+ /**
31
+ * The maximum number of individual freeze locks that can exist on an account at any time.
32
+ **/
33
+ maxFreezes: u32 & AugmentedConst<ApiType>;
34
+ /**
35
+ * The maximum number of locks that should exist on an account.
36
+ * Not strictly enforced, but used for weight estimation.
37
+ *
38
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
39
+ **/
40
+ maxLocks: u32 & AugmentedConst<ApiType>;
41
+ /**
42
+ * The maximum number of named reserves that can exist on an account.
43
+ *
44
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
45
+ **/
46
+ maxReserves: u32 & AugmentedConst<ApiType>;
47
+ };
48
+ bitcoinLocks: {
49
+ /**
50
+ * Argon tick per day
51
+ **/
52
+ argonTicksPerDay: u64 & AugmentedConst<ApiType>;
53
+ /**
54
+ * The number of bitcoin blocks a bitcoin is locked for
55
+ **/
56
+ lockDurationBlocks: u64 & AugmentedConst<ApiType>;
57
+ /**
58
+ * The bitcoin blocks after a BitcoinLock expires which the vault will be allowed to claim
59
+ * a bitcoin
60
+ **/
61
+ lockReclamationBlocks: u64 & AugmentedConst<ApiType>;
62
+ /**
63
+ * Number of frames a vault has to counter-sign a bitcoin release
64
+ **/
65
+ lockReleaseCosignDeadlineFrames: u64 & AugmentedConst<ApiType>;
66
+ /**
67
+ * Max allowed tick-age of microgon-per-btc prices
68
+ **/
69
+ maxBtcPriceTickAge: u32 & AugmentedConst<ApiType>;
70
+ /**
71
+ * Pallet storage requires bounds, so we have to set a maximum number that can expire in a
72
+ * single block
73
+ **/
74
+ maxConcurrentlyExpiringLocks: u32 & AugmentedConst<ApiType>;
75
+ /**
76
+ * Maximum releasing utxos at a time
77
+ **/
78
+ maxConcurrentlyReleasingLocks: u32 & AugmentedConst<ApiType>;
79
+ /**
80
+ * Number of frames orphaned UTXO release entries are retained after a lock lifecycle
81
+ * transition before being cleaned up.
82
+ **/
83
+ orphanedUtxoReleaseExpiryFrames: u64 & AugmentedConst<ApiType>;
84
+ /**
85
+ * Number of ticks per bitcoin block
86
+ **/
87
+ ticksPerBitcoinBlock: u64 & AugmentedConst<ApiType>;
88
+ };
89
+ bitcoinUtxos: {
90
+ /**
91
+ * Maximum number of candidate UTXOs stored per lock
92
+ **/
93
+ maxCandidateUtxosPerLock: u32 & AugmentedConst<ApiType>;
94
+ /**
95
+ * Maximum number of satoshi difference allowed from expected to consider a UTXO as
96
+ * "confirmed"
97
+ **/
98
+ maximumSatoshiThresholdFromExpected: u64 & AugmentedConst<ApiType>;
99
+ /**
100
+ * Maximum bitcoin blocks to watch a Utxo for confirmation before canceling
101
+ **/
102
+ maxPendingConfirmationBlocks: u64 & AugmentedConst<ApiType>;
103
+ /**
104
+ * The maximum number of UTXOs that can be watched in a block and/or expiring at same block
105
+ **/
106
+ maxPendingConfirmationUtxos: u32 & AugmentedConst<ApiType>;
107
+ /**
108
+ * The maximum number of expired pending funding entries cleaned up in a block
109
+ **/
110
+ maxPendingFundingExpirationsPerBlock: u32 & AugmentedConst<ApiType>;
111
+ };
112
+ blockRewards: {
113
+ /**
114
+ * The tick number at which the halving begins for ownership tokens
115
+ **/
116
+ halvingBeginTicks: u64 & AugmentedConst<ApiType>;
117
+ /**
118
+ * Number of ticks for halving of ownership share rewards
119
+ **/
120
+ halvingTicks: u64 & AugmentedConst<ApiType>;
121
+ /**
122
+ * The growth path for both ownership and argons before halving
123
+ **/
124
+ incrementalGrowth: ITuple<[u128, u64, u128]> & AugmentedConst<ApiType>;
125
+ /**
126
+ * Percent as a number out of 100 of the block reward that goes to the miner.
127
+ **/
128
+ minerPayoutPercent: u128 & AugmentedConst<ApiType>;
129
+ /**
130
+ * Number of argons minted per block
131
+ **/
132
+ startingArgonsPerBlock: u128 & AugmentedConst<ApiType>;
133
+ /**
134
+ * Number of ownership tokens minted per block
135
+ **/
136
+ startingOwnershipTokensPerBlock: u128 & AugmentedConst<ApiType>;
137
+ };
138
+ blockSealSpec: {
139
+ /**
140
+ * The number of historical compute times to use to calculate the rolling compute average
141
+ * (for adjustment)
142
+ **/
143
+ historicalComputeBlocksForAverage: u32 & AugmentedConst<ApiType>;
144
+ /**
145
+ * The number of historical vote blocks to use to calculate the rolling vote average
146
+ **/
147
+ historicalVoteBlocksForAverage: u32 & AugmentedConst<ApiType>;
148
+ /**
149
+ * The maximum active notaries allowed
150
+ **/
151
+ maxActiveNotaries: u32 & AugmentedConst<ApiType>;
152
+ /**
153
+ * The desired votes per block
154
+ **/
155
+ targetBlockVotes: u128 & AugmentedConst<ApiType>;
156
+ };
157
+ crosschainTransfer: {
158
+ /**
159
+ * Canonical Ethereum burn-accounting account representing funds moved to Ethereum.
160
+ **/
161
+ ethereumBurnAccount: AccountId32 & AugmentedConst<ApiType>;
162
+ /**
163
+ * Retention window, in ticks, for recent Argon transfer evidence used by operational
164
+ * accounts.
165
+ **/
166
+ recentTransferRetentionTicks: u64 & AugmentedConst<ApiType>;
167
+ };
168
+ ethereumVerifier: {
169
+ /**
170
+ * Minimum gap between finalized headers for an update to be free.
171
+ **/
172
+ freeHeadersInterval: u32 & AugmentedConst<ApiType>;
173
+ /**
174
+ * Whether the read-only event-log verification API is enabled.
175
+ **/
176
+ verifyEventLogApiEnabled: bool & AugmentedConst<ApiType>;
177
+ };
178
+ grandpa: {
179
+ /**
180
+ * Max Authorities in use
181
+ **/
182
+ maxAuthorities: u32 & AugmentedConst<ApiType>;
183
+ /**
184
+ * The maximum number of nominators for each validator.
185
+ **/
186
+ maxNominators: u32 & AugmentedConst<ApiType>;
187
+ /**
188
+ * The maximum number of entries to keep in the set id to session index mapping.
189
+ *
190
+ * Since the `SetIdSession` map is only used for validating equivocations this
191
+ * value should relate to the bonding duration of whatever staking system is
192
+ * being used (if any). If equivocation handling is not enabled then this value
193
+ * can be zero.
194
+ **/
195
+ maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
196
+ };
197
+ localchainTransfer: {
198
+ /**
199
+ * How many transfers out can be queued per block
200
+ **/
201
+ maxPendingTransfersOutPerBlock: u32 & AugmentedConst<ApiType>;
202
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
203
+ /**
204
+ * How long a transfer should remain in storage before returning. NOTE: there is a 2 tick
205
+ * grace period where we will still allow a transfer
206
+ **/
207
+ transferExpirationTicks: u64 & AugmentedConst<ApiType>;
208
+ };
209
+ miningSlot: {
210
+ /**
211
+ * The max percent swing for the argonots per slot (from the last percent)
212
+ **/
213
+ argonotsPercentAdjustmentDamper: u128 & AugmentedConst<ApiType>;
214
+ /**
215
+ * The increment that bids can be on (for instance, one cent increments)
216
+ **/
217
+ bidIncrements: u128 & AugmentedConst<ApiType>;
218
+ /**
219
+ * The number of frames a miner operates for
220
+ **/
221
+ framesPerMiningTerm: u32 & AugmentedConst<ApiType>;
222
+ /**
223
+ * How many new miners can be in the cohort for each slot. The actual maximum will adjust
224
+ * dynamically
225
+ **/
226
+ maxCohortSize: u32 & AugmentedConst<ApiType>;
227
+ /**
228
+ * The maximum percent of argonots in the network that should be required for
229
+ * mining seats
230
+ **/
231
+ maximumArgonotProrataPercent: Percent & AugmentedConst<ApiType>;
232
+ /**
233
+ * The minimum number of miners per cohort
234
+ **/
235
+ minCohortSize: u32 & AugmentedConst<ApiType>;
236
+ /**
237
+ * The minimum argonots needed per seat
238
+ **/
239
+ minimumArgonotsPerSeat: u128 & AugmentedConst<ApiType>;
240
+ /**
241
+ * Account that receives mining bid funds before treasury distribution.
242
+ **/
243
+ miningBidPoolAccount: AccountId32 & AugmentedConst<ApiType>;
244
+ /**
245
+ * The damper on the price per seat adjustment (from the last price)
246
+ **/
247
+ pricePerSeatAdjustmentDamper: u128 & AugmentedConst<ApiType>;
248
+ /**
249
+ * The target percent of bids per auction relative to the max number of seats. This will
250
+ * adjust the argonots per seat up or down to ensure mining slots are filled.
251
+ **/
252
+ targetBidsPerSeatPercent: u128 & AugmentedConst<ApiType>;
253
+ /**
254
+ * The target price per seat.
255
+ **/
256
+ targetPricePerSeat: u128 & AugmentedConst<ApiType>;
257
+ };
258
+ mint: {
259
+ /**
260
+ * The maximum number of mint histories to keep
261
+ **/
262
+ maxMintHistoryToMaintain: u32 & AugmentedConst<ApiType>;
263
+ /**
264
+ * The maximum number of UTXOs that can be waiting for minting
265
+ **/
266
+ maxPendingMintUtxos: u32 & AugmentedConst<ApiType>;
267
+ maxPossibleMiners: u32 & AugmentedConst<ApiType>;
268
+ };
269
+ multisig: {
270
+ /**
271
+ * The base amount of currency needed to reserve for creating a multisig execution or to
272
+ * store a dispatch call for later.
273
+ *
274
+ * This is held for an additional storage item whose value size is
275
+ * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
276
+ * `32 + sizeof(AccountId)` bytes.
277
+ **/
278
+ depositBase: u128 & AugmentedConst<ApiType>;
279
+ /**
280
+ * The amount of currency needed per unit threshold when creating a multisig execution.
281
+ *
282
+ * This is held for adding 32 bytes more into a pre-existing storage value.
283
+ **/
284
+ depositFactor: u128 & AugmentedConst<ApiType>;
285
+ /**
286
+ * The maximum amount of signatories allowed in the multisig.
287
+ **/
288
+ maxSignatories: u32 & AugmentedConst<ApiType>;
289
+ };
290
+ notaries: {
291
+ /**
292
+ * The maximum active notaries allowed
293
+ **/
294
+ maxActiveNotaries: u32 & AugmentedConst<ApiType>;
295
+ /**
296
+ * Maximum hosts a notary can supply
297
+ **/
298
+ maxNotaryHosts: u32 & AugmentedConst<ApiType>;
299
+ /**
300
+ * The maximum blocks a proposal can sit unapproved
301
+ **/
302
+ maxProposalHoldBlocks: u32 & AugmentedConst<ApiType>;
303
+ maxProposalsPerBlock: u32 & AugmentedConst<ApiType>;
304
+ /**
305
+ * Number of ticks to maintain key history for each notary
306
+ * NOTE: only pruned when new keys are added
307
+ **/
308
+ maxTicksForKeyHistory: u32 & AugmentedConst<ApiType>;
309
+ /**
310
+ * Number of ticks to delay changing a notaries' meta (this is to allow a window for
311
+ * notaries to switch to new keys after a new key is finalized)
312
+ **/
313
+ metaChangesTickDelay: u64 & AugmentedConst<ApiType>;
314
+ };
315
+ operationalAccounts: {
316
+ /**
317
+ * Additional argon amount (base units) required per referral after operational.
318
+ **/
319
+ bitcoinLockSizeForReferral: u128 & AugmentedConst<ApiType>;
320
+ /**
321
+ * Maximum number of available referrals allowed at once.
322
+ **/
323
+ maxAvailableReferrals: u32 & AugmentedConst<ApiType>;
324
+ /**
325
+ * Maximum number of encrypted server bytes stored per sponsee.
326
+ **/
327
+ maxEncryptedServerLen: u32 & AugmentedConst<ApiType>;
328
+ /**
329
+ * Maximum number of expired referral codes cleared per block.
330
+ **/
331
+ maxExpiredReferralCodeCleanupsPerBlock: u32 & AugmentedConst<ApiType>;
332
+ /**
333
+ * Mining seats required to become operational.
334
+ **/
335
+ miningSeatsForOperational: u32 & AugmentedConst<ApiType>;
336
+ /**
337
+ * Mining seats required per referral after operational.
338
+ **/
339
+ miningSeatsPerReferral: u32 & AugmentedConst<ApiType>;
340
+ /**
341
+ * Minimum vault securitization required to become operational.
342
+ **/
343
+ operationalMinimumVaultSecuritization: u128 & AugmentedConst<ApiType>;
344
+ /**
345
+ * Default bonus reward paid every referral threshold.
346
+ **/
347
+ operationalReferralBonusReward: u128 & AugmentedConst<ApiType>;
348
+ /**
349
+ * Default reward paid when an account becomes operational.
350
+ **/
351
+ operationalReferralReward: u128 & AugmentedConst<ApiType>;
352
+ /**
353
+ * Number of operational sponsees required per referral bonus reward.
354
+ **/
355
+ referralBonusEveryXOperationalSponsees: u32 & AugmentedConst<ApiType>;
356
+ };
357
+ ownership: {
358
+ /**
359
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
360
+ *
361
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
362
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
363
+ * In case you have multiple sources of provider references, you may also get unexpected
364
+ * behaviour if you set this to zero.
365
+ *
366
+ * Bottom line: Do yourself a favour and make it at least one!
367
+ **/
368
+ existentialDeposit: u128 & AugmentedConst<ApiType>;
369
+ /**
370
+ * The maximum number of individual freeze locks that can exist on an account at any time.
371
+ **/
372
+ maxFreezes: u32 & AugmentedConst<ApiType>;
373
+ /**
374
+ * The maximum number of locks that should exist on an account.
375
+ * Not strictly enforced, but used for weight estimation.
376
+ *
377
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
378
+ **/
379
+ maxLocks: u32 & AugmentedConst<ApiType>;
380
+ /**
381
+ * The maximum number of named reserves that can exist on an account.
382
+ *
383
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
384
+ **/
385
+ maxReserves: u32 & AugmentedConst<ApiType>;
386
+ };
387
+ priceIndex: {
388
+ /**
389
+ * The max price difference dropping below target or raising above target per tick. There's
390
+ * no corresponding constant for time to recovery to target
391
+ **/
392
+ maxArgonChangePerTickAwayFromTarget: u128 & AugmentedConst<ApiType>;
393
+ maxArgonTargetChangePerTick: u128 & AugmentedConst<ApiType>;
394
+ /**
395
+ * The maximum number of ticks to preserve a price index
396
+ **/
397
+ maxDowntimeTicksBeforeReset: u64 & AugmentedConst<ApiType>;
398
+ /**
399
+ * The oldest history to keep
400
+ **/
401
+ maxPriceAgeInTicks: u64 & AugmentedConst<ApiType>;
402
+ };
403
+ proxy: {
404
+ /**
405
+ * The base amount of currency needed to reserve for creating an announcement.
406
+ *
407
+ * This is held when a new storage item holding a `Balance` is created (typically 16
408
+ * bytes).
409
+ **/
410
+ announcementDepositBase: u128 & AugmentedConst<ApiType>;
411
+ /**
412
+ * The amount of currency needed per announcement made.
413
+ *
414
+ * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
415
+ * into a pre-existing storage value.
416
+ **/
417
+ announcementDepositFactor: u128 & AugmentedConst<ApiType>;
418
+ /**
419
+ * The maximum amount of time-delayed announcements that are allowed to be pending.
420
+ **/
421
+ maxPending: u32 & AugmentedConst<ApiType>;
422
+ /**
423
+ * The maximum amount of proxies allowed for a single account.
424
+ **/
425
+ maxProxies: u32 & AugmentedConst<ApiType>;
426
+ /**
427
+ * The base amount of currency needed to reserve for creating a proxy.
428
+ *
429
+ * This is held for an additional storage item whose value size is
430
+ * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
431
+ **/
432
+ proxyDepositBase: u128 & AugmentedConst<ApiType>;
433
+ /**
434
+ * The amount of currency needed per proxy added.
435
+ *
436
+ * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
437
+ * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
438
+ * into account `32 + proxy_type.encode().len()` bytes of data.
439
+ **/
440
+ proxyDepositFactor: u128 & AugmentedConst<ApiType>;
441
+ };
442
+ system: {
443
+ /**
444
+ * Maximum number of block number to block hash mappings to keep (oldest pruned first).
445
+ **/
446
+ blockHashCount: u32 & AugmentedConst<ApiType>;
447
+ /**
448
+ * The maximum length of a block (in bytes).
449
+ **/
450
+ blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;
451
+ /**
452
+ * Block & extrinsics weights: base values and limits.
453
+ **/
454
+ blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;
455
+ /**
456
+ * The weight of runtime database operations the runtime can invoke.
457
+ **/
458
+ dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
459
+ /**
460
+ * The designated SS58 prefix of this chain.
461
+ *
462
+ * This replaces the "ss58Format" property declared in the chain spec. Reason is
463
+ * that the runtime should know about the prefix in order to make use of it as
464
+ * an identifier of the chain.
465
+ **/
466
+ ss58Prefix: u16 & AugmentedConst<ApiType>;
467
+ /**
468
+ * Get the chain's in-code version.
469
+ **/
470
+ version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
471
+ };
472
+ timestamp: {
473
+ /**
474
+ * The minimum period between blocks.
475
+ *
476
+ * Be aware that this is different to the *expected* period that the block production
477
+ * apparatus provides. Your chosen consensus system will generally work with this to
478
+ * determine a sensible block time. For example, in the Aura pallet it will be double this
479
+ * period on default settings.
480
+ **/
481
+ minimumPeriod: u64 & AugmentedConst<ApiType>;
482
+ };
483
+ transactionPayment: {
484
+ /**
485
+ * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
486
+ * `priority`
487
+ *
488
+ * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
489
+ * added to a tip component in regular `priority` calculations.
490
+ * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
491
+ * extrinsic (with no tip), by including a tip value greater than the virtual tip.
492
+ *
493
+ * ```rust,ignore
494
+ * // For `Normal`
495
+ * let priority = priority_calc(tip);
496
+ *
497
+ * // For `Operational`
498
+ * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
499
+ * let priority = priority_calc(tip + virtual_tip);
500
+ * ```
501
+ *
502
+ * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
503
+ * sent with the transaction. So, not only does the transaction get a priority bump based
504
+ * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
505
+ * transactions.
506
+ **/
507
+ operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
508
+ };
509
+ treasury: {
510
+ /**
511
+ * The maximum number of bond lots whose release delay may mature in a single frame.
512
+ **/
513
+ maxPendingUnlocksPerFrame: u32 & AugmentedConst<ApiType>;
514
+ /**
515
+ * The maximum number of accepted bond lots in a vault's accepted bond-lot list.
516
+ **/
517
+ maxTreasuryContributors: u32 & AugmentedConst<ApiType>;
518
+ /**
519
+ * The maximum number of vaults that can participate in one frame's locked vault capital.
520
+ **/
521
+ maxVaultsPerPool: u32 & AugmentedConst<ApiType>;
522
+ /**
523
+ * The minimum whole-bond purchase amount.
524
+ **/
525
+ minimumArgonsPerContributor: u128 & AugmentedConst<ApiType>;
526
+ /**
527
+ * Treasury pallet id retained in metadata for account derivation.
528
+ **/
529
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
530
+ /**
531
+ * Percent of the bid pool reserved for treasury reserves.
532
+ **/
533
+ percentForTreasuryReserves: Percent & AugmentedConst<ApiType>;
534
+ /**
535
+ * The number of frames a releasing bond lot remains held before release.
536
+ **/
537
+ treasuryExitDelayFrames: u64 & AugmentedConst<ApiType>;
538
+ /**
539
+ * Account that holds treasury reserves for claims and reserve-funded payouts.
540
+ **/
541
+ treasuryReservesAccount: AccountId32 & AugmentedConst<ApiType>;
542
+ };
543
+ txPause: {
544
+ /**
545
+ * Maximum length for pallet name and call name SCALE encoded string names.
546
+ *
547
+ * TOO LONG NAMES WILL BE TREATED AS PAUSED.
548
+ **/
549
+ maxNameLen: u32 & AugmentedConst<ApiType>;
550
+ };
551
+ utility: {
552
+ /**
553
+ * The limit on the number of batched calls.
554
+ **/
555
+ batchedCallsLimit: u32 & AugmentedConst<ApiType>;
556
+ };
557
+ vaults: {
558
+ /**
559
+ * One no-fee stale `initialize_for` failure is allowed for each this-many units of lost
560
+ * `available_for_lock`.
561
+ **/
562
+ capacityDropAttemptUnit: u128 & AugmentedConst<ApiType>;
563
+ /**
564
+ * Max concurrent cosigns pending per vault
565
+ **/
566
+ maxPendingCosignsPerVault: u32 & AugmentedConst<ApiType>;
567
+ /**
568
+ * The max pending vault term changes per block
569
+ **/
570
+ maxPendingTermModificationsPerTick: u32 & AugmentedConst<ApiType>;
571
+ /**
572
+ * Maximum number of recent `available_for_lock` drops retained per vault.
573
+ **/
574
+ maxRecentCapacityDropsPerVault: u32 & AugmentedConst<ApiType>;
575
+ /**
576
+ * The max number of vaults that can be created
577
+ **/
578
+ maxVaults: u32 & AugmentedConst<ApiType>;
579
+ /**
580
+ * Duration to keep the operational minimum securitization locked from vault creation.
581
+ **/
582
+ operationalMinimumVaultLockTicks: u64 & AugmentedConst<ApiType>;
583
+ /**
584
+ * Minimum vault securitization required while the operational floor lock is active.
585
+ **/
586
+ operationalMinimumVaultSecuritization: u128 & AugmentedConst<ApiType>;
587
+ /**
588
+ * Number of Argon blocks to keep recent `available_for_lock` drops for stale init checks.
589
+ **/
590
+ recentCapacityDropBlockWindow: u32 & AugmentedConst<ApiType>;
591
+ /**
592
+ * The number of frames within which revenue must be collected
593
+ **/
594
+ revenueCollectionExpirationFrames: u64 & AugmentedConst<ApiType>;
595
+ };
596
+ } // AugmentedConsts
597
+ } // declare module