DeBridgeTokenDeployer
Deploys a deToken(DeBridgeTokenProxy) for an asset.

Variables

tokenImplementation

1
address public tokenImplementation;
Copied!
Address of deBridgeToken implementation

deBridgeTokenAdmin

1
address public deBridgeTokenAdmin;
Copied!
An addres to set as admin for any deployed deBridgeToken

debridgeAddress

1
address public debridgeAddress;
Copied!
Debridge gate address

getDeployedAssetAddress

1
mapping(bytes32 => address) public getDeployedAssetAddress;
Copied!
Maps debridge id to deBridgeToken address

overridedTokens

1
mapping(bytes32 => struct DeBridgeTokenDeployer.OverridedTokenInfo) public overridedTokens;
Copied!
Maps debridge id to overridden token info (name, symbol). Used when autogenerated values for a token are not ideal.

Functions

initialize

1
function initialize(
2
address _tokenImplementation,
3
address _deBridgeTokenAdmin,
4
address _debridgeAddress
5
) public
Copied!
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

1
function deployAsset(
2
bytes32 _debridgeId,
3
string _name,
4
string _symbol,
5
uint8 _decimals
6
) external returns (address deBridgeTokenAddress)
Copied!
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

1
function implementation(
2
) public returns (address)
Copied!
Beacon getter for the deBridgeToken contracts

setTokenImplementation

1
function setTokenImplementation(
2
address _impl
3
) external
Copied!
Set deBridgeToken implementation contract address

Parameters:

Name
Type
Description
_impl
address
Wrapped asset implementation contract address.

setDeBridgeTokenAdmin

1
function setDeBridgeTokenAdmin(
2
address _deBridgeTokenAdmin
3
) external
Copied!
Set admin for any deployed deBridgeToken.

Parameters:

Name
Type
Description
_deBridgeTokenAdmin
address
Admin address.

setDebridgeAddress

1
function setDebridgeAddress(
2
address _debridgeAddress
3
) external
Copied!
Sets core debridge contract address.

Parameters:

Name
Type
Description
_debridgeAddress
address
Debridge address.

setOverridedTokenInfo

1
function setOverridedTokenInfo(
2
bytes32[] _debridgeIds,
3
struct DeBridgeTokenDeployer.OverridedTokenInfo[] _tokens
4
) external
Copied!
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

1
function version(
2
) external returns (uint256)
Copied!
Get this contract's version

Structs

OverridedTokenInfo

1
struct OverridedTokenInfo {
2
bool accept;
3
string name;
4
string symbol;
5
}
Copied!