@berachain/graphql 0.4.13 → 0.4.15
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/dist/pol/subgraph.codegen.cjs +15 -7
- package/dist/pol/subgraph.codegen.d.cts +14 -1
- package/dist/pol/subgraph.codegen.d.ts +14 -1
- package/dist/pol/subgraph.codegen.mjs +10 -2
- package/package.json +3 -12
- package/dist/pol/fees.codegen.cjs +0 -9
- package/dist/pol/fees.codegen.d.cts +0 -489
- package/dist/pol/fees.codegen.d.ts +0 -489
- package/dist/pol/fees.codegen.mjs +0 -9
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import{gql as p}from"@apollo/client";var c=(i=>(i.Day="day",i.Hour="hour",i))(c||{}),I=(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))(I||{}),_=(i=>(i.Asc="asc",i.Desc="desc",i))(_||{}),S=(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||{}),g=(s=>(s.Active="ACTIVE",s.CanceledByGuardian="CANCELED_BY_GUARDIAN",s.CanceledByUser="CANCELED_BY_USER",s.Defeated="DEFEATED",s.Executed="EXECUTED",s.InQueue="IN_QUEUE",s.Pending="PENDING",s.PendingExecution="PENDING_EXECUTION",s.PendingQueue="PENDING_QUEUE",s.QuorumNotReached="QUORUM_NOT_REACHED",s))(g||{}),y=(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))(y||{}),b=(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))(b||{}),M=(u=>(u.Abstain="ABSTAIN",u.Against="AGAINST",u.For="FOR",u))(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=(i=>(i.Allow="allow",i.Deny="deny",i))(A||{}),o=p`
|
|
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
|
+
`,B=p`
|
|
41
|
+
fragment ExecutableCallSubset on ExecutableCall {
|
|
42
|
+
id
|
|
43
|
+
target
|
|
44
|
+
value
|
|
45
|
+
calldata
|
|
46
|
+
}
|
|
47
|
+
`,l=p`
|
|
48
|
+
fragment ProposalVote on Vote {
|
|
49
|
+
id
|
|
50
|
+
voter
|
|
51
|
+
weight
|
|
52
|
+
support
|
|
53
|
+
timestamp
|
|
54
|
+
reason
|
|
55
|
+
}
|
|
56
|
+
`,h=p`
|
|
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
|
+
${o}
|
|
74
|
+
${B}
|
|
75
|
+
${l}`,m=p`
|
|
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
|
+
${l}`,k=p`
|
|
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
|
+
${o}`,T=p`
|
|
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
|
+
${o}`,w=p`
|
|
111
|
+
query GetProposal($id: ID!) {
|
|
112
|
+
proposal(id: $id) {
|
|
113
|
+
...ProposalWithVotes
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
${h}`,x={possibleTypes:{}},f=x;export{c as Aggregation_Interval,B as ExecutableCallSubset,I as ExecutableCall_OrderBy,w as GetProposal,m as GetProposalVotes,k as GetProposals,_ as OrderDirection,S as PollResult_OrderBy,o as ProposalSelection,g as ProposalStatus,l as ProposalVote,h as ProposalWithVotes,y as Proposal_OrderBy,T as SearchProposals,b as Timelock_OrderBy,M as VoteSupportType,d as Vote_OrderBy,A as _SubgraphErrorPolicy_,f as default};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";var l=Object.defineProperty;var D=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var H=Object.prototype.hasOwnProperty;var k=(i,e)=>{for(var t in e)l(i,t,{get:e[t],enumerable:!0})},f=(i,e,t,u)=>{if(e&&typeof e=="object"||typeof e=="function")for(let y of d(e))!H.call(i,y)&&y!==t&&l(i,y,{get:()=>e[y],enumerable:!(u=D(e,y))||u.enumerable});return i};var F=i=>f(l({},"__esModule",{value:!0}),i);var $={};k($,{Aggregation_Current:()=>c,Aggregation_Interval:()=>I,ChainTransaction_OrderBy:()=>b,GetHoneyTxn:()=>C,GetSnapshots:()=>w,HoneyCollateral_OrderBy:()=>_,HoneySnapshotData:()=>A,HoneySnapshot_OrderBy:()=>S,HoneySupplyDayData_OrderBy:()=>M,HoneyTxnData:()=>B,HoneyTxnTimeseries_OrderBy:()=>m,HoneyTxn_OrderBy:()=>g,OrderDirection:()=>h,TxnType:()=>T,_SubgraphErrorPolicy_:()=>x,default:()=>V});module.exports=F($);var o=require("@apollo/client"),c=(t=>(t.Exclude="exclude",t.Include="include",t))(c||{}),I=(t=>(t.Day="day",t.Hour="hour",t))(I||{}),b=(s=>(s.HoneyTxn="honeyTxn",s.Id="id",s.IsBasketMode="isBasketMode",s.TxHash="txHash",s.Type="type",s))(b||{}),_=(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))(_||{}),S=(r=>(r.AllTimeVolume="allTimeVolume",r.Id="id",r.MintVolume="mintVolume",r.RedeemVolume="redeemVolume",r.Timestamp="timestamp",r.TotalSupply="totalSupply",r.TotalVolume="totalVolume",r))(S||{}),M=(u=>(u.Amount="amount",u.Id="id",u.Timestamp="timestamp",u))(M||{}),m=(p=>(p.BlockNumber="blockNumber",p.From="from",p.HoneyAmount="honeyAmount",p.Id="id",p.Timestamp="timestamp",p.To="to",p.TotalSupply="totalSupply",p.TxHash="txHash",p.TxnType="txnType",p))(m||{}),g=(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))(g||{}),h=(t=>(t.Asc="asc",t.Desc="desc",t))(h||{}),T=(t=>(t.Mint="MINT",t.Redeem="REDEEM",t))(T||{}),x=(t=>(t.Allow="allow",t.Deny="deny",t))(x||{}),B=o.gql`
|
|
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
|
+
`,A=o.gql`
|
|
17
|
+
fragment HoneySnapshotData on HoneySnapshot {
|
|
18
|
+
mintVolume
|
|
19
|
+
redeemVolume
|
|
20
|
+
timestamp
|
|
21
|
+
totalSupply
|
|
22
|
+
totalVolume
|
|
23
|
+
}
|
|
24
|
+
`,C=o.gql`
|
|
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
|
+
${B}`,w=o.gql`
|
|
37
|
+
query GetSnapshots($interval: Aggregation_interval!, $first: Int = 24) {
|
|
38
|
+
honeySnapshots(interval: $interval, first: $first) {
|
|
39
|
+
...HoneySnapshotData
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
${A}`,E={possibleTypes:{}},V=E;0&&(module.exports={Aggregation_Current,Aggregation_Interval,ChainTransaction_OrderBy,GetHoneyTxn,GetSnapshots,HoneyCollateral_OrderBy,HoneySnapshotData,HoneySnapshot_OrderBy,HoneySupplyDayData_OrderBy,HoneyTxnData,HoneyTxnTimeseries_OrderBy,HoneyTxn_OrderBy,OrderDirection,TxnType,_SubgraphErrorPolicy_});
|