@berachain/graphql 0.1.0-alpha.3 → 0.1.0-alpha.5
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/README.md +17 -5
- package/dist/bend/whisk.codegen.cjs +424 -0
- package/dist/bend/whisk.codegen.d.cts +1798 -0
- package/dist/bend/whisk.codegen.d.ts +93 -1
- package/dist/bend/whisk.codegen.js +8 -8
- package/dist/chain/chain.codegen.cjs +12 -0
- package/dist/chain/chain.codegen.d.cts +376 -0
- package/dist/dex/api.codegen.cjs +199 -0
- package/dist/dex/api.codegen.d.cts +3836 -0
- package/dist/dex/subgraph.codegen.cjs +88 -0
- package/dist/dex/subgraph.codegen.d.cts +5887 -0
- package/dist/governance/governance.codegen.cjs +116 -0
- package/dist/governance/governance.codegen.d.cts +1622 -0
- package/dist/honey/honey.codegen.cjs +104 -0
- package/dist/honey/honey.codegen.d.cts +936 -0
- package/dist/pol/api.codegen.cjs +301 -0
- package/dist/pol/api.codegen.d.cts +3622 -0
- package/dist/pol/subgraph.codegen.cjs +197 -0
- package/dist/pol/subgraph.codegen.d.cts +4671 -0
- package/package.json +27 -23
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _client = require('@apollo/client');var c=(u=>(u.Day="day",u.Hour="hour",u))(c||{}),y= exports.ExecutableCall_OrderBy =(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= exports.OrderDirection =(u=>(u.Asc="asc",u.Desc="desc",u))(I||{}),_= exports.PollResult_OrderBy =(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= exports.ProposalStatus =(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= exports.Proposal_OrderBy =(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= exports.Timelock_OrderBy =(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= exports.VoteSupportType =(i=>(i.Abstain="ABSTAIN",i.Against="AGAINST",i.For="FOR",i))(M||{}),d= exports.Vote_OrderBy =(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= exports._SubgraphErrorPolicy_ =(u=>(u.Allow="allow",u.Deny="deny",u))(A||{}),o= exports.ProposalSelection =_client.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
|
+
`,h= exports.ExecutableCallSubset =_client.gql`
|
|
41
|
+
fragment ExecutableCallSubset on ExecutableCall {
|
|
42
|
+
id
|
|
43
|
+
target
|
|
44
|
+
value
|
|
45
|
+
calldata
|
|
46
|
+
}
|
|
47
|
+
`,l= exports.ProposalVote =_client.gql`
|
|
48
|
+
fragment ProposalVote on Vote {
|
|
49
|
+
id
|
|
50
|
+
voter
|
|
51
|
+
weight
|
|
52
|
+
support
|
|
53
|
+
timestamp
|
|
54
|
+
reason
|
|
55
|
+
}
|
|
56
|
+
`,B= exports.ProposalWithVotes =_client.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
|
+
${o}
|
|
74
|
+
${h}
|
|
75
|
+
${l}`,k= exports.GetProposalVotes =_client.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
|
+
${l}`,m= exports.GetProposals =_client.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
|
+
${o}`,T= exports.SearchProposals =_client.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
|
+
${o}`,w= exports.GetProposal =_client.gql`
|
|
111
|
+
query GetProposal($id: ID!) {
|
|
112
|
+
proposal(id: $id) {
|
|
113
|
+
...ProposalWithVotes
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
${B}`,x={possibleTypes:{}},E= exports.default =x;exports.Aggregation_Interval = c; exports.ExecutableCallSubset = h; exports.ExecutableCall_OrderBy = y; exports.GetProposal = w; exports.GetProposalVotes = k; exports.GetProposals = m; exports.OrderDirection = I; exports.PollResult_OrderBy = _; exports.ProposalSelection = o; exports.ProposalStatus = S; exports.ProposalVote = l; exports.ProposalWithVotes = B; exports.Proposal_OrderBy = b; exports.SearchProposals = T; exports.Timelock_OrderBy = g; exports.VoteSupportType = M; exports.Vote_OrderBy = d; exports._SubgraphErrorPolicy_ = A; exports.default = E;
|