@berachain/graphql 0.1.0-alpha.8 → 0.1.0
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 +5 -9
- package/dist/bend/whisk.codegen.d.mts +1798 -0
- package/dist/bend/whisk.codegen.d.ts +15 -15
- package/dist/bend/whisk.codegen.mjs +424 -0
- package/dist/chain/chain.codegen.d.mts +376 -0
- package/dist/chain/chain.codegen.d.ts +2 -2
- package/dist/chain/chain.codegen.mjs +12 -0
- package/dist/dex/api.codegen.d.mts +3845 -0
- package/dist/dex/api.codegen.d.ts +52 -43
- package/dist/dex/api.codegen.js +2 -2
- package/dist/dex/api.codegen.mjs +199 -0
- package/dist/dex/subgraph.codegen.d.mts +5887 -0
- package/dist/dex/subgraph.codegen.d.ts +9 -9
- package/dist/dex/subgraph.codegen.mjs +88 -0
- package/dist/governance/governance.codegen.d.mts +1622 -0
- package/dist/governance/governance.codegen.d.ts +9 -9
- package/dist/governance/governance.codegen.mjs +116 -0
- package/dist/honey/honey.codegen.d.mts +936 -0
- package/dist/honey/honey.codegen.d.ts +10 -10
- package/dist/honey/honey.codegen.mjs +104 -0
- package/dist/pol/api.codegen.d.mts +3631 -0
- package/dist/pol/api.codegen.d.ts +61 -52
- package/dist/pol/api.codegen.js +2 -2
- package/dist/pol/api.codegen.mjs +301 -0
- package/dist/pol/subgraph.codegen.d.mts +4671 -0
- package/dist/pol/subgraph.codegen.d.ts +20 -20
- package/dist/pol/subgraph.codegen.mjs +197 -0
- package/package.json +16 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as graphql from 'graphql';
|
|
2
2
|
|
|
3
3
|
type Maybe<T> = T | null;
|
|
4
4
|
type InputMaybe<T> = Maybe<T>;
|
|
@@ -917,15 +917,15 @@ type GetFirstHoneyTxnDateQuery = {
|
|
|
917
917
|
timestamp: any;
|
|
918
918
|
}>;
|
|
919
919
|
};
|
|
920
|
-
declare const HoneyTxnData:
|
|
921
|
-
declare const GetHoneyTxnByType:
|
|
922
|
-
declare const GetHoneyTxn:
|
|
923
|
-
declare const GetSupplyDay:
|
|
924
|
-
declare const GetSupplyHour:
|
|
925
|
-
declare const GetVolumeDay:
|
|
926
|
-
declare const GetVolumeHour:
|
|
927
|
-
declare const GetGlobalData:
|
|
928
|
-
declare const GetFirstHoneyTxnDate:
|
|
920
|
+
declare const HoneyTxnData: graphql.DocumentNode;
|
|
921
|
+
declare const GetHoneyTxnByType: graphql.DocumentNode;
|
|
922
|
+
declare const GetHoneyTxn: graphql.DocumentNode;
|
|
923
|
+
declare const GetSupplyDay: graphql.DocumentNode;
|
|
924
|
+
declare const GetSupplyHour: graphql.DocumentNode;
|
|
925
|
+
declare const GetVolumeDay: graphql.DocumentNode;
|
|
926
|
+
declare const GetVolumeHour: graphql.DocumentNode;
|
|
927
|
+
declare const GetGlobalData: graphql.DocumentNode;
|
|
928
|
+
declare const GetFirstHoneyTxnDate: graphql.DocumentNode;
|
|
929
929
|
interface PossibleTypesResultData {
|
|
930
930
|
possibleTypes: {
|
|
931
931
|
[key: string]: string[];
|
|
@@ -0,0 +1,104 @@
|
|
|
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};
|