@berachain/graphql 0.2.4-beta.6 → 0.2.5

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.
@@ -1,4 +1,4 @@
1
- "use strict";var s=Object.defineProperty;var B=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var A=(u,r)=>{for(var a in r)s(u,a,{get:r[a],enumerable:!0})},k=(u,r,a,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of H(r))!d.call(u,o)&&o!==a&&s(u,o,{get:()=>r[o],enumerable:!(t=B(r,o))||t.enumerable});return u};var V=u=>k(s({},"__esModule",{value:!0}),u);var G={};A(G,{Aggregation_Interval:()=>c,ChainTransaction_OrderBy:()=>I,GetFirstHoneyTxnDate:()=>Q,GetGlobalData:()=>w,GetHoneyTxn:()=>F,GetHoneyTxnByType:()=>E,GetVolumeAndSupplyDay:()=>f,GetVolumeHour:()=>C,HoneyCollateral_OrderBy:()=>b,HoneySupplyDayData_OrderBy:()=>m,HoneySupplyHourData_OrderBy:()=>_,HoneyTxnData:()=>l,HoneyTxn_OrderBy:()=>M,HoneyVolumeDayData_OrderBy:()=>S,HoneyVolumeHourData_OrderBy:()=>g,HoneyVolumeTimeseries_OrderBy:()=>h,OrderDirection:()=>D,TxnType:()=>x,_SubgraphErrorPolicy_:()=>T,default:()=>$});module.exports=V(G);var i=require("@apollo/client"),c=(a=>(a.Day="day",a.Hour="hour",a))(c||{}),I=(y=>(y.HoneyTxn="honeyTxn",y.Id="id",y.IsBasketMode="isBasketMode",y.TxHash="txHash",y.Type="type",y))(I||{}),b=(e=>(e.Collateral="collateral",e.CollateralAmount="collateralAmount",e.HoneyTxn="honeyTxn",e.HoneyTxnFrom="honeyTxn__from",e.HoneyTxnHoneyAmount="honeyTxn__honeyAmount",e.HoneyTxnId="honeyTxn__id",e.HoneyTxnIsBasketMode="honeyTxn__isBasketMode",e.HoneyTxnTimestamp="honeyTxn__timestamp",e.HoneyTxnTo="honeyTxn__to",e.HoneyTxnType="honeyTxn__type",e.Id="id",e))(b||{}),m=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(m||{}),_=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(_||{}),M=(n=>(n.ChainTransaction="chainTransaction",n.ChainTransactionId="chainTransaction__id",n.ChainTransactionIsBasketMode="chainTransaction__isBasketMode",n.ChainTransactionTxHash="chainTransaction__txHash",n.ChainTransactionType="chainTransaction__type",n.Collateral="collateral",n.From="from",n.HoneyAmount="honeyAmount",n.Id="id",n.IsBasketMode="isBasketMode",n.Timestamp="timestamp",n.To="to",n.Type="type",n))(M||{}),S=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(S||{}),g=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(g||{}),h=(p=>(p.BlockNumber="blockNumber",p.From="from",p.HoneyAmount="honeyAmount",p.Id="id",p.Timestamp="timestamp",p.To="to",p.TxHash="txHash",p.TxnType="txnType",p))(h||{}),D=(a=>(a.Asc="asc",a.Desc="desc",a))(D||{}),x=(a=>(a.Mint="MINT",a.Redeem="REDEEM",a))(x||{}),T=(a=>(a.Allow="allow",a.Deny="deny",a))(T||{}),l=i.gql`
1
+ "use strict";var s=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var D=(p,e)=>{for(var t in e)s(p,t,{get:e[t],enumerable:!0})},A=(p,e,t,y)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of x(e))!B.call(p,u)&&u!==t&&s(p,u,{get:()=>e[u],enumerable:!(y=T(e,u))||y.enumerable});return p};var d=p=>A(s({},"__esModule",{value:!0}),p);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 i=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=i.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
- `,E=i.gql`
19
+ `,H=i.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}`,F=i.gql`
31
+ ${l}`,k=i.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
37
  ${l}`,f=i.gql`
38
- query GetVolumeAndSupplyDay($timestamp_gt: Int!) {
39
- honeyVolumeDayDatas(
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
- ) {
38
+ query GetChartData($interval: Aggregation_interval!, $first: Int!) {
39
+ honeySnapshots(interval: $interval, first: $first) {
53
40
  id
41
+ allTimeVolume
42
+ mintVolume
43
+ redeemVolume
54
44
  timestamp
55
- amount
45
+ totalVolume
46
+ totalSupply
56
47
  }
57
48
  }
58
49
  `,C=i.gql`
59
- query GetVolumeHour($timestamp_gt: Int!) {
60
- honeyVolumeHourDatas(
61
- where: {timestamp_gt: $timestamp_gt}
62
- orderBy: timestamp
63
- orderDirection: asc
64
- ) {
65
- id
66
- timestamp
67
- amount
68
- }
69
- }
70
- `,w=i.gql`
71
50
  query GetGlobalData {
72
- honeyVolumeAggregations(interval: hour, first: 24) {
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
- `,Q=i.gql`
61
+ `,E=i.gql`
82
62
  query GetFirstHoneyTxnDate {
83
63
  honeyTxns(first: 1) {
84
64
  timestamp
85
65
  }
86
66
  }
87
- `,P={possibleTypes:{}},$=P;0&&(module.exports={Aggregation_Interval,ChainTransaction_OrderBy,GetFirstHoneyTxnDate,GetGlobalData,GetHoneyTxn,GetHoneyTxnByType,GetVolumeAndSupplyDay,GetVolumeHour,HoneyCollateral_OrderBy,HoneySupplyDayData_OrderBy,HoneySupplyHourData_OrderBy,HoneyTxnData,HoneyTxn_OrderBy,HoneyVolumeDayData_OrderBy,HoneyVolumeHourData_OrderBy,HoneyVolumeTimeseries_OrderBy,OrderDirection,TxnType,_SubgraphErrorPolicy_});
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_});