@berachain/graphql 0.1.0 → 0.1.1-beta.1
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/bend/{whisk.codegen.mjs → whisk.codegen.cjs} +15 -15
- package/dist/bend/whisk.codegen.js +15 -15
- package/dist/chain/chain.codegen.cjs +12 -0
- package/dist/chain/chain.codegen.js +2 -2
- package/dist/dex/api.codegen.cjs +199 -0
- package/dist/dex/api.codegen.js +17 -17
- package/dist/dex/subgraph.codegen.cjs +88 -0
- package/dist/dex/subgraph.codegen.js +9 -9
- package/dist/governance/governance.codegen.cjs +116 -0
- package/dist/governance/governance.codegen.js +9 -9
- package/dist/honey/honey.codegen.cjs +104 -0
- package/dist/honey/honey.codegen.js +10 -10
- package/dist/pol/api.codegen.cjs +301 -0
- package/dist/pol/api.codegen.js +21 -21
- package/dist/pol/subgraph.codegen.cjs +197 -0
- package/dist/pol/subgraph.codegen.js +20 -20
- package/package.json +10 -2
- package/dist/chain/chain.codegen.mjs +0 -12
- package/dist/dex/api.codegen.mjs +0 -199
- package/dist/dex/subgraph.codegen.mjs +0 -88
- package/dist/governance/governance.codegen.mjs +0 -116
- package/dist/honey/honey.codegen.mjs +0 -104
- package/dist/pol/api.codegen.mjs +0 -301
- package/dist/pol/subgraph.codegen.mjs +0 -197
- /package/dist/bend/{whisk.codegen.d.mts → whisk.codegen.d.cts} +0 -0
- /package/dist/chain/{chain.codegen.d.mts → chain.codegen.d.cts} +0 -0
- /package/dist/dex/{api.codegen.d.mts → api.codegen.d.cts} +0 -0
- /package/dist/dex/{subgraph.codegen.d.mts → subgraph.codegen.d.cts} +0 -0
- /package/dist/governance/{governance.codegen.d.mts → governance.codegen.d.cts} +0 -0
- /package/dist/honey/{honey.codegen.d.mts → honey.codegen.d.cts} +0 -0
- /package/dist/pol/{api.codegen.d.mts → api.codegen.d.cts} +0 -0
- /package/dist/pol/{subgraph.codegen.d.mts → subgraph.codegen.d.cts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import{gql as s}from"@apollo/client";var c=(u=>(u.Day="day",u.Hour="hour",u))(c||{}),y=(n=>(n.Calldata="calldata",n.Id="id",n.Proposal="proposal",n.ProposalCancelTxHash="proposal__cancelTxHash",n.ProposalCanceledAt="proposal__canceledAt",n.ProposalCanceledAtBlock="proposal__canceledAtBlock",n.ProposalContentEncoding="proposal__contentEncoding",n.ProposalContentType="proposal__contentType",n.ProposalCreateTxHash="proposal__createTxHash",n.ProposalCreatedAt="proposal__createdAt",n.ProposalCreatedAtBlock="proposal__createdAtBlock",n.ProposalDescription="proposal__description",n.ProposalExecutableAtBlock="proposal__executableAtBlock",n.ProposalExecuteTxHash="proposal__executeTxHash",n.ProposalExecutedAt="proposal__executedAt",n.ProposalExecutedAtBlock="proposal__executedAtBlock",n.ProposalId="proposal__id",n.ProposalProposalId="proposal__proposalId",n.ProposalProposer="proposal__proposer",n.ProposalQueueEnd="proposal__queueEnd",n.ProposalQueueStart="proposal__queueStart",n.ProposalQueueStartBlock="proposal__queueStartBlock",n.ProposalQueueTxHash="proposal__queueTxHash",n.ProposalQuorum="proposal__quorum",n.ProposalStatus="proposal__status",n.ProposalSucceededAt="proposal__succeededAt",n.ProposalSucceededAtBlock="proposal__succeededAtBlock",n.ProposalSucceededVoteTxHash="proposal__succeededVoteTxHash",n.ProposalTitle="proposal__title",n.ProposalUnparsedDescription="proposal__unparsedDescription",n.ProposalUnverifiedForumLink="proposal__unverifiedForumLink",n.ProposalVoteEndAt="proposal__voteEndAt",n.ProposalVoteStartAt="proposal__voteStartAt",n.Signature="signature",n.Target="target",n.Value="value",n))(y||{}),I=(u=>(u.Asc="asc",u.Desc="desc",u))(I||{}),_=(r=>(r.Abstain="abstain",r.AbstainPercentage="abstainPercentage",r.AbstainVotersCount="abstainVotersCount",r.Against="against",r.AgainstPercentage="againstPercentage",r.AgainstVotersCount="againstVotersCount",r.For="for",r.ForPercentage="forPercentage",r.ForVotersCount="forVotersCount",r.Id="id",r.Total="total",r.TotalTowardsQuorum="totalTowardsQuorum",r.TotalVotersCount="totalVotersCount",r))(_||{}),S=(p=>(p.Active="ACTIVE",p.CanceledByGuardian="CANCELED_BY_GUARDIAN",p.CanceledByUser="CANCELED_BY_USER",p.Defeated="DEFEATED",p.Executed="EXECUTED",p.InQueue="IN_QUEUE",p.Pending="PENDING",p.PendingExecution="PENDING_EXECUTION",p.PendingQueue="PENDING_QUEUE",p.QuorumNotReached="QUORUM_NOT_REACHED",p))(S||{}),b=(t=>(t.CancelTxHash="cancelTxHash",t.CanceledAt="canceledAt",t.CanceledAtBlock="canceledAtBlock",t.ContentEncoding="contentEncoding",t.ContentType="contentType",t.CreateTxHash="createTxHash",t.CreatedAt="createdAt",t.CreatedAtBlock="createdAtBlock",t.Description="description",t.ExecutableAtBlock="executableAtBlock",t.ExecutableCalls="executableCalls",t.ExecuteTxHash="executeTxHash",t.ExecutedAt="executedAt",t.ExecutedAtBlock="executedAtBlock",t.Id="id",t.PollResult="pollResult",t.PollResultAbstain="pollResult__abstain",t.PollResultAbstainPercentage="pollResult__abstainPercentage",t.PollResultAbstainVotersCount="pollResult__abstainVotersCount",t.PollResultAgainst="pollResult__against",t.PollResultAgainstPercentage="pollResult__againstPercentage",t.PollResultAgainstVotersCount="pollResult__againstVotersCount",t.PollResultFor="pollResult__for",t.PollResultForPercentage="pollResult__forPercentage",t.PollResultForVotersCount="pollResult__forVotersCount",t.PollResultId="pollResult__id",t.PollResultTotal="pollResult__total",t.PollResultTotalTowardsQuorum="pollResult__totalTowardsQuorum",t.PollResultTotalVotersCount="pollResult__totalVotersCount",t.ProposalId="proposalId",t.Proposer="proposer",t.QueueEnd="queueEnd",t.QueueStart="queueStart",t.QueueStartBlock="queueStartBlock",t.QueueTxHash="queueTxHash",t.Quorum="quorum",t.Status="status",t.SucceededAt="succeededAt",t.SucceededAtBlock="succeededAtBlock",t.SucceededVoteTxHash="succeededVoteTxHash",t.Timelock="timelock",t.TimelockId="timelock__id",t.Title="title",t.Topics="topics",t.UnparsedDescription="unparsedDescription",t.UnverifiedForumLink="unverifiedForumLink",t.VoteEndAt="voteEndAt",t.VoteStartAt="voteStartAt",t.Votes="votes",t))(b||{}),g=(e=>(e.Id="id",e.Proposal="proposal",e.ProposalCancelTxHash="proposal__cancelTxHash",e.ProposalCanceledAt="proposal__canceledAt",e.ProposalCanceledAtBlock="proposal__canceledAtBlock",e.ProposalContentEncoding="proposal__contentEncoding",e.ProposalContentType="proposal__contentType",e.ProposalCreateTxHash="proposal__createTxHash",e.ProposalCreatedAt="proposal__createdAt",e.ProposalCreatedAtBlock="proposal__createdAtBlock",e.ProposalDescription="proposal__description",e.ProposalExecutableAtBlock="proposal__executableAtBlock",e.ProposalExecuteTxHash="proposal__executeTxHash",e.ProposalExecutedAt="proposal__executedAt",e.ProposalExecutedAtBlock="proposal__executedAtBlock",e.ProposalId="proposal__id",e.ProposalProposalId="proposal__proposalId",e.ProposalProposer="proposal__proposer",e.ProposalQueueEnd="proposal__queueEnd",e.ProposalQueueStart="proposal__queueStart",e.ProposalQueueStartBlock="proposal__queueStartBlock",e.ProposalQueueTxHash="proposal__queueTxHash",e.ProposalQuorum="proposal__quorum",e.ProposalStatus="proposal__status",e.ProposalSucceededAt="proposal__succeededAt",e.ProposalSucceededAtBlock="proposal__succeededAtBlock",e.ProposalSucceededVoteTxHash="proposal__succeededVoteTxHash",e.ProposalTitle="proposal__title",e.ProposalUnparsedDescription="proposal__unparsedDescription",e.ProposalUnverifiedForumLink="proposal__unverifiedForumLink",e.ProposalVoteEndAt="proposal__voteEndAt",e.ProposalVoteStartAt="proposal__voteStartAt",e))(g||{}),M=(i=>(i.Abstain="ABSTAIN",i.Against="AGAINST",i.For="FOR",i))(M||{}),d=(a=>(a.Id="id",a.Params="params",a.ProposalId="proposalId",a.ProposalIdCancelTxHash="proposalId__cancelTxHash",a.ProposalIdCanceledAt="proposalId__canceledAt",a.ProposalIdCanceledAtBlock="proposalId__canceledAtBlock",a.ProposalIdContentEncoding="proposalId__contentEncoding",a.ProposalIdContentType="proposalId__contentType",a.ProposalIdCreateTxHash="proposalId__createTxHash",a.ProposalIdCreatedAt="proposalId__createdAt",a.ProposalIdCreatedAtBlock="proposalId__createdAtBlock",a.ProposalIdDescription="proposalId__description",a.ProposalIdExecutableAtBlock="proposalId__executableAtBlock",a.ProposalIdExecuteTxHash="proposalId__executeTxHash",a.ProposalIdExecutedAt="proposalId__executedAt",a.ProposalIdExecutedAtBlock="proposalId__executedAtBlock",a.ProposalIdId="proposalId__id",a.ProposalIdProposalId="proposalId__proposalId",a.ProposalIdProposer="proposalId__proposer",a.ProposalIdQueueEnd="proposalId__queueEnd",a.ProposalIdQueueStart="proposalId__queueStart",a.ProposalIdQueueStartBlock="proposalId__queueStartBlock",a.ProposalIdQueueTxHash="proposalId__queueTxHash",a.ProposalIdQuorum="proposalId__quorum",a.ProposalIdStatus="proposalId__status",a.ProposalIdSucceededAt="proposalId__succeededAt",a.ProposalIdSucceededAtBlock="proposalId__succeededAtBlock",a.ProposalIdSucceededVoteTxHash="proposalId__succeededVoteTxHash",a.ProposalIdTitle="proposalId__title",a.ProposalIdUnparsedDescription="proposalId__unparsedDescription",a.ProposalIdUnverifiedForumLink="proposalId__unverifiedForumLink",a.ProposalIdVoteEndAt="proposalId__voteEndAt",a.ProposalIdVoteStartAt="proposalId__voteStartAt",a.Reason="reason",a.Support="support",a.Timestamp="timestamp",a.Voter="voter",a.Weight="weight",a))(d||{}),A=(u=>(u.Allow="allow",u.Deny="deny",u))(A||{}),o=s`
|
|
2
2
|
fragment ProposalSelection on Proposal {
|
|
3
3
|
id
|
|
4
4
|
proposer
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
title
|
|
38
38
|
topics
|
|
39
39
|
}
|
|
40
|
-
`,h=
|
|
40
|
+
`,h=s`
|
|
41
41
|
fragment ExecutableCallSubset on ExecutableCall {
|
|
42
42
|
id
|
|
43
43
|
target
|
|
44
44
|
value
|
|
45
45
|
calldata
|
|
46
46
|
}
|
|
47
|
-
`,l=
|
|
47
|
+
`,l=s`
|
|
48
48
|
fragment ProposalVote on Vote {
|
|
49
49
|
id
|
|
50
50
|
voter
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
timestamp
|
|
54
54
|
reason
|
|
55
55
|
}
|
|
56
|
-
`,B=
|
|
56
|
+
`,B=s`
|
|
57
57
|
fragment ProposalWithVotes on Proposal {
|
|
58
58
|
...ProposalSelection
|
|
59
59
|
queueTxHash
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
${o}
|
|
74
74
|
${h}
|
|
75
|
-
${l}`,k=
|
|
75
|
+
${l}`,k=s`
|
|
76
76
|
query GetProposalVotes($proposalId: String!, $orderBy: Vote_orderBy = weight, $orderDirection: OrderDirection = desc, $limit: Int!, $offset: Int) {
|
|
77
77
|
votes(
|
|
78
78
|
where: {proposalId: $proposalId}
|
|
@@ -84,7 +84,7 @@ ${l}`,k= exports.GetProposalVotes =_client.gql`
|
|
|
84
84
|
...ProposalVote
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
${l}`,m=
|
|
87
|
+
${l}`,m=s`
|
|
88
88
|
query GetProposals($offset: Int, $limit: Int, $where: Proposal_filter, $orderBy: Proposal_orderBy = createdAt, $orderDirection: OrderDirection = desc) {
|
|
89
89
|
proposals(
|
|
90
90
|
skip: $offset
|
|
@@ -96,7 +96,7 @@ ${l}`,k= exports.GetProposalVotes =_client.gql`
|
|
|
96
96
|
...ProposalSelection
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
${o}`,T=
|
|
99
|
+
${o}`,T=s`
|
|
100
100
|
query SearchProposals($offset: Int, $limit: Int, $where: Proposal_filter, $text: String!) {
|
|
101
101
|
proposals: proposalSearch(
|
|
102
102
|
skip: $offset
|
|
@@ -107,10 +107,10 @@ ${l}`,k= exports.GetProposalVotes =_client.gql`
|
|
|
107
107
|
...ProposalSelection
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
${o}`,w=
|
|
110
|
+
${o}`,w=s`
|
|
111
111
|
query GetProposal($id: ID!) {
|
|
112
112
|
proposal(id: $id) {
|
|
113
113
|
...ProposalWithVotes
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
${B}`,x={possibleTypes:{}},E=
|
|
116
|
+
${B}`,x={possibleTypes:{}},E=x;export{c as Aggregation_Interval,h as ExecutableCallSubset,y as ExecutableCall_OrderBy,w as GetProposal,k as GetProposalVotes,m as GetProposals,I as OrderDirection,_ as PollResult_OrderBy,o as ProposalSelection,S as ProposalStatus,l as ProposalVote,B as ProposalWithVotes,b as Proposal_OrderBy,T as SearchProposals,g as Timelock_OrderBy,M as VoteSupportType,d as Vote_OrderBy,A as _SubgraphErrorPolicy_,E as default};
|
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
2
|
fragment HoneyTxnData on HoneyTxn {
|
|
3
3
|
id
|
|
4
4
|
timestamp
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
id
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
`,D=
|
|
19
|
+
`,D=r`
|
|
20
20
|
query GetHoneyTxnByType($page: Int!, $limit: Int!, $type: TxnType!) {
|
|
21
21
|
honeyTxns(
|
|
22
22
|
skip: $page
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
...HoneyTxnData
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
${i}`,h=
|
|
31
|
+
${i}`,h=r`
|
|
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=r`
|
|
38
38
|
query GetSupplyDay($timestamp_gt: Int!) {
|
|
39
39
|
honeySupplyDayDatas(
|
|
40
40
|
where: {timestamp_gt: $timestamp_gt}
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
amount
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
`,H=
|
|
49
|
+
`,H=r`
|
|
50
50
|
query GetSupplyHour($timestamp_gt: Int!) {
|
|
51
51
|
honeySupplyHourDatas(
|
|
52
52
|
where: {timestamp_gt: $timestamp_gt}
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
amount
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
`,d=
|
|
61
|
+
`,d=r`
|
|
62
62
|
query GetVolumeDay($timestamp_gt: Int!) {
|
|
63
63
|
honeyVolumeDayDatas(
|
|
64
64
|
where: {timestamp_gt: $timestamp_gt}
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
amount
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
`,T=
|
|
73
|
+
`,T=r`
|
|
74
74
|
query GetVolumeHour($timestamp_gt: Int!) {
|
|
75
75
|
honeyVolumeHourDatas(
|
|
76
76
|
where: {timestamp_gt: $timestamp_gt}
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
amount
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
`,B=
|
|
85
|
+
`,B=r`
|
|
86
86
|
query GetGlobalData {
|
|
87
87
|
honeyVolumeDayDatas(first: 1, orderBy: timestamp, orderDirection: desc) {
|
|
88
88
|
id
|
|
@@ -95,10 +95,10 @@
|
|
|
95
95
|
amount
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
`,A=
|
|
98
|
+
`,A=r`
|
|
99
99
|
query GetFirstHoneyTxnDate {
|
|
100
100
|
honeyTxns(first: 1) {
|
|
101
101
|
timestamp
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
`,M={possibleTypes:{}},k=
|
|
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};
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _client = require('@apollo/client');var d=(a=>(a.Bartio="BARTIO",a.Berachain="BERACHAIN",a.Cartio="CARTIO",a))(d||{}),m= exports.GqlContentNewsItemSource =(a=>(a.Discord="discord",a.Medium="medium",a.Twitter="twitter",a))(m||{}),G= exports.GqlPoolAprItemType =(i=>(i.Aura="AURA",i.IbYield="IB_YIELD",i.Locking="LOCKING",i.MabeetsEmissions="MABEETS_EMISSIONS",i.Merkl="MERKL",i.Nested="NESTED",i.Staking="STAKING",i.StakingBoost="STAKING_BOOST",i.Surplus="SURPLUS",i.SwapFee="SWAP_FEE",i.VebalEmissions="VEBAL_EMISSIONS",i.Voting="VOTING",i))(G||{}),A= exports.GqlPoolEventType =(a=>(a.Add="ADD",a.Remove="REMOVE",a.Swap="SWAP",a))(A||{}),b= exports.GqlPoolEventsDataRange =(a=>(a.NinetyDays="NINETY_DAYS",a.SevenDays="SEVEN_DAYS",a.ThirtyDays="THIRTY_DAYS",a))(b||{}),I= exports.GqlPoolFilterCategory =(s=>(s.BlackListed="BLACK_LISTED",s.Incentivized="INCENTIVIZED",s.Lrt="LRT",s.Points="POINTS",s.PointsEigenlayer="POINTS_EIGENLAYER",s.PointsGyro="POINTS_GYRO",s.PointsKelp="POINTS_KELP",s.PointsRenzo="POINTS_RENZO",s.PointsSwell="POINTS_SWELL",s.Superfest="SUPERFEST",s))(I||{}),q= exports.GqlPoolJoinExitType =(t=>(t.Exit="Exit",t.Join="Join",t))(q||{}),P= exports.GqlPoolNestingType =(a=>(a.HasOnlyPhantomBpt="HAS_ONLY_PHANTOM_BPT",a.HasSomePhantomBpt="HAS_SOME_PHANTOM_BPT",a.NoNesting="NO_NESTING",a))(P||{}),h= exports.GqlPoolOrderBy =(p=>(p.Apr="apr",p.BgtApr="bgtApr",p.Fees24h="fees24h",p.TotalLiquidity="totalLiquidity",p.TotalShares="totalShares",p.UserbalanceUsd="userbalanceUsd",p.Volume24h="volume24h",p))(h||{}),k= exports.GqlPoolOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(k||{}),B= exports.GqlPoolSnapshotDataRange =(r=>(r.AllTime="ALL_TIME",r.NinetyDays="NINETY_DAYS",r.OneHundredEightyDays="ONE_HUNDRED_EIGHTY_DAYS",r.OneYear="ONE_YEAR",r.ThirtyDays="THIRTY_DAYS",r))(B||{}),D= exports.GqlPoolType =(l=>(l.ComposableStable="COMPOSABLE_STABLE",l.CowAmm="COW_AMM",l.Element="ELEMENT",l.Fx="FX",l.Gyro="GYRO",l.Gyro3="GYRO3",l.Gyroe="GYROE",l.Investment="INVESTMENT",l.LiquidityBootstrapping="LIQUIDITY_BOOTSTRAPPING",l.MetaStable="META_STABLE",l.PhantomStable="PHANTOM_STABLE",l.Stable="STABLE",l.Unknown="UNKNOWN",l.Weighted="WEIGHTED",l))(D||{}),_= exports.GqlRewardVaultIncentiveOrderBy =(a=>(a.AmountRemaining="amountRemaining",a.AmountRemainingUsd="amountRemainingUsd",a.IncentiveRate="incentiveRate",a))(_||{}),v= exports.GqlRewardVaultIncentiveOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(v||{}),M= exports.GqlRewardVaultOrderBy =(u=>(u.ActiveIncentivesRateUsd="activeIncentivesRateUsd",u.ActiveIncentivesValueUsd="activeIncentivesValueUsd",u.AllTimeBgtReceived="allTimeBGTReceived",u.Apr="apr",u.Apy="apy",u.BgtCapturePercentage="bgtCapturePercentage",u.Last24hBgtReceived="last24hBGTReceived",u.ProjectedApr="projectedApr",u))(M||{}),T= exports.GqlRewardVaultOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(T||{}),V= exports.GqlRewardVaultSnapshotDataRange =(n=>(n.NinetyDays="NINETY_DAYS",n.SevenDays="SEVEN_DAYS",n.SixtyDays="SIXTY_DAYS",n.ThirtyDays="THIRTY_DAYS",n))(V||{}),w= exports.GqlRewardVaultSnapshotResolution =(t=>(t.Day="DAY",t.Hour="HOUR",t))(w||{}),x= exports.GqlSWberaVaultMetadataResolution =(t=>(t.OneDay="ONE_DAY",t.SevenDays="SEVEN_DAYS",t))(x||{}),R= exports.GqlSorSwapType =(t=>(t.ExactIn="EXACT_IN",t.ExactOut="EXACT_OUT",t))(R||{}),C= exports.GqlStakeBeraVaultEventType =(t=>(t.Deposit="DEPOSIT",t.WithdrawalCompleted="WITHDRAWAL_COMPLETED",t))(C||{}),U= exports.GqlTokenChartDataRange =(r=>(r.NinetyDay="NINETY_DAY",r.OneHundredEightyDay="ONE_HUNDRED_EIGHTY_DAY",r.OneYear="ONE_YEAR",r.SevenDay="SEVEN_DAY",r.ThirtyDay="THIRTY_DAY",r))(U||{}),E= exports.GqlTokenType =(a=>(a.Bpt="BPT",a.PhantomBpt="PHANTOM_BPT",a.WhiteListed="WHITE_LISTED",a))(E||{}),f= exports.GqlUserVaultDepositOrderBy =(g=>(g.Amount="amount",g))(f||{}),F= exports.GqlUserVaultDepositOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(F||{}),N= exports.GqlValidatorBlockUptimeStatus =(n=>(n.Inactive="INACTIVE",n.Offline="OFFLINE",n.Proposed="PROPOSED",n.Signed="SIGNED",n))(N||{}),Q= exports.GqlValidatorBoostOrderBy =(r=>(r.ActiveBoostAmount="activeBoostAmount",r.LatestBlock="latestBlock",r.LatestBlockTime="latestBlockTime",r.QueuedBoostAmount="queuedBoostAmount",r.QueuedDropBoostAmount="queuedDropBoostAmount",r))(Q||{}),W= exports.GqlValidatorBoostOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(W||{}),O= exports.GqlValidatorOrderBy =(o=>(o.ActiveBoostAmount="activeBoostAmount",o.AllTimeDistributedBgtAmount="allTimeDistributedBGTAmount",o.AllTimeEarnedBgtAmount="allTimeEarnedBGTAmount",o.Apy="apy",o.BgtCapturePercentage="bgtCapturePercentage",o.BoostApr="boostApr",o.CommissionOnIncentives="commissionOnIncentives",o.LastDayDistributedBgtAmount="lastDayDistributedBGTAmount",o.LastDayEarnedBgtAmount="lastDayEarnedBGTAmount",o.QueuedBoostAmount="queuedBoostAmount",o.QueuedDropBoostAmount="queuedDropBoostAmount",o.RewardRate="rewardRate",o.StakedBeraAmount="stakedBeraAmount",o.UsersActiveBoostCount="usersActiveBoostCount",o.UsersQueuedBoostCount="usersQueuedBoostCount",o))(O||{}),H= exports.GqlValidatorOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(H||{}),L= exports.GqlVaultSnapshotDataRange =(n=>(n.NinetyDays="NINETY_DAYS",n.SevenDays="SEVEN_DAYS",n.SixtyDays="SIXTY_DAYS",n.ThirtyDays="THIRTY_DAYS",n))(L||{}),y= exports.ApiValidatorMinimal =_client.gql`
|
|
2
|
+
fragment ApiValidatorMinimal on GqlValidator {
|
|
3
|
+
id
|
|
4
|
+
pubkey
|
|
5
|
+
operator
|
|
6
|
+
rewardAllocator
|
|
7
|
+
metadata {
|
|
8
|
+
name
|
|
9
|
+
logoURI
|
|
10
|
+
}
|
|
11
|
+
dynamicData {
|
|
12
|
+
activeBoostAmount
|
|
13
|
+
usersActiveBoostCount
|
|
14
|
+
queuedBoostAmount
|
|
15
|
+
usersQueuedBoostCount
|
|
16
|
+
allTimeDistributedBGTAmount
|
|
17
|
+
rewardRate
|
|
18
|
+
stakedBeraAmount
|
|
19
|
+
lastDayDistributedBGTAmount
|
|
20
|
+
activeBoostAmountRank
|
|
21
|
+
boostApr
|
|
22
|
+
commissionOnIncentives
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`,$= exports.ApiVaultIncentive =_client.gql`
|
|
26
|
+
fragment ApiVaultIncentive on GqlRewardVaultIncentive {
|
|
27
|
+
active
|
|
28
|
+
remainingAmount
|
|
29
|
+
remainingAmountUsd
|
|
30
|
+
incentiveRate
|
|
31
|
+
incentiveRateUsd
|
|
32
|
+
tokenAddress
|
|
33
|
+
token {
|
|
34
|
+
address
|
|
35
|
+
name
|
|
36
|
+
symbol
|
|
37
|
+
decimals
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`,c= exports.ApiVault =_client.gql`
|
|
41
|
+
fragment ApiVault on GqlRewardVault {
|
|
42
|
+
id: vaultAddress
|
|
43
|
+
vaultAddress
|
|
44
|
+
address: vaultAddress
|
|
45
|
+
isVaultWhitelisted
|
|
46
|
+
dynamicData {
|
|
47
|
+
allTimeReceivedBGTAmount
|
|
48
|
+
apr
|
|
49
|
+
bgtCapturePercentage
|
|
50
|
+
bgtCapturePerBlock
|
|
51
|
+
activeIncentivesValueUsd
|
|
52
|
+
activeIncentivesRateUsd
|
|
53
|
+
bgtCapturePerBlock
|
|
54
|
+
tvl
|
|
55
|
+
}
|
|
56
|
+
stakingTokenAmount
|
|
57
|
+
stakingToken {
|
|
58
|
+
address
|
|
59
|
+
name
|
|
60
|
+
symbol
|
|
61
|
+
decimals
|
|
62
|
+
}
|
|
63
|
+
metadata {
|
|
64
|
+
name
|
|
65
|
+
logoURI
|
|
66
|
+
url
|
|
67
|
+
protocolName
|
|
68
|
+
protocolIcon
|
|
69
|
+
description
|
|
70
|
+
categories
|
|
71
|
+
action
|
|
72
|
+
}
|
|
73
|
+
activeIncentives {
|
|
74
|
+
...ApiVaultIncentive
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
${$}`,Y= exports.ApiRewardAllocationWeight =_client.gql`
|
|
78
|
+
fragment ApiRewardAllocationWeight on GqlValidatorRewardAllocationWeight {
|
|
79
|
+
percentageNumerator
|
|
80
|
+
validatorId
|
|
81
|
+
receivingVault {
|
|
82
|
+
...ApiVault
|
|
83
|
+
}
|
|
84
|
+
receiver
|
|
85
|
+
startBlock
|
|
86
|
+
}
|
|
87
|
+
${c}`,S= exports.ApiValidator =_client.gql`
|
|
88
|
+
fragment ApiValidator on GqlValidator {
|
|
89
|
+
...ApiValidatorMinimal
|
|
90
|
+
operator
|
|
91
|
+
rewardAllocationWeights {
|
|
92
|
+
...ApiRewardAllocationWeight
|
|
93
|
+
}
|
|
94
|
+
lastBlockUptime {
|
|
95
|
+
isActive
|
|
96
|
+
}
|
|
97
|
+
metadata {
|
|
98
|
+
name
|
|
99
|
+
logoURI
|
|
100
|
+
website
|
|
101
|
+
description
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
${y}
|
|
105
|
+
${Y}`,z= exports.ApiValidatorBlockUptime =_client.gql`
|
|
106
|
+
fragment ApiValidatorBlockUptime on GqlValidatorBlockUptime {
|
|
107
|
+
isActive
|
|
108
|
+
isProposer
|
|
109
|
+
isSigner
|
|
110
|
+
status
|
|
111
|
+
blockNumber
|
|
112
|
+
}
|
|
113
|
+
`,X= exports.GetVaults =_client.gql`
|
|
114
|
+
query GetVaults($where: GqlRewardVaultFilter, $pageSize: Int, $skip: Int, $orderBy: GqlRewardVaultOrderBy = bgtCapturePercentage, $orderDirection: GqlRewardVaultOrderDirection = desc, $search: String) {
|
|
115
|
+
polGetRewardVaults(
|
|
116
|
+
where: $where
|
|
117
|
+
first: $pageSize
|
|
118
|
+
skip: $skip
|
|
119
|
+
orderBy: $orderBy
|
|
120
|
+
orderDirection: $orderDirection
|
|
121
|
+
search: $search
|
|
122
|
+
) {
|
|
123
|
+
pagination {
|
|
124
|
+
currentPage
|
|
125
|
+
totalCount
|
|
126
|
+
}
|
|
127
|
+
vaults {
|
|
128
|
+
...ApiVault
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
${c}`,j= exports.GetValidator =_client.gql`
|
|
133
|
+
query GetValidator($id: String!, $chain: GqlChain!) {
|
|
134
|
+
validator: polGetValidator(validatorId: $id, chain: $chain) {
|
|
135
|
+
...ApiValidator
|
|
136
|
+
}
|
|
137
|
+
uptime: polGetValidatorBlockUptimes(validatorId: $id, chain: $chain) {
|
|
138
|
+
...ApiValidatorBlockUptime
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
${S}
|
|
142
|
+
${z}`,Z= exports.GetValidators =_client.gql`
|
|
143
|
+
query GetValidators($where: GqlValidatorFilter, $sortBy: GqlValidatorOrderBy = lastDayDistributedBGTAmount, $sortOrder: GqlValidatorOrderDirection = desc, $pageSize: Int, $skip: Int, $search: String, $chain: GqlChain) {
|
|
144
|
+
validators: polGetValidators(
|
|
145
|
+
where: $where
|
|
146
|
+
orderBy: $sortBy
|
|
147
|
+
orderDirection: $sortOrder
|
|
148
|
+
first: $pageSize
|
|
149
|
+
skip: $skip
|
|
150
|
+
search: $search
|
|
151
|
+
chain: $chain
|
|
152
|
+
) {
|
|
153
|
+
pagination {
|
|
154
|
+
currentPage
|
|
155
|
+
totalCount
|
|
156
|
+
totalPages
|
|
157
|
+
pageSize
|
|
158
|
+
}
|
|
159
|
+
validators {
|
|
160
|
+
...ApiValidator
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
${S}`,tt= exports.GetVaultValidators =_client.gql`
|
|
165
|
+
query GetVaultValidators($vaultId: String!, $chain: GqlChain, $isActive: Boolean = true) {
|
|
166
|
+
validators: polGetValidators(
|
|
167
|
+
where: {vaultAddress: $vaultId, isActive: $isActive}
|
|
168
|
+
orderDirection: desc
|
|
169
|
+
orderBy: rewardRate
|
|
170
|
+
chain: $chain
|
|
171
|
+
) {
|
|
172
|
+
pagination {
|
|
173
|
+
currentPage
|
|
174
|
+
totalCount
|
|
175
|
+
}
|
|
176
|
+
validators {
|
|
177
|
+
...ApiValidator
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
${S}`,at= exports.GetRewardVault =_client.gql`
|
|
182
|
+
query GetRewardVault($vaultId: String!, $chain: GqlChain!) {
|
|
183
|
+
rewardVault: polGetRewardVault(vaultAddress: $vaultId, chain: $chain) {
|
|
184
|
+
...ApiVault
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
${c}`,et= exports.GlobalData =_client.gql`
|
|
188
|
+
query GlobalData($chain: GqlChain!) {
|
|
189
|
+
top3EmittingValidators: polGetValidators(
|
|
190
|
+
orderBy: bgtCapturePercentage
|
|
191
|
+
orderDirection: desc
|
|
192
|
+
first: 3
|
|
193
|
+
) {
|
|
194
|
+
pagination {
|
|
195
|
+
currentPage
|
|
196
|
+
totalCount
|
|
197
|
+
}
|
|
198
|
+
validators {
|
|
199
|
+
...ApiValidatorMinimal
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
polGetGlobalInfo(chain: $chain) {
|
|
203
|
+
totalActiveBoostAmount
|
|
204
|
+
totalValidatorsCount
|
|
205
|
+
totalWhitelistedRewardVaults
|
|
206
|
+
totalActiveRewardVaults
|
|
207
|
+
totalActiveIncentives
|
|
208
|
+
totalActiveIncentivesValueUSD
|
|
209
|
+
totalDistributedBGTAmount
|
|
210
|
+
totalStakedBeraAmount
|
|
211
|
+
annualizedBGTEmission
|
|
212
|
+
annualizedBGTInflation
|
|
213
|
+
}
|
|
214
|
+
allValidatorsCount: polGetValidators {
|
|
215
|
+
pagination {
|
|
216
|
+
totalCount
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
${y}`,rt= exports.GetUserVaults =_client.gql`
|
|
221
|
+
query GetUserVaults($userId: String!, $chain: GqlChain!) {
|
|
222
|
+
userVaultDeposits: polGetUserVaultDeposits(userAddress: $userId, chain: $chain) {
|
|
223
|
+
pagination {
|
|
224
|
+
currentPage
|
|
225
|
+
totalCount
|
|
226
|
+
}
|
|
227
|
+
deposits {
|
|
228
|
+
amount
|
|
229
|
+
vaultAddress
|
|
230
|
+
vault {
|
|
231
|
+
...ApiVault
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
${c}`,ot= exports.GetVaultHistory =_client.gql`
|
|
237
|
+
query GetVaultHistory($vaultId: String!, $chain: GqlChain!, $resolution: GqlRewardVaultSnapshotResolution = DAY, $range: GqlRewardVaultSnapshotDataRange = THIRTY_DAYS) {
|
|
238
|
+
polGetRewardVaultSnapshots(
|
|
239
|
+
chain: $chain
|
|
240
|
+
range: $range
|
|
241
|
+
resolution: $resolution
|
|
242
|
+
vaultAddress: $vaultId
|
|
243
|
+
) {
|
|
244
|
+
timestamp
|
|
245
|
+
tvl
|
|
246
|
+
apr
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
`,nt= exports.GetVaultDurations =_client.gql`
|
|
250
|
+
query GetVaultDurations {
|
|
251
|
+
polGetVaultDurations {
|
|
252
|
+
maxRewardDuration
|
|
253
|
+
minRewardDuration
|
|
254
|
+
rewardDurationCooldownPeriod
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
`,lt= exports.GetBoostDelay =_client.gql`
|
|
258
|
+
query GetBoostDelay {
|
|
259
|
+
polGetValidatorBoostDelay {
|
|
260
|
+
boostDelay
|
|
261
|
+
unboostDelay
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
`,it= exports.GetCommissionChangeDelay =_client.gql`
|
|
265
|
+
query GetCommissionChangeDelay {
|
|
266
|
+
polGetValidatorCommissionDelay {
|
|
267
|
+
rewardAllocationBlockDelay
|
|
268
|
+
maxWeightPerVault
|
|
269
|
+
commissionChangeDelay
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
`,st= exports.GetSWberaVaultMetadata =_client.gql`
|
|
273
|
+
query GetSWberaVaultMetadata($chain: GqlChain!, $resolution: GqlSWberaVaultMetadataResolution) {
|
|
274
|
+
polGetSWberaVaultMetadata(chain: $chain, resolution: $resolution) {
|
|
275
|
+
apr
|
|
276
|
+
chain
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
`,ut= exports.GetSWberaVaultSnapshots =_client.gql`
|
|
280
|
+
query GetSWberaVaultSnapshots($chain: GqlChain!, $range: GqlVaultSnapshotDataRange) {
|
|
281
|
+
polGetSWberaVaultSnapshots(chain: $chain, range: $range) {
|
|
282
|
+
apr
|
|
283
|
+
chain
|
|
284
|
+
id
|
|
285
|
+
timestamp
|
|
286
|
+
totalAssets
|
|
287
|
+
vaultAddress
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
`,pt= exports.GetPolStakeBeraVaultEventsByOwner =_client.gql`
|
|
291
|
+
query GetPolStakeBeraVaultEventsByOwner($owner: String!) {
|
|
292
|
+
events: polGetStakeBeraVaultEventsByOwner(owner: $owner) {
|
|
293
|
+
type
|
|
294
|
+
assets
|
|
295
|
+
shares
|
|
296
|
+
owner
|
|
297
|
+
_id
|
|
298
|
+
_timestamp
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
`,K={possibleTypes:{GqlPoolAprValue:["GqlPoolAprRange","GqlPoolAprTotal"],GqlPoolBase:["GqlPoolComposableStable","GqlPoolElement","GqlPoolFx","GqlPoolGyro","GqlPoolLiquidityBootstrapping","GqlPoolMetaStable","GqlPoolStable","GqlPoolWeighted"],GqlPoolEvent:["GqlPoolAddRemoveEventV3","GqlPoolSwapEventCowAmm","GqlPoolSwapEventV3"],GqlPoolFeaturedPoolGroupItem:["GqlFeaturePoolGroupItemExternalLink","GqlPoolMinimal"],GqlPoolNestedUnion:["GqlPoolComposableStableNested"],GqlPoolTokenBase:["GqlPoolToken","GqlPoolTokenComposableStable"],GqlPoolTokenComposableStableNestedUnion:["GqlPoolToken"],GqlPoolTokenUnion:["GqlPoolToken","GqlPoolTokenComposableStable"],GqlPoolUnion:["GqlPoolComposableStable","GqlPoolElement","GqlPoolFx","GqlPoolGyro","GqlPoolLiquidityBootstrapping","GqlPoolMetaStable","GqlPoolStable","GqlPoolWeighted"]}},ct= exports.default =K;exports.ApiRewardAllocationWeight = Y; exports.ApiValidator = S; exports.ApiValidatorBlockUptime = z; exports.ApiValidatorMinimal = y; exports.ApiVault = c; exports.ApiVaultIncentive = $; exports.GetBoostDelay = lt; exports.GetCommissionChangeDelay = it; exports.GetPolStakeBeraVaultEventsByOwner = pt; exports.GetRewardVault = at; exports.GetSWberaVaultMetadata = st; exports.GetSWberaVaultSnapshots = ut; exports.GetUserVaults = rt; exports.GetValidator = j; exports.GetValidators = Z; exports.GetVaultDurations = nt; exports.GetVaultHistory = ot; exports.GetVaultValidators = tt; exports.GetVaults = X; exports.GlobalData = et; exports.GqlChain = d; exports.GqlContentNewsItemSource = m; exports.GqlPoolAprItemType = G; exports.GqlPoolEventType = A; exports.GqlPoolEventsDataRange = b; exports.GqlPoolFilterCategory = I; exports.GqlPoolJoinExitType = q; exports.GqlPoolNestingType = P; exports.GqlPoolOrderBy = h; exports.GqlPoolOrderDirection = k; exports.GqlPoolSnapshotDataRange = B; exports.GqlPoolType = D; exports.GqlRewardVaultIncentiveOrderBy = _; exports.GqlRewardVaultIncentiveOrderDirection = v; exports.GqlRewardVaultOrderBy = M; exports.GqlRewardVaultOrderDirection = T; exports.GqlRewardVaultSnapshotDataRange = V; exports.GqlRewardVaultSnapshotResolution = w; exports.GqlSWberaVaultMetadataResolution = x; exports.GqlSorSwapType = R; exports.GqlStakeBeraVaultEventType = C; exports.GqlTokenChartDataRange = U; exports.GqlTokenType = E; exports.GqlUserVaultDepositOrderBy = f; exports.GqlUserVaultDepositOrderDirection = F; exports.GqlValidatorBlockUptimeStatus = N; exports.GqlValidatorBoostOrderBy = Q; exports.GqlValidatorBoostOrderDirection = W; exports.GqlValidatorOrderBy = O; exports.GqlValidatorOrderDirection = H; exports.GqlVaultSnapshotDataRange = L; exports.default = ct;
|