@argonprotocol/mainchain 1.5.2 → 1.6.0-dev.0331b728
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 +95 -0
- package/browser/artifacts/contracts/ArgonBuyAndTransfer.sol/ArgonBuyAndTransfer.json +573 -0
- package/browser/artifacts/contracts/ArgonToken.sol/ArgonToken.json +11 -11
- package/browser/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +11 -11
- package/browser/artifacts/contracts/MintingGateway.sol/MintingGateway.json +401 -16
- package/browser/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +3 -3
- package/browser/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +4 -4
- package/browser/artifacts/contracts/StabilizationPoolHook.sol/StabilizationPoolHook.json +753 -0
- package/browser/artifacts/contracts/StabilizationPoolSubscriber.sol/StabilizationPoolSubscriber.json +187 -0
- package/browser/artifacts/contracts/UniswapV4PriceQuoter.sol/UniswapV4PriceQuoter.json +391 -0
- package/browser/index.d.ts +12595 -7998
- package/browser/index.js +6458 -2506
- package/browser/index.js.map +1 -1
- package/lib/artifacts/contracts/ArgonBuyAndTransfer.sol/ArgonBuyAndTransfer.json +573 -0
- package/lib/artifacts/contracts/ArgonToken.sol/ArgonToken.json +11 -11
- package/lib/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +11 -11
- package/lib/artifacts/contracts/MintingGateway.sol/MintingGateway.json +401 -16
- package/lib/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +3 -3
- package/lib/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +4 -4
- package/lib/artifacts/contracts/StabilizationPoolHook.sol/StabilizationPoolHook.json +753 -0
- package/lib/artifacts/contracts/StabilizationPoolSubscriber.sol/StabilizationPoolSubscriber.json +187 -0
- package/lib/artifacts/contracts/UniswapV4PriceQuoter.sol/UniswapV4PriceQuoter.json +391 -0
- package/lib/index.cjs +6428 -2499
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +12595 -7998
- package/lib/index.d.ts +12595 -7998
- package/lib/index.js +6710 -2781
- package/lib/index.js.map +1 -1
- package/package.json +17 -13
- package/src/interfaces/augment-api-consts.ts +124 -30
- package/src/interfaces/augment-api-errors.ts +297 -19
- package/src/interfaces/augment-api-events.ts +281 -1688
- package/src/interfaces/augment-api-query.ts +394 -1127
- package/src/interfaces/augment-api-rpc.ts +88 -613
- package/src/interfaces/augment-api-runtime.ts +255 -221
- package/src/interfaces/augment-api-tx.ts +370 -1630
- package/src/interfaces/augment-types.ts +46 -1350
- package/src/interfaces/lookup.ts +3765 -3182
- package/src/interfaces/registry.ts +87 -330
- package/src/interfaces/types-lookup.ts +4051 -3818
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/mainchain",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0-dev.0331b728",
|
|
4
4
|
"description": "A client for accessing the Argon mainchain apis.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,22 +13,25 @@
|
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://github.com/argonprotocol/mainchain#readme",
|
|
15
15
|
"scripts": {
|
|
16
|
-
"build": "yarn
|
|
17
|
-
"generate
|
|
16
|
+
"build": "yarn tsc",
|
|
17
|
+
"generate": "tsx src/scripts/generateMetadata.ts && node clean-build.js",
|
|
18
|
+
"generate:contract-declarations": "yarn workspace @argonprotocol/ethereum-contracts build && tsc -p tsconfig.contracts.json",
|
|
18
19
|
"generate:defs": "polkadot-types-from-defs --endpoint metadata.json --input ./src/interfaces --package @argonprotocol/mainchain/interfaces",
|
|
19
20
|
"generate:meta": "polkadot-types-from-chain --endpoint metadata.json --output ./src/interfaces --package @argonprotocol/mainchain/interfaces --strict",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
21
|
+
"pretest": "yarn generate && yarn generate:contract-declarations",
|
|
22
|
+
"pretest:ci": "yarn pretest",
|
|
23
|
+
"test": "yarn pretest && vitest --run --config vitest.config.ts",
|
|
24
|
+
"tsc": "yarn generate && yarn generate:contract-declarations && tsup && yarn validate:package",
|
|
22
25
|
"tsup": "yarn tsc",
|
|
23
26
|
"validate:package": "tsx src/scripts/validatePackage.ts",
|
|
24
|
-
"backfill:flexible-bond-metrics": "tsx src/scripts/backfillFlexibleBondMetrics.ts",
|
|
25
|
-
"watch": "yarn generate:contract-declarations && tsup --watch",
|
|
26
|
-
"typecheck": "tsc --noEmit -p tsconfig.test.json"
|
|
27
|
+
"backfill:flexible-bond-metrics": "yarn pretest && tsx src/scripts/backfillFlexibleBondMetrics.ts",
|
|
28
|
+
"watch": "yarn generate && yarn generate:contract-declarations && tsup --watch",
|
|
29
|
+
"typecheck": "yarn generate && yarn workspace @argonprotocol/ethereum-contracts build && tsc --noEmit -p tsconfig.test.json"
|
|
27
30
|
},
|
|
28
31
|
"files": [
|
|
29
32
|
"lib/",
|
|
30
33
|
"browser/",
|
|
31
|
-
"src/interfaces
|
|
34
|
+
"src/interfaces/**"
|
|
32
35
|
],
|
|
33
36
|
"type": "module",
|
|
34
37
|
"module": "./lib/index.js",
|
|
@@ -47,12 +50,13 @@
|
|
|
47
50
|
}
|
|
48
51
|
},
|
|
49
52
|
"./interfaces/*": {
|
|
50
|
-
"types": "./src/interfaces
|
|
53
|
+
"types": "./src/interfaces/*.ts"
|
|
51
54
|
}
|
|
52
55
|
},
|
|
53
56
|
"dependencies": {
|
|
54
|
-
"@ethereumjs/block": "^10.1.
|
|
55
|
-
"@ethereumjs/
|
|
57
|
+
"@ethereumjs/block": "^10.1.3",
|
|
58
|
+
"@ethereumjs/common": "^10.1.3",
|
|
59
|
+
"@ethereumjs/mpt": "^10.1.3",
|
|
56
60
|
"@polkadot/api": "^17.0.1",
|
|
57
61
|
"@polkadot/api-base": "^17.0.1",
|
|
58
62
|
"@polkadot/keyring": "^14.0.3",
|
|
@@ -68,7 +72,7 @@
|
|
|
68
72
|
},
|
|
69
73
|
"devDependencies": {
|
|
70
74
|
"@argonprotocol/ethereum-contracts": "workspace:*",
|
|
71
|
-
"@argonprotocol/testing": "1.
|
|
75
|
+
"@argonprotocol/testing": "1.6.0-dev.0331b728",
|
|
72
76
|
"@polkadot/typegen": "^17.0.1",
|
|
73
77
|
"@substrate/ss58-registry": "^1.51.0",
|
|
74
78
|
"@types/node": "^20",
|
|
@@ -8,13 +8,7 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
|
8
8
|
import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
9
9
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
10
10
|
import type { AccountId32, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
11
|
-
import type {
|
|
12
|
-
FrameSupportPalletId,
|
|
13
|
-
FrameSystemLimitsBlockLength,
|
|
14
|
-
FrameSystemLimitsBlockWeights,
|
|
15
|
-
SpVersionRuntimeVersion,
|
|
16
|
-
SpWeightsRuntimeDbWeight,
|
|
17
|
-
} from '@polkadot/types/lookup';
|
|
11
|
+
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from '@polkadot/types/lookup';
|
|
18
12
|
|
|
19
13
|
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
|
20
14
|
|
|
@@ -23,12 +17,12 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
23
17
|
balances: {
|
|
24
18
|
/**
|
|
25
19
|
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
|
26
|
-
*
|
|
20
|
+
*
|
|
27
21
|
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
|
28
22
|
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
|
29
23
|
* In case you have multiple sources of provider references, you may also get unexpected
|
|
30
24
|
* behaviour if you set this to zero.
|
|
31
|
-
*
|
|
25
|
+
*
|
|
32
26
|
* Bottom line: Do yourself a favour and make it at least one!
|
|
33
27
|
**/
|
|
34
28
|
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
|
@@ -39,26 +33,38 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
39
33
|
/**
|
|
40
34
|
* The maximum number of locks that should exist on an account.
|
|
41
35
|
* Not strictly enforced, but used for weight estimation.
|
|
42
|
-
*
|
|
36
|
+
*
|
|
43
37
|
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
44
38
|
**/
|
|
45
39
|
maxLocks: u32 & AugmentedConst<ApiType>;
|
|
46
40
|
/**
|
|
47
41
|
* The maximum number of named reserves that can exist on an account.
|
|
48
|
-
*
|
|
42
|
+
*
|
|
49
43
|
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
50
44
|
**/
|
|
51
45
|
maxReserves: u32 & AugmentedConst<ApiType>;
|
|
52
46
|
};
|
|
53
47
|
bitcoinFissions: {
|
|
48
|
+
/**
|
|
49
|
+
* Fissions per Liquid covered by repayment benchmarks and checked by try-state.
|
|
50
|
+
**/
|
|
51
|
+
maxExpectedFissionsPerLiquid: u32 & AugmentedConst<ApiType>;
|
|
54
52
|
/**
|
|
55
53
|
* Maximum number of active Fissions that may allocate satoshis from one Lock.
|
|
56
54
|
**/
|
|
57
55
|
maxFissionsPerLock: u32 & AugmentedConst<ApiType>;
|
|
56
|
+
/**
|
|
57
|
+
* Maximum older frame records pruned in one block after gateway sync catches up.
|
|
58
|
+
**/
|
|
59
|
+
maxRValueHistoryPrunesPerBlock: u32 & AugmentedConst<ApiType>;
|
|
58
60
|
/**
|
|
59
61
|
* Minimum percentage change required to ratchet a Fission.
|
|
60
62
|
**/
|
|
61
63
|
minimumRatchetPercent: Percent & AugmentedConst<ApiType>;
|
|
64
|
+
/**
|
|
65
|
+
* Number of recent frame price marks retained after their source interval has synced.
|
|
66
|
+
**/
|
|
67
|
+
rValueHistoryFrames: u32 & AugmentedConst<ApiType>;
|
|
62
68
|
};
|
|
63
69
|
bitcoinLocks: {
|
|
64
70
|
/**
|
|
@@ -101,7 +107,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
101
107
|
**/
|
|
102
108
|
orphanedUtxoReleaseExpiryFrames: u64 & AugmentedConst<ApiType>;
|
|
103
109
|
/**
|
|
104
|
-
*
|
|
110
|
+
* Initial Bitcoin deposit window, measured in Bitcoin blocks.
|
|
105
111
|
**/
|
|
106
112
|
securitizationHoldBlocks: u64 & AugmentedConst<ApiType>;
|
|
107
113
|
/**
|
|
@@ -181,6 +187,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
181
187
|
* Canonical Ethereum burn-accounting account representing funds moved to Ethereum.
|
|
182
188
|
**/
|
|
183
189
|
ethereumBurnAccount: AccountId32 & AugmentedConst<ApiType>;
|
|
190
|
+
/**
|
|
191
|
+
* Maximum activities in one complete gateway locator storage proof.
|
|
192
|
+
**/
|
|
193
|
+
maxActivitiesPerGatewayProof: u32 & AugmentedConst<ApiType>;
|
|
184
194
|
/**
|
|
185
195
|
* Maximum number of ordered gateway activities that may share one receipt proof.
|
|
186
196
|
**/
|
|
@@ -189,6 +199,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
189
199
|
* Maximum number of members the active Global Issuance Council may carry.
|
|
190
200
|
**/
|
|
191
201
|
maxCouncilMembers: u32 & AugmentedConst<ApiType>;
|
|
202
|
+
/**
|
|
203
|
+
* Maximum aggregate event data carried by one storage-proof locator.
|
|
204
|
+
**/
|
|
205
|
+
maxGatewayActivityLogDataBytes: u32 & AugmentedConst<ApiType>;
|
|
192
206
|
/**
|
|
193
207
|
* Maximum number of non-terminal transfer-out requests tracked for one destination chain.
|
|
194
208
|
**/
|
|
@@ -242,7 +256,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
242
256
|
maxNominators: u32 & AugmentedConst<ApiType>;
|
|
243
257
|
/**
|
|
244
258
|
* The maximum number of entries to keep in the set id to session index mapping.
|
|
245
|
-
*
|
|
259
|
+
*
|
|
246
260
|
* Since the `SetIdSession` map is only used for validating equivocations this
|
|
247
261
|
* value should relate to the bonding duration of whatever staking system is
|
|
248
262
|
* being used (if any). If equivocation handling is not enabled then this value
|
|
@@ -271,6 +285,8 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
271
285
|
* The increment that bids can be on (for instance, one cent increments)
|
|
272
286
|
**/
|
|
273
287
|
bidIncrements: u128 & AugmentedConst<ApiType>;
|
|
288
|
+
bidRevealBlocks: u32 & AugmentedConst<ApiType>;
|
|
289
|
+
bidSettlementBuffer: u32 & AugmentedConst<ApiType>;
|
|
274
290
|
/**
|
|
275
291
|
* The number of frames a miner operates for
|
|
276
292
|
**/
|
|
@@ -279,6 +295,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
279
295
|
* The initial argonots needed per seat before a prior-day median is available.
|
|
280
296
|
**/
|
|
281
297
|
initialArgonotsPerSeat: u128 & AugmentedConst<ApiType>;
|
|
298
|
+
/**
|
|
299
|
+
* Maximum commitments, including public bids, admitted per block.
|
|
300
|
+
**/
|
|
301
|
+
maxBidsPerBlock: u32 & AugmentedConst<ApiType>;
|
|
282
302
|
/**
|
|
283
303
|
* How many new miners can be in the cohort for each slot. The actual maximum will adjust
|
|
284
304
|
* dynamically
|
|
@@ -327,7 +347,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
327
347
|
/**
|
|
328
348
|
* The base amount of currency needed to reserve for creating a multisig execution or to
|
|
329
349
|
* store a dispatch call for later.
|
|
330
|
-
*
|
|
350
|
+
*
|
|
331
351
|
* This is held for an additional storage item whose value size is
|
|
332
352
|
* `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
|
|
333
353
|
* `32 + sizeof(AccountId)` bytes.
|
|
@@ -335,7 +355,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
335
355
|
depositBase: u128 & AugmentedConst<ApiType>;
|
|
336
356
|
/**
|
|
337
357
|
* The amount of currency needed per unit threshold when creating a multisig execution.
|
|
338
|
-
*
|
|
358
|
+
*
|
|
339
359
|
* This is held for adding 32 bytes more into a pre-existing storage value.
|
|
340
360
|
**/
|
|
341
361
|
depositFactor: u128 & AugmentedConst<ApiType>;
|
|
@@ -428,16 +448,21 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
428
448
|
* Minimum vault securitization required to become operational.
|
|
429
449
|
**/
|
|
430
450
|
operationalMinimumVaultSecuritization: u128 & AugmentedConst<ApiType>;
|
|
451
|
+
/**
|
|
452
|
+
* Required operational registration signing contract. Clients must require version 2
|
|
453
|
+
* before signing; older clients must upgrade rather than reuse ownership-only proofs.
|
|
454
|
+
**/
|
|
455
|
+
registrationProofVersion: u8 & AugmentedConst<ApiType>;
|
|
431
456
|
};
|
|
432
457
|
ownership: {
|
|
433
458
|
/**
|
|
434
459
|
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
|
435
|
-
*
|
|
460
|
+
*
|
|
436
461
|
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
|
437
462
|
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
|
438
463
|
* In case you have multiple sources of provider references, you may also get unexpected
|
|
439
464
|
* behaviour if you set this to zero.
|
|
440
|
-
*
|
|
465
|
+
*
|
|
441
466
|
* Bottom line: Do yourself a favour and make it at least one!
|
|
442
467
|
**/
|
|
443
468
|
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
|
@@ -448,13 +473,13 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
448
473
|
/**
|
|
449
474
|
* The maximum number of locks that should exist on an account.
|
|
450
475
|
* Not strictly enforced, but used for weight estimation.
|
|
451
|
-
*
|
|
476
|
+
*
|
|
452
477
|
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
453
478
|
**/
|
|
454
479
|
maxLocks: u32 & AugmentedConst<ApiType>;
|
|
455
480
|
/**
|
|
456
481
|
* The maximum number of named reserves that can exist on an account.
|
|
457
|
-
*
|
|
482
|
+
*
|
|
458
483
|
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
459
484
|
**/
|
|
460
485
|
maxReserves: u32 & AugmentedConst<ApiType>;
|
|
@@ -490,14 +515,14 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
490
515
|
proxy: {
|
|
491
516
|
/**
|
|
492
517
|
* The base amount of currency needed to reserve for creating an announcement.
|
|
493
|
-
*
|
|
518
|
+
*
|
|
494
519
|
* This is held when a new storage item holding a `Balance` is created (typically 16
|
|
495
520
|
* bytes).
|
|
496
521
|
**/
|
|
497
522
|
announcementDepositBase: u128 & AugmentedConst<ApiType>;
|
|
498
523
|
/**
|
|
499
524
|
* The amount of currency needed per announcement made.
|
|
500
|
-
*
|
|
525
|
+
*
|
|
501
526
|
* This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
|
|
502
527
|
* into a pre-existing storage value.
|
|
503
528
|
**/
|
|
@@ -512,20 +537,75 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
512
537
|
maxProxies: u32 & AugmentedConst<ApiType>;
|
|
513
538
|
/**
|
|
514
539
|
* The base amount of currency needed to reserve for creating a proxy.
|
|
515
|
-
*
|
|
540
|
+
*
|
|
516
541
|
* This is held for an additional storage item whose value size is
|
|
517
542
|
* `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
|
|
518
543
|
**/
|
|
519
544
|
proxyDepositBase: u128 & AugmentedConst<ApiType>;
|
|
520
545
|
/**
|
|
521
546
|
* The amount of currency needed per proxy added.
|
|
522
|
-
*
|
|
547
|
+
*
|
|
523
548
|
* This is held for adding 32 bytes plus an instance of `ProxyType` more into a
|
|
524
549
|
* pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
|
|
525
550
|
* into account `32 + proxy_type.encode().len()` bytes of data.
|
|
526
551
|
**/
|
|
527
552
|
proxyDepositFactor: u128 & AugmentedConst<ApiType>;
|
|
528
553
|
};
|
|
554
|
+
stabilizerBuys: {
|
|
555
|
+
/**
|
|
556
|
+
* Fraction of total matching basis admitted to rewards, independent of bid rates.
|
|
557
|
+
* Configure 90%; reserve up to that amount, bounded separately by available Treasury
|
|
558
|
+
* funding.
|
|
559
|
+
**/
|
|
560
|
+
auctionInclusionPercent: Percent & AugmentedConst<ApiType>;
|
|
561
|
+
/**
|
|
562
|
+
* Additional burn-funded reward before applying the purchase's auction result.
|
|
563
|
+
**/
|
|
564
|
+
liquidRepaymentRewardPercent: Percent & AugmentedConst<ApiType>;
|
|
565
|
+
/**
|
|
566
|
+
* Maximum account/frame purchase buckets visited in one account payout.
|
|
567
|
+
* This bounds work, without limiting the number of purchases an account can hold.
|
|
568
|
+
**/
|
|
569
|
+
maxFramesPerPayout: u32 & AugmentedConst<ApiType>;
|
|
570
|
+
/**
|
|
571
|
+
* Maximum Liquid repayments attempted across all account payouts in one block.
|
|
572
|
+
**/
|
|
573
|
+
maxLiquidRepaysPerBlock: u32 & AugmentedConst<ApiType>;
|
|
574
|
+
/**
|
|
575
|
+
* Maximum work in each automatic stage per block: ranked bid decisions, then account
|
|
576
|
+
* payout attempts. Failures and empty-auction completion consume work; excess stays
|
|
577
|
+
* queued.
|
|
578
|
+
**/
|
|
579
|
+
maxPayoutsPerBlock: u32 & AugmentedConst<ApiType>;
|
|
580
|
+
/**
|
|
581
|
+
* Positive submissions per account and auction; four allows an initial bid and three
|
|
582
|
+
* revisions.
|
|
583
|
+
**/
|
|
584
|
+
maxPositiveBids: u8 & AugmentedConst<ApiType>;
|
|
585
|
+
/**
|
|
586
|
+
* Maximum observation age at purchase time; also bounds historical lookup reads.
|
|
587
|
+
**/
|
|
588
|
+
maxPriceAgeTicks: u64 & AugmentedConst<ApiType>;
|
|
589
|
+
/**
|
|
590
|
+
* Maximum obsolete price entries removed per block after gateway sync advances.
|
|
591
|
+
**/
|
|
592
|
+
maxPriceHistoryPrunesPerBlock: u32 & AugmentedConst<ApiType>;
|
|
593
|
+
/**
|
|
594
|
+
* Maximum frame visits per repayment attempt; a partial frame visit also reads one tick.
|
|
595
|
+
**/
|
|
596
|
+
maxPriceWindowSteps: u32 & AugmentedConst<ApiType>;
|
|
597
|
+
/**
|
|
598
|
+
* Total mining-frame hold from admission, including the bidding window.
|
|
599
|
+
**/
|
|
600
|
+
purchaseHoldFrames: u64 & AugmentedConst<ApiType>;
|
|
601
|
+
};
|
|
602
|
+
stabilizerPools: {
|
|
603
|
+
/**
|
|
604
|
+
* Opening references retained in financial-day frames, including the checkpoint buffer.
|
|
605
|
+
* Zero disables history. Both production runtimes retain 30 frames plus a 3-frame buffer.
|
|
606
|
+
**/
|
|
607
|
+
maxFramePriceHistoryFrames: u32 & AugmentedConst<ApiType>;
|
|
608
|
+
};
|
|
529
609
|
system: {
|
|
530
610
|
/**
|
|
531
611
|
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
|
@@ -545,7 +625,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
545
625
|
dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
|
|
546
626
|
/**
|
|
547
627
|
* The designated SS58 prefix of this chain.
|
|
548
|
-
*
|
|
628
|
+
*
|
|
549
629
|
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
|
550
630
|
* that the runtime should know about the prefix in order to make use of it as
|
|
551
631
|
* an identifier of the chain.
|
|
@@ -559,7 +639,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
559
639
|
timestamp: {
|
|
560
640
|
/**
|
|
561
641
|
* The minimum period between blocks.
|
|
562
|
-
*
|
|
642
|
+
*
|
|
563
643
|
* Be aware that this is different to the *expected* period that the block production
|
|
564
644
|
* apparatus provides. Your chosen consensus system will generally work with this to
|
|
565
645
|
* determine a sensible block time. For example, in the Aura pallet it will be double this
|
|
@@ -571,21 +651,21 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
571
651
|
/**
|
|
572
652
|
* A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
|
573
653
|
* `priority`
|
|
574
|
-
*
|
|
654
|
+
*
|
|
575
655
|
* This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
|
|
576
656
|
* added to a tip component in regular `priority` calculations.
|
|
577
657
|
* It means that a `Normal` transaction can front-run a similarly-sized `Operational`
|
|
578
658
|
* extrinsic (with no tip), by including a tip value greater than the virtual tip.
|
|
579
|
-
*
|
|
659
|
+
*
|
|
580
660
|
* ```rust,ignore
|
|
581
661
|
* // For `Normal`
|
|
582
662
|
* let priority = priority_calc(tip);
|
|
583
|
-
*
|
|
663
|
+
*
|
|
584
664
|
* // For `Operational`
|
|
585
665
|
* let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
|
|
586
666
|
* let priority = priority_calc(tip + virtual_tip);
|
|
587
667
|
* ```
|
|
588
|
-
*
|
|
668
|
+
*
|
|
589
669
|
* Note that since we use `final_fee` the multiplier applies also to the regular `tip`
|
|
590
670
|
* sent with the transaction. So, not only does the transaction get a priority bump based
|
|
591
671
|
* on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
|
|
@@ -615,6 +695,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
615
695
|
* The maximum percent of ownership-token circulation that can be bonded.
|
|
616
696
|
**/
|
|
617
697
|
maxArgonotBondedPercentOfCirculation: Percent & AugmentedConst<ApiType>;
|
|
698
|
+
/**
|
|
699
|
+
* Maximum accounts whose queued bond collateral is attempted in one block.
|
|
700
|
+
**/
|
|
701
|
+
maxBondCollateralSettlementsPerBlock: u32 & AugmentedConst<ApiType>;
|
|
702
|
+
/**
|
|
703
|
+
* Owner bond/stake lot count assumed by scan benchmarks and checked by try_state.
|
|
704
|
+
* Includes lots awaiting release. Purchases remain unrestricted and scans are not
|
|
705
|
+
* truncated.
|
|
706
|
+
**/
|
|
707
|
+
maxExpectedBondLotsPerAccount: u32 & AugmentedConst<ApiType>;
|
|
618
708
|
/**
|
|
619
709
|
* The maximum number of bond lots whose release delay may mature in a single frame.
|
|
620
710
|
**/
|
|
@@ -670,11 +760,15 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
670
760
|
upstreamBitcoinTarget: u128 & AugmentedConst<ApiType>;
|
|
671
761
|
upstreamBitcoinWeight: Permill & AugmentedConst<ApiType>;
|
|
672
762
|
upstreamBondTarget: u128 & AugmentedConst<ApiType>;
|
|
763
|
+
/**
|
|
764
|
+
* Maximum share of the full bid pool paid for vault Bitcoin participation.
|
|
765
|
+
**/
|
|
766
|
+
vaultBitcoinRewardPercent: Permill & AugmentedConst<ApiType>;
|
|
673
767
|
};
|
|
674
768
|
txPause: {
|
|
675
769
|
/**
|
|
676
770
|
* Maximum length for pallet name and call name SCALE encoded string names.
|
|
677
|
-
*
|
|
771
|
+
*
|
|
678
772
|
* TOO LONG NAMES WILL BE TREATED AS PAUSED.
|
|
679
773
|
**/
|
|
680
774
|
maxNameLen: u32 & AugmentedConst<ApiType>;
|