@argonprotocol/mainchain 1.5.2-dev.247195a5 → 1.5.2-dev.4f5b015c
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/browser/artifacts/contracts/ArgonBuyAndTransfer.sol/ArgonBuyAndTransfer.json +185 -51
- package/browser/artifacts/contracts/ArgonToken.sol/ArgonToken.json +2 -2
- package/browser/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +2 -2
- package/browser/artifacts/contracts/MintingGateway.sol/MintingGateway.json +61 -23
- package/browser/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +1 -1
- package/browser/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +1 -1
- package/browser/artifacts/contracts/StabilizationPoolHook.sol/StabilizationPoolHook.json +6 -6
- package/browser/artifacts/contracts/StabilizationPoolSubscriber.sol/StabilizationPoolSubscriber.json +2 -2
- package/browser/artifacts/contracts/UniswapV4PriceQuoter.sol/UniswapV4PriceQuoter.json +1 -1
- package/browser/index.d.ts +1137 -491
- package/browser/index.js +334 -94
- package/browser/index.js.map +1 -1
- package/lib/artifacts/contracts/ArgonBuyAndTransfer.sol/ArgonBuyAndTransfer.json +185 -51
- package/lib/artifacts/contracts/ArgonToken.sol/ArgonToken.json +2 -2
- package/lib/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +2 -2
- package/lib/artifacts/contracts/MintingGateway.sol/MintingGateway.json +61 -23
- package/lib/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +1 -1
- package/lib/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +1 -1
- package/lib/artifacts/contracts/StabilizationPoolHook.sol/StabilizationPoolHook.json +6 -6
- package/lib/artifacts/contracts/StabilizationPoolSubscriber.sol/StabilizationPoolSubscriber.json +2 -2
- package/lib/artifacts/contracts/UniswapV4PriceQuoter.sol/UniswapV4PriceQuoter.json +1 -1
- package/lib/index.cjs +333 -93
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +1137 -491
- package/lib/index.d.ts +1137 -491
- package/lib/index.js +338 -98
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/interfaces/augment-api-consts.ts +44 -13
- package/src/interfaces/augment-api-errors.ts +45 -7
- package/src/interfaces/augment-api-events.ts +145 -56
- package/src/interfaces/augment-api-query.ts +184 -85
- package/src/interfaces/augment-api-tx.ts +34 -34
- package/src/interfaces/lookup.ts +431 -320
- package/src/interfaces/registry.ts +22 -10
- package/src/interfaces/types-lookup.ts +461 -327
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.4f5b015c",
|
|
4
4
|
"description": "A client for accessing the Argon mainchain apis.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@argonprotocol/ethereum-contracts": "workspace:*",
|
|
72
|
-
"@argonprotocol/testing": "1.5.2-dev.
|
|
72
|
+
"@argonprotocol/testing": "1.5.2-dev.4f5b015c",
|
|
73
73
|
"@polkadot/typegen": "^17.0.1",
|
|
74
74
|
"@substrate/ss58-registry": "^1.51.0",
|
|
75
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
|
/**
|
|
@@ -442,6 +454,11 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
442
454
|
* Minimum vault securitization required to become operational.
|
|
443
455
|
**/
|
|
444
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>;
|
|
445
462
|
};
|
|
446
463
|
ownership: {
|
|
447
464
|
/**
|
|
@@ -548,13 +565,18 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
548
565
|
**/
|
|
549
566
|
auctionInclusionPercent: Percent & AugmentedConst<ApiType>;
|
|
550
567
|
/**
|
|
551
|
-
*
|
|
568
|
+
* Additional burn-funded reward before applying the purchase's auction result.
|
|
552
569
|
**/
|
|
553
|
-
|
|
570
|
+
liquidRepaymentRewardPercent: Percent & AugmentedConst<ApiType>;
|
|
554
571
|
/**
|
|
555
|
-
* Maximum
|
|
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.
|
|
556
578
|
**/
|
|
557
|
-
|
|
579
|
+
maxLiquidRepaysPerBlock: u32 & AugmentedConst<ApiType>;
|
|
558
580
|
/**
|
|
559
581
|
* Maximum work in each automatic stage per block: ranked bid decisions, then account
|
|
560
582
|
* payout attempts. Failures and empty-auction completion consume work; excess stays
|
|
@@ -567,22 +589,21 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
567
589
|
**/
|
|
568
590
|
maxPositiveBids: u8 & AugmentedConst<ApiType>;
|
|
569
591
|
/**
|
|
570
|
-
* Maximum
|
|
571
|
-
* This bounds work, without limiting the number of purchases an account can hold.
|
|
592
|
+
* Maximum observation age at purchase time; also bounds historical lookup reads.
|
|
572
593
|
**/
|
|
573
|
-
|
|
594
|
+
maxPriceAgeTicks: u64 & AugmentedConst<ApiType>;
|
|
574
595
|
/**
|
|
575
|
-
*
|
|
596
|
+
* Maximum obsolete price entries removed per block after gateway sync advances.
|
|
576
597
|
**/
|
|
577
|
-
|
|
598
|
+
maxPriceHistoryPrunesPerBlock: u32 & AugmentedConst<ApiType>;
|
|
578
599
|
/**
|
|
579
|
-
*
|
|
600
|
+
* Maximum frame visits per repayment attempt; a partial frame visit also reads one tick.
|
|
580
601
|
**/
|
|
581
|
-
|
|
602
|
+
maxPriceWindowSteps: u32 & AugmentedConst<ApiType>;
|
|
582
603
|
/**
|
|
583
|
-
*
|
|
604
|
+
* Total mining-frame hold from admission, including the bidding window.
|
|
584
605
|
**/
|
|
585
|
-
|
|
606
|
+
purchaseHoldFrames: u64 & AugmentedConst<ApiType>;
|
|
586
607
|
};
|
|
587
608
|
stabilizerPools: {
|
|
588
609
|
/**
|
|
@@ -680,6 +701,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
680
701
|
* The maximum percent of ownership-token circulation that can be bonded.
|
|
681
702
|
**/
|
|
682
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>;
|
|
683
714
|
/**
|
|
684
715
|
* The maximum number of bond lots whose release delay may mature in a single frame.
|
|
685
716
|
**/
|
|
@@ -105,6 +105,22 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
105
105
|
* The fee coupon is invalid, expired, or already consumed.
|
|
106
106
|
**/
|
|
107
107
|
InvalidFeeCoupon: AugmentedError<ApiType>;
|
|
108
|
+
/**
|
|
109
|
+
* Zero is reserved for the absence of a Liquid and cannot identify a new allocation.
|
|
110
|
+
**/
|
|
111
|
+
InvalidLiquidId: AugmentedError<ApiType>;
|
|
112
|
+
/**
|
|
113
|
+
* Fissions can join an existing Liquid only during its original creation tick.
|
|
114
|
+
**/
|
|
115
|
+
LiquidCreationWindowClosed: AugmentedError<ApiType>;
|
|
116
|
+
/**
|
|
117
|
+
* This owner has no active Fissions in the selected Liquid.
|
|
118
|
+
**/
|
|
119
|
+
LiquidNotFound: AugmentedError<ApiType>;
|
|
120
|
+
/**
|
|
121
|
+
* This owner's Liquid has unsettled repayment purchases, so it cannot close or ratchet.
|
|
122
|
+
**/
|
|
123
|
+
LiquidRepaymentPending: AugmentedError<ApiType>;
|
|
108
124
|
/**
|
|
109
125
|
* The requested source Lock does not exist.
|
|
110
126
|
**/
|
|
@@ -141,6 +157,18 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
141
157
|
* The Fission's ratchet counter cannot be incremented.
|
|
142
158
|
**/
|
|
143
159
|
RatchetNumberOverflow: AugmentedError<ApiType>;
|
|
160
|
+
/**
|
|
161
|
+
* The actual burn exceeds the remaining purchase budget.
|
|
162
|
+
**/
|
|
163
|
+
RepaymentBudgetExceeded: AugmentedError<ApiType>;
|
|
164
|
+
/**
|
|
165
|
+
* The repayment requests more satoshis than the Fission currently allocates.
|
|
166
|
+
**/
|
|
167
|
+
RepaymentExceedsFission: AugmentedError<ApiType>;
|
|
168
|
+
/**
|
|
169
|
+
* A repayment must return at least one satoshi to its source Lock.
|
|
170
|
+
**/
|
|
171
|
+
RepaymentHasNoSatoshis: AugmentedError<ApiType>;
|
|
144
172
|
/**
|
|
145
173
|
* The Vault could not upgrade the guarantee assigned to this Fission.
|
|
146
174
|
**/
|
|
@@ -613,7 +641,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
613
641
|
**/
|
|
614
642
|
InvalidTransferCollateralUpdate: AugmentedError<ApiType>;
|
|
615
643
|
/**
|
|
616
|
-
* The transfer-out amount
|
|
644
|
+
* The transfer-out amount is below the selected currency's minimum account balance.
|
|
617
645
|
**/
|
|
618
646
|
InvalidTransferOutAmount: AugmentedError<ApiType>;
|
|
619
647
|
/**
|
|
@@ -809,7 +837,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
809
837
|
InvalidBackfillHeaderRoot: AugmentedError<ApiType>;
|
|
810
838
|
InvalidExecutionHeaderProof: AugmentedError<ApiType>;
|
|
811
839
|
/**
|
|
812
|
-
*
|
|
840
|
+
* Reserved error index; finalized updates are now bounded by authenticated committees.
|
|
813
841
|
**/
|
|
814
842
|
InvalidFinalizedHeaderGap: AugmentedError<ApiType>;
|
|
815
843
|
InvalidForkSchedule: AugmentedError<ApiType>;
|
|
@@ -912,7 +940,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
912
940
|
**/
|
|
913
941
|
BidAlreadyRevealed: AugmentedError<ApiType>;
|
|
914
942
|
/**
|
|
915
|
-
*
|
|
943
|
+
* Paid bids cannot decrease; public-only replacements must exceed the standing maximum.
|
|
916
944
|
**/
|
|
917
945
|
BidCannotBeReduced: AugmentedError<ApiType>;
|
|
918
946
|
/**
|
|
@@ -959,6 +987,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
959
987
|
* The miner has no pending bid with a committed maximum to reveal.
|
|
960
988
|
**/
|
|
961
989
|
MissingBidCommitment: AugmentedError<ApiType>;
|
|
990
|
+
/**
|
|
991
|
+
* The miner has no settled bid with a standing maximum in the upcoming auction.
|
|
992
|
+
**/
|
|
993
|
+
MissingStandingBid: AugmentedError<ApiType>;
|
|
962
994
|
/**
|
|
963
995
|
* Mining slot bidding currently requires a prior operational-account upgrade.
|
|
964
996
|
**/
|
|
@@ -1180,6 +1212,11 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1180
1212
|
* alphanumeric.
|
|
1181
1213
|
**/
|
|
1182
1214
|
InvalidName: AugmentedError<ApiType>;
|
|
1215
|
+
/**
|
|
1216
|
+
* The operational signature does not authorize this registration on this chain.
|
|
1217
|
+
* Clients using ownership-only proofs must upgrade to registration proof version 2.
|
|
1218
|
+
**/
|
|
1219
|
+
InvalidRegistrationProof: AugmentedError<ApiType>;
|
|
1183
1220
|
/**
|
|
1184
1221
|
* The caller is not one of the accounts included in the registration.
|
|
1185
1222
|
**/
|
|
@@ -1349,7 +1386,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1349
1386
|
**/
|
|
1350
1387
|
AuctionNotFound: AugmentedError<ApiType>;
|
|
1351
1388
|
/**
|
|
1352
|
-
*
|
|
1389
|
+
* Allocation was requested before the auction's Treasury budget was finalized.
|
|
1353
1390
|
**/
|
|
1354
1391
|
AuctionNotReady: AugmentedError<ApiType>;
|
|
1355
1392
|
/**
|
|
@@ -1373,7 +1410,8 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1373
1410
|
**/
|
|
1374
1411
|
EntryNotFound: AugmentedError<ApiType>;
|
|
1375
1412
|
/**
|
|
1376
|
-
*
|
|
1413
|
+
* A repayment hold has not matured, its price window is incomplete, or its auction
|
|
1414
|
+
* result is not available yet.
|
|
1377
1415
|
**/
|
|
1378
1416
|
PayoutNotReady: AugmentedError<ApiType>;
|
|
1379
1417
|
};
|
|
@@ -1483,8 +1521,8 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1483
1521
|
ticks: {};
|
|
1484
1522
|
treasury: {
|
|
1485
1523
|
/**
|
|
1486
|
-
*
|
|
1487
|
-
*
|
|
1524
|
+
* A reservation or liquidation would leave Treasury backing uncovered, or queued
|
|
1525
|
+
* settlement exceeds the account's remaining encumbrance.
|
|
1488
1526
|
**/
|
|
1489
1527
|
ActiveBondAmountBelowEncumberedBacking: AugmentedError<ApiType>;
|
|
1490
1528
|
/**
|