@berachain/graphql 0.2.4-beta.5 → 0.2.4
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/honey/honey.codegen.cjs +16 -23
- package/dist/honey/honey.codegen.d.cts +190 -399
- package/dist/honey/honey.codegen.d.ts +190 -399
- package/dist/honey/honey.codegen.mjs +16 -23
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var s=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var D=(i,e)=>{for(var t in e)s(i,t,{get:e[t],enumerable:!0})},A=(i,e,t,y)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of x(e))!B.call(i,u)&&u!==t&&s(i,u,{get:()=>e[u],enumerable:!(y=T(e,u))||y.enumerable});return i};var d=i=>A(s({},"__esModule",{value:!0}),i);var $={};D($,{Aggregation_Interval:()=>c,ChainTransaction_OrderBy:()=>b,GetChartData:()=>f,GetFirstHoneyTxnDate:()=>E,GetGlobalData:()=>C,GetHoneyTxn:()=>k,GetHoneyTxnByType:()=>H,HoneyCollateral_OrderBy:()=>I,HoneySupplyDayData_OrderBy:()=>_,HoneyTxnData:()=>l,HoneyTxnTimeseries_OrderBy:()=>S,HoneyTxn_OrderBy:()=>M,OrderDirection:()=>m,TxnType:()=>g,_SubgraphErrorPolicy_:()=>h,default:()=>w});module.exports=d($);var p=require("@apollo/client"),c=(t=>(t.Day="day",t.Hour="hour",t))(c||{}),b=(o=>(o.HoneyTxn="honeyTxn",o.Id="id",o.IsBasketMode="isBasketMode",o.TxHash="txHash",o.Type="type",o))(b||{}),I=(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))(I||{}),_=(y=>(y.Amount="amount",y.Id="id",y.Timestamp="timestamp",y))(_||{}),S=(r=>(r.BlockNumber="blockNumber",r.From="from",r.HoneyAmount="honeyAmount",r.Id="id",r.Timestamp="timestamp",r.To="to",r.TotalSupply="totalSupply",r.TxHash="txHash",r.TxnType="txnType",r))(S||{}),M=(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))(M||{}),m=(t=>(t.Asc="asc",t.Desc="desc",t))(m||{}),g=(t=>(t.Mint="MINT",t.Redeem="REDEEM",t))(g||{}),h=(t=>(t.Allow="allow",t.Deny="deny",t))(h||{}),l=p.gql`
|
|
2
2
|
fragment HoneyTxnData on HoneyTxn {
|
|
3
3
|
id
|
|
4
4
|
timestamp
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
id
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
19
|
+
`,H=p.gql`
|
|
20
20
|
query GetHoneyTxnByType($page: Int!, $limit: Int!, $type: TxnType!) {
|
|
21
21
|
honeyTxns(
|
|
22
22
|
skip: $page
|
|
@@ -28,47 +28,40 @@
|
|
|
28
28
|
...HoneyTxnData
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
${
|
|
31
|
+
${l}`,k=p.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
|
-
${
|
|
38
|
-
query GetChartData($
|
|
39
|
-
|
|
40
|
-
allTimeVolume
|
|
37
|
+
${l}`,f=p.gql`
|
|
38
|
+
query GetChartData($interval: Aggregation_interval!, $first: Int!) {
|
|
39
|
+
honeySnapshots(interval: $interval, first: $first) {
|
|
41
40
|
id
|
|
41
|
+
allTimeVolume
|
|
42
42
|
mintVolume
|
|
43
43
|
redeemVolume
|
|
44
44
|
timestamp
|
|
45
45
|
totalVolume
|
|
46
|
-
|
|
47
|
-
honeySupplyDayDatas(
|
|
48
|
-
where: {timestamp_gt: $timestamp_gt}
|
|
49
|
-
orderBy: timestamp
|
|
50
|
-
orderDirection: asc
|
|
51
|
-
) {
|
|
52
|
-
id
|
|
53
|
-
timestamp
|
|
54
|
-
amount
|
|
46
|
+
totalSupply
|
|
55
47
|
}
|
|
56
48
|
}
|
|
57
|
-
`,C=
|
|
49
|
+
`,C=p.gql`
|
|
58
50
|
query GetGlobalData {
|
|
59
|
-
|
|
60
|
-
allTimeVolume
|
|
51
|
+
honeySnapshots(interval: hour, first: 24) {
|
|
61
52
|
id
|
|
53
|
+
allTimeVolume
|
|
54
|
+
totalVolume
|
|
55
|
+
timestamp
|
|
56
|
+
totalSupply
|
|
62
57
|
mintVolume
|
|
63
58
|
redeemVolume
|
|
64
|
-
timestamp
|
|
65
|
-
totalVolume
|
|
66
59
|
}
|
|
67
60
|
}
|
|
68
|
-
`,
|
|
61
|
+
`,E=p.gql`
|
|
69
62
|
query GetFirstHoneyTxnDate {
|
|
70
63
|
honeyTxns(first: 1) {
|
|
71
64
|
timestamp
|
|
72
65
|
}
|
|
73
66
|
}
|
|
74
|
-
`,
|
|
67
|
+
`,F={possibleTypes:{}},w=F;0&&(module.exports={Aggregation_Interval,ChainTransaction_OrderBy,GetChartData,GetFirstHoneyTxnDate,GetGlobalData,GetHoneyTxn,GetHoneyTxnByType,HoneyCollateral_OrderBy,HoneySupplyDayData_OrderBy,HoneyTxnData,HoneyTxnTimeseries_OrderBy,HoneyTxn_OrderBy,OrderDirection,TxnType,_SubgraphErrorPolicy_});
|