@berachain/graphql 0.1.0-alpha.1 → 0.1.0-alpha.10
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.d.mts +1798 -0
- package/dist/bend/whisk.codegen.d.ts +93 -1
- package/dist/bend/whisk.codegen.js +17 -17
- package/dist/bend/whisk.codegen.mjs +424 -0
- package/dist/chain/chain.codegen.d.mts +376 -0
- package/dist/chain/chain.codegen.js +2 -2
- package/dist/chain/chain.codegen.mjs +12 -0
- package/dist/dex/api.codegen.d.mts +3836 -0
- package/dist/dex/api.codegen.js +17 -17
- package/dist/dex/api.codegen.mjs +199 -0
- package/dist/dex/subgraph.codegen.d.mts +5887 -0
- package/dist/dex/subgraph.codegen.js +9 -9
- package/dist/dex/subgraph.codegen.mjs +88 -0
- package/dist/governance/governance.codegen.d.mts +1622 -0
- package/dist/governance/governance.codegen.js +9 -9
- package/dist/governance/governance.codegen.mjs +116 -0
- package/dist/honey/honey.codegen.d.mts +936 -0
- package/dist/honey/honey.codegen.js +10 -10
- package/dist/honey/honey.codegen.mjs +104 -0
- package/dist/pol/api.codegen.d.mts +3622 -0
- package/dist/pol/api.codegen.js +21 -21
- package/dist/pol/api.codegen.mjs +301 -0
- package/dist/pol/subgraph.codegen.d.mts +4671 -0
- package/dist/pol/subgraph.codegen.js +20 -20
- package/dist/pol/subgraph.codegen.mjs +197 -0
- package/package.json +30 -26
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
2
|
fragment HoneyTxnData on HoneyTxn {
|
|
3
3
|
id
|
|
4
4
|
timestamp
|
|
@@ -16,7 +16,7 @@ import{gql as r}from"@apollo/client";var y=(n=>(n.Day="day",n.Hour="hour",n))(y|
|
|
|
16
16
|
id
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
`,D=
|
|
19
|
+
`,D= exports.GetHoneyTxnByType =_client.gql`
|
|
20
20
|
query GetHoneyTxnByType($page: Int!, $limit: Int!, $type: TxnType!) {
|
|
21
21
|
honeyTxns(
|
|
22
22
|
skip: $page
|
|
@@ -28,13 +28,13 @@ import{gql as r}from"@apollo/client";var y=(n=>(n.Day="day",n.Hour="hour",n))(y|
|
|
|
28
28
|
...HoneyTxnData
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
${i}`,h=
|
|
31
|
+
${i}`,h= exports.GetHoneyTxn =_client.gql`
|
|
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
|
-
${i}`,x=
|
|
37
|
+
${i}`,x= exports.GetSupplyDay =_client.gql`
|
|
38
38
|
query GetSupplyDay($timestamp_gt: Int!) {
|
|
39
39
|
honeySupplyDayDatas(
|
|
40
40
|
where: {timestamp_gt: $timestamp_gt}
|
|
@@ -46,7 +46,7 @@ import{gql as r}from"@apollo/client";var y=(n=>(n.Day="day",n.Hour="hour",n))(y|
|
|
|
46
46
|
amount
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
`,H=
|
|
49
|
+
`,H= exports.GetSupplyHour =_client.gql`
|
|
50
50
|
query GetSupplyHour($timestamp_gt: Int!) {
|
|
51
51
|
honeySupplyHourDatas(
|
|
52
52
|
where: {timestamp_gt: $timestamp_gt}
|
|
@@ -58,7 +58,7 @@ import{gql as r}from"@apollo/client";var y=(n=>(n.Day="day",n.Hour="hour",n))(y|
|
|
|
58
58
|
amount
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
`,d=
|
|
61
|
+
`,d= exports.GetVolumeDay =_client.gql`
|
|
62
62
|
query GetVolumeDay($timestamp_gt: Int!) {
|
|
63
63
|
honeyVolumeDayDatas(
|
|
64
64
|
where: {timestamp_gt: $timestamp_gt}
|
|
@@ -70,7 +70,7 @@ import{gql as r}from"@apollo/client";var y=(n=>(n.Day="day",n.Hour="hour",n))(y|
|
|
|
70
70
|
amount
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
`,T=
|
|
73
|
+
`,T= exports.GetVolumeHour =_client.gql`
|
|
74
74
|
query GetVolumeHour($timestamp_gt: Int!) {
|
|
75
75
|
honeyVolumeHourDatas(
|
|
76
76
|
where: {timestamp_gt: $timestamp_gt}
|
|
@@ -82,7 +82,7 @@ import{gql as r}from"@apollo/client";var y=(n=>(n.Day="day",n.Hour="hour",n))(y|
|
|
|
82
82
|
amount
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
`,B=
|
|
85
|
+
`,B= exports.GetGlobalData =_client.gql`
|
|
86
86
|
query GetGlobalData {
|
|
87
87
|
honeyVolumeDayDatas(first: 1, orderBy: timestamp, orderDirection: desc) {
|
|
88
88
|
id
|
|
@@ -95,10 +95,10 @@ import{gql as r}from"@apollo/client";var y=(n=>(n.Day="day",n.Hour="hour",n))(y|
|
|
|
95
95
|
amount
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
`,A=
|
|
98
|
+
`,A= exports.GetFirstHoneyTxnDate =_client.gql`
|
|
99
99
|
query GetFirstHoneyTxnDate {
|
|
100
100
|
honeyTxns(first: 1) {
|
|
101
101
|
timestamp
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
`,M={possibleTypes:{}},k=M;
|
|
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;
|
|
@@ -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};
|