@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
|
@@ -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) */
|
|
@@ -2699,7 +2698,6 @@ declare module '@polkadot/types/lookup' {
|
|
|
2699
2698
|
readonly bitcoinAnnualPercentRate: Compact<u128>;
|
|
2700
2699
|
readonly bitcoinBaseFee: Compact<u128>;
|
|
2701
2700
|
readonly treasuryProfitSharing: Compact<Permill>;
|
|
2702
|
-
readonly treasuryBonusProfitSharing: Compact<Permill>;
|
|
2703
2701
|
}
|
|
2704
2702
|
|
|
2705
2703
|
/** @name ArgonPrimitivesBitcoinOpaqueBitcoinXpub (214) */
|
|
@@ -2751,10 +2749,10 @@ declare module '@polkadot/types/lookup' {
|
|
|
2751
2749
|
readonly utxoId: u64;
|
|
2752
2750
|
readonly newSatoshis: Compact<u64>;
|
|
2753
2751
|
} & Struct;
|
|
2754
|
-
readonly
|
|
2755
|
-
readonly
|
|
2752
|
+
readonly isSetFlexible: boolean;
|
|
2753
|
+
readonly asSetFlexible: {
|
|
2756
2754
|
readonly utxoId: u64;
|
|
2757
|
-
readonly
|
|
2755
|
+
readonly isFlexible: bool;
|
|
2758
2756
|
} & Struct;
|
|
2759
2757
|
readonly type:
|
|
2760
2758
|
| 'Initialize'
|
|
@@ -2765,7 +2763,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
2765
2763
|
| 'RequestOrphanedUtxoRelease'
|
|
2766
2764
|
| 'CosignOrphanedUtxoRelease'
|
|
2767
2765
|
| 'IncreaseSecuritization'
|
|
2768
|
-
| '
|
|
2766
|
+
| 'SetFlexible';
|
|
2769
2767
|
}
|
|
2770
2768
|
|
|
2771
2769
|
/** @name ArgonPrimitivesBitcoinCompressedBitcoinPubkey (217) */
|
|
@@ -2791,7 +2789,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
2791
2789
|
readonly genesisHash: H256;
|
|
2792
2790
|
readonly beneficiary: AccountId32;
|
|
2793
2791
|
readonly feeDiscount: Compact<u128>;
|
|
2794
|
-
readonly
|
|
2792
|
+
readonly securitizationSpaceToUnreserve: Compact<u128>;
|
|
2795
2793
|
readonly expiresAtFrame: Compact<u64>;
|
|
2796
2794
|
readonly nonce: Compact<u64>;
|
|
2797
2795
|
readonly signature: SpRuntimeMultiSignature;
|
|
@@ -3244,30 +3242,32 @@ declare module '@polkadot/types/lookup' {
|
|
|
3244
3242
|
readonly asBuyArgonotBonds: {
|
|
3245
3243
|
readonly bonds: u32;
|
|
3246
3244
|
} & Struct;
|
|
3247
|
-
readonly
|
|
3248
|
-
readonly
|
|
3245
|
+
readonly isSetBondLotFlexible: boolean;
|
|
3246
|
+
readonly asSetBondLotFlexible: {
|
|
3249
3247
|
readonly bondLotId: u64;
|
|
3250
|
-
readonly
|
|
3248
|
+
readonly isFlexible: bool;
|
|
3251
3249
|
} & Struct;
|
|
3252
|
-
readonly
|
|
3253
|
-
readonly
|
|
3250
|
+
readonly isSetReservedBondSpace: boolean;
|
|
3251
|
+
readonly asSetReservedBondSpace: {
|
|
3254
3252
|
readonly vaultId: u32;
|
|
3255
|
-
readonly
|
|
3253
|
+
readonly reservedBondSpace: u32;
|
|
3256
3254
|
} & Struct;
|
|
3257
3255
|
readonly type:
|
|
3258
3256
|
| 'BuyBonds'
|
|
3259
3257
|
| 'LiquidateBondLot'
|
|
3260
3258
|
| 'BuyArgonotBonds'
|
|
3261
|
-
| '
|
|
3262
|
-
| '
|
|
3259
|
+
| 'SetBondLotFlexible'
|
|
3260
|
+
| 'SetReservedBondSpace';
|
|
3263
3261
|
}
|
|
3264
3262
|
|
|
3265
3263
|
/** @name ArgonPrimitivesVaultTreasuryBonusApprovalProof (278) */
|
|
3266
3264
|
interface ArgonPrimitivesVaultTreasuryBonusApprovalProof extends Struct {
|
|
3267
3265
|
readonly vaultId: Compact<u32>;
|
|
3268
3266
|
readonly beneficiary: AccountId32;
|
|
3267
|
+
readonly bonusPercent: Compact<Permill>;
|
|
3269
3268
|
readonly expiresAtFrame: Compact<u64>;
|
|
3270
|
-
readonly
|
|
3269
|
+
readonly bondSpaceToUnreserve: Compact<u32>;
|
|
3270
|
+
readonly nonce: Compact<u64>;
|
|
3271
3271
|
readonly signature: SpRuntimeMultiSignature;
|
|
3272
3272
|
}
|
|
3273
3273
|
|
|
@@ -3878,12 +3878,12 @@ declare module '@polkadot/types/lookup' {
|
|
|
3878
3878
|
readonly securitization: Compact<u128>;
|
|
3879
3879
|
readonly securitizationTarget: Compact<u128>;
|
|
3880
3880
|
readonly securitizationLocked: Compact<u128>;
|
|
3881
|
-
readonly
|
|
3882
|
-
readonly
|
|
3881
|
+
readonly flexibleSecuritizationLocked: Compact<u128>;
|
|
3882
|
+
readonly reservedSecuritizationSpace: Compact<u128>;
|
|
3883
3883
|
readonly securitizationPendingActivation: Compact<u128>;
|
|
3884
3884
|
readonly lockedSatoshis: Compact<u64>;
|
|
3885
3885
|
readonly securitizedSatoshis: Compact<u64>;
|
|
3886
|
-
readonly
|
|
3886
|
+
readonly flexibleSecuritizedSatoshis: Compact<u64>;
|
|
3887
3887
|
readonly securitizationReleaseSchedule: BTreeMap<u64, u128>;
|
|
3888
3888
|
readonly securitizationRatio: Compact<u128>;
|
|
3889
3889
|
readonly isClosed: bool;
|
|
@@ -3964,7 +3964,6 @@ declare module '@polkadot/types/lookup' {
|
|
|
3964
3964
|
readonly isInternalError: boolean;
|
|
3965
3965
|
readonly isUnableToGenerateVaultBitcoinPubkey: boolean;
|
|
3966
3966
|
readonly isFundingChangeAlreadyScheduled: boolean;
|
|
3967
|
-
readonly isInvalidBondSharingTerms: boolean;
|
|
3968
3967
|
readonly isPendingCosignsBeforeCollect: boolean;
|
|
3969
3968
|
readonly isPendingOrphanedUtxoCosignsBeforeCollect: boolean;
|
|
3970
3969
|
readonly isOverdueCollectBlockersBeforeCollect: boolean;
|
|
@@ -3998,7 +3997,6 @@ declare module '@polkadot/types/lookup' {
|
|
|
3998
3997
|
| 'InternalError'
|
|
3999
3998
|
| 'UnableToGenerateVaultBitcoinPubkey'
|
|
4000
3999
|
| 'FundingChangeAlreadyScheduled'
|
|
4001
|
-
| 'InvalidBondSharingTerms'
|
|
4002
4000
|
| 'PendingCosignsBeforeCollect'
|
|
4003
4001
|
| 'PendingOrphanedUtxoCosignsBeforeCollect'
|
|
4004
4002
|
| 'OverdueCollectBlockersBeforeCollect'
|
|
@@ -4027,7 +4025,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
4027
4025
|
readonly createdAtHeight: Compact<u64>;
|
|
4028
4026
|
readonly utxoScriptPubkey: ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey;
|
|
4029
4027
|
readonly isFunded: bool;
|
|
4030
|
-
readonly
|
|
4028
|
+
readonly isFlexible: bool;
|
|
4031
4029
|
readonly fundHoldExtensions: BTreeMap<u64, u128>;
|
|
4032
4030
|
readonly createdAtArgonBlock: Compact<u32>;
|
|
4033
4031
|
}
|
|
@@ -4592,9 +4590,9 @@ declare module '@polkadot/types/lookup' {
|
|
|
4592
4590
|
|
|
4593
4591
|
/** @name PalletTreasuryVaultCapital (528) */
|
|
4594
4592
|
interface PalletTreasuryVaultCapital extends Struct {
|
|
4595
|
-
readonly
|
|
4596
|
-
readonly
|
|
4597
|
-
readonly
|
|
4593
|
+
readonly regularBondAllocations: Vec<PalletTreasuryBondLotAllocation>;
|
|
4594
|
+
readonly flexibleBondsEligible: Compact<u32>;
|
|
4595
|
+
readonly flexibleProrata: u128;
|
|
4598
4596
|
readonly eligibleBonds: Compact<u32>;
|
|
4599
4597
|
}
|
|
4600
4598
|
|
|
@@ -4622,7 +4620,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
4622
4620
|
readonly owner: AccountId32;
|
|
4623
4621
|
readonly program: PalletTreasuryBondProgram;
|
|
4624
4622
|
readonly bonds: Compact<u32>;
|
|
4625
|
-
readonly
|
|
4623
|
+
readonly isFlexible: bool;
|
|
4626
4624
|
readonly createdFrameId: Compact<u64>;
|
|
4627
4625
|
readonly participatedFrames: Compact<u32>;
|
|
4628
4626
|
readonly lastFrameEarningsFrameId: Option<u64>;
|
|
@@ -4646,9 +4644,9 @@ declare module '@polkadot/types/lookup' {
|
|
|
4646
4644
|
|
|
4647
4645
|
/** @name PalletTreasuryVaultBondState (543) */
|
|
4648
4646
|
interface PalletTreasuryVaultBondState extends Struct {
|
|
4649
|
-
readonly
|
|
4650
|
-
readonly
|
|
4651
|
-
readonly
|
|
4647
|
+
readonly regularBondLots: Vec<PalletTreasuryBondLotSummary>;
|
|
4648
|
+
readonly flexibleBonds: Compact<u32>;
|
|
4649
|
+
readonly reservedBondSpace: Compact<u32>;
|
|
4652
4650
|
}
|
|
4653
4651
|
|
|
4654
4652
|
/** @name PalletTreasuryError (545) */
|
|
@@ -4662,16 +4660,17 @@ declare module '@polkadot/types/lookup' {
|
|
|
4662
4660
|
readonly isBondLotNotFound: boolean;
|
|
4663
4661
|
readonly isNotBondLotOwner: boolean;
|
|
4664
4662
|
readonly isBondLotAlreadyReleasing: boolean;
|
|
4665
|
-
readonly
|
|
4663
|
+
readonly isInsufficientBondSpace: boolean;
|
|
4666
4664
|
readonly isActiveBondAmountBelowEncumberedBacking: boolean;
|
|
4667
4665
|
readonly isBonusApprovalWrongVault: boolean;
|
|
4668
4666
|
readonly isBonusApprovalWrongAccount: boolean;
|
|
4669
4667
|
readonly isBonusApprovalExpired: boolean;
|
|
4670
|
-
readonly
|
|
4668
|
+
readonly isBonusApprovalAlreadyUsed: boolean;
|
|
4671
4669
|
readonly isInvalidBonusApprovalSignature: boolean;
|
|
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,16 +4682,17 @@ 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'
|
|
4690
4689
|
| 'BonusApprovalExpired'
|
|
4691
|
-
| '
|
|
4690
|
+
| 'BonusApprovalAlreadyUsed'
|
|
4692
4691
|
| 'InvalidBonusApprovalSignature'
|
|
4692
|
+
| 'BonusApprovalExceedsProfitSharing'
|
|
4693
4693
|
| 'ArgonotBondPurchaseBelowCutoff'
|
|
4694
4694
|
| 'ArgonotBondPurchaseAboveCap'
|
|
4695
|
-
| '
|
|
4695
|
+
| 'BondLotCannotBeFlexible'
|
|
4696
4696
|
| 'NoPermissions';
|
|
4697
4697
|
}
|
|
4698
4698
|
|