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:

deployAsset

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

Deploy a deToken for an asset

Parameters:

implementation

  function implementation(
  ) public returns (address)

Beacon getter for the deBridgeToken contracts

setTokenImplementation

  function setTokenImplementation(
            address _impl
  ) external

Set deBridgeToken implementation contract address

Parameters:

setDeBridgeTokenAdmin

  function setDeBridgeTokenAdmin(
            address _deBridgeTokenAdmin
  ) external

Set admin for any deployed deBridgeToken.

Parameters:

setDebridgeAddress

  function setDebridgeAddress(
            address _debridgeAddress
  ) external

Sets core debridge contract address.

Parameters:

setOverridedTokenInfo

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

Override specific tokens name/symbol

Parameters:

version

  function version(
  ) external returns (uint256)

Get this contract's version

Structs

OverridedTokenInfo

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

Last updated