GraphQL API
Proposals
Fetch the list of proposals
Parameters:
status : string
active : string
type : string
orderBy : string
orderDirection : asc or desc
memberAddress : address
Query:
id
(Int) Read
status
active
(Boolean) True if status is Voting Period OR Grace Period OR Approved - ready to process OR Rejected - ready to process.False if status is Approved OR Rejected
type
(String) Read
title
(String) Read
link
(String) Read
timeRemaining
(Date) If status is "Voting period" votingPeriodEndingAt - now(), If status is "Grace period" gracePeriodEndingAt - now()
submittedAt
(Date) Read
submittedBy
(Address) Read
votingPeriodEndingAt
(Date) Read
gracePeriodEndingAt
(Date) Read
approvedToProcessAt
(Date) Read
rejectedToProcessAt
(Date) Read
approvedAt
(Date) Read
rejectedAt
(Date) Read
majority
(Int) Read
quorum
(Int) Read
memberCanVote
memberDidVote
(Boolean) the member has voted/has not voted
sumYesVotes
(Int) Sum of yes votes
sumNoVotes
(Int) Sum of no votes
yesVoters
(List of Addresses) Read
noVoters
(List of Addresses) Read
currentMajority
currentQuorum
applicantAdress
(Address) Read (only for Onboard proposal)
shares
(Int) Read (only for Onboard proposal)
loots
(Int) Read (only for Onboard proposal)
tributeOffered
(Int) Read (only for Onboard proposal or OTC Swap proposal)
tributeAddress
(Address) Read (only for Onboard proposal or OTC Swap proposal)
tokenAddress
(Address) Read (only for Whitelist proposal or Unwhitelist proposal)
tokenName
(String) Read (only for Whitelist proposal or Unwhitelist proposal)
memberAddress
(Address) Read (only for Guildkick proposal)
paymentRequested
(Int) Read (only for OTC Swap proposal)
paymentAddress
(Address) Read (only for OTC Swap proposal)
Proposal
Fetch a single proposal
Parameters:
id : int
Query:
proposalId
(Int) Read
memberId
(Int) Read
status
active
(Boolean) True if status is Voting Period OR Grace Period OR Approved - ready to process OR Rejected - ready to process.False if status is Approved OR Rejected
type
(String) Read
title
(String) Read
link
(String) Read
timeRemaining
(Date) If status is "Voting period" votingPeriodEndingAt - now(), If status is "Grace period" gracePeriodEndingAt - now()
submittedAt
(Date) Read
submittedBy
(Address) Read
votingPeriodEndingAt
(Date) Read
gracePeriodEndingAt
(Date) Read
approvedToProcessAt
(Date) Read
rejectedToProcessAt
(Date) Read
approvedAt
(Date) Read
rejectedAt
(Date) Read
majority
(Int) Read
quorum
(Int) Read
sumYesVotes
(Int) Sum of yes votes
sumNoVotes
(Int) Sum of no votes
yesVoters
(List of Addresses) Read
noVoters
(List of Addresses) Read
currentMajority
currentQuorum
applicantAdress
(Address) Read (only for Onboard proposal)
shares
(Int) Read (only for Onboard proposal)
loots
(Int) Read (only for Onboard proposal)
tributeOffered
(Int) Read (only for Onboard proposal or OTC Swap proposal)
tributeAddress
(Address) Read (only for Onboard proposal or OTC Swap proposal)
tokenAddress
(Address) Read (only for Whitelist proposal or Unwhitelist proposal)
tokenName
(String) Read (only for Whitelist proposal or Unwhitelist proposal)
memberAddress
(Address) Read (only for Guildkick proposal)
paymentRequested
(Int) Read (only for OTC Swap proposal)
paymentAddress
(Address) Read (only for OTC Swap proposal)
Members
Fetch the list of members
Parameters:
none
Query:
address
(Address) Read
roles
(List of strings) Read
Shares
Fetch the total number of shares & loots
Parameters:
none
Query:
totalShares
(Int) Sum of member's Shares
totalLoots
(Int) Sum of member's Loots
Balances
Fetch the token balances in the Treasury
Parameters:
none
Query:
name
(String) Read
amount
(Int) Read
price
(Float) Fetched by external API
value
(Float) amount * price
Whitelisted Tokens
Fetch the whitelisted tokens in the Treasury
Parameters:
none
Query:
name
(String) Read
address
(Address) Whitelisted addresses - unWhitelisted Addresses
Member balances
Fetch the token balances of a single member
Parameters:
address : address
Query:
name
(String) Read
amount
(Int) Read
price
(Float) fetched by external API
value
(Float) amount * price
Member infos
Fetch information on a single member
Parameters:
address : address
Query:
address
(Address) Read
roles
(List of strings) Read
delegateAddress
(Address) Read
shares
(Int) Read
loots
(Int) Read
percentageOfTreasury
(Float) (shares + loots) / (totalShares + totalLoots)
votingWeight
(Float) shares / totalShares
onboardedAt
(Date) Read
exitedAt
(Date) Read
jailedAt
(Date) Read
Last updated