SynapseERC20DeterministicFactory

Methods

deploy

function deploy(address synapseERC20Address, string name, string symbol, uint8 decimals, address owner) external nonpayable returns (address synERC20Clone)

Deploys a new SynapseERC20 token

Parameters

Returns

deployDeterministic

function deployDeterministic(address synapseERC20Address, bytes32 salt, string name, string symbol, uint8 decimals, address owner) external nonpayable returns (address synERC20Clone)

Deploys a new SynapseERC20 token

Use the same salt for the same token on different chains to get the same deployment address. Requires having SynapseERC20Factory deployed at the same address on different chains as well. NOTE: this function has onlyOwner modifier to prevent bad actors from taking a token's address on another chain

Parameters

Returns

owner

function owner() external view returns (address)

Returns the address of the current owner.

Returns

predictDeterministicAddress

function predictDeterministicAddress(address synapseERC20Address, bytes32 salt) external view returns (address)

Parameters

Returns

renounceOwnership

function renounceOwnership() external nonpayable

Leaves the contract without owner. It will not be possible to call onlyOwner functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.

transferOwnership

function transferOwnership(address newOwner) external nonpayable

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

Parameters

Events

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

SynapseERC20Created

event SynapseERC20Created(address contractAddress)

Parameters

Last updated