@o2exchange/contracts 0.4.4-rc → 0.4.5-rc3

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.
Files changed (63) hide show
  1. package/dist/contracts/OrderBook.js +23 -23
  2. package/dist/contracts/OrderBookFactory.js +1 -1
  3. package/dist/contracts/PropAccount.d.ts +398 -0
  4. package/dist/contracts/PropAccount.d.ts.map +1 -0
  5. package/dist/contracts/PropAccount.js +1301 -0
  6. package/dist/contracts/PropAccount.js.map +1 -0
  7. package/dist/contracts/PropAccountFactory.d.ts +9 -0
  8. package/dist/contracts/PropAccountFactory.d.ts.map +1 -0
  9. package/dist/contracts/PropAccountFactory.js +23 -0
  10. package/dist/contracts/PropAccountFactory.js.map +1 -0
  11. package/dist/contracts/PropAccountOracle.d.ts +190 -0
  12. package/dist/contracts/PropAccountOracle.d.ts.map +1 -0
  13. package/dist/contracts/PropAccountOracle.js +555 -0
  14. package/dist/contracts/PropAccountOracle.js.map +1 -0
  15. package/dist/contracts/PropAccountOracleFactory.d.ts +9 -0
  16. package/dist/contracts/PropAccountOracleFactory.d.ts.map +1 -0
  17. package/dist/contracts/PropAccountOracleFactory.js +23 -0
  18. package/dist/contracts/PropAccountOracleFactory.js.map +1 -0
  19. package/dist/contracts/PropAccountOracleProxy.d.ts +192 -0
  20. package/dist/contracts/PropAccountOracleProxy.d.ts.map +1 -0
  21. package/dist/contracts/PropAccountOracleProxy.js +432 -0
  22. package/dist/contracts/PropAccountOracleProxy.js.map +1 -0
  23. package/dist/contracts/PropAccountOracleProxyFactory.d.ts +9 -0
  24. package/dist/contracts/PropAccountOracleProxyFactory.d.ts.map +1 -0
  25. package/dist/contracts/PropAccountOracleProxyFactory.js +23 -0
  26. package/dist/contracts/PropAccountOracleProxyFactory.js.map +1 -0
  27. package/dist/contracts/PropAccountProxy.d.ts +191 -0
  28. package/dist/contracts/PropAccountProxy.d.ts.map +1 -0
  29. package/dist/contracts/PropAccountProxy.js +484 -0
  30. package/dist/contracts/PropAccountProxy.js.map +1 -0
  31. package/dist/contracts/PropAccountProxyFactory.d.ts +9 -0
  32. package/dist/contracts/PropAccountProxyFactory.d.ts.map +1 -0
  33. package/dist/contracts/PropAccountProxyFactory.js +23 -0
  34. package/dist/contracts/PropAccountProxyFactory.js.map +1 -0
  35. package/dist/contracts/PropMarginPool.d.ts +1216 -0
  36. package/dist/contracts/PropMarginPool.d.ts.map +1 -0
  37. package/dist/contracts/PropMarginPool.js +4057 -0
  38. package/dist/contracts/PropMarginPool.js.map +1 -0
  39. package/dist/contracts/PropMarginPoolFactory.d.ts +9 -0
  40. package/dist/contracts/PropMarginPoolFactory.d.ts.map +1 -0
  41. package/dist/contracts/PropMarginPoolFactory.js +23 -0
  42. package/dist/contracts/PropMarginPoolFactory.js.map +1 -0
  43. package/dist/contracts/PropMarginPoolMock.d.ts +1320 -0
  44. package/dist/contracts/PropMarginPoolMock.d.ts.map +1 -0
  45. package/dist/contracts/PropMarginPoolMock.js +4899 -0
  46. package/dist/contracts/PropMarginPoolMock.js.map +1 -0
  47. package/dist/contracts/PropMarginPoolMockFactory.d.ts +9 -0
  48. package/dist/contracts/PropMarginPoolMockFactory.d.ts.map +1 -0
  49. package/dist/contracts/PropMarginPoolMockFactory.js +23 -0
  50. package/dist/contracts/PropMarginPoolMockFactory.js.map +1 -0
  51. package/dist/contracts/PropMarginPoolProxy.d.ts +192 -0
  52. package/dist/contracts/PropMarginPoolProxy.d.ts.map +1 -0
  53. package/dist/contracts/PropMarginPoolProxy.js +432 -0
  54. package/dist/contracts/PropMarginPoolProxy.js.map +1 -0
  55. package/dist/contracts/PropMarginPoolProxyFactory.d.ts +9 -0
  56. package/dist/contracts/PropMarginPoolProxyFactory.d.ts.map +1 -0
  57. package/dist/contracts/PropMarginPoolProxyFactory.js +23 -0
  58. package/dist/contracts/PropMarginPoolProxyFactory.js.map +1 -0
  59. package/dist/contracts/index.d.ts +14 -0
  60. package/dist/contracts/index.d.ts.map +1 -1
  61. package/dist/contracts/index.js +14 -0
  62. package/dist/contracts/index.js.map +1 -1
  63. package/package.json +1 -1
@@ -0,0 +1,1320 @@
1
+ import { Contract as __Contract, Interface } from "fuels";
2
+ import type { Provider, Account, StorageSlot, Address, BigNumberish, BN, FunctionFragment, InvokeFunction } from 'fuels';
3
+ import type { Option, Enum, Vec } from "./common";
4
+ export declare enum DiscountScopeInput {
5
+ FirstPremium = "FirstPremium",
6
+ AllPremiums = "AllPremiums"
7
+ }
8
+ export declare enum DiscountScopeOutput {
9
+ FirstPremium = "FirstPremium",
10
+ AllPremiums = "AllPremiums"
11
+ }
12
+ export type IdentityInput = Enum<{
13
+ Address: AddressInput;
14
+ ContractId: ContractIdInput;
15
+ }>;
16
+ export type IdentityOutput = Enum<{
17
+ Address: AddressOutput;
18
+ ContractId: ContractIdOutput;
19
+ }>;
20
+ export declare enum ProlongPeriodInput {
21
+ SixHours = "SixHours",
22
+ Day = "Day",
23
+ Week = "Week",
24
+ Month = "Month"
25
+ }
26
+ export declare enum ProlongPeriodOutput {
27
+ SixHours = "SixHours",
28
+ Day = "Day",
29
+ Week = "Week",
30
+ Month = "Month"
31
+ }
32
+ export declare enum ProlongTriggerInput {
33
+ User = "User",
34
+ Auto = "Auto"
35
+ }
36
+ export declare enum ProlongTriggerOutput {
37
+ User = "User",
38
+ Auto = "Auto"
39
+ }
40
+ export declare enum PropMarginPoolErrorInput {
41
+ AlreadyInitialized = "AlreadyInitialized",
42
+ CallerNotContract = "CallerNotContract",
43
+ NotPropAccount = "NotPropAccount",
44
+ NoActiveSession = "NoActiveSession",
45
+ SessionActive = "SessionActive",
46
+ SessionEnded = "SessionEnded",
47
+ WrongAsset = "WrongAsset",
48
+ AmountIsZero = "AmountIsZero",
49
+ CollateralTooSmall = "CollateralTooSmall",
50
+ AccountNotEmpty = "AccountNotEmpty",
51
+ AssetNotInTier = "AssetNotInTier",
52
+ UseDraw = "UseDraw",
53
+ UseRepayQuote = "UseRepayQuote",
54
+ LoanCapExceeded = "LoanCapExceeded",
55
+ InsufficientInventory = "InsufficientInventory",
56
+ InsufficientBalance = "InsufficientBalance",
57
+ BelowTierCollateral = "BelowTierCollateral",
58
+ OverReturn = "OverReturn",
59
+ OverRepay = "OverRepay",
60
+ QuoteOutstanding = "QuoteOutstanding",
61
+ DebtsOutstanding = "DebtsOutstanding",
62
+ CashShortOfDrawn = "CashShortOfDrawn",
63
+ FundOtherAccount = "FundOtherAccount",
64
+ InvalidTier = "InvalidTier",
65
+ InvalidTierVersion = "InvalidTierVersion",
66
+ InvalidTierParams = "InvalidTierParams",
67
+ InvalidLeverage = "InvalidLeverage",
68
+ BufferBelowMaintenance = "BufferBelowMaintenance",
69
+ BufferAboveCap = "BufferAboveCap",
70
+ SessionUnusableAtOpen = "SessionUnusableAtOpen",
71
+ InvalidBook = "InvalidBook",
72
+ TooManyBooks = "TooManyBooks",
73
+ PriceMissing = "PriceMissing",
74
+ PriceStale = "PriceStale",
75
+ PriceInvalid = "PriceInvalid",
76
+ PriceDecimalsChanged = "PriceDecimalsChanged",
77
+ InvalidRegistry = "InvalidRegistry",
78
+ InvalidPriceFeed = "InvalidPriceFeed",
79
+ InvalidPlatformPayout = "InvalidPlatformPayout",
80
+ InvalidLiquidator = "InvalidLiquidator",
81
+ ValueOverflow = "ValueOverflow",
82
+ PeriodNotOffered = "PeriodNotOffered",
83
+ AutoProlongDisabled = "AutoProlongDisabled",
84
+ AutoProlongPeriodInvalid = "AutoProlongPeriodInvalid",
85
+ TimesIsZero = "TimesIsZero",
86
+ ProlongAfterExpiry = "ProlongAfterExpiry",
87
+ AutoProlongNotDue = "AutoProlongNotDue",
88
+ BookNotDrained = "BookNotDrained",
89
+ SweepIncomplete = "SweepIncomplete",
90
+ PositionsOutstanding = "PositionsOutstanding",
91
+ NotLiquidatable = "NotLiquidatable",
92
+ NotExpired = "NotExpired",
93
+ NoBestBid = "NoBestBid",
94
+ AssetNotSupported = "AssetNotSupported",
95
+ ProlongAboveCollateral = "ProlongAboveCollateral",
96
+ InvalidDiscount = "InvalidDiscount",
97
+ TierDisabled = "TierDisabled",
98
+ TopUpsDisabled = "TopUpsDisabled",
99
+ TurboEntryNotExact = "TurboEntryNotExact",
100
+ InvalidTurboTerms = "InvalidTurboTerms",
101
+ RolloverNotOffered = "RolloverNotOffered",
102
+ RolloverNotDue = "RolloverNotDue",
103
+ RolloverNotEarned = "RolloverNotEarned",
104
+ RolloverExhausted = "RolloverExhausted",
105
+ RolloverPending = "RolloverPending",
106
+ UseExpireOrRollover = "UseExpireOrRollover",
107
+ UsePermissionlessExpiry = "UsePermissionlessExpiry",
108
+ InvalidExpiryCosigner = "InvalidExpiryCosigner",
109
+ ExpiryCosignerNotSet = "ExpiryCosignerNotSet"
110
+ }
111
+ export declare enum PropMarginPoolErrorOutput {
112
+ AlreadyInitialized = "AlreadyInitialized",
113
+ CallerNotContract = "CallerNotContract",
114
+ NotPropAccount = "NotPropAccount",
115
+ NoActiveSession = "NoActiveSession",
116
+ SessionActive = "SessionActive",
117
+ SessionEnded = "SessionEnded",
118
+ WrongAsset = "WrongAsset",
119
+ AmountIsZero = "AmountIsZero",
120
+ CollateralTooSmall = "CollateralTooSmall",
121
+ AccountNotEmpty = "AccountNotEmpty",
122
+ AssetNotInTier = "AssetNotInTier",
123
+ UseDraw = "UseDraw",
124
+ UseRepayQuote = "UseRepayQuote",
125
+ LoanCapExceeded = "LoanCapExceeded",
126
+ InsufficientInventory = "InsufficientInventory",
127
+ InsufficientBalance = "InsufficientBalance",
128
+ BelowTierCollateral = "BelowTierCollateral",
129
+ OverReturn = "OverReturn",
130
+ OverRepay = "OverRepay",
131
+ QuoteOutstanding = "QuoteOutstanding",
132
+ DebtsOutstanding = "DebtsOutstanding",
133
+ CashShortOfDrawn = "CashShortOfDrawn",
134
+ FundOtherAccount = "FundOtherAccount",
135
+ InvalidTier = "InvalidTier",
136
+ InvalidTierVersion = "InvalidTierVersion",
137
+ InvalidTierParams = "InvalidTierParams",
138
+ InvalidLeverage = "InvalidLeverage",
139
+ BufferBelowMaintenance = "BufferBelowMaintenance",
140
+ BufferAboveCap = "BufferAboveCap",
141
+ SessionUnusableAtOpen = "SessionUnusableAtOpen",
142
+ InvalidBook = "InvalidBook",
143
+ TooManyBooks = "TooManyBooks",
144
+ PriceMissing = "PriceMissing",
145
+ PriceStale = "PriceStale",
146
+ PriceInvalid = "PriceInvalid",
147
+ PriceDecimalsChanged = "PriceDecimalsChanged",
148
+ InvalidRegistry = "InvalidRegistry",
149
+ InvalidPriceFeed = "InvalidPriceFeed",
150
+ InvalidPlatformPayout = "InvalidPlatformPayout",
151
+ InvalidLiquidator = "InvalidLiquidator",
152
+ ValueOverflow = "ValueOverflow",
153
+ PeriodNotOffered = "PeriodNotOffered",
154
+ AutoProlongDisabled = "AutoProlongDisabled",
155
+ AutoProlongPeriodInvalid = "AutoProlongPeriodInvalid",
156
+ TimesIsZero = "TimesIsZero",
157
+ ProlongAfterExpiry = "ProlongAfterExpiry",
158
+ AutoProlongNotDue = "AutoProlongNotDue",
159
+ BookNotDrained = "BookNotDrained",
160
+ SweepIncomplete = "SweepIncomplete",
161
+ PositionsOutstanding = "PositionsOutstanding",
162
+ NotLiquidatable = "NotLiquidatable",
163
+ NotExpired = "NotExpired",
164
+ NoBestBid = "NoBestBid",
165
+ AssetNotSupported = "AssetNotSupported",
166
+ ProlongAboveCollateral = "ProlongAboveCollateral",
167
+ InvalidDiscount = "InvalidDiscount",
168
+ TierDisabled = "TierDisabled",
169
+ TopUpsDisabled = "TopUpsDisabled",
170
+ TurboEntryNotExact = "TurboEntryNotExact",
171
+ InvalidTurboTerms = "InvalidTurboTerms",
172
+ RolloverNotOffered = "RolloverNotOffered",
173
+ RolloverNotDue = "RolloverNotDue",
174
+ RolloverNotEarned = "RolloverNotEarned",
175
+ RolloverExhausted = "RolloverExhausted",
176
+ RolloverPending = "RolloverPending",
177
+ UseExpireOrRollover = "UseExpireOrRollover",
178
+ UsePermissionlessExpiry = "UsePermissionlessExpiry",
179
+ InvalidExpiryCosigner = "InvalidExpiryCosigner",
180
+ ExpiryCosignerNotSet = "ExpiryCosignerNotSet"
181
+ }
182
+ export declare enum SettlementReasonInput {
183
+ UserClose = "UserClose",
184
+ Expiry = "Expiry",
185
+ Liquidation = "Liquidation"
186
+ }
187
+ export declare enum SettlementReasonOutput {
188
+ UserClose = "UserClose",
189
+ Expiry = "Expiry",
190
+ Liquidation = "Liquidation"
191
+ }
192
+ export type AddressInput = {
193
+ bits: string;
194
+ };
195
+ export type AddressOutput = AddressInput;
196
+ export type AssetBorrowedInput = {
197
+ account: ContractIdInput;
198
+ session_id: BigNumberish;
199
+ asset_id: AssetIdInput;
200
+ amount: BigNumberish;
201
+ debt_total: BigNumberish;
202
+ timestamp: TimeInput;
203
+ };
204
+ export type AssetBorrowedOutput = {
205
+ account: ContractIdOutput;
206
+ session_id: BN;
207
+ asset_id: AssetIdOutput;
208
+ amount: BN;
209
+ debt_total: BN;
210
+ timestamp: TimeOutput;
211
+ };
212
+ export type AssetIdInput = {
213
+ bits: string;
214
+ };
215
+ export type AssetIdOutput = AssetIdInput;
216
+ export type AssetRepaidInput = {
217
+ account: ContractIdInput;
218
+ session_id: BigNumberish;
219
+ asset_id: AssetIdInput;
220
+ amount: BigNumberish;
221
+ debt_total: BigNumberish;
222
+ timestamp: TimeInput;
223
+ };
224
+ export type AssetRepaidOutput = {
225
+ account: ContractIdOutput;
226
+ session_id: BN;
227
+ asset_id: AssetIdOutput;
228
+ amount: BN;
229
+ debt_total: BN;
230
+ timestamp: TimeOutput;
231
+ };
232
+ export type AutoProlongChangedInput = {
233
+ account: ContractIdInput;
234
+ session_id: BigNumberish;
235
+ period: Option<ProlongPeriodInput>;
236
+ expires_at: BigNumberish;
237
+ timestamp: TimeInput;
238
+ };
239
+ export type AutoProlongChangedOutput = {
240
+ account: ContractIdOutput;
241
+ session_id: BN;
242
+ period: Option<ProlongPeriodOutput>;
243
+ expires_at: BN;
244
+ timestamp: TimeOutput;
245
+ };
246
+ export type BaseDebtRepaidFromCollateralInput = {
247
+ account: ContractIdInput;
248
+ session_id: BigNumberish;
249
+ asset_id: AssetIdInput;
250
+ amount: BigNumberish;
251
+ ask: BigNumberish;
252
+ value: BigNumberish;
253
+ fee: BigNumberish;
254
+ debt_total: BigNumberish;
255
+ new_collateral: BigNumberish;
256
+ new_credit_line: BigNumberish;
257
+ fees_accrued: BigNumberish;
258
+ from_capitalised: BigNumberish;
259
+ capitalised_total: BigNumberish;
260
+ decapitalised_total: BigNumberish;
261
+ timestamp: TimeInput;
262
+ };
263
+ export type BaseDebtRepaidFromCollateralOutput = {
264
+ account: ContractIdOutput;
265
+ session_id: BN;
266
+ asset_id: AssetIdOutput;
267
+ amount: BN;
268
+ ask: BN;
269
+ value: BN;
270
+ fee: BN;
271
+ debt_total: BN;
272
+ new_collateral: BN;
273
+ new_credit_line: BN;
274
+ fees_accrued: BN;
275
+ from_capitalised: BN;
276
+ capitalised_total: BN;
277
+ decapitalised_total: BN;
278
+ timestamp: TimeOutput;
279
+ };
280
+ export type CollateralAddedInput = {
281
+ account: ContractIdInput;
282
+ session_id: BigNumberish;
283
+ funder: IdentityInput;
284
+ amount: BigNumberish;
285
+ new_collateral: BigNumberish;
286
+ new_credit_line: BigNumberish;
287
+ capitalised_total: BigNumberish;
288
+ cap: BigNumberish;
289
+ timestamp: TimeInput;
290
+ };
291
+ export type CollateralAddedOutput = {
292
+ account: ContractIdOutput;
293
+ session_id: BN;
294
+ funder: IdentityOutput;
295
+ amount: BN;
296
+ new_collateral: BN;
297
+ new_credit_line: BN;
298
+ capitalised_total: BN;
299
+ cap: BN;
300
+ timestamp: TimeOutput;
301
+ };
302
+ export type ContractIdInput = {
303
+ bits: string;
304
+ };
305
+ export type ContractIdOutput = ContractIdInput;
306
+ export type MarginPoolLiquidatorChangedInput = {
307
+ old_liquidator: IdentityInput;
308
+ new_liquidator: IdentityInput;
309
+ timestamp: TimeInput;
310
+ };
311
+ export type MarginPoolLiquidatorChangedOutput = {
312
+ old_liquidator: IdentityOutput;
313
+ new_liquidator: IdentityOutput;
314
+ timestamp: TimeOutput;
315
+ };
316
+ export type MarginPoolPauseChangedInput = {
317
+ paused: boolean;
318
+ timestamp: TimeInput;
319
+ };
320
+ export type MarginPoolPauseChangedOutput = {
321
+ paused: boolean;
322
+ timestamp: TimeOutput;
323
+ };
324
+ export type MarginPoolPlatformPayoutChangedInput = {
325
+ old_platform_payout: IdentityInput;
326
+ new_platform_payout: IdentityInput;
327
+ timestamp: TimeInput;
328
+ };
329
+ export type MarginPoolPlatformPayoutChangedOutput = {
330
+ old_platform_payout: IdentityOutput;
331
+ new_platform_payout: IdentityOutput;
332
+ timestamp: TimeOutput;
333
+ };
334
+ export type MarginPoolPriceFeedChangedInput = {
335
+ old_price_feed: ContractIdInput;
336
+ new_price_feed: ContractIdInput;
337
+ timestamp: TimeInput;
338
+ };
339
+ export type MarginPoolPriceFeedChangedOutput = {
340
+ old_price_feed: ContractIdOutput;
341
+ new_price_feed: ContractIdOutput;
342
+ timestamp: TimeOutput;
343
+ };
344
+ export type MarginPoolRegistryChangedInput = {
345
+ old_registry: ContractIdInput;
346
+ new_registry: ContractIdInput;
347
+ timestamp: TimeInput;
348
+ };
349
+ export type MarginPoolRegistryChangedOutput = {
350
+ old_registry: ContractIdOutput;
351
+ new_registry: ContractIdOutput;
352
+ timestamp: TimeOutput;
353
+ };
354
+ export type MarginWithdrawnInput = {
355
+ account: ContractIdInput;
356
+ session_id: BigNumberish;
357
+ asset_id: AssetIdInput;
358
+ amount: BigNumberish;
359
+ from_account: BigNumberish;
360
+ from_pool: BigNumberish;
361
+ from_capitalised: BigNumberish;
362
+ share_qty: BigNumberish;
363
+ new_collateral: BigNumberish;
364
+ new_credit_line: BigNumberish;
365
+ capitalised_total: BigNumberish;
366
+ timestamp: TimeInput;
367
+ };
368
+ export type MarginWithdrawnOutput = {
369
+ account: ContractIdOutput;
370
+ session_id: BN;
371
+ asset_id: AssetIdOutput;
372
+ amount: BN;
373
+ from_account: BN;
374
+ from_pool: BN;
375
+ from_capitalised: BN;
376
+ share_qty: BN;
377
+ new_collateral: BN;
378
+ new_credit_line: BN;
379
+ capitalised_total: BN;
380
+ timestamp: TimeOutput;
381
+ };
382
+ export type PauseEventInput = {
383
+ caller: IdentityInput;
384
+ };
385
+ export type PauseEventOutput = {
386
+ caller: IdentityOutput;
387
+ };
388
+ export type PropBookMetadataInput = {
389
+ base_asset: AssetIdInput;
390
+ quote_asset: AssetIdInput;
391
+ base_decimals: BigNumberish;
392
+ minimum_trade_amount: BigNumberish;
393
+ };
394
+ export type PropBookMetadataOutput = {
395
+ base_asset: AssetIdOutput;
396
+ quote_asset: AssetIdOutput;
397
+ base_decimals: BN;
398
+ minimum_trade_amount: BN;
399
+ };
400
+ export type QuoteDrawnInput = {
401
+ account: ContractIdInput;
402
+ session_id: BigNumberish;
403
+ amount: BigNumberish;
404
+ drawn_total: BigNumberish;
405
+ timestamp: TimeInput;
406
+ };
407
+ export type QuoteDrawnOutput = {
408
+ account: ContractIdOutput;
409
+ session_id: BN;
410
+ amount: BN;
411
+ drawn_total: BN;
412
+ timestamp: TimeOutput;
413
+ };
414
+ export type QuoteRepaidFromCollateralInput = {
415
+ account: ContractIdInput;
416
+ session_id: BigNumberish;
417
+ amount: BigNumberish;
418
+ new_drawn_quote: BigNumberish;
419
+ new_collateral: BigNumberish;
420
+ new_credit_line: BigNumberish;
421
+ from_capitalised: BigNumberish;
422
+ capitalised_total: BigNumberish;
423
+ decapitalised_total: BigNumberish;
424
+ timestamp: TimeInput;
425
+ };
426
+ export type QuoteRepaidFromCollateralOutput = {
427
+ account: ContractIdOutput;
428
+ session_id: BN;
429
+ amount: BN;
430
+ new_drawn_quote: BN;
431
+ new_collateral: BN;
432
+ new_credit_line: BN;
433
+ from_capitalised: BN;
434
+ capitalised_total: BN;
435
+ decapitalised_total: BN;
436
+ timestamp: TimeOutput;
437
+ };
438
+ export type QuoteReturnedInput = {
439
+ account: ContractIdInput;
440
+ session_id: BigNumberish;
441
+ amount: BigNumberish;
442
+ drawn_total: BigNumberish;
443
+ timestamp: TimeInput;
444
+ };
445
+ export type QuoteReturnedOutput = {
446
+ account: ContractIdOutput;
447
+ session_id: BN;
448
+ amount: BN;
449
+ drawn_total: BN;
450
+ timestamp: TimeOutput;
451
+ };
452
+ export type RoleGrantedEventInput = {
453
+ role: BigNumberish;
454
+ account: IdentityInput;
455
+ };
456
+ export type RoleGrantedEventOutput = {
457
+ role: BN;
458
+ account: IdentityOutput;
459
+ };
460
+ export type RoleRevokedEventInput = {
461
+ role: BigNumberish;
462
+ account: IdentityInput;
463
+ };
464
+ export type RoleRevokedEventOutput = {
465
+ role: BN;
466
+ account: IdentityOutput;
467
+ };
468
+ export type RolloverStateInput = {
469
+ anchor: BigNumberish;
470
+ withdrawn: BigNumberish;
471
+ rollovers_used: BigNumberish;
472
+ };
473
+ export type RolloverStateOutput = {
474
+ anchor: BN;
475
+ withdrawn: BN;
476
+ rollovers_used: BN;
477
+ };
478
+ export type RolloverViewInput = {
479
+ anchor: BigNumberish;
480
+ withdrawn: BigNumberish;
481
+ rollovers_used: BigNumberish;
482
+ max_rollovers: BigNumberish;
483
+ profit_required: BigNumberish;
484
+ };
485
+ export type RolloverViewOutput = {
486
+ anchor: BN;
487
+ withdrawn: BN;
488
+ rollovers_used: BN;
489
+ max_rollovers: BN;
490
+ profit_required: BN;
491
+ };
492
+ export type RolloverWithdrawalRecordedInput = {
493
+ account: ContractIdInput;
494
+ session_id: BigNumberish;
495
+ amount: BigNumberish;
496
+ withdrawn_total: BigNumberish;
497
+ timestamp: TimeInput;
498
+ };
499
+ export type RolloverWithdrawalRecordedOutput = {
500
+ account: ContractIdOutput;
501
+ session_id: BN;
502
+ amount: BN;
503
+ withdrawn_total: BN;
504
+ timestamp: TimeOutput;
505
+ };
506
+ export type SessionClosedInput = {
507
+ account: ContractIdInput;
508
+ session_id: BigNumberish;
509
+ reason: SettlementReasonInput;
510
+ v: BigNumberish;
511
+ v_is_negative: boolean;
512
+ v_liq: BigNumberish;
513
+ v_liq_is_negative: boolean;
514
+ profit_abs: BigNumberish;
515
+ profit_is_negative: boolean;
516
+ fees_accrued: BigNumberish;
517
+ platform_total: BigNumberish;
518
+ user_net: BigNumberish;
519
+ bad_debt: BigNumberish;
520
+ cancelled_debt: Vec<[AssetIdInput, BigNumberish]>;
521
+ payout_parent: Vec<[AssetIdInput, BigNumberish]>;
522
+ payout_platform: Vec<[AssetIdInput, BigNumberish]>;
523
+ timestamp: TimeInput;
524
+ };
525
+ export type SessionClosedOutput = {
526
+ account: ContractIdOutput;
527
+ session_id: BN;
528
+ reason: SettlementReasonOutput;
529
+ v: BN;
530
+ v_is_negative: boolean;
531
+ v_liq: BN;
532
+ v_liq_is_negative: boolean;
533
+ profit_abs: BN;
534
+ profit_is_negative: boolean;
535
+ fees_accrued: BN;
536
+ platform_total: BN;
537
+ user_net: BN;
538
+ bad_debt: BN;
539
+ cancelled_debt: Vec<[AssetIdOutput, BN]>;
540
+ payout_parent: Vec<[AssetIdOutput, BN]>;
541
+ payout_platform: Vec<[AssetIdOutput, BN]>;
542
+ timestamp: TimeOutput;
543
+ };
544
+ export type SessionOpenedInput = {
545
+ account: ContractIdInput;
546
+ session_id: BigNumberish;
547
+ tier_id: BigNumberish;
548
+ tier_version: BigNumberish;
549
+ parent: IdentityInput;
550
+ collateral: BigNumberish;
551
+ credit_line: BigNumberish;
552
+ started_at: BigNumberish;
553
+ expires_at: BigNumberish;
554
+ open_fee: BigNumberish;
555
+ fees_accrued: BigNumberish;
556
+ timestamp: TimeInput;
557
+ };
558
+ export type SessionOpenedOutput = {
559
+ account: ContractIdOutput;
560
+ session_id: BN;
561
+ tier_id: BN;
562
+ tier_version: number;
563
+ parent: IdentityOutput;
564
+ collateral: BN;
565
+ credit_line: BN;
566
+ started_at: BN;
567
+ expires_at: BN;
568
+ open_fee: BN;
569
+ fees_accrued: BN;
570
+ timestamp: TimeOutput;
571
+ };
572
+ export type SessionProlongedInput = {
573
+ account: ContractIdInput;
574
+ session_id: BigNumberish;
575
+ period: ProlongPeriodInput;
576
+ times: BigNumberish;
577
+ seconds: BigNumberish;
578
+ trigger: ProlongTriggerInput;
579
+ new_expires_at: BigNumberish;
580
+ new_credit_line: BigNumberish;
581
+ fee: BigNumberish;
582
+ fees_accrued: BigNumberish;
583
+ timestamp: TimeInput;
584
+ };
585
+ export type SessionProlongedOutput = {
586
+ account: ContractIdOutput;
587
+ session_id: BN;
588
+ period: ProlongPeriodOutput;
589
+ times: BN;
590
+ seconds: BN;
591
+ trigger: ProlongTriggerOutput;
592
+ new_expires_at: BN;
593
+ new_credit_line: BN;
594
+ fee: BN;
595
+ fees_accrued: BN;
596
+ timestamp: TimeOutput;
597
+ };
598
+ export type SessionRolledOverInput = {
599
+ account: ContractIdInput;
600
+ session_id: BigNumberish;
601
+ rollovers_used: BigNumberish;
602
+ max_rollovers: BigNumberish;
603
+ anchor: BigNumberish;
604
+ profit_required: BigNumberish;
605
+ new_expires_at: BigNumberish;
606
+ timestamp: TimeInput;
607
+ };
608
+ export type SessionRolledOverOutput = {
609
+ account: ContractIdOutput;
610
+ session_id: BN;
611
+ rollovers_used: BN;
612
+ max_rollovers: BN;
613
+ anchor: BN;
614
+ profit_required: BN;
615
+ new_expires_at: BN;
616
+ timestamp: TimeOutput;
617
+ };
618
+ export type SessionSeizedInput = {
619
+ account: ContractIdInput;
620
+ session_id: BigNumberish;
621
+ reason: SettlementReasonInput;
622
+ liquidator: IdentityInput;
623
+ holdings: Vec<[AssetIdInput, BigNumberish]>;
624
+ debt: Vec<[AssetIdInput, BigNumberish]>;
625
+ transferred: Vec<[AssetIdInput, BigNumberish]>;
626
+ timestamp: TimeInput;
627
+ };
628
+ export type SessionSeizedOutput = {
629
+ account: ContractIdOutput;
630
+ session_id: BN;
631
+ reason: SettlementReasonOutput;
632
+ liquidator: IdentityOutput;
633
+ holdings: Vec<[AssetIdOutput, BN]>;
634
+ debt: Vec<[AssetIdOutput, BN]>;
635
+ transferred: Vec<[AssetIdOutput, BN]>;
636
+ timestamp: TimeOutput;
637
+ };
638
+ export type SessionStateInput = {
639
+ session_id: BigNumberish;
640
+ tier_id: BigNumberish;
641
+ tier_version: BigNumberish;
642
+ parent: IdentityInput;
643
+ collateral: BigNumberish;
644
+ credit_line: BigNumberish;
645
+ started_at: BigNumberish;
646
+ expires_at: BigNumberish;
647
+ drawn_quote: BigNumberish;
648
+ fees_accrued: BigNumberish;
649
+ auto_prolong: Option<ProlongPeriodInput>;
650
+ capitalised: BigNumberish;
651
+ decapitalised: BigNumberish;
652
+ };
653
+ export type SessionStateOutput = {
654
+ session_id: BN;
655
+ tier_id: BN;
656
+ tier_version: number;
657
+ parent: IdentityOutput;
658
+ collateral: BN;
659
+ credit_line: BN;
660
+ started_at: BN;
661
+ expires_at: BN;
662
+ drawn_quote: BN;
663
+ fees_accrued: BN;
664
+ auto_prolong: Option<ProlongPeriodOutput>;
665
+ capitalised: BN;
666
+ decapitalised: BN;
667
+ };
668
+ export type SessionViewInput = {
669
+ session_id: BigNumberish;
670
+ tier_id: BigNumberish;
671
+ tier_version: BigNumberish;
672
+ parent: IdentityInput;
673
+ collateral: BigNumberish;
674
+ credit_line: BigNumberish;
675
+ started_at: BigNumberish;
676
+ expires_at: BigNumberish;
677
+ drawn_quote: BigNumberish;
678
+ fees_accrued: BigNumberish;
679
+ auto_prolong: Option<ProlongPeriodInput>;
680
+ capitalised: BigNumberish;
681
+ decapitalised: BigNumberish;
682
+ };
683
+ export type SessionViewOutput = {
684
+ session_id: BN;
685
+ tier_id: BN;
686
+ tier_version: number;
687
+ parent: IdentityOutput;
688
+ collateral: BN;
689
+ credit_line: BN;
690
+ started_at: BN;
691
+ expires_at: BN;
692
+ drawn_quote: BN;
693
+ fees_accrued: BN;
694
+ auto_prolong: Option<ProlongPeriodOutput>;
695
+ capitalised: BN;
696
+ decapitalised: BN;
697
+ };
698
+ export type SettlementReceivedInput = {
699
+ account: ContractIdInput;
700
+ session_id: BigNumberish;
701
+ asset_id: AssetIdInput;
702
+ amount: BigNumberish;
703
+ received_total: BigNumberish;
704
+ timestamp: TimeInput;
705
+ };
706
+ export type SettlementReceivedOutput = {
707
+ account: ContractIdOutput;
708
+ session_id: BN;
709
+ asset_id: AssetIdOutput;
710
+ amount: BN;
711
+ received_total: BN;
712
+ timestamp: TimeOutput;
713
+ };
714
+ export type TicketSettledInput = {
715
+ account: ContractIdInput;
716
+ session_id: BigNumberish;
717
+ ticket: BigNumberish;
718
+ to_platform: BigNumberish;
719
+ absorbed_by_pool: BigNumberish;
720
+ timestamp: TimeInput;
721
+ };
722
+ export type TicketSettledOutput = {
723
+ account: ContractIdOutput;
724
+ session_id: BN;
725
+ ticket: BN;
726
+ to_platform: BN;
727
+ absorbed_by_pool: BN;
728
+ timestamp: TimeOutput;
729
+ };
730
+ export type TierBooksAddedInput = {
731
+ tier_id: BigNumberish;
732
+ version: BigNumberish;
733
+ books: Vec<ContractIdInput>;
734
+ new_assets: Vec<AssetIdInput>;
735
+ timestamp: TimeInput;
736
+ };
737
+ export type TierBooksAddedOutput = {
738
+ tier_id: BN;
739
+ version: number;
740
+ books: Vec<ContractIdOutput>;
741
+ new_assets: Vec<AssetIdOutput>;
742
+ timestamp: TimeOutput;
743
+ };
744
+ export type TierEnabledChangedInput = {
745
+ tier_id: BigNumberish;
746
+ enabled: boolean;
747
+ timestamp: TimeInput;
748
+ };
749
+ export type TierEnabledChangedOutput = {
750
+ tier_id: BN;
751
+ enabled: boolean;
752
+ timestamp: TimeOutput;
753
+ };
754
+ export type TierParamsInput = {
755
+ line: BigNumberish;
756
+ leverage: BigNumberish;
757
+ duration: BigNumberish;
758
+ maintenance_bps: BigNumberish;
759
+ open_buffer_bps: BigNumberish;
760
+ liq_price_factor: BigNumberish;
761
+ prolong_fee: [BigNumberish, BigNumberish, BigNumberish, BigNumberish];
762
+ max_credit_line_bps: BigNumberish;
763
+ max_price_age: BigNumberish;
764
+ open_fee: BigNumberish;
765
+ profit_share_bps: BigNumberish;
766
+ price_band_bps: BigNumberish;
767
+ };
768
+ export type TierParamsOutput = {
769
+ line: BN;
770
+ leverage: BN;
771
+ duration: BN;
772
+ maintenance_bps: BN;
773
+ open_buffer_bps: BN;
774
+ liq_price_factor: BN;
775
+ prolong_fee: [BN, BN, BN, BN];
776
+ max_credit_line_bps: BN;
777
+ max_price_age: BN;
778
+ open_fee: BN;
779
+ profit_share_bps: BN;
780
+ price_band_bps: BN;
781
+ };
782
+ export type TierVersionPublishedInput = {
783
+ tier_id: BigNumberish;
784
+ version: BigNumberish;
785
+ params: TierParamsInput;
786
+ required_collateral: BigNumberish;
787
+ k: BigNumberish;
788
+ maintenance: BigNumberish;
789
+ open_buffer: BigNumberish;
790
+ threshold_floor: BigNumberish;
791
+ base_repay_fee_ppm: BigNumberish;
792
+ prolong_seconds: [BigNumberish, BigNumberish, BigNumberish, BigNumberish];
793
+ auto_prolong_periods: Vec<ProlongPeriodInput>;
794
+ books: Vec<ContractIdInput>;
795
+ assets: Vec<AssetIdInput>;
796
+ timestamp: TimeInput;
797
+ };
798
+ export type TierVersionPublishedOutput = {
799
+ tier_id: BN;
800
+ version: number;
801
+ params: TierParamsOutput;
802
+ required_collateral: BN;
803
+ k: BN;
804
+ maintenance: BN;
805
+ open_buffer: BN;
806
+ threshold_floor: BN;
807
+ base_repay_fee_ppm: BN;
808
+ prolong_seconds: [BN, BN, BN, BN];
809
+ auto_prolong_periods: Vec<ProlongPeriodOutput>;
810
+ books: Vec<ContractIdOutput>;
811
+ assets: Vec<AssetIdOutput>;
812
+ timestamp: TimeOutput;
813
+ };
814
+ export type TierVersionPublishedV2Input = {
815
+ tier_id: BigNumberish;
816
+ version: BigNumberish;
817
+ params: TierParamsInput;
818
+ terms: TurboTermsInput;
819
+ required_collateral: BigNumberish;
820
+ k: BigNumberish;
821
+ maintenance: BigNumberish;
822
+ open_buffer: BigNumberish;
823
+ threshold_floor: BigNumberish;
824
+ base_repay_fee_ppm: BigNumberish;
825
+ term_seconds: BigNumberish;
826
+ rollover_window_seconds: BigNumberish;
827
+ books: Vec<ContractIdInput>;
828
+ assets: Vec<AssetIdInput>;
829
+ timestamp: TimeInput;
830
+ };
831
+ export type TierVersionPublishedV2Output = {
832
+ tier_id: BN;
833
+ version: number;
834
+ params: TierParamsOutput;
835
+ terms: TurboTermsOutput;
836
+ required_collateral: BN;
837
+ k: BN;
838
+ maintenance: BN;
839
+ open_buffer: BN;
840
+ threshold_floor: BN;
841
+ base_repay_fee_ppm: BN;
842
+ term_seconds: BN;
843
+ rollover_window_seconds: BN;
844
+ books: Vec<ContractIdOutput>;
845
+ assets: Vec<AssetIdOutput>;
846
+ timestamp: TimeOutput;
847
+ };
848
+ export type TimeInput = {
849
+ unix: BigNumberish;
850
+ };
851
+ export type TimeOutput = {
852
+ unix: BN;
853
+ };
854
+ export type TurboTermsInput = {
855
+ max_loss_bps: [BigNumberish, BigNumberish, BigNumberish, BigNumberish];
856
+ rollover_profit_bps: BigNumberish;
857
+ max_rollovers: BigNumberish;
858
+ };
859
+ export type TurboTermsOutput = {
860
+ max_loss_bps: [BN, BN, BN, BN];
861
+ rollover_profit_bps: BN;
862
+ max_rollovers: BN;
863
+ };
864
+ export type UnpauseEventInput = {
865
+ caller: IdentityInput;
866
+ };
867
+ export type UnpauseEventOutput = {
868
+ caller: IdentityOutput;
869
+ };
870
+ export type UserDiscountInput = {
871
+ discount_bps: BigNumberish;
872
+ scope: DiscountScopeInput;
873
+ };
874
+ export type UserDiscountOutput = {
875
+ discount_bps: BN;
876
+ scope: DiscountScopeOutput;
877
+ };
878
+ export type UserDiscountChangedInput = {
879
+ user: IdentityInput;
880
+ tier_id: Option<BigNumberish>;
881
+ discount: Option<UserDiscountInput>;
882
+ timestamp: TimeInput;
883
+ };
884
+ export type UserDiscountChangedOutput = {
885
+ user: IdentityOutput;
886
+ tier_id: Option<BN>;
887
+ discount: Option<UserDiscountOutput>;
888
+ timestamp: TimeOutput;
889
+ };
890
+ export type UserDiscountsRemovedInput = {
891
+ user: IdentityInput;
892
+ tier_id: Option<BigNumberish>;
893
+ removed: boolean;
894
+ timestamp: TimeInput;
895
+ };
896
+ export type UserDiscountsRemovedOutput = {
897
+ user: IdentityOutput;
898
+ tier_id: Option<BN>;
899
+ removed: boolean;
900
+ timestamp: TimeOutput;
901
+ };
902
+ export type PropMarginPoolMockConfigurables = Partial<{
903
+ INITIAL_LIQUIDATOR: IdentityInput;
904
+ COLLATERAL_ASSET: AssetIdInput;
905
+ COLLATERAL_DECIMALS: BigNumberish;
906
+ MAX_TIER_BOOKS: BigNumberish;
907
+ }>;
908
+ export declare class PropMarginPoolMockInterface extends Interface {
909
+ constructor();
910
+ functions: {
911
+ collateral_asset: FunctionFragment;
912
+ collateral_decimals: FunctionFragment;
913
+ current_tier_version: FunctionFragment;
914
+ emit_asset_borrowed: FunctionFragment;
915
+ emit_asset_repaid: FunctionFragment;
916
+ emit_auto_prolong_changed: FunctionFragment;
917
+ emit_base_debt_repaid_from_collateral: FunctionFragment;
918
+ emit_collateral_added: FunctionFragment;
919
+ emit_liquidator_changed: FunctionFragment;
920
+ emit_margin_withdrawn: FunctionFragment;
921
+ emit_pause_changed: FunctionFragment;
922
+ emit_pause_event: FunctionFragment;
923
+ emit_platform_payout_changed: FunctionFragment;
924
+ emit_price_feed_changed: FunctionFragment;
925
+ emit_quote_drawn: FunctionFragment;
926
+ emit_quote_repaid_from_collateral: FunctionFragment;
927
+ emit_quote_returned: FunctionFragment;
928
+ emit_registry_changed: FunctionFragment;
929
+ emit_role_granted: FunctionFragment;
930
+ emit_role_revoked: FunctionFragment;
931
+ emit_rollover_withdrawal_recorded: FunctionFragment;
932
+ emit_session_closed: FunctionFragment;
933
+ emit_session_opened: FunctionFragment;
934
+ emit_session_prolonged: FunctionFragment;
935
+ emit_session_rolled_over: FunctionFragment;
936
+ emit_session_seized: FunctionFragment;
937
+ emit_settlement_received: FunctionFragment;
938
+ emit_ticket_settled: FunctionFragment;
939
+ emit_tier_books_added: FunctionFragment;
940
+ emit_tier_enabled_changed: FunctionFragment;
941
+ emit_tier_version_published: FunctionFragment;
942
+ emit_tier_version_published_v2: FunctionFragment;
943
+ emit_unpause_event: FunctionFragment;
944
+ emit_user_discount_changed: FunctionFragment;
945
+ emit_user_discounts_removed: FunctionFragment;
946
+ expiry_cosigner: FunctionFragment;
947
+ get_asset_decimals: FunctionFragment;
948
+ get_assets: FunctionFragment;
949
+ get_bad_debt: FunctionFragment;
950
+ get_book_allowed: FunctionFragment;
951
+ get_book_metadata: FunctionFragment;
952
+ get_books: FunctionFragment;
953
+ get_current_version: FunctionFragment;
954
+ get_debt: FunctionFragment;
955
+ get_debt_assets: FunctionFragment;
956
+ get_expiry_cosigner: FunctionFragment;
957
+ get_initialized: FunctionFragment;
958
+ get_liquidator: FunctionFragment;
959
+ get_next_session_id: FunctionFragment;
960
+ get_platform_payout: FunctionFragment;
961
+ get_price_feed: FunctionFragment;
962
+ get_priced_assets: FunctionFragment;
963
+ get_received: FunctionFragment;
964
+ get_registry: FunctionFragment;
965
+ get_rollover: FunctionFragment;
966
+ get_rollover_state: FunctionFragment;
967
+ get_session: FunctionFragment;
968
+ get_session_debt: FunctionFragment;
969
+ get_session_state: FunctionFragment;
970
+ get_session_tier: FunctionFragment;
971
+ get_ticket: FunctionFragment;
972
+ get_tier: FunctionFragment;
973
+ get_tier_disabled: FunctionFragment;
974
+ get_turbo_terms: FunctionFragment;
975
+ get_user_discount: FunctionFragment;
976
+ has_debts: FunctionFragment;
977
+ has_session: FunctionFragment;
978
+ is_call_allowed: FunctionFragment;
979
+ is_initialized: FunctionFragment;
980
+ is_tier_enabled: FunctionFragment;
981
+ liquidator: FunctionFragment;
982
+ max_tier_books: FunctionFragment;
983
+ platform_payout: FunctionFragment;
984
+ price_feed: FunctionFragment;
985
+ registry: FunctionFragment;
986
+ remove_asset_decimals: FunctionFragment;
987
+ remove_book_allowed: FunctionFragment;
988
+ remove_book_metadata: FunctionFragment;
989
+ remove_current_version: FunctionFragment;
990
+ remove_debt: FunctionFragment;
991
+ remove_expiry_cosigner: FunctionFragment;
992
+ remove_next_session_id: FunctionFragment;
993
+ remove_received: FunctionFragment;
994
+ remove_rollover_state: FunctionFragment;
995
+ remove_session: FunctionFragment;
996
+ remove_session_tier: FunctionFragment;
997
+ remove_ticket: FunctionFragment;
998
+ remove_tier: FunctionFragment;
999
+ remove_tier_disabled: FunctionFragment;
1000
+ remove_turbo_terms: FunctionFragment;
1001
+ remove_user_discount: FunctionFragment;
1002
+ resolve_user_discount: FunctionFragment;
1003
+ session_assets: FunctionFragment;
1004
+ session_books: FunctionFragment;
1005
+ session_turbo_terms: FunctionFragment;
1006
+ set_account_debt: FunctionFragment;
1007
+ set_asset_decimals: FunctionFragment;
1008
+ set_assets: FunctionFragment;
1009
+ set_bad_debt: FunctionFragment;
1010
+ set_book_allowed: FunctionFragment;
1011
+ set_book_metadata: FunctionFragment;
1012
+ set_books: FunctionFragment;
1013
+ set_current_version: FunctionFragment;
1014
+ set_debt: FunctionFragment;
1015
+ set_debt_assets: FunctionFragment;
1016
+ set_expiry_cosigner: FunctionFragment;
1017
+ set_initialized: FunctionFragment;
1018
+ set_liquidator: FunctionFragment;
1019
+ set_next_session_id: FunctionFragment;
1020
+ set_platform_payout: FunctionFragment;
1021
+ set_price_feed: FunctionFragment;
1022
+ set_priced_assets: FunctionFragment;
1023
+ set_received: FunctionFragment;
1024
+ set_registry: FunctionFragment;
1025
+ set_rollover_state: FunctionFragment;
1026
+ set_session: FunctionFragment;
1027
+ set_session_tier: FunctionFragment;
1028
+ set_ticket: FunctionFragment;
1029
+ set_tier: FunctionFragment;
1030
+ set_tier_disabled: FunctionFragment;
1031
+ set_tier_enabled: FunctionFragment;
1032
+ set_turbo_terms: FunctionFragment;
1033
+ set_user_discount: FunctionFragment;
1034
+ tier_assets: FunctionFragment;
1035
+ tier_books: FunctionFragment;
1036
+ };
1037
+ }
1038
+ export declare class PropMarginPoolMock extends __Contract {
1039
+ static readonly abi: {
1040
+ programType: string;
1041
+ specVersion: string;
1042
+ encodingVersion: string;
1043
+ concreteTypes: ({
1044
+ type: string;
1045
+ concreteTypeId: string;
1046
+ metadataTypeId?: undefined;
1047
+ typeArguments?: undefined;
1048
+ } | {
1049
+ type: string;
1050
+ concreteTypeId: string;
1051
+ metadataTypeId: number;
1052
+ typeArguments?: undefined;
1053
+ } | {
1054
+ type: string;
1055
+ concreteTypeId: string;
1056
+ metadataTypeId: number;
1057
+ typeArguments: string[];
1058
+ })[];
1059
+ metadataTypes: ({
1060
+ type: string;
1061
+ metadataTypeId: number;
1062
+ components?: undefined;
1063
+ typeParameters?: undefined;
1064
+ } | {
1065
+ type: string;
1066
+ metadataTypeId: number;
1067
+ components: ({
1068
+ name: string;
1069
+ typeId: string;
1070
+ } | {
1071
+ name: string;
1072
+ typeId: number;
1073
+ })[];
1074
+ typeParameters: number[];
1075
+ } | {
1076
+ type: string;
1077
+ metadataTypeId: number;
1078
+ components: ({
1079
+ name: string;
1080
+ typeId: number;
1081
+ typeArguments?: undefined;
1082
+ } | {
1083
+ name: string;
1084
+ typeId: string;
1085
+ typeArguments?: undefined;
1086
+ } | {
1087
+ name: string;
1088
+ typeId: number;
1089
+ typeArguments: {
1090
+ name: string;
1091
+ typeId: number;
1092
+ }[];
1093
+ })[];
1094
+ typeParameters?: undefined;
1095
+ } | {
1096
+ type: string;
1097
+ metadataTypeId: number;
1098
+ components: ({
1099
+ name: string;
1100
+ typeId: number;
1101
+ typeArguments?: undefined;
1102
+ } | {
1103
+ name: string;
1104
+ typeId: number;
1105
+ typeArguments: {
1106
+ name: string;
1107
+ typeId: string;
1108
+ }[];
1109
+ } | {
1110
+ name: string;
1111
+ typeId: number;
1112
+ typeArguments: {
1113
+ name: string;
1114
+ typeId: number;
1115
+ }[];
1116
+ })[];
1117
+ typeParameters?: undefined;
1118
+ } | {
1119
+ type: string;
1120
+ metadataTypeId: number;
1121
+ components: ({
1122
+ name: string;
1123
+ typeId: number;
1124
+ typeArguments?: undefined;
1125
+ } | {
1126
+ name: string;
1127
+ typeId: number;
1128
+ typeArguments: {
1129
+ name: string;
1130
+ typeId: string;
1131
+ }[];
1132
+ } | {
1133
+ name: string;
1134
+ typeId: string;
1135
+ typeArguments?: undefined;
1136
+ })[];
1137
+ typeParameters?: undefined;
1138
+ } | {
1139
+ type: string;
1140
+ metadataTypeId: number;
1141
+ components: ({
1142
+ name: string;
1143
+ typeId: number;
1144
+ typeArguments: {
1145
+ name: string;
1146
+ typeId: number;
1147
+ }[];
1148
+ } | {
1149
+ name: string;
1150
+ typeId: string;
1151
+ typeArguments?: undefined;
1152
+ })[];
1153
+ typeParameters: number[];
1154
+ })[];
1155
+ functions: ({
1156
+ name: string;
1157
+ inputs: {
1158
+ name: string;
1159
+ concreteTypeId: string;
1160
+ }[];
1161
+ output: string;
1162
+ attributes: {
1163
+ name: string;
1164
+ arguments: string[];
1165
+ }[];
1166
+ } | {
1167
+ name: string;
1168
+ inputs: {
1169
+ name: string;
1170
+ concreteTypeId: string;
1171
+ }[];
1172
+ output: string;
1173
+ attributes: null;
1174
+ })[];
1175
+ loggedTypes: {
1176
+ logId: string;
1177
+ concreteTypeId: string;
1178
+ }[];
1179
+ messagesTypes: never[];
1180
+ configurables: {
1181
+ name: string;
1182
+ concreteTypeId: string;
1183
+ offset: number;
1184
+ indirect: boolean;
1185
+ }[];
1186
+ errorCodes: {};
1187
+ panickingCalls: {};
1188
+ };
1189
+ static readonly storageSlots: StorageSlot[];
1190
+ interface: PropMarginPoolMockInterface;
1191
+ functions: {
1192
+ collateral_asset: InvokeFunction<[], AssetIdOutput>;
1193
+ collateral_decimals: InvokeFunction<[], number>;
1194
+ current_tier_version: InvokeFunction<[tier_id: BigNumberish], Option<number>>;
1195
+ emit_asset_borrowed: InvokeFunction<[event: AssetBorrowedInput], void>;
1196
+ emit_asset_repaid: InvokeFunction<[event: AssetRepaidInput], void>;
1197
+ emit_auto_prolong_changed: InvokeFunction<[event: AutoProlongChangedInput], void>;
1198
+ emit_base_debt_repaid_from_collateral: InvokeFunction<[event: BaseDebtRepaidFromCollateralInput], void>;
1199
+ emit_collateral_added: InvokeFunction<[event: CollateralAddedInput], void>;
1200
+ emit_liquidator_changed: InvokeFunction<[event: MarginPoolLiquidatorChangedInput], void>;
1201
+ emit_margin_withdrawn: InvokeFunction<[event: MarginWithdrawnInput], void>;
1202
+ emit_pause_changed: InvokeFunction<[event: MarginPoolPauseChangedInput], void>;
1203
+ emit_pause_event: InvokeFunction<[], void>;
1204
+ emit_platform_payout_changed: InvokeFunction<[event: MarginPoolPlatformPayoutChangedInput], void>;
1205
+ emit_price_feed_changed: InvokeFunction<[event: MarginPoolPriceFeedChangedInput], void>;
1206
+ emit_quote_drawn: InvokeFunction<[event: QuoteDrawnInput], void>;
1207
+ emit_quote_repaid_from_collateral: InvokeFunction<[event: QuoteRepaidFromCollateralInput], void>;
1208
+ emit_quote_returned: InvokeFunction<[event: QuoteReturnedInput], void>;
1209
+ emit_registry_changed: InvokeFunction<[event: MarginPoolRegistryChangedInput], void>;
1210
+ emit_role_granted: InvokeFunction<[event: RoleGrantedEventInput], void>;
1211
+ emit_role_revoked: InvokeFunction<[event: RoleRevokedEventInput], void>;
1212
+ emit_rollover_withdrawal_recorded: InvokeFunction<[event: RolloverWithdrawalRecordedInput], void>;
1213
+ emit_session_closed: InvokeFunction<[event: SessionClosedInput], void>;
1214
+ emit_session_opened: InvokeFunction<[event: SessionOpenedInput], void>;
1215
+ emit_session_prolonged: InvokeFunction<[event: SessionProlongedInput], void>;
1216
+ emit_session_rolled_over: InvokeFunction<[event: SessionRolledOverInput], void>;
1217
+ emit_session_seized: InvokeFunction<[event: SessionSeizedInput], void>;
1218
+ emit_settlement_received: InvokeFunction<[event: SettlementReceivedInput], void>;
1219
+ emit_ticket_settled: InvokeFunction<[event: TicketSettledInput], void>;
1220
+ emit_tier_books_added: InvokeFunction<[event: TierBooksAddedInput], void>;
1221
+ emit_tier_enabled_changed: InvokeFunction<[event: TierEnabledChangedInput], void>;
1222
+ emit_tier_version_published: InvokeFunction<[event: TierVersionPublishedInput], void>;
1223
+ emit_tier_version_published_v2: InvokeFunction<[event: TierVersionPublishedV2Input], void>;
1224
+ emit_unpause_event: InvokeFunction<[], void>;
1225
+ emit_user_discount_changed: InvokeFunction<[event: UserDiscountChangedInput], void>;
1226
+ emit_user_discounts_removed: InvokeFunction<[event: UserDiscountsRemovedInput], void>;
1227
+ expiry_cosigner: InvokeFunction<[], Option<AddressOutput>>;
1228
+ get_asset_decimals: InvokeFunction<[asset: AssetIdInput], Option<number>>;
1229
+ get_assets: InvokeFunction<[tier_id: BigNumberish, version: BigNumberish], Vec<AssetIdOutput>>;
1230
+ get_bad_debt: InvokeFunction<[], BN>;
1231
+ get_book_allowed: InvokeFunction<[tier_id: BigNumberish, version: BigNumberish, book: ContractIdInput], Option<boolean>>;
1232
+ get_book_metadata: InvokeFunction<[book: ContractIdInput], Option<PropBookMetadataOutput>>;
1233
+ get_books: InvokeFunction<[tier_id: BigNumberish, version: BigNumberish], Vec<ContractIdOutput>>;
1234
+ get_current_version: InvokeFunction<[tier_id: BigNumberish], Option<number>>;
1235
+ get_debt: InvokeFunction<[account: ContractIdInput, asset: AssetIdInput], BN>;
1236
+ get_debt_assets: InvokeFunction<[account: ContractIdInput, session_id: BigNumberish], Vec<AssetIdOutput>>;
1237
+ get_expiry_cosigner: InvokeFunction<[], Option<AddressOutput>>;
1238
+ get_initialized: InvokeFunction<[], boolean>;
1239
+ get_liquidator: InvokeFunction<[], IdentityOutput>;
1240
+ get_next_session_id: InvokeFunction<[account: ContractIdInput], Option<BN>>;
1241
+ get_platform_payout: InvokeFunction<[], IdentityOutput>;
1242
+ get_price_feed: InvokeFunction<[], ContractIdOutput>;
1243
+ get_priced_assets: InvokeFunction<[], Vec<AssetIdOutput>>;
1244
+ get_received: InvokeFunction<[account: ContractIdInput, session_id: BigNumberish, asset: AssetIdInput], Option<BN>>;
1245
+ get_registry: InvokeFunction<[], ContractIdOutput>;
1246
+ get_rollover: InvokeFunction<[account: ContractIdInput], Option<RolloverViewOutput>>;
1247
+ get_rollover_state: InvokeFunction<[account: ContractIdInput], Option<RolloverStateOutput>>;
1248
+ get_session: InvokeFunction<[account: ContractIdInput], Option<SessionViewOutput>>;
1249
+ get_session_debt: InvokeFunction<[account: ContractIdInput, session_id: BigNumberish, asset: AssetIdInput], Option<BN>>;
1250
+ get_session_state: InvokeFunction<[account: ContractIdInput], Option<SessionStateOutput>>;
1251
+ get_session_tier: InvokeFunction<[account: ContractIdInput], Option<[BN, number]>>;
1252
+ get_ticket: InvokeFunction<[account: ContractIdInput], Option<BN>>;
1253
+ get_tier: InvokeFunction<[tier_id: BigNumberish, version: BigNumberish], Option<TierParamsOutput>>;
1254
+ get_tier_disabled: InvokeFunction<[tier_id: BigNumberish], Option<boolean>>;
1255
+ get_turbo_terms: InvokeFunction<[tier_id: BigNumberish, version: BigNumberish], Option<TurboTermsOutput>>;
1256
+ get_user_discount: InvokeFunction<[user: IdentityInput, tier_id?: Option<BigNumberish>], Option<UserDiscountOutput>>;
1257
+ has_debts: InvokeFunction<[account: ContractIdInput], boolean>;
1258
+ has_session: InvokeFunction<[account: ContractIdInput], boolean>;
1259
+ is_call_allowed: InvokeFunction<[account: ContractIdInput, target: ContractIdInput], boolean>;
1260
+ is_initialized: InvokeFunction<[], boolean>;
1261
+ is_tier_enabled: InvokeFunction<[tier_id: BigNumberish], boolean>;
1262
+ liquidator: InvokeFunction<[], IdentityOutput>;
1263
+ max_tier_books: InvokeFunction<[], BN>;
1264
+ platform_payout: InvokeFunction<[], IdentityOutput>;
1265
+ price_feed: InvokeFunction<[], ContractIdOutput>;
1266
+ registry: InvokeFunction<[], ContractIdOutput>;
1267
+ remove_asset_decimals: InvokeFunction<[asset: AssetIdInput], void>;
1268
+ remove_book_allowed: InvokeFunction<[tier_id: BigNumberish, version: BigNumberish, book: ContractIdInput], void>;
1269
+ remove_book_metadata: InvokeFunction<[book: ContractIdInput], void>;
1270
+ remove_current_version: InvokeFunction<[tier_id: BigNumberish], void>;
1271
+ remove_debt: InvokeFunction<[account: ContractIdInput, session_id: BigNumberish, asset: AssetIdInput], void>;
1272
+ remove_expiry_cosigner: InvokeFunction<[], void>;
1273
+ remove_next_session_id: InvokeFunction<[account: ContractIdInput], void>;
1274
+ remove_received: InvokeFunction<[account: ContractIdInput, session_id: BigNumberish, asset: AssetIdInput], void>;
1275
+ remove_rollover_state: InvokeFunction<[account: ContractIdInput], void>;
1276
+ remove_session: InvokeFunction<[account: ContractIdInput], void>;
1277
+ remove_session_tier: InvokeFunction<[account: ContractIdInput], void>;
1278
+ remove_ticket: InvokeFunction<[account: ContractIdInput], void>;
1279
+ remove_tier: InvokeFunction<[tier_id: BigNumberish, version: BigNumberish], void>;
1280
+ remove_tier_disabled: InvokeFunction<[tier_id: BigNumberish], void>;
1281
+ remove_turbo_terms: InvokeFunction<[tier_id: BigNumberish, version: BigNumberish], void>;
1282
+ remove_user_discount: InvokeFunction<[user: IdentityInput, tier_id?: Option<BigNumberish>], void>;
1283
+ resolve_user_discount: InvokeFunction<[user: IdentityInput, tier_id: BigNumberish], Option<UserDiscountOutput>>;
1284
+ session_assets: InvokeFunction<[account: ContractIdInput], Vec<AssetIdOutput>>;
1285
+ session_books: InvokeFunction<[account: ContractIdInput], Vec<ContractIdOutput>>;
1286
+ session_turbo_terms: InvokeFunction<[account: ContractIdInput], Option<TurboTermsOutput>>;
1287
+ set_account_debt: InvokeFunction<[account: ContractIdInput, asset: AssetIdInput, value: BigNumberish], void>;
1288
+ set_asset_decimals: InvokeFunction<[asset: AssetIdInput, value: BigNumberish], void>;
1289
+ set_assets: InvokeFunction<[tier_id: BigNumberish, version: BigNumberish, values: Vec<AssetIdInput>], void>;
1290
+ set_bad_debt: InvokeFunction<[value: BigNumberish], void>;
1291
+ set_book_allowed: InvokeFunction<[tier_id: BigNumberish, version: BigNumberish, book: ContractIdInput, value: boolean], void>;
1292
+ set_book_metadata: InvokeFunction<[book: ContractIdInput, value: PropBookMetadataInput], void>;
1293
+ set_books: InvokeFunction<[tier_id: BigNumberish, version: BigNumberish, values: Vec<ContractIdInput>], void>;
1294
+ set_current_version: InvokeFunction<[tier_id: BigNumberish, value: BigNumberish], void>;
1295
+ set_debt: InvokeFunction<[account: ContractIdInput, session_id: BigNumberish, asset: AssetIdInput, value: BigNumberish], void>;
1296
+ set_debt_assets: InvokeFunction<[account: ContractIdInput, session_id: BigNumberish, values: Vec<AssetIdInput>], void>;
1297
+ set_expiry_cosigner: InvokeFunction<[cosigner: AddressInput], void>;
1298
+ set_initialized: InvokeFunction<[value: boolean], void>;
1299
+ set_liquidator: InvokeFunction<[value: IdentityInput], void>;
1300
+ set_next_session_id: InvokeFunction<[account: ContractIdInput, value: BigNumberish], void>;
1301
+ set_platform_payout: InvokeFunction<[value: IdentityInput], void>;
1302
+ set_price_feed: InvokeFunction<[value: ContractIdInput], void>;
1303
+ set_priced_assets: InvokeFunction<[values: Vec<AssetIdInput>], void>;
1304
+ set_received: InvokeFunction<[account: ContractIdInput, session_id: BigNumberish, asset: AssetIdInput, value: BigNumberish], void>;
1305
+ set_registry: InvokeFunction<[value: ContractIdInput], void>;
1306
+ set_rollover_state: InvokeFunction<[account: ContractIdInput, value: RolloverStateInput], void>;
1307
+ set_session: InvokeFunction<[account: ContractIdInput, value: SessionStateInput], void>;
1308
+ set_session_tier: InvokeFunction<[account: ContractIdInput, value: [BigNumberish, BigNumberish]], void>;
1309
+ set_ticket: InvokeFunction<[account: ContractIdInput, value: BigNumberish], void>;
1310
+ set_tier: InvokeFunction<[tier_id: BigNumberish, version: BigNumberish, value: TierParamsInput], void>;
1311
+ set_tier_disabled: InvokeFunction<[tier_id: BigNumberish, value: boolean], void>;
1312
+ set_tier_enabled: InvokeFunction<[tier_id: BigNumberish, enabled: boolean], void>;
1313
+ set_turbo_terms: InvokeFunction<[tier_id: BigNumberish, version: BigNumberish, value: TurboTermsInput], void>;
1314
+ set_user_discount: InvokeFunction<[user: IdentityInput, tier_id?: Option<BigNumberish>, discount?: Option<UserDiscountInput>], void>;
1315
+ tier_assets: InvokeFunction<[tier_id: BigNumberish, version: BigNumberish], Vec<AssetIdOutput>>;
1316
+ tier_books: InvokeFunction<[tier_id: BigNumberish, version: BigNumberish], Vec<ContractIdOutput>>;
1317
+ };
1318
+ constructor(id: string | Address, accountOrProvider: Account | Provider);
1319
+ }
1320
+ //# sourceMappingURL=PropMarginPoolMock.d.ts.map