@berachain/graphql 0.2.4-beta.5 → 0.2.4-beta.6
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 +271 -18
- package/dist/bend/whisk.codegen.d.cts +541 -2
- package/dist/bend/whisk.codegen.d.ts +541 -2
- package/dist/bend/whisk.codegen.mjs +268 -15
- package/dist/honey/honey.codegen.cjs +26 -13
- package/dist/honey/honey.codegen.d.cts +21 -13
- package/dist/honey/honey.codegen.d.ts +21 -13
- package/dist/honey/honey.codegen.mjs +26 -13
- 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 w=Object.getOwnPropertyNames;var x=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 w(n))!x.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:()=>m,Erc4626VaultProtocol:()=>g,IdentityResolver:()=>b,Market:()=>P,MarketHistoryData:()=>R,MarketIbrHistoryData:()=>O,MarketPositions:()=>F,MarketSummaries:()=>$,MarketSummaryFragment:()=>A,MerklAction:()=>k,SupportedMarketIds:()=>E,TokenCategory:()=>h,TokenInfoFragment:()=>p,Vault:()=>v,VaultHistoryData:()=>B,VaultMarketAllocationHistoryData:()=>Q,VaultPositions:()=>H,VaultProtocol:()=>M,VaultSummaries:()=>V,VaultSummaryFragment:()=>d,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||{}),k=(r=>(r.Borrow="Borrow",r.Lend="Lend",r))(k||{}),h=(t=>(t.Btc="Btc",t.Eth="Eth",t.Stable="Stable",t))(h||{}),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
|
+
`,m=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}`,d=e.gql`
|
|
34
34
|
fragment VaultSummaryFragment on MorphoVault {
|
|
35
35
|
chain {
|
|
36
36
|
...ChainInfoFragment
|
|
@@ -59,6 +59,12 @@
|
|
|
59
59
|
supplyApy {
|
|
60
60
|
...ApyFragment
|
|
61
61
|
}
|
|
62
|
+
supplyApy1d {
|
|
63
|
+
...ApyFragment
|
|
64
|
+
}
|
|
65
|
+
supplyApy7d {
|
|
66
|
+
...ApyFragment
|
|
67
|
+
}
|
|
62
68
|
marketAllocations {
|
|
63
69
|
market {
|
|
64
70
|
isIdle
|
|
@@ -80,9 +86,9 @@
|
|
|
80
86
|
}
|
|
81
87
|
}
|
|
82
88
|
${l}
|
|
83
|
-
${
|
|
84
|
-
${
|
|
85
|
-
${i}`,
|
|
89
|
+
${p}
|
|
90
|
+
${m}
|
|
91
|
+
${i}`,A=e.gql`
|
|
86
92
|
fragment MarketSummaryFragment on MorphoMarket {
|
|
87
93
|
chain {
|
|
88
94
|
...ChainInfoFragment
|
|
@@ -123,6 +129,12 @@ ${i}`,c=e.gql`
|
|
|
123
129
|
borrowApy {
|
|
124
130
|
...ApyFragment
|
|
125
131
|
}
|
|
132
|
+
borrowApy1d {
|
|
133
|
+
...ApyFragment
|
|
134
|
+
}
|
|
135
|
+
borrowApy7d {
|
|
136
|
+
...ApyFragment
|
|
137
|
+
}
|
|
126
138
|
vaultAllocations {
|
|
127
139
|
vault {
|
|
128
140
|
vaultAddress
|
|
@@ -138,7 +150,7 @@ ${i}`,c=e.gql`
|
|
|
138
150
|
}
|
|
139
151
|
}
|
|
140
152
|
${l}
|
|
141
|
-
${
|
|
153
|
+
${p}
|
|
142
154
|
${i}`,V=e.gql`
|
|
143
155
|
query VaultSummaries($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
|
|
144
156
|
morphoVaults(
|
|
@@ -153,7 +165,7 @@ ${i}`,V=e.gql`
|
|
|
153
165
|
}
|
|
154
166
|
}
|
|
155
167
|
}
|
|
156
|
-
${
|
|
168
|
+
${d}`,$=e.gql`
|
|
157
169
|
query MarketSummaries($chainIds: [ChainId!]!, $marketIds: [Hex!]!) {
|
|
158
170
|
morphoMarkets(
|
|
159
171
|
where: {chainId_in: $chainIds, marketId_in: $marketIds}
|
|
@@ -167,7 +179,7 @@ ${i}`,V=e.gql`
|
|
|
167
179
|
}
|
|
168
180
|
}
|
|
169
181
|
}
|
|
170
|
-
${
|
|
182
|
+
${A}`,v=e.gql`
|
|
171
183
|
query Vault($chainId: ChainId!, $vaultAddress: Address!) {
|
|
172
184
|
morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultAddress]}) {
|
|
173
185
|
items {
|
|
@@ -254,10 +266,10 @@ ${i}`,V=e.gql`
|
|
|
254
266
|
}
|
|
255
267
|
}
|
|
256
268
|
}
|
|
257
|
-
${
|
|
269
|
+
${d}
|
|
258
270
|
${l}
|
|
259
|
-
${
|
|
260
|
-
${i}
|
|
271
|
+
${p}
|
|
272
|
+
${i}`,P=e.gql`
|
|
261
273
|
query Market($chainId: ChainId!, $marketId: Hex!) {
|
|
262
274
|
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
263
275
|
items {
|
|
@@ -341,10 +353,10 @@ ${i}`,$=e.gql`
|
|
|
341
353
|
}
|
|
342
354
|
}
|
|
343
355
|
}
|
|
344
|
-
${
|
|
345
|
-
${
|
|
356
|
+
${A}
|
|
357
|
+
${p}
|
|
346
358
|
${l}
|
|
347
|
-
${
|
|
359
|
+
${m}`,H=e.gql`
|
|
348
360
|
query VaultPositions($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!, $accountAddress: Address!) {
|
|
349
361
|
morphoVaultPositions(
|
|
350
362
|
where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses, accountAddress_in: [$accountAddress]}
|
|
@@ -372,7 +384,7 @@ ${y}`,F=e.gql`
|
|
|
372
384
|
}
|
|
373
385
|
}
|
|
374
386
|
}
|
|
375
|
-
`,
|
|
387
|
+
`,F=e.gql`
|
|
376
388
|
query MarketPositions($chainIds: [ChainId!]!, $marketIds: [Hex!]!, $accountAddress: Address!) {
|
|
377
389
|
morphoMarketPositions(
|
|
378
390
|
where: {chainId_in: $chainIds, marketId_in: $marketIds, accountAddress_in: [$accountAddress]}
|
|
@@ -430,4 +442,245 @@ ${y}`,F=e.gql`
|
|
|
430
442
|
}
|
|
431
443
|
}
|
|
432
444
|
}
|
|
433
|
-
`,B=
|
|
445
|
+
`,B=e.gql`
|
|
446
|
+
query VaultHistoryData($chainId: ChainId!, $vaultId: Address!) {
|
|
447
|
+
morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultId]}) {
|
|
448
|
+
items {
|
|
449
|
+
historical {
|
|
450
|
+
daily {
|
|
451
|
+
supplyApy1d {
|
|
452
|
+
total
|
|
453
|
+
}
|
|
454
|
+
supplyApy30d {
|
|
455
|
+
total
|
|
456
|
+
}
|
|
457
|
+
supplyApy7d {
|
|
458
|
+
total
|
|
459
|
+
}
|
|
460
|
+
totalSupplied {
|
|
461
|
+
usd
|
|
462
|
+
raw
|
|
463
|
+
formatted
|
|
464
|
+
}
|
|
465
|
+
bucketTimestamp
|
|
466
|
+
}
|
|
467
|
+
hourly {
|
|
468
|
+
supplyApy1d {
|
|
469
|
+
total
|
|
470
|
+
}
|
|
471
|
+
supplyApy30d {
|
|
472
|
+
total
|
|
473
|
+
}
|
|
474
|
+
supplyApy7d {
|
|
475
|
+
total
|
|
476
|
+
}
|
|
477
|
+
totalSupplied {
|
|
478
|
+
usd
|
|
479
|
+
raw
|
|
480
|
+
formatted
|
|
481
|
+
}
|
|
482
|
+
bucketTimestamp
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
`,Q=e.gql`
|
|
489
|
+
query VaultMarketAllocationHistoryData($chainId: ChainId!, $vaultId: Address!) {
|
|
490
|
+
morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultId]}) {
|
|
491
|
+
items {
|
|
492
|
+
name
|
|
493
|
+
marketAllocations {
|
|
494
|
+
market {
|
|
495
|
+
historical {
|
|
496
|
+
daily {
|
|
497
|
+
bucketTimestamp
|
|
498
|
+
borrowApy1d {
|
|
499
|
+
total
|
|
500
|
+
}
|
|
501
|
+
borrowApy30d {
|
|
502
|
+
total
|
|
503
|
+
}
|
|
504
|
+
borrowApy7d {
|
|
505
|
+
total
|
|
506
|
+
}
|
|
507
|
+
supplyApy1d {
|
|
508
|
+
total
|
|
509
|
+
}
|
|
510
|
+
supplyApy7d {
|
|
511
|
+
total
|
|
512
|
+
}
|
|
513
|
+
supplyApy30d {
|
|
514
|
+
total
|
|
515
|
+
}
|
|
516
|
+
totalBorrowed {
|
|
517
|
+
formatted
|
|
518
|
+
raw
|
|
519
|
+
usd
|
|
520
|
+
}
|
|
521
|
+
totalCollateral {
|
|
522
|
+
formatted
|
|
523
|
+
raw
|
|
524
|
+
usd
|
|
525
|
+
}
|
|
526
|
+
totalSupplied {
|
|
527
|
+
formatted
|
|
528
|
+
raw
|
|
529
|
+
usd
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
hourly {
|
|
533
|
+
bucketTimestamp
|
|
534
|
+
borrowApy1d {
|
|
535
|
+
total
|
|
536
|
+
}
|
|
537
|
+
borrowApy30d {
|
|
538
|
+
total
|
|
539
|
+
}
|
|
540
|
+
borrowApy7d {
|
|
541
|
+
total
|
|
542
|
+
}
|
|
543
|
+
supplyApy1d {
|
|
544
|
+
total
|
|
545
|
+
}
|
|
546
|
+
supplyApy7d {
|
|
547
|
+
total
|
|
548
|
+
}
|
|
549
|
+
supplyApy30d {
|
|
550
|
+
total
|
|
551
|
+
}
|
|
552
|
+
totalBorrowed {
|
|
553
|
+
formatted
|
|
554
|
+
raw
|
|
555
|
+
usd
|
|
556
|
+
}
|
|
557
|
+
totalCollateral {
|
|
558
|
+
formatted
|
|
559
|
+
raw
|
|
560
|
+
usd
|
|
561
|
+
}
|
|
562
|
+
totalSupplied {
|
|
563
|
+
formatted
|
|
564
|
+
raw
|
|
565
|
+
usd
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
name
|
|
570
|
+
marketId
|
|
571
|
+
utilization
|
|
572
|
+
}
|
|
573
|
+
enabled
|
|
574
|
+
vault {
|
|
575
|
+
decimals
|
|
576
|
+
asset {
|
|
577
|
+
decimals
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
`,R=e.gql`
|
|
585
|
+
query MarketHistoryData($chainId: ChainId!, $marketId: Hex!) {
|
|
586
|
+
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
587
|
+
items {
|
|
588
|
+
historical {
|
|
589
|
+
daily {
|
|
590
|
+
bucketTimestamp
|
|
591
|
+
borrowApy1d {
|
|
592
|
+
total
|
|
593
|
+
}
|
|
594
|
+
borrowApy30d {
|
|
595
|
+
total
|
|
596
|
+
}
|
|
597
|
+
borrowApy7d {
|
|
598
|
+
total
|
|
599
|
+
}
|
|
600
|
+
supplyApy1d {
|
|
601
|
+
total
|
|
602
|
+
}
|
|
603
|
+
supplyApy7d {
|
|
604
|
+
total
|
|
605
|
+
}
|
|
606
|
+
supplyApy30d {
|
|
607
|
+
total
|
|
608
|
+
}
|
|
609
|
+
totalBorrowed {
|
|
610
|
+
formatted
|
|
611
|
+
raw
|
|
612
|
+
usd
|
|
613
|
+
}
|
|
614
|
+
totalCollateral {
|
|
615
|
+
formatted
|
|
616
|
+
raw
|
|
617
|
+
usd
|
|
618
|
+
}
|
|
619
|
+
totalSupplied {
|
|
620
|
+
formatted
|
|
621
|
+
raw
|
|
622
|
+
usd
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
hourly {
|
|
626
|
+
bucketTimestamp
|
|
627
|
+
borrowApy1d {
|
|
628
|
+
total
|
|
629
|
+
}
|
|
630
|
+
borrowApy30d {
|
|
631
|
+
total
|
|
632
|
+
}
|
|
633
|
+
borrowApy7d {
|
|
634
|
+
total
|
|
635
|
+
}
|
|
636
|
+
supplyApy1d {
|
|
637
|
+
total
|
|
638
|
+
}
|
|
639
|
+
supplyApy7d {
|
|
640
|
+
total
|
|
641
|
+
}
|
|
642
|
+
supplyApy30d {
|
|
643
|
+
total
|
|
644
|
+
}
|
|
645
|
+
totalBorrowed {
|
|
646
|
+
formatted
|
|
647
|
+
raw
|
|
648
|
+
usd
|
|
649
|
+
}
|
|
650
|
+
totalCollateral {
|
|
651
|
+
formatted
|
|
652
|
+
raw
|
|
653
|
+
usd
|
|
654
|
+
}
|
|
655
|
+
totalSupplied {
|
|
656
|
+
formatted
|
|
657
|
+
raw
|
|
658
|
+
usd
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
`,O=e.gql`
|
|
666
|
+
query MarketIBRHistoryData($chainId: ChainId!, $marketId: Hex!) {
|
|
667
|
+
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
668
|
+
items {
|
|
669
|
+
historical {
|
|
670
|
+
daily {
|
|
671
|
+
borrowApyInstantaneous {
|
|
672
|
+
total
|
|
673
|
+
}
|
|
674
|
+
bucketTimestamp
|
|
675
|
+
}
|
|
676
|
+
hourly {
|
|
677
|
+
borrowApyInstantaneous {
|
|
678
|
+
total
|
|
679
|
+
}
|
|
680
|
+
bucketTimestamp
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
`,q={possibleTypes:{Adapter:["MarketV1Adapter","UnknownAdapter","VaultV1Adapter"],Cap:["AdapterCap","CollateralExposureCap","MarketV1ExposureCap","UnknownCap"],Erc4626Vault:["GenericErc4626Vault","MorphoVault","MorphoVaultV2"]}},L=q;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});
|