@argonprotocol/mainchain 1.4.11-dev.645b1642 → 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 +132 -114
- 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 +132 -114
- package/lib/index.d.ts +132 -114
- package/lib/index.js +63 -53
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- 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 +9 -1
- 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/browser/index.d.ts
CHANGED
|
@@ -2024,17 +2024,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2024
2024
|
**/
|
|
2025
2025
|
BondLotAlreadyReleasing: AugmentedError<ApiType>;
|
|
2026
2026
|
/**
|
|
2027
|
-
* Only an active vault bond owned by its operator can be used as
|
|
2027
|
+
* Only an active vault bond owned by its operator can be used as flexible.
|
|
2028
2028
|
**/
|
|
2029
|
-
|
|
2029
|
+
BondLotCannotBeFlexible: AugmentedError<ApiType>;
|
|
2030
2030
|
/**
|
|
2031
2031
|
* The bond lot could not be found.
|
|
2032
2032
|
**/
|
|
2033
2033
|
BondLotNotFound: AugmentedError<ApiType>;
|
|
2034
|
-
/**
|
|
2035
|
-
* The vault doesn't have enough bitcoin security to support this bond purchase
|
|
2036
|
-
**/
|
|
2037
|
-
BondPurchaseAboveSecurity: AugmentedError<ApiType>;
|
|
2038
2034
|
/**
|
|
2039
2035
|
* The purchase is below the minimum amount.
|
|
2040
2036
|
**/
|
|
@@ -2044,9 +2040,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2044
2040
|
**/
|
|
2045
2041
|
BondPurchaseRejected: AugmentedError<ApiType>;
|
|
2046
2042
|
/**
|
|
2047
|
-
* The
|
|
2043
|
+
* The bonus approval nonce has already been consumed or superseded.
|
|
2044
|
+
**/
|
|
2045
|
+
BonusApprovalAlreadyUsed: AugmentedError<ApiType>;
|
|
2046
|
+
/**
|
|
2047
|
+
* The approved bonus plus the vault's profit sharing exceeds 100%.
|
|
2048
2048
|
**/
|
|
2049
|
-
|
|
2049
|
+
BonusApprovalExceedsProfitSharing: AugmentedError<ApiType>;
|
|
2050
2050
|
/**
|
|
2051
2051
|
* The bonus approval already expired.
|
|
2052
2052
|
**/
|
|
@@ -2059,6 +2059,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2059
2059
|
* The bonus approval was signed for a different vault.
|
|
2060
2060
|
**/
|
|
2061
2061
|
BonusApprovalWrongVault: AugmentedError<ApiType>;
|
|
2062
|
+
/**
|
|
2063
|
+
* The vault doesn't have enough bitcoin security to support this bond purchase
|
|
2064
|
+
**/
|
|
2065
|
+
InsufficientBondSpace: AugmentedError<ApiType>;
|
|
2062
2066
|
/**
|
|
2063
2067
|
* An internal error occurred.
|
|
2064
2068
|
**/
|
|
@@ -2147,10 +2151,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2147
2151
|
* The bitcoin script to lock this bitcoin has errors
|
|
2148
2152
|
**/
|
|
2149
2153
|
InvalidBitcoinScript: AugmentedError<ApiType>;
|
|
2150
|
-
/**
|
|
2151
|
-
* Treasury bond sharing plus bonus cannot exceed 100%.
|
|
2152
|
-
**/
|
|
2153
|
-
InvalidBondSharingTerms: AugmentedError<ApiType>;
|
|
2154
2154
|
/**
|
|
2155
2155
|
* An invalid securitization percent was provided for the vault. NOTE: it cannot be
|
|
2156
2156
|
* decreased (or negative)
|
|
@@ -2547,15 +2547,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2547
2547
|
compensationAmount: u128;
|
|
2548
2548
|
compensatedAccountId: AccountId32;
|
|
2549
2549
|
}>;
|
|
2550
|
-
BitcoinLockBackfillChanged: AugmentedEvent<ApiType, [
|
|
2551
|
-
utxoId: u64,
|
|
2552
|
-
vaultId: u32,
|
|
2553
|
-
isBackfill: bool
|
|
2554
|
-
], {
|
|
2555
|
-
utxoId: u64;
|
|
2556
|
-
vaultId: u32;
|
|
2557
|
-
isBackfill: bool;
|
|
2558
|
-
}>;
|
|
2559
2550
|
BitcoinLockBurned: AugmentedEvent<ApiType, [
|
|
2560
2551
|
utxoId: u64,
|
|
2561
2552
|
vaultId: u32,
|
|
@@ -2582,6 +2573,15 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2582
2573
|
accountId: AccountId32;
|
|
2583
2574
|
securityFee: u128;
|
|
2584
2575
|
}>;
|
|
2576
|
+
BitcoinLockFlexibleChanged: AugmentedEvent<ApiType, [
|
|
2577
|
+
utxoId: u64,
|
|
2578
|
+
vaultId: u32,
|
|
2579
|
+
isFlexible: bool
|
|
2580
|
+
], {
|
|
2581
|
+
utxoId: u64;
|
|
2582
|
+
vaultId: u32;
|
|
2583
|
+
isFlexible: bool;
|
|
2584
|
+
}>;
|
|
2585
2585
|
BitcoinLockRatcheted: AugmentedEvent<ApiType, [
|
|
2586
2586
|
utxoId: u64,
|
|
2587
2587
|
vaultId: u32,
|
|
@@ -4183,21 +4183,14 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
4183
4183
|
}>;
|
|
4184
4184
|
};
|
|
4185
4185
|
treasury: {
|
|
4186
|
-
|
|
4187
|
-
vaultId: u32,
|
|
4188
|
-
backfillBondsReserved: u32
|
|
4189
|
-
], {
|
|
4190
|
-
vaultId: u32;
|
|
4191
|
-
backfillBondsReserved: u32;
|
|
4192
|
-
}>;
|
|
4193
|
-
BondLotBackfillChanged: AugmentedEvent<ApiType, [
|
|
4186
|
+
BondLotFlexibilityChanged: AugmentedEvent<ApiType, [
|
|
4194
4187
|
vaultId: u32,
|
|
4195
4188
|
bondLotId: u64,
|
|
4196
|
-
|
|
4189
|
+
isFlexible: bool
|
|
4197
4190
|
], {
|
|
4198
4191
|
vaultId: u32;
|
|
4199
4192
|
bondLotId: u64;
|
|
4200
|
-
|
|
4193
|
+
isFlexible: bool;
|
|
4201
4194
|
}>;
|
|
4202
4195
|
/**
|
|
4203
4196
|
* A bond purchase entered its active program set.
|
|
@@ -4356,6 +4349,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
4356
4349
|
totalEligibleBonds: u128;
|
|
4357
4350
|
participatingVaults: u32;
|
|
4358
4351
|
}>;
|
|
4352
|
+
ReservedBondSpaceChanged: AugmentedEvent<ApiType, [
|
|
4353
|
+
vaultId: u32,
|
|
4354
|
+
reservedBondSpace: u32
|
|
4355
|
+
], {
|
|
4356
|
+
vaultId: u32;
|
|
4357
|
+
reservedBondSpace: u32;
|
|
4358
|
+
}>;
|
|
4359
4359
|
};
|
|
4360
4360
|
txPause: {
|
|
4361
4361
|
/**
|
|
@@ -4429,13 +4429,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
4429
4429
|
}>;
|
|
4430
4430
|
};
|
|
4431
4431
|
vaults: {
|
|
4432
|
-
BackfillSecuritizationReservedChanged: AugmentedEvent<ApiType, [
|
|
4433
|
-
vaultId: u32,
|
|
4434
|
-
backfillSecuritizationReserved: u128
|
|
4435
|
-
], {
|
|
4436
|
-
vaultId: u32;
|
|
4437
|
-
backfillSecuritizationReserved: u128;
|
|
4438
|
-
}>;
|
|
4439
4432
|
CommittedArgonotsSet: AugmentedEvent<ApiType, [
|
|
4440
4433
|
vaultId: u32,
|
|
4441
4434
|
operatorAccountId: AccountId32,
|
|
@@ -4501,6 +4494,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
4501
4494
|
toBeneficiary: u128;
|
|
4502
4495
|
burned: u128;
|
|
4503
4496
|
}>;
|
|
4497
|
+
ReservedSecuritizationSpaceChanged: AugmentedEvent<ApiType, [
|
|
4498
|
+
vaultId: u32,
|
|
4499
|
+
reservedSecuritizationSpace: u128
|
|
4500
|
+
], {
|
|
4501
|
+
vaultId: u32;
|
|
4502
|
+
reservedSecuritizationSpace: u128;
|
|
4503
|
+
}>;
|
|
4504
4504
|
TreasuryRecordingError: AugmentedEvent<ApiType, [
|
|
4505
4505
|
vaultId: u32,
|
|
4506
4506
|
frameId: u64,
|
|
@@ -5803,7 +5803,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
5803
5803
|
* The active bond state for a vault.
|
|
5804
5804
|
*
|
|
5805
5805
|
* The bounded payout set keeps the largest bond amount first, then lower `bond_lot_id` first
|
|
5806
|
-
* when amounts tie.
|
|
5806
|
+
* when amounts tie. Flexible lots remain in `BondLotById` and are represented here by their
|
|
5807
5807
|
* aggregate.
|
|
5808
5808
|
**/
|
|
5809
5809
|
bondLotsByVault: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletTreasuryVaultBondState>, [
|
|
@@ -5834,6 +5834,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
5834
5834
|
encumberedBondMicrogonsByAccount: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u128>, [
|
|
5835
5835
|
AccountId32
|
|
5836
5836
|
]>;
|
|
5837
|
+
lastBonusApprovalNonceByVaultAndAccount: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u64>>, [
|
|
5838
|
+
u32,
|
|
5839
|
+
AccountId32
|
|
5840
|
+
]>;
|
|
5837
5841
|
/**
|
|
5838
5842
|
* The next bond lot id.
|
|
5839
5843
|
**/
|
|
@@ -6223,7 +6227,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6223
6227
|
Bytes,
|
|
6224
6228
|
u64
|
|
6225
6229
|
]>;
|
|
6226
|
-
|
|
6230
|
+
setFlexible: AugmentedSubmittable<(utxoId: u64 | AnyNumber | Uint8Array, isFlexible: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
6227
6231
|
u64,
|
|
6228
6232
|
bool
|
|
6229
6233
|
]>;
|
|
@@ -7532,8 +7536,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7532
7536
|
buyBonds: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, bonds: u32 | AnyNumber | Uint8Array, bonusApproval: Option<ArgonPrimitivesVaultTreasuryBonusApprovalProof> | null | Uint8Array | ArgonPrimitivesVaultTreasuryBonusApprovalProof | {
|
|
7533
7537
|
vaultId?: any;
|
|
7534
7538
|
beneficiary?: any;
|
|
7539
|
+
bonusPercent?: any;
|
|
7535
7540
|
expiresAtFrame?: any;
|
|
7536
|
-
|
|
7541
|
+
bondSpaceToUnreserve?: any;
|
|
7542
|
+
nonce?: any;
|
|
7537
7543
|
signature?: any;
|
|
7538
7544
|
} | string) => SubmittableExtrinsic<ApiType>, [
|
|
7539
7545
|
u32,
|
|
@@ -7548,14 +7554,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7548
7554
|
liquidateBondLot: AugmentedSubmittable<(bondLotId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7549
7555
|
u64
|
|
7550
7556
|
]>;
|
|
7551
|
-
|
|
7552
|
-
u32,
|
|
7553
|
-
u32
|
|
7554
|
-
]>;
|
|
7555
|
-
setBondLotAsBackfill: AugmentedSubmittable<(bondLotId: u64 | AnyNumber | Uint8Array, isBackfill: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7557
|
+
setBondLotFlexible: AugmentedSubmittable<(bondLotId: u64 | AnyNumber | Uint8Array, isFlexible: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7556
7558
|
u64,
|
|
7557
7559
|
bool
|
|
7558
7560
|
]>;
|
|
7561
|
+
/**
|
|
7562
|
+
* Reserve vault bond space for future bond purchases.
|
|
7563
|
+
**/
|
|
7564
|
+
setReservedBondSpace: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, reservedBondSpace: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7565
|
+
u32,
|
|
7566
|
+
u32
|
|
7567
|
+
]>;
|
|
7559
7568
|
};
|
|
7560
7569
|
txPause: {
|
|
7561
7570
|
/**
|
|
@@ -7771,7 +7780,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7771
7780
|
bitcoinAnnualPercentRate?: any;
|
|
7772
7781
|
bitcoinBaseFee?: any;
|
|
7773
7782
|
treasuryProfitSharing?: any;
|
|
7774
|
-
treasuryBonusProfitSharing?: any;
|
|
7775
7783
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7776
7784
|
u32,
|
|
7777
7785
|
ArgonPrimitivesVaultVaultTerms
|
|
@@ -7785,16 +7793,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7785
7793
|
u32,
|
|
7786
7794
|
ArgonPrimitivesBitcoinOpaqueBitcoinXpub
|
|
7787
7795
|
]>;
|
|
7788
|
-
setBackfillSecuritizationReserved: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, backfillSecuritizationReserved: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7789
|
-
u32,
|
|
7790
|
-
u128
|
|
7791
|
-
]>;
|
|
7792
7796
|
setCommittedArgonots: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7793
7797
|
Compact<u128>
|
|
7794
7798
|
]>;
|
|
7795
7799
|
setDelegateAccount: AugmentedSubmittable<(delegateAccountId: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [
|
|
7796
7800
|
Option<AccountId32>
|
|
7797
7801
|
]>;
|
|
7802
|
+
/**
|
|
7803
|
+
* Reserve vault securitization space for future Bitcoin locks.
|
|
7804
|
+
**/
|
|
7805
|
+
setReservedSecuritizationSpace: AugmentedSubmittable<(reservedSecuritizationSpace: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7806
|
+
u128
|
|
7807
|
+
]>;
|
|
7798
7808
|
};
|
|
7799
7809
|
}
|
|
7800
7810
|
}
|
|
@@ -10376,10 +10386,10 @@ declare module '@polkadot/types/lookup' {
|
|
|
10376
10386
|
readonly asVaultBitcoinXpubChange: {
|
|
10377
10387
|
readonly vaultId: u32;
|
|
10378
10388
|
} & Struct;
|
|
10379
|
-
readonly
|
|
10380
|
-
readonly
|
|
10389
|
+
readonly isReservedSecuritizationSpaceChanged: boolean;
|
|
10390
|
+
readonly asReservedSecuritizationSpaceChanged: {
|
|
10381
10391
|
readonly vaultId: u32;
|
|
10382
|
-
readonly
|
|
10392
|
+
readonly reservedSecuritizationSpace: u128;
|
|
10383
10393
|
} & Struct;
|
|
10384
10394
|
readonly isVaultRevenueUncollected: boolean;
|
|
10385
10395
|
readonly asVaultRevenueUncollected: {
|
|
@@ -10442,7 +10452,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
10442
10452
|
readonly operatorAccountId: AccountId32;
|
|
10443
10453
|
readonly amount: u128;
|
|
10444
10454
|
} & Struct;
|
|
10445
|
-
readonly type: 'VaultCreated' | 'VaultModified' | 'VaultTermsChangeScheduled' | 'VaultTermsChanged' | 'VaultClosed' | 'VaultBitcoinXpubChange' | '
|
|
10455
|
+
readonly type: 'VaultCreated' | 'VaultModified' | 'VaultTermsChangeScheduled' | 'VaultTermsChanged' | 'VaultClosed' | 'VaultBitcoinXpubChange' | 'ReservedSecuritizationSpaceChanged' | 'VaultRevenueUncollected' | 'VaultCollected' | 'FundsLocked' | 'FundLockCanceled' | 'FundsScheduledForRelease' | 'LostBitcoinCompensated' | 'FundsReleased' | 'FundsReleasedError' | 'TreasuryRecordingError' | 'CommittedArgonotsSet';
|
|
10446
10456
|
}
|
|
10447
10457
|
/** @name PalletBitcoinLocksEvent (57) */
|
|
10448
10458
|
interface PalletBitcoinLocksEvent extends Enum {
|
|
@@ -10542,13 +10552,13 @@ declare module '@polkadot/types/lookup' {
|
|
|
10542
10552
|
readonly newSatoshis: u64;
|
|
10543
10553
|
readonly accountId: AccountId32;
|
|
10544
10554
|
} & Struct;
|
|
10545
|
-
readonly
|
|
10546
|
-
readonly
|
|
10555
|
+
readonly isBitcoinLockFlexibleChanged: boolean;
|
|
10556
|
+
readonly asBitcoinLockFlexibleChanged: {
|
|
10547
10557
|
readonly utxoId: u64;
|
|
10548
10558
|
readonly vaultId: u32;
|
|
10549
|
-
readonly
|
|
10559
|
+
readonly isFlexible: bool;
|
|
10550
10560
|
} & Struct;
|
|
10551
|
-
readonly type: 'BitcoinLockCreated' | 'BitcoinLockRatcheted' | 'BitcoinLockBurned' | 'BitcoinUtxoCosignRequested' | 'BitcoinUtxoCosigned' | 'BitcoinSpentAfterRelease' | 'BitcoinCosignPastDue' | 'CosignOverdueError' | 'LockExpirationError' | 'OrphanedUtxoReceived' | 'OrphanedUtxoReleaseRequested' | 'OrphanedUtxoCosigned' | 'UtxoFundedFromCandidate' | 'SecuritizationIncreased' | '
|
|
10561
|
+
readonly type: 'BitcoinLockCreated' | 'BitcoinLockRatcheted' | 'BitcoinLockBurned' | 'BitcoinUtxoCosignRequested' | 'BitcoinUtxoCosigned' | 'BitcoinSpentAfterRelease' | 'BitcoinCosignPastDue' | 'CosignOverdueError' | 'LockExpirationError' | 'OrphanedUtxoReceived' | 'OrphanedUtxoReleaseRequested' | 'OrphanedUtxoCosigned' | 'UtxoFundedFromCandidate' | 'SecuritizationIncreased' | 'BitcoinLockFlexibleChanged';
|
|
10552
10562
|
}
|
|
10553
10563
|
/** @name PalletNotariesEvent (60) */
|
|
10554
10564
|
interface PalletNotariesEvent extends Enum {
|
|
@@ -11313,16 +11323,16 @@ declare module '@polkadot/types/lookup' {
|
|
|
11313
11323
|
readonly accountId: AccountId32;
|
|
11314
11324
|
readonly bonds: u32;
|
|
11315
11325
|
} & Struct;
|
|
11316
|
-
readonly
|
|
11317
|
-
readonly
|
|
11326
|
+
readonly isBondLotFlexibilityChanged: boolean;
|
|
11327
|
+
readonly asBondLotFlexibilityChanged: {
|
|
11318
11328
|
readonly vaultId: u32;
|
|
11319
11329
|
readonly bondLotId: u64;
|
|
11320
|
-
readonly
|
|
11330
|
+
readonly isFlexible: bool;
|
|
11321
11331
|
} & Struct;
|
|
11322
|
-
readonly
|
|
11323
|
-
readonly
|
|
11332
|
+
readonly isReservedBondSpaceChanged: boolean;
|
|
11333
|
+
readonly asReservedBondSpaceChanged: {
|
|
11324
11334
|
readonly vaultId: u32;
|
|
11325
|
-
readonly
|
|
11335
|
+
readonly reservedBondSpace: u32;
|
|
11326
11336
|
} & Struct;
|
|
11327
11337
|
readonly isEncumberedBondMicrogonsBurned: boolean;
|
|
11328
11338
|
readonly asEncumberedBondMicrogonsBurned: {
|
|
@@ -11330,7 +11340,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
11330
11340
|
readonly burnedAmount: u128;
|
|
11331
11341
|
readonly releasedAmount: u128;
|
|
11332
11342
|
} & Struct;
|
|
11333
|
-
readonly type: 'CouldNotDistributeEarningsToBondLot' | 'CouldNotDistributeEarningsToArgonotBondLot' | 'CouldNotTransferToTreasuryReserves' | 'FrameEarningsDistributed' | 'FrameVaultCapitalLocked' | 'CouldNotReleaseBondLot' | 'BondLotPurchased' | 'BondLotReleaseScheduled' | 'BondLotReleased' | '
|
|
11343
|
+
readonly type: 'CouldNotDistributeEarningsToBondLot' | 'CouldNotDistributeEarningsToArgonotBondLot' | 'CouldNotTransferToTreasuryReserves' | 'FrameEarningsDistributed' | 'FrameVaultCapitalLocked' | 'CouldNotReleaseBondLot' | 'BondLotPurchased' | 'BondLotReleaseScheduled' | 'BondLotReleased' | 'BondLotFlexibilityChanged' | 'ReservedBondSpaceChanged' | 'EncumberedBondMicrogonsBurned';
|
|
11334
11344
|
}
|
|
11335
11345
|
/** @name PalletTreasuryBondProgramId (120) */
|
|
11336
11346
|
interface PalletTreasuryBondProgramId extends Enum {
|
|
@@ -12084,12 +12094,11 @@ declare module '@polkadot/types/lookup' {
|
|
|
12084
12094
|
readonly asSetCommittedArgonots: {
|
|
12085
12095
|
readonly amount: Compact<u128>;
|
|
12086
12096
|
} & Struct;
|
|
12087
|
-
readonly
|
|
12088
|
-
readonly
|
|
12089
|
-
readonly
|
|
12090
|
-
readonly backfillSecuritizationReserved: u128;
|
|
12097
|
+
readonly isSetReservedSecuritizationSpace: boolean;
|
|
12098
|
+
readonly asSetReservedSecuritizationSpace: {
|
|
12099
|
+
readonly reservedSecuritizationSpace: u128;
|
|
12091
12100
|
} & Struct;
|
|
12092
|
-
readonly type: 'Create' | 'ModifyFunding' | 'ModifyTerms' | 'Close' | 'ReplaceBitcoinXpub' | 'Collect' | 'SetDelegateAccount' | 'SetCommittedArgonots' | '
|
|
12101
|
+
readonly type: 'Create' | 'ModifyFunding' | 'ModifyTerms' | 'Close' | 'ReplaceBitcoinXpub' | 'Collect' | 'SetDelegateAccount' | 'SetCommittedArgonots' | 'SetReservedSecuritizationSpace';
|
|
12093
12102
|
}
|
|
12094
12103
|
/** @name PalletVaultsVaultConfig (209) */
|
|
12095
12104
|
interface PalletVaultsVaultConfig extends Struct {
|
|
@@ -12104,7 +12113,6 @@ declare module '@polkadot/types/lookup' {
|
|
|
12104
12113
|
readonly bitcoinAnnualPercentRate: Compact<u128>;
|
|
12105
12114
|
readonly bitcoinBaseFee: Compact<u128>;
|
|
12106
12115
|
readonly treasuryProfitSharing: Compact<Permill>;
|
|
12107
|
-
readonly treasuryBonusProfitSharing: Compact<Permill>;
|
|
12108
12116
|
}
|
|
12109
12117
|
/** @name ArgonPrimitivesBitcoinOpaqueBitcoinXpub (214) */
|
|
12110
12118
|
interface ArgonPrimitivesBitcoinOpaqueBitcoinXpub extends U8aFixed {
|
|
@@ -12155,12 +12163,12 @@ declare module '@polkadot/types/lookup' {
|
|
|
12155
12163
|
readonly utxoId: u64;
|
|
12156
12164
|
readonly newSatoshis: Compact<u64>;
|
|
12157
12165
|
} & Struct;
|
|
12158
|
-
readonly
|
|
12159
|
-
readonly
|
|
12166
|
+
readonly isSetFlexible: boolean;
|
|
12167
|
+
readonly asSetFlexible: {
|
|
12160
12168
|
readonly utxoId: u64;
|
|
12161
|
-
readonly
|
|
12169
|
+
readonly isFlexible: bool;
|
|
12162
12170
|
} & Struct;
|
|
12163
|
-
readonly type: 'Initialize' | 'RequestRelease' | 'CosignRelease' | 'Ratchet' | 'AdminModifyMinimumLockedSats' | 'RequestOrphanedUtxoRelease' | 'CosignOrphanedUtxoRelease' | 'IncreaseSecuritization' | '
|
|
12171
|
+
readonly type: 'Initialize' | 'RequestRelease' | 'CosignRelease' | 'Ratchet' | 'AdminModifyMinimumLockedSats' | 'RequestOrphanedUtxoRelease' | 'CosignOrphanedUtxoRelease' | 'IncreaseSecuritization' | 'SetFlexible';
|
|
12164
12172
|
}
|
|
12165
12173
|
/** @name ArgonPrimitivesBitcoinCompressedBitcoinPubkey (217) */
|
|
12166
12174
|
interface ArgonPrimitivesBitcoinCompressedBitcoinPubkey extends U8aFixed {
|
|
@@ -12184,7 +12192,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
12184
12192
|
readonly genesisHash: H256;
|
|
12185
12193
|
readonly beneficiary: AccountId32;
|
|
12186
12194
|
readonly feeDiscount: Compact<u128>;
|
|
12187
|
-
readonly
|
|
12195
|
+
readonly securitizationSpaceToUnreserve: Compact<u128>;
|
|
12188
12196
|
readonly expiresAtFrame: Compact<u64>;
|
|
12189
12197
|
readonly nonce: Compact<u64>;
|
|
12190
12198
|
readonly signature: SpRuntimeMultiSignature;
|
|
@@ -12587,24 +12595,26 @@ declare module '@polkadot/types/lookup' {
|
|
|
12587
12595
|
readonly asBuyArgonotBonds: {
|
|
12588
12596
|
readonly bonds: u32;
|
|
12589
12597
|
} & Struct;
|
|
12590
|
-
readonly
|
|
12591
|
-
readonly
|
|
12598
|
+
readonly isSetBondLotFlexible: boolean;
|
|
12599
|
+
readonly asSetBondLotFlexible: {
|
|
12592
12600
|
readonly bondLotId: u64;
|
|
12593
|
-
readonly
|
|
12601
|
+
readonly isFlexible: bool;
|
|
12594
12602
|
} & Struct;
|
|
12595
|
-
readonly
|
|
12596
|
-
readonly
|
|
12603
|
+
readonly isSetReservedBondSpace: boolean;
|
|
12604
|
+
readonly asSetReservedBondSpace: {
|
|
12597
12605
|
readonly vaultId: u32;
|
|
12598
|
-
readonly
|
|
12606
|
+
readonly reservedBondSpace: u32;
|
|
12599
12607
|
} & Struct;
|
|
12600
|
-
readonly type: 'BuyBonds' | 'LiquidateBondLot' | 'BuyArgonotBonds' | '
|
|
12608
|
+
readonly type: 'BuyBonds' | 'LiquidateBondLot' | 'BuyArgonotBonds' | 'SetBondLotFlexible' | 'SetReservedBondSpace';
|
|
12601
12609
|
}
|
|
12602
12610
|
/** @name ArgonPrimitivesVaultTreasuryBonusApprovalProof (278) */
|
|
12603
12611
|
interface ArgonPrimitivesVaultTreasuryBonusApprovalProof extends Struct {
|
|
12604
12612
|
readonly vaultId: Compact<u32>;
|
|
12605
12613
|
readonly beneficiary: AccountId32;
|
|
12614
|
+
readonly bonusPercent: Compact<Permill>;
|
|
12606
12615
|
readonly expiresAtFrame: Compact<u64>;
|
|
12607
|
-
readonly
|
|
12616
|
+
readonly bondSpaceToUnreserve: Compact<u32>;
|
|
12617
|
+
readonly nonce: Compact<u64>;
|
|
12608
12618
|
readonly signature: SpRuntimeMultiSignature;
|
|
12609
12619
|
}
|
|
12610
12620
|
/** @name PalletOperationalAccountsCall (279) */
|
|
@@ -13097,12 +13107,12 @@ declare module '@polkadot/types/lookup' {
|
|
|
13097
13107
|
readonly securitization: Compact<u128>;
|
|
13098
13108
|
readonly securitizationTarget: Compact<u128>;
|
|
13099
13109
|
readonly securitizationLocked: Compact<u128>;
|
|
13100
|
-
readonly
|
|
13101
|
-
readonly
|
|
13110
|
+
readonly flexibleSecuritizationLocked: Compact<u128>;
|
|
13111
|
+
readonly reservedSecuritizationSpace: Compact<u128>;
|
|
13102
13112
|
readonly securitizationPendingActivation: Compact<u128>;
|
|
13103
13113
|
readonly lockedSatoshis: Compact<u64>;
|
|
13104
13114
|
readonly securitizedSatoshis: Compact<u64>;
|
|
13105
|
-
readonly
|
|
13115
|
+
readonly flexibleSecuritizedSatoshis: Compact<u64>;
|
|
13106
13116
|
readonly securitizationReleaseSchedule: BTreeMap<u64, u128>;
|
|
13107
13117
|
readonly securitizationRatio: Compact<u128>;
|
|
13108
13118
|
readonly isClosed: bool;
|
|
@@ -13178,14 +13188,13 @@ declare module '@polkadot/types/lookup' {
|
|
|
13178
13188
|
readonly isInternalError: boolean;
|
|
13179
13189
|
readonly isUnableToGenerateVaultBitcoinPubkey: boolean;
|
|
13180
13190
|
readonly isFundingChangeAlreadyScheduled: boolean;
|
|
13181
|
-
readonly isInvalidBondSharingTerms: boolean;
|
|
13182
13191
|
readonly isPendingCosignsBeforeCollect: boolean;
|
|
13183
13192
|
readonly isPendingOrphanedUtxoCosignsBeforeCollect: boolean;
|
|
13184
13193
|
readonly isOverdueCollectBlockersBeforeCollect: boolean;
|
|
13185
13194
|
readonly isAccountAlreadyHasVault: boolean;
|
|
13186
13195
|
readonly isOperationalAccountRegistrationRequired: boolean;
|
|
13187
13196
|
readonly isCommittedArgonotsBelowEncumberedBacking: boolean;
|
|
13188
|
-
readonly type: 'NoMoreVaultIds' | 'InsufficientFunds' | 'InsufficientVaultFunds' | 'AccountBelowMinimumBalance' | 'VaultClosed' | 'InvalidVaultAmount' | 'VaultReductionBelowSecuritization' | 'InvalidSecuritization' | 'ReusedVaultBitcoinXpub' | 'InvalidBitcoinScript' | 'InvalidXpubkey' | 'WrongXpubNetwork' | 'UnsafeXpubkey' | 'UnableToDeriveVaultXpubChild' | 'BitcoinConversionFailed' | 'NoPermissions' | 'HoldUnexpectedlyModified' | 'UnrecoverableHold' | 'VaultNotFound' | 'VaultNotYetActive' | 'NoVaultBitcoinPubkeysAvailable' | 'TermsModificationOverflow' | 'TermsChangeAlreadyScheduled' | 'InternalError' | 'UnableToGenerateVaultBitcoinPubkey' | 'FundingChangeAlreadyScheduled' | '
|
|
13197
|
+
readonly type: 'NoMoreVaultIds' | 'InsufficientFunds' | 'InsufficientVaultFunds' | 'AccountBelowMinimumBalance' | 'VaultClosed' | 'InvalidVaultAmount' | 'VaultReductionBelowSecuritization' | 'InvalidSecuritization' | 'ReusedVaultBitcoinXpub' | 'InvalidBitcoinScript' | 'InvalidXpubkey' | 'WrongXpubNetwork' | 'UnsafeXpubkey' | 'UnableToDeriveVaultXpubChild' | 'BitcoinConversionFailed' | 'NoPermissions' | 'HoldUnexpectedlyModified' | 'UnrecoverableHold' | 'VaultNotFound' | 'VaultNotYetActive' | 'NoVaultBitcoinPubkeysAvailable' | 'TermsModificationOverflow' | 'TermsChangeAlreadyScheduled' | 'InternalError' | 'UnableToGenerateVaultBitcoinPubkey' | 'FundingChangeAlreadyScheduled' | 'PendingCosignsBeforeCollect' | 'PendingOrphanedUtxoCosignsBeforeCollect' | 'OverdueCollectBlockersBeforeCollect' | 'AccountAlreadyHasVault' | 'OperationalAccountRegistrationRequired' | 'CommittedArgonotsBelowEncumberedBacking';
|
|
13189
13198
|
}
|
|
13190
13199
|
/** @name PalletBitcoinLocksLockedBitcoin (421) */
|
|
13191
13200
|
interface PalletBitcoinLocksLockedBitcoin extends Struct {
|
|
@@ -13207,7 +13216,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
13207
13216
|
readonly createdAtHeight: Compact<u64>;
|
|
13208
13217
|
readonly utxoScriptPubkey: ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey;
|
|
13209
13218
|
readonly isFunded: bool;
|
|
13210
|
-
readonly
|
|
13219
|
+
readonly isFlexible: bool;
|
|
13211
13220
|
readonly fundHoldExtensions: BTreeMap<u64, u128>;
|
|
13212
13221
|
readonly createdAtArgonBlock: Compact<u32>;
|
|
13213
13222
|
}
|
|
@@ -13593,9 +13602,9 @@ declare module '@polkadot/types/lookup' {
|
|
|
13593
13602
|
}
|
|
13594
13603
|
/** @name PalletTreasuryVaultCapital (528) */
|
|
13595
13604
|
interface PalletTreasuryVaultCapital extends Struct {
|
|
13596
|
-
readonly
|
|
13597
|
-
readonly
|
|
13598
|
-
readonly
|
|
13605
|
+
readonly regularBondAllocations: Vec<PalletTreasuryBondLotAllocation>;
|
|
13606
|
+
readonly flexibleBondsEligible: Compact<u32>;
|
|
13607
|
+
readonly flexibleProrata: u128;
|
|
13599
13608
|
readonly eligibleBonds: Compact<u32>;
|
|
13600
13609
|
}
|
|
13601
13610
|
/** @name PalletTreasuryBondLotAllocation (530) */
|
|
@@ -13619,7 +13628,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
13619
13628
|
readonly owner: AccountId32;
|
|
13620
13629
|
readonly program: PalletTreasuryBondProgram;
|
|
13621
13630
|
readonly bonds: Compact<u32>;
|
|
13622
|
-
readonly
|
|
13631
|
+
readonly isFlexible: bool;
|
|
13623
13632
|
readonly createdFrameId: Compact<u64>;
|
|
13624
13633
|
readonly participatedFrames: Compact<u32>;
|
|
13625
13634
|
readonly lastFrameEarningsFrameId: Option<u64>;
|
|
@@ -13641,9 +13650,9 @@ declare module '@polkadot/types/lookup' {
|
|
|
13641
13650
|
}
|
|
13642
13651
|
/** @name PalletTreasuryVaultBondState (543) */
|
|
13643
13652
|
interface PalletTreasuryVaultBondState extends Struct {
|
|
13644
|
-
readonly
|
|
13645
|
-
readonly
|
|
13646
|
-
readonly
|
|
13653
|
+
readonly regularBondLots: Vec<PalletTreasuryBondLotSummary>;
|
|
13654
|
+
readonly flexibleBonds: Compact<u32>;
|
|
13655
|
+
readonly reservedBondSpace: Compact<u32>;
|
|
13647
13656
|
}
|
|
13648
13657
|
/** @name PalletTreasuryError (545) */
|
|
13649
13658
|
interface PalletTreasuryError extends Enum {
|
|
@@ -13656,18 +13665,19 @@ declare module '@polkadot/types/lookup' {
|
|
|
13656
13665
|
readonly isBondLotNotFound: boolean;
|
|
13657
13666
|
readonly isNotBondLotOwner: boolean;
|
|
13658
13667
|
readonly isBondLotAlreadyReleasing: boolean;
|
|
13659
|
-
readonly
|
|
13668
|
+
readonly isInsufficientBondSpace: boolean;
|
|
13660
13669
|
readonly isActiveBondAmountBelowEncumberedBacking: boolean;
|
|
13661
13670
|
readonly isBonusApprovalWrongVault: boolean;
|
|
13662
13671
|
readonly isBonusApprovalWrongAccount: boolean;
|
|
13663
13672
|
readonly isBonusApprovalExpired: boolean;
|
|
13664
|
-
readonly
|
|
13673
|
+
readonly isBonusApprovalAlreadyUsed: boolean;
|
|
13665
13674
|
readonly isInvalidBonusApprovalSignature: boolean;
|
|
13675
|
+
readonly isBonusApprovalExceedsProfitSharing: boolean;
|
|
13666
13676
|
readonly isArgonotBondPurchaseBelowCutoff: boolean;
|
|
13667
13677
|
readonly isArgonotBondPurchaseAboveCap: boolean;
|
|
13668
|
-
readonly
|
|
13678
|
+
readonly isBondLotCannotBeFlexible: boolean;
|
|
13669
13679
|
readonly isNoPermissions: boolean;
|
|
13670
|
-
readonly type: 'BondPurchaseRejected' | 'VaultNotAcceptingBondPurchases' | 'BondPurchaseBelowMinimum' | 'InternalError' | 'MaxAcceptedBondLotsExceeded' | 'MaxPendingBondReleasesExceeded' | 'BondLotNotFound' | 'NotBondLotOwner' | 'BondLotAlreadyReleasing' | '
|
|
13680
|
+
readonly type: 'BondPurchaseRejected' | 'VaultNotAcceptingBondPurchases' | 'BondPurchaseBelowMinimum' | 'InternalError' | 'MaxAcceptedBondLotsExceeded' | 'MaxPendingBondReleasesExceeded' | 'BondLotNotFound' | 'NotBondLotOwner' | 'BondLotAlreadyReleasing' | 'InsufficientBondSpace' | 'ActiveBondAmountBelowEncumberedBacking' | 'BonusApprovalWrongVault' | 'BonusApprovalWrongAccount' | 'BonusApprovalExpired' | 'BonusApprovalAlreadyUsed' | 'InvalidBonusApprovalSignature' | 'BonusApprovalExceedsProfitSharing' | 'ArgonotBondPurchaseBelowCutoff' | 'ArgonotBondPurchaseAboveCap' | 'BondLotCannotBeFlexible' | 'NoPermissions';
|
|
13671
13681
|
}
|
|
13672
13682
|
/** @name PalletFeeControlError (546) */
|
|
13673
13683
|
interface PalletFeeControlError extends Enum {
|
|
@@ -14220,6 +14230,16 @@ interface ArgonPrimitivesVaultV144 extends Struct {
|
|
|
14220
14230
|
readonly pendingTerms: Option<ITuple<[u64, ArgonPrimitivesVaultVaultTerms]>>;
|
|
14221
14231
|
readonly openedTick: Compact<u64>;
|
|
14222
14232
|
}
|
|
14233
|
+
type PreviousArgonPrimitivesVault = Omit<ArgonPrimitivesVault, 'flexibleSecuritizationLocked' | 'reservedSecuritizationSpace' | 'flexibleSecuritizedSatoshis'> & {
|
|
14234
|
+
readonly backfillSecuritizationLocked: ArgonPrimitivesVault['flexibleSecuritizationLocked'];
|
|
14235
|
+
readonly backfillSecuritizationReserved: ArgonPrimitivesVault['reservedSecuritizationSpace'];
|
|
14236
|
+
readonly backfillSecuritizedSatoshis: ArgonPrimitivesVault['flexibleSecuritizedSatoshis'];
|
|
14237
|
+
};
|
|
14238
|
+
type PreviousPalletTreasuryVaultBondState = Omit<PalletTreasuryVaultBondState, 'regularBondLots' | 'flexibleBonds' | 'reservedBondSpace'> & {
|
|
14239
|
+
readonly bondLots: PalletTreasuryVaultBondState['regularBondLots'];
|
|
14240
|
+
readonly backfillBonds: PalletTreasuryVaultBondState['flexibleBonds'];
|
|
14241
|
+
readonly backfillBondsReserved: PalletTreasuryVaultBondState['reservedBondSpace'];
|
|
14242
|
+
};
|
|
14223
14243
|
declare class Vault {
|
|
14224
14244
|
tickDuration: number;
|
|
14225
14245
|
securitization: bigint;
|
|
@@ -14240,19 +14260,19 @@ declare class Vault {
|
|
|
14240
14260
|
securitizationRatio: number;
|
|
14241
14261
|
lockedSatoshis: number;
|
|
14242
14262
|
securitizedSatoshis: number;
|
|
14243
|
-
|
|
14244
|
-
|
|
14245
|
-
|
|
14263
|
+
flexibleSecuritizationLocked: bigint;
|
|
14264
|
+
reservedSecuritizationSpace: bigint;
|
|
14265
|
+
flexibleSecuritizedSatoshis: number;
|
|
14246
14266
|
name?: string;
|
|
14247
14267
|
lastNameChangeTick?: number;
|
|
14248
14268
|
delegateAccountId?: string;
|
|
14249
14269
|
constructor(id: number, vault: ArgonPrimitivesVault, tickDuration: number);
|
|
14250
|
-
load(vault: ArgonPrimitivesVault | ArgonPrimitivesVaultV144): void;
|
|
14270
|
+
load(vault: ArgonPrimitivesVault | PreviousArgonPrimitivesVault | ArgonPrimitivesVaultV144): void;
|
|
14251
14271
|
availableBitcoinSpace(lockOwner?: string): bigint;
|
|
14252
|
-
|
|
14272
|
+
availableSecuritizationSpace(lockOwner?: string): bigint;
|
|
14253
14273
|
availableBondSpace(priceIndex: PriceIndex, bondState?: Iterable<{
|
|
14254
14274
|
activeBonds: number;
|
|
14255
|
-
}> | PalletTreasuryVaultBondState, bondFullCapacityPerFrame?: boolean): bigint;
|
|
14275
|
+
}> | PalletTreasuryVaultBondState | PreviousPalletTreasuryVaultBondState, bondFullCapacityPerFrame?: boolean): bigint;
|
|
14256
14276
|
getRelockCapacity(): bigint;
|
|
14257
14277
|
securitizationRatioBN(): BigNumber;
|
|
14258
14278
|
activatedSecuritization(): bigint;
|
|
@@ -14271,7 +14291,6 @@ declare class Vault {
|
|
|
14271
14291
|
bitcoinXpub: string;
|
|
14272
14292
|
delegateAccountId?: string;
|
|
14273
14293
|
treasuryProfitSharing: number;
|
|
14274
|
-
treasuryBonusProfitSharing: number;
|
|
14275
14294
|
doNotExceedBalance?: bigint;
|
|
14276
14295
|
} & ISubmittableOptions, config?: {
|
|
14277
14296
|
tickDurationMillis?: number;
|
|
@@ -14287,7 +14306,6 @@ interface ITerms {
|
|
|
14287
14306
|
readonly bitcoinAnnualPercentRate: BigNumber;
|
|
14288
14307
|
readonly bitcoinBaseFee: bigint;
|
|
14289
14308
|
readonly treasuryProfitSharing: BigNumber;
|
|
14290
|
-
readonly treasuryBonusProfitSharing: BigNumber;
|
|
14291
14309
|
}
|
|
14292
14310
|
|
|
14293
14311
|
declare function toFixedNumber(value: string | number | BigNumber, // accept string to avoid early precision loss
|
|
@@ -14315,7 +14333,7 @@ type BitcoinLockFeeCoupon = {
|
|
|
14315
14333
|
genesisHash: string;
|
|
14316
14334
|
beneficiary: string;
|
|
14317
14335
|
feeDiscount: bigint;
|
|
14318
|
-
|
|
14336
|
+
securitizationSpaceToUnreserve: bigint;
|
|
14319
14337
|
expiresAtFrame: bigint;
|
|
14320
14338
|
nonce: bigint;
|
|
14321
14339
|
signature: AnyJson;
|
|
@@ -14343,7 +14361,7 @@ declare class BitcoinLock implements IBitcoinLock {
|
|
|
14343
14361
|
openClaimHeight: number;
|
|
14344
14362
|
createdAtHeight: number;
|
|
14345
14363
|
isFunded: boolean;
|
|
14346
|
-
|
|
14364
|
+
isFlexible: boolean;
|
|
14347
14365
|
createdAtArgonBlock: number;
|
|
14348
14366
|
fundHoldExtensionsByBitcoinExpirationHeight: Record<number, bigint>;
|
|
14349
14367
|
couponFeesPaid: bigint;
|
|
@@ -14451,7 +14469,7 @@ declare class BitcoinLock implements IBitcoinLock {
|
|
|
14451
14469
|
tip?: bigint;
|
|
14452
14470
|
feeCoupon?: BitcoinLockFeeCoupon;
|
|
14453
14471
|
initializeForAccountId?: string;
|
|
14454
|
-
|
|
14472
|
+
securitizationSpaceToUnreserve?: bigint;
|
|
14455
14473
|
}): Promise<{
|
|
14456
14474
|
tx: SubmittableExtrinsic$1;
|
|
14457
14475
|
securityFee: bigint;
|
|
@@ -14524,7 +14542,7 @@ interface IBitcoinLock {
|
|
|
14524
14542
|
openClaimHeight: number;
|
|
14525
14543
|
createdAtHeight: number;
|
|
14526
14544
|
isFunded: boolean;
|
|
14527
|
-
|
|
14545
|
+
isFlexible: boolean;
|
|
14528
14546
|
createdAtArgonBlock: number;
|
|
14529
14547
|
fundHoldExtensionsByBitcoinExpirationHeight: Record<number, bigint>;
|
|
14530
14548
|
}
|