@berachain/graphql 0.4.13 → 0.4.14
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/chain/chain.codegen.cjs +12 -0
- package/dist/chain/chain.codegen.d.cts +351 -0
- package/dist/chain/chain.codegen.d.ts +351 -0
- package/dist/chain/chain.codegen.mjs +12 -0
- package/dist/governance/governance.codegen.cjs +116 -0
- package/dist/governance/governance.codegen.d.cts +1533 -0
- package/dist/governance/governance.codegen.d.ts +1533 -0
- package/dist/governance/governance.codegen.mjs +116 -0
- package/dist/honey/honey.codegen.cjs +42 -0
- package/dist/honey/honey.codegen.d.cts +735 -0
- package/dist/honey/honey.codegen.d.ts +735 -0
- package/dist/honey/honey.codegen.mjs +42 -0
- package/package.json +3 -3
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import{gql as r}from"@apollo/client";var y=(t=>(t.Exclude="exclude",t.Include="include",t))(y||{}),s=(t=>(t.Day="day",t.Hour="hour",t))(s||{}),o=(i=>(i.HoneyTxn="honeyTxn",i.Id="id",i.IsBasketMode="isBasketMode",i.TxHash="txHash",i.Type="type",i))(o||{}),l=(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))(l||{}),c=(p=>(p.AllTimeVolume="allTimeVolume",p.Id="id",p.MintVolume="mintVolume",p.RedeemVolume="redeemVolume",p.Timestamp="timestamp",p.TotalSupply="totalSupply",p.TotalVolume="totalVolume",p))(c||{}),I=(u=>(u.Amount="amount",u.Id="id",u.Timestamp="timestamp",u))(I||{}),b=(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))(b||{}),_=(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))(_||{}),S=(t=>(t.Asc="asc",t.Desc="desc",t))(S||{}),M=(t=>(t.Mint="MINT",t.Redeem="REDEEM",t))(M||{}),m=(t=>(t.Allow="allow",t.Deny="deny",t))(m||{}),g=r`
|
|
2
|
+
fragment HoneyTxnData on HoneyTxn {
|
|
3
|
+
timestamp
|
|
4
|
+
from
|
|
5
|
+
to
|
|
6
|
+
type
|
|
7
|
+
honeyAmount
|
|
8
|
+
chainTransaction {
|
|
9
|
+
txHash
|
|
10
|
+
}
|
|
11
|
+
collateral {
|
|
12
|
+
collateral
|
|
13
|
+
collateralAmount
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
`,h=r`
|
|
17
|
+
fragment HoneySnapshotData on HoneySnapshot {
|
|
18
|
+
mintVolume
|
|
19
|
+
redeemVolume
|
|
20
|
+
timestamp
|
|
21
|
+
totalSupply
|
|
22
|
+
totalVolume
|
|
23
|
+
}
|
|
24
|
+
`,B=r`
|
|
25
|
+
query GetHoneyTxn($page: Int!, $limit: Int!, $where: HoneyTxn_filter) {
|
|
26
|
+
honeyTxns(
|
|
27
|
+
skip: $page
|
|
28
|
+
first: $limit
|
|
29
|
+
orderBy: timestamp
|
|
30
|
+
orderDirection: desc
|
|
31
|
+
where: $where
|
|
32
|
+
) {
|
|
33
|
+
...HoneyTxnData
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
${g}`,A=r`
|
|
37
|
+
query GetSnapshots($interval: Aggregation_interval!, $first: Int = 24) {
|
|
38
|
+
honeySnapshots(interval: $interval, first: $first) {
|
|
39
|
+
...HoneySnapshotData
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
${h}`,T={possibleTypes:{}},D=T;export{y as Aggregation_Current,s as Aggregation_Interval,o as ChainTransaction_OrderBy,B as GetHoneyTxn,A as GetSnapshots,l as HoneyCollateral_OrderBy,h as HoneySnapshotData,c as HoneySnapshot_OrderBy,I as HoneySupplyDayData_OrderBy,g as HoneyTxnData,b as HoneyTxnTimeseries_OrderBy,_ as HoneyTxn_OrderBy,S as OrderDirection,M as TxnType,m as _SubgraphErrorPolicy_,D as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@berachain/graphql",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"graphql": "^16.8"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@berachain/config": "0.1.12",
|
|
21
20
|
"@biomejs/biome": "2.4.10",
|
|
22
21
|
"@graphql-codegen/cli": "5.0.7",
|
|
23
22
|
"@graphql-codegen/client-preset": "4.7.0",
|
|
@@ -32,7 +31,8 @@
|
|
|
32
31
|
"graphql": "16.13.2",
|
|
33
32
|
"openapi-typescript": "7.13.0",
|
|
34
33
|
"tsup": "8.5.1",
|
|
35
|
-
"typescript": "5.5.4"
|
|
34
|
+
"typescript": "5.5.4",
|
|
35
|
+
"@berachain/config": "^0.1.13"
|
|
36
36
|
},
|
|
37
37
|
"exports": {
|
|
38
38
|
"./governance": {
|