@berachain/graphql 0.1.1 → 0.1.2-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/dist/bend/{whisk.codegen.js → whisk.codegen.cjs} +26 -26
- package/dist/chain/chain.codegen.cjs +12 -0
- package/dist/dex/api.codegen.cjs +199 -0
- package/dist/dex/subgraph.codegen.cjs +88 -0
- package/dist/governance/governance.codegen.cjs +116 -0
- package/dist/honey/honey.codegen.cjs +104 -0
- package/dist/pol/api.codegen.cjs +301 -0
- package/dist/pol/subgraph.codegen.cjs +197 -0
- package/package.json +25 -18
- package/dist/chain/chain.codegen.js +0 -12
- package/dist/dex/api.codegen.js +0 -199
- package/dist/dex/subgraph.codegen.js +0 -88
- package/dist/governance/governance.codegen.js +0 -116
- package/dist/honey/honey.codegen.js +0 -104
- package/dist/pol/api.codegen.js +0 -301
- package/dist/pol/subgraph.codegen.js +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
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";var I=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var E=Object.prototype.hasOwnProperty;var f=(o,s)=>{for(var r in s)I(o,r,{get:s[r],enumerable:!0})},H=(o,s,r,l)=>{if(s&&typeof s=="object"||typeof s=="function")for(let c of w(s))!E.call(o,c)&&c!==r&&I(o,c,{get:()=>s[c],enumerable:!(l=T(s,c))||l.enumerable});return o};var C=o=>H(I({},"__esModule",{value:!0}),o);var Q={};f(Q,{Aggregation_Interval:()=>S,ExecutableCallSubset:()=>k,ExecutableCall_OrderBy:()=>b,GetProposal:()=>q,GetProposalVotes:()=>D,GetProposals:()=>V,OrderDirection:()=>g,PollResult_OrderBy:()=>M,ProposalSelection:()=>y,ProposalStatus:()=>d,ProposalVote:()=>_,ProposalWithVotes:()=>m,Proposal_OrderBy:()=>A,SearchProposals:()=>v,Timelock_OrderBy:()=>h,VoteSupportType:()=>B,Vote_OrderBy:()=>x,_SubgraphErrorPolicy_:()=>P,default:()=>R});module.exports=C(Q);var i=require("@apollo/client"),S=(r=>(r.Day="day",r.Hour="hour",r))(S||{}),b=(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))(b||{}),g=(r=>(r.Asc="asc",r.Desc="desc",r))(g||{}),M=(p=>(p.Abstain="abstain",p.AbstainPercentage="abstainPercentage",p.AbstainVotersCount="abstainVotersCount",p.Against="against",p.AgainstPercentage="againstPercentage",p.AgainstVotersCount="againstVotersCount",p.For="for",p.ForPercentage="forPercentage",p.ForVotersCount="forVotersCount",p.Id="id",p.Total="total",p.TotalTowardsQuorum="totalTowardsQuorum",p.TotalVotersCount="totalVotersCount",p))(M||{}),d=(u=>(u.Active="ACTIVE",u.CanceledByGuardian="CANCELED_BY_GUARDIAN",u.CanceledByUser="CANCELED_BY_USER",u.Defeated="DEFEATED",u.Executed="EXECUTED",u.InQueue="IN_QUEUE",u.Pending="PENDING",u.PendingExecution="PENDING_EXECUTION",u.PendingQueue="PENDING_QUEUE",u.QuorumNotReached="QUORUM_NOT_REACHED",u))(d||{}),A=(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))(A||{}),h=(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))(h||{}),B=(l=>(l.Abstain="ABSTAIN",l.Against="AGAINST",l.For="FOR",l))(B||{}),x=(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))(x||{}),P=(r=>(r.Allow="allow",r.Deny="deny",r))(P||{}),y=i.gql`
|
|
2
|
+
fragment ProposalSelection on Proposal {
|
|
3
|
+
id
|
|
4
|
+
proposer
|
|
5
|
+
proposalId
|
|
6
|
+
description
|
|
7
|
+
status
|
|
8
|
+
createdAt
|
|
9
|
+
createdAtBlock
|
|
10
|
+
unverifiedForumLink
|
|
11
|
+
quorum
|
|
12
|
+
succeededAt
|
|
13
|
+
timelock {
|
|
14
|
+
id
|
|
15
|
+
}
|
|
16
|
+
pollResult {
|
|
17
|
+
for
|
|
18
|
+
forVotersCount
|
|
19
|
+
forPercentage
|
|
20
|
+
against
|
|
21
|
+
againstVotersCount
|
|
22
|
+
againstPercentage
|
|
23
|
+
abstain
|
|
24
|
+
abstainVotersCount
|
|
25
|
+
abstainPercentage
|
|
26
|
+
total
|
|
27
|
+
totalVotersCount
|
|
28
|
+
totalTowardsQuorum
|
|
29
|
+
}
|
|
30
|
+
voteStartAt
|
|
31
|
+
voteEndAt
|
|
32
|
+
queueStart
|
|
33
|
+
queueEnd
|
|
34
|
+
canceledAt
|
|
35
|
+
canceledAt
|
|
36
|
+
executedAt
|
|
37
|
+
title
|
|
38
|
+
topics
|
|
39
|
+
}
|
|
40
|
+
`,k=i.gql`
|
|
41
|
+
fragment ExecutableCallSubset on ExecutableCall {
|
|
42
|
+
id
|
|
43
|
+
target
|
|
44
|
+
value
|
|
45
|
+
calldata
|
|
46
|
+
}
|
|
47
|
+
`,_=i.gql`
|
|
48
|
+
fragment ProposalVote on Vote {
|
|
49
|
+
id
|
|
50
|
+
voter
|
|
51
|
+
weight
|
|
52
|
+
support
|
|
53
|
+
timestamp
|
|
54
|
+
reason
|
|
55
|
+
}
|
|
56
|
+
`,m=i.gql`
|
|
57
|
+
fragment ProposalWithVotes on Proposal {
|
|
58
|
+
...ProposalSelection
|
|
59
|
+
queueTxHash
|
|
60
|
+
createTxHash
|
|
61
|
+
cancelTxHash
|
|
62
|
+
executeTxHash
|
|
63
|
+
executableCalls {
|
|
64
|
+
...ExecutableCallSubset
|
|
65
|
+
}
|
|
66
|
+
timelock {
|
|
67
|
+
id
|
|
68
|
+
}
|
|
69
|
+
votes(orderBy: weight, orderDirection: desc) {
|
|
70
|
+
...ProposalVote
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
${y}
|
|
74
|
+
${k}
|
|
75
|
+
${_}`,D=i.gql`
|
|
76
|
+
query GetProposalVotes($proposalId: String!, $orderBy: Vote_orderBy = weight, $orderDirection: OrderDirection = desc, $limit: Int!, $offset: Int) {
|
|
77
|
+
votes(
|
|
78
|
+
where: {proposalId: $proposalId}
|
|
79
|
+
orderBy: $orderBy
|
|
80
|
+
orderDirection: $orderDirection
|
|
81
|
+
skip: $offset
|
|
82
|
+
first: $limit
|
|
83
|
+
) {
|
|
84
|
+
...ProposalVote
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
${_}`,V=i.gql`
|
|
88
|
+
query GetProposals($offset: Int, $limit: Int, $where: Proposal_filter, $orderBy: Proposal_orderBy = createdAt, $orderDirection: OrderDirection = desc) {
|
|
89
|
+
proposals(
|
|
90
|
+
skip: $offset
|
|
91
|
+
first: $limit
|
|
92
|
+
orderBy: $orderBy
|
|
93
|
+
orderDirection: $orderDirection
|
|
94
|
+
where: $where
|
|
95
|
+
) {
|
|
96
|
+
...ProposalSelection
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
${y}`,v=i.gql`
|
|
100
|
+
query SearchProposals($offset: Int, $limit: Int, $where: Proposal_filter, $text: String!) {
|
|
101
|
+
proposals: proposalSearch(
|
|
102
|
+
skip: $offset
|
|
103
|
+
first: $limit
|
|
104
|
+
where: $where
|
|
105
|
+
text: $text
|
|
106
|
+
) {
|
|
107
|
+
...ProposalSelection
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
${y}`,q=i.gql`
|
|
111
|
+
query GetProposal($id: ID!) {
|
|
112
|
+
proposal(id: $id) {
|
|
113
|
+
...ProposalWithVotes
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
${m}`,F={possibleTypes:{}},R=F;0&&(module.exports={Aggregation_Interval,ExecutableCallSubset,ExecutableCall_OrderBy,GetProposal,GetProposalVotes,GetProposals,OrderDirection,PollResult_OrderBy,ProposalSelection,ProposalStatus,ProposalVote,ProposalWithVotes,Proposal_OrderBy,SearchProposals,Timelock_OrderBy,VoteSupportType,Vote_OrderBy,_SubgraphErrorPolicy_});
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";var o=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var T=(i,p)=>{for(var a in p)o(i,a,{get:p[a],enumerable:!0})},B=(i,p,a,t)=>{if(p&&typeof p=="object"||typeof p=="function")for(let y of H(p))!d.call(i,y)&&y!==a&&o(i,y,{get:()=>p[y],enumerable:!(t=x(p,y))||t.enumerable});return i};var A=i=>B(o({},"__esModule",{value:!0}),i);var $={};T($,{Aggregation_Interval:()=>s,ChainTransaction_OrderBy:()=>c,GetFirstHoneyTxnDate:()=>Q,GetGlobalData:()=>w,GetHoneyTxn:()=>E,GetHoneyTxnByType:()=>k,GetSupplyDay:()=>V,GetSupplyHour:()=>F,GetVolumeDay:()=>C,GetVolumeHour:()=>f,HoneyCollateral_OrderBy:()=>I,HoneySupplyDayData_OrderBy:()=>b,HoneySupplyHourData_OrderBy:()=>_,HoneyTxnData:()=>l,HoneyTxn_OrderBy:()=>m,HoneyVolumeDayData_OrderBy:()=>S,HoneyVolumeHourData_OrderBy:()=>M,OrderDirection:()=>g,TxnType:()=>D,_SubgraphErrorPolicy_:()=>h,default:()=>P});module.exports=A($);var r=require("@apollo/client"),s=(a=>(a.Day="day",a.Hour="hour",a))(s||{}),c=(u=>(u.HoneyTxn="honeyTxn",u.Id="id",u.IsBasketMode="isBasketMode",u.TxHash="txHash",u.Type="type",u))(c||{}),I=(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))(I||{}),b=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(b||{}),_=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(_||{}),m=(n=>(n.ChainTransaction="chainTransaction",n.ChainTransactionId="chainTransaction__id",n.ChainTransactionIsBasketMode="chainTransaction__isBasketMode",n.ChainTransactionTxHash="chainTransaction__txHash",n.ChainTransactionType="chainTransaction__type",n.Collateral="collateral",n.From="from",n.HoneyAmount="honeyAmount",n.Id="id",n.IsBasketMode="isBasketMode",n.Timestamp="timestamp",n.To="to",n.Type="type",n))(m||{}),S=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(S||{}),M=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(M||{}),g=(a=>(a.Asc="asc",a.Desc="desc",a))(g||{}),D=(a=>(a.Mint="MINT",a.Redeem="REDEEM",a))(D||{}),h=(a=>(a.Allow="allow",a.Deny="deny",a))(h||{}),l=r.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
|
+
`,k=r.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
|
+
${l}`,E=r.gql`
|
|
32
|
+
query GetHoneyTxn($page: Int!, $limit: Int!) {
|
|
33
|
+
honeyTxns(skip: $page, first: $limit, orderBy: timestamp, orderDirection: desc) {
|
|
34
|
+
...HoneyTxnData
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
${l}`,V=r.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
|
+
`,F=r.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
|
+
`,C=r.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
|
+
`,f=r.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
|
+
`,w=r.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
|
+
`,Q=r.gql`
|
|
99
|
+
query GetFirstHoneyTxnDate {
|
|
100
|
+
honeyTxns(first: 1) {
|
|
101
|
+
timestamp
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
`,G={possibleTypes:{}},P=G;0&&(module.exports={Aggregation_Interval,ChainTransaction_OrderBy,GetFirstHoneyTxnDate,GetGlobalData,GetHoneyTxn,GetHoneyTxnByType,GetSupplyDay,GetSupplyHour,GetVolumeDay,GetVolumeHour,HoneyCollateral_OrderBy,HoneySupplyDayData_OrderBy,HoneySupplyHourData_OrderBy,HoneyTxnData,HoneyTxn_OrderBy,HoneyVolumeDayData_OrderBy,HoneyVolumeHourData_OrderBy,OrderDirection,TxnType,_SubgraphErrorPolicy_});
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
"use strict";var d=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var Z=Object.prototype.hasOwnProperty;var tt=(c,s)=>{for(var t in s)d(c,t,{get:s[t],enumerable:!0})},at=(c,s,t,a)=>{if(s&&typeof s=="object"||typeof s=="function")for(let r of j(s))!Z.call(c,r)&&r!==t&&d(c,r,{get:()=>s[r],enumerable:!(a=X(s,r))||a.enumerable});return c};var et=c=>at(d({},"__esModule",{value:!0}),c);var bt={};tt(bt,{ApiRewardAllocationWeight:()=>K,ApiValidator:()=>g,ApiValidatorBlockUptime:()=>J,ApiValidatorMinimal:()=>m,ApiVault:()=>y,ApiVaultIncentive:()=>z,GetBoostDelay:()=>St,GetCommissionChangeDelay:()=>yt,GetPolStakeBeraVaultEventsByOwner:()=>mt,GetRewardVault:()=>it,GetSWberaVaultMetadata:()=>gt,GetSWberaVaultSnapshots:()=>dt,GetUserVaults:()=>ut,GetValidator:()=>ot,GetValidators:()=>nt,GetVaultDurations:()=>ct,GetVaultHistory:()=>pt,GetVaultValidators:()=>lt,GetVaults:()=>rt,GlobalData:()=>st,GqlChain:()=>G,GqlContentNewsItemSource:()=>A,GqlPoolAprItemType:()=>b,GqlPoolEventType:()=>I,GqlPoolEventsDataRange:()=>q,GqlPoolFilterCategory:()=>P,GqlPoolJoinExitType:()=>h,GqlPoolNestingType:()=>k,GqlPoolOrderBy:()=>B,GqlPoolOrderDirection:()=>D,GqlPoolSnapshotDataRange:()=>_,GqlPoolType:()=>v,GqlRewardVaultIncentiveOrderBy:()=>M,GqlRewardVaultIncentiveOrderDirection:()=>T,GqlRewardVaultOrderBy:()=>V,GqlRewardVaultOrderDirection:()=>w,GqlRewardVaultSnapshotDataRange:()=>x,GqlRewardVaultSnapshotResolution:()=>R,GqlSWberaVaultMetadataResolution:()=>C,GqlSorSwapType:()=>U,GqlStakeBeraVaultEventType:()=>E,GqlTokenChartDataRange:()=>f,GqlTokenType:()=>F,GqlUserVaultDepositOrderBy:()=>N,GqlUserVaultDepositOrderDirection:()=>Q,GqlValidatorBlockUptimeStatus:()=>W,GqlValidatorBoostOrderBy:()=>O,GqlValidatorBoostOrderDirection:()=>H,GqlValidatorOrderBy:()=>L,GqlValidatorOrderDirection:()=>$,GqlVaultSnapshotDataRange:()=>Y,default:()=>At});module.exports=et(bt);var e=require("@apollo/client"),G=(a=>(a.Bartio="BARTIO",a.Berachain="BERACHAIN",a.Cartio="CARTIO",a))(G||{}),A=(a=>(a.Discord="discord",a.Medium="medium",a.Twitter="twitter",a))(A||{}),b=(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))(b||{}),I=(a=>(a.Add="ADD",a.Remove="REMOVE",a.Swap="SWAP",a))(I||{}),q=(a=>(a.NinetyDays="NINETY_DAYS",a.SevenDays="SEVEN_DAYS",a.ThirtyDays="THIRTY_DAYS",a))(q||{}),P=(u=>(u.BlackListed="BLACK_LISTED",u.Incentivized="INCENTIVIZED",u.Lrt="LRT",u.Points="POINTS",u.PointsEigenlayer="POINTS_EIGENLAYER",u.PointsGyro="POINTS_GYRO",u.PointsKelp="POINTS_KELP",u.PointsRenzo="POINTS_RENZO",u.PointsSwell="POINTS_SWELL",u.Superfest="SUPERFEST",u))(P||{}),h=(t=>(t.Exit="Exit",t.Join="Join",t))(h||{}),k=(a=>(a.HasOnlyPhantomBpt="HAS_ONLY_PHANTOM_BPT",a.HasSomePhantomBpt="HAS_SOME_PHANTOM_BPT",a.NoNesting="NO_NESTING",a))(k||{}),B=(S=>(S.Apr="apr",S.BgtApr="bgtApr",S.Fees24h="fees24h",S.TotalLiquidity="totalLiquidity",S.TotalShares="totalShares",S.UserbalanceUsd="userbalanceUsd",S.Volume24h="volume24h",S))(B||{}),D=(t=>(t.Asc="asc",t.Desc="desc",t))(D||{}),_=(o=>(o.AllTime="ALL_TIME",o.NinetyDays="NINETY_DAYS",o.OneHundredEightyDays="ONE_HUNDRED_EIGHTY_DAYS",o.OneYear="ONE_YEAR",o.ThirtyDays="THIRTY_DAYS",o))(_||{}),v=(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))(v||{}),M=(a=>(a.AmountRemaining="amountRemaining",a.AmountRemainingUsd="amountRemainingUsd",a.IncentiveRate="incentiveRate",a))(M||{}),T=(t=>(t.Asc="asc",t.Desc="desc",t))(T||{}),V=(p=>(p.ActiveIncentivesRateUsd="activeIncentivesRateUsd",p.ActiveIncentivesValueUsd="activeIncentivesValueUsd",p.AllTimeBgtReceived="allTimeBGTReceived",p.Apr="apr",p.Apy="apy",p.BgtCapturePercentage="bgtCapturePercentage",p.Last24hBgtReceived="last24hBGTReceived",p.ProjectedApr="projectedApr",p))(V||{}),w=(t=>(t.Asc="asc",t.Desc="desc",t))(w||{}),x=(r=>(r.NinetyDays="NINETY_DAYS",r.SevenDays="SEVEN_DAYS",r.SixtyDays="SIXTY_DAYS",r.ThirtyDays="THIRTY_DAYS",r))(x||{}),R=(t=>(t.Day="DAY",t.Hour="HOUR",t))(R||{}),C=(t=>(t.OneDay="ONE_DAY",t.SevenDays="SEVEN_DAYS",t))(C||{}),U=(t=>(t.ExactIn="EXACT_IN",t.ExactOut="EXACT_OUT",t))(U||{}),E=(t=>(t.Deposit="DEPOSIT",t.WithdrawalCompleted="WITHDRAWAL_COMPLETED",t))(E||{}),f=(o=>(o.NinetyDay="NINETY_DAY",o.OneHundredEightyDay="ONE_HUNDRED_EIGHTY_DAY",o.OneYear="ONE_YEAR",o.SevenDay="SEVEN_DAY",o.ThirtyDay="THIRTY_DAY",o))(f||{}),F=(a=>(a.Bpt="BPT",a.PhantomBpt="PHANTOM_BPT",a.WhiteListed="WHITE_LISTED",a))(F||{}),N=(s=>(s.Amount="amount",s))(N||{}),Q=(t=>(t.Asc="asc",t.Desc="desc",t))(Q||{}),W=(r=>(r.Inactive="INACTIVE",r.Offline="OFFLINE",r.Proposed="PROPOSED",r.Signed="SIGNED",r))(W||{}),O=(o=>(o.ActiveBoostAmount="activeBoostAmount",o.LatestBlock="latestBlock",o.LatestBlockTime="latestBlockTime",o.QueuedBoostAmount="queuedBoostAmount",o.QueuedDropBoostAmount="queuedDropBoostAmount",o))(O||{}),H=(t=>(t.Asc="asc",t.Desc="desc",t))(H||{}),L=(n=>(n.ActiveBoostAmount="activeBoostAmount",n.AllTimeDistributedBgtAmount="allTimeDistributedBGTAmount",n.AllTimeEarnedBgtAmount="allTimeEarnedBGTAmount",n.Apy="apy",n.BgtCapturePercentage="bgtCapturePercentage",n.BoostApr="boostApr",n.CommissionOnIncentives="commissionOnIncentives",n.LastDayDistributedBgtAmount="lastDayDistributedBGTAmount",n.LastDayEarnedBgtAmount="lastDayEarnedBGTAmount",n.QueuedBoostAmount="queuedBoostAmount",n.QueuedDropBoostAmount="queuedDropBoostAmount",n.RewardRate="rewardRate",n.StakedBeraAmount="stakedBeraAmount",n.UsersActiveBoostCount="usersActiveBoostCount",n.UsersQueuedBoostCount="usersQueuedBoostCount",n))(L||{}),$=(t=>(t.Asc="asc",t.Desc="desc",t))($||{}),Y=(r=>(r.NinetyDays="NINETY_DAYS",r.SevenDays="SEVEN_DAYS",r.SixtyDays="SIXTY_DAYS",r.ThirtyDays="THIRTY_DAYS",r))(Y||{}),m=e.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
|
+
`,z=e.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
|
+
`,y=e.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
|
+
${z}`,K=e.gql`
|
|
78
|
+
fragment ApiRewardAllocationWeight on GqlValidatorRewardAllocationWeight {
|
|
79
|
+
percentageNumerator
|
|
80
|
+
validatorId
|
|
81
|
+
receivingVault {
|
|
82
|
+
...ApiVault
|
|
83
|
+
}
|
|
84
|
+
receiver
|
|
85
|
+
startBlock
|
|
86
|
+
}
|
|
87
|
+
${y}`,g=e.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
|
+
${m}
|
|
105
|
+
${K}`,J=e.gql`
|
|
106
|
+
fragment ApiValidatorBlockUptime on GqlValidatorBlockUptime {
|
|
107
|
+
isActive
|
|
108
|
+
isProposer
|
|
109
|
+
isSigner
|
|
110
|
+
status
|
|
111
|
+
blockNumber
|
|
112
|
+
}
|
|
113
|
+
`,rt=e.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
|
+
${y}`,ot=e.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
|
+
${g}
|
|
142
|
+
${J}`,nt=e.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
|
+
${g}`,lt=e.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
|
+
${g}`,it=e.gql`
|
|
182
|
+
query GetRewardVault($vaultId: String!, $chain: GqlChain!) {
|
|
183
|
+
rewardVault: polGetRewardVault(vaultAddress: $vaultId, chain: $chain) {
|
|
184
|
+
...ApiVault
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
${y}`,st=e.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
|
+
${m}`,ut=e.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
|
+
${y}`,pt=e.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
|
+
`,ct=e.gql`
|
|
250
|
+
query GetVaultDurations {
|
|
251
|
+
polGetVaultDurations {
|
|
252
|
+
maxRewardDuration
|
|
253
|
+
minRewardDuration
|
|
254
|
+
rewardDurationCooldownPeriod
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
`,St=e.gql`
|
|
258
|
+
query GetBoostDelay {
|
|
259
|
+
polGetValidatorBoostDelay {
|
|
260
|
+
boostDelay
|
|
261
|
+
unboostDelay
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
`,yt=e.gql`
|
|
265
|
+
query GetCommissionChangeDelay {
|
|
266
|
+
polGetValidatorCommissionDelay {
|
|
267
|
+
rewardAllocationBlockDelay
|
|
268
|
+
maxWeightPerVault
|
|
269
|
+
commissionChangeDelay
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
`,gt=e.gql`
|
|
273
|
+
query GetSWberaVaultMetadata($chain: GqlChain!, $resolution: GqlSWberaVaultMetadataResolution) {
|
|
274
|
+
polGetSWberaVaultMetadata(chain: $chain, resolution: $resolution) {
|
|
275
|
+
apr
|
|
276
|
+
chain
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
`,dt=e.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
|
+
`,mt=e.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
|
+
`,Gt={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"]}},At=Gt;0&&(module.exports={ApiRewardAllocationWeight,ApiValidator,ApiValidatorBlockUptime,ApiValidatorMinimal,ApiVault,ApiVaultIncentive,GetBoostDelay,GetCommissionChangeDelay,GetPolStakeBeraVaultEventsByOwner,GetRewardVault,GetSWberaVaultMetadata,GetSWberaVaultSnapshots,GetUserVaults,GetValidator,GetValidators,GetVaultDurations,GetVaultHistory,GetVaultValidators,GetVaults,GlobalData,GqlChain,GqlContentNewsItemSource,GqlPoolAprItemType,GqlPoolEventType,GqlPoolEventsDataRange,GqlPoolFilterCategory,GqlPoolJoinExitType,GqlPoolNestingType,GqlPoolOrderBy,GqlPoolOrderDirection,GqlPoolSnapshotDataRange,GqlPoolType,GqlRewardVaultIncentiveOrderBy,GqlRewardVaultIncentiveOrderDirection,GqlRewardVaultOrderBy,GqlRewardVaultOrderDirection,GqlRewardVaultSnapshotDataRange,GqlRewardVaultSnapshotResolution,GqlSWberaVaultMetadataResolution,GqlSorSwapType,GqlStakeBeraVaultEventType,GqlTokenChartDataRange,GqlTokenType,GqlUserVaultDepositOrderBy,GqlUserVaultDepositOrderDirection,GqlValidatorBlockUptimeStatus,GqlValidatorBoostOrderBy,GqlValidatorBoostOrderDirection,GqlValidatorOrderBy,GqlValidatorOrderDirection,GqlVaultSnapshotDataRange});
|