@argonprotocol/mainchain 1.4.11 → 1.4.12
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/index.d.ts +3990 -391
- package/browser/index.js +120 -70
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +118 -68
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +3990 -391
- package/lib/index.d.ts +3990 -391
- package/lib/index.js +120 -70
- package/lib/index.js.map +1 -1
- package/package.json +7 -4
- package/src/interfaces/augment-api-consts.ts +6 -14
- package/src/interfaces/augment-api-errors.ts +33 -17
- package/src/interfaces/augment-api-events.ts +18 -18
- package/src/interfaces/augment-api-query.ts +33 -12
- package/src/interfaces/augment-api-tx.ts +34 -52
- package/src/interfaces/lookup.ts +254 -254
- package/src/interfaces/registry.ts +2 -2
- package/src/interfaces/types-lookup.ts +283 -281
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/mainchain",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.12",
|
|
4
4
|
"description": "A client for accessing the Argon mainchain apis.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,11 +14,14 @@
|
|
|
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
18
|
"generate:defs": "polkadot-types-from-defs --endpoint metadata.json --input ./src/interfaces --package @argonprotocol/mainchain/interfaces",
|
|
18
19
|
"generate:meta": "polkadot-types-from-chain --endpoint metadata.json --output ./src/interfaces --package @argonprotocol/mainchain/interfaces --strict",
|
|
19
20
|
"test": "vitest --run --config vitest.config.ts",
|
|
20
|
-
"tsc": "yarn workspace @argonprotocol/ethereum-contracts build && tsup",
|
|
21
|
-
"
|
|
21
|
+
"tsc": "yarn workspace @argonprotocol/ethereum-contracts build && yarn generate:contract-declarations && tsup && yarn validate:package",
|
|
22
|
+
"tsup": "yarn tsc",
|
|
23
|
+
"validate:package": "tsx src/scripts/validatePackage.ts",
|
|
24
|
+
"watch": "yarn generate:contract-declarations && tsup --watch",
|
|
22
25
|
"typecheck": "tsc --noEmit -p tsconfig.test.json"
|
|
23
26
|
},
|
|
24
27
|
"files": [
|
|
@@ -65,7 +68,7 @@
|
|
|
65
68
|
},
|
|
66
69
|
"devDependencies": {
|
|
67
70
|
"@argonprotocol/ethereum-contracts": "workspace:*",
|
|
68
|
-
"@argonprotocol/testing": "1.4.
|
|
71
|
+
"@argonprotocol/testing": "1.4.12",
|
|
69
72
|
"@polkadot/typegen": "^16.5.6",
|
|
70
73
|
"@substrate/ss58-registry": "^1.51.0",
|
|
71
74
|
"@types/node": "^20",
|
|
@@ -103,7 +103,8 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
103
103
|
**/
|
|
104
104
|
maximumSatoshiThresholdFromExpected: u64 & AugmentedConst<ApiType>;
|
|
105
105
|
/**
|
|
106
|
-
* Maximum bitcoin blocks to
|
|
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.
|
|
107
108
|
**/
|
|
108
109
|
maxPendingConfirmationBlocks: u64 & AugmentedConst<ApiType>;
|
|
109
110
|
/**
|
|
@@ -375,6 +376,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
375
376
|
* becomes operational.
|
|
376
377
|
**/
|
|
377
378
|
bitcoinLockSizeForAccessCode: u128 & AugmentedConst<ApiType>;
|
|
379
|
+
/**
|
|
380
|
+
* Maximum number of accrued access codes awarded at one frame boundary.
|
|
381
|
+
**/
|
|
382
|
+
maxAccessCodeAwardsPerFrame: u32 & AugmentedConst<ApiType>;
|
|
378
383
|
/**
|
|
379
384
|
* Maximum number of available access codes allowed at once.
|
|
380
385
|
**/
|
|
@@ -646,11 +651,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
646
651
|
batchedCallsLimit: u32 & AugmentedConst<ApiType>;
|
|
647
652
|
};
|
|
648
653
|
vaults: {
|
|
649
|
-
/**
|
|
650
|
-
* One no-fee stale `initialize_for` failure is allowed for each this-many units of lost
|
|
651
|
-
* `available_for_lock`.
|
|
652
|
-
**/
|
|
653
|
-
capacityDropAttemptUnit: u128 & AugmentedConst<ApiType>;
|
|
654
654
|
/**
|
|
655
655
|
* Max concurrent cosigns pending per vault
|
|
656
656
|
**/
|
|
@@ -659,10 +659,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
659
659
|
* The max pending vault term changes per block
|
|
660
660
|
**/
|
|
661
661
|
maxPendingTermModificationsPerTick: u32 & AugmentedConst<ApiType>;
|
|
662
|
-
/**
|
|
663
|
-
* Maximum number of recent `available_for_lock` drops retained per vault.
|
|
664
|
-
**/
|
|
665
|
-
maxRecentCapacityDropsPerVault: u32 & AugmentedConst<ApiType>;
|
|
666
662
|
/**
|
|
667
663
|
* The max number of vaults that can be created
|
|
668
664
|
**/
|
|
@@ -675,10 +671,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
675
671
|
* Minimum vault securitization required while the operational floor lock is active.
|
|
676
672
|
**/
|
|
677
673
|
operationalMinimumVaultSecuritization: u128 & AugmentedConst<ApiType>;
|
|
678
|
-
/**
|
|
679
|
-
* Number of Argon blocks to keep recent `available_for_lock` drops for stale init checks.
|
|
680
|
-
**/
|
|
681
|
-
recentCapacityDropBlockWindow: u32 & AugmentedConst<ApiType>;
|
|
682
674
|
/**
|
|
683
675
|
* The number of frames within which revenue must be collected
|
|
684
676
|
**/
|
|
@@ -98,6 +98,18 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
98
98
|
* An overflow occurred recording a lock expiration
|
|
99
99
|
**/
|
|
100
100
|
ExpirationAtBlockOverflow: AugmentedError<ApiType>;
|
|
101
|
+
/**
|
|
102
|
+
* The fee coupon nonce is not the next unconsumed nonce.
|
|
103
|
+
**/
|
|
104
|
+
FeeCouponAlreadyUsed: AugmentedError<ApiType>;
|
|
105
|
+
/**
|
|
106
|
+
* The fee coupon is past its expiration frame.
|
|
107
|
+
**/
|
|
108
|
+
FeeCouponExpired: AugmentedError<ApiType>;
|
|
109
|
+
/**
|
|
110
|
+
* Fee coupons can only be applied when initializing a lock.
|
|
111
|
+
**/
|
|
112
|
+
FeeCouponOnlyForInitialization: AugmentedError<ApiType>;
|
|
101
113
|
/**
|
|
102
114
|
* Cannot request an orphaned release for the funding UTXO
|
|
103
115
|
**/
|
|
@@ -124,6 +136,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
124
136
|
* The bitcoin script to lock this bitcoin has errors
|
|
125
137
|
**/
|
|
126
138
|
InvalidBitcoinScript: AugmentedError<ApiType>;
|
|
139
|
+
/**
|
|
140
|
+
* The fee coupon was not signed by the vault delegate.
|
|
141
|
+
**/
|
|
142
|
+
InvalidFeeCouponSignature: AugmentedError<ApiType>;
|
|
127
143
|
/**
|
|
128
144
|
* Funding would result in an overflow of the balance type
|
|
129
145
|
**/
|
|
@@ -1012,6 +1028,11 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1012
1028
|
* One of the linked account ownership proofs is invalid.
|
|
1013
1029
|
**/
|
|
1014
1030
|
InvalidAccountProof: AugmentedError<ApiType>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Profile names must start with an uppercase ASCII letter and otherwise be ASCII
|
|
1033
|
+
* alphanumeric.
|
|
1034
|
+
**/
|
|
1035
|
+
InvalidName: AugmentedError<ApiType>;
|
|
1015
1036
|
/**
|
|
1016
1037
|
* The caller is not one of the accounts included in the registration.
|
|
1017
1038
|
**/
|
|
@@ -1239,17 +1260,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1239
1260
|
**/
|
|
1240
1261
|
BondLotAlreadyReleasing: AugmentedError<ApiType>;
|
|
1241
1262
|
/**
|
|
1242
|
-
* Only an active vault bond owned by its operator can be used as
|
|
1263
|
+
* Only an active vault bond owned by its operator can be used as flexible.
|
|
1243
1264
|
**/
|
|
1244
|
-
|
|
1265
|
+
BondLotCannotBeFlexible: AugmentedError<ApiType>;
|
|
1245
1266
|
/**
|
|
1246
1267
|
* The bond lot could not be found.
|
|
1247
1268
|
**/
|
|
1248
1269
|
BondLotNotFound: AugmentedError<ApiType>;
|
|
1249
|
-
/**
|
|
1250
|
-
* The vault doesn't have enough bitcoin security to support this bond purchase
|
|
1251
|
-
**/
|
|
1252
|
-
BondPurchaseAboveSecurity: AugmentedError<ApiType>;
|
|
1253
1270
|
/**
|
|
1254
1271
|
* The purchase is below the minimum amount.
|
|
1255
1272
|
**/
|
|
@@ -1259,9 +1276,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1259
1276
|
**/
|
|
1260
1277
|
BondPurchaseRejected: AugmentedError<ApiType>;
|
|
1261
1278
|
/**
|
|
1262
|
-
* The
|
|
1279
|
+
* The bonus approval nonce has already been consumed or superseded.
|
|
1280
|
+
**/
|
|
1281
|
+
BonusApprovalAlreadyUsed: AugmentedError<ApiType>;
|
|
1282
|
+
/**
|
|
1283
|
+
* The approved bonus plus the vault's profit sharing exceeds 100%.
|
|
1263
1284
|
**/
|
|
1264
|
-
|
|
1285
|
+
BonusApprovalExceedsProfitSharing: AugmentedError<ApiType>;
|
|
1265
1286
|
/**
|
|
1266
1287
|
* The bonus approval already expired.
|
|
1267
1288
|
**/
|
|
@@ -1274,6 +1295,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1274
1295
|
* The bonus approval was signed for a different vault.
|
|
1275
1296
|
**/
|
|
1276
1297
|
BonusApprovalWrongVault: AugmentedError<ApiType>;
|
|
1298
|
+
/**
|
|
1299
|
+
* The vault doesn't have enough bitcoin security to support this bond purchase
|
|
1300
|
+
**/
|
|
1301
|
+
InsufficientBondSpace: AugmentedError<ApiType>;
|
|
1277
1302
|
/**
|
|
1278
1303
|
* An internal error occurred.
|
|
1279
1304
|
**/
|
|
@@ -1362,10 +1387,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1362
1387
|
* The bitcoin script to lock this bitcoin has errors
|
|
1363
1388
|
**/
|
|
1364
1389
|
InvalidBitcoinScript: AugmentedError<ApiType>;
|
|
1365
|
-
/**
|
|
1366
|
-
* Treasury bond sharing plus bonus cannot exceed 100%.
|
|
1367
|
-
**/
|
|
1368
|
-
InvalidBondSharingTerms: AugmentedError<ApiType>;
|
|
1369
1390
|
/**
|
|
1370
1391
|
* An invalid securitization percent was provided for the vault. NOTE: it cannot be
|
|
1371
1392
|
* decreased (or negative)
|
|
@@ -1375,11 +1396,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1375
1396
|
* Funding would result in an overflow of the balance type
|
|
1376
1397
|
**/
|
|
1377
1398
|
InvalidVaultAmount: AugmentedError<ApiType>;
|
|
1378
|
-
/**
|
|
1379
|
-
* Vault names must start with an uppercase ASCII letter and otherwise be ASCII
|
|
1380
|
-
* alphanumeric.
|
|
1381
|
-
**/
|
|
1382
|
-
InvalidVaultName: AugmentedError<ApiType>;
|
|
1383
1399
|
/**
|
|
1384
1400
|
* Unable to decode xpubkey
|
|
1385
1401
|
**/
|
|
@@ -317,11 +317,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
317
317
|
[utxoId: u64, vaultId: u32, compensationAmount: u128, compensatedAccountId: AccountId32],
|
|
318
318
|
{ utxoId: u64; vaultId: u32; compensationAmount: u128; compensatedAccountId: AccountId32 }
|
|
319
319
|
>;
|
|
320
|
-
BitcoinLockBackfillChanged: AugmentedEvent<
|
|
321
|
-
ApiType,
|
|
322
|
-
[utxoId: u64, vaultId: u32, isBackfill: bool],
|
|
323
|
-
{ utxoId: u64; vaultId: u32; isBackfill: bool }
|
|
324
|
-
>;
|
|
325
320
|
BitcoinLockBurned: AugmentedEvent<
|
|
326
321
|
ApiType,
|
|
327
322
|
[utxoId: u64, vaultId: u32, wasUtxoSpent: bool],
|
|
@@ -348,6 +343,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
348
343
|
securityFee: u128;
|
|
349
344
|
}
|
|
350
345
|
>;
|
|
346
|
+
BitcoinLockFlexibleChanged: AugmentedEvent<
|
|
347
|
+
ApiType,
|
|
348
|
+
[utxoId: u64, vaultId: u32, isFlexible: bool],
|
|
349
|
+
{ utxoId: u64; vaultId: u32; isFlexible: bool }
|
|
350
|
+
>;
|
|
351
351
|
BitcoinLockRatcheted: AugmentedEvent<
|
|
352
352
|
ApiType,
|
|
353
353
|
[
|
|
@@ -1847,15 +1847,10 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1847
1847
|
>;
|
|
1848
1848
|
};
|
|
1849
1849
|
treasury: {
|
|
1850
|
-
|
|
1851
|
-
ApiType,
|
|
1852
|
-
[vaultId: u32, backfillBondsReserved: u32],
|
|
1853
|
-
{ vaultId: u32; backfillBondsReserved: u32 }
|
|
1854
|
-
>;
|
|
1855
|
-
BondLotBackfillChanged: AugmentedEvent<
|
|
1850
|
+
BondLotFlexibilityChanged: AugmentedEvent<
|
|
1856
1851
|
ApiType,
|
|
1857
|
-
[vaultId: u32, bondLotId: u64,
|
|
1858
|
-
{ vaultId: u32; bondLotId: u64;
|
|
1852
|
+
[vaultId: u32, bondLotId: u64, isFlexible: bool],
|
|
1853
|
+
{ vaultId: u32; bondLotId: u64; isFlexible: bool }
|
|
1859
1854
|
>;
|
|
1860
1855
|
/**
|
|
1861
1856
|
* A bond purchase entered its active program set.
|
|
@@ -2030,6 +2025,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2030
2025
|
[frameId: u64, totalEligibleBonds: u128, participatingVaults: u32],
|
|
2031
2026
|
{ frameId: u64; totalEligibleBonds: u128; participatingVaults: u32 }
|
|
2032
2027
|
>;
|
|
2028
|
+
ReservedBondSpaceChanged: AugmentedEvent<
|
|
2029
|
+
ApiType,
|
|
2030
|
+
[vaultId: u32, reservedBondSpace: u32],
|
|
2031
|
+
{ vaultId: u32; reservedBondSpace: u32 }
|
|
2032
|
+
>;
|
|
2033
2033
|
};
|
|
2034
2034
|
txPause: {
|
|
2035
2035
|
/**
|
|
@@ -2101,11 +2101,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2101
2101
|
>;
|
|
2102
2102
|
};
|
|
2103
2103
|
vaults: {
|
|
2104
|
-
BackfillSecuritizationReservedChanged: AugmentedEvent<
|
|
2105
|
-
ApiType,
|
|
2106
|
-
[vaultId: u32, backfillSecuritizationReserved: u128],
|
|
2107
|
-
{ vaultId: u32; backfillSecuritizationReserved: u128 }
|
|
2108
|
-
>;
|
|
2109
2104
|
CommittedArgonotsSet: AugmentedEvent<
|
|
2110
2105
|
ApiType,
|
|
2111
2106
|
[vaultId: u32, operatorAccountId: AccountId32, amount: u128],
|
|
@@ -2155,6 +2150,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2155
2150
|
[vaultId: u32, beneficiary: AccountId32, toBeneficiary: u128, burned: u128],
|
|
2156
2151
|
{ vaultId: u32; beneficiary: AccountId32; toBeneficiary: u128; burned: u128 }
|
|
2157
2152
|
>;
|
|
2153
|
+
ReservedSecuritizationSpaceChanged: AugmentedEvent<
|
|
2154
|
+
ApiType,
|
|
2155
|
+
[vaultId: u32, reservedSecuritizationSpace: u128],
|
|
2156
|
+
{ vaultId: u32; reservedSecuritizationSpace: u128 }
|
|
2157
|
+
>;
|
|
2158
2158
|
TreasuryRecordingError: AugmentedEvent<
|
|
2159
2159
|
ApiType,
|
|
2160
2160
|
[vaultId: u32, frameId: u64, vaultEarnings: u128, error: SpRuntimeDispatchError],
|
|
@@ -109,7 +109,6 @@ import type {
|
|
|
109
109
|
PalletTreasuryFrameArgonotBondParticipants,
|
|
110
110
|
PalletTreasuryFrameVaultCapital,
|
|
111
111
|
PalletTreasuryVaultBondState,
|
|
112
|
-
PalletVaultsRecentCapacityDrop,
|
|
113
112
|
PalletVaultsVaultFrameRevenue,
|
|
114
113
|
SpConsensusGrandpaAppPublic,
|
|
115
114
|
SpRuntimeDigest,
|
|
@@ -211,6 +210,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
211
210
|
totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
212
211
|
};
|
|
213
212
|
bitcoinLocks: {
|
|
213
|
+
lastFeeCouponNonceByVaultAndAccount: AugmentedQuery<
|
|
214
|
+
ApiType,
|
|
215
|
+
(
|
|
216
|
+
arg1: u32 | AnyNumber | Uint8Array,
|
|
217
|
+
arg2: AccountId32 | string | Uint8Array,
|
|
218
|
+
) => Observable<Option<u64>>,
|
|
219
|
+
[u32, AccountId32]
|
|
220
|
+
>;
|
|
214
221
|
/**
|
|
215
222
|
* Utxos that have been requested to be cosigned for releasing
|
|
216
223
|
**/
|
|
@@ -343,7 +350,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
343
350
|
[]
|
|
344
351
|
>;
|
|
345
352
|
/**
|
|
346
|
-
* Pending funding entries that have expired
|
|
353
|
+
* Pending funding entries that have expired. These remain watched until their additional
|
|
354
|
+
* orphan-detection window ends, then await bounded cleanup.
|
|
347
355
|
**/
|
|
348
356
|
expiredPendingFunding: AugmentedQuery<
|
|
349
357
|
ApiType,
|
|
@@ -1310,6 +1318,19 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1310
1318
|
>;
|
|
1311
1319
|
};
|
|
1312
1320
|
operationalAccounts: {
|
|
1321
|
+
/**
|
|
1322
|
+
* Set of operational accounts that have met both follow-on access-code thresholds.
|
|
1323
|
+
* The key count weights frame processing without scanning the set twice.
|
|
1324
|
+
**/
|
|
1325
|
+
accessCodeReadyAccounts: AugmentedQuery<
|
|
1326
|
+
ApiType,
|
|
1327
|
+
(arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>,
|
|
1328
|
+
[AccountId32]
|
|
1329
|
+
>;
|
|
1330
|
+
/**
|
|
1331
|
+
* Counter for the related counted storage map
|
|
1332
|
+
**/
|
|
1333
|
+
counterForAccessCodeReadyAccounts: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1313
1334
|
/**
|
|
1314
1335
|
* Whether operational-account access is invite-only.
|
|
1315
1336
|
*
|
|
@@ -1435,7 +1456,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1435
1456
|
**/
|
|
1436
1457
|
current: AugmentedQuery<ApiType, () => Observable<Option<PalletPriceIndexPriceIndex>>, []>;
|
|
1437
1458
|
/**
|
|
1438
|
-
* Stores
|
|
1459
|
+
* Stores the latest submitted Ethereum pricing.
|
|
1439
1460
|
**/
|
|
1440
1461
|
currentEthereumPrice: AugmentedQuery<
|
|
1441
1462
|
ApiType,
|
|
@@ -1737,7 +1758,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1737
1758
|
* The active bond state for a vault.
|
|
1738
1759
|
*
|
|
1739
1760
|
* The bounded payout set keeps the largest bond amount first, then lower `bond_lot_id` first
|
|
1740
|
-
* when amounts tie.
|
|
1761
|
+
* when amounts tie. Flexible lots remain in `BondLotById` and are represented here by their
|
|
1741
1762
|
* aggregate.
|
|
1742
1763
|
**/
|
|
1743
1764
|
bondLotsByVault: AugmentedQuery<
|
|
@@ -1778,6 +1799,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1778
1799
|
(arg: AccountId32 | string | Uint8Array) => Observable<u128>,
|
|
1779
1800
|
[AccountId32]
|
|
1780
1801
|
>;
|
|
1802
|
+
lastBonusApprovalNonceByVaultAndAccount: AugmentedQuery<
|
|
1803
|
+
ApiType,
|
|
1804
|
+
(
|
|
1805
|
+
arg1: u32 | AnyNumber | Uint8Array,
|
|
1806
|
+
arg2: AccountId32 | string | Uint8Array,
|
|
1807
|
+
) => Observable<Option<u64>>,
|
|
1808
|
+
[u32, AccountId32]
|
|
1809
|
+
>;
|
|
1781
1810
|
/**
|
|
1782
1811
|
* The next bond lot id.
|
|
1783
1812
|
**/
|
|
@@ -1859,14 +1888,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1859
1888
|
(arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u32>>,
|
|
1860
1889
|
[u64]
|
|
1861
1890
|
>;
|
|
1862
|
-
/**
|
|
1863
|
-
* Recent reductions in `available_for_lock`, grouped by vault.
|
|
1864
|
-
**/
|
|
1865
|
-
recentCapacityDropsByVault: AugmentedQuery<
|
|
1866
|
-
ApiType,
|
|
1867
|
-
(arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletVaultsRecentCapacityDrop>>,
|
|
1868
|
-
[u32]
|
|
1869
|
-
>;
|
|
1870
1891
|
/**
|
|
1871
1892
|
* Tracks revenue from Bitcoin Locks and Treasury Pools for the trailing frames for each vault
|
|
1872
1893
|
* (a frame is a "mining day" in Argon). Newest frames are first. Frames are removed after the
|
|
@@ -348,6 +348,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
348
348
|
| Uint8Array
|
|
349
349
|
| PalletBitcoinLocksLockOptions
|
|
350
350
|
| { V1: any }
|
|
351
|
+
| { V2: any }
|
|
351
352
|
| string,
|
|
352
353
|
) => SubmittableExtrinsic<ApiType>,
|
|
353
354
|
[
|
|
@@ -357,30 +358,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
357
358
|
Option<PalletBitcoinLocksLockOptions>,
|
|
358
359
|
]
|
|
359
360
|
>;
|
|
360
|
-
initializeFor: AugmentedSubmittable<
|
|
361
|
-
(
|
|
362
|
-
accountId: AccountId32 | string | Uint8Array,
|
|
363
|
-
vaultId: u32 | AnyNumber | Uint8Array,
|
|
364
|
-
satoshis: Compact<u64> | AnyNumber | Uint8Array,
|
|
365
|
-
bitcoinPubkey: ArgonPrimitivesBitcoinCompressedBitcoinPubkey | string | Uint8Array,
|
|
366
|
-
options:
|
|
367
|
-
| Option<PalletBitcoinLocksLockOptions>
|
|
368
|
-
| null
|
|
369
|
-
| Uint8Array
|
|
370
|
-
| PalletBitcoinLocksLockOptions
|
|
371
|
-
| { V1: any }
|
|
372
|
-
| string,
|
|
373
|
-
backfillSecuritizationToUnreserve: Compact<u128> | AnyNumber | Uint8Array,
|
|
374
|
-
) => SubmittableExtrinsic<ApiType>,
|
|
375
|
-
[
|
|
376
|
-
AccountId32,
|
|
377
|
-
u32,
|
|
378
|
-
Compact<u64>,
|
|
379
|
-
ArgonPrimitivesBitcoinCompressedBitcoinPubkey,
|
|
380
|
-
Option<PalletBitcoinLocksLockOptions>,
|
|
381
|
-
Compact<u128>,
|
|
382
|
-
]
|
|
383
|
-
>;
|
|
384
361
|
/**
|
|
385
362
|
* Ratcheting allows a user to change the lock price of their bitcoin lock. This is
|
|
386
363
|
* functionally the same as releasing and re-initializing, but it allows a user to skip
|
|
@@ -406,6 +383,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
406
383
|
| Uint8Array
|
|
407
384
|
| PalletBitcoinLocksLockOptions
|
|
408
385
|
| { V1: any }
|
|
386
|
+
| { V2: any }
|
|
409
387
|
| string,
|
|
410
388
|
) => SubmittableExtrinsic<ApiType>,
|
|
411
389
|
[u64, Option<PalletBitcoinLocksLockOptions>]
|
|
@@ -438,10 +416,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
438
416
|
) => SubmittableExtrinsic<ApiType>,
|
|
439
417
|
[u64, Bytes, u64]
|
|
440
418
|
>;
|
|
441
|
-
|
|
419
|
+
setFlexible: AugmentedSubmittable<
|
|
442
420
|
(
|
|
443
421
|
utxoId: u64 | AnyNumber | Uint8Array,
|
|
444
|
-
|
|
422
|
+
isFlexible: bool | boolean | Uint8Array,
|
|
445
423
|
) => SubmittableExtrinsic<ApiType>,
|
|
446
424
|
[u64, bool]
|
|
447
425
|
>;
|
|
@@ -1219,6 +1197,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1219
1197
|
) => SubmittableExtrinsic<ApiType>,
|
|
1220
1198
|
[PalletOperationalAccountsRegistration]
|
|
1221
1199
|
>;
|
|
1200
|
+
/**
|
|
1201
|
+
* Update the display name on an operational account profile from any linked account.
|
|
1202
|
+
**/
|
|
1203
|
+
setName: AugmentedSubmittable<
|
|
1204
|
+
(name: Option<Bytes> | null | Uint8Array | Bytes | string) => SubmittableExtrinsic<ApiType>,
|
|
1205
|
+
[Option<Bytes>]
|
|
1206
|
+
>;
|
|
1222
1207
|
/**
|
|
1223
1208
|
* Update certification reward amounts for operational accounts.
|
|
1224
1209
|
**/
|
|
@@ -2065,8 +2050,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2065
2050
|
| {
|
|
2066
2051
|
vaultId?: any;
|
|
2067
2052
|
beneficiary?: any;
|
|
2053
|
+
bonusPercent?: any;
|
|
2068
2054
|
expiresAtFrame?: any;
|
|
2069
|
-
|
|
2055
|
+
bondSpaceToUnreserve?: any;
|
|
2056
|
+
nonce?: any;
|
|
2070
2057
|
signature?: any;
|
|
2071
2058
|
}
|
|
2072
2059
|
| string,
|
|
@@ -2082,19 +2069,22 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2082
2069
|
(bondLotId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
2083
2070
|
[u64]
|
|
2084
2071
|
>;
|
|
2085
|
-
|
|
2072
|
+
setBondLotFlexible: AugmentedSubmittable<
|
|
2086
2073
|
(
|
|
2087
|
-
|
|
2088
|
-
|
|
2074
|
+
bondLotId: u64 | AnyNumber | Uint8Array,
|
|
2075
|
+
isFlexible: bool | boolean | Uint8Array,
|
|
2089
2076
|
) => SubmittableExtrinsic<ApiType>,
|
|
2090
|
-
[
|
|
2077
|
+
[u64, bool]
|
|
2091
2078
|
>;
|
|
2092
|
-
|
|
2079
|
+
/**
|
|
2080
|
+
* Reserve vault bond space for future bond purchases.
|
|
2081
|
+
**/
|
|
2082
|
+
setReservedBondSpace: AugmentedSubmittable<
|
|
2093
2083
|
(
|
|
2094
|
-
|
|
2095
|
-
|
|
2084
|
+
vaultId: u32 | AnyNumber | Uint8Array,
|
|
2085
|
+
reservedBondSpace: u32 | AnyNumber | Uint8Array,
|
|
2096
2086
|
) => SubmittableExtrinsic<ApiType>,
|
|
2097
|
-
[
|
|
2087
|
+
[u32, u32]
|
|
2098
2088
|
>;
|
|
2099
2089
|
};
|
|
2100
2090
|
txPause: {
|
|
@@ -2318,7 +2308,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2318
2308
|
| PalletVaultsVaultConfig
|
|
2319
2309
|
| {
|
|
2320
2310
|
terms?: any;
|
|
2321
|
-
name?: any;
|
|
2322
2311
|
delegateAccountId?: any;
|
|
2323
2312
|
securitization?: any;
|
|
2324
2313
|
bitcoinXpubkey?: any;
|
|
@@ -2356,12 +2345,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2356
2345
|
vaultId: u32 | AnyNumber | Uint8Array,
|
|
2357
2346
|
terms:
|
|
2358
2347
|
| ArgonPrimitivesVaultVaultTerms
|
|
2359
|
-
| {
|
|
2360
|
-
bitcoinAnnualPercentRate?: any;
|
|
2361
|
-
bitcoinBaseFee?: any;
|
|
2362
|
-
treasuryProfitSharing?: any;
|
|
2363
|
-
treasuryBonusProfitSharing?: any;
|
|
2364
|
-
}
|
|
2348
|
+
| { bitcoinAnnualPercentRate?: any; bitcoinBaseFee?: any; treasuryProfitSharing?: any }
|
|
2365
2349
|
| string
|
|
2366
2350
|
| Uint8Array,
|
|
2367
2351
|
) => SubmittableExtrinsic<ApiType>,
|
|
@@ -2379,13 +2363,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2379
2363
|
) => SubmittableExtrinsic<ApiType>,
|
|
2380
2364
|
[u32, ArgonPrimitivesBitcoinOpaqueBitcoinXpub]
|
|
2381
2365
|
>;
|
|
2382
|
-
setBackfillSecuritizationReserved: AugmentedSubmittable<
|
|
2383
|
-
(
|
|
2384
|
-
vaultId: u32 | AnyNumber | Uint8Array,
|
|
2385
|
-
backfillSecuritizationReserved: u128 | AnyNumber | Uint8Array,
|
|
2386
|
-
) => SubmittableExtrinsic<ApiType>,
|
|
2387
|
-
[u32, u128]
|
|
2388
|
-
>;
|
|
2389
2366
|
setCommittedArgonots: AugmentedSubmittable<
|
|
2390
2367
|
(amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
2391
2368
|
[Compact<u128>]
|
|
@@ -2396,9 +2373,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2396
2373
|
) => SubmittableExtrinsic<ApiType>,
|
|
2397
2374
|
[Option<AccountId32>]
|
|
2398
2375
|
>;
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2376
|
+
/**
|
|
2377
|
+
* Reserve vault securitization space for future Bitcoin locks.
|
|
2378
|
+
**/
|
|
2379
|
+
setReservedSecuritizationSpace: AugmentedSubmittable<
|
|
2380
|
+
(
|
|
2381
|
+
reservedSecuritizationSpace: u128 | AnyNumber | Uint8Array,
|
|
2382
|
+
) => SubmittableExtrinsic<ApiType>,
|
|
2383
|
+
[u128]
|
|
2402
2384
|
>;
|
|
2403
2385
|
};
|
|
2404
2386
|
} // AugmentedSubmittables
|