INST Governance

Governance.

Instadapp-governance-bravo-v1 connector triggers methods like delegate, voteCast, voteCastWithReason. You can view details like source code, ABIs on Etherscan.

  • Use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee to indicate ETH.
  • use -1 or dsa.maxValue for the maximum amount in function.
  • If not sure about the arguments getId and setId, pass 0.

Delegate

Delegating votes to delegatee.

spells.add({
  connector: "INST-A",
  method: "delegate",
  args: [delegatee]
});
Parameter Type Description
delegatee address The address to delegate the votes.

VoteCast

Casting vote for a proposal

spells.add({
  connector: "INST-A",
  method: "voteCast",
  args: [proposalId, support]
});
Parameter Type Description
proposalId uint256 The id of the proposal to vote on
support uint256 The support value for the vote. 0=against, 1=for, 2=abstain

VoteCastWithReason

Casting vote for a proposal

spells.add({
  connector: "INST-A",
  method: "voteCastWithReason",
  args: [proposalId, support, reason]
});
Parameter Type Description
proposalId uint256 The id of the proposal to vote on
support uint256 The support value for the vote. 0=against, 1=for, 2=abstain
reason string The reason given for the vote

If you still can't find something you're looking for or have any questions, ask them at our developers community on Discord or simply send an Email.

Our team is excited about assisting you to build an application using Instadapp Developer Platform. Your questions and feedback help us make a better development environment for future developers.