@berachain/graphql 0.2.3 → 0.2.4-beta.2
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/bend/whisk.codegen.cjs +257 -17
- package/dist/bend/whisk.codegen.d.cts +331 -1
- package/dist/bend/whisk.codegen.d.ts +331 -1
- package/dist/bend/whisk.codegen.mjs +255 -15
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var y=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var w=Object.prototype.hasOwnProperty;var T=(o,n)=>{for(var r in n)y(o,r,{get:n[r],enumerable:!0})},f=(o,n,r,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let u of x(n))!w.call(o,u)&&u!==r&&y(o,u,{get:()=>n[u],enumerable:!(t=I(n,u))||t.enumerable});return o};var C=o=>f(y({},"__esModule",{value:!0}),o);var U={};T(U,{ApyFragment:()=>i,ApySide:()=>c,ApyTimeframe:()=>_,ChainInfoFragment:()=>l,CuratorInfoFragment:()=>d,Erc4626VaultProtocol:()=>g,IdentityResolver:()=>b,Market:()=>P,MarketHistoryData:()=>O,MarketIbrHistoryData:()=>q,MarketPositions:()=>F,MarketSummaries:()=>$,MarketSummaryFragment:()=>A,MerklAction:()=>h,SupportedMarketIds:()=>E,TokenCategory:()=>k,TokenInfoFragment:()=>p,Vault:()=>v,VaultHistoryData:()=>B,VaultMarketAllocationHistoryData:()=>Q,VaultPositions:()=>H,VaultProtocol:()=>M,VaultSummaries:()=>V,VaultSummaryFragment:()=>m,VaultType:()=>S,default:()=>L});module.exports=C(U);var e=require("@apollo/client"),c=(r=>(r.Borrow="Borrow",r.Supply="Supply",r))(c||{}),_=(t=>(t.OneDay="one_day",t.SevenDays="seven_days",t.ThirtyDays="thirty_days",t))(_||{}),g=(t=>(t.Generic="generic",t.MorphoV1="morpho_v1",t.MorphoV2="morpho_v2",t))(g||{}),b=(s=>(s.Base="base",s.Ens="ens",s.Farcaster="farcaster",s.Lens="lens",s.Nns="nns",s.Uni="uni",s.World="world",s))(b||{}),h=(r=>(r.Borrow="Borrow",r.Lend="Lend",r))(h||{}),k=(t=>(t.Btc="Btc",t.Eth="Eth",t.Stable="Stable",t))(k||{}),M=(a=>(a.Enzyme="enzyme",a.EulerEarn="euler_earn",a.EulerV2="euler_v2",a.Gearbox="gearbox",a.Lista="lista",a.Mellow="mellow",a.Midas="midas",a.Morpho="morpho",a.Napier="napier",a.Pendle="pendle",a.Reserve="reserve",a.Silo="silo",a.TurtleClub="turtle_club",a))(M||{}),S=(t=>(t.Index="index",t.Lending="lending",t.Staking="staking",t))(S||{}),l=e.gql`
|
|
2
2
|
fragment ChainInfoFragment on Chain {
|
|
3
3
|
id
|
|
4
4
|
name
|
|
5
5
|
icon
|
|
6
6
|
}
|
|
7
|
-
`,
|
|
7
|
+
`,p=e.gql`
|
|
8
8
|
fragment TokenInfoFragment on Token {
|
|
9
9
|
address
|
|
10
10
|
symbol
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
icon
|
|
13
13
|
category
|
|
14
14
|
}
|
|
15
|
-
`,
|
|
15
|
+
`,d=e.gql`
|
|
16
16
|
fragment CuratorInfoFragment on Curator {
|
|
17
17
|
name
|
|
18
18
|
image
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
total
|
|
31
31
|
fee
|
|
32
32
|
}
|
|
33
|
-
${
|
|
33
|
+
${p}`,m=e.gql`
|
|
34
34
|
fragment VaultSummaryFragment on MorphoVault {
|
|
35
35
|
chain {
|
|
36
36
|
...ChainInfoFragment
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
${l}
|
|
83
|
-
${
|
|
84
|
-
${
|
|
85
|
-
${i}`,
|
|
83
|
+
${p}
|
|
84
|
+
${d}
|
|
85
|
+
${i}`,A=e.gql`
|
|
86
86
|
fragment MarketSummaryFragment on MorphoMarket {
|
|
87
87
|
chain {
|
|
88
88
|
...ChainInfoFragment
|
|
@@ -138,7 +138,7 @@ ${i}`,c=e.gql`
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
${l}
|
|
141
|
-
${
|
|
141
|
+
${p}
|
|
142
142
|
${i}`,V=e.gql`
|
|
143
143
|
query VaultSummaries($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
|
|
144
144
|
morphoVaults(
|
|
@@ -153,7 +153,7 @@ ${i}`,V=e.gql`
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
${m}
|
|
156
|
+
${m}`,$=e.gql`
|
|
157
157
|
query MarketSummaries($chainIds: [ChainId!]!, $marketIds: [Hex!]!) {
|
|
158
158
|
morphoMarkets(
|
|
159
159
|
where: {chainId_in: $chainIds, marketId_in: $marketIds}
|
|
@@ -167,7 +167,7 @@ ${i}`,V=e.gql`
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
${
|
|
170
|
+
${A}`,v=e.gql`
|
|
171
171
|
query Vault($chainId: ChainId!, $vaultAddress: Address!) {
|
|
172
172
|
morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultAddress]}) {
|
|
173
173
|
items {
|
|
@@ -256,8 +256,8 @@ ${i}`,V=e.gql`
|
|
|
256
256
|
}
|
|
257
257
|
${m}
|
|
258
258
|
${l}
|
|
259
|
-
${
|
|
260
|
-
${i}
|
|
259
|
+
${p}
|
|
260
|
+
${i}`,P=e.gql`
|
|
261
261
|
query Market($chainId: ChainId!, $marketId: Hex!) {
|
|
262
262
|
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
263
263
|
items {
|
|
@@ -341,10 +341,10 @@ ${i}`,$=e.gql`
|
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
-
${
|
|
345
|
-
${
|
|
344
|
+
${A}
|
|
345
|
+
${p}
|
|
346
346
|
${l}
|
|
347
|
-
${
|
|
347
|
+
${d}`,H=e.gql`
|
|
348
348
|
query VaultPositions($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!, $accountAddress: Address!) {
|
|
349
349
|
morphoVaultPositions(
|
|
350
350
|
where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses, accountAddress_in: [$accountAddress]}
|
|
@@ -372,7 +372,7 @@ ${y}`,F=e.gql`
|
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
|
-
`,
|
|
375
|
+
`,F=e.gql`
|
|
376
376
|
query MarketPositions($chainIds: [ChainId!]!, $marketIds: [Hex!]!, $accountAddress: Address!) {
|
|
377
377
|
morphoMarketPositions(
|
|
378
378
|
where: {chainId_in: $chainIds, marketId_in: $marketIds, accountAddress_in: [$accountAddress]}
|
|
@@ -430,4 +430,244 @@ ${y}`,F=e.gql`
|
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
|
-
`,B=
|
|
433
|
+
`,B=e.gql`
|
|
434
|
+
query VaultHistoryData($chainId: ChainId!, $vaultId: Address!) {
|
|
435
|
+
morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultId]}) {
|
|
436
|
+
items {
|
|
437
|
+
historical {
|
|
438
|
+
daily {
|
|
439
|
+
supplyApy1d {
|
|
440
|
+
total
|
|
441
|
+
}
|
|
442
|
+
supplyApy30d {
|
|
443
|
+
total
|
|
444
|
+
}
|
|
445
|
+
supplyApy7d {
|
|
446
|
+
total
|
|
447
|
+
}
|
|
448
|
+
totalSupplied {
|
|
449
|
+
usd
|
|
450
|
+
raw
|
|
451
|
+
formatted
|
|
452
|
+
}
|
|
453
|
+
bucketTimestamp
|
|
454
|
+
}
|
|
455
|
+
hourly {
|
|
456
|
+
supplyApy1d {
|
|
457
|
+
total
|
|
458
|
+
}
|
|
459
|
+
supplyApy30d {
|
|
460
|
+
total
|
|
461
|
+
}
|
|
462
|
+
supplyApy7d {
|
|
463
|
+
total
|
|
464
|
+
}
|
|
465
|
+
totalSupplied {
|
|
466
|
+
usd
|
|
467
|
+
raw
|
|
468
|
+
formatted
|
|
469
|
+
}
|
|
470
|
+
bucketTimestamp
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
`,Q=e.gql`
|
|
477
|
+
query VaultMarketAllocationHistoryData($chainId: ChainId!, $vaultId: Address!) {
|
|
478
|
+
morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultId]}) {
|
|
479
|
+
items {
|
|
480
|
+
marketAllocations {
|
|
481
|
+
market {
|
|
482
|
+
historical {
|
|
483
|
+
daily {
|
|
484
|
+
bucketTimestamp
|
|
485
|
+
borrowApy1d {
|
|
486
|
+
total
|
|
487
|
+
}
|
|
488
|
+
borrowApy30d {
|
|
489
|
+
total
|
|
490
|
+
}
|
|
491
|
+
borrowApy7d {
|
|
492
|
+
total
|
|
493
|
+
}
|
|
494
|
+
supplyApy1d {
|
|
495
|
+
total
|
|
496
|
+
}
|
|
497
|
+
supplyApy7d {
|
|
498
|
+
total
|
|
499
|
+
}
|
|
500
|
+
supplyApy30d {
|
|
501
|
+
total
|
|
502
|
+
}
|
|
503
|
+
totalBorrowed {
|
|
504
|
+
formatted
|
|
505
|
+
raw
|
|
506
|
+
usd
|
|
507
|
+
}
|
|
508
|
+
totalCollateral {
|
|
509
|
+
formatted
|
|
510
|
+
raw
|
|
511
|
+
usd
|
|
512
|
+
}
|
|
513
|
+
totalSupplied {
|
|
514
|
+
formatted
|
|
515
|
+
raw
|
|
516
|
+
usd
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
hourly {
|
|
520
|
+
bucketTimestamp
|
|
521
|
+
borrowApy1d {
|
|
522
|
+
total
|
|
523
|
+
}
|
|
524
|
+
borrowApy30d {
|
|
525
|
+
total
|
|
526
|
+
}
|
|
527
|
+
borrowApy7d {
|
|
528
|
+
total
|
|
529
|
+
}
|
|
530
|
+
supplyApy1d {
|
|
531
|
+
total
|
|
532
|
+
}
|
|
533
|
+
supplyApy7d {
|
|
534
|
+
total
|
|
535
|
+
}
|
|
536
|
+
supplyApy30d {
|
|
537
|
+
total
|
|
538
|
+
}
|
|
539
|
+
totalBorrowed {
|
|
540
|
+
formatted
|
|
541
|
+
raw
|
|
542
|
+
usd
|
|
543
|
+
}
|
|
544
|
+
totalCollateral {
|
|
545
|
+
formatted
|
|
546
|
+
raw
|
|
547
|
+
usd
|
|
548
|
+
}
|
|
549
|
+
totalSupplied {
|
|
550
|
+
formatted
|
|
551
|
+
raw
|
|
552
|
+
usd
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
name
|
|
557
|
+
marketId
|
|
558
|
+
utilization
|
|
559
|
+
}
|
|
560
|
+
enabled
|
|
561
|
+
vault {
|
|
562
|
+
decimals
|
|
563
|
+
asset {
|
|
564
|
+
decimals
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
`,O=e.gql`
|
|
572
|
+
query MarketHistoryData($chainId: ChainId!, $marketId: Hex!) {
|
|
573
|
+
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
574
|
+
items {
|
|
575
|
+
historical {
|
|
576
|
+
daily {
|
|
577
|
+
bucketTimestamp
|
|
578
|
+
borrowApy1d {
|
|
579
|
+
total
|
|
580
|
+
}
|
|
581
|
+
borrowApy30d {
|
|
582
|
+
total
|
|
583
|
+
}
|
|
584
|
+
borrowApy7d {
|
|
585
|
+
total
|
|
586
|
+
}
|
|
587
|
+
supplyApy1d {
|
|
588
|
+
total
|
|
589
|
+
}
|
|
590
|
+
supplyApy7d {
|
|
591
|
+
total
|
|
592
|
+
}
|
|
593
|
+
supplyApy30d {
|
|
594
|
+
total
|
|
595
|
+
}
|
|
596
|
+
totalBorrowed {
|
|
597
|
+
formatted
|
|
598
|
+
raw
|
|
599
|
+
usd
|
|
600
|
+
}
|
|
601
|
+
totalCollateral {
|
|
602
|
+
formatted
|
|
603
|
+
raw
|
|
604
|
+
usd
|
|
605
|
+
}
|
|
606
|
+
totalSupplied {
|
|
607
|
+
formatted
|
|
608
|
+
raw
|
|
609
|
+
usd
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
hourly {
|
|
613
|
+
bucketTimestamp
|
|
614
|
+
borrowApy1d {
|
|
615
|
+
total
|
|
616
|
+
}
|
|
617
|
+
borrowApy30d {
|
|
618
|
+
total
|
|
619
|
+
}
|
|
620
|
+
borrowApy7d {
|
|
621
|
+
total
|
|
622
|
+
}
|
|
623
|
+
supplyApy1d {
|
|
624
|
+
total
|
|
625
|
+
}
|
|
626
|
+
supplyApy7d {
|
|
627
|
+
total
|
|
628
|
+
}
|
|
629
|
+
supplyApy30d {
|
|
630
|
+
total
|
|
631
|
+
}
|
|
632
|
+
totalBorrowed {
|
|
633
|
+
formatted
|
|
634
|
+
raw
|
|
635
|
+
usd
|
|
636
|
+
}
|
|
637
|
+
totalCollateral {
|
|
638
|
+
formatted
|
|
639
|
+
raw
|
|
640
|
+
usd
|
|
641
|
+
}
|
|
642
|
+
totalSupplied {
|
|
643
|
+
formatted
|
|
644
|
+
raw
|
|
645
|
+
usd
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
`,q=e.gql`
|
|
653
|
+
query MarketIBRHistoryData($chainId: ChainId!, $marketId: Hex!) {
|
|
654
|
+
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
655
|
+
items {
|
|
656
|
+
historical {
|
|
657
|
+
daily {
|
|
658
|
+
borrowApyInstantaneous {
|
|
659
|
+
total
|
|
660
|
+
}
|
|
661
|
+
bucketTimestamp
|
|
662
|
+
}
|
|
663
|
+
hourly {
|
|
664
|
+
borrowApyInstantaneous {
|
|
665
|
+
total
|
|
666
|
+
}
|
|
667
|
+
bucketTimestamp
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
`,R={possibleTypes:{Adapter:["MarketV1Adapter","UnknownAdapter","VaultV1Adapter"],Cap:["AdapterCap","CollateralExposureCap","MarketV1ExposureCap","UnknownCap"],Erc4626Vault:["GenericErc4626Vault","MorphoVault","MorphoVaultV2"]}},L=R;0&&(module.exports={ApyFragment,ApySide,ApyTimeframe,ChainInfoFragment,CuratorInfoFragment,Erc4626VaultProtocol,IdentityResolver,Market,MarketHistoryData,MarketIbrHistoryData,MarketPositions,MarketSummaries,MarketSummaryFragment,MerklAction,SupportedMarketIds,TokenCategory,TokenInfoFragment,Vault,VaultHistoryData,VaultMarketAllocationHistoryData,VaultPositions,VaultProtocol,VaultSummaries,VaultSummaryFragment,VaultType});
|