@argonprotocol/mainchain 1.4.12 → 1.4.13-dev.479a6416
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 +0 -10
- package/browser/index.d.ts +1328 -1263
- package/browser/index.js +24 -1350
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +42 -1353
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +1328 -1263
- package/lib/index.d.ts +1328 -1263
- package/lib/index.js +44 -1355
- package/lib/index.js.map +1 -1
- package/package.json +13 -11
- package/src/interfaces/augment-api-consts.ts +52 -33
- package/src/interfaces/augment-api-errors.ts +151 -37
- package/src/interfaces/augment-api-events.ts +244 -121
- package/src/interfaces/augment-api-query.ts +161 -93
- package/src/interfaces/augment-api-rpc.ts +23 -3
- package/src/interfaces/augment-api-runtime.ts +1 -2
- package/src/interfaces/augment-api-tx.ts +128 -105
- package/src/interfaces/augment-api.ts +0 -1
- package/src/interfaces/augment-types.ts +9 -3
- package/src/interfaces/lookup.ts +617 -434
- package/src/interfaces/registry.ts +36 -17
- package/src/interfaces/types-lookup.ts +700 -493
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/mainchain",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.13-dev.479a6416",
|
|
4
4
|
"description": "A client for accessing the Argon mainchain apis.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"tsc": "yarn workspace @argonprotocol/ethereum-contracts build && yarn generate:contract-declarations && tsup && yarn validate:package",
|
|
22
22
|
"tsup": "yarn tsc",
|
|
23
23
|
"validate:package": "tsx src/scripts/validatePackage.ts",
|
|
24
|
+
"backfill:flexible-bond-metrics": "tsx src/scripts/backfillFlexibleBondMetrics.ts",
|
|
24
25
|
"watch": "yarn generate:contract-declarations && tsup --watch",
|
|
25
26
|
"typecheck": "tsc --noEmit -p tsconfig.test.json"
|
|
26
27
|
},
|
|
@@ -52,31 +53,32 @@
|
|
|
52
53
|
"dependencies": {
|
|
53
54
|
"@ethereumjs/block": "^10.1.1",
|
|
54
55
|
"@ethereumjs/mpt": "^10.1.1",
|
|
55
|
-
"@polkadot/api": "^
|
|
56
|
-
"@polkadot/api-base": "^
|
|
56
|
+
"@polkadot/api": "^17.0.1",
|
|
57
|
+
"@polkadot/api-base": "^17.0.1",
|
|
57
58
|
"@polkadot/keyring": "^14.0.3",
|
|
58
|
-
"@polkadot/rpc-core": "^
|
|
59
|
-
"@polkadot/rpc-provider": "^
|
|
60
|
-
"@polkadot/types": "^
|
|
61
|
-
"@polkadot/types-codec": "^
|
|
59
|
+
"@polkadot/rpc-core": "^17.0.1",
|
|
60
|
+
"@polkadot/rpc-provider": "^17.0.1",
|
|
61
|
+
"@polkadot/types": "^17.0.1",
|
|
62
|
+
"@polkadot/types-codec": "^17.0.1",
|
|
62
63
|
"@polkadot/util": "^14.0.3",
|
|
63
64
|
"@polkadot/util-crypto": "^14.0.3",
|
|
64
65
|
"bignumber.js": "^9.3.1",
|
|
65
|
-
"bs58check": "^4.0.0",
|
|
66
66
|
"camelcase-keys": "^9.1.3",
|
|
67
67
|
"viem": "^2.38.5"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@argonprotocol/ethereum-contracts": "workspace:*",
|
|
71
|
-
"@argonprotocol/testing": "1.4.
|
|
72
|
-
"@polkadot/typegen": "^
|
|
71
|
+
"@argonprotocol/testing": "1.4.13-dev.479a6416",
|
|
72
|
+
"@polkadot/typegen": "^17.0.1",
|
|
73
73
|
"@substrate/ss58-registry": "^1.51.0",
|
|
74
74
|
"@types/node": "^20",
|
|
75
|
+
"@types/ws": "^8.18.1",
|
|
75
76
|
"shx": "^0.4.0",
|
|
76
77
|
"tsup": "^8.5.0",
|
|
77
78
|
"tsx": "^4.20.4",
|
|
78
79
|
"typescript": "^5.9.2",
|
|
79
|
-
"vitest": "^
|
|
80
|
+
"vitest": "^5.0.0",
|
|
81
|
+
"ws": "^8.18.0"
|
|
80
82
|
},
|
|
81
83
|
"packageManager": "yarn@4.1.0"
|
|
82
84
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
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
|
|
6
|
-
import
|
|
5
|
+
import '@polkadot/api-base/types/consts';
|
|
7
6
|
|
|
8
7
|
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
9
8
|
import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
@@ -51,6 +50,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
51
50
|
**/
|
|
52
51
|
maxReserves: u32 & AugmentedConst<ApiType>;
|
|
53
52
|
};
|
|
53
|
+
bitcoinFissions: {
|
|
54
|
+
/**
|
|
55
|
+
* Maximum number of active Fissions that may allocate satoshis from one Lock.
|
|
56
|
+
**/
|
|
57
|
+
maxFissionsPerLock: u32 & AugmentedConst<ApiType>;
|
|
58
|
+
/**
|
|
59
|
+
* Minimum percentage change required to ratchet a Fission.
|
|
60
|
+
**/
|
|
61
|
+
minimumRatchetPercent: Percent & AugmentedConst<ApiType>;
|
|
62
|
+
};
|
|
54
63
|
bitcoinLocks: {
|
|
55
64
|
/**
|
|
56
65
|
* Argon tick per day
|
|
@@ -82,11 +91,19 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
82
91
|
* Maximum releasing utxos at a time
|
|
83
92
|
**/
|
|
84
93
|
maxConcurrentlyReleasingLocks: u32 & AugmentedConst<ApiType>;
|
|
94
|
+
/**
|
|
95
|
+
* Maximum number of confirmed Bitcoin outputs that may fund one Lock.
|
|
96
|
+
**/
|
|
97
|
+
maxUtxosPerLock: u32 & AugmentedConst<ApiType>;
|
|
85
98
|
/**
|
|
86
99
|
* Number of frames orphaned UTXO release entries are retained after a lock lifecycle
|
|
87
100
|
* transition before being cleaned up.
|
|
88
101
|
**/
|
|
89
102
|
orphanedUtxoReleaseExpiryFrames: u64 & AugmentedConst<ApiType>;
|
|
103
|
+
/**
|
|
104
|
+
* Number of Bitcoin blocks to reserve securitization that has not yet been activated.
|
|
105
|
+
**/
|
|
106
|
+
securitizationHoldBlocks: u64 & AugmentedConst<ApiType>;
|
|
90
107
|
/**
|
|
91
108
|
* Number of ticks per bitcoin block
|
|
92
109
|
**/
|
|
@@ -94,27 +111,9 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
94
111
|
};
|
|
95
112
|
bitcoinUtxos: {
|
|
96
113
|
/**
|
|
97
|
-
* Maximum number of
|
|
114
|
+
* Maximum number of outputs tracked for a single Lock address.
|
|
98
115
|
**/
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Maximum number of satoshi difference allowed from expected to consider a UTXO as
|
|
102
|
-
* "confirmed"
|
|
103
|
-
**/
|
|
104
|
-
maximumSatoshiThresholdFromExpected: u64 & AugmentedConst<ApiType>;
|
|
105
|
-
/**
|
|
106
|
-
* Maximum bitcoin blocks to accept a UTXO for confirmation. Expired locks remain watched
|
|
107
|
-
* for this many additional blocks so late funding can be detected as orphaned.
|
|
108
|
-
**/
|
|
109
|
-
maxPendingConfirmationBlocks: u64 & AugmentedConst<ApiType>;
|
|
110
|
-
/**
|
|
111
|
-
* The maximum number of UTXOs that can be watched in a block and/or expiring at same block
|
|
112
|
-
**/
|
|
113
|
-
maxPendingConfirmationUtxos: u32 & AugmentedConst<ApiType>;
|
|
114
|
-
/**
|
|
115
|
-
* The maximum number of expired pending funding entries cleaned up in a block
|
|
116
|
-
**/
|
|
117
|
-
maxPendingFundingExpirationsPerBlock: u32 & AugmentedConst<ApiType>;
|
|
116
|
+
maxUtxosPerLock: u32 & AugmentedConst<ApiType>;
|
|
118
117
|
};
|
|
119
118
|
blockRewards: {
|
|
120
119
|
/**
|
|
@@ -591,10 +590,18 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
591
590
|
operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
|
|
592
591
|
};
|
|
593
592
|
treasury: {
|
|
593
|
+
/**
|
|
594
|
+
* Default percent of maximum Bitcoin-mintable Argons targeted by the network.
|
|
595
|
+
**/
|
|
596
|
+
defaultTargetBitcoinPercent: Percent & AugmentedConst<ApiType>;
|
|
594
597
|
/**
|
|
595
598
|
* The maximum number of active Argonot bond lots.
|
|
596
599
|
**/
|
|
597
600
|
maxActiveArgonotBondLots: u32 & AugmentedConst<ApiType>;
|
|
601
|
+
/**
|
|
602
|
+
* Maximum live Argon bond lots while direct frame payouts iterate every lot.
|
|
603
|
+
**/
|
|
604
|
+
maxArgonBondLots: u32 & AugmentedConst<ApiType>;
|
|
598
605
|
/**
|
|
599
606
|
* The maximum percent of ownership-token circulation that can be bonded.
|
|
600
607
|
**/
|
|
@@ -603,10 +610,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
603
610
|
* The maximum number of bond lots whose release delay may mature in a single frame.
|
|
604
611
|
**/
|
|
605
612
|
maxPendingUnlocksPerFrame: u32 & AugmentedConst<ApiType>;
|
|
606
|
-
/**
|
|
607
|
-
* The maximum number of accepted bond lots in a vault's accepted bond-lot list.
|
|
608
|
-
**/
|
|
609
|
-
maxTreasuryContributors: u32 & AugmentedConst<ApiType>;
|
|
610
613
|
/**
|
|
611
614
|
* The maximum number of vaults that can participate in one frame's locked vault capital.
|
|
612
615
|
**/
|
|
@@ -620,13 +623,29 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
620
623
|
**/
|
|
621
624
|
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
622
625
|
/**
|
|
623
|
-
*
|
|
626
|
+
* Maximum percent paid to Argon bonds when the network target is filled.
|
|
627
|
+
**/
|
|
628
|
+
percentForArgonBondPool: Percent & AugmentedConst<ApiType>;
|
|
629
|
+
/**
|
|
630
|
+
* Percent reserved for Bitcoin Liquids and burned in this release.
|
|
631
|
+
**/
|
|
632
|
+
percentForBitcoinLiquidPool: Percent & AugmentedConst<ApiType>;
|
|
633
|
+
/**
|
|
634
|
+
* Percent reserved for future mining-operator rewards and burned in this release.
|
|
624
635
|
**/
|
|
625
|
-
|
|
636
|
+
percentForMiningOperatorPool: Percent & AugmentedConst<ApiType>;
|
|
637
|
+
/**
|
|
638
|
+
* Percent of the full bid pool paid to Argonot Stakes.
|
|
639
|
+
**/
|
|
640
|
+
percentForStakePool: Percent & AugmentedConst<ApiType>;
|
|
626
641
|
/**
|
|
627
642
|
* Percent of the bid pool reserved for treasury reserves.
|
|
628
643
|
**/
|
|
629
644
|
percentForTreasuryReserves: Percent & AugmentedConst<ApiType>;
|
|
645
|
+
/**
|
|
646
|
+
* Maximum percent paid to vaults when the network target is filled.
|
|
647
|
+
**/
|
|
648
|
+
percentForVaultPool: Percent & AugmentedConst<ApiType>;
|
|
630
649
|
/**
|
|
631
650
|
* The number of frames a releasing bond lot remains held before release.
|
|
632
651
|
**/
|
|
@@ -664,17 +683,17 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
664
683
|
**/
|
|
665
684
|
maxVaults: u32 & AugmentedConst<ApiType>;
|
|
666
685
|
/**
|
|
667
|
-
*
|
|
668
|
-
**/
|
|
669
|
-
operationalMinimumVaultLockTicks: u64 & AugmentedConst<ApiType>;
|
|
670
|
-
/**
|
|
671
|
-
* Minimum vault securitization required while the operational floor lock is active.
|
|
686
|
+
* Vault securitization committed when the operator becomes operational.
|
|
672
687
|
**/
|
|
673
688
|
operationalMinimumVaultSecuritization: u128 & AugmentedConst<ApiType>;
|
|
674
689
|
/**
|
|
675
690
|
* The number of frames within which revenue must be collected
|
|
676
691
|
**/
|
|
677
692
|
revenueCollectionExpirationFrames: u64 & AugmentedConst<ApiType>;
|
|
693
|
+
/**
|
|
694
|
+
* Bitcoin blocks in the securitization exit notice period.
|
|
695
|
+
**/
|
|
696
|
+
securitizationExitNoticeBlocks: u64 & AugmentedConst<ApiType>;
|
|
678
697
|
};
|
|
679
698
|
} // AugmentedConsts
|
|
680
699
|
} // declare module
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// import type lookup before we augment - in some environments
|
|
5
5
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import
|
|
6
|
+
import '@polkadot/api-base/types/errors';
|
|
7
7
|
|
|
8
8
|
import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types';
|
|
9
9
|
|
|
@@ -61,6 +61,88 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
61
61
|
**/
|
|
62
62
|
VestingBalance: AugmentedError<ApiType>;
|
|
63
63
|
};
|
|
64
|
+
bitcoinFissions: {
|
|
65
|
+
/**
|
|
66
|
+
* A Fission already exists under this owner and Fission ID.
|
|
67
|
+
**/
|
|
68
|
+
FissionAlreadyExists: AugmentedError<ApiType>;
|
|
69
|
+
/**
|
|
70
|
+
* A Fission must allocate at least one satoshi.
|
|
71
|
+
**/
|
|
72
|
+
FissionHasNoSatoshis: AugmentedError<ApiType>;
|
|
73
|
+
/**
|
|
74
|
+
* The submitted Fission ID is below the owner's current minimum.
|
|
75
|
+
**/
|
|
76
|
+
FissionIdBelowMinimum: AugmentedError<ApiType>;
|
|
77
|
+
/**
|
|
78
|
+
* The owner's Fission ID counter cannot be incremented.
|
|
79
|
+
**/
|
|
80
|
+
FissionIdOverflow: AugmentedError<ApiType>;
|
|
81
|
+
/**
|
|
82
|
+
* No Fission exists under this owner and Fission ID.
|
|
83
|
+
**/
|
|
84
|
+
FissionNotFound: AugmentedError<ApiType>;
|
|
85
|
+
/**
|
|
86
|
+
* The requested target-normalized BTC value is not present in recent price history.
|
|
87
|
+
**/
|
|
88
|
+
IneligibleMicrogonsAtTargetPerBtc: AugmentedError<ApiType>;
|
|
89
|
+
/**
|
|
90
|
+
* A source Lock has fewer active Fission satoshis than the Fission being closed.
|
|
91
|
+
**/
|
|
92
|
+
InsufficientFissionedSatoshis: AugmentedError<ApiType>;
|
|
93
|
+
/**
|
|
94
|
+
* A requested source Lock does not have enough unallocated funded satoshis.
|
|
95
|
+
**/
|
|
96
|
+
InsufficientFundedSatoshis: AugmentedError<ApiType>;
|
|
97
|
+
/**
|
|
98
|
+
* The Fission owner cannot burn the complete redemption amount.
|
|
99
|
+
**/
|
|
100
|
+
InsufficientFunds: AugmentedError<ApiType>;
|
|
101
|
+
/**
|
|
102
|
+
* A source Lock's securitization does not cover the requested allocation and liability.
|
|
103
|
+
**/
|
|
104
|
+
InsufficientSecuritization: AugmentedError<ApiType>;
|
|
105
|
+
/**
|
|
106
|
+
* The requested source Lock does not exist.
|
|
107
|
+
**/
|
|
108
|
+
LockNotFound: AugmentedError<ApiType>;
|
|
109
|
+
/**
|
|
110
|
+
* A requested source Lock has no confirmed funding satoshis.
|
|
111
|
+
**/
|
|
112
|
+
LockNotFunded: AugmentedError<ApiType>;
|
|
113
|
+
/**
|
|
114
|
+
* A requested source Lock is already in the release process.
|
|
115
|
+
**/
|
|
116
|
+
LockReleasePending: AugmentedError<ApiType>;
|
|
117
|
+
/**
|
|
118
|
+
* The requested price-history entry predates the Fission or Lock coverage floor.
|
|
119
|
+
**/
|
|
120
|
+
MicrogonsAtTargetPerBtcTickOlderThanCurrent: AugmentedError<ApiType>;
|
|
121
|
+
/**
|
|
122
|
+
* No current Bitcoin price is available to calculate the redemption amount.
|
|
123
|
+
**/
|
|
124
|
+
NoBitcoinPricesAvailable: AugmentedError<ApiType>;
|
|
125
|
+
/**
|
|
126
|
+
* The caller does not own a requested source Lock.
|
|
127
|
+
**/
|
|
128
|
+
NoPermissions: AugmentedError<ApiType>;
|
|
129
|
+
/**
|
|
130
|
+
* The Fission did not meet both the minimum change and Lock coverage requirements.
|
|
131
|
+
**/
|
|
132
|
+
NoRatchetingAvailable: AugmentedError<ApiType>;
|
|
133
|
+
/**
|
|
134
|
+
* A Fission allocation, liability, or identifier overflowed.
|
|
135
|
+
**/
|
|
136
|
+
Overflow: AugmentedError<ApiType>;
|
|
137
|
+
/**
|
|
138
|
+
* The Fission's ratchet counter cannot be incremented.
|
|
139
|
+
**/
|
|
140
|
+
RatchetNumberOverflow: AugmentedError<ApiType>;
|
|
141
|
+
/**
|
|
142
|
+
* The source Lock already has the maximum number of active Fissions.
|
|
143
|
+
**/
|
|
144
|
+
TooManyFissionsForLock: AugmentedError<ApiType>;
|
|
145
|
+
};
|
|
64
146
|
bitcoinLocks: {
|
|
65
147
|
/**
|
|
66
148
|
* The proposed transaction would take the account below the minimum (existential) balance
|
|
@@ -78,6 +160,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
78
160
|
* This bitcoin pubkey couldn't be decoded for release
|
|
79
161
|
**/
|
|
80
162
|
BitcoinPubkeyUnableToBeDecoded: AugmentedError<ApiType>;
|
|
163
|
+
/**
|
|
164
|
+
* A configured or requested Lock amount is below the required minimum.
|
|
165
|
+
**/
|
|
166
|
+
BitcoinReleaseChangeBelowMinimum: AugmentedError<ApiType>;
|
|
167
|
+
/**
|
|
168
|
+
* The release destination cannot be the Lock's own script.
|
|
169
|
+
**/
|
|
170
|
+
BitcoinReleaseDestinationIsLockScript: AugmentedError<ApiType>;
|
|
81
171
|
/**
|
|
82
172
|
* The bitcoin has passed the deadline to release it
|
|
83
173
|
**/
|
|
@@ -107,9 +197,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
107
197
|
**/
|
|
108
198
|
FeeCouponExpired: AugmentedError<ApiType>;
|
|
109
199
|
/**
|
|
110
|
-
*
|
|
200
|
+
* The Lock records fissioned satoshis without matching active Fission requirements.
|
|
111
201
|
**/
|
|
112
|
-
|
|
202
|
+
FissionStateMismatch: AugmentedError<ApiType>;
|
|
113
203
|
/**
|
|
114
204
|
* Cannot request an orphaned release for the funding UTXO
|
|
115
205
|
**/
|
|
@@ -123,15 +213,23 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
123
213
|
**/
|
|
124
214
|
HoldUnexpectedlyModified: AugmentedError<ApiType>;
|
|
125
215
|
/**
|
|
126
|
-
*
|
|
216
|
+
* The requested target-normalized BTC value is not present in recent price history.
|
|
127
217
|
**/
|
|
128
|
-
|
|
218
|
+
IneligibleMicrogonsAtTargetPerBtcRequested: AugmentedError<ApiType>;
|
|
129
219
|
InsufficientFunds: AugmentedError<ApiType>;
|
|
130
220
|
/**
|
|
131
|
-
* The
|
|
221
|
+
* The requested Lock securitization has fewer satoshis than its active Fissions.
|
|
132
222
|
**/
|
|
133
|
-
|
|
223
|
+
InsufficientSatoshisForFissions: AugmentedError<ApiType>;
|
|
224
|
+
/**
|
|
225
|
+
* The requested Lock securitization does not cover its active Fission liabilities.
|
|
226
|
+
**/
|
|
227
|
+
InsufficientSecuritizationForFissions: AugmentedError<ApiType>;
|
|
134
228
|
InsufficientVaultFunds: AugmentedError<ApiType>;
|
|
229
|
+
/**
|
|
230
|
+
* The external destination amount must be nonzero and fit with the network fee.
|
|
231
|
+
**/
|
|
232
|
+
InvalidBitcoinReleaseAmount: AugmentedError<ApiType>;
|
|
135
233
|
/**
|
|
136
234
|
* The bitcoin script to lock this bitcoin has errors
|
|
137
235
|
**/
|
|
@@ -145,7 +243,11 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
145
243
|
**/
|
|
146
244
|
InvalidVaultAmount: AugmentedError<ApiType>;
|
|
147
245
|
/**
|
|
148
|
-
*
|
|
246
|
+
* The Lock cannot be released while it has active Fissions.
|
|
247
|
+
**/
|
|
248
|
+
LockHasActiveFissions: AugmentedError<ApiType>;
|
|
249
|
+
/**
|
|
250
|
+
* A Lock in the release process cannot be resecuritized.
|
|
149
251
|
**/
|
|
150
252
|
LockInProcessOfRelease: AugmentedError<ApiType>;
|
|
151
253
|
/**
|
|
@@ -155,11 +257,23 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
155
257
|
/**
|
|
156
258
|
* The lock funding has not been confirmed on bitcoin
|
|
157
259
|
**/
|
|
158
|
-
|
|
260
|
+
LockNotFunded: AugmentedError<ApiType>;
|
|
159
261
|
/**
|
|
160
262
|
* Too many orphaned utxo release requests for a lock
|
|
161
263
|
**/
|
|
162
264
|
MaxOrphanedUtxoReleaseRequestsExceeded: AugmentedError<ApiType>;
|
|
265
|
+
/**
|
|
266
|
+
* Too many confirmed Bitcoin outputs were assigned to one Lock.
|
|
267
|
+
**/
|
|
268
|
+
MaxUtxosPerLockExceeded: AugmentedError<ApiType>;
|
|
269
|
+
/**
|
|
270
|
+
* The requested price-history entry predates the Lock's current securitization.
|
|
271
|
+
**/
|
|
272
|
+
MicrogonsAtTargetPerBtcTickOlderThanCurrent: AugmentedError<ApiType>;
|
|
273
|
+
/**
|
|
274
|
+
* The minimum cannot increase while a release is pending.
|
|
275
|
+
**/
|
|
276
|
+
MinimumSatoshisIncreaseBlockedByPendingRelease: AugmentedError<ApiType>;
|
|
163
277
|
/**
|
|
164
278
|
* The price provider has no bitcoin prices available. This is a temporary error
|
|
165
279
|
**/
|
|
@@ -169,9 +283,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
169
283
|
**/
|
|
170
284
|
NoPermissions: AugmentedError<ApiType>;
|
|
171
285
|
/**
|
|
172
|
-
*
|
|
286
|
+
* The requested securitization matches the Lock's current securitization.
|
|
173
287
|
**/
|
|
174
|
-
|
|
288
|
+
NoResecuritizationChange: AugmentedError<ApiType>;
|
|
175
289
|
/**
|
|
176
290
|
* No Vault public keys are available
|
|
177
291
|
**/
|
|
@@ -219,9 +333,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
219
333
|
**/
|
|
220
334
|
BitcoinHeightNotConfirmed: AugmentedError<ApiType>;
|
|
221
335
|
/**
|
|
222
|
-
* Duplicated
|
|
336
|
+
* Duplicated BitcoinLockId. Already in use
|
|
223
337
|
**/
|
|
224
|
-
|
|
338
|
+
DuplicateLockId: AugmentedError<ApiType>;
|
|
225
339
|
/**
|
|
226
340
|
* Insufficient bitcoin amount
|
|
227
341
|
**/
|
|
@@ -234,14 +348,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
234
348
|
* Invalid bitcoin sync height attempted
|
|
235
349
|
**/
|
|
236
350
|
InvalidBitcoinSyncHeight: AugmentedError<ApiType>;
|
|
237
|
-
/**
|
|
238
|
-
* This Lock already has an attached funding UTXO
|
|
239
|
-
**/
|
|
240
|
-
LockAlreadyFunded: AugmentedError<ApiType>;
|
|
241
|
-
/**
|
|
242
|
-
* Too many candidate UTXOs are being stored for this lock
|
|
243
|
-
**/
|
|
244
|
-
MaxCandidateUtxosExceeded: AugmentedError<ApiType>;
|
|
245
351
|
/**
|
|
246
352
|
* Too many UTXOs are being watched
|
|
247
353
|
**/
|
|
@@ -267,11 +373,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
267
373
|
**/
|
|
268
374
|
ScriptPubkeyConflict: AugmentedError<ApiType>;
|
|
269
375
|
/**
|
|
270
|
-
*
|
|
271
|
-
**/
|
|
272
|
-
UtxoNotCandidate: AugmentedError<ApiType>;
|
|
273
|
-
/**
|
|
274
|
-
* Locked Utxo Not Found
|
|
376
|
+
* Watched Lock or attached UTXO not found.
|
|
275
377
|
**/
|
|
276
378
|
UtxoNotLocked: AugmentedError<ApiType>;
|
|
277
379
|
};
|
|
@@ -1259,10 +1361,18 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1259
1361
|
* The bond lot is already scheduled for release.
|
|
1260
1362
|
**/
|
|
1261
1363
|
BondLotAlreadyReleasing: AugmentedError<ApiType>;
|
|
1364
|
+
/**
|
|
1365
|
+
* Historical metrics can only be backfilled for vault bond lots.
|
|
1366
|
+
**/
|
|
1367
|
+
BondLotCannotBeBackfilled: AugmentedError<ApiType>;
|
|
1262
1368
|
/**
|
|
1263
1369
|
* Only an active vault bond owned by its operator can be used as flexible.
|
|
1264
1370
|
**/
|
|
1265
1371
|
BondLotCannotBeFlexible: AugmentedError<ApiType>;
|
|
1372
|
+
/**
|
|
1373
|
+
* The lot's metrics changed since the backfill was calculated.
|
|
1374
|
+
**/
|
|
1375
|
+
BondLotMetricsChanged: AugmentedError<ApiType>;
|
|
1266
1376
|
/**
|
|
1267
1377
|
* The bond lot could not be found.
|
|
1268
1378
|
**/
|
|
@@ -1279,10 +1389,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1279
1389
|
* The bonus approval nonce has already been consumed or superseded.
|
|
1280
1390
|
**/
|
|
1281
1391
|
BonusApprovalAlreadyUsed: AugmentedError<ApiType>;
|
|
1282
|
-
/**
|
|
1283
|
-
* The approved bonus plus the vault's profit sharing exceeds 100%.
|
|
1284
|
-
**/
|
|
1285
|
-
BonusApprovalExceedsProfitSharing: AugmentedError<ApiType>;
|
|
1286
1392
|
/**
|
|
1287
1393
|
* The bonus approval already expired.
|
|
1288
1394
|
**/
|
|
@@ -1296,21 +1402,29 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1296
1402
|
**/
|
|
1297
1403
|
BonusApprovalWrongVault: AugmentedError<ApiType>;
|
|
1298
1404
|
/**
|
|
1299
|
-
* The vault doesn't have enough
|
|
1405
|
+
* The vault doesn't have enough raw securitization to support this bond purchase.
|
|
1300
1406
|
**/
|
|
1301
1407
|
InsufficientBondSpace: AugmentedError<ApiType>;
|
|
1302
1408
|
/**
|
|
1303
1409
|
* An internal error occurred.
|
|
1304
1410
|
**/
|
|
1305
1411
|
InternalError: AugmentedError<ApiType>;
|
|
1412
|
+
/**
|
|
1413
|
+
* The proposed backfill would reduce or corrupt the lot's earnings metrics.
|
|
1414
|
+
**/
|
|
1415
|
+
InvalidBondLotMetrics: AugmentedError<ApiType>;
|
|
1306
1416
|
/**
|
|
1307
1417
|
* The bonus approval signature is invalid or unauthorized.
|
|
1308
1418
|
**/
|
|
1309
1419
|
InvalidBonusApprovalSignature: AugmentedError<ApiType>;
|
|
1310
1420
|
/**
|
|
1311
|
-
* The
|
|
1421
|
+
* The network has reached the direct-payout vault bond lot admission limit.
|
|
1422
|
+
**/
|
|
1423
|
+
MaxArgonBondLotsExceeded: AugmentedError<ApiType>;
|
|
1424
|
+
/**
|
|
1425
|
+
* The vault already has the maximum number of flexible bond lots.
|
|
1312
1426
|
**/
|
|
1313
|
-
|
|
1427
|
+
MaxFlexibleBondLotsExceeded: AugmentedError<ApiType>;
|
|
1314
1428
|
/**
|
|
1315
1429
|
* Too many bond lot releases are scheduled for the same frame.
|
|
1316
1430
|
**/
|
|
@@ -1359,13 +1473,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1359
1473
|
**/
|
|
1360
1474
|
AccountBelowMinimumBalance: AugmentedError<ApiType>;
|
|
1361
1475
|
/**
|
|
1362
|
-
*
|
|
1476
|
+
* Held Argonots cannot be reduced below the amount already crosschain-encumbered.
|
|
1363
1477
|
**/
|
|
1364
|
-
|
|
1478
|
+
ArgonotsBelowEncumberedBacking: AugmentedError<ApiType>;
|
|
1365
1479
|
/**
|
|
1366
|
-
*
|
|
1480
|
+
* Bitcoin conversion to compressed pubkey failed
|
|
1367
1481
|
**/
|
|
1368
|
-
|
|
1482
|
+
BitcoinConversionFailed: AugmentedError<ApiType>;
|
|
1369
1483
|
/**
|
|
1370
1484
|
* A funding change is already scheduled
|
|
1371
1485
|
**/
|