DeBridgeTokenDeployer
Deploys a deToken(DeBridgeTokenProxy) for an asset.
Variables
tokenImplementation
Address of deBridgeToken implementation
deBridgeTokenAdmin
An addres to set as admin for any deployed deBridgeToken
debridgeAddress
Debridge gate address
getDeployedAssetAddress
Maps debridge id to deBridgeToken address
overridedTokens
Maps debridge id to overridden token info (name, symbol). Used when autogenerated values for a token are not ideal.
Functions
initialize
Constructor that initializes the most important configurations.
Parameters:
_tokenImplementation
address
Address of deBridgeToken implementation
_deBridgeTokenAdmin
address
Address to set as admin for any deployed deBridgeToken
_debridgeAddress
address
DeBridge gate address
deployAsset
Deploy a deToken for an asset
Parameters:
_debridgeId
bytes32
Asset identifier
_name
string
Asset name
_symbol
string
Asset symbol
_decimals
uint8
Asset decimals
implementation
Beacon getter for the deBridgeToken contracts
setTokenImplementation
Set deBridgeToken implementation contract address
Parameters:
_impl
address
Wrapped asset implementation contract address.
setDeBridgeTokenAdmin
Set admin for any deployed deBridgeToken.
Parameters:
_deBridgeTokenAdmin
address
Admin address.
setDebridgeAddress
Sets core debridge contract address.
Parameters:
_debridgeAddress
address
Debridge address.
setOverridedTokenInfo
Override specific tokens name/symbol
Parameters:
_debridgeIds
bytes32[]
Array of debridgeIds for tokens
_tokens
struct DeBridgeTokenDeployer.OverridedTokenInfo[]
Array of new name/symbols for tokens
version
Get this contract's version
Structs
OverridedTokenInfo
Last updated