LogoLogo
▶️ App🔩 Sources🔒 Audit💬 Community
Octus Bridge (EN)
Octus Bridge (EN)
  • 🏠Welcome to Octus Bridge
  • 💻USE
    • 🚀Getting started
      • How it works
        • Cross-chain transfers
        • Governance
        • Relayers
        • Staking
      • Roles
      • How to connect wallets
      • Glossary
      • Everscale
      • How to get EVER
    • 🌉Bridge
      • Cross-chain transfer
        • Interface
        • How to
          • Transferring from another network to Everscale
          • Transferring between two outside networks
          • Find my transaction
          • How to return the transfer fee
      • Liquidity requests
      • History
        • Interface
          • Transfer rates
          • All transfers
      • Concepts
        • How Octus Bridge transfers work
        • Available chains and assets
        • Universal Bridge
        • Invisible Bridge
    • 💰Staking
      • My stake
        • Interface
          • My staking performance
          • My staking balance
          • User stake
          • Reward rounds
          • Transactions
        • How to
          • How to Stake
          • How to Claim
          • How to Redeem
      • Explorer
        • Interface
          • Explorer
          • Stakeholders
      • Concepts
        • About Octus Bridge Staking
        • How does Staking work?
    • 🗳️Governance
      • Overview
        • Interface
          • DAO overview
          • Recent proposals
          • TOP voters by voting power
      • Proposals
        • Interface
          • My votes
          • Proposals with my votes
          • Governance proposals
        • How to
          • How to Vote
      • Create proposals
        • Interface
        • How to
          • How to create a proposal
      • Concepts
        • Bridge DAO
        • BRIDGE token
        • BRIDGE economics
        • Proposals
        • Get BRIDGE Tokens
    • ⛓️Relayers
      • How to
        • How to become a relayer
      • Concepts
        • Octus Bridge relayers
    • 📜Litepaper
  • 🛠️Integrate
    • Octus Bridge Integration Guide
    • Octus Bridge Contracts
      • Everscale
        • Bridge section
          • event-configuration-contracts
          • event-contracts-base
          • event-contracts-dao
          • event-contracts-multivault
          • event-contracts-staking
          • event-contracts-token-transfer
          • Factory
          • Bridge
          • Connector
        • DAO Section
          • DAORoot
          • Proposal
        • Staking Section
          • Base
          • Elections
          • Encoder
          • RelayRound
          • Staking
          • StakingV1_1
          • StakingRootDeployer
          • UserData
        • Utils Section
          • Delegate
          • DummyRound
          • Receiver
      • Ethereum
        • Bridge Section
          • Bridge
          • StakingRelayVerifier
        • MultiVault Section
          • MultiVault
          • MultiVaultToken
        • Strategies Section
          • BaseStrategy
          • Convex3crv
          • ConvexAIEth
          • ConvexCrvLp
        • Vault Section
          • Vault
        • DAO
        • Registry
    • Bridge Relay Node
    • Token Contracts
    • Open API
      • Bridge API
        • Relayers
        • DAO
        • Staking
        • Transfers
      • DAO API
        • Proposals
        • Voters
        • Votes
  • see also
    • FlatQube
    • EVER Wallet
    • Broxus Github
Powered by GitBook
On this page

Was this helpful?

  1. Integrate
  2. Octus Bridge Contracts
  3. Everscale
  4. DAO Section

Proposal

queue

Happening after proposal execution

function queue() override public

Events emitted:

  • Queued

execute

Proposal execution.

function execute() override public

Events emitted:

  • Executed

cancel

Proposal cancel.

function cancel() override public

Events emitted:

  • Canceled

castVote

Processing voter's vote is it for or against proposal.

function castVote(
        uint32 /*proposalId*/,
        address voter,
        uint128 votes,
        bool support,
        string reason
    ) override public onlyStakingAccount(voter)

Parameters:

Name
Type
Description

uint32

The id of the proposal

voter

address

The address of the voter

votes

uint128

Number of votes given for proposal

support

bool

True if voting in favor, false if against

reason

string

Reason of the decided vote

Events emitted:

  • VoteCast

onActionsExecuted

Callback for executed actions.

function onActionsExecuted() override public onlyRoot

state

Gets the state of the proposal based on the specified conditions.

function state() private view returns (ProposalState)

Return values:

Type
Description

ProposalState

Current proposal state

unlockCastedVote

Unlocks casted vote only if proposal state is not active.

function unlockCastedVote(address accountOwner) override public view onlyStakingAccount(accountOwner)

Parameters:

Name
Type
Description

accountOwner

address

The address of the account owner

unlockVoteTokens

Unlocks vote tokens based on the proposal state.

function unlockVoteTokens(address accountOwner) override public view onlyStakingAccount(accountOwner)

Parameters:

Name
Type
Description

accountOwner

address

The address of the account owner

_buildAccountInitialData

Builds initial data for account.

function _buildAccountInitialData(address accountOwner) private inline pure returns (TvmCell)

Parameters:

Name
Type
Description

accountOwner

address

The address of the account owner

Return values:

Type
Description

TvmCell

Account initial data in cell format

_buildStakingInitData

Builds initial data for staking.

function _buildStakingInitData(uint8 platformType, TvmCell initialData) private inline view returns (TvmCell)

Parameters:

Name
Type
Description

platformType

uint8

The type of the platform

initialData

TvmCell

Initial data represented in cell format

Return values:

Type
Description

TvmCell

Staking initial data in cell format

requestUpgrade

Creates request for upgrading proposal for different version

function requestUpgrade(address sendGasTo) override public view

Parameters:

Name
Type
Description

sendGasTo

address

Address where to send spent gas

Events emitted:

  • CodeUpgradeRequested

upgrade

Upgrades code to the new version

function upgrade(TvmCell code, uint16 newVersion, address sendGasTo) override public onlyRoot

Parameters:

Name
Type
Description

code

TvmCell

Code to be set for upgraded version

newVersion

uint16

New version of the code

sendGasTo

address

Address where to send spent gas

Events emitted:

  • ProposalCodeUpgraded

PreviousDAORootNextStaking Section

Last updated 2 years ago

Was this helpful?

🛠️