@argonprotocol/mainchain 1.4.12-dev.8cae3588 → 1.4.12-dev.dd86fab9

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.12-dev.8cae3588",
3
+ "version": "1.4.12-dev.dd86fab9",
4
4
  "description": "A client for accessing the Argon mainchain apis.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -62,13 +62,12 @@
62
62
  "@polkadot/util": "^14.0.3",
63
63
  "@polkadot/util-crypto": "^14.0.3",
64
64
  "bignumber.js": "^9.3.1",
65
- "bs58check": "^4.0.0",
66
65
  "camelcase-keys": "^9.1.3",
67
66
  "viem": "^2.38.5"
68
67
  },
69
68
  "devDependencies": {
70
69
  "@argonprotocol/ethereum-contracts": "workspace:*",
71
- "@argonprotocol/testing": "1.4.12-dev.8cae3588",
70
+ "@argonprotocol/testing": "1.4.12-dev.dd86fab9",
72
71
  "@polkadot/typegen": "^16.5.6",
73
72
  "@substrate/ss58-registry": "^1.51.0",
74
73
  "@types/node": "^20",
@@ -1,5 +1,4 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
- /* eslint-disable */
3
2
 
4
3
  // import type lookup before we augment - in some environments
5
4
  // this is required to allow for ambient/previous definitions
@@ -51,6 +50,16 @@ declare module '@polkadot/api-base/types/consts' {
51
50
  **/
52
51
  maxReserves: u32 & AugmentedConst<ApiType>;
53
52
  };
53
+ bitcoinFissions: {
54
+ /**
55
+ * Maximum number of active Fissions that may allocate satoshis from one Lock.
56
+ **/
57
+ maxFissionsPerLock: u32 & AugmentedConst<ApiType>;
58
+ /**
59
+ * Minimum percentage change required to ratchet a Fission.
60
+ **/
61
+ minimumRatchetPercent: Percent & AugmentedConst<ApiType>;
62
+ };
54
63
  bitcoinLocks: {
55
64
  /**
56
65
  * Argon tick per day
@@ -82,6 +91,10 @@ declare module '@polkadot/api-base/types/consts' {
82
91
  * Maximum releasing utxos at a time
83
92
  **/
84
93
  maxConcurrentlyReleasingLocks: u32 & AugmentedConst<ApiType>;
94
+ /**
95
+ * Max bitcoin blocks up to which the first observed output may fund the Lock.
96
+ **/
97
+ maxPendingConfirmationBlocks: u64 & AugmentedConst<ApiType>;
85
98
  /**
86
99
  * Number of frames orphaned UTXO release entries are retained after a lock lifecycle
87
100
  * transition before being cleaned up.
@@ -94,27 +107,9 @@ declare module '@polkadot/api-base/types/consts' {
94
107
  };
95
108
  bitcoinUtxos: {
96
109
  /**
97
- * Maximum number of candidate UTXOs stored per lock
98
- **/
99
- maxCandidateUtxosPerLock: u32 & AugmentedConst<ApiType>;
100
- /**
101
- * Maximum number of satoshi difference allowed from expected to consider a UTXO as
102
- * "confirmed"
103
- **/
104
- maximumSatoshiThresholdFromExpected: u64 & AugmentedConst<ApiType>;
105
- /**
106
- * Maximum bitcoin blocks to accept a UTXO for confirmation. Expired locks remain watched
107
- * for this many additional blocks so late funding can be detected as orphaned.
108
- **/
109
- maxPendingConfirmationBlocks: u64 & AugmentedConst<ApiType>;
110
- /**
111
- * The maximum number of UTXOs that can be watched in a block and/or expiring at same block
112
- **/
113
- maxPendingConfirmationUtxos: u32 & AugmentedConst<ApiType>;
114
- /**
115
- * The maximum number of expired pending funding entries cleaned up in a block
110
+ * Maximum number of outputs tracked for a single Lock address.
116
111
  **/
117
- maxPendingFundingExpirationsPerBlock: u32 & AugmentedConst<ApiType>;
112
+ maxUtxosPerLock: u32 & AugmentedConst<ApiType>;
118
113
  };
119
114
  blockRewards: {
120
115
  /**
@@ -61,6 +61,88 @@ declare module '@polkadot/api-base/types/errors' {
61
61
  **/
62
62
  VestingBalance: AugmentedError<ApiType>;
63
63
  };
64
+ bitcoinFissions: {
65
+ /**
66
+ * A Fission already exists under this owner and Fission ID.
67
+ **/
68
+ FissionAlreadyExists: AugmentedError<ApiType>;
69
+ /**
70
+ * A Fission must allocate at least one satoshi.
71
+ **/
72
+ FissionHasNoSatoshis: AugmentedError<ApiType>;
73
+ /**
74
+ * The submitted Fission ID is below the owner's current minimum.
75
+ **/
76
+ FissionIdBelowMinimum: AugmentedError<ApiType>;
77
+ /**
78
+ * The owner's Fission ID counter cannot be incremented.
79
+ **/
80
+ FissionIdOverflow: AugmentedError<ApiType>;
81
+ /**
82
+ * No Fission exists under this owner and Fission ID.
83
+ **/
84
+ FissionNotFound: AugmentedError<ApiType>;
85
+ /**
86
+ * The requested target-normalized BTC value is not present in recent price history.
87
+ **/
88
+ IneligibleMicrogonsAtTargetPerBtc: AugmentedError<ApiType>;
89
+ /**
90
+ * A source Lock has fewer active Fission satoshis than the Fission being closed.
91
+ **/
92
+ InsufficientFissionedSatoshis: AugmentedError<ApiType>;
93
+ /**
94
+ * A requested source Lock does not have enough unallocated funded satoshis.
95
+ **/
96
+ InsufficientFundedSatoshis: AugmentedError<ApiType>;
97
+ /**
98
+ * The Fission owner cannot burn the complete redemption amount.
99
+ **/
100
+ InsufficientFunds: AugmentedError<ApiType>;
101
+ /**
102
+ * A source Lock's securitization does not cover the requested allocation and liability.
103
+ **/
104
+ InsufficientSecuritization: AugmentedError<ApiType>;
105
+ /**
106
+ * The requested source Lock does not exist.
107
+ **/
108
+ LockNotFound: AugmentedError<ApiType>;
109
+ /**
110
+ * A requested source Lock has no confirmed funding satoshis.
111
+ **/
112
+ LockNotFunded: AugmentedError<ApiType>;
113
+ /**
114
+ * A requested source Lock is already in the release process.
115
+ **/
116
+ LockReleasePending: AugmentedError<ApiType>;
117
+ /**
118
+ * The requested price-history entry predates the Fission or Lock coverage floor.
119
+ **/
120
+ MicrogonsAtTargetPerBtcTickOlderThanCurrent: AugmentedError<ApiType>;
121
+ /**
122
+ * No current Bitcoin price is available to calculate the redemption amount.
123
+ **/
124
+ NoBitcoinPricesAvailable: AugmentedError<ApiType>;
125
+ /**
126
+ * The caller does not own a requested source Lock.
127
+ **/
128
+ NoPermissions: AugmentedError<ApiType>;
129
+ /**
130
+ * The Fission did not meet both the minimum change and Lock coverage requirements.
131
+ **/
132
+ NoRatchetingAvailable: AugmentedError<ApiType>;
133
+ /**
134
+ * A Fission allocation, liability, or identifier overflowed.
135
+ **/
136
+ Overflow: AugmentedError<ApiType>;
137
+ /**
138
+ * The Fission's ratchet counter cannot be incremented.
139
+ **/
140
+ RatchetNumberOverflow: AugmentedError<ApiType>;
141
+ /**
142
+ * The source Lock already has the maximum number of active Fissions.
143
+ **/
144
+ TooManyFissionsForLock: AugmentedError<ApiType>;
145
+ };
64
146
  bitcoinLocks: {
65
147
  /**
66
148
  * The proposed transaction would take the account below the minimum (existential) balance
@@ -107,9 +189,9 @@ declare module '@polkadot/api-base/types/errors' {
107
189
  **/
108
190
  FeeCouponExpired: AugmentedError<ApiType>;
109
191
  /**
110
- * Fee coupons can only be applied when initializing a lock.
192
+ * The Lock records fissioned satoshis without matching active Fission requirements.
111
193
  **/
112
- FeeCouponOnlyForInitialization: AugmentedError<ApiType>;
194
+ FissionStateMismatch: AugmentedError<ApiType>;
113
195
  /**
114
196
  * Cannot request an orphaned release for the funding UTXO
115
197
  **/
@@ -123,14 +205,18 @@ declare module '@polkadot/api-base/types/errors' {
123
205
  **/
124
206
  HoldUnexpectedlyModified: AugmentedError<ApiType>;
125
207
  /**
126
- * An ineligible microgon rate per btc was requested
208
+ * The requested target-normalized BTC value is not present in recent price history.
127
209
  **/
128
- IneligibleMicrogonRateRequested: AugmentedError<ApiType>;
210
+ IneligibleMicrogonsAtTargetPerBtcRequested: AugmentedError<ApiType>;
129
211
  InsufficientFunds: AugmentedError<ApiType>;
130
212
  /**
131
- * The minimum number of satoshis was not met
213
+ * The requested Lock securitization has fewer satoshis than its active Fissions.
132
214
  **/
133
- InsufficientSatoshisLocked: AugmentedError<ApiType>;
215
+ InsufficientSatoshisForFissions: AugmentedError<ApiType>;
216
+ /**
217
+ * The requested Lock securitization does not cover its active Fission liabilities.
218
+ **/
219
+ InsufficientSecuritizationForFissions: AugmentedError<ApiType>;
134
220
  InsufficientVaultFunds: AugmentedError<ApiType>;
135
221
  /**
136
222
  * The bitcoin script to lock this bitcoin has errors
@@ -145,7 +231,11 @@ declare module '@polkadot/api-base/types/errors' {
145
231
  **/
146
232
  InvalidVaultAmount: AugmentedError<ApiType>;
147
233
  /**
148
- * A lock in process of release cannot be ratcheted
234
+ * The Lock cannot be released while it has active Fissions.
235
+ **/
236
+ LockHasActiveFissions: AugmentedError<ApiType>;
237
+ /**
238
+ * A Lock in the release process cannot be resecuritized.
149
239
  **/
150
240
  LockInProcessOfRelease: AugmentedError<ApiType>;
151
241
  /**
@@ -160,6 +250,10 @@ declare module '@polkadot/api-base/types/errors' {
160
250
  * Too many orphaned utxo release requests for a lock
161
251
  **/
162
252
  MaxOrphanedUtxoReleaseRequestsExceeded: AugmentedError<ApiType>;
253
+ /**
254
+ * The requested price-history entry predates the Lock's current securitization.
255
+ **/
256
+ MicrogonsAtTargetPerBtcTickOlderThanCurrent: AugmentedError<ApiType>;
163
257
  /**
164
258
  * The price provider has no bitcoin prices available. This is a temporary error
165
259
  **/
@@ -169,9 +263,9 @@ declare module '@polkadot/api-base/types/errors' {
169
263
  **/
170
264
  NoPermissions: AugmentedError<ApiType>;
171
265
  /**
172
- * Nothing to ratchet
266
+ * The requested securitization matches the Lock's current securitization.
173
267
  **/
174
- NoRatchetingAvailable: AugmentedError<ApiType>;
268
+ NoResecuritizationChange: AugmentedError<ApiType>;
175
269
  /**
176
270
  * No Vault public keys are available
177
271
  **/
@@ -234,18 +328,14 @@ declare module '@polkadot/api-base/types/errors' {
234
328
  * Invalid bitcoin sync height attempted
235
329
  **/
236
330
  InvalidBitcoinSyncHeight: AugmentedError<ApiType>;
237
- /**
238
- * This Lock already has an attached funding UTXO
239
- **/
240
- LockAlreadyFunded: AugmentedError<ApiType>;
241
- /**
242
- * Too many candidate UTXOs are being stored for this lock
243
- **/
244
- MaxCandidateUtxosExceeded: AugmentedError<ApiType>;
245
331
  /**
246
332
  * Too many UTXOs are being watched
247
333
  **/
248
334
  MaxUtxosExceeded: AugmentedError<ApiType>;
335
+ /**
336
+ * Too many outputs have been observed at one Lock address.
337
+ **/
338
+ MaxUtxosPerLockExceeded: AugmentedError<ApiType>;
249
339
  /**
250
340
  * No Oracle-provided bitcoin block has been provided to the network
251
341
  **/
@@ -267,11 +357,7 @@ declare module '@polkadot/api-base/types/errors' {
267
357
  **/
268
358
  ScriptPubkeyConflict: AugmentedError<ApiType>;
269
359
  /**
270
- * The UTXO reference does not map to a candidate entry
271
- **/
272
- UtxoNotCandidate: AugmentedError<ApiType>;
273
- /**
274
- * Locked Utxo Not Found
360
+ * Watched Lock or attached UTXO not found.
275
361
  **/
276
362
  UtxoNotLocked: AugmentedError<ApiType>;
277
363
  };
@@ -24,7 +24,6 @@ import type { ITuple } from '@polkadot/types-codec/types';
24
24
  import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';
25
25
  import type {
26
26
  ArgonNotaryAuditErrorVerifyError,
27
- ArgonPrimitivesBitcoinBitcoinRejectedReason,
28
27
  ArgonPrimitivesBitcoinUtxoRef,
29
28
  ArgonPrimitivesBlockSealBlockPayout,
30
29
  ArgonPrimitivesBlockSealMiningRegistration,
@@ -311,6 +310,54 @@ declare module '@polkadot/api-base/types/events' {
311
310
  { who: AccountId32; amount: u128 }
312
311
  >;
313
312
  };
313
+ bitcoinFissions: {
314
+ /**
315
+ * A Fission was closed and its source Lock allocation was released.
316
+ **/
317
+ FissionClosed: AugmentedEvent<
318
+ ApiType,
319
+ [accountId: AccountId32, fissionId: u64, redemptionAmount: u128],
320
+ { accountId: AccountId32; fissionId: u64; redemptionAmount: u128 }
321
+ >;
322
+ /**
323
+ * An active Fission was closed because its source Lock was spent.
324
+ **/
325
+ FissionClosedByLock: AugmentedEvent<
326
+ ApiType,
327
+ [accountId: AccountId32, fissionId: u64, utxoId: u64],
328
+ { accountId: AccountId32; fissionId: u64; utxoId: u64 }
329
+ >;
330
+ /**
331
+ * A Fission was created and allocated from its source Lock.
332
+ **/
333
+ FissionCreated: AugmentedEvent<
334
+ ApiType,
335
+ [accountId: AccountId32, fissionId: u64, liquidId: u64, liquidityPromised: u128],
336
+ { accountId: AccountId32; fissionId: u64; liquidId: u64; liquidityPromised: u128 }
337
+ >;
338
+ /**
339
+ * A Fission ratchet changed its target-normalized BTC value and liability.
340
+ **/
341
+ FissionRatcheted: AugmentedEvent<
342
+ ApiType,
343
+ [
344
+ accountId: AccountId32,
345
+ fissionId: u64,
346
+ ratchetNumber: u32,
347
+ liquidityPromised: u128,
348
+ amountMinted: u128,
349
+ amountBurned: u128,
350
+ ],
351
+ {
352
+ accountId: AccountId32;
353
+ fissionId: u64;
354
+ ratchetNumber: u32;
355
+ liquidityPromised: u128;
356
+ amountMinted: u128;
357
+ amountBurned: u128;
358
+ }
359
+ >;
360
+ };
314
361
  bitcoinLocks: {
315
362
  BitcoinCosignPastDue: AugmentedEvent<
316
363
  ApiType,
@@ -327,18 +374,18 @@ declare module '@polkadot/api-base/types/events' {
327
374
  [
328
375
  utxoId: u64,
329
376
  vaultId: u32,
330
- liquidityPromised: u128,
331
- securitization: u128,
332
- lockedTargetPrice: u128,
377
+ securitizedSatoshis: u64,
378
+ microgonsAtTargetPerBtc: u128,
379
+ collateralRequired: u128,
333
380
  accountId: AccountId32,
334
381
  securityFee: u128,
335
382
  ],
336
383
  {
337
384
  utxoId: u64;
338
385
  vaultId: u32;
339
- liquidityPromised: u128;
340
- securitization: u128;
341
- lockedTargetPrice: u128;
386
+ securitizedSatoshis: u64;
387
+ microgonsAtTargetPerBtc: u128;
388
+ collateralRequired: u128;
342
389
  accountId: AccountId32;
343
390
  securityFee: u128;
344
391
  }
@@ -348,26 +395,20 @@ declare module '@polkadot/api-base/types/events' {
348
395
  [utxoId: u64, vaultId: u32, isFlexible: bool],
349
396
  { utxoId: u64; vaultId: u32; isFlexible: bool }
350
397
  >;
351
- BitcoinLockRatcheted: AugmentedEvent<
398
+ BitcoinLockResecuritized: AugmentedEvent<
352
399
  ApiType,
353
400
  [
354
401
  utxoId: u64,
355
402
  vaultId: u32,
356
- liquidityPromised: u128,
357
- oldTargetPrice: u128,
358
- securityFee: u128,
359
- newTargetPrice: u128,
360
- amountBurned: u128,
403
+ securitizedSatoshis: u64,
404
+ microgonsAtTargetPerBtc: u128,
361
405
  accountId: AccountId32,
362
406
  ],
363
407
  {
364
408
  utxoId: u64;
365
409
  vaultId: u32;
366
- liquidityPromised: u128;
367
- oldTargetPrice: u128;
368
- securityFee: u128;
369
- newTargetPrice: u128;
370
- amountBurned: u128;
410
+ securitizedSatoshis: u64;
411
+ microgonsAtTargetPerBtc: u128;
371
412
  accountId: AccountId32;
372
413
  }
373
414
  >;
@@ -402,6 +443,14 @@ declare module '@polkadot/api-base/types/events' {
402
443
  [utxoId: u64, error: SpRuntimeDispatchError],
403
444
  { utxoId: u64; error: SpRuntimeDispatchError }
404
445
  >;
446
+ /**
447
+ * Not all orphaned UTXOs for a retired Lock fit in the cleanup schedule.
448
+ **/
449
+ OrphanedUtxoCleanupScheduleOverflow: AugmentedEvent<
450
+ ApiType,
451
+ [accountId: AccountId32, utxoId: u64, expirationFrame: u64],
452
+ { accountId: AccountId32; utxoId: u64; expirationFrame: u64 }
453
+ >;
405
454
  OrphanedUtxoCosigned: AugmentedEvent<
406
455
  ApiType,
407
456
  [
@@ -419,27 +468,28 @@ declare module '@polkadot/api-base/types/events' {
419
468
  signature: Bytes;
420
469
  }
421
470
  >;
422
- OrphanedUtxoReceived: AugmentedEvent<
423
- ApiType,
424
- [utxoId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, vaultId: u32, satoshis: u64],
425
- { utxoId: u64; utxoRef: ArgonPrimitivesBitcoinUtxoRef; vaultId: u32; satoshis: u64 }
426
- >;
427
- OrphanedUtxoReleaseRequested: AugmentedEvent<
471
+ /**
472
+ * An orphaned UTXO expiration could not reconcile its pending Vault cosign state.
473
+ **/
474
+ OrphanedUtxoExpirationError: AugmentedEvent<
428
475
  ApiType,
429
- [utxoId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, vaultId: u32, accountId: AccountId32],
476
+ [
477
+ accountId: AccountId32,
478
+ utxoRef: ArgonPrimitivesBitcoinUtxoRef,
479
+ error: SpRuntimeDispatchError,
480
+ ],
430
481
  {
431
- utxoId: u64;
432
- utxoRef: ArgonPrimitivesBitcoinUtxoRef;
433
- vaultId: u32;
434
482
  accountId: AccountId32;
483
+ utxoRef: ArgonPrimitivesBitcoinUtxoRef;
484
+ error: SpRuntimeDispatchError;
435
485
  }
436
486
  >;
437
- SecuritizationIncreased: AugmentedEvent<
487
+ OrphanedUtxoReceived: AugmentedEvent<
438
488
  ApiType,
439
- [utxoId: u64, vaultId: u32, newSatoshis: u64, accountId: AccountId32],
440
- { utxoId: u64; vaultId: u32; newSatoshis: u64; accountId: AccountId32 }
489
+ [utxoId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, vaultId: u32, satoshis: u64],
490
+ { utxoId: u64; utxoRef: ArgonPrimitivesBitcoinUtxoRef; vaultId: u32; satoshis: u64 }
441
491
  >;
442
- UtxoFundedFromCandidate: AugmentedEvent<
492
+ OrphanedUtxoReleaseRequested: AugmentedEvent<
443
493
  ApiType,
444
494
  [utxoId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, vaultId: u32, accountId: AccountId32],
445
495
  {
@@ -451,30 +501,30 @@ declare module '@polkadot/api-base/types/events' {
451
501
  >;
452
502
  };
453
503
  bitcoinUtxos: {
454
- UtxoRejected: AugmentedEvent<
504
+ UtxoDetected: AugmentedEvent<
455
505
  ApiType,
456
506
  [
457
507
  utxoId: u64,
458
508
  utxoRef: ArgonPrimitivesBitcoinUtxoRef,
459
- rejectedReason: ArgonPrimitivesBitcoinBitcoinRejectedReason,
460
509
  satoshisReceived: u64,
510
+ bitcoinHeight: u64,
461
511
  ],
462
512
  {
463
513
  utxoId: u64;
464
514
  utxoRef: ArgonPrimitivesBitcoinUtxoRef;
465
- rejectedReason: ArgonPrimitivesBitcoinBitcoinRejectedReason;
466
515
  satoshisReceived: u64;
516
+ bitcoinHeight: u64;
467
517
  }
468
518
  >;
469
- UtxoRejectedError: AugmentedEvent<
519
+ UtxoDetectedError: AugmentedEvent<
470
520
  ApiType,
471
521
  [utxoId: u64, error: SpRuntimeDispatchError],
472
522
  { utxoId: u64; error: SpRuntimeDispatchError }
473
523
  >;
474
524
  UtxoSpent: AugmentedEvent<
475
525
  ApiType,
476
- [utxoId: u64, blockHeight: u64],
477
- { utxoId: u64; blockHeight: u64 }
526
+ [utxoId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, blockHeight: u64],
527
+ { utxoId: u64; utxoRef: ArgonPrimitivesBitcoinUtxoRef; blockHeight: u64 }
478
528
  >;
479
529
  UtxoSpentError: AugmentedEvent<
480
530
  ApiType,
@@ -482,16 +532,6 @@ declare module '@polkadot/api-base/types/events' {
482
532
  { utxoId: u64; error: SpRuntimeDispatchError }
483
533
  >;
484
534
  UtxoUnwatched: AugmentedEvent<ApiType, [utxoId: u64], { utxoId: u64 }>;
485
- UtxoVerified: AugmentedEvent<
486
- ApiType,
487
- [utxoId: u64, satoshisReceived: u64],
488
- { utxoId: u64; satoshisReceived: u64 }
489
- >;
490
- UtxoVerifiedError: AugmentedEvent<
491
- ApiType,
492
- [utxoId: u64, error: SpRuntimeDispatchError],
493
- { utxoId: u64; error: SpRuntimeDispatchError }
494
- >;
495
535
  };
496
536
  blockRewards: {
497
537
  RewardCreated: AugmentedEvent<
@@ -2106,30 +2146,6 @@ declare module '@polkadot/api-base/types/events' {
2106
2146
  [vaultId: u32, operatorAccountId: AccountId32, amount: u128],
2107
2147
  { vaultId: u32; operatorAccountId: AccountId32; amount: u128 }
2108
2148
  >;
2109
- FundLockCanceled: AugmentedEvent<
2110
- ApiType,
2111
- [vaultId: u32, amount: u128],
2112
- { vaultId: u32; amount: u128 }
2113
- >;
2114
- FundsLocked: AugmentedEvent<
2115
- ApiType,
2116
- [
2117
- vaultId: u32,
2118
- locker: AccountId32,
2119
- liquidityPromised: u128,
2120
- isRatchet: bool,
2121
- feeRevenue: u128,
2122
- didUseFeeCoupon: bool,
2123
- ],
2124
- {
2125
- vaultId: u32;
2126
- locker: AccountId32;
2127
- liquidityPromised: u128;
2128
- isRatchet: bool;
2129
- feeRevenue: u128;
2130
- didUseFeeCoupon: bool;
2131
- }
2132
- >;
2133
2149
  FundsReleased: AugmentedEvent<
2134
2150
  ApiType,
2135
2151
  [vaultId: u32, securitization: u128],
@@ -2155,6 +2171,28 @@ declare module '@polkadot/api-base/types/events' {
2155
2171
  [vaultId: u32, reservedSecuritizationSpace: u128],
2156
2172
  { vaultId: u32; reservedSecuritizationSpace: u128 }
2157
2173
  >;
2174
+ SecuritizationReserved: AugmentedEvent<
2175
+ ApiType,
2176
+ [
2177
+ vaultId: u32,
2178
+ locker: AccountId32,
2179
+ securitizationCoverageMicrogons: u128,
2180
+ feeRevenue: u128,
2181
+ didUseFeeCoupon: bool,
2182
+ ],
2183
+ {
2184
+ vaultId: u32;
2185
+ locker: AccountId32;
2186
+ securitizationCoverageMicrogons: u128;
2187
+ feeRevenue: u128;
2188
+ didUseFeeCoupon: bool;
2189
+ }
2190
+ >;
2191
+ SecuritizationReturned: AugmentedEvent<
2192
+ ApiType,
2193
+ [vaultId: u32, amount: u128],
2194
+ { vaultId: u32; amount: u128 }
2195
+ >;
2158
2196
  TreasuryRecordingError: AugmentedEvent<
2159
2197
  ApiType,
2160
2198
  [vaultId: u32, frameId: u64, vaultEarnings: u128, error: SpRuntimeDispatchError],