@argonprotocol/mainchain 1.4.10-dev.f355ccc1 → 1.4.11-dev.1acff0b2
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 +136 -116
- package/browser/index.js +63 -53
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +84 -74
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +136 -116
- package/lib/index.d.ts +136 -116
- package/lib/index.js +63 -53
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/interfaces/augment-api-consts.ts +2 -1
- package/src/interfaces/augment-api-errors.ts +12 -12
- package/src/interfaces/augment-api-events.ts +18 -18
- package/src/interfaces/augment-api-query.ts +11 -2
- package/src/interfaces/augment-api-tx.ts +26 -24
- package/src/interfaces/lookup.ts +35 -35
- package/src/interfaces/types-lookup.ts +55 -55
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/mainchain",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.11-dev.1acff0b2",
|
|
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.
|
|
71
|
+
"@argonprotocol/testing": "1.4.11-dev.1acff0b2",
|
|
72
72
|
"@polkadot/typegen": "^16.5.6",
|
|
73
73
|
"@substrate/ss58-registry": "^1.51.0",
|
|
74
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
|
/**
|
|
@@ -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
|
**/
|
|
@@ -1292,9 +1288,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1292
1288
|
**/
|
|
1293
1289
|
BondPurchaseRejected: AugmentedError<ApiType>;
|
|
1294
1290
|
/**
|
|
1295
|
-
* The
|
|
1291
|
+
* The bonus approval nonce has already been consumed or superseded.
|
|
1292
|
+
**/
|
|
1293
|
+
BonusApprovalAlreadyUsed: AugmentedError<ApiType>;
|
|
1294
|
+
/**
|
|
1295
|
+
* The approved bonus plus the vault's profit sharing exceeds 100%.
|
|
1296
1296
|
**/
|
|
1297
|
-
|
|
1297
|
+
BonusApprovalExceedsProfitSharing: AugmentedError<ApiType>;
|
|
1298
1298
|
/**
|
|
1299
1299
|
* The bonus approval already expired.
|
|
1300
1300
|
**/
|
|
@@ -1307,6 +1307,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1307
1307
|
* The bonus approval was signed for a different vault.
|
|
1308
1308
|
**/
|
|
1309
1309
|
BonusApprovalWrongVault: AugmentedError<ApiType>;
|
|
1310
|
+
/**
|
|
1311
|
+
* The vault doesn't have enough bitcoin security to support this bond purchase
|
|
1312
|
+
**/
|
|
1313
|
+
InsufficientBondSpace: AugmentedError<ApiType>;
|
|
1310
1314
|
/**
|
|
1311
1315
|
* An internal error occurred.
|
|
1312
1316
|
**/
|
|
@@ -1395,10 +1399,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1395
1399
|
* The bitcoin script to lock this bitcoin has errors
|
|
1396
1400
|
**/
|
|
1397
1401
|
InvalidBitcoinScript: AugmentedError<ApiType>;
|
|
1398
|
-
/**
|
|
1399
|
-
* Treasury bond sharing plus bonus cannot exceed 100%.
|
|
1400
|
-
**/
|
|
1401
|
-
InvalidBondSharingTerms: AugmentedError<ApiType>;
|
|
1402
1402
|
/**
|
|
1403
1403
|
* An invalid securitization percent was provided for the vault. NOTE: it cannot be
|
|
1404
1404
|
* decreased (or negative)
|
|
@@ -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],
|
|
@@ -350,7 +350,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
350
350
|
[]
|
|
351
351
|
>;
|
|
352
352
|
/**
|
|
353
|
-
* 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.
|
|
354
355
|
**/
|
|
355
356
|
expiredPendingFunding: AugmentedQuery<
|
|
356
357
|
ApiType,
|
|
@@ -1757,7 +1758,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1757
1758
|
* The active bond state for a vault.
|
|
1758
1759
|
*
|
|
1759
1760
|
* The bounded payout set keeps the largest bond amount first, then lower `bond_lot_id` first
|
|
1760
|
-
* when amounts tie.
|
|
1761
|
+
* when amounts tie. Flexible lots remain in `BondLotById` and are represented here by their
|
|
1761
1762
|
* aggregate.
|
|
1762
1763
|
**/
|
|
1763
1764
|
bondLotsByVault: AugmentedQuery<
|
|
@@ -1798,6 +1799,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1798
1799
|
(arg: AccountId32 | string | Uint8Array) => Observable<u128>,
|
|
1799
1800
|
[AccountId32]
|
|
1800
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
|
+
>;
|
|
1801
1810
|
/**
|
|
1802
1811
|
* The next bond lot id.
|
|
1803
1812
|
**/
|
|
@@ -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
|
>;
|
|
@@ -2050,8 +2050,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2050
2050
|
| {
|
|
2051
2051
|
vaultId?: any;
|
|
2052
2052
|
beneficiary?: any;
|
|
2053
|
+
bonusPercent?: any;
|
|
2053
2054
|
expiresAtFrame?: any;
|
|
2054
|
-
|
|
2055
|
+
bondSpaceToUnreserve?: any;
|
|
2056
|
+
nonce?: any;
|
|
2055
2057
|
signature?: any;
|
|
2056
2058
|
}
|
|
2057
2059
|
| string,
|
|
@@ -2067,19 +2069,22 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2067
2069
|
(bondLotId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
2068
2070
|
[u64]
|
|
2069
2071
|
>;
|
|
2070
|
-
|
|
2072
|
+
setBondLotFlexible: AugmentedSubmittable<
|
|
2071
2073
|
(
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
+
bondLotId: u64 | AnyNumber | Uint8Array,
|
|
2075
|
+
isFlexible: bool | boolean | Uint8Array,
|
|
2074
2076
|
) => SubmittableExtrinsic<ApiType>,
|
|
2075
|
-
[
|
|
2077
|
+
[u64, bool]
|
|
2076
2078
|
>;
|
|
2077
|
-
|
|
2079
|
+
/**
|
|
2080
|
+
* Reserve vault bond space for future bond purchases.
|
|
2081
|
+
**/
|
|
2082
|
+
setReservedBondSpace: AugmentedSubmittable<
|
|
2078
2083
|
(
|
|
2079
|
-
|
|
2080
|
-
|
|
2084
|
+
vaultId: u32 | AnyNumber | Uint8Array,
|
|
2085
|
+
reservedBondSpace: u32 | AnyNumber | Uint8Array,
|
|
2081
2086
|
) => SubmittableExtrinsic<ApiType>,
|
|
2082
|
-
[
|
|
2087
|
+
[u32, u32]
|
|
2083
2088
|
>;
|
|
2084
2089
|
};
|
|
2085
2090
|
txPause: {
|
|
@@ -2340,12 +2345,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2340
2345
|
vaultId: u32 | AnyNumber | Uint8Array,
|
|
2341
2346
|
terms:
|
|
2342
2347
|
| ArgonPrimitivesVaultVaultTerms
|
|
2343
|
-
| {
|
|
2344
|
-
bitcoinAnnualPercentRate?: any;
|
|
2345
|
-
bitcoinBaseFee?: any;
|
|
2346
|
-
treasuryProfitSharing?: any;
|
|
2347
|
-
treasuryBonusProfitSharing?: any;
|
|
2348
|
-
}
|
|
2348
|
+
| { bitcoinAnnualPercentRate?: any; bitcoinBaseFee?: any; treasuryProfitSharing?: any }
|
|
2349
2349
|
| string
|
|
2350
2350
|
| Uint8Array,
|
|
2351
2351
|
) => SubmittableExtrinsic<ApiType>,
|
|
@@ -2363,13 +2363,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2363
2363
|
) => SubmittableExtrinsic<ApiType>,
|
|
2364
2364
|
[u32, ArgonPrimitivesBitcoinOpaqueBitcoinXpub]
|
|
2365
2365
|
>;
|
|
2366
|
-
setBackfillSecuritizationReserved: AugmentedSubmittable<
|
|
2367
|
-
(
|
|
2368
|
-
vaultId: u32 | AnyNumber | Uint8Array,
|
|
2369
|
-
backfillSecuritizationReserved: u128 | AnyNumber | Uint8Array,
|
|
2370
|
-
) => SubmittableExtrinsic<ApiType>,
|
|
2371
|
-
[u32, u128]
|
|
2372
|
-
>;
|
|
2373
2366
|
setCommittedArgonots: AugmentedSubmittable<
|
|
2374
2367
|
(amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
2375
2368
|
[Compact<u128>]
|
|
@@ -2380,6 +2373,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2380
2373
|
) => SubmittableExtrinsic<ApiType>,
|
|
2381
2374
|
[Option<AccountId32>]
|
|
2382
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
|
+
>;
|
|
2383
2385
|
};
|
|
2384
2386
|
} // AugmentedSubmittables
|
|
2385
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
|
},
|
|
@@ -2216,7 +2215,6 @@ export default {
|
|
|
2216
2215
|
bitcoinAnnualPercentRate: 'Compact<u128>',
|
|
2217
2216
|
bitcoinBaseFee: 'Compact<u128>',
|
|
2218
2217
|
treasuryProfitSharing: 'Compact<Permill>',
|
|
2219
|
-
treasuryBonusProfitSharing: 'Compact<Permill>',
|
|
2220
2218
|
},
|
|
2221
2219
|
/**
|
|
2222
2220
|
* Lookup214: argon_primitives::bitcoin::OpaqueBitcoinXpub
|
|
@@ -2265,9 +2263,9 @@ export default {
|
|
|
2265
2263
|
utxoId: 'u64',
|
|
2266
2264
|
newSatoshis: 'Compact<u64>',
|
|
2267
2265
|
},
|
|
2268
|
-
|
|
2266
|
+
set_flexible: {
|
|
2269
2267
|
utxoId: 'u64',
|
|
2270
|
-
|
|
2268
|
+
isFlexible: 'bool',
|
|
2271
2269
|
},
|
|
2272
2270
|
},
|
|
2273
2271
|
},
|
|
@@ -2297,7 +2295,7 @@ export default {
|
|
|
2297
2295
|
genesisHash: 'H256',
|
|
2298
2296
|
beneficiary: 'AccountId32',
|
|
2299
2297
|
feeDiscount: 'Compact<u128>',
|
|
2300
|
-
|
|
2298
|
+
securitizationSpaceToUnreserve: 'Compact<u128>',
|
|
2301
2299
|
expiresAtFrame: 'Compact<u64>',
|
|
2302
2300
|
nonce: 'Compact<u64>',
|
|
2303
2301
|
signature: 'SpRuntimeMultiSignature',
|
|
@@ -2741,13 +2739,13 @@ export default {
|
|
|
2741
2739
|
buy_argonot_bonds: {
|
|
2742
2740
|
bonds: 'u32',
|
|
2743
2741
|
},
|
|
2744
|
-
|
|
2742
|
+
set_bond_lot_flexible: {
|
|
2745
2743
|
bondLotId: 'u64',
|
|
2746
|
-
|
|
2744
|
+
isFlexible: 'bool',
|
|
2747
2745
|
},
|
|
2748
|
-
|
|
2746
|
+
set_reserved_bond_space: {
|
|
2749
2747
|
vaultId: 'u32',
|
|
2750
|
-
|
|
2748
|
+
reservedBondSpace: 'u32',
|
|
2751
2749
|
},
|
|
2752
2750
|
},
|
|
2753
2751
|
},
|
|
@@ -2757,8 +2755,10 @@ export default {
|
|
|
2757
2755
|
ArgonPrimitivesVaultTreasuryBonusApprovalProof: {
|
|
2758
2756
|
vaultId: 'Compact<u32>',
|
|
2759
2757
|
beneficiary: 'AccountId32',
|
|
2758
|
+
bonusPercent: 'Compact<Permill>',
|
|
2760
2759
|
expiresAtFrame: 'Compact<u64>',
|
|
2761
|
-
|
|
2760
|
+
bondSpaceToUnreserve: 'Compact<u32>',
|
|
2761
|
+
nonce: 'Compact<u64>',
|
|
2762
2762
|
signature: 'SpRuntimeMultiSignature',
|
|
2763
2763
|
},
|
|
2764
2764
|
/**
|
|
@@ -3328,12 +3328,12 @@ export default {
|
|
|
3328
3328
|
securitization: 'Compact<u128>',
|
|
3329
3329
|
securitizationTarget: 'Compact<u128>',
|
|
3330
3330
|
securitizationLocked: 'Compact<u128>',
|
|
3331
|
-
|
|
3332
|
-
|
|
3331
|
+
flexibleSecuritizationLocked: 'Compact<u128>',
|
|
3332
|
+
reservedSecuritizationSpace: 'Compact<u128>',
|
|
3333
3333
|
securitizationPendingActivation: 'Compact<u128>',
|
|
3334
3334
|
lockedSatoshis: 'Compact<u64>',
|
|
3335
3335
|
securitizedSatoshis: 'Compact<u64>',
|
|
3336
|
-
|
|
3336
|
+
flexibleSecuritizedSatoshis: 'Compact<u64>',
|
|
3337
3337
|
securitizationReleaseSchedule: 'BTreeMap<u64, u128>',
|
|
3338
3338
|
securitizationRatio: 'Compact<u128>',
|
|
3339
3339
|
isClosed: 'bool',
|
|
@@ -3418,7 +3418,6 @@ export default {
|
|
|
3418
3418
|
'InternalError',
|
|
3419
3419
|
'UnableToGenerateVaultBitcoinPubkey',
|
|
3420
3420
|
'FundingChangeAlreadyScheduled',
|
|
3421
|
-
'InvalidBondSharingTerms',
|
|
3422
3421
|
'PendingCosignsBeforeCollect',
|
|
3423
3422
|
'PendingOrphanedUtxoCosignsBeforeCollect',
|
|
3424
3423
|
'OverdueCollectBlockersBeforeCollect',
|
|
@@ -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,16 +4011,17 @@ export default {
|
|
|
4012
4011
|
'BondLotNotFound',
|
|
4013
4012
|
'NotBondLotOwner',
|
|
4014
4013
|
'BondLotAlreadyReleasing',
|
|
4015
|
-
'
|
|
4014
|
+
'InsufficientBondSpace',
|
|
4016
4015
|
'ActiveBondAmountBelowEncumberedBacking',
|
|
4017
4016
|
'BonusApprovalWrongVault',
|
|
4018
4017
|
'BonusApprovalWrongAccount',
|
|
4019
4018
|
'BonusApprovalExpired',
|
|
4020
|
-
'
|
|
4019
|
+
'BonusApprovalAlreadyUsed',
|
|
4021
4020
|
'InvalidBonusApprovalSignature',
|
|
4021
|
+
'BonusApprovalExceedsProfitSharing',
|
|
4022
4022
|
'ArgonotBondPurchaseBelowCutoff',
|
|
4023
4023
|
'ArgonotBondPurchaseAboveCap',
|
|
4024
|
-
'
|
|
4024
|
+
'BondLotCannotBeFlexible',
|
|
4025
4025
|
'NoPermissions',
|
|
4026
4026
|
],
|
|
4027
4027
|
},
|