TokenFactory
State Variables
_implementation
implementation of the swiftGate wrapped tokens
address internal immutable _implementation;
_swiftGate
address of the swift gate contract
address internal immutable _swiftGate;
Functions
onlySwiftGate
can only be called by swift gate
modifier onlySwiftGate();
constructor
the swift gate creates the token factory in its constructor.
constructor();
create
create a new wrapped token. Called by the swift gate
function create(string memory name_, string memory symbol_, address remoteToken_)
external
onlySwiftGate
returns (address proxy_);
Parameters
Name | Type | Description |
---|---|---|
name_ | string | name of the wrapped token |
symbol_ | string | symbol of the wrapped token |
remoteToken_ | address | address of the remote token contract |
getImplementation
returns the address of the implementation of the wrapped tokens
function getImplementation() external view returns (address);
Errors
OnlySwiftGateError
triggered when an address other than the swift gate calls this contract
error OnlySwiftGateError(address msgSender_);