@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,4 +1,4 @@
|
|
|
1
|
-
import{gql as
|
|
1
|
+
import{gql as r}from"@apollo/client";var u=(a=>(a.Day="day",a.Hour="hour",a))(u||{}),o=(i=>(i.HoneyTxn="honeyTxn",i.Id="id",i.IsBasketMode="isBasketMode",i.TxHash="txHash",i.Type="type",i))(o||{}),s=(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))(s||{}),l=(p=>(p.Amount="amount",p.Id="id",p.Timestamp="timestamp",p))(l||{}),c=(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))(c||{}),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||{}),I=(a=>(a.Asc="asc",a.Desc="desc",a))(I||{}),_=(a=>(a.Mint="MINT",a.Redeem="REDEEM",a))(_||{}),S=(a=>(a.Allow="allow",a.Deny="deny",a))(S||{}),y=r`
|
|
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
|
-
`,
|
|
19
|
+
`,g=r`
|
|
20
20
|
query GetHoneyTxnByType($page: Int!, $limit: Int!, $type: TxnType!) {
|
|
21
21
|
honeyTxns(
|
|
22
22
|
skip: $page
|
|
@@ -28,60 +28,40 @@ 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
|
-
${
|
|
31
|
+
${y}`,h=r`
|
|
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
|
-
${
|
|
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
|
-
`,H=p`
|
|
59
|
-
query GetVolumeHour($timestamp_gt: Int!) {
|
|
60
|
-
honeyVolumeHourDatas(
|
|
61
|
-
where: {timestamp_gt: $timestamp_gt}
|
|
62
|
-
orderBy: timestamp
|
|
63
|
-
orderDirection: asc
|
|
64
|
-
) {
|
|
37
|
+
${y}`,T=r`
|
|
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
|
+
`,x=r`
|
|
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
|
+
`,B=r`
|
|
82
62
|
query GetFirstHoneyTxnDate {
|
|
83
63
|
honeyTxns(first: 1) {
|
|
84
64
|
timestamp
|
|
85
65
|
}
|
|
86
66
|
}
|
|
87
|
-
`,
|
|
67
|
+
`,M={possibleTypes:{}},D=M;export{u as Aggregation_Interval,o as ChainTransaction_OrderBy,T as GetChartData,B as GetFirstHoneyTxnDate,x as GetGlobalData,h as GetHoneyTxn,g as GetHoneyTxnByType,s as HoneyCollateral_OrderBy,l as HoneySupplyDayData_OrderBy,y as HoneyTxnData,c as HoneyTxnTimeseries_OrderBy,b as HoneyTxn_OrderBy,I as OrderDirection,_ as TxnType,S as _SubgraphErrorPolicy_,D as default};
|