@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
|
-
import{gql as
|
|
1
|
+
import{gql as a}from"@apollo/client";var d=(n=>(n.Borrow="Borrow",n.Supply="Supply",n))(d||{}),y=(t=>(t.OneDay="one_day",t.SevenDays="seven_days",t.ThirtyDays="thirty_days",t))(y||{}),m=(t=>(t.Generic="generic",t.MorphoV1="morpho_v1",t.MorphoV2="morpho_v2",t))(m||{}),c=(r=>(r.Base="base",r.Ens="ens",r.Farcaster="farcaster",r.Lens="lens",r.Nns="nns",r.Uni="uni",r.World="world",r))(c||{}),A=(n=>(n.Borrow="Borrow",n.Lend="Lend",n))(A||{}),g=(t=>(t.Btc="Btc",t.Eth="Eth",t.Stable="Stable",t))(g||{}),_=(e=>(e.Enzyme="enzyme",e.EulerEarn="euler_earn",e.EulerV2="euler_v2",e.Gearbox="gearbox",e.Lista="lista",e.Mellow="mellow",e.Midas="midas",e.Morpho="morpho",e.Napier="napier",e.Pendle="pendle",e.Reserve="reserve",e.Silo="silo",e.TurtleClub="turtle_club",e))(_||{}),h=(t=>(t.Index="index",t.Lending="lending",t.Staking="staking",t))(h||{}),s=a`
|
|
2
2
|
fragment ChainInfoFragment on Chain {
|
|
3
3
|
id
|
|
4
4
|
name
|
|
5
5
|
icon
|
|
6
6
|
}
|
|
7
|
-
`,o=
|
|
7
|
+
`,o=a`
|
|
8
8
|
fragment TokenInfoFragment on Token {
|
|
9
9
|
address
|
|
10
10
|
symbol
|
|
@@ -12,13 +12,13 @@ import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supp
|
|
|
12
12
|
icon
|
|
13
13
|
category
|
|
14
14
|
}
|
|
15
|
-
`,
|
|
15
|
+
`,p=a`
|
|
16
16
|
fragment CuratorInfoFragment on Curator {
|
|
17
17
|
name
|
|
18
18
|
image
|
|
19
19
|
url
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`,u=a`
|
|
22
22
|
fragment ApyFragment on Apy {
|
|
23
23
|
base
|
|
24
24
|
rewards {
|
|
@@ -30,7 +30,7 @@ import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supp
|
|
|
30
30
|
total
|
|
31
31
|
fee
|
|
32
32
|
}
|
|
33
|
-
${o}`,l=
|
|
33
|
+
${o}`,l=a`
|
|
34
34
|
fragment VaultSummaryFragment on MorphoVault {
|
|
35
35
|
chain {
|
|
36
36
|
...ChainInfoFragment
|
|
@@ -59,12 +59,6 @@ import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supp
|
|
|
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
|
|
@@ -87,8 +81,8 @@ import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supp
|
|
|
87
81
|
}
|
|
88
82
|
${s}
|
|
89
83
|
${o}
|
|
90
|
-
${
|
|
91
|
-
${
|
|
84
|
+
${p}
|
|
85
|
+
${u}`,i=a`
|
|
92
86
|
fragment MarketSummaryFragment on MorphoMarket {
|
|
93
87
|
chain {
|
|
94
88
|
...ChainInfoFragment
|
|
@@ -129,12 +123,6 @@ ${p}`,i=t`
|
|
|
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
|
|
@@ -151,7 +139,7 @@ ${p}`,i=t`
|
|
|
151
139
|
}
|
|
152
140
|
${s}
|
|
153
141
|
${o}
|
|
154
|
-
${
|
|
142
|
+
${u}`,M=a`
|
|
155
143
|
query VaultSummaries($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
|
|
156
144
|
morphoVaults(
|
|
157
145
|
where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}
|
|
@@ -165,7 +153,7 @@ ${p}`,M=t`
|
|
|
165
153
|
}
|
|
166
154
|
}
|
|
167
155
|
}
|
|
168
|
-
${l}`,S=
|
|
156
|
+
${l}`,S=a`
|
|
169
157
|
query MarketSummaries($chainIds: [ChainId!]!, $marketIds: [Hex!]!) {
|
|
170
158
|
morphoMarkets(
|
|
171
159
|
where: {chainId_in: $chainIds, marketId_in: $marketIds}
|
|
@@ -179,7 +167,7 @@ ${p}`,M=t`
|
|
|
179
167
|
}
|
|
180
168
|
}
|
|
181
169
|
}
|
|
182
|
-
${i}`,I=
|
|
170
|
+
${i}`,I=a`
|
|
183
171
|
query Vault($chainId: ChainId!, $vaultAddress: Address!) {
|
|
184
172
|
morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultAddress]}) {
|
|
185
173
|
items {
|
|
@@ -269,7 +257,7 @@ ${p}`,M=t`
|
|
|
269
257
|
${l}
|
|
270
258
|
${s}
|
|
271
259
|
${o}
|
|
272
|
-
${
|
|
260
|
+
${u}`,x=a`
|
|
273
261
|
query Market($chainId: ChainId!, $marketId: Hex!) {
|
|
274
262
|
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
275
263
|
items {
|
|
@@ -356,7 +344,7 @@ ${p}`,w=t`
|
|
|
356
344
|
${i}
|
|
357
345
|
${o}
|
|
358
346
|
${s}
|
|
359
|
-
${
|
|
347
|
+
${p}`,T=a`
|
|
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 @@ ${u}`,x=t`
|
|
|
384
372
|
}
|
|
385
373
|
}
|
|
386
374
|
}
|
|
387
|
-
`,
|
|
375
|
+
`,f=a`
|
|
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]}
|
|
@@ -427,7 +415,7 @@ ${u}`,x=t`
|
|
|
427
415
|
}
|
|
428
416
|
}
|
|
429
417
|
}
|
|
430
|
-
`,
|
|
418
|
+
`,C=a`
|
|
431
419
|
query SupportedMarketIds($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
|
|
432
420
|
morphoVaults(where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}) {
|
|
433
421
|
items {
|
|
@@ -442,245 +430,4 @@ ${u}`,x=t`
|
|
|
442
430
|
}
|
|
443
431
|
}
|
|
444
432
|
}
|
|
445
|
-
`,C
|
|
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
|
-
`,V=t`
|
|
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
|
-
`,$=t`
|
|
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
|
-
`,v=t`
|
|
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
|
-
`,k={possibleTypes:{Adapter:["MarketV1Adapter","UnknownAdapter","VaultV1Adapter"],Cap:["AdapterCap","CollateralExposureCap","MarketV1ExposureCap","UnknownCap"],Erc4626Vault:["GenericErc4626Vault","MorphoVault","MorphoVaultV2"]}},P=k;export{p as ApyFragment,y as ApySide,m as ApyTimeframe,s as ChainInfoFragment,u as CuratorInfoFragment,d as Erc4626VaultProtocol,A as IdentityResolver,w as Market,$ as MarketHistoryData,v as MarketIbrHistoryData,T as MarketPositions,S as MarketSummaries,i as MarketSummaryFragment,c as MerklAction,f as SupportedMarketIds,_ as TokenCategory,o as TokenInfoFragment,I as Vault,C as VaultHistoryData,V as VaultMarketAllocationHistoryData,x as VaultPositions,g as VaultProtocol,M as VaultSummaries,l as VaultSummaryFragment,b as VaultType,P as default};
|
|
433
|
+
`,b={possibleTypes:{Adapter:["MarketV1Adapter","UnknownAdapter","VaultV1Adapter"],Cap:["AdapterCap","CollateralExposureCap","MarketV1ExposureCap","UnknownCap"],Erc4626Vault:["GenericErc4626Vault","MorphoVault","MorphoVaultV2"]}},w=b;export{u as ApyFragment,d as ApySide,y as ApyTimeframe,s as ChainInfoFragment,p as CuratorInfoFragment,m as Erc4626VaultProtocol,c as IdentityResolver,x as Market,f as MarketPositions,S as MarketSummaries,i as MarketSummaryFragment,A as MerklAction,C as SupportedMarketIds,g as TokenCategory,o as TokenInfoFragment,I as Vault,T as VaultPositions,_ as VaultProtocol,M as VaultSummaries,l as VaultSummaryFragment,h as VaultType,w as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var s=Object.defineProperty;var
|
|
1
|
+
"use strict";var s=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var D=(i,e)=>{for(var t in e)s(i,t,{get:e[t],enumerable:!0})},A=(i,e,t,y)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of x(e))!B.call(i,u)&&u!==t&&s(i,u,{get:()=>e[u],enumerable:!(y=T(e,u))||y.enumerable});return i};var d=i=>A(s({},"__esModule",{value:!0}),i);var $={};D($,{Aggregation_Interval:()=>c,ChainTransaction_OrderBy:()=>b,GetChartData:()=>f,GetFirstHoneyTxnDate:()=>E,GetGlobalData:()=>C,GetHoneyTxn:()=>k,GetHoneyTxnByType:()=>H,HoneyCollateral_OrderBy:()=>I,HoneySupplyDayData_OrderBy:()=>_,HoneyTxnData:()=>l,HoneyTxnTimeseries_OrderBy:()=>S,HoneyTxn_OrderBy:()=>M,OrderDirection:()=>m,TxnType:()=>g,_SubgraphErrorPolicy_:()=>h,default:()=>w});module.exports=d($);var p=require("@apollo/client"),c=(t=>(t.Day="day",t.Hour="hour",t))(c||{}),b=(o=>(o.HoneyTxn="honeyTxn",o.Id="id",o.IsBasketMode="isBasketMode",o.TxHash="txHash",o.Type="type",o))(b||{}),I=(n=>(n.Collateral="collateral",n.CollateralAmount="collateralAmount",n.HoneyTxn="honeyTxn",n.HoneyTxnFrom="honeyTxn__from",n.HoneyTxnHoneyAmount="honeyTxn__honeyAmount",n.HoneyTxnId="honeyTxn__id",n.HoneyTxnIsBasketMode="honeyTxn__isBasketMode",n.HoneyTxnTimestamp="honeyTxn__timestamp",n.HoneyTxnTo="honeyTxn__to",n.HoneyTxnType="honeyTxn__type",n.Id="id",n))(I||{}),_=(y=>(y.Amount="amount",y.Id="id",y.Timestamp="timestamp",y))(_||{}),S=(r=>(r.BlockNumber="blockNumber",r.From="from",r.HoneyAmount="honeyAmount",r.Id="id",r.Timestamp="timestamp",r.To="to",r.TotalSupply="totalSupply",r.TxHash="txHash",r.TxnType="txnType",r))(S||{}),M=(a=>(a.ChainTransaction="chainTransaction",a.ChainTransactionId="chainTransaction__id",a.ChainTransactionIsBasketMode="chainTransaction__isBasketMode",a.ChainTransactionTxHash="chainTransaction__txHash",a.ChainTransactionType="chainTransaction__type",a.Collateral="collateral",a.From="from",a.HoneyAmount="honeyAmount",a.Id="id",a.IsBasketMode="isBasketMode",a.Timestamp="timestamp",a.To="to",a.Type="type",a))(M||{}),m=(t=>(t.Asc="asc",t.Desc="desc",t))(m||{}),g=(t=>(t.Mint="MINT",t.Redeem="REDEEM",t))(g||{}),h=(t=>(t.Allow="allow",t.Deny="deny",t))(h||{}),l=p.gql`
|
|
2
2
|
fragment HoneyTxnData on HoneyTxn {
|
|
3
3
|
id
|
|
4
4
|
timestamp
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
id
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
19
|
+
`,H=p.gql`
|
|
20
20
|
query GetHoneyTxnByType($page: Int!, $limit: Int!, $type: TxnType!) {
|
|
21
21
|
honeyTxns(
|
|
22
22
|
skip: $page
|
|
@@ -28,60 +28,40 @@
|
|
|
28
28
|
...HoneyTxnData
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
${l}`,
|
|
31
|
+
${l}`,k=p.gql`
|
|
32
32
|
query GetHoneyTxn($page: Int!, $limit: Int!) {
|
|
33
33
|
honeyTxns(skip: $page, first: $limit, orderBy: timestamp, orderDirection: desc) {
|
|
34
34
|
...HoneyTxnData
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
${l}`,f=
|
|
38
|
-
query
|
|
39
|
-
|
|
40
|
-
where: {timestamp_gt: $timestamp_gt}
|
|
41
|
-
orderBy: timestamp
|
|
42
|
-
orderDirection: asc
|
|
43
|
-
) {
|
|
44
|
-
id
|
|
45
|
-
timestamp
|
|
46
|
-
amount
|
|
47
|
-
}
|
|
48
|
-
honeySupplyDayDatas(
|
|
49
|
-
where: {timestamp_gt: $timestamp_gt}
|
|
50
|
-
orderBy: timestamp
|
|
51
|
-
orderDirection: asc
|
|
52
|
-
) {
|
|
53
|
-
id
|
|
54
|
-
timestamp
|
|
55
|
-
amount
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
`,C=i.gql`
|
|
59
|
-
query GetVolumeHour($timestamp_gt: Int!) {
|
|
60
|
-
honeyVolumeHourDatas(
|
|
61
|
-
where: {timestamp_gt: $timestamp_gt}
|
|
62
|
-
orderBy: timestamp
|
|
63
|
-
orderDirection: asc
|
|
64
|
-
) {
|
|
37
|
+
${l}`,f=p.gql`
|
|
38
|
+
query GetChartData($interval: Aggregation_interval!, $first: Int!) {
|
|
39
|
+
honeySnapshots(interval: $interval, first: $first) {
|
|
65
40
|
id
|
|
41
|
+
allTimeVolume
|
|
42
|
+
mintVolume
|
|
43
|
+
redeemVolume
|
|
66
44
|
timestamp
|
|
67
|
-
|
|
45
|
+
totalVolume
|
|
46
|
+
totalSupply
|
|
68
47
|
}
|
|
69
48
|
}
|
|
70
|
-
`,
|
|
49
|
+
`,C=p.gql`
|
|
71
50
|
query GetGlobalData {
|
|
72
|
-
|
|
73
|
-
allTimeVolume
|
|
51
|
+
honeySnapshots(interval: hour, first: 24) {
|
|
74
52
|
id
|
|
53
|
+
allTimeVolume
|
|
54
|
+
totalVolume
|
|
55
|
+
timestamp
|
|
56
|
+
totalSupply
|
|
75
57
|
mintVolume
|
|
76
58
|
redeemVolume
|
|
77
|
-
timestamp
|
|
78
|
-
totalVolume
|
|
79
59
|
}
|
|
80
60
|
}
|
|
81
|
-
`,
|
|
61
|
+
`,E=p.gql`
|
|
82
62
|
query GetFirstHoneyTxnDate {
|
|
83
63
|
honeyTxns(first: 1) {
|
|
84
64
|
timestamp
|
|
85
65
|
}
|
|
86
66
|
}
|
|
87
|
-
`,
|
|
67
|
+
`,F={possibleTypes:{}},w=F;0&&(module.exports={Aggregation_Interval,ChainTransaction_OrderBy,GetChartData,GetFirstHoneyTxnDate,GetGlobalData,GetHoneyTxn,GetHoneyTxnByType,HoneyCollateral_OrderBy,HoneySupplyDayData_OrderBy,HoneyTxnData,HoneyTxnTimeseries_OrderBy,HoneyTxn_OrderBy,OrderDirection,TxnType,_SubgraphErrorPolicy_});
|