@wildcatfi/wildcat-sdk 3.0.3 → 3.0.4

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 (33) hide show
  1. package/dist/access/access-control.d.ts +9 -7
  2. package/dist/access/access-control.d.ts.map +1 -1
  3. package/dist/access/access-control.js +39 -16
  4. package/dist/access/access-control.js.map +1 -1
  5. package/dist/access/fixed-term.d.ts +9 -7
  6. package/dist/access/fixed-term.d.ts.map +1 -1
  7. package/dist/access/fixed-term.js +40 -17
  8. package/dist/access/fixed-term.js.map +1 -1
  9. package/dist/access/index.d.ts +7 -4
  10. package/dist/access/index.d.ts.map +1 -1
  11. package/dist/access/index.js +26 -1
  12. package/dist/access/index.js.map +1 -1
  13. package/dist/gql/getAllHooksDataForBorrower.d.ts +17 -0
  14. package/dist/gql/getAllHooksDataForBorrower.d.ts.map +1 -0
  15. package/dist/gql/getAllHooksDataForBorrower.js +32 -0
  16. package/dist/gql/getAllHooksDataForBorrower.js.map +1 -0
  17. package/dist/gql/graphql.d.ts +32 -8
  18. package/dist/gql/graphql.d.ts.map +1 -1
  19. package/dist/gql/graphql.js +41 -12
  20. package/dist/gql/graphql.js.map +1 -1
  21. package/dist/gql/index.d.ts +1 -0
  22. package/dist/gql/index.d.ts.map +1 -1
  23. package/dist/gql/index.js +1 -0
  24. package/dist/gql/index.js.map +1 -1
  25. package/dist/market.js +1 -1
  26. package/dist/market.js.map +1 -1
  27. package/dist/typechain/MarketLensV2.d.ts +4 -4
  28. package/dist/typechain/MarketLensV2.d.ts.map +1 -1
  29. package/dist/typechain/factories/MarketLensV2__factory.d.ts +810 -60
  30. package/dist/typechain/factories/MarketLensV2__factory.d.ts.map +1 -1
  31. package/dist/typechain/factories/MarketLensV2__factory.js +1031 -71
  32. package/dist/typechain/factories/MarketLensV2__factory.js.map +1 -1
  33. package/package.json +1 -1
@@ -381,20 +381,116 @@ const _abi = [
381
381
  name: "borrower",
382
382
  type: "address",
383
383
  },
384
+ {
385
+ internalType: "string",
386
+ name: "name",
387
+ type: "string",
388
+ },
384
389
  {
385
390
  internalType: "enum HooksInstanceKind",
386
391
  name: "kind",
387
392
  type: "uint8",
388
393
  },
389
394
  {
390
- internalType: "address",
395
+ components: [
396
+ {
397
+ internalType: "address",
398
+ name: "hooksTemplate",
399
+ type: "address",
400
+ },
401
+ {
402
+ components: [
403
+ {
404
+ internalType: "address",
405
+ name: "feeRecipient",
406
+ type: "address",
407
+ },
408
+ {
409
+ internalType: "uint16",
410
+ name: "protocolFeeBips",
411
+ type: "uint16",
412
+ },
413
+ {
414
+ components: [
415
+ {
416
+ internalType: "address",
417
+ name: "token",
418
+ type: "address",
419
+ },
420
+ {
421
+ internalType: "string",
422
+ name: "name",
423
+ type: "string",
424
+ },
425
+ {
426
+ internalType: "string",
427
+ name: "symbol",
428
+ type: "string",
429
+ },
430
+ {
431
+ internalType: "uint256",
432
+ name: "decimals",
433
+ type: "uint256",
434
+ },
435
+ {
436
+ internalType: "bool",
437
+ name: "isMock",
438
+ type: "bool",
439
+ },
440
+ ],
441
+ internalType: "struct TokenMetadata",
442
+ name: "originationFeeToken",
443
+ type: "tuple",
444
+ },
445
+ {
446
+ internalType: "uint256",
447
+ name: "originationFeeAmount",
448
+ type: "uint256",
449
+ },
450
+ {
451
+ internalType: "uint256",
452
+ name: "borrowerOriginationFeeBalance",
453
+ type: "uint256",
454
+ },
455
+ {
456
+ internalType: "uint256",
457
+ name: "borrowerOriginationFeeApproval",
458
+ type: "uint256",
459
+ },
460
+ ],
461
+ internalType: "struct FeeConfigurationV2",
462
+ name: "fees",
463
+ type: "tuple",
464
+ },
465
+ {
466
+ internalType: "bool",
467
+ name: "exists",
468
+ type: "bool",
469
+ },
470
+ {
471
+ internalType: "bool",
472
+ name: "enabled",
473
+ type: "bool",
474
+ },
475
+ {
476
+ internalType: "uint24",
477
+ name: "index",
478
+ type: "uint24",
479
+ },
480
+ {
481
+ internalType: "string",
482
+ name: "name",
483
+ type: "string",
484
+ },
485
+ {
486
+ internalType: "uint256",
487
+ name: "totalMarkets",
488
+ type: "uint256",
489
+ },
490
+ ],
491
+ internalType: "struct HooksTemplateData",
391
492
  name: "hooksTemplate",
392
- type: "address",
393
- },
394
- {
395
- internalType: "string",
396
- name: "hooksTemplateName",
397
- type: "string",
493
+ type: "tuple",
398
494
  },
399
495
  {
400
496
  components: [
@@ -902,20 +998,116 @@ const _abi = [
902
998
  name: "borrower",
903
999
  type: "address",
904
1000
  },
1001
+ {
1002
+ internalType: "string",
1003
+ name: "name",
1004
+ type: "string",
1005
+ },
905
1006
  {
906
1007
  internalType: "enum HooksInstanceKind",
907
1008
  name: "kind",
908
1009
  type: "uint8",
909
1010
  },
910
1011
  {
911
- internalType: "address",
1012
+ components: [
1013
+ {
1014
+ internalType: "address",
1015
+ name: "hooksTemplate",
1016
+ type: "address",
1017
+ },
1018
+ {
1019
+ components: [
1020
+ {
1021
+ internalType: "address",
1022
+ name: "feeRecipient",
1023
+ type: "address",
1024
+ },
1025
+ {
1026
+ internalType: "uint16",
1027
+ name: "protocolFeeBips",
1028
+ type: "uint16",
1029
+ },
1030
+ {
1031
+ components: [
1032
+ {
1033
+ internalType: "address",
1034
+ name: "token",
1035
+ type: "address",
1036
+ },
1037
+ {
1038
+ internalType: "string",
1039
+ name: "name",
1040
+ type: "string",
1041
+ },
1042
+ {
1043
+ internalType: "string",
1044
+ name: "symbol",
1045
+ type: "string",
1046
+ },
1047
+ {
1048
+ internalType: "uint256",
1049
+ name: "decimals",
1050
+ type: "uint256",
1051
+ },
1052
+ {
1053
+ internalType: "bool",
1054
+ name: "isMock",
1055
+ type: "bool",
1056
+ },
1057
+ ],
1058
+ internalType: "struct TokenMetadata",
1059
+ name: "originationFeeToken",
1060
+ type: "tuple",
1061
+ },
1062
+ {
1063
+ internalType: "uint256",
1064
+ name: "originationFeeAmount",
1065
+ type: "uint256",
1066
+ },
1067
+ {
1068
+ internalType: "uint256",
1069
+ name: "borrowerOriginationFeeBalance",
1070
+ type: "uint256",
1071
+ },
1072
+ {
1073
+ internalType: "uint256",
1074
+ name: "borrowerOriginationFeeApproval",
1075
+ type: "uint256",
1076
+ },
1077
+ ],
1078
+ internalType: "struct FeeConfigurationV2",
1079
+ name: "fees",
1080
+ type: "tuple",
1081
+ },
1082
+ {
1083
+ internalType: "bool",
1084
+ name: "exists",
1085
+ type: "bool",
1086
+ },
1087
+ {
1088
+ internalType: "bool",
1089
+ name: "enabled",
1090
+ type: "bool",
1091
+ },
1092
+ {
1093
+ internalType: "uint24",
1094
+ name: "index",
1095
+ type: "uint24",
1096
+ },
1097
+ {
1098
+ internalType: "string",
1099
+ name: "name",
1100
+ type: "string",
1101
+ },
1102
+ {
1103
+ internalType: "uint256",
1104
+ name: "totalMarkets",
1105
+ type: "uint256",
1106
+ },
1107
+ ],
1108
+ internalType: "struct HooksTemplateData",
912
1109
  name: "hooksTemplate",
913
- type: "address",
914
- },
915
- {
916
- internalType: "string",
917
- name: "hooksTemplateName",
918
- type: "string",
1110
+ type: "tuple",
919
1111
  },
920
1112
  {
921
1113
  components: [
@@ -1200,20 +1392,116 @@ const _abi = [
1200
1392
  name: "borrower",
1201
1393
  type: "address",
1202
1394
  },
1395
+ {
1396
+ internalType: "string",
1397
+ name: "name",
1398
+ type: "string",
1399
+ },
1203
1400
  {
1204
1401
  internalType: "enum HooksInstanceKind",
1205
1402
  name: "kind",
1206
1403
  type: "uint8",
1207
1404
  },
1208
1405
  {
1209
- internalType: "address",
1406
+ components: [
1407
+ {
1408
+ internalType: "address",
1409
+ name: "hooksTemplate",
1410
+ type: "address",
1411
+ },
1412
+ {
1413
+ components: [
1414
+ {
1415
+ internalType: "address",
1416
+ name: "feeRecipient",
1417
+ type: "address",
1418
+ },
1419
+ {
1420
+ internalType: "uint16",
1421
+ name: "protocolFeeBips",
1422
+ type: "uint16",
1423
+ },
1424
+ {
1425
+ components: [
1426
+ {
1427
+ internalType: "address",
1428
+ name: "token",
1429
+ type: "address",
1430
+ },
1431
+ {
1432
+ internalType: "string",
1433
+ name: "name",
1434
+ type: "string",
1435
+ },
1436
+ {
1437
+ internalType: "string",
1438
+ name: "symbol",
1439
+ type: "string",
1440
+ },
1441
+ {
1442
+ internalType: "uint256",
1443
+ name: "decimals",
1444
+ type: "uint256",
1445
+ },
1446
+ {
1447
+ internalType: "bool",
1448
+ name: "isMock",
1449
+ type: "bool",
1450
+ },
1451
+ ],
1452
+ internalType: "struct TokenMetadata",
1453
+ name: "originationFeeToken",
1454
+ type: "tuple",
1455
+ },
1456
+ {
1457
+ internalType: "uint256",
1458
+ name: "originationFeeAmount",
1459
+ type: "uint256",
1460
+ },
1461
+ {
1462
+ internalType: "uint256",
1463
+ name: "borrowerOriginationFeeBalance",
1464
+ type: "uint256",
1465
+ },
1466
+ {
1467
+ internalType: "uint256",
1468
+ name: "borrowerOriginationFeeApproval",
1469
+ type: "uint256",
1470
+ },
1471
+ ],
1472
+ internalType: "struct FeeConfigurationV2",
1473
+ name: "fees",
1474
+ type: "tuple",
1475
+ },
1476
+ {
1477
+ internalType: "bool",
1478
+ name: "exists",
1479
+ type: "bool",
1480
+ },
1481
+ {
1482
+ internalType: "bool",
1483
+ name: "enabled",
1484
+ type: "bool",
1485
+ },
1486
+ {
1487
+ internalType: "uint24",
1488
+ name: "index",
1489
+ type: "uint24",
1490
+ },
1491
+ {
1492
+ internalType: "string",
1493
+ name: "name",
1494
+ type: "string",
1495
+ },
1496
+ {
1497
+ internalType: "uint256",
1498
+ name: "totalMarkets",
1499
+ type: "uint256",
1500
+ },
1501
+ ],
1502
+ internalType: "struct HooksTemplateData",
1210
1503
  name: "hooksTemplate",
1211
- type: "address",
1212
- },
1213
- {
1214
- internalType: "string",
1215
- name: "hooksTemplateName",
1216
- type: "string",
1504
+ type: "tuple",
1217
1505
  },
1218
1506
  {
1219
1507
  components: [
@@ -2149,20 +2437,116 @@ const _abi = [
2149
2437
  name: "borrower",
2150
2438
  type: "address",
2151
2439
  },
2440
+ {
2441
+ internalType: "string",
2442
+ name: "name",
2443
+ type: "string",
2444
+ },
2152
2445
  {
2153
2446
  internalType: "enum HooksInstanceKind",
2154
2447
  name: "kind",
2155
2448
  type: "uint8",
2156
2449
  },
2157
2450
  {
2158
- internalType: "address",
2451
+ components: [
2452
+ {
2453
+ internalType: "address",
2454
+ name: "hooksTemplate",
2455
+ type: "address",
2456
+ },
2457
+ {
2458
+ components: [
2459
+ {
2460
+ internalType: "address",
2461
+ name: "feeRecipient",
2462
+ type: "address",
2463
+ },
2464
+ {
2465
+ internalType: "uint16",
2466
+ name: "protocolFeeBips",
2467
+ type: "uint16",
2468
+ },
2469
+ {
2470
+ components: [
2471
+ {
2472
+ internalType: "address",
2473
+ name: "token",
2474
+ type: "address",
2475
+ },
2476
+ {
2477
+ internalType: "string",
2478
+ name: "name",
2479
+ type: "string",
2480
+ },
2481
+ {
2482
+ internalType: "string",
2483
+ name: "symbol",
2484
+ type: "string",
2485
+ },
2486
+ {
2487
+ internalType: "uint256",
2488
+ name: "decimals",
2489
+ type: "uint256",
2490
+ },
2491
+ {
2492
+ internalType: "bool",
2493
+ name: "isMock",
2494
+ type: "bool",
2495
+ },
2496
+ ],
2497
+ internalType: "struct TokenMetadata",
2498
+ name: "originationFeeToken",
2499
+ type: "tuple",
2500
+ },
2501
+ {
2502
+ internalType: "uint256",
2503
+ name: "originationFeeAmount",
2504
+ type: "uint256",
2505
+ },
2506
+ {
2507
+ internalType: "uint256",
2508
+ name: "borrowerOriginationFeeBalance",
2509
+ type: "uint256",
2510
+ },
2511
+ {
2512
+ internalType: "uint256",
2513
+ name: "borrowerOriginationFeeApproval",
2514
+ type: "uint256",
2515
+ },
2516
+ ],
2517
+ internalType: "struct FeeConfigurationV2",
2518
+ name: "fees",
2519
+ type: "tuple",
2520
+ },
2521
+ {
2522
+ internalType: "bool",
2523
+ name: "exists",
2524
+ type: "bool",
2525
+ },
2526
+ {
2527
+ internalType: "bool",
2528
+ name: "enabled",
2529
+ type: "bool",
2530
+ },
2531
+ {
2532
+ internalType: "uint24",
2533
+ name: "index",
2534
+ type: "uint24",
2535
+ },
2536
+ {
2537
+ internalType: "string",
2538
+ name: "name",
2539
+ type: "string",
2540
+ },
2541
+ {
2542
+ internalType: "uint256",
2543
+ name: "totalMarkets",
2544
+ type: "uint256",
2545
+ },
2546
+ ],
2547
+ internalType: "struct HooksTemplateData",
2159
2548
  name: "hooksTemplate",
2160
- type: "address",
2161
- },
2162
- {
2163
- internalType: "string",
2164
- name: "hooksTemplateName",
2165
- type: "string",
2549
+ type: "tuple",
2166
2550
  },
2167
2551
  {
2168
2552
  components: [
@@ -2784,20 +3168,116 @@ const _abi = [
2784
3168
  name: "borrower",
2785
3169
  type: "address",
2786
3170
  },
3171
+ {
3172
+ internalType: "string",
3173
+ name: "name",
3174
+ type: "string",
3175
+ },
2787
3176
  {
2788
3177
  internalType: "enum HooksInstanceKind",
2789
3178
  name: "kind",
2790
3179
  type: "uint8",
2791
3180
  },
2792
3181
  {
2793
- internalType: "address",
3182
+ components: [
3183
+ {
3184
+ internalType: "address",
3185
+ name: "hooksTemplate",
3186
+ type: "address",
3187
+ },
3188
+ {
3189
+ components: [
3190
+ {
3191
+ internalType: "address",
3192
+ name: "feeRecipient",
3193
+ type: "address",
3194
+ },
3195
+ {
3196
+ internalType: "uint16",
3197
+ name: "protocolFeeBips",
3198
+ type: "uint16",
3199
+ },
3200
+ {
3201
+ components: [
3202
+ {
3203
+ internalType: "address",
3204
+ name: "token",
3205
+ type: "address",
3206
+ },
3207
+ {
3208
+ internalType: "string",
3209
+ name: "name",
3210
+ type: "string",
3211
+ },
3212
+ {
3213
+ internalType: "string",
3214
+ name: "symbol",
3215
+ type: "string",
3216
+ },
3217
+ {
3218
+ internalType: "uint256",
3219
+ name: "decimals",
3220
+ type: "uint256",
3221
+ },
3222
+ {
3223
+ internalType: "bool",
3224
+ name: "isMock",
3225
+ type: "bool",
3226
+ },
3227
+ ],
3228
+ internalType: "struct TokenMetadata",
3229
+ name: "originationFeeToken",
3230
+ type: "tuple",
3231
+ },
3232
+ {
3233
+ internalType: "uint256",
3234
+ name: "originationFeeAmount",
3235
+ type: "uint256",
3236
+ },
3237
+ {
3238
+ internalType: "uint256",
3239
+ name: "borrowerOriginationFeeBalance",
3240
+ type: "uint256",
3241
+ },
3242
+ {
3243
+ internalType: "uint256",
3244
+ name: "borrowerOriginationFeeApproval",
3245
+ type: "uint256",
3246
+ },
3247
+ ],
3248
+ internalType: "struct FeeConfigurationV2",
3249
+ name: "fees",
3250
+ type: "tuple",
3251
+ },
3252
+ {
3253
+ internalType: "bool",
3254
+ name: "exists",
3255
+ type: "bool",
3256
+ },
3257
+ {
3258
+ internalType: "bool",
3259
+ name: "enabled",
3260
+ type: "bool",
3261
+ },
3262
+ {
3263
+ internalType: "uint24",
3264
+ name: "index",
3265
+ type: "uint24",
3266
+ },
3267
+ {
3268
+ internalType: "string",
3269
+ name: "name",
3270
+ type: "string",
3271
+ },
3272
+ {
3273
+ internalType: "uint256",
3274
+ name: "totalMarkets",
3275
+ type: "uint256",
3276
+ },
3277
+ ],
3278
+ internalType: "struct HooksTemplateData",
2794
3279
  name: "hooksTemplate",
2795
- type: "address",
2796
- },
2797
- {
2798
- internalType: "string",
2799
- name: "hooksTemplateName",
2800
- type: "string",
3280
+ type: "tuple",
2801
3281
  },
2802
3282
  {
2803
3283
  components: [
@@ -3496,20 +3976,116 @@ const _abi = [
3496
3976
  name: "borrower",
3497
3977
  type: "address",
3498
3978
  },
3979
+ {
3980
+ internalType: "string",
3981
+ name: "name",
3982
+ type: "string",
3983
+ },
3499
3984
  {
3500
3985
  internalType: "enum HooksInstanceKind",
3501
3986
  name: "kind",
3502
3987
  type: "uint8",
3503
3988
  },
3504
3989
  {
3505
- internalType: "address",
3506
- name: "hooksTemplate",
3507
- type: "address",
3508
- },
3509
- {
3510
- internalType: "string",
3511
- name: "hooksTemplateName",
3512
- type: "string",
3990
+ components: [
3991
+ {
3992
+ internalType: "address",
3993
+ name: "hooksTemplate",
3994
+ type: "address",
3995
+ },
3996
+ {
3997
+ components: [
3998
+ {
3999
+ internalType: "address",
4000
+ name: "feeRecipient",
4001
+ type: "address",
4002
+ },
4003
+ {
4004
+ internalType: "uint16",
4005
+ name: "protocolFeeBips",
4006
+ type: "uint16",
4007
+ },
4008
+ {
4009
+ components: [
4010
+ {
4011
+ internalType: "address",
4012
+ name: "token",
4013
+ type: "address",
4014
+ },
4015
+ {
4016
+ internalType: "string",
4017
+ name: "name",
4018
+ type: "string",
4019
+ },
4020
+ {
4021
+ internalType: "string",
4022
+ name: "symbol",
4023
+ type: "string",
4024
+ },
4025
+ {
4026
+ internalType: "uint256",
4027
+ name: "decimals",
4028
+ type: "uint256",
4029
+ },
4030
+ {
4031
+ internalType: "bool",
4032
+ name: "isMock",
4033
+ type: "bool",
4034
+ },
4035
+ ],
4036
+ internalType: "struct TokenMetadata",
4037
+ name: "originationFeeToken",
4038
+ type: "tuple",
4039
+ },
4040
+ {
4041
+ internalType: "uint256",
4042
+ name: "originationFeeAmount",
4043
+ type: "uint256",
4044
+ },
4045
+ {
4046
+ internalType: "uint256",
4047
+ name: "borrowerOriginationFeeBalance",
4048
+ type: "uint256",
4049
+ },
4050
+ {
4051
+ internalType: "uint256",
4052
+ name: "borrowerOriginationFeeApproval",
4053
+ type: "uint256",
4054
+ },
4055
+ ],
4056
+ internalType: "struct FeeConfigurationV2",
4057
+ name: "fees",
4058
+ type: "tuple",
4059
+ },
4060
+ {
4061
+ internalType: "bool",
4062
+ name: "exists",
4063
+ type: "bool",
4064
+ },
4065
+ {
4066
+ internalType: "bool",
4067
+ name: "enabled",
4068
+ type: "bool",
4069
+ },
4070
+ {
4071
+ internalType: "uint24",
4072
+ name: "index",
4073
+ type: "uint24",
4074
+ },
4075
+ {
4076
+ internalType: "string",
4077
+ name: "name",
4078
+ type: "string",
4079
+ },
4080
+ {
4081
+ internalType: "uint256",
4082
+ name: "totalMarkets",
4083
+ type: "uint256",
4084
+ },
4085
+ ],
4086
+ internalType: "struct HooksTemplateData",
4087
+ name: "hooksTemplate",
4088
+ type: "tuple",
3513
4089
  },
3514
4090
  {
3515
4091
  components: [
@@ -4131,20 +4707,116 @@ const _abi = [
4131
4707
  name: "borrower",
4132
4708
  type: "address",
4133
4709
  },
4710
+ {
4711
+ internalType: "string",
4712
+ name: "name",
4713
+ type: "string",
4714
+ },
4134
4715
  {
4135
4716
  internalType: "enum HooksInstanceKind",
4136
4717
  name: "kind",
4137
4718
  type: "uint8",
4138
4719
  },
4139
4720
  {
4140
- internalType: "address",
4721
+ components: [
4722
+ {
4723
+ internalType: "address",
4724
+ name: "hooksTemplate",
4725
+ type: "address",
4726
+ },
4727
+ {
4728
+ components: [
4729
+ {
4730
+ internalType: "address",
4731
+ name: "feeRecipient",
4732
+ type: "address",
4733
+ },
4734
+ {
4735
+ internalType: "uint16",
4736
+ name: "protocolFeeBips",
4737
+ type: "uint16",
4738
+ },
4739
+ {
4740
+ components: [
4741
+ {
4742
+ internalType: "address",
4743
+ name: "token",
4744
+ type: "address",
4745
+ },
4746
+ {
4747
+ internalType: "string",
4748
+ name: "name",
4749
+ type: "string",
4750
+ },
4751
+ {
4752
+ internalType: "string",
4753
+ name: "symbol",
4754
+ type: "string",
4755
+ },
4756
+ {
4757
+ internalType: "uint256",
4758
+ name: "decimals",
4759
+ type: "uint256",
4760
+ },
4761
+ {
4762
+ internalType: "bool",
4763
+ name: "isMock",
4764
+ type: "bool",
4765
+ },
4766
+ ],
4767
+ internalType: "struct TokenMetadata",
4768
+ name: "originationFeeToken",
4769
+ type: "tuple",
4770
+ },
4771
+ {
4772
+ internalType: "uint256",
4773
+ name: "originationFeeAmount",
4774
+ type: "uint256",
4775
+ },
4776
+ {
4777
+ internalType: "uint256",
4778
+ name: "borrowerOriginationFeeBalance",
4779
+ type: "uint256",
4780
+ },
4781
+ {
4782
+ internalType: "uint256",
4783
+ name: "borrowerOriginationFeeApproval",
4784
+ type: "uint256",
4785
+ },
4786
+ ],
4787
+ internalType: "struct FeeConfigurationV2",
4788
+ name: "fees",
4789
+ type: "tuple",
4790
+ },
4791
+ {
4792
+ internalType: "bool",
4793
+ name: "exists",
4794
+ type: "bool",
4795
+ },
4796
+ {
4797
+ internalType: "bool",
4798
+ name: "enabled",
4799
+ type: "bool",
4800
+ },
4801
+ {
4802
+ internalType: "uint24",
4803
+ name: "index",
4804
+ type: "uint24",
4805
+ },
4806
+ {
4807
+ internalType: "string",
4808
+ name: "name",
4809
+ type: "string",
4810
+ },
4811
+ {
4812
+ internalType: "uint256",
4813
+ name: "totalMarkets",
4814
+ type: "uint256",
4815
+ },
4816
+ ],
4817
+ internalType: "struct HooksTemplateData",
4141
4818
  name: "hooksTemplate",
4142
- type: "address",
4143
- },
4144
- {
4145
- internalType: "string",
4146
- name: "hooksTemplateName",
4147
- type: "string",
4819
+ type: "tuple",
4148
4820
  },
4149
4821
  {
4150
4822
  components: [
@@ -4872,20 +5544,116 @@ const _abi = [
4872
5544
  name: "borrower",
4873
5545
  type: "address",
4874
5546
  },
5547
+ {
5548
+ internalType: "string",
5549
+ name: "name",
5550
+ type: "string",
5551
+ },
4875
5552
  {
4876
5553
  internalType: "enum HooksInstanceKind",
4877
5554
  name: "kind",
4878
5555
  type: "uint8",
4879
5556
  },
4880
5557
  {
4881
- internalType: "address",
5558
+ components: [
5559
+ {
5560
+ internalType: "address",
5561
+ name: "hooksTemplate",
5562
+ type: "address",
5563
+ },
5564
+ {
5565
+ components: [
5566
+ {
5567
+ internalType: "address",
5568
+ name: "feeRecipient",
5569
+ type: "address",
5570
+ },
5571
+ {
5572
+ internalType: "uint16",
5573
+ name: "protocolFeeBips",
5574
+ type: "uint16",
5575
+ },
5576
+ {
5577
+ components: [
5578
+ {
5579
+ internalType: "address",
5580
+ name: "token",
5581
+ type: "address",
5582
+ },
5583
+ {
5584
+ internalType: "string",
5585
+ name: "name",
5586
+ type: "string",
5587
+ },
5588
+ {
5589
+ internalType: "string",
5590
+ name: "symbol",
5591
+ type: "string",
5592
+ },
5593
+ {
5594
+ internalType: "uint256",
5595
+ name: "decimals",
5596
+ type: "uint256",
5597
+ },
5598
+ {
5599
+ internalType: "bool",
5600
+ name: "isMock",
5601
+ type: "bool",
5602
+ },
5603
+ ],
5604
+ internalType: "struct TokenMetadata",
5605
+ name: "originationFeeToken",
5606
+ type: "tuple",
5607
+ },
5608
+ {
5609
+ internalType: "uint256",
5610
+ name: "originationFeeAmount",
5611
+ type: "uint256",
5612
+ },
5613
+ {
5614
+ internalType: "uint256",
5615
+ name: "borrowerOriginationFeeBalance",
5616
+ type: "uint256",
5617
+ },
5618
+ {
5619
+ internalType: "uint256",
5620
+ name: "borrowerOriginationFeeApproval",
5621
+ type: "uint256",
5622
+ },
5623
+ ],
5624
+ internalType: "struct FeeConfigurationV2",
5625
+ name: "fees",
5626
+ type: "tuple",
5627
+ },
5628
+ {
5629
+ internalType: "bool",
5630
+ name: "exists",
5631
+ type: "bool",
5632
+ },
5633
+ {
5634
+ internalType: "bool",
5635
+ name: "enabled",
5636
+ type: "bool",
5637
+ },
5638
+ {
5639
+ internalType: "uint24",
5640
+ name: "index",
5641
+ type: "uint24",
5642
+ },
5643
+ {
5644
+ internalType: "string",
5645
+ name: "name",
5646
+ type: "string",
5647
+ },
5648
+ {
5649
+ internalType: "uint256",
5650
+ name: "totalMarkets",
5651
+ type: "uint256",
5652
+ },
5653
+ ],
5654
+ internalType: "struct HooksTemplateData",
4882
5655
  name: "hooksTemplate",
4883
- type: "address",
4884
- },
4885
- {
4886
- internalType: "string",
4887
- name: "hooksTemplateName",
4888
- type: "string",
5656
+ type: "tuple",
4889
5657
  },
4890
5658
  {
4891
5659
  components: [
@@ -6029,20 +6797,116 @@ const _abi = [
6029
6797
  name: "borrower",
6030
6798
  type: "address",
6031
6799
  },
6800
+ {
6801
+ internalType: "string",
6802
+ name: "name",
6803
+ type: "string",
6804
+ },
6032
6805
  {
6033
6806
  internalType: "enum HooksInstanceKind",
6034
6807
  name: "kind",
6035
6808
  type: "uint8",
6036
6809
  },
6037
6810
  {
6038
- internalType: "address",
6811
+ components: [
6812
+ {
6813
+ internalType: "address",
6814
+ name: "hooksTemplate",
6815
+ type: "address",
6816
+ },
6817
+ {
6818
+ components: [
6819
+ {
6820
+ internalType: "address",
6821
+ name: "feeRecipient",
6822
+ type: "address",
6823
+ },
6824
+ {
6825
+ internalType: "uint16",
6826
+ name: "protocolFeeBips",
6827
+ type: "uint16",
6828
+ },
6829
+ {
6830
+ components: [
6831
+ {
6832
+ internalType: "address",
6833
+ name: "token",
6834
+ type: "address",
6835
+ },
6836
+ {
6837
+ internalType: "string",
6838
+ name: "name",
6839
+ type: "string",
6840
+ },
6841
+ {
6842
+ internalType: "string",
6843
+ name: "symbol",
6844
+ type: "string",
6845
+ },
6846
+ {
6847
+ internalType: "uint256",
6848
+ name: "decimals",
6849
+ type: "uint256",
6850
+ },
6851
+ {
6852
+ internalType: "bool",
6853
+ name: "isMock",
6854
+ type: "bool",
6855
+ },
6856
+ ],
6857
+ internalType: "struct TokenMetadata",
6858
+ name: "originationFeeToken",
6859
+ type: "tuple",
6860
+ },
6861
+ {
6862
+ internalType: "uint256",
6863
+ name: "originationFeeAmount",
6864
+ type: "uint256",
6865
+ },
6866
+ {
6867
+ internalType: "uint256",
6868
+ name: "borrowerOriginationFeeBalance",
6869
+ type: "uint256",
6870
+ },
6871
+ {
6872
+ internalType: "uint256",
6873
+ name: "borrowerOriginationFeeApproval",
6874
+ type: "uint256",
6875
+ },
6876
+ ],
6877
+ internalType: "struct FeeConfigurationV2",
6878
+ name: "fees",
6879
+ type: "tuple",
6880
+ },
6881
+ {
6882
+ internalType: "bool",
6883
+ name: "exists",
6884
+ type: "bool",
6885
+ },
6886
+ {
6887
+ internalType: "bool",
6888
+ name: "enabled",
6889
+ type: "bool",
6890
+ },
6891
+ {
6892
+ internalType: "uint24",
6893
+ name: "index",
6894
+ type: "uint24",
6895
+ },
6896
+ {
6897
+ internalType: "string",
6898
+ name: "name",
6899
+ type: "string",
6900
+ },
6901
+ {
6902
+ internalType: "uint256",
6903
+ name: "totalMarkets",
6904
+ type: "uint256",
6905
+ },
6906
+ ],
6907
+ internalType: "struct HooksTemplateData",
6039
6908
  name: "hooksTemplate",
6040
- type: "address",
6041
- },
6042
- {
6043
- internalType: "string",
6044
- name: "hooksTemplateName",
6045
- type: "string",
6909
+ type: "tuple",
6046
6910
  },
6047
6911
  {
6048
6912
  components: [
@@ -6836,20 +7700,116 @@ const _abi = [
6836
7700
  name: "borrower",
6837
7701
  type: "address",
6838
7702
  },
7703
+ {
7704
+ internalType: "string",
7705
+ name: "name",
7706
+ type: "string",
7707
+ },
6839
7708
  {
6840
7709
  internalType: "enum HooksInstanceKind",
6841
7710
  name: "kind",
6842
7711
  type: "uint8",
6843
7712
  },
6844
7713
  {
6845
- internalType: "address",
7714
+ components: [
7715
+ {
7716
+ internalType: "address",
7717
+ name: "hooksTemplate",
7718
+ type: "address",
7719
+ },
7720
+ {
7721
+ components: [
7722
+ {
7723
+ internalType: "address",
7724
+ name: "feeRecipient",
7725
+ type: "address",
7726
+ },
7727
+ {
7728
+ internalType: "uint16",
7729
+ name: "protocolFeeBips",
7730
+ type: "uint16",
7731
+ },
7732
+ {
7733
+ components: [
7734
+ {
7735
+ internalType: "address",
7736
+ name: "token",
7737
+ type: "address",
7738
+ },
7739
+ {
7740
+ internalType: "string",
7741
+ name: "name",
7742
+ type: "string",
7743
+ },
7744
+ {
7745
+ internalType: "string",
7746
+ name: "symbol",
7747
+ type: "string",
7748
+ },
7749
+ {
7750
+ internalType: "uint256",
7751
+ name: "decimals",
7752
+ type: "uint256",
7753
+ },
7754
+ {
7755
+ internalType: "bool",
7756
+ name: "isMock",
7757
+ type: "bool",
7758
+ },
7759
+ ],
7760
+ internalType: "struct TokenMetadata",
7761
+ name: "originationFeeToken",
7762
+ type: "tuple",
7763
+ },
7764
+ {
7765
+ internalType: "uint256",
7766
+ name: "originationFeeAmount",
7767
+ type: "uint256",
7768
+ },
7769
+ {
7770
+ internalType: "uint256",
7771
+ name: "borrowerOriginationFeeBalance",
7772
+ type: "uint256",
7773
+ },
7774
+ {
7775
+ internalType: "uint256",
7776
+ name: "borrowerOriginationFeeApproval",
7777
+ type: "uint256",
7778
+ },
7779
+ ],
7780
+ internalType: "struct FeeConfigurationV2",
7781
+ name: "fees",
7782
+ type: "tuple",
7783
+ },
7784
+ {
7785
+ internalType: "bool",
7786
+ name: "exists",
7787
+ type: "bool",
7788
+ },
7789
+ {
7790
+ internalType: "bool",
7791
+ name: "enabled",
7792
+ type: "bool",
7793
+ },
7794
+ {
7795
+ internalType: "uint24",
7796
+ name: "index",
7797
+ type: "uint24",
7798
+ },
7799
+ {
7800
+ internalType: "string",
7801
+ name: "name",
7802
+ type: "string",
7803
+ },
7804
+ {
7805
+ internalType: "uint256",
7806
+ name: "totalMarkets",
7807
+ type: "uint256",
7808
+ },
7809
+ ],
7810
+ internalType: "struct HooksTemplateData",
6846
7811
  name: "hooksTemplate",
6847
- type: "address",
6848
- },
6849
- {
6850
- internalType: "string",
6851
- name: "hooksTemplateName",
6852
- type: "string",
7812
+ type: "tuple",
6853
7813
  },
6854
7814
  {
6855
7815
  components: [