Factory API

Last updated 4 months ago

initializeFactory

Smart Contract
Web3
initializeFactory(template: address):

Parameter

Description

template

Ethereum address of exchange template

createExchange

Smart Contract
Web3
createExchange(token: address): address

Parameter

Type

Description

token

address

Ethereum address of an ERC20 token

Returns

address

Ethereum address of a Uniswap exchange

getExchange

Smart Contract
Web3
@constant
getExchange(token: address): address

Parameter

Type

Description

token

address

Ethereum address of an ERC20 token

Returns

address

Ethereum address of a Uniswap exchange

getToken

Smart Contract
Web3
@constant
getToken(exchange: address): address

Parameter

Type

Description

exchange

address

Ethereum address of a Uniswap exchange

Returns

address

Ethereum address of an ERC20 token

getTokenWithId

Smart Contract
Web3
@constant
getTokenWithId(token_id: uint256): address

Parameter

Type

Description

token_id

uint256

Uniswap ID for an ERC20 token

Returns

address

Ethereum address of an ERC20 token