@berachain/graphql 0.2.4-beta.3 → 0.2.4-beta.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.
- package/dist/bend/whisk.codegen.cjs +17 -258
- package/dist/bend/whisk.codegen.d.cts +1 -332
- package/dist/bend/whisk.codegen.d.ts +1 -332
- package/dist/bend/whisk.codegen.mjs +15 -256
- package/dist/honey/honey.codegen.cjs +13 -26
- package/dist/honey/honey.codegen.d.cts +13 -21
- package/dist/honey/honey.codegen.d.ts +13 -21
- package/dist/honey/honey.codegen.mjs +13 -26
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{gql as
|
|
1
|
+
import{gql as i}from"@apollo/client";var o=(n=>(n.Day="day",n.Hour="hour",n))(o||{}),y=(p=>(p.HoneyTxn="honeyTxn",p.Id="id",p.IsBasketMode="isBasketMode",p.TxHash="txHash",p.Type="type",p))(y||{}),l=(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))(l||{}),s=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(s||{}),c=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(c||{}),I=(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))(I||{}),b=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(b||{}),_=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(_||{}),m=(r=>(r.BlockNumber="blockNumber",r.From="from",r.HoneyAmount="honeyAmount",r.Id="id",r.Timestamp="timestamp",r.To="to",r.TxHash="txHash",r.TxnType="txnType",r))(m||{}),M=(n=>(n.Asc="asc",n.Desc="desc",n))(M||{}),S=(n=>(n.Mint="MINT",n.Redeem="REDEEM",n))(S||{}),g=(n=>(n.Allow="allow",n.Deny="deny",n))(g||{}),u=i`
|
|
2
2
|
fragment HoneyTxnData on HoneyTxn {
|
|
3
3
|
id
|
|
4
4
|
timestamp
|
|
@@ -16,7 +16,7 @@ import{gql as p}from"@apollo/client";var o=(n=>(n.Day="day",n.Hour="hour",n))(o|
|
|
|
16
16
|
id
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
`,x=
|
|
19
|
+
`,x=i`
|
|
20
20
|
query GetHoneyTxnByType($page: Int!, $limit: Int!, $type: TxnType!) {
|
|
21
21
|
honeyTxns(
|
|
22
22
|
skip: $page
|
|
@@ -28,22 +28,21 @@ import{gql as p}from"@apollo/client";var o=(n=>(n.Day="day",n.Hour="hour",n))(o|
|
|
|
28
28
|
...HoneyTxnData
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
${u}`,T=
|
|
31
|
+
${u}`,T=i`
|
|
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
|
-
${u}`,B=
|
|
38
|
-
query
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
orderBy: timestamp
|
|
42
|
-
orderDirection: asc
|
|
43
|
-
) {
|
|
37
|
+
${u}`,B=i`
|
|
38
|
+
query GetChartData($timestamp_gt: Int!, $interval: Aggregation_interval!, $first: Int!) {
|
|
39
|
+
honeyVolumeAggregations(interval: $interval, first: $first) {
|
|
40
|
+
allTimeVolume
|
|
44
41
|
id
|
|
42
|
+
mintVolume
|
|
43
|
+
redeemVolume
|
|
45
44
|
timestamp
|
|
46
|
-
|
|
45
|
+
totalVolume
|
|
47
46
|
}
|
|
48
47
|
honeySupplyDayDatas(
|
|
49
48
|
where: {timestamp_gt: $timestamp_gt}
|
|
@@ -55,19 +54,7 @@ import{gql as p}from"@apollo/client";var o=(n=>(n.Day="day",n.Hour="hour",n))(o|
|
|
|
55
54
|
amount
|
|
56
55
|
}
|
|
57
56
|
}
|
|
58
|
-
`,H=
|
|
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
|
-
`,d=p`
|
|
57
|
+
`,H=i`
|
|
71
58
|
query GetGlobalData {
|
|
72
59
|
honeyVolumeAggregations(interval: hour, first: 24) {
|
|
73
60
|
allTimeVolume
|
|
@@ -78,10 +65,10 @@ import{gql as p}from"@apollo/client";var o=(n=>(n.Day="day",n.Hour="hour",n))(o|
|
|
|
78
65
|
totalVolume
|
|
79
66
|
}
|
|
80
67
|
}
|
|
81
|
-
`,A=
|
|
68
|
+
`,A=i`
|
|
82
69
|
query GetFirstHoneyTxnDate {
|
|
83
70
|
honeyTxns(first: 1) {
|
|
84
71
|
timestamp
|
|
85
72
|
}
|
|
86
73
|
}
|
|
87
|
-
`,h={possibleTypes:{}},
|
|
74
|
+
`,h={possibleTypes:{}},d=h;export{o as Aggregation_Interval,y as ChainTransaction_OrderBy,B as GetChartData,A as GetFirstHoneyTxnDate,H as GetGlobalData,T as GetHoneyTxn,x as GetHoneyTxnByType,l as HoneyCollateral_OrderBy,s as HoneySupplyDayData_OrderBy,c as HoneySupplyHourData_OrderBy,u as HoneyTxnData,I as HoneyTxn_OrderBy,b as HoneyVolumeDayData_OrderBy,_ as HoneyVolumeHourData_OrderBy,m as HoneyVolumeTimeseries_OrderBy,M as OrderDirection,S as TxnType,g as _SubgraphErrorPolicy_,d as default};
|