@berachain/graphql 0.4.9 → 0.4.10-beta.0
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/dex/api.codegen.cjs +5 -5
- package/dist/dex/api.codegen.d.cts +88 -82
- package/dist/dex/api.codegen.d.ts +88 -82
- package/dist/dex/api.codegen.mjs +4 -4
- package/dist/honey/honey.codegen.cjs +17 -37
- package/dist/honey/honey.codegen.d.cts +16 -61
- package/dist/honey/honey.codegen.d.ts +16 -61
- package/dist/honey/honey.codegen.mjs +17 -37
- package/dist/pol/api.codegen.cjs +23 -23
- package/dist/pol/api.codegen.d.cts +88 -82
- package/dist/pol/api.codegen.d.ts +88 -82
- package/dist/pol/api.codegen.mjs +10 -10
- package/package.json +3 -3
package/dist/dex/api.codegen.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{gql as r}from"@apollo/client";var S=(t=>(t.Bepolia="BEPOLIA",t.Berachain="BERACHAIN",t))(S||{}),m=(s=>(s.Aura="AURA",s.IbYield="IB_YIELD",s.Locking="LOCKING",s.MabeetsEmissions="MABEETS_EMISSIONS",s.Merkl="MERKL",s.Nested="NESTED",s.Staking="STAKING",s.StakingBoost="STAKING_BOOST",s.Surplus="SURPLUS",s.SwapFee="SWAP_FEE",s.VebalEmissions="VEBAL_EMISSIONS",s.Voting="VOTING",s))(m||{}),d=(e=>(e.Add="ADD",e.Remove="REMOVE",e.Swap="SWAP",e))(d||{}),g=(e=>(e.NinetyDays="NINETY_DAYS",e.SevenDays="SEVEN_DAYS",e.ThirtyDays="THIRTY_DAYS",e))(g||{}),G=(i=>(i.BlackListed="BLACK_LISTED",i.Featured="FEATURED",i.Incentivized="INCENTIVIZED",i.Lrt="LRT",i.Points="POINTS",i.PointsEigenlayer="POINTS_EIGENLAYER",i.PointsGyro="POINTS_GYRO",i.PointsKelp="POINTS_KELP",i.PointsRenzo="POINTS_RENZO",i.PointsSwell="POINTS_SWELL",i.Superfest="SUPERFEST",i))(G||{}),b=(t=>(t.Exit="Exit",t.Join="Join",t))(b||{}),q=(e=>(e.HasOnlyPhantomBpt="HAS_ONLY_PHANTOM_BPT",e.HasSomePhantomBpt="HAS_SOME_PHANTOM_BPT",e.NoNesting="NO_NESTING",e))(q||{}),
|
|
1
|
+
import{gql as r}from"@apollo/client";var S=(t=>(t.Bepolia="BEPOLIA",t.Berachain="BERACHAIN",t))(S||{}),m=(s=>(s.Aura="AURA",s.IbYield="IB_YIELD",s.Locking="LOCKING",s.MabeetsEmissions="MABEETS_EMISSIONS",s.Merkl="MERKL",s.Nested="NESTED",s.Staking="STAKING",s.StakingBoost="STAKING_BOOST",s.Surplus="SURPLUS",s.SwapFee="SWAP_FEE",s.VebalEmissions="VEBAL_EMISSIONS",s.Voting="VOTING",s))(m||{}),d=(e=>(e.Add="ADD",e.Remove="REMOVE",e.Swap="SWAP",e))(d||{}),g=(e=>(e.NinetyDays="NINETY_DAYS",e.SevenDays="SEVEN_DAYS",e.ThirtyDays="THIRTY_DAYS",e))(g||{}),G=(i=>(i.BlackListed="BLACK_LISTED",i.Featured="FEATURED",i.Incentivized="INCENTIVIZED",i.Lrt="LRT",i.Points="POINTS",i.PointsEigenlayer="POINTS_EIGENLAYER",i.PointsGyro="POINTS_GYRO",i.PointsKelp="POINTS_KELP",i.PointsRenzo="POINTS_RENZO",i.PointsSwell="POINTS_SWELL",i.Superfest="SUPERFEST",i))(G||{}),b=(t=>(t.Exit="Exit",t.Join="Join",t))(b||{}),q=(e=>(e.HasOnlyPhantomBpt="HAS_ONLY_PHANTOM_BPT",e.HasSomePhantomBpt="HAS_SOME_PHANTOM_BPT",e.NoNesting="NO_NESTING",e))(q||{}),A=(o=>(o.Apr="apr",o.BgtApr="bgtApr",o.CombinedApr="combinedApr",o.Fees24h="fees24h",o.TotalLiquidity="totalLiquidity",o.TotalShares="totalShares",o.UserbalanceUsd="userbalanceUsd",o.Volume24h="volume24h",o))(A||{}),P=(t=>(t.Asc="asc",t.Desc="desc",t))(P||{}),I=(a=>(a.AllTime="ALL_TIME",a.NinetyDays="NINETY_DAYS",a.OneHundredEightyDays="ONE_HUNDRED_EIGHTY_DAYS",a.OneYear="ONE_YEAR",a.ThirtyDays="THIRTY_DAYS",a))(I||{}),_=(l=>(l.ComposableStable="COMPOSABLE_STABLE",l.CowAmm="COW_AMM",l.Element="ELEMENT",l.Fx="FX",l.Gyro="GYRO",l.Gyro3="GYRO3",l.Gyroe="GYROE",l.Investment="INVESTMENT",l.LiquidityBootstrapping="LIQUIDITY_BOOTSTRAPPING",l.MetaStable="META_STABLE",l.PhantomStable="PHANTOM_STABLE",l.Stable="STABLE",l.Unknown="UNKNOWN",l.Weighted="WEIGHTED",l))(_||{}),h=(e=>(e.AmountRemaining="amountRemaining",e.AmountRemainingUsd="amountRemainingUsd",e.IncentiveRate="incentiveRate",e))(h||{}),D=(t=>(t.Asc="asc",t.Desc="desc",t))(D||{}),T=(o=>(o.ActiveIncentivesRateUsd="activeIncentivesRateUsd",o.ActiveIncentivesValueUsd="activeIncentivesValueUsd",o.AllTimeBgtReceived="allTimeBGTReceived",o.Apr="apr",o.Apy="apy",o.BgtCapturePercentage="bgtCapturePercentage",o.Last24hBgtReceived="last24hBGTReceived",o.ProjectedApr="projectedApr",o))(T||{}),B=(t=>(t.Asc="asc",t.Desc="desc",t))(B||{}),k=(a=>(a.AllTime="ALL_TIME",a.NinetyDays="NINETY_DAYS",a.SevenDays="SEVEN_DAYS",a.SixtyDays="SIXTY_DAYS",a.ThirtyDays="THIRTY_DAYS",a))(k||{}),v=(t=>(t.Day="DAY",t.Hour="HOUR",t))(v||{}),x=(t=>(t.OneDay="ONE_DAY",t.SevenDays="SEVEN_DAYS",t))(x||{}),M=(t=>(t.ExactIn="EXACT_IN",t.ExactOut="EXACT_OUT",t))(M||{}),w=(a=>(a.NinetyDay="NINETY_DAY",a.OneHundredEightyDay="ONE_HUNDRED_EIGHTY_DAY",a.OneYear="ONE_YEAR",a.SevenDay="SEVEN_DAY",a.ThirtyDay="THIRTY_DAY",a))(w||{}),V=(e=>(e.Bpt="BPT",e.PhantomBpt="PHANTOM_BPT",e.WhiteListed="WHITE_LISTED",e))(V||{}),C=(y=>(y.Amount="amount",y))(C||{}),R=(t=>(t.Asc="asc",t.Desc="desc",t))(R||{}),E=(u=>(u.Inactive="INACTIVE",u.Offline="OFFLINE",u.Proposed="PROPOSED",u.Signed="SIGNED",u))(E||{}),F=(a=>(a.ActiveBoostAmount="activeBoostAmount",a.LatestBlock="latestBlock",a.LatestBlockTime="latestBlockTime",a.QueuedBoostAmount="queuedBoostAmount",a.QueuedDropBoostAmount="queuedDropBoostAmount",a))(F||{}),f=(t=>(t.Asc="asc",t.Desc="desc",t))(f||{}),U=(n=>(n.ActiveBoostAmount="activeBoostAmount",n.AllTimeDistributedBgtAmount="allTimeDistributedBGTAmount",n.AllTimeEarnedBgtAmount="allTimeEarnedBGTAmount",n.Apy="apy",n.BgtCapturePercentage="bgtCapturePercentage",n.BoostApr="boostApr",n.CommissionOnIncentives="commissionOnIncentives",n.LastDayDistributedBgtAmount="lastDayDistributedBGTAmount",n.LastDayEarnedBgtAmount="lastDayEarnedBGTAmount",n.QueuedBoostAmount="queuedBoostAmount",n.QueuedDropBoostAmount="queuedDropBoostAmount",n.RewardRate="rewardRate",n.StakedBeraAmount="stakedBeraAmount",n.UsersActiveBoostCount="usersActiveBoostCount",n.UsersQueuedBoostCount="usersQueuedBoostCount",n))(U||{}),$=(t=>(t.Asc="asc",t.Desc="desc",t))($||{}),N=(u=>(u.NinetyDays="NINETY_DAYS",u.SevenDays="SEVEN_DAYS",u.SixtyDays="SIXTY_DAYS",u.ThirtyDays="THIRTY_DAYS",u))(N||{}),p=r`
|
|
2
2
|
fragment DynamicData on GqlPoolDynamicData {
|
|
3
3
|
totalShares
|
|
4
4
|
fees24h
|
|
@@ -125,7 +125,7 @@ ${c}`,O=r`
|
|
|
125
125
|
amount
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
`,
|
|
128
|
+
`,z=r`
|
|
129
129
|
fragment PoolEvent on GqlPoolEvent {
|
|
130
130
|
id
|
|
131
131
|
valueUSD
|
|
@@ -179,7 +179,7 @@ ${K}`,j=r`
|
|
|
179
179
|
...PoolEvent
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
${
|
|
182
|
+
${z}`,et=r`
|
|
183
183
|
query GetTokenCurrentPrices($chains: [GqlChain!]!, $addressIn: [String!]!) {
|
|
184
184
|
tokenGetCurrentPrices(chains: $chains, addressIn: $addressIn) {
|
|
185
185
|
address
|
|
@@ -196,4 +196,4 @@ ${K}`,j=r`
|
|
|
196
196
|
totalLiquidity
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
`,
|
|
199
|
+
`,J={possibleTypes:{GqlIncentive:["GqlRewardVaultIncentive","GqlValidatorIncentive"],GqlPoolAprValue:["GqlPoolAprRange","GqlPoolAprTotal"],GqlPoolBase:["GqlPoolComposableStable","GqlPoolElement","GqlPoolFx","GqlPoolGyro","GqlPoolLiquidityBootstrapping","GqlPoolMetaStable","GqlPoolStable","GqlPoolWeighted"],GqlPoolEvent:["GqlPoolAddRemoveEventV3","GqlPoolSwapEventCowAmm","GqlPoolSwapEventV3"],GqlPoolNestedUnion:["GqlPoolComposableStableNested"],GqlPoolTokenBase:["GqlPoolToken","GqlPoolTokenComposableStable"],GqlPoolTokenComposableStableNestedUnion:["GqlPoolToken"],GqlPoolTokenUnion:["GqlPoolToken","GqlPoolTokenComposableStable"],GqlPoolUnion:["GqlPoolComposableStable","GqlPoolElement","GqlPoolFx","GqlPoolGyro","GqlPoolLiquidityBootstrapping","GqlPoolMetaStable","GqlPoolStable","GqlPoolWeighted"]}},rt=J;export{p as DynamicData,ot as GetGlobalLiquidityAndSwapVolume,Z as GetPool,at as GetPoolEvents,tt as GetPoolHistoricalData,j as GetPools,et as GetTokenCurrentPrices,S as GqlChain,K as GqlPoolAddRemoveEventV3,m as GqlPoolAprItemType,d as GqlPoolEventType,g as GqlPoolEventsDataRange,G as GqlPoolFilterCategory,b as GqlPoolJoinExitType,q as GqlPoolNestingType,A as GqlPoolOrderBy,P as GqlPoolOrderDirection,I as GqlPoolSnapshotDataRange,Q as GqlPoolSwapEventCowAmm,Y as GqlPoolSwapEventV3,_ as GqlPoolType,h as GqlRewardVaultIncentiveOrderBy,D as GqlRewardVaultIncentiveOrderDirection,T as GqlRewardVaultOrderBy,B as GqlRewardVaultOrderDirection,k as GqlRewardVaultSnapshotDataRange,v as GqlRewardVaultSnapshotResolution,x as GqlSWberaVaultMetadataResolution,M as GqlSorSwapType,w as GqlTokenChartDataRange,V as GqlTokenType,C as GqlUserVaultDepositOrderBy,R as GqlUserVaultDepositOrderDirection,E as GqlValidatorBlockUptimeStatus,F as GqlValidatorBoostOrderBy,f as GqlValidatorBoostOrderDirection,U as GqlValidatorOrderBy,$ as GqlValidatorOrderDirection,N as GqlVaultSnapshotDataRange,W as MinimalPool,H as MinimalPoolInList,z as PoolEvent,O as PoolHistoricalData,c as RewardVault,L as UserBalance,rt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var l=Object.defineProperty;var
|
|
1
|
+
"use strict";var l=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var H=(i,e)=>{for(var t in e)l(i,t,{get:e[t],enumerable:!0})},k=(i,e,t,u)=>{if(e&&typeof e=="object"||typeof e=="function")for(let y of D(e))!d.call(i,y)&&y!==t&&l(i,y,{get:()=>e[y],enumerable:!(u=A(e,y))||u.enumerable});return i};var f=i=>k(l({},"__esModule",{value:!0}),i);var V={};H(V,{Aggregation_Interval:()=>c,ChainTransaction_OrderBy:()=>I,GetHoneyTxn:()=>F,GetSnapshots:()=>C,HoneyCollateral_OrderBy:()=>b,HoneySnapshotData:()=>B,HoneySnapshot_OrderBy:()=>_,HoneySupplyDayData_OrderBy:()=>S,HoneyTxnData:()=>x,HoneyTxnTimeseries_OrderBy:()=>M,HoneyTxn_OrderBy:()=>m,OrderDirection:()=>g,TxnType:()=>h,_SubgraphErrorPolicy_:()=>T,default:()=>E});module.exports=f(V);var o=require("@apollo/client"),c=(t=>(t.Day="day",t.Hour="hour",t))(c||{}),I=(s=>(s.HoneyTxn="honeyTxn",s.Id="id",s.IsBasketMode="isBasketMode",s.TxHash="txHash",s.Type="type",s))(I||{}),b=(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))(b||{}),_=(r=>(r.AllTimeVolume="allTimeVolume",r.Id="id",r.MintVolume="mintVolume",r.RedeemVolume="redeemVolume",r.Timestamp="timestamp",r.TotalSupply="totalSupply",r.TotalVolume="totalVolume",r))(_||{}),S=(u=>(u.Amount="amount",u.Id="id",u.Timestamp="timestamp",u))(S||{}),M=(p=>(p.BlockNumber="blockNumber",p.From="from",p.HoneyAmount="honeyAmount",p.Id="id",p.Timestamp="timestamp",p.To="to",p.TotalSupply="totalSupply",p.TxHash="txHash",p.TxnType="txnType",p))(M||{}),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||{}),g=(t=>(t.Asc="asc",t.Desc="desc",t))(g||{}),h=(t=>(t.Mint="MINT",t.Redeem="REDEEM",t))(h||{}),T=(t=>(t.Allow="allow",t.Deny="deny",t))(T||{}),x=o.gql`
|
|
2
2
|
fragment HoneyTxnData on HoneyTxn {
|
|
3
3
|
id
|
|
4
4
|
timestamp
|
|
@@ -16,8 +16,18 @@
|
|
|
16
16
|
id
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
20
|
-
|
|
19
|
+
`,B=o.gql`
|
|
20
|
+
fragment HoneySnapshotData on HoneySnapshot {
|
|
21
|
+
id
|
|
22
|
+
allTimeVolume
|
|
23
|
+
mintVolume
|
|
24
|
+
redeemVolume
|
|
25
|
+
timestamp
|
|
26
|
+
totalSupply
|
|
27
|
+
totalVolume
|
|
28
|
+
}
|
|
29
|
+
`,F=o.gql`
|
|
30
|
+
query GetHoneyTxn($page: Int!, $limit: Int!, $type: TxnType) {
|
|
21
31
|
honeyTxns(
|
|
22
32
|
skip: $page
|
|
23
33
|
first: $limit
|
|
@@ -28,40 +38,10 @@
|
|
|
28
38
|
...HoneyTxnData
|
|
29
39
|
}
|
|
30
40
|
}
|
|
31
|
-
${
|
|
32
|
-
query
|
|
33
|
-
honeyTxns(skip: $page, first: $limit, orderBy: timestamp, orderDirection: desc) {
|
|
34
|
-
...HoneyTxnData
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
${c}`,C=u.gql`
|
|
38
|
-
query GetChartData($interval: Aggregation_interval!, $first: Int!) {
|
|
41
|
+
${x}`,C=o.gql`
|
|
42
|
+
query GetSnapshots($interval: Aggregation_interval!, $first: Int = 24) {
|
|
39
43
|
honeySnapshots(interval: $interval, first: $first) {
|
|
40
|
-
|
|
41
|
-
allTimeVolume
|
|
42
|
-
mintVolume
|
|
43
|
-
redeemVolume
|
|
44
|
-
timestamp
|
|
45
|
-
totalVolume
|
|
46
|
-
totalSupply
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
`,$=u.gql`
|
|
50
|
-
query GetGlobalData {
|
|
51
|
-
honeySnapshots(interval: hour, first: 24) {
|
|
52
|
-
id
|
|
53
|
-
allTimeVolume
|
|
54
|
-
totalVolume
|
|
55
|
-
timestamp
|
|
56
|
-
totalSupply
|
|
57
|
-
mintVolume
|
|
58
|
-
redeemVolume
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
`,V=u.gql`
|
|
62
|
-
query GetFirstHoneyTxnDate {
|
|
63
|
-
honeyTxns(first: 1) {
|
|
64
|
-
timestamp
|
|
44
|
+
...HoneySnapshotData
|
|
65
45
|
}
|
|
66
46
|
}
|
|
67
|
-
`,
|
|
47
|
+
${B}`,w={possibleTypes:{}},E=w;0&&(module.exports={Aggregation_Interval,ChainTransaction_OrderBy,GetHoneyTxn,GetSnapshots,HoneyCollateral_OrderBy,HoneySnapshotData,HoneySnapshot_OrderBy,HoneySupplyDayData_OrderBy,HoneyTxnData,HoneyTxnTimeseries_OrderBy,HoneyTxn_OrderBy,OrderDirection,TxnType,_SubgraphErrorPolicy_});
|
|
@@ -668,37 +668,10 @@ type HoneyTxnDataFragment = {
|
|
|
668
668
|
id: string;
|
|
669
669
|
}>;
|
|
670
670
|
};
|
|
671
|
-
type GetHoneyTxnByTypeQueryVariables = Exact<{
|
|
672
|
-
page: Scalars['Int']['input'];
|
|
673
|
-
limit: Scalars['Int']['input'];
|
|
674
|
-
type: TxnType;
|
|
675
|
-
}>;
|
|
676
|
-
type GetHoneyTxnByTypeQuery = {
|
|
677
|
-
__typename?: 'Query';
|
|
678
|
-
honeyTxns: Array<{
|
|
679
|
-
__typename?: 'HoneyTxn';
|
|
680
|
-
id: string;
|
|
681
|
-
timestamp: string;
|
|
682
|
-
from: `0x${string}`;
|
|
683
|
-
to: `0x${string}`;
|
|
684
|
-
type?: TxnType | null;
|
|
685
|
-
honeyAmount: string;
|
|
686
|
-
chainTransaction: {
|
|
687
|
-
__typename?: 'ChainTransaction';
|
|
688
|
-
id: `0x${string}`;
|
|
689
|
-
txHash: `0x${string}`;
|
|
690
|
-
};
|
|
691
|
-
collateral: Array<{
|
|
692
|
-
__typename?: 'HoneyCollateral';
|
|
693
|
-
collateral: `0x${string}`;
|
|
694
|
-
collateralAmount: string;
|
|
695
|
-
id: string;
|
|
696
|
-
}>;
|
|
697
|
-
}>;
|
|
698
|
-
};
|
|
699
671
|
type GetHoneyTxnQueryVariables = Exact<{
|
|
700
672
|
page: Scalars['Int']['input'];
|
|
701
673
|
limit: Scalars['Int']['input'];
|
|
674
|
+
type?: InputMaybe<TxnType>;
|
|
702
675
|
}>;
|
|
703
676
|
type GetHoneyTxnQuery = {
|
|
704
677
|
__typename?: 'Query';
|
|
@@ -723,11 +696,11 @@ type GetHoneyTxnQuery = {
|
|
|
723
696
|
}>;
|
|
724
697
|
}>;
|
|
725
698
|
};
|
|
726
|
-
type
|
|
699
|
+
type GetSnapshotsQueryVariables = Exact<{
|
|
727
700
|
interval: Aggregation_Interval;
|
|
728
|
-
first
|
|
701
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
729
702
|
}>;
|
|
730
|
-
type
|
|
703
|
+
type GetSnapshotsQuery = {
|
|
731
704
|
__typename?: 'Query';
|
|
732
705
|
honeySnapshots: Array<{
|
|
733
706
|
__typename?: 'HoneySnapshot';
|
|
@@ -736,42 +709,24 @@ type GetChartDataQuery = {
|
|
|
736
709
|
mintVolume: string;
|
|
737
710
|
redeemVolume: string;
|
|
738
711
|
timestamp: string;
|
|
739
|
-
totalVolume: string;
|
|
740
712
|
totalSupply: string;
|
|
741
|
-
}>;
|
|
742
|
-
};
|
|
743
|
-
type GetGlobalDataQueryVariables = Exact<{
|
|
744
|
-
[key: string]: never;
|
|
745
|
-
}>;
|
|
746
|
-
type GetGlobalDataQuery = {
|
|
747
|
-
__typename?: 'Query';
|
|
748
|
-
honeySnapshots: Array<{
|
|
749
|
-
__typename?: 'HoneySnapshot';
|
|
750
|
-
id: string;
|
|
751
|
-
allTimeVolume: string;
|
|
752
713
|
totalVolume: string;
|
|
753
|
-
timestamp: string;
|
|
754
|
-
totalSupply: string;
|
|
755
|
-
mintVolume: string;
|
|
756
|
-
redeemVolume: string;
|
|
757
714
|
}>;
|
|
758
715
|
};
|
|
759
|
-
type
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
716
|
+
type HoneySnapshotDataFragment = {
|
|
717
|
+
__typename?: 'HoneySnapshot';
|
|
718
|
+
id: string;
|
|
719
|
+
allTimeVolume: string;
|
|
720
|
+
mintVolume: string;
|
|
721
|
+
redeemVolume: string;
|
|
722
|
+
timestamp: string;
|
|
723
|
+
totalSupply: string;
|
|
724
|
+
totalVolume: string;
|
|
768
725
|
};
|
|
769
726
|
declare const HoneyTxnData: _apollo_client.DocumentNode;
|
|
770
|
-
declare const
|
|
727
|
+
declare const HoneySnapshotData: _apollo_client.DocumentNode;
|
|
771
728
|
declare const GetHoneyTxn: _apollo_client.DocumentNode;
|
|
772
|
-
declare const
|
|
773
|
-
declare const GetGlobalData: _apollo_client.DocumentNode;
|
|
774
|
-
declare const GetFirstHoneyTxnDate: _apollo_client.DocumentNode;
|
|
729
|
+
declare const GetSnapshots: _apollo_client.DocumentNode;
|
|
775
730
|
interface PossibleTypesResultData {
|
|
776
731
|
possibleTypes: {
|
|
777
732
|
[key: string]: string[];
|
|
@@ -779,4 +734,4 @@ interface PossibleTypesResultData {
|
|
|
779
734
|
}
|
|
780
735
|
declare const result: PossibleTypesResultData;
|
|
781
736
|
|
|
782
|
-
export { Aggregation_Interval, type BlockChangedFilter, type Block_Height, type ChainTransaction, type ChainTransactionHoneyTxnArgs, type ChainTransaction_Filter, ChainTransaction_OrderBy, type Exact,
|
|
737
|
+
export { Aggregation_Interval, type BlockChangedFilter, type Block_Height, type ChainTransaction, type ChainTransactionHoneyTxnArgs, type ChainTransaction_Filter, ChainTransaction_OrderBy, type Exact, GetHoneyTxn, type GetHoneyTxnQuery, type GetHoneyTxnQueryVariables, GetSnapshots, type GetSnapshotsQuery, type GetSnapshotsQueryVariables, type HoneyCollateral, type HoneyCollateral_Filter, HoneyCollateral_OrderBy, type HoneySnapshot, HoneySnapshotData, type HoneySnapshotDataFragment, type HoneySnapshot_Filter, HoneySnapshot_OrderBy, type HoneySupplyDayData, type HoneySupplyDayData_Filter, HoneySupplyDayData_OrderBy, type HoneyTxn, type HoneyTxnCollateralArgs, HoneyTxnData, type HoneyTxnDataFragment, type HoneyTxnTimeseries, type HoneyTxnTimeseries_Filter, HoneyTxnTimeseries_OrderBy, type HoneyTxn_Filter, HoneyTxn_OrderBy, type Incremental, type InputMaybe, type MakeEmpty, type MakeMaybe, type MakeOptional, type Maybe, OrderDirection, type PossibleTypesResultData, type Query, type QueryChainTransactionArgs, type QueryChainTransactionsArgs, type QueryHoneyCollateralArgs, type QueryHoneyCollateralsArgs, type QueryHoneySnapshotsArgs, type QueryHoneySupplyDayDataArgs, type QueryHoneySupplyDayDatasArgs, type QueryHoneyTxnArgs, type QueryHoneyTxnTimeseriesArgs, type QueryHoneyTxnTimeseries_CollectionArgs, type QueryHoneyTxnsArgs, type Query_MetaArgs, type Scalars, TxnType, type _Block_, type _Meta_, _SubgraphErrorPolicy_, result as default };
|
|
@@ -668,37 +668,10 @@ type HoneyTxnDataFragment = {
|
|
|
668
668
|
id: string;
|
|
669
669
|
}>;
|
|
670
670
|
};
|
|
671
|
-
type GetHoneyTxnByTypeQueryVariables = Exact<{
|
|
672
|
-
page: Scalars['Int']['input'];
|
|
673
|
-
limit: Scalars['Int']['input'];
|
|
674
|
-
type: TxnType;
|
|
675
|
-
}>;
|
|
676
|
-
type GetHoneyTxnByTypeQuery = {
|
|
677
|
-
__typename?: 'Query';
|
|
678
|
-
honeyTxns: Array<{
|
|
679
|
-
__typename?: 'HoneyTxn';
|
|
680
|
-
id: string;
|
|
681
|
-
timestamp: string;
|
|
682
|
-
from: `0x${string}`;
|
|
683
|
-
to: `0x${string}`;
|
|
684
|
-
type?: TxnType | null;
|
|
685
|
-
honeyAmount: string;
|
|
686
|
-
chainTransaction: {
|
|
687
|
-
__typename?: 'ChainTransaction';
|
|
688
|
-
id: `0x${string}`;
|
|
689
|
-
txHash: `0x${string}`;
|
|
690
|
-
};
|
|
691
|
-
collateral: Array<{
|
|
692
|
-
__typename?: 'HoneyCollateral';
|
|
693
|
-
collateral: `0x${string}`;
|
|
694
|
-
collateralAmount: string;
|
|
695
|
-
id: string;
|
|
696
|
-
}>;
|
|
697
|
-
}>;
|
|
698
|
-
};
|
|
699
671
|
type GetHoneyTxnQueryVariables = Exact<{
|
|
700
672
|
page: Scalars['Int']['input'];
|
|
701
673
|
limit: Scalars['Int']['input'];
|
|
674
|
+
type?: InputMaybe<TxnType>;
|
|
702
675
|
}>;
|
|
703
676
|
type GetHoneyTxnQuery = {
|
|
704
677
|
__typename?: 'Query';
|
|
@@ -723,11 +696,11 @@ type GetHoneyTxnQuery = {
|
|
|
723
696
|
}>;
|
|
724
697
|
}>;
|
|
725
698
|
};
|
|
726
|
-
type
|
|
699
|
+
type GetSnapshotsQueryVariables = Exact<{
|
|
727
700
|
interval: Aggregation_Interval;
|
|
728
|
-
first
|
|
701
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
729
702
|
}>;
|
|
730
|
-
type
|
|
703
|
+
type GetSnapshotsQuery = {
|
|
731
704
|
__typename?: 'Query';
|
|
732
705
|
honeySnapshots: Array<{
|
|
733
706
|
__typename?: 'HoneySnapshot';
|
|
@@ -736,42 +709,24 @@ type GetChartDataQuery = {
|
|
|
736
709
|
mintVolume: string;
|
|
737
710
|
redeemVolume: string;
|
|
738
711
|
timestamp: string;
|
|
739
|
-
totalVolume: string;
|
|
740
712
|
totalSupply: string;
|
|
741
|
-
}>;
|
|
742
|
-
};
|
|
743
|
-
type GetGlobalDataQueryVariables = Exact<{
|
|
744
|
-
[key: string]: never;
|
|
745
|
-
}>;
|
|
746
|
-
type GetGlobalDataQuery = {
|
|
747
|
-
__typename?: 'Query';
|
|
748
|
-
honeySnapshots: Array<{
|
|
749
|
-
__typename?: 'HoneySnapshot';
|
|
750
|
-
id: string;
|
|
751
|
-
allTimeVolume: string;
|
|
752
713
|
totalVolume: string;
|
|
753
|
-
timestamp: string;
|
|
754
|
-
totalSupply: string;
|
|
755
|
-
mintVolume: string;
|
|
756
|
-
redeemVolume: string;
|
|
757
714
|
}>;
|
|
758
715
|
};
|
|
759
|
-
type
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
716
|
+
type HoneySnapshotDataFragment = {
|
|
717
|
+
__typename?: 'HoneySnapshot';
|
|
718
|
+
id: string;
|
|
719
|
+
allTimeVolume: string;
|
|
720
|
+
mintVolume: string;
|
|
721
|
+
redeemVolume: string;
|
|
722
|
+
timestamp: string;
|
|
723
|
+
totalSupply: string;
|
|
724
|
+
totalVolume: string;
|
|
768
725
|
};
|
|
769
726
|
declare const HoneyTxnData: _apollo_client.DocumentNode;
|
|
770
|
-
declare const
|
|
727
|
+
declare const HoneySnapshotData: _apollo_client.DocumentNode;
|
|
771
728
|
declare const GetHoneyTxn: _apollo_client.DocumentNode;
|
|
772
|
-
declare const
|
|
773
|
-
declare const GetGlobalData: _apollo_client.DocumentNode;
|
|
774
|
-
declare const GetFirstHoneyTxnDate: _apollo_client.DocumentNode;
|
|
729
|
+
declare const GetSnapshots: _apollo_client.DocumentNode;
|
|
775
730
|
interface PossibleTypesResultData {
|
|
776
731
|
possibleTypes: {
|
|
777
732
|
[key: string]: string[];
|
|
@@ -779,4 +734,4 @@ interface PossibleTypesResultData {
|
|
|
779
734
|
}
|
|
780
735
|
declare const result: PossibleTypesResultData;
|
|
781
736
|
|
|
782
|
-
export { Aggregation_Interval, type BlockChangedFilter, type Block_Height, type ChainTransaction, type ChainTransactionHoneyTxnArgs, type ChainTransaction_Filter, ChainTransaction_OrderBy, type Exact,
|
|
737
|
+
export { Aggregation_Interval, type BlockChangedFilter, type Block_Height, type ChainTransaction, type ChainTransactionHoneyTxnArgs, type ChainTransaction_Filter, ChainTransaction_OrderBy, type Exact, GetHoneyTxn, type GetHoneyTxnQuery, type GetHoneyTxnQueryVariables, GetSnapshots, type GetSnapshotsQuery, type GetSnapshotsQueryVariables, type HoneyCollateral, type HoneyCollateral_Filter, HoneyCollateral_OrderBy, type HoneySnapshot, HoneySnapshotData, type HoneySnapshotDataFragment, type HoneySnapshot_Filter, HoneySnapshot_OrderBy, type HoneySupplyDayData, type HoneySupplyDayData_Filter, HoneySupplyDayData_OrderBy, type HoneyTxn, type HoneyTxnCollateralArgs, HoneyTxnData, type HoneyTxnDataFragment, type HoneyTxnTimeseries, type HoneyTxnTimeseries_Filter, HoneyTxnTimeseries_OrderBy, type HoneyTxn_Filter, HoneyTxn_OrderBy, type Incremental, type InputMaybe, type MakeEmpty, type MakeMaybe, type MakeOptional, type Maybe, OrderDirection, type PossibleTypesResultData, type Query, type QueryChainTransactionArgs, type QueryChainTransactionsArgs, type QueryHoneyCollateralArgs, type QueryHoneyCollateralsArgs, type QueryHoneySnapshotsArgs, type QueryHoneySupplyDayDataArgs, type QueryHoneySupplyDayDatasArgs, type QueryHoneyTxnArgs, type QueryHoneyTxnTimeseriesArgs, type QueryHoneyTxnTimeseries_CollectionArgs, type QueryHoneyTxnsArgs, type Query_MetaArgs, type Scalars, TxnType, type _Block_, type _Meta_, _SubgraphErrorPolicy_, result as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{gql as
|
|
1
|
+
import{gql as r}from"@apollo/client";var y=(a=>(a.Day="day",a.Hour="hour",a))(y||{}),s=(i=>(i.HoneyTxn="honeyTxn",i.Id="id",i.IsBasketMode="isBasketMode",i.TxHash="txHash",i.Type="type",i))(s||{}),o=(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))(o||{}),l=(p=>(p.AllTimeVolume="allTimeVolume",p.Id="id",p.MintVolume="mintVolume",p.RedeemVolume="redeemVolume",p.Timestamp="timestamp",p.TotalSupply="totalSupply",p.TotalVolume="totalVolume",p))(l||{}),c=(u=>(u.Amount="amount",u.Id="id",u.Timestamp="timestamp",u))(c||{}),I=(e=>(e.BlockNumber="blockNumber",e.From="from",e.HoneyAmount="honeyAmount",e.Id="id",e.Timestamp="timestamp",e.To="to",e.TotalSupply="totalSupply",e.TxHash="txHash",e.TxnType="txnType",e))(I||{}),b=(t=>(t.ChainTransaction="chainTransaction",t.ChainTransactionId="chainTransaction__id",t.ChainTransactionIsBasketMode="chainTransaction__isBasketMode",t.ChainTransactionTxHash="chainTransaction__txHash",t.ChainTransactionType="chainTransaction__type",t.Collateral="collateral",t.From="from",t.HoneyAmount="honeyAmount",t.Id="id",t.IsBasketMode="isBasketMode",t.Timestamp="timestamp",t.To="to",t.Type="type",t))(b||{}),_=(a=>(a.Asc="asc",a.Desc="desc",a))(_||{}),S=(a=>(a.Mint="MINT",a.Redeem="REDEEM",a))(S||{}),M=(a=>(a.Allow="allow",a.Deny="deny",a))(M||{}),m=r`
|
|
2
2
|
fragment HoneyTxnData on HoneyTxn {
|
|
3
3
|
id
|
|
4
4
|
timestamp
|
|
@@ -16,8 +16,18 @@ import{gql as p}from"@apollo/client";var s=(a=>(a.Day="day",a.Hour="hour",a))(s|
|
|
|
16
16
|
id
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
20
|
-
|
|
19
|
+
`,g=r`
|
|
20
|
+
fragment HoneySnapshotData on HoneySnapshot {
|
|
21
|
+
id
|
|
22
|
+
allTimeVolume
|
|
23
|
+
mintVolume
|
|
24
|
+
redeemVolume
|
|
25
|
+
timestamp
|
|
26
|
+
totalSupply
|
|
27
|
+
totalVolume
|
|
28
|
+
}
|
|
29
|
+
`,x=r`
|
|
30
|
+
query GetHoneyTxn($page: Int!, $limit: Int!, $type: TxnType) {
|
|
21
31
|
honeyTxns(
|
|
22
32
|
skip: $page
|
|
23
33
|
first: $limit
|
|
@@ -28,40 +38,10 @@ import{gql as p}from"@apollo/client";var s=(a=>(a.Day="day",a.Hour="hour",a))(s|
|
|
|
28
38
|
...HoneyTxnData
|
|
29
39
|
}
|
|
30
40
|
}
|
|
31
|
-
${
|
|
32
|
-
query
|
|
33
|
-
honeyTxns(skip: $page, first: $limit, orderBy: timestamp, orderDirection: desc) {
|
|
34
|
-
...HoneyTxnData
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
${y}`,B=p`
|
|
38
|
-
query GetChartData($interval: Aggregation_interval!, $first: Int!) {
|
|
41
|
+
${m}`,B=r`
|
|
42
|
+
query GetSnapshots($interval: Aggregation_interval!, $first: Int = 24) {
|
|
39
43
|
honeySnapshots(interval: $interval, first: $first) {
|
|
40
|
-
|
|
41
|
-
allTimeVolume
|
|
42
|
-
mintVolume
|
|
43
|
-
redeemVolume
|
|
44
|
-
timestamp
|
|
45
|
-
totalVolume
|
|
46
|
-
totalSupply
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
`,A=p`
|
|
50
|
-
query GetGlobalData {
|
|
51
|
-
honeySnapshots(interval: hour, first: 24) {
|
|
52
|
-
id
|
|
53
|
-
allTimeVolume
|
|
54
|
-
totalVolume
|
|
55
|
-
timestamp
|
|
56
|
-
totalSupply
|
|
57
|
-
mintVolume
|
|
58
|
-
redeemVolume
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
`,D=p`
|
|
62
|
-
query GetFirstHoneyTxnDate {
|
|
63
|
-
honeyTxns(first: 1) {
|
|
64
|
-
timestamp
|
|
44
|
+
...HoneySnapshotData
|
|
65
45
|
}
|
|
66
46
|
}
|
|
67
|
-
`,
|
|
47
|
+
${g}`,h={possibleTypes:{}},A=h;export{y as Aggregation_Interval,s as ChainTransaction_OrderBy,x as GetHoneyTxn,B as GetSnapshots,o as HoneyCollateral_OrderBy,g as HoneySnapshotData,l as HoneySnapshot_OrderBy,c as HoneySupplyDayData_OrderBy,m as HoneyTxnData,I as HoneyTxnTimeseries_OrderBy,b as HoneyTxn_OrderBy,_ as OrderDirection,S as TxnType,M as _SubgraphErrorPolicy_,A as default};
|