@argonprotocol/mainchain 1.5.2-dev.aad85636 → 1.5.2-dev.c44b7506
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 +439 -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 +319 -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 +5048 -466
- package/browser/index.js +4620 -1109
- package/browser/index.js.map +1 -1
- package/lib/artifacts/contracts/ArgonBuyAndTransfer.sol/ArgonBuyAndTransfer.json +439 -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 +319 -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 +4463 -977
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +5048 -466
- package/lib/index.d.ts +5048 -466
- package/lib/index.js +4454 -968
- package/lib/index.js.map +1 -1
- package/package.json +8 -7
- package/src/interfaces/augment-api-consts.ts +69 -0
- package/src/interfaces/augment-api-errors.ts +135 -1
- package/src/interfaces/augment-api-events.ts +132 -2
- package/src/interfaces/augment-api-query.ts +228 -8
- package/src/interfaces/augment-api-rpc.ts +0 -1
- package/src/interfaces/augment-api-tx.ts +135 -27
- package/src/interfaces/lookup.ts +706 -267
- package/src/interfaces/registry.ts +64 -6
- package/src/interfaces/types-lookup.ts +770 -280
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.c44b7506",
|
|
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.c44b7506",
|
|
72
73
|
"@polkadot/typegen": "^17.0.1",
|
|
73
74
|
"@substrate/ss58-registry": "^1.51.0",
|
|
74
75
|
"@types/node": "^20",
|
|
@@ -181,6 +181,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
181
181
|
* Canonical Ethereum burn-accounting account representing funds moved to Ethereum.
|
|
182
182
|
**/
|
|
183
183
|
ethereumBurnAccount: AccountId32 & AugmentedConst<ApiType>;
|
|
184
|
+
/**
|
|
185
|
+
* Maximum activities in one complete gateway locator storage proof.
|
|
186
|
+
**/
|
|
187
|
+
maxActivitiesPerGatewayProof: u32 & AugmentedConst<ApiType>;
|
|
184
188
|
/**
|
|
185
189
|
* Maximum number of ordered gateway activities that may share one receipt proof.
|
|
186
190
|
**/
|
|
@@ -189,6 +193,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
189
193
|
* Maximum number of members the active Global Issuance Council may carry.
|
|
190
194
|
**/
|
|
191
195
|
maxCouncilMembers: u32 & AugmentedConst<ApiType>;
|
|
196
|
+
/**
|
|
197
|
+
* Maximum aggregate event data carried by one storage-proof locator.
|
|
198
|
+
**/
|
|
199
|
+
maxGatewayActivityLogDataBytes: u32 & AugmentedConst<ApiType>;
|
|
192
200
|
/**
|
|
193
201
|
* Maximum number of non-terminal transfer-out requests tracked for one destination chain.
|
|
194
202
|
**/
|
|
@@ -271,6 +279,8 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
271
279
|
* The increment that bids can be on (for instance, one cent increments)
|
|
272
280
|
**/
|
|
273
281
|
bidIncrements: u128 & AugmentedConst<ApiType>;
|
|
282
|
+
bidRevealBlocks: u32 & AugmentedConst<ApiType>;
|
|
283
|
+
bidSettlementBuffer: u32 & AugmentedConst<ApiType>;
|
|
274
284
|
/**
|
|
275
285
|
* The number of frames a miner operates for
|
|
276
286
|
**/
|
|
@@ -279,6 +289,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
279
289
|
* The initial argonots needed per seat before a prior-day median is available.
|
|
280
290
|
**/
|
|
281
291
|
initialArgonotsPerSeat: u128 & AugmentedConst<ApiType>;
|
|
292
|
+
/**
|
|
293
|
+
* Maximum commitments, including public bids, admitted per block.
|
|
294
|
+
**/
|
|
295
|
+
maxBidsPerBlock: u32 & AugmentedConst<ApiType>;
|
|
282
296
|
/**
|
|
283
297
|
* How many new miners can be in the cohort for each slot. The actual maximum will adjust
|
|
284
298
|
* dynamically
|
|
@@ -526,6 +540,57 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
526
540
|
**/
|
|
527
541
|
proxyDepositFactor: u128 & AugmentedConst<ApiType>;
|
|
528
542
|
};
|
|
543
|
+
stabilizerBuys: {
|
|
544
|
+
/**
|
|
545
|
+
* Fraction of total matching basis admitted to rewards, independent of bid rates.
|
|
546
|
+
* Configure 90%; reserve up to that amount, bounded separately by available Treasury
|
|
547
|
+
* funding.
|
|
548
|
+
**/
|
|
549
|
+
auctionInclusionPercent: Percent & AugmentedConst<ApiType>;
|
|
550
|
+
/**
|
|
551
|
+
* In the open bucket, allow USDC observations up to ten ticks before the purchase.
|
|
552
|
+
**/
|
|
553
|
+
maxCurrentHourPriceAgeTicks: u64 & AugmentedConst<ApiType>;
|
|
554
|
+
/**
|
|
555
|
+
* Maximum hourly reference buckets retained; configure 720.
|
|
556
|
+
**/
|
|
557
|
+
maxHourlyPriceReferences: u32 & AugmentedConst<ApiType>;
|
|
558
|
+
/**
|
|
559
|
+
* Maximum work in each automatic stage per block: ranked bid decisions, then account
|
|
560
|
+
* payout attempts. Failures and empty-auction completion consume work; excess stays
|
|
561
|
+
* queued.
|
|
562
|
+
**/
|
|
563
|
+
maxPayoutsPerBlock: u32 & AugmentedConst<ApiType>;
|
|
564
|
+
/**
|
|
565
|
+
* Positive submissions per account and auction; four allows an initial bid and three
|
|
566
|
+
* revisions.
|
|
567
|
+
**/
|
|
568
|
+
maxPositiveBids: u8 & AugmentedConst<ApiType>;
|
|
569
|
+
/**
|
|
570
|
+
* Maximum mature principal buckets released in one account payout visit.
|
|
571
|
+
* This bounds work, without limiting the number of purchases an account can hold.
|
|
572
|
+
**/
|
|
573
|
+
maxPrincipalPayouts: u32 & AugmentedConst<ApiType>;
|
|
574
|
+
/**
|
|
575
|
+
* Most recent tick observations retained for exact ARGON targets; configure 360.
|
|
576
|
+
**/
|
|
577
|
+
maxRecentPriceTicks: u32 & AugmentedConst<ApiType>;
|
|
578
|
+
/**
|
|
579
|
+
* Tick width of each older reference bucket; configure 60.
|
|
580
|
+
**/
|
|
581
|
+
priceHistoryBucketTicks: u64 & AugmentedConst<ApiType>;
|
|
582
|
+
/**
|
|
583
|
+
* Ticks after bidding close, configured for 30 elapsed days on the network.
|
|
584
|
+
**/
|
|
585
|
+
rewardMaturityTicks: u64 & AugmentedConst<ApiType>;
|
|
586
|
+
};
|
|
587
|
+
stabilizerPools: {
|
|
588
|
+
/**
|
|
589
|
+
* Opening references retained in financial-day frames, including the checkpoint buffer.
|
|
590
|
+
* Zero disables history. Both production runtimes retain 30 frames plus a 3-frame buffer.
|
|
591
|
+
**/
|
|
592
|
+
maxFramePriceHistoryFrames: u32 & AugmentedConst<ApiType>;
|
|
593
|
+
};
|
|
529
594
|
system: {
|
|
530
595
|
/**
|
|
531
596
|
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
|
@@ -670,6 +735,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
670
735
|
upstreamBitcoinTarget: u128 & AugmentedConst<ApiType>;
|
|
671
736
|
upstreamBitcoinWeight: Permill & AugmentedConst<ApiType>;
|
|
672
737
|
upstreamBondTarget: u128 & AugmentedConst<ApiType>;
|
|
738
|
+
/**
|
|
739
|
+
* Maximum share of the full bid pool paid for vault Bitcoin participation.
|
|
740
|
+
**/
|
|
741
|
+
vaultBitcoinRewardPercent: Permill & AugmentedConst<ApiType>;
|
|
673
742
|
};
|
|
674
743
|
txPause: {
|
|
675
744
|
/**
|
|
@@ -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
|
|
@@ -804,6 +803,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
804
803
|
ExecutionHeaderAnchorNotHistorical: AugmentedError<ApiType>;
|
|
805
804
|
ExpectedFinalizedHeaderNotStored: AugmentedError<ApiType>;
|
|
806
805
|
ForkDataHashTreeRootFailed: AugmentedError<ApiType>;
|
|
806
|
+
GloasForkAlreadyActive: AugmentedError<ApiType>;
|
|
807
807
|
Halted: AugmentedError<ApiType>;
|
|
808
808
|
HeaderHashTreeRootFailed: AugmentedError<ApiType>;
|
|
809
809
|
InvalidBackfillHeaderRoot: AugmentedError<ApiType>;
|
|
@@ -812,6 +812,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
812
812
|
* The gap between finalized headers is larger than the retained historical window.
|
|
813
813
|
**/
|
|
814
814
|
InvalidFinalizedHeaderGap: AugmentedError<ApiType>;
|
|
815
|
+
InvalidForkSchedule: AugmentedError<ApiType>;
|
|
815
816
|
InvalidHeaderMerkleProof: AugmentedError<ApiType>;
|
|
816
817
|
InvalidSyncCommitteeMerkleProof: AugmentedError<ApiType>;
|
|
817
818
|
/**
|
|
@@ -902,6 +903,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
902
903
|
NotebookIncludesExpiredLocalchainTransfer: AugmentedError<ApiType>;
|
|
903
904
|
};
|
|
904
905
|
miningSlot: {
|
|
906
|
+
/**
|
|
907
|
+
* The bid batch cannot settle until its reveal window has ended.
|
|
908
|
+
**/
|
|
909
|
+
BatchNotMature: AugmentedError<ApiType>;
|
|
910
|
+
/**
|
|
911
|
+
* The pending bid's maximum has already been revealed.
|
|
912
|
+
**/
|
|
913
|
+
BidAlreadyRevealed: AugmentedError<ApiType>;
|
|
905
914
|
/**
|
|
906
915
|
* The mining bid cannot be reduced
|
|
907
916
|
**/
|
|
@@ -918,6 +927,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
918
927
|
* An account can only have one active registration
|
|
919
928
|
**/
|
|
920
929
|
CannotRegisterOverlappingSessions: AugmentedError<ApiType>;
|
|
930
|
+
/**
|
|
931
|
+
* The miner already has a pending bid awaiting settlement.
|
|
932
|
+
**/
|
|
933
|
+
DuplicateBidCommitment: AugmentedError<ApiType>;
|
|
921
934
|
/**
|
|
922
935
|
* The funding account does not have enough funds to cover the bid
|
|
923
936
|
**/
|
|
@@ -930,14 +943,38 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
930
943
|
* Bids must be in allowed increments
|
|
931
944
|
**/
|
|
932
945
|
InvalidBidAmount: AugmentedError<ApiType>;
|
|
946
|
+
/**
|
|
947
|
+
* The revealed maximum and salt do not match the pending bid's hash.
|
|
948
|
+
**/
|
|
949
|
+
InvalidBidCommitment: AugmentedError<ApiType>;
|
|
950
|
+
/**
|
|
951
|
+
* The revealed maximum is lower than the public bid.
|
|
952
|
+
**/
|
|
953
|
+
InvalidBidRange: AugmentedError<ApiType>;
|
|
954
|
+
/**
|
|
955
|
+
* A maximum must be revealed in a block after submission and within the reveal window.
|
|
956
|
+
**/
|
|
957
|
+
InvalidRevealBlock: AugmentedError<ApiType>;
|
|
958
|
+
/**
|
|
959
|
+
* The miner has no pending bid with a committed maximum to reveal.
|
|
960
|
+
**/
|
|
961
|
+
MissingBidCommitment: AugmentedError<ApiType>;
|
|
933
962
|
/**
|
|
934
963
|
* Mining slot bidding currently requires a prior operational-account upgrade.
|
|
935
964
|
**/
|
|
936
965
|
OperationalAccountRegistrationRequired: AugmentedError<ApiType>;
|
|
966
|
+
/**
|
|
967
|
+
* Bidding with a committed maximum is not enabled for the current auction frame.
|
|
968
|
+
**/
|
|
969
|
+
RangeAuctionNotActive: AugmentedError<ApiType>;
|
|
937
970
|
/**
|
|
938
971
|
* Bidding for the next cohort has closed
|
|
939
972
|
**/
|
|
940
973
|
SlotNotTakingBids: AugmentedError<ApiType>;
|
|
974
|
+
/**
|
|
975
|
+
* This block has reached the maximum number of pending bid submissions.
|
|
976
|
+
**/
|
|
977
|
+
TooManyBidCommitments: AugmentedError<ApiType>;
|
|
941
978
|
/**
|
|
942
979
|
* The cohort registration overflowed
|
|
943
980
|
**/
|
|
@@ -946,6 +983,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
946
983
|
* The argonots on hold cannot be released
|
|
947
984
|
**/
|
|
948
985
|
UnrecoverableHold: AugmentedError<ApiType>;
|
|
986
|
+
/**
|
|
987
|
+
* The bid targets a different auction frame than the current one.
|
|
988
|
+
**/
|
|
989
|
+
WrongBidFrame: AugmentedError<ApiType>;
|
|
949
990
|
};
|
|
950
991
|
mint: {
|
|
951
992
|
TooManyPendingMints: AugmentedError<ApiType>;
|
|
@@ -1247,6 +1288,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1247
1288
|
* Ethereum prices must be non-zero and correspond to the submitted price-index tick.
|
|
1248
1289
|
**/
|
|
1249
1290
|
InvalidEthereumPrices: AugmentedError<ApiType>;
|
|
1291
|
+
/**
|
|
1292
|
+
* A supplied USDC observation must be positive and no later than the current tick.
|
|
1293
|
+
**/
|
|
1294
|
+
InvalidUsdcPrice: AugmentedError<ApiType>;
|
|
1250
1295
|
/**
|
|
1251
1296
|
* Change in argon price is too large
|
|
1252
1297
|
**/
|
|
@@ -1298,6 +1343,95 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1298
1343
|
**/
|
|
1299
1344
|
Unproxyable: AugmentedError<ApiType>;
|
|
1300
1345
|
};
|
|
1346
|
+
stabilizerBuys: {
|
|
1347
|
+
/**
|
|
1348
|
+
* No auction exists for the supplied admission frame.
|
|
1349
|
+
**/
|
|
1350
|
+
AuctionNotFound: AugmentedError<ApiType>;
|
|
1351
|
+
/**
|
|
1352
|
+
* An auction scheduled for allocation lacks its reservation or maturity anchor.
|
|
1353
|
+
**/
|
|
1354
|
+
AuctionNotReady: AugmentedError<ApiType>;
|
|
1355
|
+
/**
|
|
1356
|
+
* The call is outside F+1 or the auction no longer accepts bids.
|
|
1357
|
+
**/
|
|
1358
|
+
BiddingClosed: AugmentedError<ApiType>;
|
|
1359
|
+
/**
|
|
1360
|
+
* Positive submissions are exhausted; zero may still opt out.
|
|
1361
|
+
**/
|
|
1362
|
+
BidLimitReached: AugmentedError<ApiType>;
|
|
1363
|
+
/**
|
|
1364
|
+
* A positive rate produces zero whole microgons against the matching basis.
|
|
1365
|
+
**/
|
|
1366
|
+
BidRoundsToZero: AugmentedError<ApiType>;
|
|
1367
|
+
/**
|
|
1368
|
+
* A positive bid repeats the account's current rate.
|
|
1369
|
+
**/
|
|
1370
|
+
BidUnchanged: AugmentedError<ApiType>;
|
|
1371
|
+
/**
|
|
1372
|
+
* The account has no purchase bucket for this auction.
|
|
1373
|
+
**/
|
|
1374
|
+
EntryNotFound: AugmentedError<ApiType>;
|
|
1375
|
+
/**
|
|
1376
|
+
* The scheduled account has no mature principal or committed reward to pay.
|
|
1377
|
+
**/
|
|
1378
|
+
PayoutNotReady: AugmentedError<ApiType>;
|
|
1379
|
+
};
|
|
1380
|
+
stabilizerPools: {
|
|
1381
|
+
/**
|
|
1382
|
+
* The three account witnesses do not contain identical execution-block proofs.
|
|
1383
|
+
**/
|
|
1384
|
+
InconsistentProofBlocks: AugmentedError<ApiType>;
|
|
1385
|
+
/**
|
|
1386
|
+
* A deployment address is zero or reused, or the pool key fails ordering or encoding
|
|
1387
|
+
* bounds.
|
|
1388
|
+
**/
|
|
1389
|
+
InvalidPool: AugmentedError<ApiType>;
|
|
1390
|
+
/**
|
|
1391
|
+
* The packed PoolId mismatches, ticks are invalid/misaligned, or liquidity exceeds
|
|
1392
|
+
* uint128.
|
|
1393
|
+
**/
|
|
1394
|
+
InvalidPosition: AugmentedError<ApiType>;
|
|
1395
|
+
/**
|
|
1396
|
+
* The Ethereum verifier is unavailable, or header ancestry/account/storage authentication
|
|
1397
|
+
* fails.
|
|
1398
|
+
**/
|
|
1399
|
+
InvalidProof: AugmentedError<ApiType>;
|
|
1400
|
+
/**
|
|
1401
|
+
* A witness has the wrong slot count or slot addresses for the requested NFT position.
|
|
1402
|
+
**/
|
|
1403
|
+
InvalidStorageSlots: AugmentedError<ApiType>;
|
|
1404
|
+
/**
|
|
1405
|
+
* The NFT's subscriber or subscription flag is invalid, or its permanent revision is
|
|
1406
|
+
* zero.
|
|
1407
|
+
**/
|
|
1408
|
+
InvalidSubscription: AugmentedError<ApiType>;
|
|
1409
|
+
/**
|
|
1410
|
+
* The signer does not match the beneficiary encoded in the subscription witness.
|
|
1411
|
+
**/
|
|
1412
|
+
NotBeneficiary: AugmentedError<ApiType>;
|
|
1413
|
+
/**
|
|
1414
|
+
* This PoolManager/PoolId pair already has an immutable registration.
|
|
1415
|
+
**/
|
|
1416
|
+
PoolAlreadyRegistered: AugmentedError<ApiType>;
|
|
1417
|
+
/**
|
|
1418
|
+
* No approved configuration exists for the supplied PoolManager/PoolId pair.
|
|
1419
|
+
**/
|
|
1420
|
+
PoolNotRegistered: AugmentedError<ApiType>;
|
|
1421
|
+
/**
|
|
1422
|
+
* Beneficiary, subscriber, pool, tick range, or liquidity changed without a revision
|
|
1423
|
+
* increase.
|
|
1424
|
+
**/
|
|
1425
|
+
PositionChangedWithoutRevision: AugmentedError<ApiType>;
|
|
1426
|
+
/**
|
|
1427
|
+
* The subscriber revision is lower than the NFT's last accepted revision.
|
|
1428
|
+
**/
|
|
1429
|
+
RevisionRegressed: AugmentedError<ApiType>;
|
|
1430
|
+
/**
|
|
1431
|
+
* Ethereum block height or time does not strictly advance past the stored checkpoint.
|
|
1432
|
+
**/
|
|
1433
|
+
StaleCheckpoint: AugmentedError<ApiType>;
|
|
1434
|
+
};
|
|
1301
1435
|
sudo: {
|
|
1302
1436
|
/**
|
|
1303
1437
|
* Sender must be the Sudo account.
|
|
@@ -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
|
|
@@ -8,9 +7,11 @@ import type {} from '@polkadot/api-base/types/events';
|
|
|
8
7
|
import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|
9
8
|
import type {
|
|
10
9
|
Bytes,
|
|
10
|
+
Compact,
|
|
11
11
|
Null,
|
|
12
12
|
Option,
|
|
13
13
|
Result,
|
|
14
|
+
U256,
|
|
14
15
|
U8aFixed,
|
|
15
16
|
Vec,
|
|
16
17
|
bool,
|
|
@@ -19,9 +20,10 @@ import type {
|
|
|
19
20
|
u16,
|
|
20
21
|
u32,
|
|
21
22
|
u64,
|
|
23
|
+
u8,
|
|
22
24
|
} from '@polkadot/types-codec';
|
|
23
25
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
24
|
-
import type { AccountId32, H160, H256, Percent } from '@polkadot/types/interfaces/runtime';
|
|
26
|
+
import type { AccountId32, H160, H256, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
25
27
|
import type {
|
|
26
28
|
ArgonNotaryAuditErrorVerifyError,
|
|
27
29
|
ArgonPrimitivesBitcoinUtxoRef,
|
|
@@ -45,14 +47,21 @@ import type {
|
|
|
45
47
|
PalletCrosschainTransferGatewayState,
|
|
46
48
|
PalletCrosschainTransferGatewaySyncPause,
|
|
47
49
|
PalletCrosschainTransferSourceChain,
|
|
50
|
+
PalletCrosschainTransferSwapPurchaseEvidence,
|
|
48
51
|
PalletCrosschainTransferTransferToArgonActivity,
|
|
49
52
|
PalletDomainsDomainRegistration,
|
|
50
53
|
PalletEthereumVerifierBasicOperatingMode,
|
|
51
54
|
PalletMintMintType,
|
|
52
55
|
PalletMultisigTimepoint,
|
|
53
56
|
PalletProxyDepositKind,
|
|
57
|
+
PalletStabilizerBuysIneligibleReason,
|
|
58
|
+
PalletStabilizerBuysUniswapPurchasePurchasePool,
|
|
59
|
+
PalletStabilizerPoolsCheckpointOutcome,
|
|
60
|
+
PalletStabilizerPoolsPoolConfig,
|
|
61
|
+
PalletStabilizerPoolsPositionCheckpoint,
|
|
54
62
|
PalletTreasuryBondProgramId,
|
|
55
63
|
PalletTreasuryBondReleaseReason,
|
|
64
|
+
PalletTreasuryRewardReserveBalances,
|
|
56
65
|
SpConsensusGrandpaAppPublic,
|
|
57
66
|
SpRuntimeDispatchError,
|
|
58
67
|
} from '@polkadot/types/lookup';
|
|
@@ -903,6 +912,24 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
903
912
|
mintingAuthorityTip: u128;
|
|
904
913
|
}
|
|
905
914
|
>;
|
|
915
|
+
/**
|
|
916
|
+
* A Uniswap purchase was credited without operational transfer credit.
|
|
917
|
+
**/
|
|
918
|
+
TransferToArgonFromSwapSettled: AugmentedEvent<
|
|
919
|
+
ApiType,
|
|
920
|
+
[
|
|
921
|
+
sourceChain: PalletCrosschainTransferSourceChain,
|
|
922
|
+
transfer: PalletCrosschainTransferTransferToArgonActivity,
|
|
923
|
+
purchase: PalletCrosschainTransferSwapPurchaseEvidence,
|
|
924
|
+
purchaseTick: u64,
|
|
925
|
+
],
|
|
926
|
+
{
|
|
927
|
+
sourceChain: PalletCrosschainTransferSourceChain;
|
|
928
|
+
transfer: PalletCrosschainTransferTransferToArgonActivity;
|
|
929
|
+
purchase: PalletCrosschainTransferSwapPurchaseEvidence;
|
|
930
|
+
purchaseTick: u64;
|
|
931
|
+
}
|
|
932
|
+
>;
|
|
906
933
|
/**
|
|
907
934
|
* A `TransferToArgonStarted` activity was proven and settled locally.
|
|
908
935
|
**/
|
|
@@ -978,6 +1005,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
978
1005
|
[blockHash: H256, blockNumber: u64],
|
|
979
1006
|
{ blockHash: H256; blockNumber: u64 }
|
|
980
1007
|
>;
|
|
1008
|
+
GloasForkScheduled: AugmentedEvent<
|
|
1009
|
+
ApiType,
|
|
1010
|
+
[version: U8aFixed, epoch: Compact<u64>],
|
|
1011
|
+
{ version: U8aFixed; epoch: Compact<u64> }
|
|
1012
|
+
>;
|
|
981
1013
|
/**
|
|
982
1014
|
* Set OperatingMode
|
|
983
1015
|
**/
|
|
@@ -1114,6 +1146,14 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1114
1146
|
>;
|
|
1115
1147
|
};
|
|
1116
1148
|
miningSlot: {
|
|
1149
|
+
BidCommitted: AugmentedEvent<
|
|
1150
|
+
ApiType,
|
|
1151
|
+
[accountId: AccountId32, targetFrameId: u64],
|
|
1152
|
+
{ accountId: AccountId32; targetFrameId: u64 }
|
|
1153
|
+
>;
|
|
1154
|
+
BidLost: AugmentedEvent<ApiType, [accountId: AccountId32], { accountId: AccountId32 }>;
|
|
1155
|
+
BidRejected: AugmentedEvent<ApiType, [accountId: AccountId32], { accountId: AccountId32 }>;
|
|
1156
|
+
BidRevealed: AugmentedEvent<ApiType, [accountId: AccountId32], { accountId: AccountId32 }>;
|
|
1117
1157
|
/**
|
|
1118
1158
|
* Bids are closed due to the VRF randomized function triggering
|
|
1119
1159
|
**/
|
|
@@ -1164,6 +1204,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1164
1204
|
[accountId: AccountId32, preservedArgonotHold: bool],
|
|
1165
1205
|
{ accountId: AccountId32; preservedArgonotHold: bool }
|
|
1166
1206
|
>;
|
|
1207
|
+
WinningBidPriceChanged: AugmentedEvent<
|
|
1208
|
+
ApiType,
|
|
1209
|
+
[accountId: AccountId32, bidAmount: u128],
|
|
1210
|
+
{ accountId: AccountId32; bidAmount: u128 }
|
|
1211
|
+
>;
|
|
1167
1212
|
};
|
|
1168
1213
|
mint: {
|
|
1169
1214
|
/**
|
|
@@ -1820,6 +1865,86 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1820
1865
|
}
|
|
1821
1866
|
>;
|
|
1822
1867
|
};
|
|
1868
|
+
stabilizerBuys: {
|
|
1869
|
+
ApprovedPoolChanged: AugmentedEvent<
|
|
1870
|
+
ApiType,
|
|
1871
|
+
[pool: Option<PalletStabilizerBuysUniswapPurchasePurchasePool>],
|
|
1872
|
+
{ pool: Option<PalletStabilizerBuysUniswapPurchasePurchasePool> }
|
|
1873
|
+
>;
|
|
1874
|
+
AuctionAllocationFailed: AugmentedEvent<
|
|
1875
|
+
ApiType,
|
|
1876
|
+
[admissionFrame: u64, error: SpRuntimeDispatchError],
|
|
1877
|
+
{ admissionFrame: u64; error: SpRuntimeDispatchError }
|
|
1878
|
+
>;
|
|
1879
|
+
AuctionFundingFailed: AugmentedEvent<
|
|
1880
|
+
ApiType,
|
|
1881
|
+
[admissionFrame: u64, error: SpRuntimeDispatchError],
|
|
1882
|
+
{ admissionFrame: u64; error: SpRuntimeDispatchError }
|
|
1883
|
+
>;
|
|
1884
|
+
AuctionOpened: AugmentedEvent<
|
|
1885
|
+
ApiType,
|
|
1886
|
+
[admissionFrame: u64, budget: u128],
|
|
1887
|
+
{ admissionFrame: u64; budget: u128 }
|
|
1888
|
+
>;
|
|
1889
|
+
AuctionSettled: AugmentedEvent<
|
|
1890
|
+
ApiType,
|
|
1891
|
+
[admissionFrame: u64, awarded: u128, returned: u128],
|
|
1892
|
+
{ admissionFrame: u64; awarded: u128; returned: u128 }
|
|
1893
|
+
>;
|
|
1894
|
+
BidSubmitted: AugmentedEvent<
|
|
1895
|
+
ApiType,
|
|
1896
|
+
[account: AccountId32, admissionFrame: u64, rewardRate: Percent, positiveBidCount: u8],
|
|
1897
|
+
{ account: AccountId32; admissionFrame: u64; rewardRate: Percent; positiveBidCount: u8 }
|
|
1898
|
+
>;
|
|
1899
|
+
MatchingRateChanged: AugmentedEvent<ApiType, [rate: Permill], { rate: Permill }>;
|
|
1900
|
+
PayoutCompleted: AugmentedEvent<
|
|
1901
|
+
ApiType,
|
|
1902
|
+
[account: AccountId32, principal: u128, reward: u128],
|
|
1903
|
+
{ account: AccountId32; principal: u128; reward: u128 }
|
|
1904
|
+
>;
|
|
1905
|
+
PayoutFailed: AugmentedEvent<
|
|
1906
|
+
ApiType,
|
|
1907
|
+
[account: AccountId32, error: SpRuntimeDispatchError],
|
|
1908
|
+
{ account: AccountId32; error: SpRuntimeDispatchError }
|
|
1909
|
+
>;
|
|
1910
|
+
PurchaseIneligible: AugmentedEvent<
|
|
1911
|
+
ApiType,
|
|
1912
|
+
[account: AccountId32, purchaseTick: u64, reason: PalletStabilizerBuysIneligibleReason],
|
|
1913
|
+
{ account: AccountId32; purchaseTick: u64; reason: PalletStabilizerBuysIneligibleReason }
|
|
1914
|
+
>;
|
|
1915
|
+
PurchaseRecorded: AugmentedEvent<
|
|
1916
|
+
ApiType,
|
|
1917
|
+
[account: AccountId32, admissionFrame: u64, principal: u128, matchingBasis: u128],
|
|
1918
|
+
{ account: AccountId32; admissionFrame: u64; principal: u128; matchingBasis: u128 }
|
|
1919
|
+
>;
|
|
1920
|
+
RewardAwarded: AugmentedEvent<
|
|
1921
|
+
ApiType,
|
|
1922
|
+
[account: AccountId32, admissionFrame: u64, amount: u128, maturesAtTick: u64],
|
|
1923
|
+
{ account: AccountId32; admissionFrame: u64; amount: u128; maturesAtTick: u64 }
|
|
1924
|
+
>;
|
|
1925
|
+
};
|
|
1926
|
+
stabilizerPools: {
|
|
1927
|
+
PoolRegistered: AugmentedEvent<
|
|
1928
|
+
ApiType,
|
|
1929
|
+
[poolManager: H160, poolId: H256, config: PalletStabilizerPoolsPoolConfig],
|
|
1930
|
+
{ poolManager: H160; poolId: H256; config: PalletStabilizerPoolsPoolConfig }
|
|
1931
|
+
>;
|
|
1932
|
+
PositionCheckpointed: AugmentedEvent<
|
|
1933
|
+
ApiType,
|
|
1934
|
+
[
|
|
1935
|
+
positionManager: H160,
|
|
1936
|
+
tokenId: U256,
|
|
1937
|
+
checkpoint: PalletStabilizerPoolsPositionCheckpoint,
|
|
1938
|
+
outcome: PalletStabilizerPoolsCheckpointOutcome,
|
|
1939
|
+
],
|
|
1940
|
+
{
|
|
1941
|
+
positionManager: H160;
|
|
1942
|
+
tokenId: U256;
|
|
1943
|
+
checkpoint: PalletStabilizerPoolsPositionCheckpoint;
|
|
1944
|
+
outcome: PalletStabilizerPoolsCheckpointOutcome;
|
|
1945
|
+
}
|
|
1946
|
+
>;
|
|
1947
|
+
};
|
|
1823
1948
|
sudo: {
|
|
1824
1949
|
/**
|
|
1825
1950
|
* The sudo key has been updated.
|
|
@@ -2123,6 +2248,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2123
2248
|
[targetBitcoinPercent: Percent, upstreamParticipationFactor: Percent],
|
|
2124
2249
|
{ targetBitcoinPercent: Percent; upstreamParticipationFactor: Percent }
|
|
2125
2250
|
>;
|
|
2251
|
+
RewardReservesUpdated: AugmentedEvent<
|
|
2252
|
+
ApiType,
|
|
2253
|
+
[reserves: PalletTreasuryRewardReserveBalances],
|
|
2254
|
+
{ reserves: PalletTreasuryRewardReserveBalances }
|
|
2255
|
+
>;
|
|
2126
2256
|
};
|
|
2127
2257
|
txPause: {
|
|
2128
2258
|
/**
|