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. Ethereum

Registry

newVaultRelease

Checks the id of vault release and the api versions, after which adds the vault to all the vault releases.

function newVaultRelease(address vault) external onlyOwner

Parameters:

Name
Type
Description

vault

address

Address of a new vault released

Events emitted:

  • NewVaultRelease

_newProxyVault

Checks the vault release target, deploys vault release proxy (owned by proxy admin) and initializes vault.

function _newProxyVault(address token, address governance, uint256 targetDecimals, uint256 vault_release_target) internal returns (address)

Parameters:

Name
Type
Description

token

address

Token address of a new vault

governance

address

Governance address

targetDecimals

uint256

Target decimals for a new vault

vault_release_target

uint256

Target address for deploying vault’s proxy

Return value:

Type
Description

address

Vault’s proxy address

_registerVault

Checks the vault id and the api version, after which adds new vault and its token to all the vaults and registers the token if not already registered.

function _registerVault(address token, address vault) internal

Parameters:

Name
Type
Description

token

address

Token address of the vault

vault

address

Vault’s address

Events emitted:

  • NewVault

newVault

Creates new proxy vault with all the necessary data and registers that new vault and its token.

function newVault(address token, uint256 targetDecimals, uint256 vaultReleaseDelta) external onlyOwner returns (address)

Parameters:

Name
Type
Description

token

address

Token address of the new vault

targetDecimals

uint256

Target decimals value

vaultReleaseDelta

uint256

Value used for calculating vault release target

Return value:

Type
Description

address

New vault’s address

newExperimentalVault

Creates new proxy vault with all the necessary data.

function newExperimentalVault(address token, address governance, uint256 targetDecimals, uint256 vaultReleaseDelta) external returns (address)

Parameters:

Name
Type
Description

token

address

Token’s address of the vault

governance

address

Vault’s governance address

targetDecimals

uint256

Target decimals value

vaultReleaseDelta

uint256

Value used for calculating vault release target

Return value:

Type
Description

address

New proxy vault’s address

Events emitted:

  • NewExperimentalVault

endorseVault

Checks the vault governance and vault api version, after which it registers the vault.

function endorseVault(address vault, uint256 vaultReleaseDelta) external onlyOwner

Parameters:

Name
Type
Description

vault

address

Vault’s address

vaultReleaseDelta

address

Value used for calculating vault release target

tagVault

Adds tag to specified vault.

function tagVault(address vault, string memory tag) external

Parameters:

Name
Type
Description

vault

address

Vault’s address

tag

"string" memory

Vault’s tag

Events emitted:

  • VaultTagged

PreviousDAONextToken Contracts

Last updated 2 years ago

Was this helpful?

🛠️