@wildcatfi/wildcat-sdk 2.0.83 → 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 +37 -22
  49. package/dist/market.d.ts.map +1 -1
  50. package/dist/market.js +287 -102
  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,1168 @@
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.HooksFactory__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "AssetBlacklisted",
12
+ type: "error",
13
+ },
14
+ {
15
+ inputs: [],
16
+ name: "CallerNotArchControllerOwner",
17
+ type: "error",
18
+ },
19
+ {
20
+ inputs: [],
21
+ name: "DeploymentFailed",
22
+ type: "error",
23
+ },
24
+ {
25
+ inputs: [],
26
+ name: "FeeMismatch",
27
+ type: "error",
28
+ },
29
+ {
30
+ inputs: [],
31
+ name: "HooksInstanceAlreadyExists",
32
+ type: "error",
33
+ },
34
+ {
35
+ inputs: [],
36
+ name: "HooksInstanceNotFound",
37
+ type: "error",
38
+ },
39
+ {
40
+ inputs: [],
41
+ name: "HooksTemplateAlreadyExists",
42
+ type: "error",
43
+ },
44
+ {
45
+ inputs: [],
46
+ name: "HooksTemplateNotAvailable",
47
+ type: "error",
48
+ },
49
+ {
50
+ inputs: [],
51
+ name: "HooksTemplateNotFound",
52
+ type: "error",
53
+ },
54
+ {
55
+ inputs: [],
56
+ name: "InvalidFeeConfiguration",
57
+ type: "error",
58
+ },
59
+ {
60
+ inputs: [],
61
+ name: "MarketAlreadyExists",
62
+ type: "error",
63
+ },
64
+ {
65
+ inputs: [],
66
+ name: "NameOrSymbolTooLong",
67
+ type: "error",
68
+ },
69
+ {
70
+ inputs: [],
71
+ name: "NotApprovedBorrower",
72
+ type: "error",
73
+ },
74
+ {
75
+ inputs: [],
76
+ name: "SaltDoesNotContainSender",
77
+ type: "error",
78
+ },
79
+ {
80
+ inputs: [],
81
+ name: "SetProtocolFeeBipsFailed",
82
+ type: "error",
83
+ },
84
+ {
85
+ anonymous: false,
86
+ inputs: [
87
+ {
88
+ indexed: false,
89
+ internalType: "address",
90
+ name: "hooksInstance",
91
+ type: "address",
92
+ },
93
+ {
94
+ indexed: false,
95
+ internalType: "address",
96
+ name: "hooksTemplate",
97
+ type: "address",
98
+ },
99
+ ],
100
+ name: "HooksInstanceDeployed",
101
+ type: "event",
102
+ },
103
+ {
104
+ anonymous: false,
105
+ inputs: [
106
+ {
107
+ indexed: false,
108
+ internalType: "address",
109
+ name: "hooksTemplate",
110
+ type: "address",
111
+ },
112
+ {
113
+ indexed: false,
114
+ internalType: "string",
115
+ name: "name",
116
+ type: "string",
117
+ },
118
+ {
119
+ indexed: false,
120
+ internalType: "address",
121
+ name: "feeRecipient",
122
+ type: "address",
123
+ },
124
+ {
125
+ indexed: false,
126
+ internalType: "address",
127
+ name: "originationFeeAsset",
128
+ type: "address",
129
+ },
130
+ {
131
+ indexed: false,
132
+ internalType: "uint80",
133
+ name: "originationFeeAmount",
134
+ type: "uint80",
135
+ },
136
+ {
137
+ indexed: false,
138
+ internalType: "uint16",
139
+ name: "protocolFeeBips",
140
+ type: "uint16",
141
+ },
142
+ ],
143
+ name: "HooksTemplateAdded",
144
+ type: "event",
145
+ },
146
+ {
147
+ anonymous: false,
148
+ inputs: [
149
+ {
150
+ indexed: false,
151
+ internalType: "address",
152
+ name: "hooksTemplate",
153
+ type: "address",
154
+ },
155
+ ],
156
+ name: "HooksTemplateDisabled",
157
+ type: "event",
158
+ },
159
+ {
160
+ anonymous: false,
161
+ inputs: [
162
+ {
163
+ indexed: false,
164
+ internalType: "address",
165
+ name: "hooksTemplate",
166
+ type: "address",
167
+ },
168
+ {
169
+ indexed: false,
170
+ internalType: "address",
171
+ name: "feeRecipient",
172
+ type: "address",
173
+ },
174
+ {
175
+ indexed: false,
176
+ internalType: "address",
177
+ name: "originationFeeAsset",
178
+ type: "address",
179
+ },
180
+ {
181
+ indexed: false,
182
+ internalType: "uint80",
183
+ name: "originationFeeAmount",
184
+ type: "uint80",
185
+ },
186
+ {
187
+ indexed: false,
188
+ internalType: "uint16",
189
+ name: "protocolFeeBips",
190
+ type: "uint16",
191
+ },
192
+ ],
193
+ name: "HooksTemplateFeesUpdated",
194
+ type: "event",
195
+ },
196
+ {
197
+ anonymous: false,
198
+ inputs: [
199
+ {
200
+ indexed: true,
201
+ internalType: "address",
202
+ name: "hooksTemplate",
203
+ type: "address",
204
+ },
205
+ {
206
+ indexed: true,
207
+ internalType: "address",
208
+ name: "market",
209
+ type: "address",
210
+ },
211
+ {
212
+ indexed: false,
213
+ internalType: "string",
214
+ name: "name",
215
+ type: "string",
216
+ },
217
+ {
218
+ indexed: false,
219
+ internalType: "string",
220
+ name: "symbol",
221
+ type: "string",
222
+ },
223
+ {
224
+ indexed: false,
225
+ internalType: "address",
226
+ name: "asset",
227
+ type: "address",
228
+ },
229
+ {
230
+ indexed: false,
231
+ internalType: "uint256",
232
+ name: "maxTotalSupply",
233
+ type: "uint256",
234
+ },
235
+ {
236
+ indexed: false,
237
+ internalType: "uint256",
238
+ name: "annualInterestBips",
239
+ type: "uint256",
240
+ },
241
+ {
242
+ indexed: false,
243
+ internalType: "uint256",
244
+ name: "delinquencyFeeBips",
245
+ type: "uint256",
246
+ },
247
+ {
248
+ indexed: false,
249
+ internalType: "uint256",
250
+ name: "withdrawalBatchDuration",
251
+ type: "uint256",
252
+ },
253
+ {
254
+ indexed: false,
255
+ internalType: "uint256",
256
+ name: "reserveRatioBips",
257
+ type: "uint256",
258
+ },
259
+ {
260
+ indexed: false,
261
+ internalType: "uint256",
262
+ name: "delinquencyGracePeriod",
263
+ type: "uint256",
264
+ },
265
+ {
266
+ indexed: false,
267
+ internalType: "HooksConfig",
268
+ name: "hooks",
269
+ type: "uint256",
270
+ },
271
+ ],
272
+ name: "MarketDeployed",
273
+ type: "event",
274
+ },
275
+ {
276
+ inputs: [
277
+ {
278
+ internalType: "address",
279
+ name: "hooksTemplate",
280
+ type: "address",
281
+ },
282
+ {
283
+ internalType: "string",
284
+ name: "name",
285
+ type: "string",
286
+ },
287
+ {
288
+ internalType: "address",
289
+ name: "feeRecipient",
290
+ type: "address",
291
+ },
292
+ {
293
+ internalType: "address",
294
+ name: "originationFeeAsset",
295
+ type: "address",
296
+ },
297
+ {
298
+ internalType: "uint80",
299
+ name: "originationFeeAmount",
300
+ type: "uint80",
301
+ },
302
+ {
303
+ internalType: "uint16",
304
+ name: "protocolFeeBips",
305
+ type: "uint16",
306
+ },
307
+ ],
308
+ name: "addHooksTemplate",
309
+ outputs: [],
310
+ stateMutability: "nonpayable",
311
+ type: "function",
312
+ },
313
+ {
314
+ inputs: [],
315
+ name: "archController",
316
+ outputs: [
317
+ {
318
+ internalType: "address",
319
+ name: "",
320
+ type: "address",
321
+ },
322
+ ],
323
+ stateMutability: "view",
324
+ type: "function",
325
+ },
326
+ {
327
+ inputs: [
328
+ {
329
+ internalType: "bytes32",
330
+ name: "salt",
331
+ type: "bytes32",
332
+ },
333
+ ],
334
+ name: "computeMarketAddress",
335
+ outputs: [
336
+ {
337
+ internalType: "address",
338
+ name: "",
339
+ type: "address",
340
+ },
341
+ ],
342
+ stateMutability: "view",
343
+ type: "function",
344
+ },
345
+ {
346
+ inputs: [
347
+ {
348
+ internalType: "address",
349
+ name: "hooksTemplate",
350
+ type: "address",
351
+ },
352
+ {
353
+ internalType: "bytes",
354
+ name: "constructorArgs",
355
+ type: "bytes",
356
+ },
357
+ ],
358
+ name: "deployHooksInstance",
359
+ outputs: [
360
+ {
361
+ internalType: "address",
362
+ name: "hooksDeployment",
363
+ type: "address",
364
+ },
365
+ ],
366
+ stateMutability: "nonpayable",
367
+ type: "function",
368
+ },
369
+ {
370
+ inputs: [
371
+ {
372
+ components: [
373
+ {
374
+ internalType: "address",
375
+ name: "asset",
376
+ type: "address",
377
+ },
378
+ {
379
+ internalType: "string",
380
+ name: "namePrefix",
381
+ type: "string",
382
+ },
383
+ {
384
+ internalType: "string",
385
+ name: "symbolPrefix",
386
+ type: "string",
387
+ },
388
+ {
389
+ internalType: "uint128",
390
+ name: "maxTotalSupply",
391
+ type: "uint128",
392
+ },
393
+ {
394
+ internalType: "uint16",
395
+ name: "annualInterestBips",
396
+ type: "uint16",
397
+ },
398
+ {
399
+ internalType: "uint16",
400
+ name: "delinquencyFeeBips",
401
+ type: "uint16",
402
+ },
403
+ {
404
+ internalType: "uint32",
405
+ name: "withdrawalBatchDuration",
406
+ type: "uint32",
407
+ },
408
+ {
409
+ internalType: "uint16",
410
+ name: "reserveRatioBips",
411
+ type: "uint16",
412
+ },
413
+ {
414
+ internalType: "uint32",
415
+ name: "delinquencyGracePeriod",
416
+ type: "uint32",
417
+ },
418
+ {
419
+ internalType: "HooksConfig",
420
+ name: "hooks",
421
+ type: "uint256",
422
+ },
423
+ ],
424
+ internalType: "struct DeployMarketInputsV2",
425
+ name: "parameters",
426
+ type: "tuple",
427
+ },
428
+ {
429
+ internalType: "bytes",
430
+ name: "hooksData",
431
+ type: "bytes",
432
+ },
433
+ {
434
+ internalType: "bytes32",
435
+ name: "salt",
436
+ type: "bytes32",
437
+ },
438
+ {
439
+ internalType: "address",
440
+ name: "originationFeeAsset",
441
+ type: "address",
442
+ },
443
+ {
444
+ internalType: "uint256",
445
+ name: "originationFeeAmount",
446
+ type: "uint256",
447
+ },
448
+ ],
449
+ name: "deployMarket",
450
+ outputs: [
451
+ {
452
+ internalType: "address",
453
+ name: "market",
454
+ type: "address",
455
+ },
456
+ ],
457
+ stateMutability: "nonpayable",
458
+ type: "function",
459
+ },
460
+ {
461
+ inputs: [
462
+ {
463
+ internalType: "address",
464
+ name: "hooksTemplate",
465
+ type: "address",
466
+ },
467
+ {
468
+ internalType: "bytes",
469
+ name: "hooksConstructorArgs",
470
+ type: "bytes",
471
+ },
472
+ {
473
+ components: [
474
+ {
475
+ internalType: "address",
476
+ name: "asset",
477
+ type: "address",
478
+ },
479
+ {
480
+ internalType: "string",
481
+ name: "namePrefix",
482
+ type: "string",
483
+ },
484
+ {
485
+ internalType: "string",
486
+ name: "symbolPrefix",
487
+ type: "string",
488
+ },
489
+ {
490
+ internalType: "uint128",
491
+ name: "maxTotalSupply",
492
+ type: "uint128",
493
+ },
494
+ {
495
+ internalType: "uint16",
496
+ name: "annualInterestBips",
497
+ type: "uint16",
498
+ },
499
+ {
500
+ internalType: "uint16",
501
+ name: "delinquencyFeeBips",
502
+ type: "uint16",
503
+ },
504
+ {
505
+ internalType: "uint32",
506
+ name: "withdrawalBatchDuration",
507
+ type: "uint32",
508
+ },
509
+ {
510
+ internalType: "uint16",
511
+ name: "reserveRatioBips",
512
+ type: "uint16",
513
+ },
514
+ {
515
+ internalType: "uint32",
516
+ name: "delinquencyGracePeriod",
517
+ type: "uint32",
518
+ },
519
+ {
520
+ internalType: "HooksConfig",
521
+ name: "hooks",
522
+ type: "uint256",
523
+ },
524
+ ],
525
+ internalType: "struct DeployMarketInputsV2",
526
+ name: "parameters",
527
+ type: "tuple",
528
+ },
529
+ {
530
+ internalType: "bytes",
531
+ name: "hooksData",
532
+ type: "bytes",
533
+ },
534
+ {
535
+ internalType: "bytes32",
536
+ name: "salt",
537
+ type: "bytes32",
538
+ },
539
+ {
540
+ internalType: "address",
541
+ name: "originationFeeAsset",
542
+ type: "address",
543
+ },
544
+ {
545
+ internalType: "uint256",
546
+ name: "originationFeeAmount",
547
+ type: "uint256",
548
+ },
549
+ ],
550
+ name: "deployMarketAndHooks",
551
+ outputs: [
552
+ {
553
+ internalType: "address",
554
+ name: "market",
555
+ type: "address",
556
+ },
557
+ {
558
+ internalType: "address",
559
+ name: "hooks",
560
+ type: "address",
561
+ },
562
+ ],
563
+ stateMutability: "nonpayable",
564
+ type: "function",
565
+ },
566
+ {
567
+ inputs: [
568
+ {
569
+ internalType: "address",
570
+ name: "hooksTemplate",
571
+ type: "address",
572
+ },
573
+ ],
574
+ name: "disableHooksTemplate",
575
+ outputs: [],
576
+ stateMutability: "nonpayable",
577
+ type: "function",
578
+ },
579
+ {
580
+ inputs: [
581
+ {
582
+ internalType: "address",
583
+ name: "borrower",
584
+ type: "address",
585
+ },
586
+ ],
587
+ name: "getHooksInstancesCountForBorrower",
588
+ outputs: [
589
+ {
590
+ internalType: "uint256",
591
+ name: "",
592
+ type: "uint256",
593
+ },
594
+ ],
595
+ stateMutability: "view",
596
+ type: "function",
597
+ },
598
+ {
599
+ inputs: [
600
+ {
601
+ internalType: "address",
602
+ name: "borrower",
603
+ type: "address",
604
+ },
605
+ ],
606
+ name: "getHooksInstancesForBorrower",
607
+ outputs: [
608
+ {
609
+ internalType: "address[]",
610
+ name: "",
611
+ type: "address[]",
612
+ },
613
+ ],
614
+ stateMutability: "view",
615
+ type: "function",
616
+ },
617
+ {
618
+ inputs: [
619
+ {
620
+ internalType: "address",
621
+ name: "hooksTemplate",
622
+ type: "address",
623
+ },
624
+ ],
625
+ name: "getHooksTemplateDetails",
626
+ outputs: [
627
+ {
628
+ components: [
629
+ {
630
+ internalType: "address",
631
+ name: "originationFeeAsset",
632
+ type: "address",
633
+ },
634
+ {
635
+ internalType: "uint80",
636
+ name: "originationFeeAmount",
637
+ type: "uint80",
638
+ },
639
+ {
640
+ internalType: "uint16",
641
+ name: "protocolFeeBips",
642
+ type: "uint16",
643
+ },
644
+ {
645
+ internalType: "bool",
646
+ name: "exists",
647
+ type: "bool",
648
+ },
649
+ {
650
+ internalType: "bool",
651
+ name: "enabled",
652
+ type: "bool",
653
+ },
654
+ {
655
+ internalType: "uint24",
656
+ name: "index",
657
+ type: "uint24",
658
+ },
659
+ {
660
+ internalType: "address",
661
+ name: "feeRecipient",
662
+ type: "address",
663
+ },
664
+ {
665
+ internalType: "string",
666
+ name: "name",
667
+ type: "string",
668
+ },
669
+ ],
670
+ internalType: "struct HooksTemplate",
671
+ name: "",
672
+ type: "tuple",
673
+ },
674
+ ],
675
+ stateMutability: "view",
676
+ type: "function",
677
+ },
678
+ {
679
+ inputs: [
680
+ {
681
+ internalType: "address",
682
+ name: "hooks",
683
+ type: "address",
684
+ },
685
+ ],
686
+ name: "getHooksTemplateForInstance",
687
+ outputs: [
688
+ {
689
+ internalType: "address",
690
+ name: "",
691
+ type: "address",
692
+ },
693
+ ],
694
+ stateMutability: "view",
695
+ type: "function",
696
+ },
697
+ {
698
+ inputs: [],
699
+ name: "getHooksTemplates",
700
+ outputs: [
701
+ {
702
+ internalType: "address[]",
703
+ name: "",
704
+ type: "address[]",
705
+ },
706
+ ],
707
+ stateMutability: "view",
708
+ type: "function",
709
+ },
710
+ {
711
+ inputs: [
712
+ {
713
+ internalType: "uint256",
714
+ name: "start",
715
+ type: "uint256",
716
+ },
717
+ {
718
+ internalType: "uint256",
719
+ name: "end",
720
+ type: "uint256",
721
+ },
722
+ ],
723
+ name: "getHooksTemplates",
724
+ outputs: [
725
+ {
726
+ internalType: "address[]",
727
+ name: "arr",
728
+ type: "address[]",
729
+ },
730
+ ],
731
+ stateMutability: "view",
732
+ type: "function",
733
+ },
734
+ {
735
+ inputs: [],
736
+ name: "getHooksTemplatesCount",
737
+ outputs: [
738
+ {
739
+ internalType: "uint256",
740
+ name: "",
741
+ type: "uint256",
742
+ },
743
+ ],
744
+ stateMutability: "view",
745
+ type: "function",
746
+ },
747
+ {
748
+ inputs: [],
749
+ name: "getMarketParameters",
750
+ outputs: [
751
+ {
752
+ components: [
753
+ {
754
+ internalType: "address",
755
+ name: "asset",
756
+ type: "address",
757
+ },
758
+ {
759
+ internalType: "uint8",
760
+ name: "decimals",
761
+ type: "uint8",
762
+ },
763
+ {
764
+ internalType: "bytes32",
765
+ name: "packedNameWord0",
766
+ type: "bytes32",
767
+ },
768
+ {
769
+ internalType: "bytes32",
770
+ name: "packedNameWord1",
771
+ type: "bytes32",
772
+ },
773
+ {
774
+ internalType: "bytes32",
775
+ name: "packedSymbolWord0",
776
+ type: "bytes32",
777
+ },
778
+ {
779
+ internalType: "bytes32",
780
+ name: "packedSymbolWord1",
781
+ type: "bytes32",
782
+ },
783
+ {
784
+ internalType: "address",
785
+ name: "borrower",
786
+ type: "address",
787
+ },
788
+ {
789
+ internalType: "address",
790
+ name: "feeRecipient",
791
+ type: "address",
792
+ },
793
+ {
794
+ internalType: "address",
795
+ name: "sentinel",
796
+ type: "address",
797
+ },
798
+ {
799
+ internalType: "uint128",
800
+ name: "maxTotalSupply",
801
+ type: "uint128",
802
+ },
803
+ {
804
+ internalType: "uint16",
805
+ name: "protocolFeeBips",
806
+ type: "uint16",
807
+ },
808
+ {
809
+ internalType: "uint16",
810
+ name: "annualInterestBips",
811
+ type: "uint16",
812
+ },
813
+ {
814
+ internalType: "uint16",
815
+ name: "delinquencyFeeBips",
816
+ type: "uint16",
817
+ },
818
+ {
819
+ internalType: "uint32",
820
+ name: "withdrawalBatchDuration",
821
+ type: "uint32",
822
+ },
823
+ {
824
+ internalType: "uint16",
825
+ name: "reserveRatioBips",
826
+ type: "uint16",
827
+ },
828
+ {
829
+ internalType: "uint32",
830
+ name: "delinquencyGracePeriod",
831
+ type: "uint32",
832
+ },
833
+ {
834
+ internalType: "address",
835
+ name: "archController",
836
+ type: "address",
837
+ },
838
+ {
839
+ internalType: "address",
840
+ name: "sphereXEngine",
841
+ type: "address",
842
+ },
843
+ {
844
+ internalType: "HooksConfig",
845
+ name: "hooks",
846
+ type: "uint256",
847
+ },
848
+ ],
849
+ internalType: "struct MarketParametersV2",
850
+ name: "parameters",
851
+ type: "tuple",
852
+ },
853
+ ],
854
+ stateMutability: "view",
855
+ type: "function",
856
+ },
857
+ {
858
+ inputs: [
859
+ {
860
+ internalType: "address",
861
+ name: "hooksInstance",
862
+ type: "address",
863
+ },
864
+ ],
865
+ name: "getMarketsForHooksInstance",
866
+ outputs: [
867
+ {
868
+ internalType: "address[]",
869
+ name: "",
870
+ type: "address[]",
871
+ },
872
+ ],
873
+ stateMutability: "view",
874
+ type: "function",
875
+ },
876
+ {
877
+ inputs: [
878
+ {
879
+ internalType: "address",
880
+ name: "hooksInstance",
881
+ type: "address",
882
+ },
883
+ {
884
+ internalType: "uint256",
885
+ name: "start",
886
+ type: "uint256",
887
+ },
888
+ {
889
+ internalType: "uint256",
890
+ name: "len",
891
+ type: "uint256",
892
+ },
893
+ ],
894
+ name: "getMarketsForHooksInstance",
895
+ outputs: [
896
+ {
897
+ internalType: "address[]",
898
+ name: "arr",
899
+ type: "address[]",
900
+ },
901
+ ],
902
+ stateMutability: "view",
903
+ type: "function",
904
+ },
905
+ {
906
+ inputs: [
907
+ {
908
+ internalType: "address",
909
+ name: "hooksInstance",
910
+ type: "address",
911
+ },
912
+ ],
913
+ name: "getMarketsForHooksInstanceCount",
914
+ outputs: [
915
+ {
916
+ internalType: "uint256",
917
+ name: "",
918
+ type: "uint256",
919
+ },
920
+ ],
921
+ stateMutability: "view",
922
+ type: "function",
923
+ },
924
+ {
925
+ inputs: [
926
+ {
927
+ internalType: "address",
928
+ name: "hooksTemplate",
929
+ type: "address",
930
+ },
931
+ ],
932
+ name: "getMarketsForHooksTemplate",
933
+ outputs: [
934
+ {
935
+ internalType: "address[]",
936
+ name: "",
937
+ type: "address[]",
938
+ },
939
+ ],
940
+ stateMutability: "view",
941
+ type: "function",
942
+ },
943
+ {
944
+ inputs: [
945
+ {
946
+ internalType: "address",
947
+ name: "hooksTemplate",
948
+ type: "address",
949
+ },
950
+ {
951
+ internalType: "uint256",
952
+ name: "start",
953
+ type: "uint256",
954
+ },
955
+ {
956
+ internalType: "uint256",
957
+ name: "end",
958
+ type: "uint256",
959
+ },
960
+ ],
961
+ name: "getMarketsForHooksTemplate",
962
+ outputs: [
963
+ {
964
+ internalType: "address[]",
965
+ name: "arr",
966
+ type: "address[]",
967
+ },
968
+ ],
969
+ stateMutability: "view",
970
+ type: "function",
971
+ },
972
+ {
973
+ inputs: [
974
+ {
975
+ internalType: "address",
976
+ name: "hooksTemplate",
977
+ type: "address",
978
+ },
979
+ ],
980
+ name: "getMarketsForHooksTemplateCount",
981
+ outputs: [
982
+ {
983
+ internalType: "uint256",
984
+ name: "",
985
+ type: "uint256",
986
+ },
987
+ ],
988
+ stateMutability: "view",
989
+ type: "function",
990
+ },
991
+ {
992
+ inputs: [
993
+ {
994
+ internalType: "address",
995
+ name: "hooks",
996
+ type: "address",
997
+ },
998
+ ],
999
+ name: "isHooksInstance",
1000
+ outputs: [
1001
+ {
1002
+ internalType: "bool",
1003
+ name: "",
1004
+ type: "bool",
1005
+ },
1006
+ ],
1007
+ stateMutability: "view",
1008
+ type: "function",
1009
+ },
1010
+ {
1011
+ inputs: [
1012
+ {
1013
+ internalType: "address",
1014
+ name: "hooksTemplate",
1015
+ type: "address",
1016
+ },
1017
+ ],
1018
+ name: "isHooksTemplate",
1019
+ outputs: [
1020
+ {
1021
+ internalType: "bool",
1022
+ name: "",
1023
+ type: "bool",
1024
+ },
1025
+ ],
1026
+ stateMutability: "view",
1027
+ type: "function",
1028
+ },
1029
+ {
1030
+ inputs: [],
1031
+ name: "marketInitCodeHash",
1032
+ outputs: [
1033
+ {
1034
+ internalType: "uint256",
1035
+ name: "",
1036
+ type: "uint256",
1037
+ },
1038
+ ],
1039
+ stateMutability: "view",
1040
+ type: "function",
1041
+ },
1042
+ {
1043
+ inputs: [],
1044
+ name: "marketInitCodeStorage",
1045
+ outputs: [
1046
+ {
1047
+ internalType: "address",
1048
+ name: "",
1049
+ type: "address",
1050
+ },
1051
+ ],
1052
+ stateMutability: "view",
1053
+ type: "function",
1054
+ },
1055
+ {
1056
+ inputs: [],
1057
+ name: "name",
1058
+ outputs: [
1059
+ {
1060
+ internalType: "string",
1061
+ name: "",
1062
+ type: "string",
1063
+ },
1064
+ ],
1065
+ stateMutability: "pure",
1066
+ type: "function",
1067
+ },
1068
+ {
1069
+ inputs: [
1070
+ {
1071
+ internalType: "address",
1072
+ name: "hooksTemplate",
1073
+ type: "address",
1074
+ },
1075
+ ],
1076
+ name: "pushProtocolFeeBipsUpdates",
1077
+ outputs: [],
1078
+ stateMutability: "nonpayable",
1079
+ type: "function",
1080
+ },
1081
+ {
1082
+ inputs: [
1083
+ {
1084
+ internalType: "address",
1085
+ name: "hooksTemplate",
1086
+ type: "address",
1087
+ },
1088
+ {
1089
+ internalType: "uint256",
1090
+ name: "marketStartIndex",
1091
+ type: "uint256",
1092
+ },
1093
+ {
1094
+ internalType: "uint256",
1095
+ name: "marketEndIndex",
1096
+ type: "uint256",
1097
+ },
1098
+ ],
1099
+ name: "pushProtocolFeeBipsUpdates",
1100
+ outputs: [],
1101
+ stateMutability: "nonpayable",
1102
+ type: "function",
1103
+ },
1104
+ {
1105
+ inputs: [],
1106
+ name: "registerWithArchController",
1107
+ outputs: [],
1108
+ stateMutability: "nonpayable",
1109
+ type: "function",
1110
+ },
1111
+ {
1112
+ inputs: [],
1113
+ name: "sanctionsSentinel",
1114
+ outputs: [
1115
+ {
1116
+ internalType: "address",
1117
+ name: "",
1118
+ type: "address",
1119
+ },
1120
+ ],
1121
+ stateMutability: "view",
1122
+ type: "function",
1123
+ },
1124
+ {
1125
+ inputs: [
1126
+ {
1127
+ internalType: "address",
1128
+ name: "hooksTemplate",
1129
+ type: "address",
1130
+ },
1131
+ {
1132
+ internalType: "address",
1133
+ name: "feeRecipient",
1134
+ type: "address",
1135
+ },
1136
+ {
1137
+ internalType: "address",
1138
+ name: "originationFeeAsset",
1139
+ type: "address",
1140
+ },
1141
+ {
1142
+ internalType: "uint80",
1143
+ name: "originationFeeAmount",
1144
+ type: "uint80",
1145
+ },
1146
+ {
1147
+ internalType: "uint16",
1148
+ name: "protocolFeeBips",
1149
+ type: "uint16",
1150
+ },
1151
+ ],
1152
+ name: "updateHooksTemplateFees",
1153
+ outputs: [],
1154
+ stateMutability: "nonpayable",
1155
+ type: "function",
1156
+ },
1157
+ ];
1158
+ class HooksFactory__factory {
1159
+ static createInterface() {
1160
+ return new ethers_1.utils.Interface(_abi);
1161
+ }
1162
+ static connect(address, signerOrProvider) {
1163
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
1164
+ }
1165
+ }
1166
+ HooksFactory__factory.abi = _abi;
1167
+ exports.HooksFactory__factory = HooksFactory__factory;
1168
+ //# sourceMappingURL=HooksFactory__factory.js.map