@wildcatfi/wildcat-sdk 3.0.70-beta → 3.0.71-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abi/generated.d.ts +297 -0
- package/dist/abi/generated.d.ts.map +1 -1
- package/dist/abi/generated.js +381 -0
- package/dist/abi/generated.js.map +1 -1
- package/dist/access/access-control.d.ts +4 -3
- package/dist/access/access-control.d.ts.map +1 -1
- package/dist/access/access-control.js +10 -12
- package/dist/access/access-control.js.map +1 -1
- package/dist/access/fixed-term.d.ts +4 -3
- package/dist/access/fixed-term.d.ts.map +1 -1
- package/dist/access/fixed-term.js +22 -34
- package/dist/access/fixed-term.js.map +1 -1
- package/dist/access/index.d.ts +3 -2
- package/dist/access/index.d.ts.map +1 -1
- package/dist/access/index.js +3 -5
- package/dist/access/index.js.map +1 -1
- package/dist/access/subgraph-template.d.ts +14 -0
- package/dist/access/subgraph-template.d.ts.map +1 -0
- package/dist/access/subgraph-template.js +20 -0
- package/dist/access/subgraph-template.js.map +1 -0
- package/dist/account/index.d.ts +7 -2
- package/dist/account/index.d.ts.map +1 -1
- package/dist/account/index.js +46 -1
- package/dist/account/index.js.map +1 -1
- package/dist/account/validation.d.ts +1 -0
- package/dist/account/validation.d.ts.map +1 -1
- package/dist/account/validation.js +1 -0
- package/dist/account/validation.js.map +1 -1
- package/dist/constants.d.ts +14 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +76 -20
- package/dist/constants.js.map +1 -1
- package/dist/gql/getAllHooksDataForBorrower.d.ts.map +1 -1
- package/dist/gql/getAllHooksDataForBorrower.js +3 -1
- package/dist/gql/getAllHooksDataForBorrower.js.map +1 -1
- package/dist/gql/getAllHooksTemplates.d.ts.map +1 -1
- package/dist/gql/getAllHooksTemplates.js +3 -1
- package/dist/gql/getAllHooksTemplates.js.map +1 -1
- package/dist/gql/getLenderAccountsForAllMarkets.d.ts +8 -1
- package/dist/gql/getLenderAccountsForAllMarkets.d.ts.map +1 -1
- package/dist/gql/getLenderAccountsForAllMarkets.js +26 -11
- package/dist/gql/getLenderAccountsForAllMarkets.js.map +1 -1
- package/dist/gql/getMarketList.d.ts +16 -0
- package/dist/gql/getMarketList.d.ts.map +1 -0
- package/dist/gql/getMarketList.js +23 -0
- package/dist/gql/getMarketList.js.map +1 -0
- package/dist/gql/getMarketsForBorrower.d.ts.map +1 -1
- package/dist/gql/getMarketsForBorrower.js +32 -2
- package/dist/gql/getMarketsForBorrower.js.map +1 -1
- package/dist/gql/getMarketsWithEvents.d.ts.map +1 -1
- package/dist/gql/getMarketsWithEvents.js +28 -0
- package/dist/gql/getMarketsWithEvents.js.map +1 -1
- package/dist/gql/graphql.d.ts +181 -2
- package/dist/gql/graphql.d.ts.map +1 -1
- package/dist/gql/graphql.js +176 -8
- package/dist/gql/graphql.js.map +1 -1
- package/dist/gql/index.d.ts +1 -0
- package/dist/gql/index.d.ts.map +1 -1
- package/dist/gql/index.js +1 -0
- package/dist/gql/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/internal/market-lens.d.ts +3 -1
- package/dist/internal/market-lens.d.ts.map +1 -1
- package/dist/internal/market-lens.js +9 -1
- package/dist/internal/market-lens.js.map +1 -1
- package/dist/lens-types.d.ts +26 -0
- package/dist/lens-types.d.ts.map +1 -1
- package/dist/market.d.ts +32 -4
- package/dist/market.d.ts.map +1 -1
- package/dist/market.js +151 -40
- package/dist/market.js.map +1 -1
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +0 -1
- package/dist/utils/logger.js.map +1 -1
- package/package.json +1 -1
package/dist/abi/generated.js
CHANGED
|
@@ -31307,6 +31307,387 @@ exports.marketLensV2_5Abi = [
|
|
|
31307
31307
|
"stateMutability": "view",
|
|
31308
31308
|
"type": "function"
|
|
31309
31309
|
},
|
|
31310
|
+
{
|
|
31311
|
+
"inputs": [
|
|
31312
|
+
{
|
|
31313
|
+
"internalType": "address[]",
|
|
31314
|
+
"name": "markets",
|
|
31315
|
+
"type": "address[]"
|
|
31316
|
+
}
|
|
31317
|
+
],
|
|
31318
|
+
"name": "getMarketsLiveDataV2",
|
|
31319
|
+
"outputs": [
|
|
31320
|
+
{
|
|
31321
|
+
"components": [
|
|
31322
|
+
{
|
|
31323
|
+
"internalType": "address",
|
|
31324
|
+
"name": "market",
|
|
31325
|
+
"type": "address"
|
|
31326
|
+
},
|
|
31327
|
+
{
|
|
31328
|
+
"internalType": "bool",
|
|
31329
|
+
"name": "isClosed",
|
|
31330
|
+
"type": "bool"
|
|
31331
|
+
},
|
|
31332
|
+
{
|
|
31333
|
+
"internalType": "uint256",
|
|
31334
|
+
"name": "protocolFeeBips",
|
|
31335
|
+
"type": "uint256"
|
|
31336
|
+
},
|
|
31337
|
+
{
|
|
31338
|
+
"internalType": "uint256",
|
|
31339
|
+
"name": "reserveRatioBips",
|
|
31340
|
+
"type": "uint256"
|
|
31341
|
+
},
|
|
31342
|
+
{
|
|
31343
|
+
"internalType": "uint256",
|
|
31344
|
+
"name": "annualInterestBips",
|
|
31345
|
+
"type": "uint256"
|
|
31346
|
+
},
|
|
31347
|
+
{
|
|
31348
|
+
"internalType": "uint256",
|
|
31349
|
+
"name": "scaleFactor",
|
|
31350
|
+
"type": "uint256"
|
|
31351
|
+
},
|
|
31352
|
+
{
|
|
31353
|
+
"internalType": "uint256",
|
|
31354
|
+
"name": "totalSupply",
|
|
31355
|
+
"type": "uint256"
|
|
31356
|
+
},
|
|
31357
|
+
{
|
|
31358
|
+
"internalType": "uint256",
|
|
31359
|
+
"name": "maxTotalSupply",
|
|
31360
|
+
"type": "uint256"
|
|
31361
|
+
},
|
|
31362
|
+
{
|
|
31363
|
+
"internalType": "uint256",
|
|
31364
|
+
"name": "scaledTotalSupply",
|
|
31365
|
+
"type": "uint256"
|
|
31366
|
+
},
|
|
31367
|
+
{
|
|
31368
|
+
"internalType": "uint256",
|
|
31369
|
+
"name": "totalAssets",
|
|
31370
|
+
"type": "uint256"
|
|
31371
|
+
},
|
|
31372
|
+
{
|
|
31373
|
+
"internalType": "uint256",
|
|
31374
|
+
"name": "lastAccruedProtocolFees",
|
|
31375
|
+
"type": "uint256"
|
|
31376
|
+
},
|
|
31377
|
+
{
|
|
31378
|
+
"internalType": "uint256",
|
|
31379
|
+
"name": "normalizedUnclaimedWithdrawals",
|
|
31380
|
+
"type": "uint256"
|
|
31381
|
+
},
|
|
31382
|
+
{
|
|
31383
|
+
"internalType": "uint256",
|
|
31384
|
+
"name": "scaledPendingWithdrawals",
|
|
31385
|
+
"type": "uint256"
|
|
31386
|
+
},
|
|
31387
|
+
{
|
|
31388
|
+
"internalType": "uint256",
|
|
31389
|
+
"name": "pendingWithdrawalExpiry",
|
|
31390
|
+
"type": "uint256"
|
|
31391
|
+
},
|
|
31392
|
+
{
|
|
31393
|
+
"internalType": "bool",
|
|
31394
|
+
"name": "isDelinquent",
|
|
31395
|
+
"type": "bool"
|
|
31396
|
+
},
|
|
31397
|
+
{
|
|
31398
|
+
"internalType": "uint256",
|
|
31399
|
+
"name": "timeDelinquent",
|
|
31400
|
+
"type": "uint256"
|
|
31401
|
+
},
|
|
31402
|
+
{
|
|
31403
|
+
"internalType": "uint256",
|
|
31404
|
+
"name": "lastInterestAccruedTimestamp",
|
|
31405
|
+
"type": "uint256"
|
|
31406
|
+
},
|
|
31407
|
+
{
|
|
31408
|
+
"internalType": "uint256",
|
|
31409
|
+
"name": "coverageLiquidity",
|
|
31410
|
+
"type": "uint256"
|
|
31411
|
+
},
|
|
31412
|
+
{
|
|
31413
|
+
"components": [
|
|
31414
|
+
{
|
|
31415
|
+
"internalType": "bool",
|
|
31416
|
+
"name": "isPresent",
|
|
31417
|
+
"type": "bool"
|
|
31418
|
+
},
|
|
31419
|
+
{
|
|
31420
|
+
"internalType": "uint256",
|
|
31421
|
+
"name": "value",
|
|
31422
|
+
"type": "uint256"
|
|
31423
|
+
}
|
|
31424
|
+
],
|
|
31425
|
+
"internalType": "struct OptionalUintDataV2_5",
|
|
31426
|
+
"name": "commitmentFeeBips",
|
|
31427
|
+
"type": "tuple"
|
|
31428
|
+
},
|
|
31429
|
+
{
|
|
31430
|
+
"components": [
|
|
31431
|
+
{
|
|
31432
|
+
"internalType": "bool",
|
|
31433
|
+
"name": "isPresent",
|
|
31434
|
+
"type": "bool"
|
|
31435
|
+
},
|
|
31436
|
+
{
|
|
31437
|
+
"internalType": "uint256",
|
|
31438
|
+
"name": "value",
|
|
31439
|
+
"type": "uint256"
|
|
31440
|
+
}
|
|
31441
|
+
],
|
|
31442
|
+
"internalType": "struct OptionalUintDataV2_5",
|
|
31443
|
+
"name": "drawnAmount",
|
|
31444
|
+
"type": "tuple"
|
|
31445
|
+
}
|
|
31446
|
+
],
|
|
31447
|
+
"internalType": "struct MarketLiveDataV2_5[]",
|
|
31448
|
+
"name": "data",
|
|
31449
|
+
"type": "tuple[]"
|
|
31450
|
+
}
|
|
31451
|
+
],
|
|
31452
|
+
"stateMutability": "view",
|
|
31453
|
+
"type": "function"
|
|
31454
|
+
},
|
|
31455
|
+
{
|
|
31456
|
+
"inputs": [
|
|
31457
|
+
{
|
|
31458
|
+
"internalType": "address",
|
|
31459
|
+
"name": "lender",
|
|
31460
|
+
"type": "address"
|
|
31461
|
+
},
|
|
31462
|
+
{
|
|
31463
|
+
"internalType": "address[]",
|
|
31464
|
+
"name": "markets",
|
|
31465
|
+
"type": "address[]"
|
|
31466
|
+
}
|
|
31467
|
+
],
|
|
31468
|
+
"name": "getMarketsLiveDataWithLenderStatusV2",
|
|
31469
|
+
"outputs": [
|
|
31470
|
+
{
|
|
31471
|
+
"components": [
|
|
31472
|
+
{
|
|
31473
|
+
"components": [
|
|
31474
|
+
{
|
|
31475
|
+
"internalType": "address",
|
|
31476
|
+
"name": "market",
|
|
31477
|
+
"type": "address"
|
|
31478
|
+
},
|
|
31479
|
+
{
|
|
31480
|
+
"internalType": "bool",
|
|
31481
|
+
"name": "isClosed",
|
|
31482
|
+
"type": "bool"
|
|
31483
|
+
},
|
|
31484
|
+
{
|
|
31485
|
+
"internalType": "uint256",
|
|
31486
|
+
"name": "protocolFeeBips",
|
|
31487
|
+
"type": "uint256"
|
|
31488
|
+
},
|
|
31489
|
+
{
|
|
31490
|
+
"internalType": "uint256",
|
|
31491
|
+
"name": "reserveRatioBips",
|
|
31492
|
+
"type": "uint256"
|
|
31493
|
+
},
|
|
31494
|
+
{
|
|
31495
|
+
"internalType": "uint256",
|
|
31496
|
+
"name": "annualInterestBips",
|
|
31497
|
+
"type": "uint256"
|
|
31498
|
+
},
|
|
31499
|
+
{
|
|
31500
|
+
"internalType": "uint256",
|
|
31501
|
+
"name": "scaleFactor",
|
|
31502
|
+
"type": "uint256"
|
|
31503
|
+
},
|
|
31504
|
+
{
|
|
31505
|
+
"internalType": "uint256",
|
|
31506
|
+
"name": "totalSupply",
|
|
31507
|
+
"type": "uint256"
|
|
31508
|
+
},
|
|
31509
|
+
{
|
|
31510
|
+
"internalType": "uint256",
|
|
31511
|
+
"name": "maxTotalSupply",
|
|
31512
|
+
"type": "uint256"
|
|
31513
|
+
},
|
|
31514
|
+
{
|
|
31515
|
+
"internalType": "uint256",
|
|
31516
|
+
"name": "scaledTotalSupply",
|
|
31517
|
+
"type": "uint256"
|
|
31518
|
+
},
|
|
31519
|
+
{
|
|
31520
|
+
"internalType": "uint256",
|
|
31521
|
+
"name": "totalAssets",
|
|
31522
|
+
"type": "uint256"
|
|
31523
|
+
},
|
|
31524
|
+
{
|
|
31525
|
+
"internalType": "uint256",
|
|
31526
|
+
"name": "lastAccruedProtocolFees",
|
|
31527
|
+
"type": "uint256"
|
|
31528
|
+
},
|
|
31529
|
+
{
|
|
31530
|
+
"internalType": "uint256",
|
|
31531
|
+
"name": "normalizedUnclaimedWithdrawals",
|
|
31532
|
+
"type": "uint256"
|
|
31533
|
+
},
|
|
31534
|
+
{
|
|
31535
|
+
"internalType": "uint256",
|
|
31536
|
+
"name": "scaledPendingWithdrawals",
|
|
31537
|
+
"type": "uint256"
|
|
31538
|
+
},
|
|
31539
|
+
{
|
|
31540
|
+
"internalType": "uint256",
|
|
31541
|
+
"name": "pendingWithdrawalExpiry",
|
|
31542
|
+
"type": "uint256"
|
|
31543
|
+
},
|
|
31544
|
+
{
|
|
31545
|
+
"internalType": "bool",
|
|
31546
|
+
"name": "isDelinquent",
|
|
31547
|
+
"type": "bool"
|
|
31548
|
+
},
|
|
31549
|
+
{
|
|
31550
|
+
"internalType": "uint256",
|
|
31551
|
+
"name": "timeDelinquent",
|
|
31552
|
+
"type": "uint256"
|
|
31553
|
+
},
|
|
31554
|
+
{
|
|
31555
|
+
"internalType": "uint256",
|
|
31556
|
+
"name": "lastInterestAccruedTimestamp",
|
|
31557
|
+
"type": "uint256"
|
|
31558
|
+
},
|
|
31559
|
+
{
|
|
31560
|
+
"internalType": "uint256",
|
|
31561
|
+
"name": "coverageLiquidity",
|
|
31562
|
+
"type": "uint256"
|
|
31563
|
+
},
|
|
31564
|
+
{
|
|
31565
|
+
"components": [
|
|
31566
|
+
{
|
|
31567
|
+
"internalType": "bool",
|
|
31568
|
+
"name": "isPresent",
|
|
31569
|
+
"type": "bool"
|
|
31570
|
+
},
|
|
31571
|
+
{
|
|
31572
|
+
"internalType": "uint256",
|
|
31573
|
+
"name": "value",
|
|
31574
|
+
"type": "uint256"
|
|
31575
|
+
}
|
|
31576
|
+
],
|
|
31577
|
+
"internalType": "struct OptionalUintDataV2_5",
|
|
31578
|
+
"name": "commitmentFeeBips",
|
|
31579
|
+
"type": "tuple"
|
|
31580
|
+
},
|
|
31581
|
+
{
|
|
31582
|
+
"components": [
|
|
31583
|
+
{
|
|
31584
|
+
"internalType": "bool",
|
|
31585
|
+
"name": "isPresent",
|
|
31586
|
+
"type": "bool"
|
|
31587
|
+
},
|
|
31588
|
+
{
|
|
31589
|
+
"internalType": "uint256",
|
|
31590
|
+
"name": "value",
|
|
31591
|
+
"type": "uint256"
|
|
31592
|
+
}
|
|
31593
|
+
],
|
|
31594
|
+
"internalType": "struct OptionalUintDataV2_5",
|
|
31595
|
+
"name": "drawnAmount",
|
|
31596
|
+
"type": "tuple"
|
|
31597
|
+
}
|
|
31598
|
+
],
|
|
31599
|
+
"internalType": "struct MarketLiveDataV2_5",
|
|
31600
|
+
"name": "market",
|
|
31601
|
+
"type": "tuple"
|
|
31602
|
+
},
|
|
31603
|
+
{
|
|
31604
|
+
"components": [
|
|
31605
|
+
{
|
|
31606
|
+
"internalType": "address",
|
|
31607
|
+
"name": "lender",
|
|
31608
|
+
"type": "address"
|
|
31609
|
+
},
|
|
31610
|
+
{
|
|
31611
|
+
"internalType": "uint256",
|
|
31612
|
+
"name": "scaledBalance",
|
|
31613
|
+
"type": "uint256"
|
|
31614
|
+
},
|
|
31615
|
+
{
|
|
31616
|
+
"internalType": "uint256",
|
|
31617
|
+
"name": "normalizedBalance",
|
|
31618
|
+
"type": "uint256"
|
|
31619
|
+
},
|
|
31620
|
+
{
|
|
31621
|
+
"internalType": "uint256",
|
|
31622
|
+
"name": "underlyingBalance",
|
|
31623
|
+
"type": "uint256"
|
|
31624
|
+
},
|
|
31625
|
+
{
|
|
31626
|
+
"internalType": "uint256",
|
|
31627
|
+
"name": "underlyingApproval",
|
|
31628
|
+
"type": "uint256"
|
|
31629
|
+
},
|
|
31630
|
+
{
|
|
31631
|
+
"internalType": "bool",
|
|
31632
|
+
"name": "isBlockedFromDeposits",
|
|
31633
|
+
"type": "bool"
|
|
31634
|
+
},
|
|
31635
|
+
{
|
|
31636
|
+
"components": [
|
|
31637
|
+
{
|
|
31638
|
+
"internalType": "uint32",
|
|
31639
|
+
"name": "timeToLive",
|
|
31640
|
+
"type": "uint32"
|
|
31641
|
+
},
|
|
31642
|
+
{
|
|
31643
|
+
"internalType": "address",
|
|
31644
|
+
"name": "providerAddress",
|
|
31645
|
+
"type": "address"
|
|
31646
|
+
},
|
|
31647
|
+
{
|
|
31648
|
+
"internalType": "uint24",
|
|
31649
|
+
"name": "pullProviderIndex",
|
|
31650
|
+
"type": "uint24"
|
|
31651
|
+
},
|
|
31652
|
+
{
|
|
31653
|
+
"internalType": "uint24",
|
|
31654
|
+
"name": "pushProviderIndex",
|
|
31655
|
+
"type": "uint24"
|
|
31656
|
+
}
|
|
31657
|
+
],
|
|
31658
|
+
"internalType": "struct RoleProviderDataV2_5",
|
|
31659
|
+
"name": "lastProvider",
|
|
31660
|
+
"type": "tuple"
|
|
31661
|
+
},
|
|
31662
|
+
{
|
|
31663
|
+
"internalType": "bool",
|
|
31664
|
+
"name": "canRefresh",
|
|
31665
|
+
"type": "bool"
|
|
31666
|
+
},
|
|
31667
|
+
{
|
|
31668
|
+
"internalType": "uint32",
|
|
31669
|
+
"name": "lastApprovalTimestamp",
|
|
31670
|
+
"type": "uint32"
|
|
31671
|
+
},
|
|
31672
|
+
{
|
|
31673
|
+
"internalType": "bool",
|
|
31674
|
+
"name": "isKnownLender",
|
|
31675
|
+
"type": "bool"
|
|
31676
|
+
}
|
|
31677
|
+
],
|
|
31678
|
+
"internalType": "struct LenderAccountDataV2_5",
|
|
31679
|
+
"name": "lenderStatus",
|
|
31680
|
+
"type": "tuple"
|
|
31681
|
+
}
|
|
31682
|
+
],
|
|
31683
|
+
"internalType": "struct MarketLiveDataWithLenderStatusV2_5[]",
|
|
31684
|
+
"name": "data",
|
|
31685
|
+
"type": "tuple[]"
|
|
31686
|
+
}
|
|
31687
|
+
],
|
|
31688
|
+
"stateMutability": "view",
|
|
31689
|
+
"type": "function"
|
|
31690
|
+
},
|
|
31310
31691
|
{
|
|
31311
31692
|
"inputs": [
|
|
31312
31693
|
{
|