deBridge
  • Introduction
  • The deBridge Messaging Protocol
    • Protocol Overview
    • Fees and Supported Chains
    • 🟢Deployed Contracts
    • Development Guides
      • Building an EVM-based dApp
        • EVM smart contract interfaces
          • Interfaces
            • ICallProxy
            • IDeBridgeGate
            • IDeBridgeToken
            • IDeBridgeTokenDeployer
            • IOraclesManager
            • ISignatureVerifier
            • IWethGate
          • Libraries
            • Flags
          • Periphery
            • CallProxy
            • DeBridgeToken
            • DeBridgeTokenProxy
            • SimpleFeeProxy
          • Transfers
            • DeBridgeGate
            • DeBridgeTokenDeployer
            • OraclesManager
            • SignatureVerifier
            • WethGate
      • Sending cross-chain messages from Solana
        • On-Chain external call preparation for Solana
        • Off-chain external call preparation for Solana
      • Lifecycle of a cross-chain call
      • Gathering data for the claim
    • Development Tools
    • Security
    • Slashing and Delegated Staking
  • 🔁DLN: The deBridge Liquidity Network Protocol
    • Introduction
    • Protocol Overview
    • deBridge Hooks
    • Fees and Supported Chains
    • 🟢Deployed Contracts
    • Market and Limit Orders
    • Integration Guidelines
      • Interacting with the API
        • Authentication
        • Creating an Order
          • Quick Start
          • API Parameters
            • Estimation-Only
            • prependOperatingExpenses
          • API Response
            • JSON Example
          • Refreshing Estimates
          • Quoting Strategies
        • Monitoring Orders
          • Order States
        • Integrating deBridge hooks
          • Creating Hook data for Solana
        • Submitting an Order Creation Transaction
        • Cancelling the Order
      • deBridge Widget
      • Interacting with smart contracts
        • Placing orders
        • Filling orders
      • Under the Hood
        • Reserve Assets
        • Bridging Reserve Assets
        • Bridging Non-Reserve Assets
        • Order Fulfillment
          • Detecting the Order
          • Fulfilling the Order
            • Pre-Fill-Swap
          • Claiming the Order
      • Affiliate fees
        • Withdrawing Affiliate Fees
      • Fees and operating expenses
    • Interacting with the deBridge App
      • Custom Linking
    • Protocol specs
      • Deterministic order ID
      • Hook data
        • Anatomy of a Hook for the EVM-based chains
        • Anatomy of a Hook for Solana
  • 💸dePort
    • Getting started
    • Transfers Flow
  • ⚡deBridge Points
    • Referrers Overview
    • Integrators Overview
  • 🌐deBridge IaaS
    • Getting started
  • 🌐Legal
    • SDK & API License Agreement
  • External Links
    • deBridge Use Cases
      • 💡Examples
    • Talks, Videos, and Articles
    • Website
    • Github
    • Twitter
    • Social channels
      • Discord
      • Facebook
      • LinkedIn
      • Medium
      • Telegram
      • YouTube
Powered by GitBook
On this page
  • Variables
  • confirmationThreshold
  • submissionsInBlock
  • currentBlock
  • debridgeAddress
  • Functions
  • initialize
  • submit
  • setThreshold
  • setDebridgeAddress
  • isValidSignature
  • _countSignatures
  • version

Was this helpful?

  1. The deBridge Messaging Protocol
  2. Development Guides
  3. Building an EVM-based dApp
  4. EVM smart contract interfaces
  5. Transfers

SignatureVerifier

It's used to verify that a transfer is signed by oracles.

Variables

confirmationThreshold

  uint8 public confirmationThreshold;

Number of required confirmations per block after the extra check is enabled

submissionsInBlock

  uint40 public submissionsInBlock;

submissions count in current block

currentBlock

  uint40 public currentBlock;

Current block

debridgeAddress

  address public debridgeAddress;

Debridge gate address

Functions

initialize

  function initialize(
            uint8 _minConfirmations,
            uint8 _confirmationThreshold,
            uint8 _excessConfirmations
  ) public

Constructor that initializes the most important configurations.

Parameters:

Name
Type
Description

_minConfirmations

uint8

Common confirmations count.

_confirmationThreshold

uint8

Confirmations per block after the extra check is enabled.

_excessConfirmations

uint8

Confirmations count in case of excess activity.

submit

  function submit(
            bytes32 _submissionId,
            bytes _signatures,
            uint8 _excessConfirmations
  ) external

Check confirmation (validate signatures) for the transfer request.

Parameters:

Name
Type
Description

_submissionId

bytes32

Submission identifier.

_signatures

bytes

Array of signatures by oracles.

_excessConfirmations

uint8

override min confirmations count

setThreshold

  function setThreshold(
            uint8 _confirmationThreshold
  ) external

Sets minimal required confirmations.

Parameters:

Name
Type
Description

_confirmationThreshold

uint8

Confirmation info.

setDebridgeAddress

  function setDebridgeAddress(
            address _debridgeAddress
  ) external

Sets core debridge conrtact address.

Parameters:

Name
Type
Description

_debridgeAddress

address

Debridge address.

isValidSignature

  function isValidSignature(
            bytes32 _submissionId,
            bytes _signature
  ) external returns (bool)

Check is valid signature

Parameters:

Name
Type
Description

_submissionId

bytes32

Submission identifier.

_signature

bytes

signature by oracle.

_countSignatures

  function _countSignatures(
            bytes _signatures
  ) internal returns (uint256)

version

  function version(
  ) external returns (uint256)

Get this contract's version

PreviousOraclesManagerNextWethGate

Last updated 3 years ago

Was this helpful?