Skip to content

New Proposals API

Fabian Chawin Cedrati edited this page Jul 26, 2022 · 16 revisions

setter

proposeQuorum(uint val, uint groupid)

write

Propose a new quorum:

  • 0 < val <= 10
  • groupid: the group id of the proposal

proposeTokenNew(string name, uint duration, uint supply)

write

Propose a new Token or exiting Token

  • string name
  • uint duration
  • uint supply

proposeTokenChange(uint tokenId, string name, uint duration, uint supply)

write

Propose a new Token or exiting Token

  • uint token id
  • string name
  • uint duration
  • uint supply

proposeMember(string inviteLink, uint groupid)

write

Propose a new Member

  • inviteLink string of the invitation link
  • groupid group the member proposes

getter

getProposalsQuorum(uint groupid)

read, returns:

  • uint proposalId
  • address proposer
  • uint votes
  • bool voted
  • uint expiration
  • uint quorum

getProposalsToken(uint groupid)

read, returns:

  • uint proposalId
  • address proposer
  • uint votes
  • bool voted
  • uint expiration
  • uint tokenId
  • string name
  • uint duration
  • uint supply
  • book new

getProposalsMember(uint groupid)

read, returns:

  • uint proposalId
  • address proposer
  • uint votes
  • bool voted
  • uint expiration
  • address memberAddress

Vote

voteProposal(uint proposalId, uint vote)

write

votes a Proposal

  • uint id of Proposal
  • vote > 0, positive

Clone this wiki locally