@argonprotocol/mainchain 1.4.11-dev.7b637899 → 1.4.11-dev.f3bdc948

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argonprotocol/mainchain",
3
- "version": "1.4.11-dev.7b637899",
3
+ "version": "1.4.11-dev.f3bdc948",
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.7b637899",
71
+ "@argonprotocol/testing": "1.4.11-dev.f3bdc948",
72
72
  "@polkadot/typegen": "^16.5.6",
73
73
  "@substrate/ss58-registry": "^1.51.0",
74
74
  "@types/node": "^20",
@@ -99,7 +99,7 @@ declare module '@polkadot/api-base/types/errors' {
99
99
  **/
100
100
  ExpirationAtBlockOverflow: AugmentedError<ApiType>;
101
101
  /**
102
- * The fee coupon nonce has already been consumed or superseded.
102
+ * The fee coupon nonce is not the next unconsumed nonce.
103
103
  **/
104
104
  FeeCouponAlreadyUsed: AugmentedError<ApiType>;
105
105
  /**
@@ -110,18 +110,6 @@ declare module '@polkadot/api-base/types/errors' {
110
110
  * Fee coupons can only be applied when initializing a lock.
111
111
  **/
112
112
  FeeCouponOnlyForInitialization: AugmentedError<ApiType>;
113
- /**
114
- * The fee coupon was issued for a different beneficiary.
115
- **/
116
- FeeCouponWrongAccount: AugmentedError<ApiType>;
117
- /**
118
- * The fee coupon was issued for a different chain.
119
- **/
120
- FeeCouponWrongChain: AugmentedError<ApiType>;
121
- /**
122
- * The fee coupon was issued for a different vault.
123
- **/
124
- FeeCouponWrongVault: AugmentedError<ApiType>;
125
113
  /**
126
114
  * Cannot request an orphaned release for the funding UTXO
127
115
  **/
@@ -1272,17 +1260,13 @@ declare module '@polkadot/api-base/types/errors' {
1272
1260
  **/
1273
1261
  BondLotAlreadyReleasing: AugmentedError<ApiType>;
1274
1262
  /**
1275
- * Only an active vault bond owned by its operator can be used as backfill.
1263
+ * Only an active vault bond owned by its operator can be used as flexible.
1276
1264
  **/
1277
- BondLotNotEligibleForBackfill: AugmentedError<ApiType>;
1265
+ BondLotCannotBeFlexible: AugmentedError<ApiType>;
1278
1266
  /**
1279
1267
  * The bond lot could not be found.
1280
1268
  **/
1281
1269
  BondLotNotFound: AugmentedError<ApiType>;
1282
- /**
1283
- * The vault doesn't have enough bitcoin security to support this bond purchase
1284
- **/
1285
- BondPurchaseAboveSecurity: AugmentedError<ApiType>;
1286
1270
  /**
1287
1271
  * The purchase is below the minimum amount.
1288
1272
  **/
@@ -1311,6 +1295,10 @@ declare module '@polkadot/api-base/types/errors' {
1311
1295
  * The bonus approval was signed for a different vault.
1312
1296
  **/
1313
1297
  BonusApprovalWrongVault: AugmentedError<ApiType>;
1298
+ /**
1299
+ * The vault doesn't have enough bitcoin security to support this bond purchase
1300
+ **/
1301
+ InsufficientBondSpace: AugmentedError<ApiType>;
1314
1302
  /**
1315
1303
  * An internal error occurred.
1316
1304
  **/
@@ -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
- BackfillBondsReservedChanged: AugmentedEvent<
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, isBackfill: bool],
1858
- { vaultId: u32; bondLotId: u64; isBackfill: bool }
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],
@@ -1758,7 +1758,7 @@ declare module '@polkadot/api-base/types/storage' {
1758
1758
  * The active bond state for a vault.
1759
1759
  *
1760
1760
  * The bounded payout set keeps the largest bond amount first, then lower `bond_lot_id` first
1761
- * when amounts tie. Backfill lots remain in `BondLotById` and are represented here by their
1761
+ * when amounts tie. Flexible lots remain in `BondLotById` and are represented here by their
1762
1762
  * aggregate.
1763
1763
  **/
1764
1764
  bondLotsByVault: AugmentedQuery<
@@ -416,10 +416,10 @@ declare module '@polkadot/api-base/types/submittable' {
416
416
  ) => SubmittableExtrinsic<ApiType>,
417
417
  [u64, Bytes, u64]
418
418
  >;
419
- setAsBackfill: AugmentedSubmittable<
419
+ setFlexible: AugmentedSubmittable<
420
420
  (
421
421
  utxoId: u64 | AnyNumber | Uint8Array,
422
- isBackfill: bool | boolean | Uint8Array,
422
+ isFlexible: bool | boolean | Uint8Array,
423
423
  ) => SubmittableExtrinsic<ApiType>,
424
424
  [u64, bool]
425
425
  >;
@@ -1198,7 +1198,7 @@ declare module '@polkadot/api-base/types/submittable' {
1198
1198
  [PalletOperationalAccountsRegistration]
1199
1199
  >;
1200
1200
  /**
1201
- * Update the display name on an operational account profile.
1201
+ * Update the display name on an operational account profile from any linked account.
1202
1202
  **/
1203
1203
  setName: AugmentedSubmittable<
1204
1204
  (name: Option<Bytes> | null | Uint8Array | Bytes | string) => SubmittableExtrinsic<ApiType>,
@@ -2052,7 +2052,7 @@ declare module '@polkadot/api-base/types/submittable' {
2052
2052
  beneficiary?: any;
2053
2053
  bonusPercent?: any;
2054
2054
  expiresAtFrame?: any;
2055
- backfillBondsToUnreserve?: any;
2055
+ bondSpaceToUnreserve?: any;
2056
2056
  nonce?: any;
2057
2057
  signature?: any;
2058
2058
  }
@@ -2069,19 +2069,22 @@ declare module '@polkadot/api-base/types/submittable' {
2069
2069
  (bondLotId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
2070
2070
  [u64]
2071
2071
  >;
2072
- setBackfillBondsReserved: AugmentedSubmittable<
2072
+ setBondLotFlexible: AugmentedSubmittable<
2073
2073
  (
2074
- vaultId: u32 | AnyNumber | Uint8Array,
2075
- backfillBondsReserved: u32 | AnyNumber | Uint8Array,
2074
+ bondLotId: u64 | AnyNumber | Uint8Array,
2075
+ isFlexible: bool | boolean | Uint8Array,
2076
2076
  ) => SubmittableExtrinsic<ApiType>,
2077
- [u32, u32]
2077
+ [u64, bool]
2078
2078
  >;
2079
- setBondLotAsBackfill: AugmentedSubmittable<
2079
+ /**
2080
+ * Reserve vault bond space for future bond purchases.
2081
+ **/
2082
+ setReservedBondSpace: AugmentedSubmittable<
2080
2083
  (
2081
- bondLotId: u64 | AnyNumber | Uint8Array,
2082
- isBackfill: bool | boolean | Uint8Array,
2084
+ vaultId: u32 | AnyNumber | Uint8Array,
2085
+ reservedBondSpace: u32 | AnyNumber | Uint8Array,
2083
2086
  ) => SubmittableExtrinsic<ApiType>,
2084
- [u64, bool]
2087
+ [u32, u32]
2085
2088
  >;
2086
2089
  };
2087
2090
  txPause: {
@@ -2360,13 +2363,6 @@ declare module '@polkadot/api-base/types/submittable' {
2360
2363
  ) => SubmittableExtrinsic<ApiType>,
2361
2364
  [u32, ArgonPrimitivesBitcoinOpaqueBitcoinXpub]
2362
2365
  >;
2363
- setBackfillSecuritizationReserved: AugmentedSubmittable<
2364
- (
2365
- vaultId: u32 | AnyNumber | Uint8Array,
2366
- backfillSecuritizationReserved: u128 | AnyNumber | Uint8Array,
2367
- ) => SubmittableExtrinsic<ApiType>,
2368
- [u32, u128]
2369
- >;
2370
2366
  setCommittedArgonots: AugmentedSubmittable<
2371
2367
  (amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
2372
2368
  [Compact<u128>]
@@ -2377,6 +2373,15 @@ declare module '@polkadot/api-base/types/submittable' {
2377
2373
  ) => SubmittableExtrinsic<ApiType>,
2378
2374
  [Option<AccountId32>]
2379
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
+ >;
2380
2385
  };
2381
2386
  } // AugmentedSubmittables
2382
2387
  } // declare module