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
  • EthereumEventConfiguration
  • EverscaleEventConfiguration

Was this helpful?

  1. Integrate
  2. Octus Bridge Contracts
  3. Everscale
  4. Bridge section

event-configuration-contracts

EthereumEventConfiguration

buildEventInitData

Build initial data for the event contract by extending the event vote data with configuration params.

function buildEventInitData(
        IEthereumEvent.EthereumEventVoteData eventVoteData
    ) internal view returns(
        IEthereumEvent.EthereumEventInitData eventInitData)

Parameters:


Name
Type
Description

eventVoteData

EthereumEventVoteData

Event vote data structure, passed by relayer

signatures

bytes[] memory

Payload signatures

deployEvent

Deploys the event contract (creates a new instance of EthereumBaseEvent contract).

function deployEvent(
        IEthereumEvent.EthereumEventVoteData eventVoteData
    ) external override reserveMinBalance(MIN_CONTRACT_BALANCE)

Parameters

Name
Type
Description

eventVoteData

EthereumEventVoteData

Event vote data structure

Events emitted:

  • NewEventContract

deriveEventAddress

Derive the Ethereum event contract address from its init data.

function deriveEventAddress(
        IEthereumEvent.EthereumEventVoteData eventVoteData
    ) override public view responsible
    returns(address eventContract)

Parameters:

Type
Description

address

Address to return the remaining gas

EverscaleEventConfiguration

buildEventInitData

Extends event vote data with configuration params.

function buildEventInitData(
        IEverscaleEvent.EverscaleEventVoteData eventVoteData
    ) internal view returns(
        IEverscaleEvent.EverscaleEventInitData eventInitData)

Parameters:

Name
Type
Description

eventVoteData

EverscaleEventVoteData

Event vote data structure, passed by relayer

Return values:

Name
Type
Description

eventInitData

EverscaleEventVoteData

Initial data for event contract

deployEvent

Deploy event contract (creates new instance of EverscaleBaseEvent contract).

function deployEvent(
        IEverscaleEvent.EverscaleEventVoteData eventVoteData
    ) override external reserveMinBalance(MIN_CONTRACT_BALANCE)

Parameters:

Name
Type
Description

eventVoteData

EverscaleEventVoteData

Event vote data structure

Events emitted:

  • NewEventContract

deriveEventAddress

Derives the Everscale event contract address from it's initial data.

function deriveEventAddress(
        IEverscaleEvent.EverscaleEventVoteData eventVoteData
    ) override public view responsible
    returns (address eventContract)

Parameters:

Name
Type
Description

eventVoteData

EverscaleEventVoteData

Event vote data structure

Return values:

Name
Type
Description

eventContract

address

Address of the corresponding everscale event contract

onEventConfirmedExtended

Receives "confirm" callback from the event contract and checks event contract correctness. If it's correct, then sends the callback to the proxy with the same signature.

function onEventConfirmedExtended(
        IEthereumEvent.EthereumEventInitData eventInitData,
        TvmCell _meta,
        address gasBackAddress
    ) external override reserveMinBalance(MIN_CONTRACT_BALANCE)

Parameters:

Type
Description

address

Address to return the remaining gas

PreviousBridge sectionNextevent-contracts-base

Last updated 2 years ago

Was this helpful?

🛠️