@argonprotocol/mainchain 1.5.2-dev.75aac80b → 1.5.2-dev.7cc5fb12
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/ArgonToken.sol/ArgonToken.json +11 -11
- package/browser/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +11 -11
- package/browser/artifacts/contracts/MintingGateway.sol/MintingGateway.json +5 -5
- package/browser/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +3 -3
- package/browser/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +3 -3
- package/browser/index.d.ts +292 -255
- package/browser/index.js +35 -35
- package/browser/index.js.map +1 -1
- 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 +5 -5
- package/lib/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +3 -3
- package/lib/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +3 -3
- package/lib/index.cjs +35 -35
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +292 -255
- package/lib/index.d.ts +292 -255
- package/lib/index.js +35 -35
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/interfaces/augment-api-consts.ts +1 -1
- package/src/interfaces/augment-api-errors.ts +13 -9
- package/src/interfaces/augment-api-events.ts +9 -26
- package/src/interfaces/augment-api-query.ts +26 -5
- package/src/interfaces/augment-api-tx.ts +47 -22
- package/src/interfaces/lookup.ts +227 -209
- package/src/interfaces/registry.ts +6 -0
- package/src/interfaces/types-lookup.ts +232 -216
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.7cc5fb12",
|
|
4
4
|
"description": "A client for accessing the Argon mainchain apis.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@argonprotocol/ethereum-contracts": "workspace:*",
|
|
71
|
-
"@argonprotocol/testing": "1.5.2-dev.
|
|
71
|
+
"@argonprotocol/testing": "1.5.2-dev.7cc5fb12",
|
|
72
72
|
"@polkadot/typegen": "^17.0.1",
|
|
73
73
|
"@substrate/ss58-registry": "^1.51.0",
|
|
74
74
|
"@types/node": "^20",
|
|
@@ -101,7 +101,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
101
101
|
**/
|
|
102
102
|
orphanedUtxoReleaseExpiryFrames: u64 & AugmentedConst<ApiType>;
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* Initial Bitcoin deposit window, measured in Bitcoin blocks.
|
|
105
105
|
**/
|
|
106
106
|
securitizationHoldBlocks: u64 & AugmentedConst<ApiType>;
|
|
107
107
|
/**
|
|
@@ -102,6 +102,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
102
102
|
* A source Lock's securitization does not cover the requested allocation and liability.
|
|
103
103
|
**/
|
|
104
104
|
InsufficientSecuritization: AugmentedError<ApiType>;
|
|
105
|
+
/**
|
|
106
|
+
* The fee coupon is invalid, expired, or already consumed.
|
|
107
|
+
**/
|
|
108
|
+
InvalidFeeCoupon: AugmentedError<ApiType>;
|
|
105
109
|
/**
|
|
106
110
|
* The requested source Lock does not exist.
|
|
107
111
|
**/
|
|
@@ -138,6 +142,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
138
142
|
* The Fission's ratchet counter cannot be incremented.
|
|
139
143
|
**/
|
|
140
144
|
RatchetNumberOverflow: AugmentedError<ApiType>;
|
|
145
|
+
/**
|
|
146
|
+
* The Vault could not upgrade the guarantee assigned to this Fission.
|
|
147
|
+
**/
|
|
148
|
+
ResecuritizationFailed: AugmentedError<ApiType>;
|
|
141
149
|
/**
|
|
142
150
|
* The source Lock already has the maximum number of active Fissions.
|
|
143
151
|
**/
|
|
@@ -221,10 +229,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
221
229
|
* The requested Lock securitization has fewer satoshis than its active Fissions.
|
|
222
230
|
**/
|
|
223
231
|
InsufficientSatoshisForFissions: AugmentedError<ApiType>;
|
|
224
|
-
/**
|
|
225
|
-
* The requested Lock securitization does not cover its active Fission liabilities.
|
|
226
|
-
**/
|
|
227
|
-
InsufficientSecuritizationForFissions: AugmentedError<ApiType>;
|
|
228
232
|
InsufficientVaultFunds: AugmentedError<ApiType>;
|
|
229
233
|
/**
|
|
230
234
|
* The external destination amount must be nonzero and fit with the network fee.
|
|
@@ -247,7 +251,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
247
251
|
**/
|
|
248
252
|
LockHasActiveFissions: AugmentedError<ApiType>;
|
|
249
253
|
/**
|
|
250
|
-
* A Lock
|
|
254
|
+
* A Lock's guarantee cannot be changed while release is pending.
|
|
251
255
|
**/
|
|
252
256
|
LockInProcessOfRelease: AugmentedError<ApiType>;
|
|
253
257
|
/**
|
|
@@ -279,13 +283,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
279
283
|
**/
|
|
280
284
|
NoBitcoinPricesAvailable: AugmentedError<ApiType>;
|
|
281
285
|
/**
|
|
282
|
-
* The
|
|
286
|
+
* The requested securitization matches the Lock's current securitization.
|
|
283
287
|
**/
|
|
284
|
-
|
|
288
|
+
NoGuaranteeChange: AugmentedError<ApiType>;
|
|
285
289
|
/**
|
|
286
|
-
* The
|
|
290
|
+
* The user does not have permissions to perform this action
|
|
287
291
|
**/
|
|
288
|
-
|
|
292
|
+
NoPermissions: AugmentedError<ApiType>;
|
|
289
293
|
/**
|
|
290
294
|
* No Vault public keys are available
|
|
291
295
|
**/
|
|
@@ -401,7 +401,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
401
401
|
lockId: u64,
|
|
402
402
|
vaultId: u32,
|
|
403
403
|
securitizationBasis: ArgonPrimitivesVaultBitcoinSecuritizationBasis,
|
|
404
|
-
|
|
404
|
+
securitizationMicrogons: u128,
|
|
405
405
|
accountId: AccountId32,
|
|
406
406
|
securityFee: u128,
|
|
407
407
|
],
|
|
@@ -409,7 +409,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
409
409
|
lockId: u64;
|
|
410
410
|
vaultId: u32;
|
|
411
411
|
securitizationBasis: ArgonPrimitivesVaultBitcoinSecuritizationBasis;
|
|
412
|
-
|
|
412
|
+
securitizationMicrogons: u128;
|
|
413
413
|
accountId: AccountId32;
|
|
414
414
|
securityFee: u128;
|
|
415
415
|
}
|
|
@@ -419,7 +419,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
419
419
|
[lockId: u64, vaultId: u32, isFlexible: bool],
|
|
420
420
|
{ lockId: u64; vaultId: u32; isFlexible: bool }
|
|
421
421
|
>;
|
|
422
|
-
|
|
422
|
+
BitcoinLockGuaranteeSet: AugmentedEvent<
|
|
423
423
|
ApiType,
|
|
424
424
|
[
|
|
425
425
|
lockId: u64,
|
|
@@ -2261,14 +2261,14 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2261
2261
|
[
|
|
2262
2262
|
vaultId: u32,
|
|
2263
2263
|
locker: AccountId32,
|
|
2264
|
-
|
|
2264
|
+
securitizationMicrogons: u128,
|
|
2265
2265
|
feeRevenue: u128,
|
|
2266
2266
|
didUseFeeCoupon: bool,
|
|
2267
2267
|
],
|
|
2268
2268
|
{
|
|
2269
2269
|
vaultId: u32;
|
|
2270
2270
|
locker: AccountId32;
|
|
2271
|
-
|
|
2271
|
+
securitizationMicrogons: u128;
|
|
2272
2272
|
feeRevenue: u128;
|
|
2273
2273
|
didUseFeeCoupon: bool;
|
|
2274
2274
|
}
|
|
@@ -2299,30 +2299,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2299
2299
|
>;
|
|
2300
2300
|
VaultCreated: AugmentedEvent<
|
|
2301
2301
|
ApiType,
|
|
2302
|
-
[
|
|
2303
|
-
|
|
2304
|
-
securitization: u128,
|
|
2305
|
-
securitizationRatio: u128,
|
|
2306
|
-
operatorAccountId: AccountId32,
|
|
2307
|
-
openedTick: u64,
|
|
2308
|
-
],
|
|
2309
|
-
{
|
|
2310
|
-
vaultId: u32;
|
|
2311
|
-
securitization: u128;
|
|
2312
|
-
securitizationRatio: u128;
|
|
2313
|
-
operatorAccountId: AccountId32;
|
|
2314
|
-
openedTick: u64;
|
|
2315
|
-
}
|
|
2302
|
+
[vaultId: u32, securitization: u128, operatorAccountId: AccountId32, openedTick: u64],
|
|
2303
|
+
{ vaultId: u32; securitization: u128; operatorAccountId: AccountId32; openedTick: u64 }
|
|
2316
2304
|
>;
|
|
2317
2305
|
VaultModified: AugmentedEvent<
|
|
2318
2306
|
ApiType,
|
|
2319
|
-
[vaultId: u32, securitization: u128, securitizationTarget: u128
|
|
2320
|
-
{
|
|
2321
|
-
vaultId: u32;
|
|
2322
|
-
securitization: u128;
|
|
2323
|
-
securitizationTarget: u128;
|
|
2324
|
-
securitizationRatio: u128;
|
|
2325
|
-
}
|
|
2307
|
+
[vaultId: u32, securitization: u128, securitizationTarget: u128],
|
|
2308
|
+
{ vaultId: u32; securitization: u128; securitizationTarget: u128 }
|
|
2326
2309
|
>;
|
|
2327
2310
|
/**
|
|
2328
2311
|
* Vault revenue was not collected within the required window, so has been burned
|
|
@@ -50,7 +50,7 @@ import type {
|
|
|
50
50
|
ArgonPrimitivesNotaryNotaryRecord,
|
|
51
51
|
ArgonPrimitivesProvidersBlockSealerInfo,
|
|
52
52
|
ArgonPrimitivesTickTicker,
|
|
53
|
-
|
|
53
|
+
ArgonPrimitivesTreasuryNetworkPositionQuantities,
|
|
54
54
|
ArgonPrimitivesVault,
|
|
55
55
|
ArgonPrimitivesVaultVaultArgonotSecuritization,
|
|
56
56
|
FrameSupportDispatchPerDispatchClassWeight,
|
|
@@ -113,6 +113,7 @@ import type {
|
|
|
113
113
|
PalletTreasuryBondLot,
|
|
114
114
|
PalletTreasuryBondLotSummary,
|
|
115
115
|
PalletTreasuryFrameArgonotBondParticipants,
|
|
116
|
+
PalletTreasuryFrameVaultBitcoin,
|
|
116
117
|
PalletTreasuryFrameVaultCapital,
|
|
117
118
|
PalletTreasuryPositionsPosition,
|
|
118
119
|
PalletTreasuryVaultBondState,
|
|
@@ -255,13 +256,17 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
255
256
|
[u32, AccountId32]
|
|
256
257
|
>;
|
|
257
258
|
/**
|
|
258
|
-
* Highest Bitcoin UTXO sync height
|
|
259
|
+
* Highest Bitcoin UTXO sync height checked for funding expirations; failures remain pending.
|
|
259
260
|
**/
|
|
260
261
|
lastProcessedSecuritizationHoldBitcoinHeight: AugmentedQuery<
|
|
261
262
|
ApiType,
|
|
262
263
|
() => Observable<Option<u64>>,
|
|
263
264
|
[]
|
|
264
265
|
>;
|
|
266
|
+
/**
|
|
267
|
+
* Resume retries after this Lock so a persistent failure cannot starve other expirations.
|
|
268
|
+
**/
|
|
269
|
+
lastRetriedLockExpiration: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
|
|
265
270
|
/**
|
|
266
271
|
* Utxos that have been requested to be cosigned for releasing
|
|
267
272
|
**/
|
|
@@ -367,6 +372,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
367
372
|
) => Observable<Option<PalletBitcoinLocksOrphanedUtxo>>,
|
|
368
373
|
[AccountId32, ArgonPrimitivesBitcoinUtxoRef]
|
|
369
374
|
>;
|
|
375
|
+
/**
|
|
376
|
+
* Locks whose funding-window or terminal expiration failed and must be retried.
|
|
377
|
+
**/
|
|
378
|
+
pendingLockExpirations: AugmentedQuery<
|
|
379
|
+
ApiType,
|
|
380
|
+
(arg: u64 | AnyNumber | Uint8Array) => Observable<Option<Null>>,
|
|
381
|
+
[u64]
|
|
382
|
+
>;
|
|
370
383
|
/**
|
|
371
384
|
* Cosigned partial releases awaiting confirmation on Bitcoin.
|
|
372
385
|
**/
|
|
@@ -1833,6 +1846,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1833
1846
|
() => Observable<Option<PalletTreasuryFrameArgonotBondParticipants>>,
|
|
1834
1847
|
[]
|
|
1835
1848
|
>;
|
|
1849
|
+
/**
|
|
1850
|
+
* Covered Bitcoin locked alongside vault capital for frames using independent reward tiers.
|
|
1851
|
+
**/
|
|
1852
|
+
currentFrameVaultBitcoin: AugmentedQuery<
|
|
1853
|
+
ApiType,
|
|
1854
|
+
() => Observable<Option<PalletTreasuryFrameVaultBitcoin>>,
|
|
1855
|
+
[]
|
|
1856
|
+
>;
|
|
1836
1857
|
/**
|
|
1837
1858
|
* The network bond total and vault capital locked for the current frame's payout.
|
|
1838
1859
|
**/
|
|
@@ -1895,12 +1916,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1895
1916
|
};
|
|
1896
1917
|
treasuryPositions: {
|
|
1897
1918
|
/**
|
|
1898
|
-
*
|
|
1899
|
-
* Treasury
|
|
1919
|
+
* Account contribution totals and Vault Bitcoin coverage, maintained as sources change.
|
|
1920
|
+
* Treasury freezes these network quantities at each frame boundary.
|
|
1900
1921
|
**/
|
|
1901
1922
|
networkTotals: AugmentedQuery<
|
|
1902
1923
|
ApiType,
|
|
1903
|
-
() => Observable<
|
|
1924
|
+
() => Observable<ArgonPrimitivesTreasuryNetworkPositionQuantities>,
|
|
1904
1925
|
[]
|
|
1905
1926
|
>;
|
|
1906
1927
|
/**
|
|
@@ -49,6 +49,7 @@ import type {
|
|
|
49
49
|
ArgonRuntimeProxyType,
|
|
50
50
|
ArgonRuntimeSessionKeys,
|
|
51
51
|
PalletBalancesAdjustmentDirection,
|
|
52
|
+
PalletBitcoinLocksFeeCoupon,
|
|
52
53
|
PalletBitcoinLocksLockOptions,
|
|
53
54
|
PalletBootstrapEndpointPubkey,
|
|
54
55
|
PalletBootstrapRecoveryProof,
|
|
@@ -300,8 +301,28 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
300
301
|
lockId: Compact<u64> | AnyNumber | Uint8Array,
|
|
301
302
|
satoshis: Compact<u64> | AnyNumber | Uint8Array,
|
|
302
303
|
microgonsAtTargetPerBtc: Compact<u128> | AnyNumber | Uint8Array,
|
|
304
|
+
feeCoupon:
|
|
305
|
+
| Option<PalletBitcoinLocksFeeCoupon>
|
|
306
|
+
| null
|
|
307
|
+
| Uint8Array
|
|
308
|
+
| PalletBitcoinLocksFeeCoupon
|
|
309
|
+
| {
|
|
310
|
+
feeDiscount?: any;
|
|
311
|
+
securitizationSpaceToUnreserve?: any;
|
|
312
|
+
expiresAtFrame?: any;
|
|
313
|
+
nonce?: any;
|
|
314
|
+
signature?: any;
|
|
315
|
+
}
|
|
316
|
+
| string,
|
|
303
317
|
) => SubmittableExtrinsic<ApiType>,
|
|
304
|
-
[
|
|
318
|
+
[
|
|
319
|
+
Compact<u64>,
|
|
320
|
+
Compact<u64>,
|
|
321
|
+
Compact<u64>,
|
|
322
|
+
Compact<u64>,
|
|
323
|
+
Compact<u128>,
|
|
324
|
+
Option<PalletBitcoinLocksFeeCoupon>,
|
|
325
|
+
]
|
|
305
326
|
>;
|
|
306
327
|
/**
|
|
307
328
|
* Ratchet an active Fission to a replacement target-normalized BTC value.
|
|
@@ -310,8 +331,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
310
331
|
(
|
|
311
332
|
fissionId: Compact<u64> | AnyNumber | Uint8Array,
|
|
312
333
|
microgonsAtTargetPerBtc: Compact<u128> | AnyNumber | Uint8Array,
|
|
334
|
+
feeCoupon:
|
|
335
|
+
| Option<PalletBitcoinLocksFeeCoupon>
|
|
336
|
+
| null
|
|
337
|
+
| Uint8Array
|
|
338
|
+
| PalletBitcoinLocksFeeCoupon
|
|
339
|
+
| {
|
|
340
|
+
feeDiscount?: any;
|
|
341
|
+
securitizationSpaceToUnreserve?: any;
|
|
342
|
+
expiresAtFrame?: any;
|
|
343
|
+
nonce?: any;
|
|
344
|
+
signature?: any;
|
|
345
|
+
}
|
|
346
|
+
| string,
|
|
313
347
|
) => SubmittableExtrinsic<ApiType>,
|
|
314
|
-
[Compact<u64>, Compact<u128>]
|
|
348
|
+
[Compact<u64>, Compact<u128>, Option<PalletBitcoinLocksFeeCoupon>]
|
|
315
349
|
>;
|
|
316
350
|
};
|
|
317
351
|
bitcoinLocks: {
|
|
@@ -410,10 +444,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
410
444
|
) => SubmittableExtrinsic<ApiType>,
|
|
411
445
|
[u64, Bytes, u64, u64]
|
|
412
446
|
>;
|
|
447
|
+
setFlexible: AugmentedSubmittable<
|
|
448
|
+
(
|
|
449
|
+
lockId: u64 | AnyNumber | Uint8Array,
|
|
450
|
+
isFlexible: bool | boolean | Uint8Array,
|
|
451
|
+
) => SubmittableExtrinsic<ApiType>,
|
|
452
|
+
[u64, bool]
|
|
453
|
+
>;
|
|
413
454
|
/**
|
|
414
|
-
* Replace
|
|
455
|
+
* Replace the Lock's guarantee, leaving active Fission guarantees unchanged.
|
|
415
456
|
**/
|
|
416
|
-
|
|
457
|
+
setGuarantee: AugmentedSubmittable<
|
|
417
458
|
(
|
|
418
459
|
lockId: u64 | AnyNumber | Uint8Array,
|
|
419
460
|
satoshis: Compact<u64> | AnyNumber | Uint8Array,
|
|
@@ -427,13 +468,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
427
468
|
) => SubmittableExtrinsic<ApiType>,
|
|
428
469
|
[u64, Compact<u64>, Option<PalletBitcoinLocksLockOptions>]
|
|
429
470
|
>;
|
|
430
|
-
setFlexible: AugmentedSubmittable<
|
|
431
|
-
(
|
|
432
|
-
lockId: u64 | AnyNumber | Uint8Array,
|
|
433
|
-
isFlexible: bool | boolean | Uint8Array,
|
|
434
|
-
) => SubmittableExtrinsic<ApiType>,
|
|
435
|
-
[u64, bool]
|
|
436
|
-
>;
|
|
437
471
|
};
|
|
438
472
|
bitcoinUtxos: {
|
|
439
473
|
/**
|
|
@@ -2326,13 +2360,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2326
2360
|
(
|
|
2327
2361
|
vaultConfig:
|
|
2328
2362
|
| PalletVaultsVaultConfig
|
|
2329
|
-
| {
|
|
2330
|
-
terms?: any;
|
|
2331
|
-
delegateAccountId?: any;
|
|
2332
|
-
securitization?: any;
|
|
2333
|
-
bitcoinXpubkey?: any;
|
|
2334
|
-
securitizationRatio?: any;
|
|
2335
|
-
}
|
|
2363
|
+
| { terms?: any; delegateAccountId?: any; securitization?: any; bitcoinXpubkey?: any }
|
|
2336
2364
|
| string
|
|
2337
2365
|
| Uint8Array,
|
|
2338
2366
|
) => SubmittableExtrinsic<ApiType>,
|
|
@@ -2341,8 +2369,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2341
2369
|
/**
|
|
2342
2370
|
* Modify funds allocated by the vault without changing existing Bitcoin locks.
|
|
2343
2371
|
*
|
|
2344
|
-
* The securitization percent must be maintained or increased.
|
|
2345
|
-
*
|
|
2346
2372
|
* Funds not yet used in a reward snapshot may leave without notice if not needed for
|
|
2347
2373
|
* Bitcoin commitments. Reward-committed funds require a one-year Bitcoin-height exit
|
|
2348
2374
|
* notice and remain held until both the notice and any Bitcoin commitment have ended.
|
|
@@ -2352,9 +2378,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2352
2378
|
(
|
|
2353
2379
|
vaultId: u32 | AnyNumber | Uint8Array,
|
|
2354
2380
|
securitization: u128 | AnyNumber | Uint8Array,
|
|
2355
|
-
securitizationRatio: u128 | AnyNumber | Uint8Array,
|
|
2356
2381
|
) => SubmittableExtrinsic<ApiType>,
|
|
2357
|
-
[u32, u128
|
|
2382
|
+
[u32, u128]
|
|
2358
2383
|
>;
|
|
2359
2384
|
/**
|
|
2360
2385
|
* Change the terms of this vault. The change will be applied at the next mining frame
|