@wildcatfi/wildcat-sdk 2.0.82 → 3.0.1

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 (130) hide show
  1. package/dist/access/access-control.d.ts +67 -0
  2. package/dist/access/access-control.d.ts.map +1 -0
  3. package/dist/access/access-control.js +176 -0
  4. package/dist/access/access-control.js.map +1 -0
  5. package/dist/access/fixed-term.d.ts +73 -0
  6. package/dist/access/fixed-term.d.ts.map +1 -0
  7. package/dist/access/fixed-term.js +179 -0
  8. package/dist/access/fixed-term.js.map +1 -0
  9. package/dist/access/index.d.ts +13 -0
  10. package/dist/access/index.d.ts.map +1 -0
  11. package/dist/access/index.js +47 -0
  12. package/dist/access/index.js.map +1 -0
  13. package/dist/access/utils.d.ts +3 -0
  14. package/dist/access/utils.d.ts.map +1 -0
  15. package/dist/access/utils.js +24 -0
  16. package/dist/access/utils.js.map +1 -0
  17. package/dist/access/validation.d.ts +20 -0
  18. package/dist/access/validation.d.ts.map +1 -0
  19. package/dist/access/validation.js +12 -0
  20. package/dist/access/validation.js.map +1 -0
  21. package/dist/{account.d.ts → account/index.d.ts} +58 -83
  22. package/dist/account/index.d.ts.map +1 -0
  23. package/dist/{account.js → account/index.js} +346 -149
  24. package/dist/account/index.js.map +1 -0
  25. package/dist/account/validation.d.ts +88 -0
  26. package/dist/account/validation.d.ts.map +1 -0
  27. package/dist/account/validation.js +61 -0
  28. package/dist/account/validation.js.map +1 -0
  29. package/dist/constants.d.ts +7 -2
  30. package/dist/constants.d.ts.map +1 -1
  31. package/dist/constants.js +27 -2
  32. package/dist/constants.js.map +1 -1
  33. package/dist/controller.d.ts +1 -0
  34. package/dist/controller.d.ts.map +1 -1
  35. package/dist/controller.js +1 -0
  36. package/dist/controller.js.map +1 -1
  37. package/dist/gql/getAuthorizedLendersByMarket.js +1 -1
  38. package/dist/gql/getAuthorizedLendersByMarket.js.map +1 -1
  39. package/dist/gql/getMarketsForBorrower.d.ts.map +1 -1
  40. package/dist/gql/getMarketsForBorrower.js +1 -5
  41. package/dist/gql/getMarketsForBorrower.js.map +1 -1
  42. package/dist/gql/graphql.d.ts +5923 -1369
  43. package/dist/gql/graphql.d.ts.map +1 -1
  44. package/dist/gql/graphql.js +1289 -29
  45. package/dist/gql/graphql.js.map +1 -1
  46. package/dist/hooks/useMarketsForBorrower.js +1 -1
  47. package/dist/hooks/useMarketsForBorrower.js.map +1 -1
  48. package/dist/market.d.ts +38 -22
  49. package/dist/market.d.ts.map +1 -1
  50. package/dist/market.js +299 -101
  51. package/dist/market.js.map +1 -1
  52. package/dist/mockerc20factory.d.ts +1 -0
  53. package/dist/mockerc20factory.d.ts.map +1 -1
  54. package/dist/mockerc20factory.js +1 -0
  55. package/dist/mockerc20factory.js.map +1 -1
  56. package/dist/token.d.ts +1 -0
  57. package/dist/token.d.ts.map +1 -1
  58. package/dist/token.js +1 -0
  59. package/dist/token.js.map +1 -1
  60. package/dist/typechain/AccountQuery.d.ts +1 -1
  61. package/dist/typechain/AccountQuery.d.ts.map +1 -1
  62. package/dist/typechain/AccountsQuery.d.ts +1 -1
  63. package/dist/typechain/AccountsQuery.d.ts.map +1 -1
  64. package/dist/typechain/HooksFactory.d.ts +593 -0
  65. package/dist/typechain/HooksFactory.d.ts.map +1 -0
  66. package/dist/typechain/HooksFactory.js +3 -0
  67. package/dist/typechain/HooksFactory.js.map +1 -0
  68. package/dist/typechain/IFixedTermHooks.d.ts +1016 -0
  69. package/dist/typechain/IFixedTermHooks.d.ts.map +1 -0
  70. package/dist/typechain/IFixedTermHooks.js +3 -0
  71. package/dist/typechain/IFixedTermHooks.js.map +1 -0
  72. package/dist/typechain/IOpenTermHooks.d.ts +971 -0
  73. package/dist/typechain/IOpenTermHooks.d.ts.map +1 -0
  74. package/dist/typechain/IOpenTermHooks.js +3 -0
  75. package/dist/typechain/IOpenTermHooks.js.map +1 -0
  76. package/dist/typechain/MarketLens.d.ts +12 -115
  77. package/dist/typechain/MarketLens.d.ts.map +1 -1
  78. package/dist/typechain/MarketLensV2.d.ts +692 -0
  79. package/dist/typechain/MarketLensV2.d.ts.map +1 -0
  80. package/dist/typechain/MarketLensV2.js +3 -0
  81. package/dist/typechain/MarketLensV2.js.map +1 -0
  82. package/dist/typechain/WildcatMarket.d.ts +3 -17
  83. package/dist/typechain/WildcatMarket.d.ts.map +1 -1
  84. package/dist/typechain/WildcatMarketController.d.ts +2 -28
  85. package/dist/typechain/WildcatMarketController.d.ts.map +1 -1
  86. package/dist/typechain/WildcatMarketControllerFactory.d.ts +2 -29
  87. package/dist/typechain/WildcatMarketControllerFactory.d.ts.map +1 -1
  88. package/dist/typechain/WildcatMarketV2.d.ts +1086 -0
  89. package/dist/typechain/WildcatMarketV2.d.ts.map +1 -0
  90. package/dist/typechain/WildcatMarketV2.js +3 -0
  91. package/dist/typechain/WildcatMarketV2.js.map +1 -0
  92. package/dist/typechain/factories/HooksFactory__factory.d.ts +902 -0
  93. package/dist/typechain/factories/HooksFactory__factory.d.ts.map +1 -0
  94. package/dist/typechain/factories/HooksFactory__factory.js +1168 -0
  95. package/dist/typechain/factories/HooksFactory__factory.js.map +1 -0
  96. package/dist/typechain/factories/IFixedTermHooks__factory.d.ts +1884 -0
  97. package/dist/typechain/factories/IFixedTermHooks__factory.d.ts.map +1 -0
  98. package/dist/typechain/factories/IFixedTermHooks__factory.js +2410 -0
  99. package/dist/typechain/factories/IFixedTermHooks__factory.js.map +1 -0
  100. package/dist/typechain/factories/IOpenTermHooks__factory.d.ts +1781 -0
  101. package/dist/typechain/factories/IOpenTermHooks__factory.d.ts.map +1 -0
  102. package/dist/typechain/factories/IOpenTermHooks__factory.js +2280 -0
  103. package/dist/typechain/factories/IOpenTermHooks__factory.js.map +1 -0
  104. package/dist/typechain/factories/MarketLensV2__factory.d.ts +5786 -0
  105. package/dist/typechain/factories/MarketLensV2__factory.d.ts.map +1 -0
  106. package/dist/typechain/factories/MarketLensV2__factory.js +7396 -0
  107. package/dist/typechain/factories/MarketLensV2__factory.js.map +1 -0
  108. package/dist/typechain/factories/WildcatMarketV2__factory.d.ts +1304 -0
  109. package/dist/typechain/factories/WildcatMarketV2__factory.d.ts.map +1 -0
  110. package/dist/typechain/factories/WildcatMarketV2__factory.js +1680 -0
  111. package/dist/typechain/factories/WildcatMarketV2__factory.js.map +1 -0
  112. package/dist/typechain/factories/index.d.ts +5 -0
  113. package/dist/typechain/factories/index.d.ts.map +1 -1
  114. package/dist/typechain/factories/index.js +11 -1
  115. package/dist/typechain/factories/index.js.map +1 -1
  116. package/dist/typechain/index.d.ts +15 -1
  117. package/dist/typechain/index.d.ts.map +1 -1
  118. package/dist/typechain/index.js +11 -1
  119. package/dist/typechain/index.js.map +1 -1
  120. package/dist/types.d.ts +138 -1
  121. package/dist/types.d.ts.map +1 -1
  122. package/dist/types.js +73 -3
  123. package/dist/types.js.map +1 -1
  124. package/dist/utils/type-parsers.d.ts +9 -2
  125. package/dist/utils/type-parsers.d.ts.map +1 -1
  126. package/dist/utils/type-parsers.js +64 -1
  127. package/dist/utils/type-parsers.js.map +1 -1
  128. package/package.json +4 -4
  129. package/dist/account.d.ts.map +0 -1
  130. package/dist/account.js.map +0 -1
@@ -0,0 +1,2280 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IOpenTermHooks__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "AnnualInterestBipsOutOfBounds",
12
+ type: "error",
13
+ },
14
+ {
15
+ inputs: [],
16
+ name: "CallerNotBorrower",
17
+ type: "error",
18
+ },
19
+ {
20
+ inputs: [],
21
+ name: "CallerNotFactory",
22
+ type: "error",
23
+ },
24
+ {
25
+ inputs: [],
26
+ name: "CreateRoleProviderFailed",
27
+ type: "error",
28
+ },
29
+ {
30
+ inputs: [],
31
+ name: "DelinquencyFeeBipsOutOfBounds",
32
+ type: "error",
33
+ },
34
+ {
35
+ inputs: [],
36
+ name: "DelinquencyGracePeriodOutOfBounds",
37
+ type: "error",
38
+ },
39
+ {
40
+ inputs: [],
41
+ name: "DepositBelowMinimum",
42
+ type: "error",
43
+ },
44
+ {
45
+ inputs: [],
46
+ name: "ForceBuyBacksDisabled",
47
+ type: "error",
48
+ },
49
+ {
50
+ inputs: [],
51
+ name: "GrantedCredentialExpired",
52
+ type: "error",
53
+ },
54
+ {
55
+ inputs: [],
56
+ name: "InvalidArrayLength",
57
+ type: "error",
58
+ },
59
+ {
60
+ inputs: [],
61
+ name: "InvalidCredentialReturned",
62
+ type: "error",
63
+ },
64
+ {
65
+ inputs: [],
66
+ name: "NotApprovedLender",
67
+ type: "error",
68
+ },
69
+ {
70
+ inputs: [],
71
+ name: "NotHookedMarket",
72
+ type: "error",
73
+ },
74
+ {
75
+ inputs: [],
76
+ name: "ProviderCanNotReplaceCredential",
77
+ type: "error",
78
+ },
79
+ {
80
+ inputs: [],
81
+ name: "ProviderCanNotRevokeCredential",
82
+ type: "error",
83
+ },
84
+ {
85
+ inputs: [],
86
+ name: "ProviderNotFound",
87
+ type: "error",
88
+ },
89
+ {
90
+ inputs: [],
91
+ name: "ReserveRatioBipsOutOfBounds",
92
+ type: "error",
93
+ },
94
+ {
95
+ inputs: [],
96
+ name: "TransfersDisabled",
97
+ type: "error",
98
+ },
99
+ {
100
+ inputs: [],
101
+ name: "WithdrawalBatchDurationOutOfBounds",
102
+ type: "error",
103
+ },
104
+ {
105
+ anonymous: false,
106
+ inputs: [
107
+ {
108
+ indexed: true,
109
+ internalType: "address",
110
+ name: "providerAddress",
111
+ type: "address",
112
+ },
113
+ {
114
+ indexed: true,
115
+ internalType: "address",
116
+ name: "accountAddress",
117
+ type: "address",
118
+ },
119
+ {
120
+ indexed: false,
121
+ internalType: "uint32",
122
+ name: "credentialTimestamp",
123
+ type: "uint32",
124
+ },
125
+ ],
126
+ name: "AccountAccessGranted",
127
+ type: "event",
128
+ },
129
+ {
130
+ anonymous: false,
131
+ inputs: [
132
+ {
133
+ indexed: true,
134
+ internalType: "address",
135
+ name: "accountAddress",
136
+ type: "address",
137
+ },
138
+ ],
139
+ name: "AccountAccessRevoked",
140
+ type: "event",
141
+ },
142
+ {
143
+ anonymous: false,
144
+ inputs: [
145
+ {
146
+ indexed: true,
147
+ internalType: "address",
148
+ name: "accountAddress",
149
+ type: "address",
150
+ },
151
+ ],
152
+ name: "AccountBlockedFromDeposits",
153
+ type: "event",
154
+ },
155
+ {
156
+ anonymous: false,
157
+ inputs: [
158
+ {
159
+ indexed: true,
160
+ internalType: "address",
161
+ name: "market",
162
+ type: "address",
163
+ },
164
+ {
165
+ indexed: true,
166
+ internalType: "address",
167
+ name: "accountAddress",
168
+ type: "address",
169
+ },
170
+ ],
171
+ name: "AccountMadeFirstDeposit",
172
+ type: "event",
173
+ },
174
+ {
175
+ anonymous: false,
176
+ inputs: [
177
+ {
178
+ indexed: true,
179
+ internalType: "address",
180
+ name: "accountAddress",
181
+ type: "address",
182
+ },
183
+ ],
184
+ name: "AccountUnblockedFromDeposits",
185
+ type: "event",
186
+ },
187
+ {
188
+ anonymous: false,
189
+ inputs: [
190
+ {
191
+ indexed: false,
192
+ internalType: "address",
193
+ name: "market",
194
+ type: "address",
195
+ },
196
+ ],
197
+ name: "DisabledForceBuyBacks",
198
+ type: "event",
199
+ },
200
+ {
201
+ anonymous: false,
202
+ inputs: [
203
+ {
204
+ indexed: false,
205
+ internalType: "address",
206
+ name: "market",
207
+ type: "address",
208
+ },
209
+ {
210
+ indexed: false,
211
+ internalType: "uint128",
212
+ name: "newMinimumDeposit",
213
+ type: "uint128",
214
+ },
215
+ ],
216
+ name: "MinimumDepositUpdated",
217
+ type: "event",
218
+ },
219
+ {
220
+ anonymous: false,
221
+ inputs: [
222
+ {
223
+ indexed: false,
224
+ internalType: "string",
225
+ name: "name",
226
+ type: "string",
227
+ },
228
+ ],
229
+ name: "NameUpdated",
230
+ type: "event",
231
+ },
232
+ {
233
+ anonymous: false,
234
+ inputs: [
235
+ {
236
+ indexed: true,
237
+ internalType: "address",
238
+ name: "providerAddress",
239
+ type: "address",
240
+ },
241
+ {
242
+ indexed: false,
243
+ internalType: "uint32",
244
+ name: "timeToLive",
245
+ type: "uint32",
246
+ },
247
+ {
248
+ indexed: false,
249
+ internalType: "uint24",
250
+ name: "pullProviderIndex",
251
+ type: "uint24",
252
+ },
253
+ {
254
+ indexed: false,
255
+ internalType: "uint24",
256
+ name: "pushProviderIndex",
257
+ type: "uint24",
258
+ },
259
+ ],
260
+ name: "RoleProviderAdded",
261
+ type: "event",
262
+ },
263
+ {
264
+ anonymous: false,
265
+ inputs: [
266
+ {
267
+ indexed: true,
268
+ internalType: "address",
269
+ name: "providerAddress",
270
+ type: "address",
271
+ },
272
+ {
273
+ indexed: false,
274
+ internalType: "uint24",
275
+ name: "pullProviderIndex",
276
+ type: "uint24",
277
+ },
278
+ {
279
+ indexed: false,
280
+ internalType: "uint24",
281
+ name: "pushProviderIndex",
282
+ type: "uint24",
283
+ },
284
+ ],
285
+ name: "RoleProviderRemoved",
286
+ type: "event",
287
+ },
288
+ {
289
+ anonymous: false,
290
+ inputs: [
291
+ {
292
+ indexed: true,
293
+ internalType: "address",
294
+ name: "providerAddress",
295
+ type: "address",
296
+ },
297
+ {
298
+ indexed: false,
299
+ internalType: "uint32",
300
+ name: "timeToLive",
301
+ type: "uint32",
302
+ },
303
+ {
304
+ indexed: false,
305
+ internalType: "uint24",
306
+ name: "pullProviderIndex",
307
+ type: "uint24",
308
+ },
309
+ {
310
+ indexed: false,
311
+ internalType: "uint24",
312
+ name: "pushProviderIndex",
313
+ type: "uint24",
314
+ },
315
+ ],
316
+ name: "RoleProviderUpdated",
317
+ type: "event",
318
+ },
319
+ {
320
+ anonymous: false,
321
+ inputs: [
322
+ {
323
+ indexed: true,
324
+ internalType: "address",
325
+ name: "market",
326
+ type: "address",
327
+ },
328
+ {
329
+ indexed: false,
330
+ internalType: "uint256",
331
+ name: "originalReserveRatioBips",
332
+ type: "uint256",
333
+ },
334
+ {
335
+ indexed: false,
336
+ internalType: "uint256",
337
+ name: "temporaryReserveRatioBips",
338
+ type: "uint256",
339
+ },
340
+ {
341
+ indexed: false,
342
+ internalType: "uint256",
343
+ name: "temporaryReserveRatioExpiry",
344
+ type: "uint256",
345
+ },
346
+ ],
347
+ name: "TemporaryExcessReserveRatioActivated",
348
+ type: "event",
349
+ },
350
+ {
351
+ anonymous: false,
352
+ inputs: [
353
+ {
354
+ indexed: true,
355
+ internalType: "address",
356
+ name: "market",
357
+ type: "address",
358
+ },
359
+ ],
360
+ name: "TemporaryExcessReserveRatioCanceled",
361
+ type: "event",
362
+ },
363
+ {
364
+ anonymous: false,
365
+ inputs: [
366
+ {
367
+ indexed: true,
368
+ internalType: "address",
369
+ name: "market",
370
+ type: "address",
371
+ },
372
+ ],
373
+ name: "TemporaryExcessReserveRatioExpired",
374
+ type: "event",
375
+ },
376
+ {
377
+ anonymous: false,
378
+ inputs: [
379
+ {
380
+ indexed: true,
381
+ internalType: "address",
382
+ name: "market",
383
+ type: "address",
384
+ },
385
+ {
386
+ indexed: false,
387
+ internalType: "uint256",
388
+ name: "originalReserveRatioBips",
389
+ type: "uint256",
390
+ },
391
+ {
392
+ indexed: false,
393
+ internalType: "uint256",
394
+ name: "temporaryReserveRatioBips",
395
+ type: "uint256",
396
+ },
397
+ {
398
+ indexed: false,
399
+ internalType: "uint256",
400
+ name: "temporaryReserveRatioExpiry",
401
+ type: "uint256",
402
+ },
403
+ ],
404
+ name: "TemporaryExcessReserveRatioUpdated",
405
+ type: "event",
406
+ },
407
+ {
408
+ inputs: [
409
+ {
410
+ internalType: "address",
411
+ name: "providerAddress",
412
+ type: "address",
413
+ },
414
+ {
415
+ internalType: "uint32",
416
+ name: "timeToLive",
417
+ type: "uint32",
418
+ },
419
+ ],
420
+ name: "addRoleProvider",
421
+ outputs: [],
422
+ stateMutability: "nonpayable",
423
+ type: "function",
424
+ },
425
+ {
426
+ inputs: [
427
+ {
428
+ internalType: "address",
429
+ name: "account",
430
+ type: "address",
431
+ },
432
+ ],
433
+ name: "blockFromDeposits",
434
+ outputs: [],
435
+ stateMutability: "nonpayable",
436
+ type: "function",
437
+ },
438
+ {
439
+ inputs: [],
440
+ name: "borrower",
441
+ outputs: [
442
+ {
443
+ internalType: "address",
444
+ name: "",
445
+ type: "address",
446
+ },
447
+ ],
448
+ stateMutability: "view",
449
+ type: "function",
450
+ },
451
+ {
452
+ inputs: [],
453
+ name: "config",
454
+ outputs: [
455
+ {
456
+ internalType: "HooksDeploymentConfig",
457
+ name: "param0",
458
+ type: "uint256",
459
+ },
460
+ ],
461
+ stateMutability: "view",
462
+ type: "function",
463
+ },
464
+ {
465
+ inputs: [
466
+ {
467
+ internalType: "address",
468
+ name: "providerFactory",
469
+ type: "address",
470
+ },
471
+ {
472
+ internalType: "uint32",
473
+ name: "timeToLive",
474
+ type: "uint32",
475
+ },
476
+ {
477
+ internalType: "bytes",
478
+ name: "data",
479
+ type: "bytes",
480
+ },
481
+ ],
482
+ name: "createRoleProvider",
483
+ outputs: [],
484
+ stateMutability: "nonpayable",
485
+ type: "function",
486
+ },
487
+ {
488
+ inputs: [
489
+ {
490
+ internalType: "address",
491
+ name: "market",
492
+ type: "address",
493
+ },
494
+ ],
495
+ name: "disableForceBuyBacks",
496
+ outputs: [],
497
+ stateMutability: "nonpayable",
498
+ type: "function",
499
+ },
500
+ {
501
+ inputs: [],
502
+ name: "factory",
503
+ outputs: [
504
+ {
505
+ internalType: "address",
506
+ name: "",
507
+ type: "address",
508
+ },
509
+ ],
510
+ stateMutability: "view",
511
+ type: "function",
512
+ },
513
+ {
514
+ inputs: [
515
+ {
516
+ internalType: "address",
517
+ name: "marketAddress",
518
+ type: "address",
519
+ },
520
+ ],
521
+ name: "getHookedMarket",
522
+ outputs: [
523
+ {
524
+ components: [
525
+ {
526
+ internalType: "bool",
527
+ name: "isHooked",
528
+ type: "bool",
529
+ },
530
+ {
531
+ internalType: "bool",
532
+ name: "transferRequiresAccess",
533
+ type: "bool",
534
+ },
535
+ {
536
+ internalType: "bool",
537
+ name: "depositRequiresAccess",
538
+ type: "bool",
539
+ },
540
+ {
541
+ internalType: "uint128",
542
+ name: "minimumDeposit",
543
+ type: "uint128",
544
+ },
545
+ {
546
+ internalType: "bool",
547
+ name: "transfersDisabled",
548
+ type: "bool",
549
+ },
550
+ {
551
+ internalType: "bool",
552
+ name: "allowForceBuyBacks",
553
+ type: "bool",
554
+ },
555
+ ],
556
+ internalType: "struct HookedMarket",
557
+ name: "param0",
558
+ type: "tuple",
559
+ },
560
+ ],
561
+ stateMutability: "view",
562
+ type: "function",
563
+ },
564
+ {
565
+ inputs: [
566
+ {
567
+ internalType: "address[]",
568
+ name: "marketAddresses",
569
+ type: "address[]",
570
+ },
571
+ ],
572
+ name: "getHookedMarkets",
573
+ outputs: [
574
+ {
575
+ components: [
576
+ {
577
+ internalType: "bool",
578
+ name: "isHooked",
579
+ type: "bool",
580
+ },
581
+ {
582
+ internalType: "bool",
583
+ name: "transferRequiresAccess",
584
+ type: "bool",
585
+ },
586
+ {
587
+ internalType: "bool",
588
+ name: "depositRequiresAccess",
589
+ type: "bool",
590
+ },
591
+ {
592
+ internalType: "uint128",
593
+ name: "minimumDeposit",
594
+ type: "uint128",
595
+ },
596
+ {
597
+ internalType: "bool",
598
+ name: "transfersDisabled",
599
+ type: "bool",
600
+ },
601
+ {
602
+ internalType: "bool",
603
+ name: "allowForceBuyBacks",
604
+ type: "bool",
605
+ },
606
+ ],
607
+ internalType: "struct HookedMarket[]",
608
+ name: "hookedMarkets",
609
+ type: "tuple[]",
610
+ },
611
+ ],
612
+ stateMutability: "view",
613
+ type: "function",
614
+ },
615
+ {
616
+ inputs: [
617
+ {
618
+ internalType: "address",
619
+ name: "accountAddress",
620
+ type: "address",
621
+ },
622
+ ],
623
+ name: "getLenderStatus",
624
+ outputs: [
625
+ {
626
+ components: [
627
+ {
628
+ internalType: "bool",
629
+ name: "isBlockedFromDeposits",
630
+ type: "bool",
631
+ },
632
+ {
633
+ internalType: "address",
634
+ name: "lastProvider",
635
+ type: "address",
636
+ },
637
+ {
638
+ internalType: "bool",
639
+ name: "canRefresh",
640
+ type: "bool",
641
+ },
642
+ {
643
+ internalType: "uint32",
644
+ name: "lastApprovalTimestamp",
645
+ type: "uint32",
646
+ },
647
+ ],
648
+ internalType: "struct LenderStatus",
649
+ name: "status",
650
+ type: "tuple",
651
+ },
652
+ ],
653
+ stateMutability: "view",
654
+ type: "function",
655
+ },
656
+ {
657
+ inputs: [],
658
+ name: "getParameterConstraints",
659
+ outputs: [
660
+ {
661
+ components: [
662
+ {
663
+ internalType: "uint32",
664
+ name: "minimumDelinquencyGracePeriod",
665
+ type: "uint32",
666
+ },
667
+ {
668
+ internalType: "uint32",
669
+ name: "maximumDelinquencyGracePeriod",
670
+ type: "uint32",
671
+ },
672
+ {
673
+ internalType: "uint16",
674
+ name: "minimumReserveRatioBips",
675
+ type: "uint16",
676
+ },
677
+ {
678
+ internalType: "uint16",
679
+ name: "maximumReserveRatioBips",
680
+ type: "uint16",
681
+ },
682
+ {
683
+ internalType: "uint16",
684
+ name: "minimumDelinquencyFeeBips",
685
+ type: "uint16",
686
+ },
687
+ {
688
+ internalType: "uint16",
689
+ name: "maximumDelinquencyFeeBips",
690
+ type: "uint16",
691
+ },
692
+ {
693
+ internalType: "uint32",
694
+ name: "minimumWithdrawalBatchDuration",
695
+ type: "uint32",
696
+ },
697
+ {
698
+ internalType: "uint32",
699
+ name: "maximumWithdrawalBatchDuration",
700
+ type: "uint32",
701
+ },
702
+ {
703
+ internalType: "uint16",
704
+ name: "minimumAnnualInterestBips",
705
+ type: "uint16",
706
+ },
707
+ {
708
+ internalType: "uint16",
709
+ name: "maximumAnnualInterestBips",
710
+ type: "uint16",
711
+ },
712
+ ],
713
+ internalType: "struct MarketParameterConstraints",
714
+ name: "constraints",
715
+ type: "tuple",
716
+ },
717
+ ],
718
+ stateMutability: "pure",
719
+ type: "function",
720
+ },
721
+ {
722
+ inputs: [
723
+ {
724
+ internalType: "address",
725
+ name: "accountAddress",
726
+ type: "address",
727
+ },
728
+ ],
729
+ name: "getPreviousLenderStatus",
730
+ outputs: [
731
+ {
732
+ components: [
733
+ {
734
+ internalType: "bool",
735
+ name: "isBlockedFromDeposits",
736
+ type: "bool",
737
+ },
738
+ {
739
+ internalType: "address",
740
+ name: "lastProvider",
741
+ type: "address",
742
+ },
743
+ {
744
+ internalType: "bool",
745
+ name: "canRefresh",
746
+ type: "bool",
747
+ },
748
+ {
749
+ internalType: "uint32",
750
+ name: "lastApprovalTimestamp",
751
+ type: "uint32",
752
+ },
753
+ ],
754
+ internalType: "struct LenderStatus",
755
+ name: "status",
756
+ type: "tuple",
757
+ },
758
+ ],
759
+ stateMutability: "view",
760
+ type: "function",
761
+ },
762
+ {
763
+ inputs: [],
764
+ name: "getPullProviders",
765
+ outputs: [
766
+ {
767
+ internalType: "RoleProvider[]",
768
+ name: "param0",
769
+ type: "uint256[]",
770
+ },
771
+ ],
772
+ stateMutability: "view",
773
+ type: "function",
774
+ },
775
+ {
776
+ inputs: [],
777
+ name: "getPushProviders",
778
+ outputs: [
779
+ {
780
+ internalType: "RoleProvider[]",
781
+ name: "param0",
782
+ type: "uint256[]",
783
+ },
784
+ ],
785
+ stateMutability: "view",
786
+ type: "function",
787
+ },
788
+ {
789
+ inputs: [
790
+ {
791
+ internalType: "address",
792
+ name: "providerAddress",
793
+ type: "address",
794
+ },
795
+ ],
796
+ name: "getRoleProvider",
797
+ outputs: [
798
+ {
799
+ internalType: "RoleProvider",
800
+ name: "param0",
801
+ type: "uint256",
802
+ },
803
+ ],
804
+ stateMutability: "view",
805
+ type: "function",
806
+ },
807
+ {
808
+ inputs: [
809
+ {
810
+ internalType: "address",
811
+ name: "account",
812
+ type: "address",
813
+ },
814
+ {
815
+ internalType: "uint32",
816
+ name: "roleGrantedTimestamp",
817
+ type: "uint32",
818
+ },
819
+ ],
820
+ name: "grantRole",
821
+ outputs: [],
822
+ stateMutability: "nonpayable",
823
+ type: "function",
824
+ },
825
+ {
826
+ inputs: [
827
+ {
828
+ internalType: "address[]",
829
+ name: "accounts",
830
+ type: "address[]",
831
+ },
832
+ {
833
+ internalType: "uint32[]",
834
+ name: "roleGrantedTimestamps",
835
+ type: "uint32[]",
836
+ },
837
+ ],
838
+ name: "grantRoles",
839
+ outputs: [],
840
+ stateMutability: "nonpayable",
841
+ type: "function",
842
+ },
843
+ {
844
+ inputs: [
845
+ {
846
+ internalType: "address",
847
+ name: "key0",
848
+ type: "address",
849
+ },
850
+ {
851
+ internalType: "address",
852
+ name: "key1",
853
+ type: "address",
854
+ },
855
+ ],
856
+ name: "isKnownLenderOnMarket",
857
+ outputs: [
858
+ {
859
+ internalType: "bool",
860
+ name: "",
861
+ type: "bool",
862
+ },
863
+ ],
864
+ stateMutability: "view",
865
+ type: "function",
866
+ },
867
+ {
868
+ inputs: [],
869
+ name: "name",
870
+ outputs: [
871
+ {
872
+ internalType: "string",
873
+ name: "",
874
+ type: "string",
875
+ },
876
+ ],
877
+ stateMutability: "view",
878
+ type: "function",
879
+ },
880
+ {
881
+ inputs: [
882
+ {
883
+ internalType: "uint256",
884
+ name: "param0",
885
+ type: "uint256",
886
+ },
887
+ {
888
+ components: [
889
+ {
890
+ internalType: "bool",
891
+ name: "isClosed",
892
+ type: "bool",
893
+ },
894
+ {
895
+ internalType: "uint128",
896
+ name: "maxTotalSupply",
897
+ type: "uint128",
898
+ },
899
+ {
900
+ internalType: "uint128",
901
+ name: "accruedProtocolFees",
902
+ type: "uint128",
903
+ },
904
+ {
905
+ internalType: "uint128",
906
+ name: "normalizedUnclaimedWithdrawals",
907
+ type: "uint128",
908
+ },
909
+ {
910
+ internalType: "uint104",
911
+ name: "scaledTotalSupply",
912
+ type: "uint104",
913
+ },
914
+ {
915
+ internalType: "uint104",
916
+ name: "scaledPendingWithdrawals",
917
+ type: "uint104",
918
+ },
919
+ {
920
+ internalType: "uint32",
921
+ name: "pendingWithdrawalExpiry",
922
+ type: "uint32",
923
+ },
924
+ {
925
+ internalType: "bool",
926
+ name: "isDelinquent",
927
+ type: "bool",
928
+ },
929
+ {
930
+ internalType: "uint32",
931
+ name: "timeDelinquent",
932
+ type: "uint32",
933
+ },
934
+ {
935
+ internalType: "uint16",
936
+ name: "protocolFeeBips",
937
+ type: "uint16",
938
+ },
939
+ {
940
+ internalType: "uint16",
941
+ name: "annualInterestBips",
942
+ type: "uint16",
943
+ },
944
+ {
945
+ internalType: "uint16",
946
+ name: "reserveRatioBips",
947
+ type: "uint16",
948
+ },
949
+ {
950
+ internalType: "uint112",
951
+ name: "scaleFactor",
952
+ type: "uint112",
953
+ },
954
+ {
955
+ internalType: "uint32",
956
+ name: "lastInterestAccruedTimestamp",
957
+ type: "uint32",
958
+ },
959
+ ],
960
+ internalType: "struct MarketStateV2",
961
+ name: "param1",
962
+ type: "tuple",
963
+ },
964
+ {
965
+ internalType: "bytes",
966
+ name: "param2",
967
+ type: "bytes",
968
+ },
969
+ ],
970
+ name: "onBorrow",
971
+ outputs: [],
972
+ stateMutability: "nonpayable",
973
+ type: "function",
974
+ },
975
+ {
976
+ inputs: [
977
+ {
978
+ components: [
979
+ {
980
+ internalType: "bool",
981
+ name: "isClosed",
982
+ type: "bool",
983
+ },
984
+ {
985
+ internalType: "uint128",
986
+ name: "maxTotalSupply",
987
+ type: "uint128",
988
+ },
989
+ {
990
+ internalType: "uint128",
991
+ name: "accruedProtocolFees",
992
+ type: "uint128",
993
+ },
994
+ {
995
+ internalType: "uint128",
996
+ name: "normalizedUnclaimedWithdrawals",
997
+ type: "uint128",
998
+ },
999
+ {
1000
+ internalType: "uint104",
1001
+ name: "scaledTotalSupply",
1002
+ type: "uint104",
1003
+ },
1004
+ {
1005
+ internalType: "uint104",
1006
+ name: "scaledPendingWithdrawals",
1007
+ type: "uint104",
1008
+ },
1009
+ {
1010
+ internalType: "uint32",
1011
+ name: "pendingWithdrawalExpiry",
1012
+ type: "uint32",
1013
+ },
1014
+ {
1015
+ internalType: "bool",
1016
+ name: "isDelinquent",
1017
+ type: "bool",
1018
+ },
1019
+ {
1020
+ internalType: "uint32",
1021
+ name: "timeDelinquent",
1022
+ type: "uint32",
1023
+ },
1024
+ {
1025
+ internalType: "uint16",
1026
+ name: "protocolFeeBips",
1027
+ type: "uint16",
1028
+ },
1029
+ {
1030
+ internalType: "uint16",
1031
+ name: "annualInterestBips",
1032
+ type: "uint16",
1033
+ },
1034
+ {
1035
+ internalType: "uint16",
1036
+ name: "reserveRatioBips",
1037
+ type: "uint16",
1038
+ },
1039
+ {
1040
+ internalType: "uint112",
1041
+ name: "scaleFactor",
1042
+ type: "uint112",
1043
+ },
1044
+ {
1045
+ internalType: "uint32",
1046
+ name: "lastInterestAccruedTimestamp",
1047
+ type: "uint32",
1048
+ },
1049
+ ],
1050
+ internalType: "struct MarketStateV2",
1051
+ name: "param0",
1052
+ type: "tuple",
1053
+ },
1054
+ {
1055
+ internalType: "bytes",
1056
+ name: "param1",
1057
+ type: "bytes",
1058
+ },
1059
+ ],
1060
+ name: "onCloseMarket",
1061
+ outputs: [],
1062
+ stateMutability: "nonpayable",
1063
+ type: "function",
1064
+ },
1065
+ {
1066
+ inputs: [
1067
+ {
1068
+ internalType: "address",
1069
+ name: "deployer",
1070
+ type: "address",
1071
+ },
1072
+ {
1073
+ internalType: "address",
1074
+ name: "marketAddress",
1075
+ type: "address",
1076
+ },
1077
+ {
1078
+ components: [
1079
+ {
1080
+ internalType: "address",
1081
+ name: "asset",
1082
+ type: "address",
1083
+ },
1084
+ {
1085
+ internalType: "string",
1086
+ name: "namePrefix",
1087
+ type: "string",
1088
+ },
1089
+ {
1090
+ internalType: "string",
1091
+ name: "symbolPrefix",
1092
+ type: "string",
1093
+ },
1094
+ {
1095
+ internalType: "uint128",
1096
+ name: "maxTotalSupply",
1097
+ type: "uint128",
1098
+ },
1099
+ {
1100
+ internalType: "uint16",
1101
+ name: "annualInterestBips",
1102
+ type: "uint16",
1103
+ },
1104
+ {
1105
+ internalType: "uint16",
1106
+ name: "delinquencyFeeBips",
1107
+ type: "uint16",
1108
+ },
1109
+ {
1110
+ internalType: "uint32",
1111
+ name: "withdrawalBatchDuration",
1112
+ type: "uint32",
1113
+ },
1114
+ {
1115
+ internalType: "uint16",
1116
+ name: "reserveRatioBips",
1117
+ type: "uint16",
1118
+ },
1119
+ {
1120
+ internalType: "uint32",
1121
+ name: "delinquencyGracePeriod",
1122
+ type: "uint32",
1123
+ },
1124
+ {
1125
+ internalType: "HooksConfig",
1126
+ name: "hooks",
1127
+ type: "uint256",
1128
+ },
1129
+ ],
1130
+ internalType: "struct DeployMarketInputsV2",
1131
+ name: "parameters",
1132
+ type: "tuple",
1133
+ },
1134
+ {
1135
+ internalType: "bytes",
1136
+ name: "extraData",
1137
+ type: "bytes",
1138
+ },
1139
+ ],
1140
+ name: "onCreateMarket",
1141
+ outputs: [
1142
+ {
1143
+ internalType: "HooksConfig",
1144
+ name: "param0",
1145
+ type: "uint256",
1146
+ },
1147
+ ],
1148
+ stateMutability: "nonpayable",
1149
+ type: "function",
1150
+ },
1151
+ {
1152
+ inputs: [
1153
+ {
1154
+ internalType: "address",
1155
+ name: "lender",
1156
+ type: "address",
1157
+ },
1158
+ {
1159
+ internalType: "uint256",
1160
+ name: "scaledAmount",
1161
+ type: "uint256",
1162
+ },
1163
+ {
1164
+ components: [
1165
+ {
1166
+ internalType: "bool",
1167
+ name: "isClosed",
1168
+ type: "bool",
1169
+ },
1170
+ {
1171
+ internalType: "uint128",
1172
+ name: "maxTotalSupply",
1173
+ type: "uint128",
1174
+ },
1175
+ {
1176
+ internalType: "uint128",
1177
+ name: "accruedProtocolFees",
1178
+ type: "uint128",
1179
+ },
1180
+ {
1181
+ internalType: "uint128",
1182
+ name: "normalizedUnclaimedWithdrawals",
1183
+ type: "uint128",
1184
+ },
1185
+ {
1186
+ internalType: "uint104",
1187
+ name: "scaledTotalSupply",
1188
+ type: "uint104",
1189
+ },
1190
+ {
1191
+ internalType: "uint104",
1192
+ name: "scaledPendingWithdrawals",
1193
+ type: "uint104",
1194
+ },
1195
+ {
1196
+ internalType: "uint32",
1197
+ name: "pendingWithdrawalExpiry",
1198
+ type: "uint32",
1199
+ },
1200
+ {
1201
+ internalType: "bool",
1202
+ name: "isDelinquent",
1203
+ type: "bool",
1204
+ },
1205
+ {
1206
+ internalType: "uint32",
1207
+ name: "timeDelinquent",
1208
+ type: "uint32",
1209
+ },
1210
+ {
1211
+ internalType: "uint16",
1212
+ name: "protocolFeeBips",
1213
+ type: "uint16",
1214
+ },
1215
+ {
1216
+ internalType: "uint16",
1217
+ name: "annualInterestBips",
1218
+ type: "uint16",
1219
+ },
1220
+ {
1221
+ internalType: "uint16",
1222
+ name: "reserveRatioBips",
1223
+ type: "uint16",
1224
+ },
1225
+ {
1226
+ internalType: "uint112",
1227
+ name: "scaleFactor",
1228
+ type: "uint112",
1229
+ },
1230
+ {
1231
+ internalType: "uint32",
1232
+ name: "lastInterestAccruedTimestamp",
1233
+ type: "uint32",
1234
+ },
1235
+ ],
1236
+ internalType: "struct MarketStateV2",
1237
+ name: "state",
1238
+ type: "tuple",
1239
+ },
1240
+ {
1241
+ internalType: "bytes",
1242
+ name: "hooksData",
1243
+ type: "bytes",
1244
+ },
1245
+ ],
1246
+ name: "onDeposit",
1247
+ outputs: [],
1248
+ stateMutability: "nonpayable",
1249
+ type: "function",
1250
+ },
1251
+ {
1252
+ inputs: [
1253
+ {
1254
+ internalType: "address",
1255
+ name: "lender",
1256
+ type: "address",
1257
+ },
1258
+ {
1259
+ internalType: "uint128",
1260
+ name: "param1",
1261
+ type: "uint128",
1262
+ },
1263
+ {
1264
+ components: [
1265
+ {
1266
+ internalType: "bool",
1267
+ name: "isClosed",
1268
+ type: "bool",
1269
+ },
1270
+ {
1271
+ internalType: "uint128",
1272
+ name: "maxTotalSupply",
1273
+ type: "uint128",
1274
+ },
1275
+ {
1276
+ internalType: "uint128",
1277
+ name: "accruedProtocolFees",
1278
+ type: "uint128",
1279
+ },
1280
+ {
1281
+ internalType: "uint128",
1282
+ name: "normalizedUnclaimedWithdrawals",
1283
+ type: "uint128",
1284
+ },
1285
+ {
1286
+ internalType: "uint104",
1287
+ name: "scaledTotalSupply",
1288
+ type: "uint104",
1289
+ },
1290
+ {
1291
+ internalType: "uint104",
1292
+ name: "scaledPendingWithdrawals",
1293
+ type: "uint104",
1294
+ },
1295
+ {
1296
+ internalType: "uint32",
1297
+ name: "pendingWithdrawalExpiry",
1298
+ type: "uint32",
1299
+ },
1300
+ {
1301
+ internalType: "bool",
1302
+ name: "isDelinquent",
1303
+ type: "bool",
1304
+ },
1305
+ {
1306
+ internalType: "uint32",
1307
+ name: "timeDelinquent",
1308
+ type: "uint32",
1309
+ },
1310
+ {
1311
+ internalType: "uint16",
1312
+ name: "protocolFeeBips",
1313
+ type: "uint16",
1314
+ },
1315
+ {
1316
+ internalType: "uint16",
1317
+ name: "annualInterestBips",
1318
+ type: "uint16",
1319
+ },
1320
+ {
1321
+ internalType: "uint16",
1322
+ name: "reserveRatioBips",
1323
+ type: "uint16",
1324
+ },
1325
+ {
1326
+ internalType: "uint112",
1327
+ name: "scaleFactor",
1328
+ type: "uint112",
1329
+ },
1330
+ {
1331
+ internalType: "uint32",
1332
+ name: "lastInterestAccruedTimestamp",
1333
+ type: "uint32",
1334
+ },
1335
+ ],
1336
+ internalType: "struct MarketStateV2",
1337
+ name: "param2",
1338
+ type: "tuple",
1339
+ },
1340
+ {
1341
+ internalType: "bytes",
1342
+ name: "hooksData",
1343
+ type: "bytes",
1344
+ },
1345
+ ],
1346
+ name: "onExecuteWithdrawal",
1347
+ outputs: [],
1348
+ stateMutability: "nonpayable",
1349
+ type: "function",
1350
+ },
1351
+ {
1352
+ inputs: [
1353
+ {
1354
+ internalType: "address",
1355
+ name: "param0",
1356
+ type: "address",
1357
+ },
1358
+ {
1359
+ internalType: "uint256",
1360
+ name: "param1",
1361
+ type: "uint256",
1362
+ },
1363
+ {
1364
+ components: [
1365
+ {
1366
+ internalType: "bool",
1367
+ name: "isClosed",
1368
+ type: "bool",
1369
+ },
1370
+ {
1371
+ internalType: "uint128",
1372
+ name: "maxTotalSupply",
1373
+ type: "uint128",
1374
+ },
1375
+ {
1376
+ internalType: "uint128",
1377
+ name: "accruedProtocolFees",
1378
+ type: "uint128",
1379
+ },
1380
+ {
1381
+ internalType: "uint128",
1382
+ name: "normalizedUnclaimedWithdrawals",
1383
+ type: "uint128",
1384
+ },
1385
+ {
1386
+ internalType: "uint104",
1387
+ name: "scaledTotalSupply",
1388
+ type: "uint104",
1389
+ },
1390
+ {
1391
+ internalType: "uint104",
1392
+ name: "scaledPendingWithdrawals",
1393
+ type: "uint104",
1394
+ },
1395
+ {
1396
+ internalType: "uint32",
1397
+ name: "pendingWithdrawalExpiry",
1398
+ type: "uint32",
1399
+ },
1400
+ {
1401
+ internalType: "bool",
1402
+ name: "isDelinquent",
1403
+ type: "bool",
1404
+ },
1405
+ {
1406
+ internalType: "uint32",
1407
+ name: "timeDelinquent",
1408
+ type: "uint32",
1409
+ },
1410
+ {
1411
+ internalType: "uint16",
1412
+ name: "protocolFeeBips",
1413
+ type: "uint16",
1414
+ },
1415
+ {
1416
+ internalType: "uint16",
1417
+ name: "annualInterestBips",
1418
+ type: "uint16",
1419
+ },
1420
+ {
1421
+ internalType: "uint16",
1422
+ name: "reserveRatioBips",
1423
+ type: "uint16",
1424
+ },
1425
+ {
1426
+ internalType: "uint112",
1427
+ name: "scaleFactor",
1428
+ type: "uint112",
1429
+ },
1430
+ {
1431
+ internalType: "uint32",
1432
+ name: "lastInterestAccruedTimestamp",
1433
+ type: "uint32",
1434
+ },
1435
+ ],
1436
+ internalType: "struct MarketStateV2",
1437
+ name: "param2",
1438
+ type: "tuple",
1439
+ },
1440
+ {
1441
+ internalType: "bytes",
1442
+ name: "param3",
1443
+ type: "bytes",
1444
+ },
1445
+ ],
1446
+ name: "onForceBuyBack",
1447
+ outputs: [],
1448
+ stateMutability: "nonpayable",
1449
+ type: "function",
1450
+ },
1451
+ {
1452
+ inputs: [
1453
+ {
1454
+ internalType: "address",
1455
+ name: "param0",
1456
+ type: "address",
1457
+ },
1458
+ {
1459
+ components: [
1460
+ {
1461
+ internalType: "bool",
1462
+ name: "isClosed",
1463
+ type: "bool",
1464
+ },
1465
+ {
1466
+ internalType: "uint128",
1467
+ name: "maxTotalSupply",
1468
+ type: "uint128",
1469
+ },
1470
+ {
1471
+ internalType: "uint128",
1472
+ name: "accruedProtocolFees",
1473
+ type: "uint128",
1474
+ },
1475
+ {
1476
+ internalType: "uint128",
1477
+ name: "normalizedUnclaimedWithdrawals",
1478
+ type: "uint128",
1479
+ },
1480
+ {
1481
+ internalType: "uint104",
1482
+ name: "scaledTotalSupply",
1483
+ type: "uint104",
1484
+ },
1485
+ {
1486
+ internalType: "uint104",
1487
+ name: "scaledPendingWithdrawals",
1488
+ type: "uint104",
1489
+ },
1490
+ {
1491
+ internalType: "uint32",
1492
+ name: "pendingWithdrawalExpiry",
1493
+ type: "uint32",
1494
+ },
1495
+ {
1496
+ internalType: "bool",
1497
+ name: "isDelinquent",
1498
+ type: "bool",
1499
+ },
1500
+ {
1501
+ internalType: "uint32",
1502
+ name: "timeDelinquent",
1503
+ type: "uint32",
1504
+ },
1505
+ {
1506
+ internalType: "uint16",
1507
+ name: "protocolFeeBips",
1508
+ type: "uint16",
1509
+ },
1510
+ {
1511
+ internalType: "uint16",
1512
+ name: "annualInterestBips",
1513
+ type: "uint16",
1514
+ },
1515
+ {
1516
+ internalType: "uint16",
1517
+ name: "reserveRatioBips",
1518
+ type: "uint16",
1519
+ },
1520
+ {
1521
+ internalType: "uint112",
1522
+ name: "scaleFactor",
1523
+ type: "uint112",
1524
+ },
1525
+ {
1526
+ internalType: "uint32",
1527
+ name: "lastInterestAccruedTimestamp",
1528
+ type: "uint32",
1529
+ },
1530
+ ],
1531
+ internalType: "struct MarketStateV2",
1532
+ name: "param1",
1533
+ type: "tuple",
1534
+ },
1535
+ {
1536
+ internalType: "bytes",
1537
+ name: "param2",
1538
+ type: "bytes",
1539
+ },
1540
+ ],
1541
+ name: "onNukeFromOrbit",
1542
+ outputs: [],
1543
+ stateMutability: "nonpayable",
1544
+ type: "function",
1545
+ },
1546
+ {
1547
+ inputs: [
1548
+ {
1549
+ internalType: "address",
1550
+ name: "lender",
1551
+ type: "address",
1552
+ },
1553
+ {
1554
+ internalType: "uint32",
1555
+ name: "param1",
1556
+ type: "uint32",
1557
+ },
1558
+ {
1559
+ internalType: "uint256",
1560
+ name: "param2",
1561
+ type: "uint256",
1562
+ },
1563
+ {
1564
+ components: [
1565
+ {
1566
+ internalType: "bool",
1567
+ name: "isClosed",
1568
+ type: "bool",
1569
+ },
1570
+ {
1571
+ internalType: "uint128",
1572
+ name: "maxTotalSupply",
1573
+ type: "uint128",
1574
+ },
1575
+ {
1576
+ internalType: "uint128",
1577
+ name: "accruedProtocolFees",
1578
+ type: "uint128",
1579
+ },
1580
+ {
1581
+ internalType: "uint128",
1582
+ name: "normalizedUnclaimedWithdrawals",
1583
+ type: "uint128",
1584
+ },
1585
+ {
1586
+ internalType: "uint104",
1587
+ name: "scaledTotalSupply",
1588
+ type: "uint104",
1589
+ },
1590
+ {
1591
+ internalType: "uint104",
1592
+ name: "scaledPendingWithdrawals",
1593
+ type: "uint104",
1594
+ },
1595
+ {
1596
+ internalType: "uint32",
1597
+ name: "pendingWithdrawalExpiry",
1598
+ type: "uint32",
1599
+ },
1600
+ {
1601
+ internalType: "bool",
1602
+ name: "isDelinquent",
1603
+ type: "bool",
1604
+ },
1605
+ {
1606
+ internalType: "uint32",
1607
+ name: "timeDelinquent",
1608
+ type: "uint32",
1609
+ },
1610
+ {
1611
+ internalType: "uint16",
1612
+ name: "protocolFeeBips",
1613
+ type: "uint16",
1614
+ },
1615
+ {
1616
+ internalType: "uint16",
1617
+ name: "annualInterestBips",
1618
+ type: "uint16",
1619
+ },
1620
+ {
1621
+ internalType: "uint16",
1622
+ name: "reserveRatioBips",
1623
+ type: "uint16",
1624
+ },
1625
+ {
1626
+ internalType: "uint112",
1627
+ name: "scaleFactor",
1628
+ type: "uint112",
1629
+ },
1630
+ {
1631
+ internalType: "uint32",
1632
+ name: "lastInterestAccruedTimestamp",
1633
+ type: "uint32",
1634
+ },
1635
+ ],
1636
+ internalType: "struct MarketStateV2",
1637
+ name: "param3",
1638
+ type: "tuple",
1639
+ },
1640
+ {
1641
+ internalType: "bytes",
1642
+ name: "hooksData",
1643
+ type: "bytes",
1644
+ },
1645
+ ],
1646
+ name: "onQueueWithdrawal",
1647
+ outputs: [],
1648
+ stateMutability: "nonpayable",
1649
+ type: "function",
1650
+ },
1651
+ {
1652
+ inputs: [
1653
+ {
1654
+ internalType: "uint256",
1655
+ name: "normalizedAmount",
1656
+ type: "uint256",
1657
+ },
1658
+ {
1659
+ components: [
1660
+ {
1661
+ internalType: "bool",
1662
+ name: "isClosed",
1663
+ type: "bool",
1664
+ },
1665
+ {
1666
+ internalType: "uint128",
1667
+ name: "maxTotalSupply",
1668
+ type: "uint128",
1669
+ },
1670
+ {
1671
+ internalType: "uint128",
1672
+ name: "accruedProtocolFees",
1673
+ type: "uint128",
1674
+ },
1675
+ {
1676
+ internalType: "uint128",
1677
+ name: "normalizedUnclaimedWithdrawals",
1678
+ type: "uint128",
1679
+ },
1680
+ {
1681
+ internalType: "uint104",
1682
+ name: "scaledTotalSupply",
1683
+ type: "uint104",
1684
+ },
1685
+ {
1686
+ internalType: "uint104",
1687
+ name: "scaledPendingWithdrawals",
1688
+ type: "uint104",
1689
+ },
1690
+ {
1691
+ internalType: "uint32",
1692
+ name: "pendingWithdrawalExpiry",
1693
+ type: "uint32",
1694
+ },
1695
+ {
1696
+ internalType: "bool",
1697
+ name: "isDelinquent",
1698
+ type: "bool",
1699
+ },
1700
+ {
1701
+ internalType: "uint32",
1702
+ name: "timeDelinquent",
1703
+ type: "uint32",
1704
+ },
1705
+ {
1706
+ internalType: "uint16",
1707
+ name: "protocolFeeBips",
1708
+ type: "uint16",
1709
+ },
1710
+ {
1711
+ internalType: "uint16",
1712
+ name: "annualInterestBips",
1713
+ type: "uint16",
1714
+ },
1715
+ {
1716
+ internalType: "uint16",
1717
+ name: "reserveRatioBips",
1718
+ type: "uint16",
1719
+ },
1720
+ {
1721
+ internalType: "uint112",
1722
+ name: "scaleFactor",
1723
+ type: "uint112",
1724
+ },
1725
+ {
1726
+ internalType: "uint32",
1727
+ name: "lastInterestAccruedTimestamp",
1728
+ type: "uint32",
1729
+ },
1730
+ ],
1731
+ internalType: "struct MarketStateV2",
1732
+ name: "state",
1733
+ type: "tuple",
1734
+ },
1735
+ {
1736
+ internalType: "bytes",
1737
+ name: "hooksData",
1738
+ type: "bytes",
1739
+ },
1740
+ ],
1741
+ name: "onRepay",
1742
+ outputs: [],
1743
+ stateMutability: "nonpayable",
1744
+ type: "function",
1745
+ },
1746
+ {
1747
+ inputs: [
1748
+ {
1749
+ internalType: "uint16",
1750
+ name: "annualInterestBips",
1751
+ type: "uint16",
1752
+ },
1753
+ {
1754
+ internalType: "uint16",
1755
+ name: "reserveRatioBips",
1756
+ type: "uint16",
1757
+ },
1758
+ {
1759
+ components: [
1760
+ {
1761
+ internalType: "bool",
1762
+ name: "isClosed",
1763
+ type: "bool",
1764
+ },
1765
+ {
1766
+ internalType: "uint128",
1767
+ name: "maxTotalSupply",
1768
+ type: "uint128",
1769
+ },
1770
+ {
1771
+ internalType: "uint128",
1772
+ name: "accruedProtocolFees",
1773
+ type: "uint128",
1774
+ },
1775
+ {
1776
+ internalType: "uint128",
1777
+ name: "normalizedUnclaimedWithdrawals",
1778
+ type: "uint128",
1779
+ },
1780
+ {
1781
+ internalType: "uint104",
1782
+ name: "scaledTotalSupply",
1783
+ type: "uint104",
1784
+ },
1785
+ {
1786
+ internalType: "uint104",
1787
+ name: "scaledPendingWithdrawals",
1788
+ type: "uint104",
1789
+ },
1790
+ {
1791
+ internalType: "uint32",
1792
+ name: "pendingWithdrawalExpiry",
1793
+ type: "uint32",
1794
+ },
1795
+ {
1796
+ internalType: "bool",
1797
+ name: "isDelinquent",
1798
+ type: "bool",
1799
+ },
1800
+ {
1801
+ internalType: "uint32",
1802
+ name: "timeDelinquent",
1803
+ type: "uint32",
1804
+ },
1805
+ {
1806
+ internalType: "uint16",
1807
+ name: "protocolFeeBips",
1808
+ type: "uint16",
1809
+ },
1810
+ {
1811
+ internalType: "uint16",
1812
+ name: "annualInterestBips",
1813
+ type: "uint16",
1814
+ },
1815
+ {
1816
+ internalType: "uint16",
1817
+ name: "reserveRatioBips",
1818
+ type: "uint16",
1819
+ },
1820
+ {
1821
+ internalType: "uint112",
1822
+ name: "scaleFactor",
1823
+ type: "uint112",
1824
+ },
1825
+ {
1826
+ internalType: "uint32",
1827
+ name: "lastInterestAccruedTimestamp",
1828
+ type: "uint32",
1829
+ },
1830
+ ],
1831
+ internalType: "struct MarketStateV2",
1832
+ name: "intermediateState",
1833
+ type: "tuple",
1834
+ },
1835
+ {
1836
+ internalType: "bytes",
1837
+ name: "extraData",
1838
+ type: "bytes",
1839
+ },
1840
+ ],
1841
+ name: "onSetAnnualInterestAndReserveRatioBips",
1842
+ outputs: [
1843
+ {
1844
+ internalType: "uint16",
1845
+ name: "updatedAnnualInterestBips",
1846
+ type: "uint16",
1847
+ },
1848
+ {
1849
+ internalType: "uint16",
1850
+ name: "updatedReserveRatioBips",
1851
+ type: "uint16",
1852
+ },
1853
+ ],
1854
+ stateMutability: "nonpayable",
1855
+ type: "function",
1856
+ },
1857
+ {
1858
+ inputs: [
1859
+ {
1860
+ internalType: "uint256",
1861
+ name: "param0",
1862
+ type: "uint256",
1863
+ },
1864
+ {
1865
+ components: [
1866
+ {
1867
+ internalType: "bool",
1868
+ name: "isClosed",
1869
+ type: "bool",
1870
+ },
1871
+ {
1872
+ internalType: "uint128",
1873
+ name: "maxTotalSupply",
1874
+ type: "uint128",
1875
+ },
1876
+ {
1877
+ internalType: "uint128",
1878
+ name: "accruedProtocolFees",
1879
+ type: "uint128",
1880
+ },
1881
+ {
1882
+ internalType: "uint128",
1883
+ name: "normalizedUnclaimedWithdrawals",
1884
+ type: "uint128",
1885
+ },
1886
+ {
1887
+ internalType: "uint104",
1888
+ name: "scaledTotalSupply",
1889
+ type: "uint104",
1890
+ },
1891
+ {
1892
+ internalType: "uint104",
1893
+ name: "scaledPendingWithdrawals",
1894
+ type: "uint104",
1895
+ },
1896
+ {
1897
+ internalType: "uint32",
1898
+ name: "pendingWithdrawalExpiry",
1899
+ type: "uint32",
1900
+ },
1901
+ {
1902
+ internalType: "bool",
1903
+ name: "isDelinquent",
1904
+ type: "bool",
1905
+ },
1906
+ {
1907
+ internalType: "uint32",
1908
+ name: "timeDelinquent",
1909
+ type: "uint32",
1910
+ },
1911
+ {
1912
+ internalType: "uint16",
1913
+ name: "protocolFeeBips",
1914
+ type: "uint16",
1915
+ },
1916
+ {
1917
+ internalType: "uint16",
1918
+ name: "annualInterestBips",
1919
+ type: "uint16",
1920
+ },
1921
+ {
1922
+ internalType: "uint16",
1923
+ name: "reserveRatioBips",
1924
+ type: "uint16",
1925
+ },
1926
+ {
1927
+ internalType: "uint112",
1928
+ name: "scaleFactor",
1929
+ type: "uint112",
1930
+ },
1931
+ {
1932
+ internalType: "uint32",
1933
+ name: "lastInterestAccruedTimestamp",
1934
+ type: "uint32",
1935
+ },
1936
+ ],
1937
+ internalType: "struct MarketStateV2",
1938
+ name: "param1",
1939
+ type: "tuple",
1940
+ },
1941
+ {
1942
+ internalType: "bytes",
1943
+ name: "param2",
1944
+ type: "bytes",
1945
+ },
1946
+ ],
1947
+ name: "onSetMaxTotalSupply",
1948
+ outputs: [],
1949
+ stateMutability: "nonpayable",
1950
+ type: "function",
1951
+ },
1952
+ {
1953
+ inputs: [
1954
+ {
1955
+ internalType: "uint16",
1956
+ name: "param0",
1957
+ type: "uint16",
1958
+ },
1959
+ {
1960
+ components: [
1961
+ {
1962
+ internalType: "bool",
1963
+ name: "isClosed",
1964
+ type: "bool",
1965
+ },
1966
+ {
1967
+ internalType: "uint128",
1968
+ name: "maxTotalSupply",
1969
+ type: "uint128",
1970
+ },
1971
+ {
1972
+ internalType: "uint128",
1973
+ name: "accruedProtocolFees",
1974
+ type: "uint128",
1975
+ },
1976
+ {
1977
+ internalType: "uint128",
1978
+ name: "normalizedUnclaimedWithdrawals",
1979
+ type: "uint128",
1980
+ },
1981
+ {
1982
+ internalType: "uint104",
1983
+ name: "scaledTotalSupply",
1984
+ type: "uint104",
1985
+ },
1986
+ {
1987
+ internalType: "uint104",
1988
+ name: "scaledPendingWithdrawals",
1989
+ type: "uint104",
1990
+ },
1991
+ {
1992
+ internalType: "uint32",
1993
+ name: "pendingWithdrawalExpiry",
1994
+ type: "uint32",
1995
+ },
1996
+ {
1997
+ internalType: "bool",
1998
+ name: "isDelinquent",
1999
+ type: "bool",
2000
+ },
2001
+ {
2002
+ internalType: "uint32",
2003
+ name: "timeDelinquent",
2004
+ type: "uint32",
2005
+ },
2006
+ {
2007
+ internalType: "uint16",
2008
+ name: "protocolFeeBips",
2009
+ type: "uint16",
2010
+ },
2011
+ {
2012
+ internalType: "uint16",
2013
+ name: "annualInterestBips",
2014
+ type: "uint16",
2015
+ },
2016
+ {
2017
+ internalType: "uint16",
2018
+ name: "reserveRatioBips",
2019
+ type: "uint16",
2020
+ },
2021
+ {
2022
+ internalType: "uint112",
2023
+ name: "scaleFactor",
2024
+ type: "uint112",
2025
+ },
2026
+ {
2027
+ internalType: "uint32",
2028
+ name: "lastInterestAccruedTimestamp",
2029
+ type: "uint32",
2030
+ },
2031
+ ],
2032
+ internalType: "struct MarketStateV2",
2033
+ name: "param1",
2034
+ type: "tuple",
2035
+ },
2036
+ {
2037
+ internalType: "bytes",
2038
+ name: "param2",
2039
+ type: "bytes",
2040
+ },
2041
+ ],
2042
+ name: "onSetProtocolFeeBips",
2043
+ outputs: [],
2044
+ stateMutability: "nonpayable",
2045
+ type: "function",
2046
+ },
2047
+ {
2048
+ inputs: [
2049
+ {
2050
+ internalType: "address",
2051
+ name: "param0",
2052
+ type: "address",
2053
+ },
2054
+ {
2055
+ internalType: "address",
2056
+ name: "param1",
2057
+ type: "address",
2058
+ },
2059
+ {
2060
+ internalType: "address",
2061
+ name: "to",
2062
+ type: "address",
2063
+ },
2064
+ {
2065
+ internalType: "uint256",
2066
+ name: "param3",
2067
+ type: "uint256",
2068
+ },
2069
+ {
2070
+ components: [
2071
+ {
2072
+ internalType: "bool",
2073
+ name: "isClosed",
2074
+ type: "bool",
2075
+ },
2076
+ {
2077
+ internalType: "uint128",
2078
+ name: "maxTotalSupply",
2079
+ type: "uint128",
2080
+ },
2081
+ {
2082
+ internalType: "uint128",
2083
+ name: "accruedProtocolFees",
2084
+ type: "uint128",
2085
+ },
2086
+ {
2087
+ internalType: "uint128",
2088
+ name: "normalizedUnclaimedWithdrawals",
2089
+ type: "uint128",
2090
+ },
2091
+ {
2092
+ internalType: "uint104",
2093
+ name: "scaledTotalSupply",
2094
+ type: "uint104",
2095
+ },
2096
+ {
2097
+ internalType: "uint104",
2098
+ name: "scaledPendingWithdrawals",
2099
+ type: "uint104",
2100
+ },
2101
+ {
2102
+ internalType: "uint32",
2103
+ name: "pendingWithdrawalExpiry",
2104
+ type: "uint32",
2105
+ },
2106
+ {
2107
+ internalType: "bool",
2108
+ name: "isDelinquent",
2109
+ type: "bool",
2110
+ },
2111
+ {
2112
+ internalType: "uint32",
2113
+ name: "timeDelinquent",
2114
+ type: "uint32",
2115
+ },
2116
+ {
2117
+ internalType: "uint16",
2118
+ name: "protocolFeeBips",
2119
+ type: "uint16",
2120
+ },
2121
+ {
2122
+ internalType: "uint16",
2123
+ name: "annualInterestBips",
2124
+ type: "uint16",
2125
+ },
2126
+ {
2127
+ internalType: "uint16",
2128
+ name: "reserveRatioBips",
2129
+ type: "uint16",
2130
+ },
2131
+ {
2132
+ internalType: "uint112",
2133
+ name: "scaleFactor",
2134
+ type: "uint112",
2135
+ },
2136
+ {
2137
+ internalType: "uint32",
2138
+ name: "lastInterestAccruedTimestamp",
2139
+ type: "uint32",
2140
+ },
2141
+ ],
2142
+ internalType: "struct MarketStateV2",
2143
+ name: "param4",
2144
+ type: "tuple",
2145
+ },
2146
+ {
2147
+ internalType: "bytes",
2148
+ name: "extraData",
2149
+ type: "bytes",
2150
+ },
2151
+ ],
2152
+ name: "onTransfer",
2153
+ outputs: [],
2154
+ stateMutability: "nonpayable",
2155
+ type: "function",
2156
+ },
2157
+ {
2158
+ inputs: [
2159
+ {
2160
+ internalType: "address",
2161
+ name: "providerAddress",
2162
+ type: "address",
2163
+ },
2164
+ ],
2165
+ name: "removeRoleProvider",
2166
+ outputs: [],
2167
+ stateMutability: "nonpayable",
2168
+ type: "function",
2169
+ },
2170
+ {
2171
+ inputs: [
2172
+ {
2173
+ internalType: "address",
2174
+ name: "account",
2175
+ type: "address",
2176
+ },
2177
+ ],
2178
+ name: "revokeRole",
2179
+ outputs: [],
2180
+ stateMutability: "nonpayable",
2181
+ type: "function",
2182
+ },
2183
+ {
2184
+ inputs: [
2185
+ {
2186
+ internalType: "address",
2187
+ name: "market",
2188
+ type: "address",
2189
+ },
2190
+ {
2191
+ internalType: "uint128",
2192
+ name: "newMinimumDeposit",
2193
+ type: "uint128",
2194
+ },
2195
+ ],
2196
+ name: "setMinimumDeposit",
2197
+ outputs: [],
2198
+ stateMutability: "nonpayable",
2199
+ type: "function",
2200
+ },
2201
+ {
2202
+ inputs: [
2203
+ {
2204
+ internalType: "string",
2205
+ name: "_name",
2206
+ type: "string",
2207
+ },
2208
+ ],
2209
+ name: "setName",
2210
+ outputs: [],
2211
+ stateMutability: "nonpayable",
2212
+ type: "function",
2213
+ },
2214
+ {
2215
+ inputs: [
2216
+ {
2217
+ internalType: "address",
2218
+ name: "key0",
2219
+ type: "address",
2220
+ },
2221
+ ],
2222
+ name: "temporaryExcessReserveRatio",
2223
+ outputs: [
2224
+ {
2225
+ internalType: "uint16",
2226
+ name: "originalAnnualInterestBips",
2227
+ type: "uint16",
2228
+ },
2229
+ {
2230
+ internalType: "uint16",
2231
+ name: "originalReserveRatioBips",
2232
+ type: "uint16",
2233
+ },
2234
+ {
2235
+ internalType: "uint32",
2236
+ name: "expiry",
2237
+ type: "uint32",
2238
+ },
2239
+ ],
2240
+ stateMutability: "view",
2241
+ type: "function",
2242
+ },
2243
+ {
2244
+ inputs: [
2245
+ {
2246
+ internalType: "address",
2247
+ name: "account",
2248
+ type: "address",
2249
+ },
2250
+ ],
2251
+ name: "unblockFromDeposits",
2252
+ outputs: [],
2253
+ stateMutability: "nonpayable",
2254
+ type: "function",
2255
+ },
2256
+ {
2257
+ inputs: [],
2258
+ name: "version",
2259
+ outputs: [
2260
+ {
2261
+ internalType: "string",
2262
+ name: "param0",
2263
+ type: "string",
2264
+ },
2265
+ ],
2266
+ stateMutability: "pure",
2267
+ type: "function",
2268
+ },
2269
+ ];
2270
+ class IOpenTermHooks__factory {
2271
+ static createInterface() {
2272
+ return new ethers_1.utils.Interface(_abi);
2273
+ }
2274
+ static connect(address, signerOrProvider) {
2275
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
2276
+ }
2277
+ }
2278
+ IOpenTermHooks__factory.abi = _abi;
2279
+ exports.IOpenTermHooks__factory = IOpenTermHooks__factory;
2280
+ //# sourceMappingURL=IOpenTermHooks__factory.js.map