Documentation

    GovernanceContract class for managing governance operations in DeepBook.

    Index

    Constructors

    Methods

    • Parameters

      • poolKey: string

        The key to identify the pool

      • balanceManagerKey: string

        The key to identify the BalanceManager

      • stakeAmount: number

        The amount to stake

      Returns (tx: Transaction) => void

      A function that takes a Transaction object

      Stake a specified amount in the pool

    • Parameters

      • params: ProposalParams

        Parameters for the proposal

      Returns (tx: Transaction) => void

      A function that takes a Transaction object

      Submit a governance proposal

    • Parameters

      • poolKey: string

        The key to identify the pool

      • balanceManagerKey: string

        The key to identify the BalanceManager

      Returns (tx: Transaction) => void

      A function that takes a Transaction object

      Unstake from the pool

    • Parameters

      • poolKey: string

        The key to identify the pool

      • balanceManagerKey: string

        The key to identify the BalanceManager

      • proposal_id: string

        The ID of the proposal to vote on

      Returns (tx: Transaction) => void

      A function that takes a Transaction object

      Vote on a proposal

    MMNEPVFCICPMFPCPTTAAATR