@argonprotocol/mainchain 1.4.11-dev.455b3ae5 → 1.4.11-dev.6b43f925
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 +115 -101
- package/browser/index.js +62 -39
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +69 -46
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +115 -101
- package/lib/index.d.ts +115 -101
- package/lib/index.js +62 -39
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/interfaces/augment-api-errors.ts +6 -6
- package/src/interfaces/augment-api-events.ts +18 -18
- package/src/interfaces/augment-api-query.ts +1 -1
- package/src/interfaces/augment-api-tx.ts +23 -18
- package/src/interfaces/lookup.ts +31 -32
- package/src/interfaces/types-lookup.ts +49 -50
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/mainchain",
|
|
3
|
-
"version": "1.4.11-dev.
|
|
3
|
+
"version": "1.4.11-dev.6b43f925",
|
|
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.4.11-dev.
|
|
71
|
+
"@argonprotocol/testing": "1.4.11-dev.6b43f925",
|
|
72
72
|
"@polkadot/typegen": "^16.5.6",
|
|
73
73
|
"@substrate/ss58-registry": "^1.51.0",
|
|
74
74
|
"@types/node": "^20",
|
|
@@ -1272,17 +1272,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1272
1272
|
**/
|
|
1273
1273
|
BondLotAlreadyReleasing: AugmentedError<ApiType>;
|
|
1274
1274
|
/**
|
|
1275
|
-
* Only an active vault bond owned by its operator can be used as
|
|
1275
|
+
* Only an active vault bond owned by its operator can be used as flexible.
|
|
1276
1276
|
**/
|
|
1277
|
-
|
|
1277
|
+
BondLotCannotBeFlexible: AugmentedError<ApiType>;
|
|
1278
1278
|
/**
|
|
1279
1279
|
* The bond lot could not be found.
|
|
1280
1280
|
**/
|
|
1281
1281
|
BondLotNotFound: AugmentedError<ApiType>;
|
|
1282
|
-
/**
|
|
1283
|
-
* The vault doesn't have enough bitcoin security to support this bond purchase
|
|
1284
|
-
**/
|
|
1285
|
-
BondPurchaseAboveSecurity: AugmentedError<ApiType>;
|
|
1286
1282
|
/**
|
|
1287
1283
|
* The purchase is below the minimum amount.
|
|
1288
1284
|
**/
|
|
@@ -1311,6 +1307,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1311
1307
|
* The bonus approval was signed for a different vault.
|
|
1312
1308
|
**/
|
|
1313
1309
|
BonusApprovalWrongVault: AugmentedError<ApiType>;
|
|
1310
|
+
/**
|
|
1311
|
+
* The vault doesn't have enough bitcoin security to support this bond purchase
|
|
1312
|
+
**/
|
|
1313
|
+
InsufficientBondSpace: AugmentedError<ApiType>;
|
|
1314
1314
|
/**
|
|
1315
1315
|
* An internal error occurred.
|
|
1316
1316
|
**/
|
|
@@ -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],
|
|
@@ -1758,7 +1758,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1758
1758
|
* The active bond state for a vault.
|
|
1759
1759
|
*
|
|
1760
1760
|
* The bounded payout set keeps the largest bond amount first, then lower `bond_lot_id` first
|
|
1761
|
-
* when amounts tie.
|
|
1761
|
+
* when amounts tie. Flexible lots remain in `BondLotById` and are represented here by their
|
|
1762
1762
|
* aggregate.
|
|
1763
1763
|
**/
|
|
1764
1764
|
bondLotsByVault: AugmentedQuery<
|
|
@@ -416,10 +416,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
416
416
|
) => SubmittableExtrinsic<ApiType>,
|
|
417
417
|
[u64, Bytes, u64]
|
|
418
418
|
>;
|
|
419
|
-
|
|
419
|
+
setFlexible: AugmentedSubmittable<
|
|
420
420
|
(
|
|
421
421
|
utxoId: u64 | AnyNumber | Uint8Array,
|
|
422
|
-
|
|
422
|
+
isFlexible: bool | boolean | Uint8Array,
|
|
423
423
|
) => SubmittableExtrinsic<ApiType>,
|
|
424
424
|
[u64, bool]
|
|
425
425
|
>;
|
|
@@ -2052,7 +2052,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2052
2052
|
beneficiary?: any;
|
|
2053
2053
|
bonusPercent?: any;
|
|
2054
2054
|
expiresAtFrame?: any;
|
|
2055
|
-
|
|
2055
|
+
bondSpaceToUnreserve?: any;
|
|
2056
2056
|
nonce?: any;
|
|
2057
2057
|
signature?: any;
|
|
2058
2058
|
}
|
|
@@ -2069,19 +2069,22 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2069
2069
|
(bondLotId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
2070
2070
|
[u64]
|
|
2071
2071
|
>;
|
|
2072
|
-
|
|
2072
|
+
setBondLotFlexible: AugmentedSubmittable<
|
|
2073
2073
|
(
|
|
2074
|
-
|
|
2075
|
-
|
|
2074
|
+
bondLotId: u64 | AnyNumber | Uint8Array,
|
|
2075
|
+
isFlexible: bool | boolean | Uint8Array,
|
|
2076
2076
|
) => SubmittableExtrinsic<ApiType>,
|
|
2077
|
-
[
|
|
2077
|
+
[u64, bool]
|
|
2078
2078
|
>;
|
|
2079
|
-
|
|
2079
|
+
/**
|
|
2080
|
+
* Reserve vault bond space for future bond purchases.
|
|
2081
|
+
**/
|
|
2082
|
+
setReservedBondSpace: AugmentedSubmittable<
|
|
2080
2083
|
(
|
|
2081
|
-
|
|
2082
|
-
|
|
2084
|
+
vaultId: u32 | AnyNumber | Uint8Array,
|
|
2085
|
+
reservedBondSpace: u32 | AnyNumber | Uint8Array,
|
|
2083
2086
|
) => SubmittableExtrinsic<ApiType>,
|
|
2084
|
-
[
|
|
2087
|
+
[u32, u32]
|
|
2085
2088
|
>;
|
|
2086
2089
|
};
|
|
2087
2090
|
txPause: {
|
|
@@ -2360,13 +2363,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2360
2363
|
) => SubmittableExtrinsic<ApiType>,
|
|
2361
2364
|
[u32, ArgonPrimitivesBitcoinOpaqueBitcoinXpub]
|
|
2362
2365
|
>;
|
|
2363
|
-
setBackfillSecuritizationReserved: AugmentedSubmittable<
|
|
2364
|
-
(
|
|
2365
|
-
vaultId: u32 | AnyNumber | Uint8Array,
|
|
2366
|
-
backfillSecuritizationReserved: u128 | AnyNumber | Uint8Array,
|
|
2367
|
-
) => SubmittableExtrinsic<ApiType>,
|
|
2368
|
-
[u32, u128]
|
|
2369
|
-
>;
|
|
2370
2366
|
setCommittedArgonots: AugmentedSubmittable<
|
|
2371
2367
|
(amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
2372
2368
|
[Compact<u128>]
|
|
@@ -2377,6 +2373,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2377
2373
|
) => SubmittableExtrinsic<ApiType>,
|
|
2378
2374
|
[Option<AccountId32>]
|
|
2379
2375
|
>;
|
|
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]
|
|
2384
|
+
>;
|
|
2380
2385
|
};
|
|
2381
2386
|
} // AugmentedSubmittables
|
|
2382
2387
|
} // declare module
|
package/src/interfaces/lookup.ts
CHANGED
|
@@ -469,9 +469,9 @@ export default {
|
|
|
469
469
|
VaultBitcoinXpubChange: {
|
|
470
470
|
vaultId: 'u32',
|
|
471
471
|
},
|
|
472
|
-
|
|
472
|
+
ReservedSecuritizationSpaceChanged: {
|
|
473
473
|
vaultId: 'u32',
|
|
474
|
-
|
|
474
|
+
reservedSecuritizationSpace: 'u128',
|
|
475
475
|
},
|
|
476
476
|
VaultRevenueUncollected: {
|
|
477
477
|
vaultId: 'u32',
|
|
@@ -613,10 +613,10 @@ export default {
|
|
|
613
613
|
newSatoshis: 'u64',
|
|
614
614
|
accountId: 'AccountId32',
|
|
615
615
|
},
|
|
616
|
-
|
|
616
|
+
BitcoinLockFlexibleChanged: {
|
|
617
617
|
utxoId: 'u64',
|
|
618
618
|
vaultId: 'u32',
|
|
619
|
-
|
|
619
|
+
isFlexible: 'bool',
|
|
620
620
|
},
|
|
621
621
|
},
|
|
622
622
|
},
|
|
@@ -1392,14 +1392,14 @@ export default {
|
|
|
1392
1392
|
accountId: 'AccountId32',
|
|
1393
1393
|
bonds: 'u32',
|
|
1394
1394
|
},
|
|
1395
|
-
|
|
1395
|
+
BondLotFlexibilityChanged: {
|
|
1396
1396
|
vaultId: 'u32',
|
|
1397
1397
|
bondLotId: 'u64',
|
|
1398
|
-
|
|
1398
|
+
isFlexible: 'bool',
|
|
1399
1399
|
},
|
|
1400
|
-
|
|
1400
|
+
ReservedBondSpaceChanged: {
|
|
1401
1401
|
vaultId: 'u32',
|
|
1402
|
-
|
|
1402
|
+
reservedBondSpace: 'u32',
|
|
1403
1403
|
},
|
|
1404
1404
|
EncumberedBondMicrogonsBurned: {
|
|
1405
1405
|
accountId: 'AccountId32',
|
|
@@ -2193,9 +2193,8 @@ export default {
|
|
|
2193
2193
|
set_committed_argonots: {
|
|
2194
2194
|
amount: 'Compact<u128>',
|
|
2195
2195
|
},
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
backfillSecuritizationReserved: 'u128',
|
|
2196
|
+
set_reserved_securitization_space: {
|
|
2197
|
+
reservedSecuritizationSpace: 'u128',
|
|
2199
2198
|
},
|
|
2200
2199
|
},
|
|
2201
2200
|
},
|
|
@@ -2264,9 +2263,9 @@ export default {
|
|
|
2264
2263
|
utxoId: 'u64',
|
|
2265
2264
|
newSatoshis: 'Compact<u64>',
|
|
2266
2265
|
},
|
|
2267
|
-
|
|
2266
|
+
set_flexible: {
|
|
2268
2267
|
utxoId: 'u64',
|
|
2269
|
-
|
|
2268
|
+
isFlexible: 'bool',
|
|
2270
2269
|
},
|
|
2271
2270
|
},
|
|
2272
2271
|
},
|
|
@@ -2296,7 +2295,7 @@ export default {
|
|
|
2296
2295
|
genesisHash: 'H256',
|
|
2297
2296
|
beneficiary: 'AccountId32',
|
|
2298
2297
|
feeDiscount: 'Compact<u128>',
|
|
2299
|
-
|
|
2298
|
+
securitizationSpaceToUnreserve: 'Compact<u128>',
|
|
2300
2299
|
expiresAtFrame: 'Compact<u64>',
|
|
2301
2300
|
nonce: 'Compact<u64>',
|
|
2302
2301
|
signature: 'SpRuntimeMultiSignature',
|
|
@@ -2740,13 +2739,13 @@ export default {
|
|
|
2740
2739
|
buy_argonot_bonds: {
|
|
2741
2740
|
bonds: 'u32',
|
|
2742
2741
|
},
|
|
2743
|
-
|
|
2742
|
+
set_bond_lot_flexible: {
|
|
2744
2743
|
bondLotId: 'u64',
|
|
2745
|
-
|
|
2744
|
+
isFlexible: 'bool',
|
|
2746
2745
|
},
|
|
2747
|
-
|
|
2746
|
+
set_reserved_bond_space: {
|
|
2748
2747
|
vaultId: 'u32',
|
|
2749
|
-
|
|
2748
|
+
reservedBondSpace: 'u32',
|
|
2750
2749
|
},
|
|
2751
2750
|
},
|
|
2752
2751
|
},
|
|
@@ -2758,7 +2757,7 @@ export default {
|
|
|
2758
2757
|
beneficiary: 'AccountId32',
|
|
2759
2758
|
bonusPercent: 'Compact<Permill>',
|
|
2760
2759
|
expiresAtFrame: 'Compact<u64>',
|
|
2761
|
-
|
|
2760
|
+
bondSpaceToUnreserve: 'Compact<u32>',
|
|
2762
2761
|
nonce: 'Compact<u64>',
|
|
2763
2762
|
signature: 'SpRuntimeMultiSignature',
|
|
2764
2763
|
},
|
|
@@ -3329,12 +3328,12 @@ export default {
|
|
|
3329
3328
|
securitization: 'Compact<u128>',
|
|
3330
3329
|
securitizationTarget: 'Compact<u128>',
|
|
3331
3330
|
securitizationLocked: 'Compact<u128>',
|
|
3332
|
-
|
|
3333
|
-
|
|
3331
|
+
flexibleSecuritizationLocked: 'Compact<u128>',
|
|
3332
|
+
reservedSecuritizationSpace: 'Compact<u128>',
|
|
3334
3333
|
securitizationPendingActivation: 'Compact<u128>',
|
|
3335
3334
|
lockedSatoshis: 'Compact<u64>',
|
|
3336
3335
|
securitizedSatoshis: 'Compact<u64>',
|
|
3337
|
-
|
|
3336
|
+
flexibleSecuritizedSatoshis: 'Compact<u64>',
|
|
3338
3337
|
securitizationReleaseSchedule: 'BTreeMap<u64, u128>',
|
|
3339
3338
|
securitizationRatio: 'Compact<u128>',
|
|
3340
3339
|
isClosed: 'bool',
|
|
@@ -3449,7 +3448,7 @@ export default {
|
|
|
3449
3448
|
createdAtHeight: 'Compact<u64>',
|
|
3450
3449
|
utxoScriptPubkey: 'ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey',
|
|
3451
3450
|
isFunded: 'bool',
|
|
3452
|
-
|
|
3451
|
+
isFlexible: 'bool',
|
|
3453
3452
|
fundHoldExtensions: 'BTreeMap<u64, u128>',
|
|
3454
3453
|
createdAtArgonBlock: 'Compact<u32>',
|
|
3455
3454
|
},
|
|
@@ -3934,9 +3933,9 @@ export default {
|
|
|
3934
3933
|
* Lookup528: pallet_treasury::pallet::VaultCapital<T>
|
|
3935
3934
|
**/
|
|
3936
3935
|
PalletTreasuryVaultCapital: {
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3936
|
+
regularBondAllocations: 'Vec<PalletTreasuryBondLotAllocation>',
|
|
3937
|
+
flexibleBondsEligible: 'Compact<u32>',
|
|
3938
|
+
flexibleProrata: 'u128',
|
|
3940
3939
|
eligibleBonds: 'Compact<u32>',
|
|
3941
3940
|
},
|
|
3942
3941
|
/**
|
|
@@ -3968,7 +3967,7 @@ export default {
|
|
|
3968
3967
|
owner: 'AccountId32',
|
|
3969
3968
|
program: 'PalletTreasuryBondProgram',
|
|
3970
3969
|
bonds: 'Compact<u32>',
|
|
3971
|
-
|
|
3970
|
+
isFlexible: 'bool',
|
|
3972
3971
|
createdFrameId: 'Compact<u64>',
|
|
3973
3972
|
participatedFrames: 'Compact<u32>',
|
|
3974
3973
|
lastFrameEarningsFrameId: 'Option<u64>',
|
|
@@ -3994,9 +3993,9 @@ export default {
|
|
|
3994
3993
|
* Lookup543: pallet_treasury::pallet::VaultBondState<T>
|
|
3995
3994
|
**/
|
|
3996
3995
|
PalletTreasuryVaultBondState: {
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
3996
|
+
regularBondLots: 'Vec<PalletTreasuryBondLotSummary>',
|
|
3997
|
+
flexibleBonds: 'Compact<u32>',
|
|
3998
|
+
reservedBondSpace: 'Compact<u32>',
|
|
4000
3999
|
},
|
|
4001
4000
|
/**
|
|
4002
4001
|
* Lookup545: pallet_treasury::pallet::Error<T>
|
|
@@ -4012,7 +4011,7 @@ export default {
|
|
|
4012
4011
|
'BondLotNotFound',
|
|
4013
4012
|
'NotBondLotOwner',
|
|
4014
4013
|
'BondLotAlreadyReleasing',
|
|
4015
|
-
'
|
|
4014
|
+
'InsufficientBondSpace',
|
|
4016
4015
|
'ActiveBondAmountBelowEncumberedBacking',
|
|
4017
4016
|
'BonusApprovalWrongVault',
|
|
4018
4017
|
'BonusApprovalWrongAccount',
|
|
@@ -4022,7 +4021,7 @@ export default {
|
|
|
4022
4021
|
'BonusApprovalExceedsProfitSharing',
|
|
4023
4022
|
'ArgonotBondPurchaseBelowCutoff',
|
|
4024
4023
|
'ArgonotBondPurchaseAboveCap',
|
|
4025
|
-
'
|
|
4024
|
+
'BondLotCannotBeFlexible',
|
|
4026
4025
|
'NoPermissions',
|
|
4027
4026
|
],
|
|
4028
4027
|
},
|
|
@@ -602,10 +602,10 @@ declare module '@polkadot/types/lookup' {
|
|
|
602
602
|
readonly asVaultBitcoinXpubChange: {
|
|
603
603
|
readonly vaultId: u32;
|
|
604
604
|
} & Struct;
|
|
605
|
-
readonly
|
|
606
|
-
readonly
|
|
605
|
+
readonly isReservedSecuritizationSpaceChanged: boolean;
|
|
606
|
+
readonly asReservedSecuritizationSpaceChanged: {
|
|
607
607
|
readonly vaultId: u32;
|
|
608
|
-
readonly
|
|
608
|
+
readonly reservedSecuritizationSpace: u128;
|
|
609
609
|
} & Struct;
|
|
610
610
|
readonly isVaultRevenueUncollected: boolean;
|
|
611
611
|
readonly asVaultRevenueUncollected: {
|
|
@@ -675,7 +675,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
675
675
|
| 'VaultTermsChanged'
|
|
676
676
|
| 'VaultClosed'
|
|
677
677
|
| 'VaultBitcoinXpubChange'
|
|
678
|
-
| '
|
|
678
|
+
| 'ReservedSecuritizationSpaceChanged'
|
|
679
679
|
| 'VaultRevenueUncollected'
|
|
680
680
|
| 'VaultCollected'
|
|
681
681
|
| 'FundsLocked'
|
|
@@ -786,11 +786,11 @@ declare module '@polkadot/types/lookup' {
|
|
|
786
786
|
readonly newSatoshis: u64;
|
|
787
787
|
readonly accountId: AccountId32;
|
|
788
788
|
} & Struct;
|
|
789
|
-
readonly
|
|
790
|
-
readonly
|
|
789
|
+
readonly isBitcoinLockFlexibleChanged: boolean;
|
|
790
|
+
readonly asBitcoinLockFlexibleChanged: {
|
|
791
791
|
readonly utxoId: u64;
|
|
792
792
|
readonly vaultId: u32;
|
|
793
|
-
readonly
|
|
793
|
+
readonly isFlexible: bool;
|
|
794
794
|
} & Struct;
|
|
795
795
|
readonly type:
|
|
796
796
|
| 'BitcoinLockCreated'
|
|
@@ -807,7 +807,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
807
807
|
| 'OrphanedUtxoCosigned'
|
|
808
808
|
| 'UtxoFundedFromCandidate'
|
|
809
809
|
| 'SecuritizationIncreased'
|
|
810
|
-
| '
|
|
810
|
+
| 'BitcoinLockFlexibleChanged';
|
|
811
811
|
}
|
|
812
812
|
|
|
813
813
|
/** @name PalletNotariesEvent (60) */
|
|
@@ -1733,16 +1733,16 @@ declare module '@polkadot/types/lookup' {
|
|
|
1733
1733
|
readonly accountId: AccountId32;
|
|
1734
1734
|
readonly bonds: u32;
|
|
1735
1735
|
} & Struct;
|
|
1736
|
-
readonly
|
|
1737
|
-
readonly
|
|
1736
|
+
readonly isBondLotFlexibilityChanged: boolean;
|
|
1737
|
+
readonly asBondLotFlexibilityChanged: {
|
|
1738
1738
|
readonly vaultId: u32;
|
|
1739
1739
|
readonly bondLotId: u64;
|
|
1740
|
-
readonly
|
|
1740
|
+
readonly isFlexible: bool;
|
|
1741
1741
|
} & Struct;
|
|
1742
|
-
readonly
|
|
1743
|
-
readonly
|
|
1742
|
+
readonly isReservedBondSpaceChanged: boolean;
|
|
1743
|
+
readonly asReservedBondSpaceChanged: {
|
|
1744
1744
|
readonly vaultId: u32;
|
|
1745
|
-
readonly
|
|
1745
|
+
readonly reservedBondSpace: u32;
|
|
1746
1746
|
} & Struct;
|
|
1747
1747
|
readonly isEncumberedBondMicrogonsBurned: boolean;
|
|
1748
1748
|
readonly asEncumberedBondMicrogonsBurned: {
|
|
@@ -1760,8 +1760,8 @@ declare module '@polkadot/types/lookup' {
|
|
|
1760
1760
|
| 'BondLotPurchased'
|
|
1761
1761
|
| 'BondLotReleaseScheduled'
|
|
1762
1762
|
| 'BondLotReleased'
|
|
1763
|
-
| '
|
|
1764
|
-
| '
|
|
1763
|
+
| 'BondLotFlexibilityChanged'
|
|
1764
|
+
| 'ReservedBondSpaceChanged'
|
|
1765
1765
|
| 'EncumberedBondMicrogonsBurned';
|
|
1766
1766
|
}
|
|
1767
1767
|
|
|
@@ -2668,10 +2668,9 @@ declare module '@polkadot/types/lookup' {
|
|
|
2668
2668
|
readonly asSetCommittedArgonots: {
|
|
2669
2669
|
readonly amount: Compact<u128>;
|
|
2670
2670
|
} & Struct;
|
|
2671
|
-
readonly
|
|
2672
|
-
readonly
|
|
2673
|
-
readonly
|
|
2674
|
-
readonly backfillSecuritizationReserved: u128;
|
|
2671
|
+
readonly isSetReservedSecuritizationSpace: boolean;
|
|
2672
|
+
readonly asSetReservedSecuritizationSpace: {
|
|
2673
|
+
readonly reservedSecuritizationSpace: u128;
|
|
2675
2674
|
} & Struct;
|
|
2676
2675
|
readonly type:
|
|
2677
2676
|
| 'Create'
|
|
@@ -2682,7 +2681,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
2682
2681
|
| 'Collect'
|
|
2683
2682
|
| 'SetDelegateAccount'
|
|
2684
2683
|
| 'SetCommittedArgonots'
|
|
2685
|
-
| '
|
|
2684
|
+
| 'SetReservedSecuritizationSpace';
|
|
2686
2685
|
}
|
|
2687
2686
|
|
|
2688
2687
|
/** @name PalletVaultsVaultConfig (209) */
|
|
@@ -2750,10 +2749,10 @@ declare module '@polkadot/types/lookup' {
|
|
|
2750
2749
|
readonly utxoId: u64;
|
|
2751
2750
|
readonly newSatoshis: Compact<u64>;
|
|
2752
2751
|
} & Struct;
|
|
2753
|
-
readonly
|
|
2754
|
-
readonly
|
|
2752
|
+
readonly isSetFlexible: boolean;
|
|
2753
|
+
readonly asSetFlexible: {
|
|
2755
2754
|
readonly utxoId: u64;
|
|
2756
|
-
readonly
|
|
2755
|
+
readonly isFlexible: bool;
|
|
2757
2756
|
} & Struct;
|
|
2758
2757
|
readonly type:
|
|
2759
2758
|
| 'Initialize'
|
|
@@ -2764,7 +2763,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
2764
2763
|
| 'RequestOrphanedUtxoRelease'
|
|
2765
2764
|
| 'CosignOrphanedUtxoRelease'
|
|
2766
2765
|
| 'IncreaseSecuritization'
|
|
2767
|
-
| '
|
|
2766
|
+
| 'SetFlexible';
|
|
2768
2767
|
}
|
|
2769
2768
|
|
|
2770
2769
|
/** @name ArgonPrimitivesBitcoinCompressedBitcoinPubkey (217) */
|
|
@@ -2790,7 +2789,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
2790
2789
|
readonly genesisHash: H256;
|
|
2791
2790
|
readonly beneficiary: AccountId32;
|
|
2792
2791
|
readonly feeDiscount: Compact<u128>;
|
|
2793
|
-
readonly
|
|
2792
|
+
readonly securitizationSpaceToUnreserve: Compact<u128>;
|
|
2794
2793
|
readonly expiresAtFrame: Compact<u64>;
|
|
2795
2794
|
readonly nonce: Compact<u64>;
|
|
2796
2795
|
readonly signature: SpRuntimeMultiSignature;
|
|
@@ -3243,22 +3242,22 @@ declare module '@polkadot/types/lookup' {
|
|
|
3243
3242
|
readonly asBuyArgonotBonds: {
|
|
3244
3243
|
readonly bonds: u32;
|
|
3245
3244
|
} & Struct;
|
|
3246
|
-
readonly
|
|
3247
|
-
readonly
|
|
3245
|
+
readonly isSetBondLotFlexible: boolean;
|
|
3246
|
+
readonly asSetBondLotFlexible: {
|
|
3248
3247
|
readonly bondLotId: u64;
|
|
3249
|
-
readonly
|
|
3248
|
+
readonly isFlexible: bool;
|
|
3250
3249
|
} & Struct;
|
|
3251
|
-
readonly
|
|
3252
|
-
readonly
|
|
3250
|
+
readonly isSetReservedBondSpace: boolean;
|
|
3251
|
+
readonly asSetReservedBondSpace: {
|
|
3253
3252
|
readonly vaultId: u32;
|
|
3254
|
-
readonly
|
|
3253
|
+
readonly reservedBondSpace: u32;
|
|
3255
3254
|
} & Struct;
|
|
3256
3255
|
readonly type:
|
|
3257
3256
|
| 'BuyBonds'
|
|
3258
3257
|
| 'LiquidateBondLot'
|
|
3259
3258
|
| 'BuyArgonotBonds'
|
|
3260
|
-
| '
|
|
3261
|
-
| '
|
|
3259
|
+
| 'SetBondLotFlexible'
|
|
3260
|
+
| 'SetReservedBondSpace';
|
|
3262
3261
|
}
|
|
3263
3262
|
|
|
3264
3263
|
/** @name ArgonPrimitivesVaultTreasuryBonusApprovalProof (278) */
|
|
@@ -3267,7 +3266,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
3267
3266
|
readonly beneficiary: AccountId32;
|
|
3268
3267
|
readonly bonusPercent: Compact<Permill>;
|
|
3269
3268
|
readonly expiresAtFrame: Compact<u64>;
|
|
3270
|
-
readonly
|
|
3269
|
+
readonly bondSpaceToUnreserve: Compact<u32>;
|
|
3271
3270
|
readonly nonce: Compact<u64>;
|
|
3272
3271
|
readonly signature: SpRuntimeMultiSignature;
|
|
3273
3272
|
}
|
|
@@ -3879,12 +3878,12 @@ declare module '@polkadot/types/lookup' {
|
|
|
3879
3878
|
readonly securitization: Compact<u128>;
|
|
3880
3879
|
readonly securitizationTarget: Compact<u128>;
|
|
3881
3880
|
readonly securitizationLocked: Compact<u128>;
|
|
3882
|
-
readonly
|
|
3883
|
-
readonly
|
|
3881
|
+
readonly flexibleSecuritizationLocked: Compact<u128>;
|
|
3882
|
+
readonly reservedSecuritizationSpace: Compact<u128>;
|
|
3884
3883
|
readonly securitizationPendingActivation: Compact<u128>;
|
|
3885
3884
|
readonly lockedSatoshis: Compact<u64>;
|
|
3886
3885
|
readonly securitizedSatoshis: Compact<u64>;
|
|
3887
|
-
readonly
|
|
3886
|
+
readonly flexibleSecuritizedSatoshis: Compact<u64>;
|
|
3888
3887
|
readonly securitizationReleaseSchedule: BTreeMap<u64, u128>;
|
|
3889
3888
|
readonly securitizationRatio: Compact<u128>;
|
|
3890
3889
|
readonly isClosed: bool;
|
|
@@ -4026,7 +4025,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
4026
4025
|
readonly createdAtHeight: Compact<u64>;
|
|
4027
4026
|
readonly utxoScriptPubkey: ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey;
|
|
4028
4027
|
readonly isFunded: bool;
|
|
4029
|
-
readonly
|
|
4028
|
+
readonly isFlexible: bool;
|
|
4030
4029
|
readonly fundHoldExtensions: BTreeMap<u64, u128>;
|
|
4031
4030
|
readonly createdAtArgonBlock: Compact<u32>;
|
|
4032
4031
|
}
|
|
@@ -4591,9 +4590,9 @@ declare module '@polkadot/types/lookup' {
|
|
|
4591
4590
|
|
|
4592
4591
|
/** @name PalletTreasuryVaultCapital (528) */
|
|
4593
4592
|
interface PalletTreasuryVaultCapital extends Struct {
|
|
4594
|
-
readonly
|
|
4595
|
-
readonly
|
|
4596
|
-
readonly
|
|
4593
|
+
readonly regularBondAllocations: Vec<PalletTreasuryBondLotAllocation>;
|
|
4594
|
+
readonly flexibleBondsEligible: Compact<u32>;
|
|
4595
|
+
readonly flexibleProrata: u128;
|
|
4597
4596
|
readonly eligibleBonds: Compact<u32>;
|
|
4598
4597
|
}
|
|
4599
4598
|
|
|
@@ -4621,7 +4620,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
4621
4620
|
readonly owner: AccountId32;
|
|
4622
4621
|
readonly program: PalletTreasuryBondProgram;
|
|
4623
4622
|
readonly bonds: Compact<u32>;
|
|
4624
|
-
readonly
|
|
4623
|
+
readonly isFlexible: bool;
|
|
4625
4624
|
readonly createdFrameId: Compact<u64>;
|
|
4626
4625
|
readonly participatedFrames: Compact<u32>;
|
|
4627
4626
|
readonly lastFrameEarningsFrameId: Option<u64>;
|
|
@@ -4645,9 +4644,9 @@ declare module '@polkadot/types/lookup' {
|
|
|
4645
4644
|
|
|
4646
4645
|
/** @name PalletTreasuryVaultBondState (543) */
|
|
4647
4646
|
interface PalletTreasuryVaultBondState extends Struct {
|
|
4648
|
-
readonly
|
|
4649
|
-
readonly
|
|
4650
|
-
readonly
|
|
4647
|
+
readonly regularBondLots: Vec<PalletTreasuryBondLotSummary>;
|
|
4648
|
+
readonly flexibleBonds: Compact<u32>;
|
|
4649
|
+
readonly reservedBondSpace: Compact<u32>;
|
|
4651
4650
|
}
|
|
4652
4651
|
|
|
4653
4652
|
/** @name PalletTreasuryError (545) */
|
|
@@ -4661,7 +4660,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
4661
4660
|
readonly isBondLotNotFound: boolean;
|
|
4662
4661
|
readonly isNotBondLotOwner: boolean;
|
|
4663
4662
|
readonly isBondLotAlreadyReleasing: boolean;
|
|
4664
|
-
readonly
|
|
4663
|
+
readonly isInsufficientBondSpace: boolean;
|
|
4665
4664
|
readonly isActiveBondAmountBelowEncumberedBacking: boolean;
|
|
4666
4665
|
readonly isBonusApprovalWrongVault: boolean;
|
|
4667
4666
|
readonly isBonusApprovalWrongAccount: boolean;
|
|
@@ -4671,7 +4670,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
4671
4670
|
readonly isBonusApprovalExceedsProfitSharing: boolean;
|
|
4672
4671
|
readonly isArgonotBondPurchaseBelowCutoff: boolean;
|
|
4673
4672
|
readonly isArgonotBondPurchaseAboveCap: boolean;
|
|
4674
|
-
readonly
|
|
4673
|
+
readonly isBondLotCannotBeFlexible: boolean;
|
|
4675
4674
|
readonly isNoPermissions: boolean;
|
|
4676
4675
|
readonly type:
|
|
4677
4676
|
| 'BondPurchaseRejected'
|
|
@@ -4683,7 +4682,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
4683
4682
|
| 'BondLotNotFound'
|
|
4684
4683
|
| 'NotBondLotOwner'
|
|
4685
4684
|
| 'BondLotAlreadyReleasing'
|
|
4686
|
-
| '
|
|
4685
|
+
| 'InsufficientBondSpace'
|
|
4687
4686
|
| 'ActiveBondAmountBelowEncumberedBacking'
|
|
4688
4687
|
| 'BonusApprovalWrongVault'
|
|
4689
4688
|
| 'BonusApprovalWrongAccount'
|
|
@@ -4693,7 +4692,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
4693
4692
|
| 'BonusApprovalExceedsProfitSharing'
|
|
4694
4693
|
| 'ArgonotBondPurchaseBelowCutoff'
|
|
4695
4694
|
| 'ArgonotBondPurchaseAboveCap'
|
|
4696
|
-
| '
|
|
4695
|
+
| 'BondLotCannotBeFlexible'
|
|
4697
4696
|
| 'NoPermissions';
|
|
4698
4697
|
}
|
|
4699
4698
|
|