@berachain/graphql 0.1.0-alpha.1 → 0.1.0-alpha.2
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/package.json +1 -1
- package/dist/bend/whisk.codegen.d.ts +0 -1706
- package/dist/bend/whisk.codegen.js +0 -424
- package/dist/chain/chain.codegen.d.ts +0 -376
- package/dist/chain/chain.codegen.js +0 -12
- package/dist/dex/api.codegen.d.ts +0 -3836
- package/dist/dex/api.codegen.js +0 -199
- package/dist/dex/subgraph.codegen.d.ts +0 -5887
- package/dist/dex/subgraph.codegen.js +0 -88
- package/dist/governance/governance.codegen.d.ts +0 -1622
- package/dist/governance/governance.codegen.js +0 -116
- package/dist/honey/honey.codegen.d.ts +0 -936
- package/dist/honey/honey.codegen.js +0 -104
- package/dist/pol/api.codegen.d.ts +0 -3622
- package/dist/pol/api.codegen.js +0 -301
- package/dist/pol/subgraph.codegen.d.ts +0 -4671
- package/dist/pol/subgraph.codegen.js +0 -197
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import{gql as r}from"@apollo/client";var y=(n=>(n.Day="day",n.Hour="hour",n))(y||{}),u=(p=>(p.HoneyTxn="honeyTxn",p.Id="id",p.IsBasketMode="isBasketMode",p.TxHash="txHash",p.Type="type",p))(u||{}),o=(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))(o||{}),l=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(l||{}),s=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(s||{}),c=(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))(c||{}),I=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(I||{}),b=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(b||{}),_=(n=>(n.Asc="asc",n.Desc="desc",n))(_||{}),m=(n=>(n.Mint="MINT",n.Redeem="REDEEM",n))(m||{}),S=(n=>(n.Allow="allow",n.Deny="deny",n))(S||{}),i=r`
|
|
2
|
-
fragment HoneyTxnData on HoneyTxn {
|
|
3
|
-
id
|
|
4
|
-
timestamp
|
|
5
|
-
from
|
|
6
|
-
to
|
|
7
|
-
type
|
|
8
|
-
honeyAmount
|
|
9
|
-
chainTransaction {
|
|
10
|
-
id
|
|
11
|
-
txHash
|
|
12
|
-
}
|
|
13
|
-
collateral {
|
|
14
|
-
collateral
|
|
15
|
-
collateralAmount
|
|
16
|
-
id
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
`,D=r`
|
|
20
|
-
query GetHoneyTxnByType($page: Int!, $limit: Int!, $type: TxnType!) {
|
|
21
|
-
honeyTxns(
|
|
22
|
-
skip: $page
|
|
23
|
-
first: $limit
|
|
24
|
-
orderBy: timestamp
|
|
25
|
-
orderDirection: desc
|
|
26
|
-
where: {type: $type}
|
|
27
|
-
) {
|
|
28
|
-
...HoneyTxnData
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
${i}`,h=r`
|
|
32
|
-
query GetHoneyTxn($page: Int!, $limit: Int!) {
|
|
33
|
-
honeyTxns(skip: $page, first: $limit, orderBy: timestamp, orderDirection: desc) {
|
|
34
|
-
...HoneyTxnData
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
${i}`,x=r`
|
|
38
|
-
query GetSupplyDay($timestamp_gt: Int!) {
|
|
39
|
-
honeySupplyDayDatas(
|
|
40
|
-
where: {timestamp_gt: $timestamp_gt}
|
|
41
|
-
orderBy: timestamp
|
|
42
|
-
orderDirection: asc
|
|
43
|
-
) {
|
|
44
|
-
id
|
|
45
|
-
timestamp
|
|
46
|
-
amount
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
`,H=r`
|
|
50
|
-
query GetSupplyHour($timestamp_gt: Int!) {
|
|
51
|
-
honeySupplyHourDatas(
|
|
52
|
-
where: {timestamp_gt: $timestamp_gt}
|
|
53
|
-
orderBy: timestamp
|
|
54
|
-
orderDirection: asc
|
|
55
|
-
) {
|
|
56
|
-
id
|
|
57
|
-
timestamp
|
|
58
|
-
amount
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
`,d=r`
|
|
62
|
-
query GetVolumeDay($timestamp_gt: Int!) {
|
|
63
|
-
honeyVolumeDayDatas(
|
|
64
|
-
where: {timestamp_gt: $timestamp_gt}
|
|
65
|
-
orderBy: timestamp
|
|
66
|
-
orderDirection: asc
|
|
67
|
-
) {
|
|
68
|
-
id
|
|
69
|
-
timestamp
|
|
70
|
-
amount
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
`,T=r`
|
|
74
|
-
query GetVolumeHour($timestamp_gt: Int!) {
|
|
75
|
-
honeyVolumeHourDatas(
|
|
76
|
-
where: {timestamp_gt: $timestamp_gt}
|
|
77
|
-
orderBy: timestamp
|
|
78
|
-
orderDirection: asc
|
|
79
|
-
) {
|
|
80
|
-
id
|
|
81
|
-
timestamp
|
|
82
|
-
amount
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
`,B=r`
|
|
86
|
-
query GetGlobalData {
|
|
87
|
-
honeyVolumeDayDatas(first: 1, orderBy: timestamp, orderDirection: desc) {
|
|
88
|
-
id
|
|
89
|
-
timestamp
|
|
90
|
-
amount
|
|
91
|
-
}
|
|
92
|
-
honeySupplyHourDatas(first: 1, orderBy: timestamp, orderDirection: desc) {
|
|
93
|
-
id
|
|
94
|
-
timestamp
|
|
95
|
-
amount
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
`,A=r`
|
|
99
|
-
query GetFirstHoneyTxnDate {
|
|
100
|
-
honeyTxns(first: 1) {
|
|
101
|
-
timestamp
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
`,M={possibleTypes:{}},k=M;export{y as Aggregation_Interval,u as ChainTransaction_OrderBy,A as GetFirstHoneyTxnDate,B as GetGlobalData,h as GetHoneyTxn,D as GetHoneyTxnByType,x as GetSupplyDay,H as GetSupplyHour,d as GetVolumeDay,T as GetVolumeHour,o as HoneyCollateral_OrderBy,l as HoneySupplyDayData_OrderBy,s as HoneySupplyHourData_OrderBy,i as HoneyTxnData,c as HoneyTxn_OrderBy,I as HoneyVolumeDayData_OrderBy,b as HoneyVolumeHourData_OrderBy,_ as OrderDirection,m as TxnType,S as _SubgraphErrorPolicy_,k as default};
|