@berachain/graphql 0.1.0-alpha.3 → 0.1.0-alpha.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/README.md +17 -5
- package/dist/bend/whisk.codegen.cjs +424 -0
- package/dist/bend/whisk.codegen.d.cts +1798 -0
- package/dist/bend/whisk.codegen.d.ts +93 -1
- package/dist/bend/whisk.codegen.js +8 -8
- package/dist/chain/chain.codegen.cjs +12 -0
- package/dist/chain/chain.codegen.d.cts +376 -0
- package/dist/dex/api.codegen.cjs +199 -0
- package/dist/dex/api.codegen.d.cts +3836 -0
- package/dist/dex/subgraph.codegen.cjs +88 -0
- package/dist/dex/subgraph.codegen.d.cts +5887 -0
- package/dist/governance/governance.codegen.cjs +116 -0
- package/dist/governance/governance.codegen.d.cts +1622 -0
- package/dist/honey/honey.codegen.cjs +104 -0
- package/dist/honey/honey.codegen.d.cts +936 -0
- package/dist/pol/api.codegen.cjs +301 -0
- package/dist/pol/api.codegen.d.cts +3622 -0
- package/dist/pol/subgraph.codegen.cjs +197 -0
- package/dist/pol/subgraph.codegen.d.cts +4671 -0
- package/package.json +27 -23
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _client = require('@apollo/client');var y=(n=>(n.Day="day",n.Hour="hour",n))(y||{}),u= exports.ChainTransaction_OrderBy =(p=>(p.HoneyTxn="honeyTxn",p.Id="id",p.IsBasketMode="isBasketMode",p.TxHash="txHash",p.Type="type",p))(u||{}),o= exports.HoneyCollateral_OrderBy =(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= exports.HoneySupplyDayData_OrderBy =(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(l||{}),s= exports.HoneySupplyHourData_OrderBy =(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(s||{}),c= exports.HoneyTxn_OrderBy =(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= exports.HoneyVolumeDayData_OrderBy =(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(I||{}),b= exports.HoneyVolumeHourData_OrderBy =(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(b||{}),_= exports.OrderDirection =(n=>(n.Asc="asc",n.Desc="desc",n))(_||{}),m= exports.TxnType =(n=>(n.Mint="MINT",n.Redeem="REDEEM",n))(m||{}),S= exports._SubgraphErrorPolicy_ =(n=>(n.Allow="allow",n.Deny="deny",n))(S||{}),i= exports.HoneyTxnData =_client.gql`
|
|
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= exports.GetHoneyTxnByType =_client.gql`
|
|
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= exports.GetHoneyTxn =_client.gql`
|
|
32
|
+
query GetHoneyTxn($page: Int!, $limit: Int!) {
|
|
33
|
+
honeyTxns(skip: $page, first: $limit, orderBy: timestamp, orderDirection: desc) {
|
|
34
|
+
...HoneyTxnData
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
${i}`,x= exports.GetSupplyDay =_client.gql`
|
|
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= exports.GetSupplyHour =_client.gql`
|
|
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= exports.GetVolumeDay =_client.gql`
|
|
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= exports.GetVolumeHour =_client.gql`
|
|
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= exports.GetGlobalData =_client.gql`
|
|
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= exports.GetFirstHoneyTxnDate =_client.gql`
|
|
99
|
+
query GetFirstHoneyTxnDate {
|
|
100
|
+
honeyTxns(first: 1) {
|
|
101
|
+
timestamp
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
`,M={possibleTypes:{}},k= exports.default =M;exports.Aggregation_Interval = y; exports.ChainTransaction_OrderBy = u; exports.GetFirstHoneyTxnDate = A; exports.GetGlobalData = B; exports.GetHoneyTxn = h; exports.GetHoneyTxnByType = D; exports.GetSupplyDay = x; exports.GetSupplyHour = H; exports.GetVolumeDay = d; exports.GetVolumeHour = T; exports.HoneyCollateral_OrderBy = o; exports.HoneySupplyDayData_OrderBy = l; exports.HoneySupplyHourData_OrderBy = s; exports.HoneyTxnData = i; exports.HoneyTxn_OrderBy = c; exports.HoneyVolumeDayData_OrderBy = I; exports.HoneyVolumeHourData_OrderBy = b; exports.OrderDirection = _; exports.TxnType = m; exports._SubgraphErrorPolicy_ = S; exports.default = k;
|