@argonprotocol/mainchain 1.4.11-dev.645b1642 → 1.4.11-dev.7b637899
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 +18 -14
- package/browser/index.js +2 -15
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +28 -41
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +18 -14
- package/lib/index.d.ts +18 -14
- package/lib/index.js +2 -15
- 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-query.ts +8 -0
- package/src/interfaces/augment-api-tx.ts +3 -6
- package/src/interfaces/lookup.ts +4 -3
- package/src/interfaces/types-lookup.ts +6 -5
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.7b637899",
|
|
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.7b637899",
|
|
72
72
|
"@polkadot/typegen": "^16.5.6",
|
|
73
73
|
"@substrate/ss58-registry": "^1.51.0",
|
|
74
74
|
"@types/node": "^20",
|
|
@@ -1292,9 +1292,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1292
1292
|
**/
|
|
1293
1293
|
BondPurchaseRejected: AugmentedError<ApiType>;
|
|
1294
1294
|
/**
|
|
1295
|
-
* The
|
|
1295
|
+
* The bonus approval nonce has already been consumed or superseded.
|
|
1296
1296
|
**/
|
|
1297
|
-
|
|
1297
|
+
BonusApprovalAlreadyUsed: AugmentedError<ApiType>;
|
|
1298
|
+
/**
|
|
1299
|
+
* The approved bonus plus the vault's profit sharing exceeds 100%.
|
|
1300
|
+
**/
|
|
1301
|
+
BonusApprovalExceedsProfitSharing: AugmentedError<ApiType>;
|
|
1298
1302
|
/**
|
|
1299
1303
|
* The bonus approval already expired.
|
|
1300
1304
|
**/
|
|
@@ -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)
|
|
@@ -1799,6 +1799,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1799
1799
|
(arg: AccountId32 | string | Uint8Array) => Observable<u128>,
|
|
1800
1800
|
[AccountId32]
|
|
1801
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
|
+
>;
|
|
1802
1810
|
/**
|
|
1803
1811
|
* The next bond lot id.
|
|
1804
1812
|
**/
|
|
@@ -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
|
backfillBondsToUnreserve?: any;
|
|
2056
|
+
nonce?: any;
|
|
2055
2057
|
signature?: any;
|
|
2056
2058
|
}
|
|
2057
2059
|
| string,
|
|
@@ -2340,12 +2342,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2340
2342
|
vaultId: u32 | AnyNumber | Uint8Array,
|
|
2341
2343
|
terms:
|
|
2342
2344
|
| ArgonPrimitivesVaultVaultTerms
|
|
2343
|
-
| {
|
|
2344
|
-
bitcoinAnnualPercentRate?: any;
|
|
2345
|
-
bitcoinBaseFee?: any;
|
|
2346
|
-
treasuryProfitSharing?: any;
|
|
2347
|
-
treasuryBonusProfitSharing?: any;
|
|
2348
|
-
}
|
|
2345
|
+
| { bitcoinAnnualPercentRate?: any; bitcoinBaseFee?: any; treasuryProfitSharing?: any }
|
|
2349
2346
|
| string
|
|
2350
2347
|
| Uint8Array,
|
|
2351
2348
|
) => SubmittableExtrinsic<ApiType>,
|
package/src/interfaces/lookup.ts
CHANGED
|
@@ -2216,7 +2216,6 @@ export default {
|
|
|
2216
2216
|
bitcoinAnnualPercentRate: 'Compact<u128>',
|
|
2217
2217
|
bitcoinBaseFee: 'Compact<u128>',
|
|
2218
2218
|
treasuryProfitSharing: 'Compact<Permill>',
|
|
2219
|
-
treasuryBonusProfitSharing: 'Compact<Permill>',
|
|
2220
2219
|
},
|
|
2221
2220
|
/**
|
|
2222
2221
|
* Lookup214: argon_primitives::bitcoin::OpaqueBitcoinXpub
|
|
@@ -2757,8 +2756,10 @@ export default {
|
|
|
2757
2756
|
ArgonPrimitivesVaultTreasuryBonusApprovalProof: {
|
|
2758
2757
|
vaultId: 'Compact<u32>',
|
|
2759
2758
|
beneficiary: 'AccountId32',
|
|
2759
|
+
bonusPercent: 'Compact<Permill>',
|
|
2760
2760
|
expiresAtFrame: 'Compact<u64>',
|
|
2761
2761
|
backfillBondsToUnreserve: 'Compact<u32>',
|
|
2762
|
+
nonce: 'Compact<u64>',
|
|
2762
2763
|
signature: 'SpRuntimeMultiSignature',
|
|
2763
2764
|
},
|
|
2764
2765
|
/**
|
|
@@ -3418,7 +3419,6 @@ export default {
|
|
|
3418
3419
|
'InternalError',
|
|
3419
3420
|
'UnableToGenerateVaultBitcoinPubkey',
|
|
3420
3421
|
'FundingChangeAlreadyScheduled',
|
|
3421
|
-
'InvalidBondSharingTerms',
|
|
3422
3422
|
'PendingCosignsBeforeCollect',
|
|
3423
3423
|
'PendingOrphanedUtxoCosignsBeforeCollect',
|
|
3424
3424
|
'OverdueCollectBlockersBeforeCollect',
|
|
@@ -4017,8 +4017,9 @@ export default {
|
|
|
4017
4017
|
'BonusApprovalWrongVault',
|
|
4018
4018
|
'BonusApprovalWrongAccount',
|
|
4019
4019
|
'BonusApprovalExpired',
|
|
4020
|
-
'
|
|
4020
|
+
'BonusApprovalAlreadyUsed',
|
|
4021
4021
|
'InvalidBonusApprovalSignature',
|
|
4022
|
+
'BonusApprovalExceedsProfitSharing',
|
|
4022
4023
|
'ArgonotBondPurchaseBelowCutoff',
|
|
4023
4024
|
'ArgonotBondPurchaseAboveCap',
|
|
4024
4025
|
'BondLotNotEligibleForBackfill',
|
|
@@ -2699,7 +2699,6 @@ declare module '@polkadot/types/lookup' {
|
|
|
2699
2699
|
readonly bitcoinAnnualPercentRate: Compact<u128>;
|
|
2700
2700
|
readonly bitcoinBaseFee: Compact<u128>;
|
|
2701
2701
|
readonly treasuryProfitSharing: Compact<Permill>;
|
|
2702
|
-
readonly treasuryBonusProfitSharing: Compact<Permill>;
|
|
2703
2702
|
}
|
|
2704
2703
|
|
|
2705
2704
|
/** @name ArgonPrimitivesBitcoinOpaqueBitcoinXpub (214) */
|
|
@@ -3266,8 +3265,10 @@ declare module '@polkadot/types/lookup' {
|
|
|
3266
3265
|
interface ArgonPrimitivesVaultTreasuryBonusApprovalProof extends Struct {
|
|
3267
3266
|
readonly vaultId: Compact<u32>;
|
|
3268
3267
|
readonly beneficiary: AccountId32;
|
|
3268
|
+
readonly bonusPercent: Compact<Permill>;
|
|
3269
3269
|
readonly expiresAtFrame: Compact<u64>;
|
|
3270
3270
|
readonly backfillBondsToUnreserve: Compact<u32>;
|
|
3271
|
+
readonly nonce: Compact<u64>;
|
|
3271
3272
|
readonly signature: SpRuntimeMultiSignature;
|
|
3272
3273
|
}
|
|
3273
3274
|
|
|
@@ -3964,7 +3965,6 @@ declare module '@polkadot/types/lookup' {
|
|
|
3964
3965
|
readonly isInternalError: boolean;
|
|
3965
3966
|
readonly isUnableToGenerateVaultBitcoinPubkey: boolean;
|
|
3966
3967
|
readonly isFundingChangeAlreadyScheduled: boolean;
|
|
3967
|
-
readonly isInvalidBondSharingTerms: boolean;
|
|
3968
3968
|
readonly isPendingCosignsBeforeCollect: boolean;
|
|
3969
3969
|
readonly isPendingOrphanedUtxoCosignsBeforeCollect: boolean;
|
|
3970
3970
|
readonly isOverdueCollectBlockersBeforeCollect: boolean;
|
|
@@ -3998,7 +3998,6 @@ declare module '@polkadot/types/lookup' {
|
|
|
3998
3998
|
| 'InternalError'
|
|
3999
3999
|
| 'UnableToGenerateVaultBitcoinPubkey'
|
|
4000
4000
|
| 'FundingChangeAlreadyScheduled'
|
|
4001
|
-
| 'InvalidBondSharingTerms'
|
|
4002
4001
|
| 'PendingCosignsBeforeCollect'
|
|
4003
4002
|
| 'PendingOrphanedUtxoCosignsBeforeCollect'
|
|
4004
4003
|
| 'OverdueCollectBlockersBeforeCollect'
|
|
@@ -4667,8 +4666,9 @@ declare module '@polkadot/types/lookup' {
|
|
|
4667
4666
|
readonly isBonusApprovalWrongVault: boolean;
|
|
4668
4667
|
readonly isBonusApprovalWrongAccount: boolean;
|
|
4669
4668
|
readonly isBonusApprovalExpired: boolean;
|
|
4670
|
-
readonly
|
|
4669
|
+
readonly isBonusApprovalAlreadyUsed: boolean;
|
|
4671
4670
|
readonly isInvalidBonusApprovalSignature: boolean;
|
|
4671
|
+
readonly isBonusApprovalExceedsProfitSharing: boolean;
|
|
4672
4672
|
readonly isArgonotBondPurchaseBelowCutoff: boolean;
|
|
4673
4673
|
readonly isArgonotBondPurchaseAboveCap: boolean;
|
|
4674
4674
|
readonly isBondLotNotEligibleForBackfill: boolean;
|
|
@@ -4688,8 +4688,9 @@ declare module '@polkadot/types/lookup' {
|
|
|
4688
4688
|
| 'BonusApprovalWrongVault'
|
|
4689
4689
|
| 'BonusApprovalWrongAccount'
|
|
4690
4690
|
| 'BonusApprovalExpired'
|
|
4691
|
-
| '
|
|
4691
|
+
| 'BonusApprovalAlreadyUsed'
|
|
4692
4692
|
| 'InvalidBonusApprovalSignature'
|
|
4693
|
+
| 'BonusApprovalExceedsProfitSharing'
|
|
4693
4694
|
| 'ArgonotBondPurchaseBelowCutoff'
|
|
4694
4695
|
| 'ArgonotBondPurchaseAboveCap'
|
|
4695
4696
|
| 'BondLotNotEligibleForBackfill'
|