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
        • Tracking Order Status
          • 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
  • tokenImplementation
  • deBridgeTokenAdmin
  • debridgeAddress
  • getDeployedAssetAddress
  • overridedTokens
  • Functions
  • initialize
  • deployAsset
  • implementation
  • setTokenImplementation
  • setDeBridgeTokenAdmin
  • setDebridgeAddress
  • setOverridedTokenInfo
  • version
  • Structs
  • OverridedTokenInfo

Was this helpful?

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

DeBridgeTokenDeployer

Deploys a deToken(DeBridgeTokenProxy) for an asset.

Variables

tokenImplementation

  address public tokenImplementation;

Address of deBridgeToken implementation

deBridgeTokenAdmin

  address public deBridgeTokenAdmin;

An addres to set as admin for any deployed deBridgeToken

debridgeAddress

  address public debridgeAddress;

Debridge gate address

getDeployedAssetAddress

  mapping(bytes32 => address) public getDeployedAssetAddress;

Maps debridge id to deBridgeToken address

overridedTokens

  mapping(bytes32 => struct DeBridgeTokenDeployer.OverridedTokenInfo) public overridedTokens;

Maps debridge id to overridden token info (name, symbol). Used when autogenerated values for a token are not ideal.

Functions

initialize

  function initialize(
            address _tokenImplementation,
            address _deBridgeTokenAdmin,
            address _debridgeAddress
  ) public

Constructor that initializes the most important configurations.

Parameters:

Name
Type
Description

_tokenImplementation

address

Address of deBridgeToken implementation

_deBridgeTokenAdmin

address

Address to set as admin for any deployed deBridgeToken

_debridgeAddress

address

DeBridge gate address

deployAsset

  function deployAsset(
            bytes32 _debridgeId,
            string _name,
            string _symbol,
            uint8 _decimals
  ) external returns (address deBridgeTokenAddress)

Deploy a deToken for an asset

Parameters:

Name
Type
Description

_debridgeId

bytes32

Asset identifier

_name

string

Asset name

_symbol

string

Asset symbol

_decimals

uint8

Asset decimals

implementation

  function implementation(
  ) public returns (address)

Beacon getter for the deBridgeToken contracts

setTokenImplementation

  function setTokenImplementation(
            address _impl
  ) external

Set deBridgeToken implementation contract address

Parameters:

Name
Type
Description

_impl

address

Wrapped asset implementation contract address.

setDeBridgeTokenAdmin

  function setDeBridgeTokenAdmin(
            address _deBridgeTokenAdmin
  ) external

Set admin for any deployed deBridgeToken.

Parameters:

Name
Type
Description

_deBridgeTokenAdmin

address

Admin address.

setDebridgeAddress

  function setDebridgeAddress(
            address _debridgeAddress
  ) external

Sets core debridge contract address.

Parameters:

Name
Type
Description

_debridgeAddress

address

Debridge address.

setOverridedTokenInfo

  function setOverridedTokenInfo(
            bytes32[] _debridgeIds,
            struct DeBridgeTokenDeployer.OverridedTokenInfo[] _tokens
  ) external

Override specific tokens name/symbol

Parameters:

Name
Type
Description

_debridgeIds

bytes32[]

Array of debridgeIds for tokens

_tokens

struct DeBridgeTokenDeployer.OverridedTokenInfo[]

Array of new name/symbols for tokens

version

  function version(
  ) external returns (uint256)

Get this contract's version

Structs

OverridedTokenInfo

struct OverridedTokenInfo {
    bool accept;
    string name;
    string symbol;
}
PreviousDeBridgeGateNextOraclesManager

Last updated 3 years ago

Was this helpful?