@berachain/graphql 0.2.4 → 0.2.6-beta.1
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 -17
- package/dist/bend/whisk.codegen.d.cts +646 -21
- package/dist/bend/whisk.codegen.d.ts +646 -21
- package/dist/bend/whisk.codegen.mjs +275 -21
- package/dist/chain/chain.codegen.d.cts +2 -2
- package/dist/chain/chain.codegen.d.ts +2 -2
- package/dist/dex/api.codegen.d.cts +17 -17
- package/dist/dex/api.codegen.d.ts +17 -17
- package/dist/dex/subgraph.codegen.d.cts +9 -9
- package/dist/dex/subgraph.codegen.d.ts +9 -9
- package/dist/governance/governance.codegen.d.cts +9 -9
- package/dist/governance/governance.codegen.d.ts +9 -9
- package/dist/honey/honey.codegen.cjs +6 -6
- package/dist/honey/honey.codegen.d.cts +16 -16
- package/dist/honey/honey.codegen.d.ts +16 -16
- package/dist/honey/honey.codegen.mjs +1 -1
- package/dist/pol/api.codegen.d.cts +21 -21
- package/dist/pol/api.codegen.d.ts +21 -21
- package/dist/pol/subgraph.codegen.d.cts +19 -19
- package/dist/pol/subgraph.codegen.d.ts +19 -19
- package/package.json +2 -2
|
@@ -1,24 +1,25 @@
|
|
|
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=(s,o)=>{for(var r in o)y(s,r,{get:o[r],enumerable:!0})},f=(s,o,r,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of x(o))!w.call(s,n)&&n!==r&&y(s,n,{get:()=>o[n],enumerable:!(e=I(o,n))||e.enumerable});return s};var C=s=>f(y({},"__esModule",{value:!0}),s);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:()=>u,Vault:()=>v,VaultHistoryData:()=>B,VaultMarketAllocationHistoryData:()=>Q,VaultPositions:()=>H,VaultProtocol:()=>M,VaultSummaries:()=>V,VaultSummaryFragment:()=>d,VaultType:()=>S,default:()=>L});module.exports=C(U);var t=require("@apollo/client"),c=(r=>(r.Borrow="Borrow",r.Supply="Supply",r))(c||{}),_=(e=>(e.OneDay="one_day",e.SevenDays="seven_days",e.ThirtyDays="thirty_days",e))(_||{}),g=(n=>(n.Box="box",n.Generic="generic",n.MorphoV1="morpho_v1",n.MorphoV2="morpho_v2",n))(g||{}),b=(p=>(p.Base="base",p.Ens="ens",p.Farcaster="farcaster",p.Lens="lens",p.Nns="nns",p.Uni="uni",p.World="world",p))(b||{}),k=(r=>(r.Borrow="Borrow",r.Lend="Lend",r))(k||{}),h=(e=>(e.Btc="Btc",e.Eth="Eth",e.Stable="Stable",e))(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=(e=>(e.Index="index",e.Lending="lending",e.Staking="staking",e))(S||{}),l=t.gql`
|
|
2
2
|
fragment ChainInfoFragment on Chain {
|
|
3
3
|
id
|
|
4
4
|
name
|
|
5
5
|
icon
|
|
6
6
|
}
|
|
7
|
-
`,u=
|
|
7
|
+
`,u=t.gql`
|
|
8
8
|
fragment TokenInfoFragment on Token {
|
|
9
9
|
address
|
|
10
10
|
symbol
|
|
11
11
|
decimals
|
|
12
12
|
icon
|
|
13
13
|
category
|
|
14
|
+
name
|
|
14
15
|
}
|
|
15
|
-
`,
|
|
16
|
+
`,m=t.gql`
|
|
16
17
|
fragment CuratorInfoFragment on Curator {
|
|
17
18
|
name
|
|
18
19
|
image
|
|
19
20
|
url
|
|
20
21
|
}
|
|
21
|
-
`,i=
|
|
22
|
+
`,i=t.gql`
|
|
22
23
|
fragment ApyFragment on Apy {
|
|
23
24
|
base
|
|
24
25
|
rewards {
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
total
|
|
31
32
|
fee
|
|
32
33
|
}
|
|
33
|
-
${u}`,
|
|
34
|
+
${u}`,d=t.gql`
|
|
34
35
|
fragment VaultSummaryFragment on MorphoVault {
|
|
35
36
|
chain {
|
|
36
37
|
...ChainInfoFragment
|
|
@@ -59,6 +60,12 @@
|
|
|
59
60
|
supplyApy {
|
|
60
61
|
...ApyFragment
|
|
61
62
|
}
|
|
63
|
+
supplyApy1d {
|
|
64
|
+
...ApyFragment
|
|
65
|
+
}
|
|
66
|
+
supplyApy7d {
|
|
67
|
+
...ApyFragment
|
|
68
|
+
}
|
|
62
69
|
marketAllocations {
|
|
63
70
|
market {
|
|
64
71
|
isIdle
|
|
@@ -81,8 +88,8 @@
|
|
|
81
88
|
}
|
|
82
89
|
${l}
|
|
83
90
|
${u}
|
|
84
|
-
${
|
|
85
|
-
${i}`,
|
|
91
|
+
${m}
|
|
92
|
+
${i}`,A=t.gql`
|
|
86
93
|
fragment MarketSummaryFragment on MorphoMarket {
|
|
87
94
|
chain {
|
|
88
95
|
...ChainInfoFragment
|
|
@@ -123,6 +130,12 @@ ${i}`,c=e.gql`
|
|
|
123
130
|
borrowApy {
|
|
124
131
|
...ApyFragment
|
|
125
132
|
}
|
|
133
|
+
borrowApy1d {
|
|
134
|
+
...ApyFragment
|
|
135
|
+
}
|
|
136
|
+
borrowApy7d {
|
|
137
|
+
...ApyFragment
|
|
138
|
+
}
|
|
126
139
|
vaultAllocations {
|
|
127
140
|
vault {
|
|
128
141
|
vaultAddress
|
|
@@ -139,7 +152,7 @@ ${i}`,c=e.gql`
|
|
|
139
152
|
}
|
|
140
153
|
${l}
|
|
141
154
|
${u}
|
|
142
|
-
${i}`,V=
|
|
155
|
+
${i}`,V=t.gql`
|
|
143
156
|
query VaultSummaries($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
|
|
144
157
|
morphoVaults(
|
|
145
158
|
where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}
|
|
@@ -153,7 +166,7 @@ ${i}`,V=e.gql`
|
|
|
153
166
|
}
|
|
154
167
|
}
|
|
155
168
|
}
|
|
156
|
-
${
|
|
169
|
+
${d}`,$=t.gql`
|
|
157
170
|
query MarketSummaries($chainIds: [ChainId!]!, $marketIds: [Hex!]!) {
|
|
158
171
|
morphoMarkets(
|
|
159
172
|
where: {chainId_in: $chainIds, marketId_in: $marketIds}
|
|
@@ -167,7 +180,7 @@ ${i}`,V=e.gql`
|
|
|
167
180
|
}
|
|
168
181
|
}
|
|
169
182
|
}
|
|
170
|
-
${
|
|
183
|
+
${A}`,v=t.gql`
|
|
171
184
|
query Vault($chainId: ChainId!, $vaultAddress: Address!) {
|
|
172
185
|
morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultAddress]}) {
|
|
173
186
|
items {
|
|
@@ -254,10 +267,10 @@ ${i}`,V=e.gql`
|
|
|
254
267
|
}
|
|
255
268
|
}
|
|
256
269
|
}
|
|
257
|
-
${
|
|
270
|
+
${d}
|
|
258
271
|
${l}
|
|
259
272
|
${u}
|
|
260
|
-
${i}
|
|
273
|
+
${i}`,P=t.gql`
|
|
261
274
|
query Market($chainId: ChainId!, $marketId: Hex!) {
|
|
262
275
|
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
263
276
|
items {
|
|
@@ -341,10 +354,10 @@ ${i}`,$=e.gql`
|
|
|
341
354
|
}
|
|
342
355
|
}
|
|
343
356
|
}
|
|
344
|
-
${
|
|
357
|
+
${A}
|
|
345
358
|
${u}
|
|
346
359
|
${l}
|
|
347
|
-
${
|
|
360
|
+
${m}`,H=t.gql`
|
|
348
361
|
query VaultPositions($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!, $accountAddress: Address!) {
|
|
349
362
|
morphoVaultPositions(
|
|
350
363
|
where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses, accountAddress_in: [$accountAddress]}
|
|
@@ -372,7 +385,7 @@ ${y}`,F=e.gql`
|
|
|
372
385
|
}
|
|
373
386
|
}
|
|
374
387
|
}
|
|
375
|
-
`,
|
|
388
|
+
`,F=t.gql`
|
|
376
389
|
query MarketPositions($chainIds: [ChainId!]!, $marketIds: [Hex!]!, $accountAddress: Address!) {
|
|
377
390
|
morphoMarketPositions(
|
|
378
391
|
where: {chainId_in: $chainIds, marketId_in: $marketIds, accountAddress_in: [$accountAddress]}
|
|
@@ -415,7 +428,7 @@ ${y}`,F=e.gql`
|
|
|
415
428
|
}
|
|
416
429
|
}
|
|
417
430
|
}
|
|
418
|
-
`,E=
|
|
431
|
+
`,E=t.gql`
|
|
419
432
|
query SupportedMarketIds($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
|
|
420
433
|
morphoVaults(where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}) {
|
|
421
434
|
items {
|
|
@@ -430,4 +443,245 @@ ${y}`,F=e.gql`
|
|
|
430
443
|
}
|
|
431
444
|
}
|
|
432
445
|
}
|
|
433
|
-
`,B=
|
|
446
|
+
`,B=t.gql`
|
|
447
|
+
query VaultHistoryData($chainId: ChainId!, $vaultId: Address!) {
|
|
448
|
+
morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultId]}) {
|
|
449
|
+
items {
|
|
450
|
+
historical {
|
|
451
|
+
daily {
|
|
452
|
+
supplyApy1d {
|
|
453
|
+
total
|
|
454
|
+
}
|
|
455
|
+
supplyApy30d {
|
|
456
|
+
total
|
|
457
|
+
}
|
|
458
|
+
supplyApy7d {
|
|
459
|
+
total
|
|
460
|
+
}
|
|
461
|
+
totalSupplied {
|
|
462
|
+
usd
|
|
463
|
+
raw
|
|
464
|
+
formatted
|
|
465
|
+
}
|
|
466
|
+
bucketTimestamp
|
|
467
|
+
}
|
|
468
|
+
hourly {
|
|
469
|
+
supplyApy1d {
|
|
470
|
+
total
|
|
471
|
+
}
|
|
472
|
+
supplyApy30d {
|
|
473
|
+
total
|
|
474
|
+
}
|
|
475
|
+
supplyApy7d {
|
|
476
|
+
total
|
|
477
|
+
}
|
|
478
|
+
totalSupplied {
|
|
479
|
+
usd
|
|
480
|
+
raw
|
|
481
|
+
formatted
|
|
482
|
+
}
|
|
483
|
+
bucketTimestamp
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
`,Q=t.gql`
|
|
490
|
+
query VaultMarketAllocationHistoryData($chainId: ChainId!, $vaultId: Address!) {
|
|
491
|
+
morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultId]}) {
|
|
492
|
+
items {
|
|
493
|
+
name
|
|
494
|
+
marketAllocations {
|
|
495
|
+
market {
|
|
496
|
+
historical {
|
|
497
|
+
daily {
|
|
498
|
+
bucketTimestamp
|
|
499
|
+
borrowApy1d {
|
|
500
|
+
total
|
|
501
|
+
}
|
|
502
|
+
borrowApy30d {
|
|
503
|
+
total
|
|
504
|
+
}
|
|
505
|
+
borrowApy7d {
|
|
506
|
+
total
|
|
507
|
+
}
|
|
508
|
+
supplyApy1d {
|
|
509
|
+
total
|
|
510
|
+
}
|
|
511
|
+
supplyApy7d {
|
|
512
|
+
total
|
|
513
|
+
}
|
|
514
|
+
supplyApy30d {
|
|
515
|
+
total
|
|
516
|
+
}
|
|
517
|
+
totalBorrowed {
|
|
518
|
+
formatted
|
|
519
|
+
raw
|
|
520
|
+
usd
|
|
521
|
+
}
|
|
522
|
+
totalCollateral {
|
|
523
|
+
formatted
|
|
524
|
+
raw
|
|
525
|
+
usd
|
|
526
|
+
}
|
|
527
|
+
totalSupplied {
|
|
528
|
+
formatted
|
|
529
|
+
raw
|
|
530
|
+
usd
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
hourly {
|
|
534
|
+
bucketTimestamp
|
|
535
|
+
borrowApy1d {
|
|
536
|
+
total
|
|
537
|
+
}
|
|
538
|
+
borrowApy30d {
|
|
539
|
+
total
|
|
540
|
+
}
|
|
541
|
+
borrowApy7d {
|
|
542
|
+
total
|
|
543
|
+
}
|
|
544
|
+
supplyApy1d {
|
|
545
|
+
total
|
|
546
|
+
}
|
|
547
|
+
supplyApy7d {
|
|
548
|
+
total
|
|
549
|
+
}
|
|
550
|
+
supplyApy30d {
|
|
551
|
+
total
|
|
552
|
+
}
|
|
553
|
+
totalBorrowed {
|
|
554
|
+
formatted
|
|
555
|
+
raw
|
|
556
|
+
usd
|
|
557
|
+
}
|
|
558
|
+
totalCollateral {
|
|
559
|
+
formatted
|
|
560
|
+
raw
|
|
561
|
+
usd
|
|
562
|
+
}
|
|
563
|
+
totalSupplied {
|
|
564
|
+
formatted
|
|
565
|
+
raw
|
|
566
|
+
usd
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
name
|
|
571
|
+
marketId
|
|
572
|
+
utilization
|
|
573
|
+
}
|
|
574
|
+
enabled
|
|
575
|
+
vault {
|
|
576
|
+
decimals
|
|
577
|
+
asset {
|
|
578
|
+
decimals
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
`,R=t.gql`
|
|
586
|
+
query MarketHistoryData($chainId: ChainId!, $marketId: Hex!) {
|
|
587
|
+
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
588
|
+
items {
|
|
589
|
+
historical {
|
|
590
|
+
daily {
|
|
591
|
+
bucketTimestamp
|
|
592
|
+
borrowApy1d {
|
|
593
|
+
total
|
|
594
|
+
}
|
|
595
|
+
borrowApy30d {
|
|
596
|
+
total
|
|
597
|
+
}
|
|
598
|
+
borrowApy7d {
|
|
599
|
+
total
|
|
600
|
+
}
|
|
601
|
+
supplyApy1d {
|
|
602
|
+
total
|
|
603
|
+
}
|
|
604
|
+
supplyApy7d {
|
|
605
|
+
total
|
|
606
|
+
}
|
|
607
|
+
supplyApy30d {
|
|
608
|
+
total
|
|
609
|
+
}
|
|
610
|
+
totalBorrowed {
|
|
611
|
+
formatted
|
|
612
|
+
raw
|
|
613
|
+
usd
|
|
614
|
+
}
|
|
615
|
+
totalCollateral {
|
|
616
|
+
formatted
|
|
617
|
+
raw
|
|
618
|
+
usd
|
|
619
|
+
}
|
|
620
|
+
totalSupplied {
|
|
621
|
+
formatted
|
|
622
|
+
raw
|
|
623
|
+
usd
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
hourly {
|
|
627
|
+
bucketTimestamp
|
|
628
|
+
borrowApy1d {
|
|
629
|
+
total
|
|
630
|
+
}
|
|
631
|
+
borrowApy30d {
|
|
632
|
+
total
|
|
633
|
+
}
|
|
634
|
+
borrowApy7d {
|
|
635
|
+
total
|
|
636
|
+
}
|
|
637
|
+
supplyApy1d {
|
|
638
|
+
total
|
|
639
|
+
}
|
|
640
|
+
supplyApy7d {
|
|
641
|
+
total
|
|
642
|
+
}
|
|
643
|
+
supplyApy30d {
|
|
644
|
+
total
|
|
645
|
+
}
|
|
646
|
+
totalBorrowed {
|
|
647
|
+
formatted
|
|
648
|
+
raw
|
|
649
|
+
usd
|
|
650
|
+
}
|
|
651
|
+
totalCollateral {
|
|
652
|
+
formatted
|
|
653
|
+
raw
|
|
654
|
+
usd
|
|
655
|
+
}
|
|
656
|
+
totalSupplied {
|
|
657
|
+
formatted
|
|
658
|
+
raw
|
|
659
|
+
usd
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
`,O=t.gql`
|
|
667
|
+
query MarketIBRHistoryData($chainId: ChainId!, $marketId: Hex!) {
|
|
668
|
+
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
669
|
+
items {
|
|
670
|
+
historical {
|
|
671
|
+
daily {
|
|
672
|
+
borrowApyInstantaneous {
|
|
673
|
+
total
|
|
674
|
+
}
|
|
675
|
+
bucketTimestamp
|
|
676
|
+
}
|
|
677
|
+
hourly {
|
|
678
|
+
borrowApyInstantaneous {
|
|
679
|
+
total
|
|
680
|
+
}
|
|
681
|
+
bucketTimestamp
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
`,q={possibleTypes:{Adapter:["BoxVaultAdapter","MarketV1Adapter","UnknownAdapter","VaultV1Adapter"],Cap:["AdapterCap","CollateralExposureCap","MarketV1ExposureCap","UnknownCap"],Erc4626Vault:["BoxVault","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});
|