@argonprotocol/mainchain 1.5.2-dev.87829152 → 1.5.2-dev.96d18bee
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 +87 -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 +357 -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 +699 -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 +6395 -675
- package/browser/index.js +4758 -987
- 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 +357 -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 +699 -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 +4976 -1229
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +6395 -675
- package/lib/index.d.ts +6395 -675
- package/lib/index.js +4741 -994
- package/lib/index.js.map +1 -1
- package/package.json +8 -7
- package/src/interfaces/augment-api-consts.ts +101 -1
- package/src/interfaces/augment-api-errors.ts +285 -15
- package/src/interfaces/augment-api-events.ts +301 -55
- package/src/interfaces/augment-api-query.ts +457 -59
- package/src/interfaces/augment-api-rpc.ts +0 -1
- package/src/interfaces/augment-api-tx.ts +349 -126
- package/src/interfaces/lookup.ts +1059 -320
- package/src/interfaces/registry.ts +110 -10
- package/src/interfaces/types-lookup.ts +1191 -351
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/mainchain",
|
|
3
|
-
"version": "1.5.2-dev.
|
|
3
|
+
"version": "1.5.2-dev.96d18bee",
|
|
4
4
|
"description": "A client for accessing the Argon mainchain apis.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,16 +14,16 @@
|
|
|
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:contract-declarations": "tsc -p tsconfig.contracts.json",
|
|
17
|
+
"generate:contract-declarations": "yarn workspace @argonprotocol/ethereum-contracts build && tsc -p tsconfig.contracts.json",
|
|
18
18
|
"generate:defs": "polkadot-types-from-defs --endpoint metadata.json --input ./src/interfaces --package @argonprotocol/mainchain/interfaces",
|
|
19
19
|
"generate:meta": "polkadot-types-from-chain --endpoint metadata.json --output ./src/interfaces --package @argonprotocol/mainchain/interfaces --strict",
|
|
20
20
|
"test": "vitest --run --config vitest.config.ts",
|
|
21
|
-
"tsc": "yarn
|
|
21
|
+
"tsc": "yarn generate:contract-declarations && tsup && yarn validate:package",
|
|
22
22
|
"tsup": "yarn tsc",
|
|
23
23
|
"validate:package": "tsx src/scripts/validatePackage.ts",
|
|
24
24
|
"backfill:flexible-bond-metrics": "tsx src/scripts/backfillFlexibleBondMetrics.ts",
|
|
25
25
|
"watch": "yarn generate:contract-declarations && tsup --watch",
|
|
26
|
-
"typecheck": "tsc --noEmit -p tsconfig.test.json"
|
|
26
|
+
"typecheck": "yarn workspace @argonprotocol/ethereum-contracts build && tsc --noEmit -p tsconfig.test.json"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"lib/",
|
|
@@ -51,8 +51,9 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@ethereumjs/block": "^10.1.
|
|
55
|
-
"@ethereumjs/
|
|
54
|
+
"@ethereumjs/block": "^10.1.3",
|
|
55
|
+
"@ethereumjs/common": "^10.1.3",
|
|
56
|
+
"@ethereumjs/mpt": "^10.1.3",
|
|
56
57
|
"@polkadot/api": "^17.0.1",
|
|
57
58
|
"@polkadot/api-base": "^17.0.1",
|
|
58
59
|
"@polkadot/keyring": "^14.0.3",
|
|
@@ -68,7 +69,7 @@
|
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
70
71
|
"@argonprotocol/ethereum-contracts": "workspace:*",
|
|
71
|
-
"@argonprotocol/testing": "1.5.2-dev.
|
|
72
|
+
"@argonprotocol/testing": "1.5.2-dev.96d18bee",
|
|
72
73
|
"@polkadot/typegen": "^17.0.1",
|
|
73
74
|
"@substrate/ss58-registry": "^1.51.0",
|
|
74
75
|
"@types/node": "^20",
|
|
@@ -51,14 +51,26 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
51
51
|
maxReserves: u32 & AugmentedConst<ApiType>;
|
|
52
52
|
};
|
|
53
53
|
bitcoinFissions: {
|
|
54
|
+
/**
|
|
55
|
+
* Fissions per Liquid covered by repayment benchmarks and checked by try-state.
|
|
56
|
+
**/
|
|
57
|
+
maxExpectedFissionsPerLiquid: u32 & AugmentedConst<ApiType>;
|
|
54
58
|
/**
|
|
55
59
|
* Maximum number of active Fissions that may allocate satoshis from one Lock.
|
|
56
60
|
**/
|
|
57
61
|
maxFissionsPerLock: u32 & AugmentedConst<ApiType>;
|
|
62
|
+
/**
|
|
63
|
+
* Maximum older frame records pruned in one block after gateway sync catches up.
|
|
64
|
+
**/
|
|
65
|
+
maxRValueHistoryPrunesPerBlock: u32 & AugmentedConst<ApiType>;
|
|
58
66
|
/**
|
|
59
67
|
* Minimum percentage change required to ratchet a Fission.
|
|
60
68
|
**/
|
|
61
69
|
minimumRatchetPercent: Percent & AugmentedConst<ApiType>;
|
|
70
|
+
/**
|
|
71
|
+
* Number of recent frame high-water marks retained after their source interval has synced.
|
|
72
|
+
**/
|
|
73
|
+
rValueHistoryFrames: u32 & AugmentedConst<ApiType>;
|
|
62
74
|
};
|
|
63
75
|
bitcoinLocks: {
|
|
64
76
|
/**
|
|
@@ -101,7 +113,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
101
113
|
**/
|
|
102
114
|
orphanedUtxoReleaseExpiryFrames: u64 & AugmentedConst<ApiType>;
|
|
103
115
|
/**
|
|
104
|
-
*
|
|
116
|
+
* Initial Bitcoin deposit window, measured in Bitcoin blocks.
|
|
105
117
|
**/
|
|
106
118
|
securitizationHoldBlocks: u64 & AugmentedConst<ApiType>;
|
|
107
119
|
/**
|
|
@@ -181,6 +193,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
181
193
|
* Canonical Ethereum burn-accounting account representing funds moved to Ethereum.
|
|
182
194
|
**/
|
|
183
195
|
ethereumBurnAccount: AccountId32 & AugmentedConst<ApiType>;
|
|
196
|
+
/**
|
|
197
|
+
* Maximum activities in one complete gateway locator storage proof.
|
|
198
|
+
**/
|
|
199
|
+
maxActivitiesPerGatewayProof: u32 & AugmentedConst<ApiType>;
|
|
184
200
|
/**
|
|
185
201
|
* Maximum number of ordered gateway activities that may share one receipt proof.
|
|
186
202
|
**/
|
|
@@ -189,6 +205,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
189
205
|
* Maximum number of members the active Global Issuance Council may carry.
|
|
190
206
|
**/
|
|
191
207
|
maxCouncilMembers: u32 & AugmentedConst<ApiType>;
|
|
208
|
+
/**
|
|
209
|
+
* Maximum aggregate event data carried by one storage-proof locator.
|
|
210
|
+
**/
|
|
211
|
+
maxGatewayActivityLogDataBytes: u32 & AugmentedConst<ApiType>;
|
|
192
212
|
/**
|
|
193
213
|
* Maximum number of non-terminal transfer-out requests tracked for one destination chain.
|
|
194
214
|
**/
|
|
@@ -271,6 +291,8 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
271
291
|
* The increment that bids can be on (for instance, one cent increments)
|
|
272
292
|
**/
|
|
273
293
|
bidIncrements: u128 & AugmentedConst<ApiType>;
|
|
294
|
+
bidRevealBlocks: u32 & AugmentedConst<ApiType>;
|
|
295
|
+
bidSettlementBuffer: u32 & AugmentedConst<ApiType>;
|
|
274
296
|
/**
|
|
275
297
|
* The number of frames a miner operates for
|
|
276
298
|
**/
|
|
@@ -279,6 +301,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
279
301
|
* The initial argonots needed per seat before a prior-day median is available.
|
|
280
302
|
**/
|
|
281
303
|
initialArgonotsPerSeat: u128 & AugmentedConst<ApiType>;
|
|
304
|
+
/**
|
|
305
|
+
* Maximum commitments, including public bids, admitted per block.
|
|
306
|
+
**/
|
|
307
|
+
maxBidsPerBlock: u32 & AugmentedConst<ApiType>;
|
|
282
308
|
/**
|
|
283
309
|
* How many new miners can be in the cohort for each slot. The actual maximum will adjust
|
|
284
310
|
* dynamically
|
|
@@ -428,6 +454,11 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
428
454
|
* Minimum vault securitization required to become operational.
|
|
429
455
|
**/
|
|
430
456
|
operationalMinimumVaultSecuritization: u128 & AugmentedConst<ApiType>;
|
|
457
|
+
/**
|
|
458
|
+
* Required operational registration signing contract. Clients must require version 2
|
|
459
|
+
* before signing; older clients must upgrade rather than reuse ownership-only proofs.
|
|
460
|
+
**/
|
|
461
|
+
registrationProofVersion: u8 & AugmentedConst<ApiType>;
|
|
431
462
|
};
|
|
432
463
|
ownership: {
|
|
433
464
|
/**
|
|
@@ -526,6 +557,61 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
526
557
|
**/
|
|
527
558
|
proxyDepositFactor: u128 & AugmentedConst<ApiType>;
|
|
528
559
|
};
|
|
560
|
+
stabilizerBuys: {
|
|
561
|
+
/**
|
|
562
|
+
* Fraction of total matching basis admitted to rewards, independent of bid rates.
|
|
563
|
+
* Configure 90%; reserve up to that amount, bounded separately by available Treasury
|
|
564
|
+
* funding.
|
|
565
|
+
**/
|
|
566
|
+
auctionInclusionPercent: Percent & AugmentedConst<ApiType>;
|
|
567
|
+
/**
|
|
568
|
+
* Additional burn-funded reward before applying the purchase's auction result.
|
|
569
|
+
**/
|
|
570
|
+
liquidRepaymentRewardPercent: Percent & AugmentedConst<ApiType>;
|
|
571
|
+
/**
|
|
572
|
+
* Maximum account/frame purchase buckets visited in one account payout.
|
|
573
|
+
* This bounds work, without limiting the number of purchases an account can hold.
|
|
574
|
+
**/
|
|
575
|
+
maxFramesPerPayout: u32 & AugmentedConst<ApiType>;
|
|
576
|
+
/**
|
|
577
|
+
* Maximum Liquid repayments attempted across all account payouts in one block.
|
|
578
|
+
**/
|
|
579
|
+
maxLiquidRepaysPerBlock: u32 & AugmentedConst<ApiType>;
|
|
580
|
+
/**
|
|
581
|
+
* Maximum work in each automatic stage per block: ranked bid decisions, then account
|
|
582
|
+
* payout attempts. Failures and empty-auction completion consume work; excess stays
|
|
583
|
+
* queued.
|
|
584
|
+
**/
|
|
585
|
+
maxPayoutsPerBlock: u32 & AugmentedConst<ApiType>;
|
|
586
|
+
/**
|
|
587
|
+
* Positive submissions per account and auction; four allows an initial bid and three
|
|
588
|
+
* revisions.
|
|
589
|
+
**/
|
|
590
|
+
maxPositiveBids: u8 & AugmentedConst<ApiType>;
|
|
591
|
+
/**
|
|
592
|
+
* Maximum observation age at purchase time; also bounds historical lookup reads.
|
|
593
|
+
**/
|
|
594
|
+
maxPriceAgeTicks: u64 & AugmentedConst<ApiType>;
|
|
595
|
+
/**
|
|
596
|
+
* Maximum obsolete price entries removed per block after gateway sync advances.
|
|
597
|
+
**/
|
|
598
|
+
maxPriceHistoryPrunesPerBlock: u32 & AugmentedConst<ApiType>;
|
|
599
|
+
/**
|
|
600
|
+
* Maximum frame visits per repayment attempt; a partial frame visit also reads one tick.
|
|
601
|
+
**/
|
|
602
|
+
maxPriceWindowSteps: u32 & AugmentedConst<ApiType>;
|
|
603
|
+
/**
|
|
604
|
+
* Total mining-frame hold from admission, including the bidding window.
|
|
605
|
+
**/
|
|
606
|
+
purchaseHoldFrames: u64 & AugmentedConst<ApiType>;
|
|
607
|
+
};
|
|
608
|
+
stabilizerPools: {
|
|
609
|
+
/**
|
|
610
|
+
* Opening references retained in financial-day frames, including the checkpoint buffer.
|
|
611
|
+
* Zero disables history. Both production runtimes retain 30 frames plus a 3-frame buffer.
|
|
612
|
+
**/
|
|
613
|
+
maxFramePriceHistoryFrames: u32 & AugmentedConst<ApiType>;
|
|
614
|
+
};
|
|
529
615
|
system: {
|
|
530
616
|
/**
|
|
531
617
|
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
|
@@ -615,6 +701,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
615
701
|
* The maximum percent of ownership-token circulation that can be bonded.
|
|
616
702
|
**/
|
|
617
703
|
maxArgonotBondedPercentOfCirculation: Percent & AugmentedConst<ApiType>;
|
|
704
|
+
/**
|
|
705
|
+
* Maximum accounts whose queued bond collateral is attempted in one block.
|
|
706
|
+
**/
|
|
707
|
+
maxBondCollateralSettlementsPerBlock: u32 & AugmentedConst<ApiType>;
|
|
708
|
+
/**
|
|
709
|
+
* Owner bond/stake lot count assumed by scan benchmarks and checked by try_state.
|
|
710
|
+
* Includes lots awaiting release. Purchases remain unrestricted and scans are not
|
|
711
|
+
* truncated.
|
|
712
|
+
**/
|
|
713
|
+
maxExpectedBondLotsPerAccount: u32 & AugmentedConst<ApiType>;
|
|
618
714
|
/**
|
|
619
715
|
* The maximum number of bond lots whose release delay may mature in a single frame.
|
|
620
716
|
**/
|
|
@@ -670,6 +766,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
670
766
|
upstreamBitcoinTarget: u128 & AugmentedConst<ApiType>;
|
|
671
767
|
upstreamBitcoinWeight: Permill & AugmentedConst<ApiType>;
|
|
672
768
|
upstreamBondTarget: u128 & AugmentedConst<ApiType>;
|
|
769
|
+
/**
|
|
770
|
+
* Maximum share of the full bid pool paid for vault Bitcoin participation.
|
|
771
|
+
**/
|
|
772
|
+
vaultBitcoinRewardPercent: Permill & AugmentedConst<ApiType>;
|
|
673
773
|
};
|
|
674
774
|
txPause: {
|
|
675
775
|
/**
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
|
|
4
3
|
// import type lookup before we augment - in some environments
|
|
5
4
|
// this is required to allow for ambient/previous definitions
|
|
@@ -11,6 +10,96 @@ export type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>
|
|
|
11
10
|
|
|
12
11
|
declare module '@polkadot/api-base/types/errors' {
|
|
13
12
|
interface AugmentedErrors<ApiType extends ApiTypes> {
|
|
13
|
+
accountSecurity: {
|
|
14
|
+
/**
|
|
15
|
+
* Initial enrollment cannot overwrite an existing policy.
|
|
16
|
+
**/
|
|
17
|
+
AlreadyRegistered: AugmentedError<ApiType>;
|
|
18
|
+
/**
|
|
19
|
+
* The main account or a required policy/recovery/acceptance signature is missing.
|
|
20
|
+
**/
|
|
21
|
+
ApprovalRequired: AugmentedError<ApiType>;
|
|
22
|
+
/**
|
|
23
|
+
* Nested depth, call count, or a native multisig's signatory count exceeds its limit.
|
|
24
|
+
**/
|
|
25
|
+
CallLimitExceeded: AugmentedError<ApiType>;
|
|
26
|
+
/**
|
|
27
|
+
* Authorization nonces cannot wrap or be reused.
|
|
28
|
+
**/
|
|
29
|
+
CounterExhausted: AugmentedError<ApiType>;
|
|
30
|
+
/**
|
|
31
|
+
* One account supplied more than one proof.
|
|
32
|
+
**/
|
|
33
|
+
DuplicateApproval: AugmentedError<ApiType>;
|
|
34
|
+
/**
|
|
35
|
+
* Linking would discard a participant's policy or backup authority.
|
|
36
|
+
**/
|
|
37
|
+
IncompatibleAccountProtection: AugmentedError<ApiType>;
|
|
38
|
+
/**
|
|
39
|
+
* Only recovery-origin management may be submitted through native wrappers.
|
|
40
|
+
**/
|
|
41
|
+
IndirectAuthorization: AugmentedError<ApiType>;
|
|
42
|
+
/**
|
|
43
|
+
* The approval expired or exceeds the allowed future lifetime.
|
|
44
|
+
**/
|
|
45
|
+
InvalidExpiry: AugmentedError<ApiType>;
|
|
46
|
+
/**
|
|
47
|
+
* The supplied nonce is not the group's next unused authorization nonce.
|
|
48
|
+
**/
|
|
49
|
+
InvalidNonce: AugmentedError<ApiType>;
|
|
50
|
+
/**
|
|
51
|
+
* A threshold is invalid or signers are empty, duplicated or not sorted.
|
|
52
|
+
**/
|
|
53
|
+
InvalidPolicy: AugmentedError<ApiType>;
|
|
54
|
+
/**
|
|
55
|
+
* A proxy origin or transfer destination could not be resolved to an account.
|
|
56
|
+
**/
|
|
57
|
+
InvalidProxy: AugmentedError<ApiType>;
|
|
58
|
+
/**
|
|
59
|
+
* A proof does not verify against its account and the exact canonical call payload.
|
|
60
|
+
**/
|
|
61
|
+
InvalidSignature: AugmentedError<ApiType>;
|
|
62
|
+
/**
|
|
63
|
+
* Native wallet signing context could not be constructed for this security call.
|
|
64
|
+
**/
|
|
65
|
+
InvalidSigningPayload: AugmentedError<ApiType>;
|
|
66
|
+
/**
|
|
67
|
+
* Signing roles overlap the protected group or recovery overlaps a policy signer.
|
|
68
|
+
**/
|
|
69
|
+
KeysNotIndependent: AugmentedError<ApiType>;
|
|
70
|
+
/**
|
|
71
|
+
* Only a group's default account may manage its configuration.
|
|
72
|
+
**/
|
|
73
|
+
NotDefaultAccount: AugmentedError<ApiType>;
|
|
74
|
+
/**
|
|
75
|
+
* The default account has not enrolled protection.
|
|
76
|
+
**/
|
|
77
|
+
NotRegistered: AugmentedError<ApiType>;
|
|
78
|
+
/**
|
|
79
|
+
* A delayed replacement is already pending; cancel it before proposing another.
|
|
80
|
+
**/
|
|
81
|
+
PolicyUpdatePending: AugmentedError<ApiType>;
|
|
82
|
+
/**
|
|
83
|
+
* The current tick has not reached the pending replacement's execution tick.
|
|
84
|
+
**/
|
|
85
|
+
RecoveryDelayActive: AugmentedError<ApiType>;
|
|
86
|
+
/**
|
|
87
|
+
* The account group or current policy differs from the signed authorization.
|
|
88
|
+
**/
|
|
89
|
+
StalePolicy: AugmentedError<ApiType>;
|
|
90
|
+
/**
|
|
91
|
+
* Adding the configured delay to the current tick would overflow.
|
|
92
|
+
**/
|
|
93
|
+
TickOverflow: AugmentedError<ApiType>;
|
|
94
|
+
/**
|
|
95
|
+
* No pending replacement exists with this proposal's consumed authorization nonce.
|
|
96
|
+
**/
|
|
97
|
+
UnknownPolicyUpdate: AugmentedError<ApiType>;
|
|
98
|
+
/**
|
|
99
|
+
* Pre-dispatch state cannot safely authorize the nested call combination.
|
|
100
|
+
**/
|
|
101
|
+
UnsupportedComposition: AugmentedError<ApiType>;
|
|
102
|
+
};
|
|
14
103
|
balances: {
|
|
15
104
|
/**
|
|
16
105
|
* Beneficiary account must pre-exist.
|
|
@@ -102,6 +191,26 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
102
191
|
* A source Lock's securitization does not cover the requested allocation and liability.
|
|
103
192
|
**/
|
|
104
193
|
InsufficientSecuritization: AugmentedError<ApiType>;
|
|
194
|
+
/**
|
|
195
|
+
* The fee coupon is invalid, expired, or already consumed.
|
|
196
|
+
**/
|
|
197
|
+
InvalidFeeCoupon: AugmentedError<ApiType>;
|
|
198
|
+
/**
|
|
199
|
+
* Zero is reserved for the absence of a Liquid and cannot identify a new allocation.
|
|
200
|
+
**/
|
|
201
|
+
InvalidLiquidId: AugmentedError<ApiType>;
|
|
202
|
+
/**
|
|
203
|
+
* Fissions can join an existing Liquid only during its original creation tick.
|
|
204
|
+
**/
|
|
205
|
+
LiquidCreationWindowClosed: AugmentedError<ApiType>;
|
|
206
|
+
/**
|
|
207
|
+
* This owner has no active Fissions in the selected Liquid.
|
|
208
|
+
**/
|
|
209
|
+
LiquidNotFound: AugmentedError<ApiType>;
|
|
210
|
+
/**
|
|
211
|
+
* This owner's Liquid has unsettled repayment purchases, so it cannot close or ratchet.
|
|
212
|
+
**/
|
|
213
|
+
LiquidRepaymentPending: AugmentedError<ApiType>;
|
|
105
214
|
/**
|
|
106
215
|
* The requested source Lock does not exist.
|
|
107
216
|
**/
|
|
@@ -138,6 +247,22 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
138
247
|
* The Fission's ratchet counter cannot be incremented.
|
|
139
248
|
**/
|
|
140
249
|
RatchetNumberOverflow: AugmentedError<ApiType>;
|
|
250
|
+
/**
|
|
251
|
+
* The actual burn exceeds the remaining purchase budget.
|
|
252
|
+
**/
|
|
253
|
+
RepaymentBudgetExceeded: AugmentedError<ApiType>;
|
|
254
|
+
/**
|
|
255
|
+
* The repayment requests more satoshis than the Fission currently allocates.
|
|
256
|
+
**/
|
|
257
|
+
RepaymentExceedsFission: AugmentedError<ApiType>;
|
|
258
|
+
/**
|
|
259
|
+
* A repayment must return at least one satoshi to its source Lock.
|
|
260
|
+
**/
|
|
261
|
+
RepaymentHasNoSatoshis: AugmentedError<ApiType>;
|
|
262
|
+
/**
|
|
263
|
+
* The Vault could not upgrade the guarantee assigned to this Fission.
|
|
264
|
+
**/
|
|
265
|
+
ResecuritizationFailed: AugmentedError<ApiType>;
|
|
141
266
|
/**
|
|
142
267
|
* The source Lock already has the maximum number of active Fissions.
|
|
143
268
|
**/
|
|
@@ -221,10 +346,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
221
346
|
* The requested Lock securitization has fewer satoshis than its active Fissions.
|
|
222
347
|
**/
|
|
223
348
|
InsufficientSatoshisForFissions: AugmentedError<ApiType>;
|
|
224
|
-
/**
|
|
225
|
-
* The requested Lock securitization does not cover its active Fission liabilities.
|
|
226
|
-
**/
|
|
227
|
-
InsufficientSecuritizationForFissions: AugmentedError<ApiType>;
|
|
228
349
|
InsufficientVaultFunds: AugmentedError<ApiType>;
|
|
229
350
|
/**
|
|
230
351
|
* The external destination amount must be nonzero and fit with the network fee.
|
|
@@ -247,7 +368,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
247
368
|
**/
|
|
248
369
|
LockHasActiveFissions: AugmentedError<ApiType>;
|
|
249
370
|
/**
|
|
250
|
-
* A Lock
|
|
371
|
+
* A Lock's guarantee cannot be changed while release is pending.
|
|
251
372
|
**/
|
|
252
373
|
LockInProcessOfRelease: AugmentedError<ApiType>;
|
|
253
374
|
/**
|
|
@@ -279,13 +400,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
279
400
|
**/
|
|
280
401
|
NoBitcoinPricesAvailable: AugmentedError<ApiType>;
|
|
281
402
|
/**
|
|
282
|
-
* The
|
|
403
|
+
* The requested securitization matches the Lock's current securitization.
|
|
283
404
|
**/
|
|
284
|
-
|
|
405
|
+
NoGuaranteeChange: AugmentedError<ApiType>;
|
|
285
406
|
/**
|
|
286
|
-
* The
|
|
407
|
+
* The user does not have permissions to perform this action
|
|
287
408
|
**/
|
|
288
|
-
|
|
409
|
+
NoPermissions: AugmentedError<ApiType>;
|
|
289
410
|
/**
|
|
290
411
|
* No Vault public keys are available
|
|
291
412
|
**/
|
|
@@ -610,7 +731,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
610
731
|
**/
|
|
611
732
|
InvalidTransferCollateralUpdate: AugmentedError<ApiType>;
|
|
612
733
|
/**
|
|
613
|
-
* The transfer-out amount
|
|
734
|
+
* The transfer-out amount is below the selected currency's minimum account balance.
|
|
614
735
|
**/
|
|
615
736
|
InvalidTransferOutAmount: AugmentedError<ApiType>;
|
|
616
737
|
/**
|
|
@@ -800,14 +921,16 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
800
921
|
ExecutionHeaderAnchorNotHistorical: AugmentedError<ApiType>;
|
|
801
922
|
ExpectedFinalizedHeaderNotStored: AugmentedError<ApiType>;
|
|
802
923
|
ForkDataHashTreeRootFailed: AugmentedError<ApiType>;
|
|
924
|
+
GloasForkAlreadyActive: AugmentedError<ApiType>;
|
|
803
925
|
Halted: AugmentedError<ApiType>;
|
|
804
926
|
HeaderHashTreeRootFailed: AugmentedError<ApiType>;
|
|
805
927
|
InvalidBackfillHeaderRoot: AugmentedError<ApiType>;
|
|
806
928
|
InvalidExecutionHeaderProof: AugmentedError<ApiType>;
|
|
807
929
|
/**
|
|
808
|
-
*
|
|
930
|
+
* Reserved error index; finalized updates are now bounded by authenticated committees.
|
|
809
931
|
**/
|
|
810
932
|
InvalidFinalizedHeaderGap: AugmentedError<ApiType>;
|
|
933
|
+
InvalidForkSchedule: AugmentedError<ApiType>;
|
|
811
934
|
InvalidHeaderMerkleProof: AugmentedError<ApiType>;
|
|
812
935
|
InvalidSyncCommitteeMerkleProof: AugmentedError<ApiType>;
|
|
813
936
|
/**
|
|
@@ -899,7 +1022,15 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
899
1022
|
};
|
|
900
1023
|
miningSlot: {
|
|
901
1024
|
/**
|
|
902
|
-
* The
|
|
1025
|
+
* The bid batch cannot settle until its reveal window has ended.
|
|
1026
|
+
**/
|
|
1027
|
+
BatchNotMature: AugmentedError<ApiType>;
|
|
1028
|
+
/**
|
|
1029
|
+
* The pending bid's maximum has already been revealed.
|
|
1030
|
+
**/
|
|
1031
|
+
BidAlreadyRevealed: AugmentedError<ApiType>;
|
|
1032
|
+
/**
|
|
1033
|
+
* Paid bids cannot decrease; public-only replacements must exceed the standing maximum.
|
|
903
1034
|
**/
|
|
904
1035
|
BidCannotBeReduced: AugmentedError<ApiType>;
|
|
905
1036
|
/**
|
|
@@ -914,6 +1045,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
914
1045
|
* An account can only have one active registration
|
|
915
1046
|
**/
|
|
916
1047
|
CannotRegisterOverlappingSessions: AugmentedError<ApiType>;
|
|
1048
|
+
/**
|
|
1049
|
+
* The miner already has a submission awaiting clearing or maximum disclosure.
|
|
1050
|
+
**/
|
|
1051
|
+
DuplicateBidCommitment: AugmentedError<ApiType>;
|
|
917
1052
|
/**
|
|
918
1053
|
* The funding account does not have enough funds to cover the bid
|
|
919
1054
|
**/
|
|
@@ -926,14 +1061,46 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
926
1061
|
* Bids must be in allowed increments
|
|
927
1062
|
**/
|
|
928
1063
|
InvalidBidAmount: AugmentedError<ApiType>;
|
|
1064
|
+
/**
|
|
1065
|
+
* The revealed maximum and salt do not match the pending bid's hash.
|
|
1066
|
+
**/
|
|
1067
|
+
InvalidBidCommitment: AugmentedError<ApiType>;
|
|
1068
|
+
/**
|
|
1069
|
+
* The revealed maximum is lower than the public bid.
|
|
1070
|
+
**/
|
|
1071
|
+
InvalidBidRange: AugmentedError<ApiType>;
|
|
1072
|
+
/**
|
|
1073
|
+
* A maximum must be revealed in a block after submission and within the reveal window.
|
|
1074
|
+
**/
|
|
1075
|
+
InvalidRevealBlock: AugmentedError<ApiType>;
|
|
1076
|
+
/**
|
|
1077
|
+
* The miner has no pending bid with a committed maximum to reveal.
|
|
1078
|
+
**/
|
|
1079
|
+
MissingBidCommitment: AugmentedError<ApiType>;
|
|
1080
|
+
/**
|
|
1081
|
+
* The miner has no settled bid with a standing maximum in the upcoming auction.
|
|
1082
|
+
**/
|
|
1083
|
+
MissingStandingBid: AugmentedError<ApiType>;
|
|
929
1084
|
/**
|
|
930
1085
|
* Mining slot bidding currently requires a prior operational-account upgrade.
|
|
931
1086
|
**/
|
|
932
1087
|
OperationalAccountRegistrationRequired: AugmentedError<ApiType>;
|
|
1088
|
+
/**
|
|
1089
|
+
* Bidding with a committed maximum is not enabled for the current auction frame.
|
|
1090
|
+
**/
|
|
1091
|
+
RangeAuctionNotActive: AugmentedError<ApiType>;
|
|
933
1092
|
/**
|
|
934
1093
|
* Bidding for the next cohort has closed
|
|
935
1094
|
**/
|
|
936
1095
|
SlotNotTakingBids: AugmentedError<ApiType>;
|
|
1096
|
+
/**
|
|
1097
|
+
* This block has reached the maximum number of pending bid submissions.
|
|
1098
|
+
**/
|
|
1099
|
+
TooManyBidCommitments: AugmentedError<ApiType>;
|
|
1100
|
+
/**
|
|
1101
|
+
* The disclosure queue already contains every commitment allowed in the reveal window.
|
|
1102
|
+
**/
|
|
1103
|
+
TooManyBidReveals: AugmentedError<ApiType>;
|
|
937
1104
|
/**
|
|
938
1105
|
* The cohort registration overflowed
|
|
939
1106
|
**/
|
|
@@ -942,6 +1109,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
942
1109
|
* The argonots on hold cannot be released
|
|
943
1110
|
**/
|
|
944
1111
|
UnrecoverableHold: AugmentedError<ApiType>;
|
|
1112
|
+
/**
|
|
1113
|
+
* The bid targets a different auction frame than the current one.
|
|
1114
|
+
**/
|
|
1115
|
+
WrongBidFrame: AugmentedError<ApiType>;
|
|
945
1116
|
};
|
|
946
1117
|
mint: {
|
|
947
1118
|
TooManyPendingMints: AugmentedError<ApiType>;
|
|
@@ -1135,6 +1306,11 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1135
1306
|
* alphanumeric.
|
|
1136
1307
|
**/
|
|
1137
1308
|
InvalidName: AugmentedError<ApiType>;
|
|
1309
|
+
/**
|
|
1310
|
+
* The operational signature does not authorize this registration on this chain.
|
|
1311
|
+
* Clients using ownership-only proofs must upgrade to registration proof version 2.
|
|
1312
|
+
**/
|
|
1313
|
+
InvalidRegistrationProof: AugmentedError<ApiType>;
|
|
1138
1314
|
/**
|
|
1139
1315
|
* The caller is not one of the accounts included in the registration.
|
|
1140
1316
|
**/
|
|
@@ -1243,6 +1419,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1243
1419
|
* Ethereum prices must be non-zero and correspond to the submitted price-index tick.
|
|
1244
1420
|
**/
|
|
1245
1421
|
InvalidEthereumPrices: AugmentedError<ApiType>;
|
|
1422
|
+
/**
|
|
1423
|
+
* A supplied USDC observation must be positive and no later than the current tick.
|
|
1424
|
+
**/
|
|
1425
|
+
InvalidUsdcPrice: AugmentedError<ApiType>;
|
|
1246
1426
|
/**
|
|
1247
1427
|
* Change in argon price is too large
|
|
1248
1428
|
**/
|
|
@@ -1294,6 +1474,96 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1294
1474
|
**/
|
|
1295
1475
|
Unproxyable: AugmentedError<ApiType>;
|
|
1296
1476
|
};
|
|
1477
|
+
stabilizerBuys: {
|
|
1478
|
+
/**
|
|
1479
|
+
* No auction exists for the supplied admission frame.
|
|
1480
|
+
**/
|
|
1481
|
+
AuctionNotFound: AugmentedError<ApiType>;
|
|
1482
|
+
/**
|
|
1483
|
+
* Allocation was requested before the auction's Treasury budget was finalized.
|
|
1484
|
+
**/
|
|
1485
|
+
AuctionNotReady: AugmentedError<ApiType>;
|
|
1486
|
+
/**
|
|
1487
|
+
* The call is outside F+1 or the auction no longer accepts bids.
|
|
1488
|
+
**/
|
|
1489
|
+
BiddingClosed: AugmentedError<ApiType>;
|
|
1490
|
+
/**
|
|
1491
|
+
* Positive submissions are exhausted; zero may still opt out.
|
|
1492
|
+
**/
|
|
1493
|
+
BidLimitReached: AugmentedError<ApiType>;
|
|
1494
|
+
/**
|
|
1495
|
+
* A positive rate produces zero whole microgons against the matching basis.
|
|
1496
|
+
**/
|
|
1497
|
+
BidRoundsToZero: AugmentedError<ApiType>;
|
|
1498
|
+
/**
|
|
1499
|
+
* A positive bid repeats the account's current rate.
|
|
1500
|
+
**/
|
|
1501
|
+
BidUnchanged: AugmentedError<ApiType>;
|
|
1502
|
+
/**
|
|
1503
|
+
* The account has no purchase bucket for this auction.
|
|
1504
|
+
**/
|
|
1505
|
+
EntryNotFound: AugmentedError<ApiType>;
|
|
1506
|
+
/**
|
|
1507
|
+
* A repayment hold has not matured, its price window is incomplete, or its auction
|
|
1508
|
+
* result is not available yet.
|
|
1509
|
+
**/
|
|
1510
|
+
PayoutNotReady: AugmentedError<ApiType>;
|
|
1511
|
+
};
|
|
1512
|
+
stabilizerPools: {
|
|
1513
|
+
/**
|
|
1514
|
+
* The three account witnesses do not contain identical execution-block proofs.
|
|
1515
|
+
**/
|
|
1516
|
+
InconsistentProofBlocks: AugmentedError<ApiType>;
|
|
1517
|
+
/**
|
|
1518
|
+
* A deployment address is zero or reused, or the pool key fails ordering or encoding
|
|
1519
|
+
* bounds.
|
|
1520
|
+
**/
|
|
1521
|
+
InvalidPool: AugmentedError<ApiType>;
|
|
1522
|
+
/**
|
|
1523
|
+
* The packed PoolId mismatches, ticks are invalid/misaligned, or liquidity exceeds
|
|
1524
|
+
* uint128.
|
|
1525
|
+
**/
|
|
1526
|
+
InvalidPosition: AugmentedError<ApiType>;
|
|
1527
|
+
/**
|
|
1528
|
+
* The Ethereum verifier is unavailable, or header ancestry/account/storage authentication
|
|
1529
|
+
* fails.
|
|
1530
|
+
**/
|
|
1531
|
+
InvalidProof: AugmentedError<ApiType>;
|
|
1532
|
+
/**
|
|
1533
|
+
* A witness has the wrong slot count or slot addresses for the requested NFT position.
|
|
1534
|
+
**/
|
|
1535
|
+
InvalidStorageSlots: AugmentedError<ApiType>;
|
|
1536
|
+
/**
|
|
1537
|
+
* The NFT's subscriber or subscription flag is invalid, or its permanent revision is
|
|
1538
|
+
* zero.
|
|
1539
|
+
**/
|
|
1540
|
+
InvalidSubscription: AugmentedError<ApiType>;
|
|
1541
|
+
/**
|
|
1542
|
+
* The signer does not match the beneficiary encoded in the subscription witness.
|
|
1543
|
+
**/
|
|
1544
|
+
NotBeneficiary: AugmentedError<ApiType>;
|
|
1545
|
+
/**
|
|
1546
|
+
* This PoolManager/PoolId pair already has an immutable registration.
|
|
1547
|
+
**/
|
|
1548
|
+
PoolAlreadyRegistered: AugmentedError<ApiType>;
|
|
1549
|
+
/**
|
|
1550
|
+
* No approved configuration exists for the supplied PoolManager/PoolId pair.
|
|
1551
|
+
**/
|
|
1552
|
+
PoolNotRegistered: AugmentedError<ApiType>;
|
|
1553
|
+
/**
|
|
1554
|
+
* Beneficiary, subscriber, pool, tick range, or liquidity changed without a revision
|
|
1555
|
+
* increase.
|
|
1556
|
+
**/
|
|
1557
|
+
PositionChangedWithoutRevision: AugmentedError<ApiType>;
|
|
1558
|
+
/**
|
|
1559
|
+
* The subscriber revision is lower than the NFT's last accepted revision.
|
|
1560
|
+
**/
|
|
1561
|
+
RevisionRegressed: AugmentedError<ApiType>;
|
|
1562
|
+
/**
|
|
1563
|
+
* Ethereum block height or time does not strictly advance past the stored checkpoint.
|
|
1564
|
+
**/
|
|
1565
|
+
StaleCheckpoint: AugmentedError<ApiType>;
|
|
1566
|
+
};
|
|
1297
1567
|
sudo: {
|
|
1298
1568
|
/**
|
|
1299
1569
|
* Sender must be the Sudo account.
|
|
@@ -1345,8 +1615,8 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1345
1615
|
ticks: {};
|
|
1346
1616
|
treasury: {
|
|
1347
1617
|
/**
|
|
1348
|
-
*
|
|
1349
|
-
*
|
|
1618
|
+
* A reservation or liquidation would leave Treasury backing uncovered, or queued
|
|
1619
|
+
* settlement exceeds the account's remaining encumbrance.
|
|
1350
1620
|
**/
|
|
1351
1621
|
ActiveBondAmountBelowEncumberedBacking: AugmentedError<ApiType>;
|
|
1352
1622
|
/**
|