@berachain/graphql 0.2.4-beta.6 → 0.2.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.
- package/dist/bend/whisk.codegen.cjs +18 -271
- package/dist/bend/whisk.codegen.d.cts +2 -541
- package/dist/bend/whisk.codegen.d.ts +2 -541
- package/dist/bend/whisk.codegen.mjs +15 -268
- package/dist/honey/honey.codegen.cjs +19 -39
- package/dist/honey/honey.codegen.d.cts +199 -416
- package/dist/honey/honey.codegen.d.ts +199 -416
- package/dist/honey/honey.codegen.mjs +19 -39
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var d=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var f=(o,n)=>{for(var r in n)d(o,r,{get:n[r],enumerable:!0})},C=(o,n,r,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let p of x(n))!T.call(o,p)&&p!==r&&d(o,p,{get:()=>n[p],enumerable:!(t=I(n,p))||t.enumerable});return o};var w=o=>C(d({},"__esModule",{value:!0}),o);var Q={};f(Q,{ApyFragment:()=>i,ApySide:()=>A,ApyTimeframe:()=>g,ChainInfoFragment:()=>l,CuratorInfoFragment:()=>y,Erc4626VaultProtocol:()=>_,IdentityResolver:()=>h,Market:()=>$,MarketPositions:()=>H,MarketSummaries:()=>v,MarketSummaryFragment:()=>c,MerklAction:()=>b,SupportedMarketIds:()=>E,TokenCategory:()=>k,TokenInfoFragment:()=>u,Vault:()=>P,VaultPositions:()=>F,VaultProtocol:()=>M,VaultSummaries:()=>V,VaultSummaryFragment:()=>m,VaultType:()=>S,default:()=>O});module.exports=w(Q);var e=require("@apollo/client"),A=(r=>(r.Borrow="Borrow",r.Supply="Supply",r))(A||{}),g=(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))(_||{}),h=(s=>(s.Base="base",s.Ens="ens",s.Farcaster="farcaster",s.Lens="lens",s.Nns="nns",s.Uni="uni",s.World="world",s))(h||{}),b=(r=>(r.Borrow="Borrow",r.Lend="Lend",r))(b||{}),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
|
+
`,u=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
|
+
`,y=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
|
+
${u}`,m=e.gql`
|
|
34
34
|
fragment VaultSummaryFragment on MorphoVault {
|
|
35
35
|
chain {
|
|
36
36
|
...ChainInfoFragment
|
|
@@ -59,12 +59,6 @@
|
|
|
59
59
|
supplyApy {
|
|
60
60
|
...ApyFragment
|
|
61
61
|
}
|
|
62
|
-
supplyApy1d {
|
|
63
|
-
...ApyFragment
|
|
64
|
-
}
|
|
65
|
-
supplyApy7d {
|
|
66
|
-
...ApyFragment
|
|
67
|
-
}
|
|
68
62
|
marketAllocations {
|
|
69
63
|
market {
|
|
70
64
|
isIdle
|
|
@@ -86,9 +80,9 @@
|
|
|
86
80
|
}
|
|
87
81
|
}
|
|
88
82
|
${l}
|
|
89
|
-
${
|
|
90
|
-
${
|
|
91
|
-
${i}`,
|
|
83
|
+
${u}
|
|
84
|
+
${y}
|
|
85
|
+
${i}`,c=e.gql`
|
|
92
86
|
fragment MarketSummaryFragment on MorphoMarket {
|
|
93
87
|
chain {
|
|
94
88
|
...ChainInfoFragment
|
|
@@ -129,12 +123,6 @@ ${i}`,A=e.gql`
|
|
|
129
123
|
borrowApy {
|
|
130
124
|
...ApyFragment
|
|
131
125
|
}
|
|
132
|
-
borrowApy1d {
|
|
133
|
-
...ApyFragment
|
|
134
|
-
}
|
|
135
|
-
borrowApy7d {
|
|
136
|
-
...ApyFragment
|
|
137
|
-
}
|
|
138
126
|
vaultAllocations {
|
|
139
127
|
vault {
|
|
140
128
|
vaultAddress
|
|
@@ -150,7 +138,7 @@ ${i}`,A=e.gql`
|
|
|
150
138
|
}
|
|
151
139
|
}
|
|
152
140
|
${l}
|
|
153
|
-
${
|
|
141
|
+
${u}
|
|
154
142
|
${i}`,V=e.gql`
|
|
155
143
|
query VaultSummaries($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
|
|
156
144
|
morphoVaults(
|
|
@@ -165,7 +153,7 @@ ${i}`,V=e.gql`
|
|
|
165
153
|
}
|
|
166
154
|
}
|
|
167
155
|
}
|
|
168
|
-
${
|
|
156
|
+
${m}`,v=e.gql`
|
|
169
157
|
query MarketSummaries($chainIds: [ChainId!]!, $marketIds: [Hex!]!) {
|
|
170
158
|
morphoMarkets(
|
|
171
159
|
where: {chainId_in: $chainIds, marketId_in: $marketIds}
|
|
@@ -179,7 +167,7 @@ ${i}`,V=e.gql`
|
|
|
179
167
|
}
|
|
180
168
|
}
|
|
181
169
|
}
|
|
182
|
-
${
|
|
170
|
+
${c}`,P=e.gql`
|
|
183
171
|
query Vault($chainId: ChainId!, $vaultAddress: Address!) {
|
|
184
172
|
morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultAddress]}) {
|
|
185
173
|
items {
|
|
@@ -266,10 +254,10 @@ ${i}`,V=e.gql`
|
|
|
266
254
|
}
|
|
267
255
|
}
|
|
268
256
|
}
|
|
269
|
-
${
|
|
257
|
+
${m}
|
|
270
258
|
${l}
|
|
271
|
-
${
|
|
272
|
-
${i}
|
|
259
|
+
${u}
|
|
260
|
+
${i}`,$=e.gql`
|
|
273
261
|
query Market($chainId: ChainId!, $marketId: Hex!) {
|
|
274
262
|
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
275
263
|
items {
|
|
@@ -353,10 +341,10 @@ ${i}`,P=e.gql`
|
|
|
353
341
|
}
|
|
354
342
|
}
|
|
355
343
|
}
|
|
356
|
-
${
|
|
357
|
-
${
|
|
344
|
+
${c}
|
|
345
|
+
${u}
|
|
358
346
|
${l}
|
|
359
|
-
${
|
|
347
|
+
${y}`,F=e.gql`
|
|
360
348
|
query VaultPositions($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!, $accountAddress: Address!) {
|
|
361
349
|
morphoVaultPositions(
|
|
362
350
|
where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses, accountAddress_in: [$accountAddress]}
|
|
@@ -384,7 +372,7 @@ ${m}`,H=e.gql`
|
|
|
384
372
|
}
|
|
385
373
|
}
|
|
386
374
|
}
|
|
387
|
-
`,
|
|
375
|
+
`,H=e.gql`
|
|
388
376
|
query MarketPositions($chainIds: [ChainId!]!, $marketIds: [Hex!]!, $accountAddress: Address!) {
|
|
389
377
|
morphoMarketPositions(
|
|
390
378
|
where: {chainId_in: $chainIds, marketId_in: $marketIds, accountAddress_in: [$accountAddress]}
|
|
@@ -442,245 +430,4 @@ ${m}`,H=e.gql`
|
|
|
442
430
|
}
|
|
443
431
|
}
|
|
444
432
|
}
|
|
445
|
-
`,B=
|
|
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});
|
|
433
|
+
`,B={possibleTypes:{Adapter:["MarketV1Adapter","UnknownAdapter","VaultV1Adapter"],Cap:["AdapterCap","CollateralExposureCap","MarketV1ExposureCap","UnknownCap"],Erc4626Vault:["GenericErc4626Vault","MorphoVault","MorphoVaultV2"]}},O=B;0&&(module.exports={ApyFragment,ApySide,ApyTimeframe,ChainInfoFragment,CuratorInfoFragment,Erc4626VaultProtocol,IdentityResolver,Market,MarketPositions,MarketSummaries,MarketSummaryFragment,MerklAction,SupportedMarketIds,TokenCategory,TokenInfoFragment,Vault,VaultPositions,VaultProtocol,VaultSummaries,VaultSummaryFragment,VaultType});
|