Parameter | Description |
---|---|
template | Ethereum address of exchange template |
initializeFactory(template: address)
factoryContract.methods.initializeFactory(template).send()
Parameter | Type | Description |
---|---|---|
token | address | Ethereum address of an ERC20 token |
Returns | |
---|---|
address | Ethereum address of a Uniswap exchange |
createExchange(token: address): address
factoryContract.methods.createExchange(token).send()
Parameter | Type | Description |
---|---|---|
token | address | Ethereum address of an ERC20 token |
Returns | |
---|---|
address | Ethereum address of a Uniswap exchange |
@constantgetExchange(token: address): address
factoryContract.methods.getExchange(token).call()
Parameter | Type | Description |
---|---|---|
exchange | address | Ethereum address of a Uniswap exchange |
Returns | |
---|---|
address | Ethereum address of an ERC20 token |
@constantgetToken(exchange: address): address
factoryContract.methods.getToken(exchange).call()
Parameter | Type | Description |
---|---|---|
token_id | uint256 | Uniswap ID for an ERC20 token |
Returns | |
---|---|
address | Ethereum address of an ERC20 token |
@constantgetTokenWithId(token_id: uint256): address
factoryContract.methods.getTokenWithId(token_id).call()