@argonprotocol/mainchain 1.4.11-dev.7b637899 → 1.4.11-dev.825bb01a
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 -104
- 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 +132 -104
- package/lib/index.d.ts +132 -104
- 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 +15 -7
- 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 +24 -19
- package/src/interfaces/lookup.ts +35 -32
- package/src/interfaces/types-lookup.ts +56 -51
|
@@ -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) */
|
|
@@ -2789,8 +2788,10 @@ declare module '@polkadot/types/lookup' {
|
|
|
2789
2788
|
readonly vaultId: Compact<u32>;
|
|
2790
2789
|
readonly genesisHash: H256;
|
|
2791
2790
|
readonly beneficiary: AccountId32;
|
|
2791
|
+
readonly requestedSatoshis: Compact<u64>;
|
|
2792
|
+
readonly microgonsAtTargetPerBtc: Option<u128>;
|
|
2792
2793
|
readonly feeDiscount: Compact<u128>;
|
|
2793
|
-
readonly
|
|
2794
|
+
readonly securitizationSpaceToUnreserve: Compact<u128>;
|
|
2794
2795
|
readonly expiresAtFrame: Compact<u64>;
|
|
2795
2796
|
readonly nonce: Compact<u64>;
|
|
2796
2797
|
readonly signature: SpRuntimeMultiSignature;
|
|
@@ -3243,22 +3244,22 @@ declare module '@polkadot/types/lookup' {
|
|
|
3243
3244
|
readonly asBuyArgonotBonds: {
|
|
3244
3245
|
readonly bonds: u32;
|
|
3245
3246
|
} & Struct;
|
|
3246
|
-
readonly
|
|
3247
|
-
readonly
|
|
3247
|
+
readonly isSetBondLotFlexible: boolean;
|
|
3248
|
+
readonly asSetBondLotFlexible: {
|
|
3248
3249
|
readonly bondLotId: u64;
|
|
3249
|
-
readonly
|
|
3250
|
+
readonly isFlexible: bool;
|
|
3250
3251
|
} & Struct;
|
|
3251
|
-
readonly
|
|
3252
|
-
readonly
|
|
3252
|
+
readonly isSetReservedBondSpace: boolean;
|
|
3253
|
+
readonly asSetReservedBondSpace: {
|
|
3253
3254
|
readonly vaultId: u32;
|
|
3254
|
-
readonly
|
|
3255
|
+
readonly reservedBondSpace: u32;
|
|
3255
3256
|
} & Struct;
|
|
3256
3257
|
readonly type:
|
|
3257
3258
|
| 'BuyBonds'
|
|
3258
3259
|
| 'LiquidateBondLot'
|
|
3259
3260
|
| 'BuyArgonotBonds'
|
|
3260
|
-
| '
|
|
3261
|
-
| '
|
|
3261
|
+
| 'SetBondLotFlexible'
|
|
3262
|
+
| 'SetReservedBondSpace';
|
|
3262
3263
|
}
|
|
3263
3264
|
|
|
3264
3265
|
/** @name ArgonPrimitivesVaultTreasuryBonusApprovalProof (278) */
|
|
@@ -3267,7 +3268,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
3267
3268
|
readonly beneficiary: AccountId32;
|
|
3268
3269
|
readonly bonusPercent: Compact<Permill>;
|
|
3269
3270
|
readonly expiresAtFrame: Compact<u64>;
|
|
3270
|
-
readonly
|
|
3271
|
+
readonly bondSpaceToUnreserve: Compact<u32>;
|
|
3271
3272
|
readonly nonce: Compact<u64>;
|
|
3272
3273
|
readonly signature: SpRuntimeMultiSignature;
|
|
3273
3274
|
}
|
|
@@ -3879,12 +3880,12 @@ declare module '@polkadot/types/lookup' {
|
|
|
3879
3880
|
readonly securitization: Compact<u128>;
|
|
3880
3881
|
readonly securitizationTarget: Compact<u128>;
|
|
3881
3882
|
readonly securitizationLocked: Compact<u128>;
|
|
3882
|
-
readonly
|
|
3883
|
-
readonly
|
|
3883
|
+
readonly flexibleSecuritizationLocked: Compact<u128>;
|
|
3884
|
+
readonly reservedSecuritizationSpace: Compact<u128>;
|
|
3884
3885
|
readonly securitizationPendingActivation: Compact<u128>;
|
|
3885
3886
|
readonly lockedSatoshis: Compact<u64>;
|
|
3886
3887
|
readonly securitizedSatoshis: Compact<u64>;
|
|
3887
|
-
readonly
|
|
3888
|
+
readonly flexibleSecuritizedSatoshis: Compact<u64>;
|
|
3888
3889
|
readonly securitizationReleaseSchedule: BTreeMap<u64, u128>;
|
|
3889
3890
|
readonly securitizationRatio: Compact<u128>;
|
|
3890
3891
|
readonly isClosed: bool;
|
|
@@ -4026,7 +4027,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
4026
4027
|
readonly createdAtHeight: Compact<u64>;
|
|
4027
4028
|
readonly utxoScriptPubkey: ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey;
|
|
4028
4029
|
readonly isFunded: bool;
|
|
4029
|
-
readonly
|
|
4030
|
+
readonly isFlexible: bool;
|
|
4030
4031
|
readonly fundHoldExtensions: BTreeMap<u64, u128>;
|
|
4031
4032
|
readonly createdAtArgonBlock: Compact<u32>;
|
|
4032
4033
|
}
|
|
@@ -4102,6 +4103,8 @@ declare module '@polkadot/types/lookup' {
|
|
|
4102
4103
|
readonly isOrphanedUtxoReleaseRequested: boolean;
|
|
4103
4104
|
readonly isFundingUtxoCannotBeReleased: boolean;
|
|
4104
4105
|
readonly isMaxOrphanedUtxoReleaseRequestsExceeded: boolean;
|
|
4106
|
+
readonly isFeeCouponWrongSatoshis: boolean;
|
|
4107
|
+
readonly isFeeCouponWrongTargetPrice: boolean;
|
|
4105
4108
|
readonly type:
|
|
4106
4109
|
| 'InsufficientFunds'
|
|
4107
4110
|
| 'InsufficientVaultFunds'
|
|
@@ -4144,7 +4147,9 @@ declare module '@polkadot/types/lookup' {
|
|
|
4144
4147
|
| 'OrphanedUtxoFundingConflict'
|
|
4145
4148
|
| 'OrphanedUtxoReleaseRequested'
|
|
4146
4149
|
| 'FundingUtxoCannotBeReleased'
|
|
4147
|
-
| 'MaxOrphanedUtxoReleaseRequestsExceeded'
|
|
4150
|
+
| 'MaxOrphanedUtxoReleaseRequestsExceeded'
|
|
4151
|
+
| 'FeeCouponWrongSatoshis'
|
|
4152
|
+
| 'FeeCouponWrongTargetPrice';
|
|
4148
4153
|
}
|
|
4149
4154
|
|
|
4150
4155
|
/** @name ArgonPrimitivesVaultVaultError (437) */
|
|
@@ -4591,9 +4596,9 @@ declare module '@polkadot/types/lookup' {
|
|
|
4591
4596
|
|
|
4592
4597
|
/** @name PalletTreasuryVaultCapital (528) */
|
|
4593
4598
|
interface PalletTreasuryVaultCapital extends Struct {
|
|
4594
|
-
readonly
|
|
4595
|
-
readonly
|
|
4596
|
-
readonly
|
|
4599
|
+
readonly regularBondAllocations: Vec<PalletTreasuryBondLotAllocation>;
|
|
4600
|
+
readonly flexibleBondsEligible: Compact<u32>;
|
|
4601
|
+
readonly flexibleProrata: u128;
|
|
4597
4602
|
readonly eligibleBonds: Compact<u32>;
|
|
4598
4603
|
}
|
|
4599
4604
|
|
|
@@ -4621,7 +4626,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
4621
4626
|
readonly owner: AccountId32;
|
|
4622
4627
|
readonly program: PalletTreasuryBondProgram;
|
|
4623
4628
|
readonly bonds: Compact<u32>;
|
|
4624
|
-
readonly
|
|
4629
|
+
readonly isFlexible: bool;
|
|
4625
4630
|
readonly createdFrameId: Compact<u64>;
|
|
4626
4631
|
readonly participatedFrames: Compact<u32>;
|
|
4627
4632
|
readonly lastFrameEarningsFrameId: Option<u64>;
|
|
@@ -4645,9 +4650,9 @@ declare module '@polkadot/types/lookup' {
|
|
|
4645
4650
|
|
|
4646
4651
|
/** @name PalletTreasuryVaultBondState (543) */
|
|
4647
4652
|
interface PalletTreasuryVaultBondState extends Struct {
|
|
4648
|
-
readonly
|
|
4649
|
-
readonly
|
|
4650
|
-
readonly
|
|
4653
|
+
readonly regularBondLots: Vec<PalletTreasuryBondLotSummary>;
|
|
4654
|
+
readonly flexibleBonds: Compact<u32>;
|
|
4655
|
+
readonly reservedBondSpace: Compact<u32>;
|
|
4651
4656
|
}
|
|
4652
4657
|
|
|
4653
4658
|
/** @name PalletTreasuryError (545) */
|
|
@@ -4661,7 +4666,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
4661
4666
|
readonly isBondLotNotFound: boolean;
|
|
4662
4667
|
readonly isNotBondLotOwner: boolean;
|
|
4663
4668
|
readonly isBondLotAlreadyReleasing: boolean;
|
|
4664
|
-
readonly
|
|
4669
|
+
readonly isInsufficientBondSpace: boolean;
|
|
4665
4670
|
readonly isActiveBondAmountBelowEncumberedBacking: boolean;
|
|
4666
4671
|
readonly isBonusApprovalWrongVault: boolean;
|
|
4667
4672
|
readonly isBonusApprovalWrongAccount: boolean;
|
|
@@ -4671,7 +4676,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
4671
4676
|
readonly isBonusApprovalExceedsProfitSharing: boolean;
|
|
4672
4677
|
readonly isArgonotBondPurchaseBelowCutoff: boolean;
|
|
4673
4678
|
readonly isArgonotBondPurchaseAboveCap: boolean;
|
|
4674
|
-
readonly
|
|
4679
|
+
readonly isBondLotCannotBeFlexible: boolean;
|
|
4675
4680
|
readonly isNoPermissions: boolean;
|
|
4676
4681
|
readonly type:
|
|
4677
4682
|
| 'BondPurchaseRejected'
|
|
@@ -4683,7 +4688,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
4683
4688
|
| 'BondLotNotFound'
|
|
4684
4689
|
| 'NotBondLotOwner'
|
|
4685
4690
|
| 'BondLotAlreadyReleasing'
|
|
4686
|
-
| '
|
|
4691
|
+
| 'InsufficientBondSpace'
|
|
4687
4692
|
| 'ActiveBondAmountBelowEncumberedBacking'
|
|
4688
4693
|
| 'BonusApprovalWrongVault'
|
|
4689
4694
|
| 'BonusApprovalWrongAccount'
|
|
@@ -4693,7 +4698,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
4693
4698
|
| 'BonusApprovalExceedsProfitSharing'
|
|
4694
4699
|
| 'ArgonotBondPurchaseBelowCutoff'
|
|
4695
4700
|
| 'ArgonotBondPurchaseAboveCap'
|
|
4696
|
-
| '
|
|
4701
|
+
| 'BondLotCannotBeFlexible'
|
|
4697
4702
|
| 'NoPermissions';
|
|
4698
4703
|
}
|
|
4699
4704
|
|