Class

ERC20Mock

ERC20Mock(options)

Constructor

# new ERC20Mock(options)

Parameters:
Name Type Description
options ERC20Mock~Options

View Source models/mocks/ERC20Mock.js, line 13

Members

# __assert

Use a erc20mock contract with the current address

View Source models/mocks/ERC20Mock.js, line 26

Methods

# deploy(options) → {Promise.<Transaction>}

Deploy ERC20Mock

Parameters:
Name Type Description
options IContract~TxOptions

View Source models/mocks/ERC20Mock.js, line 54

Transaction

Promise.<Transaction>

# async mint(params) → {Promise.<void>}

Mint tokens to given address.

Parameters:
Name Type Description
params Object

Parameters

to Address

The address to mind tokens to.

amount uint256

The amount of the underlying asset to supply.

View Source models/mocks/ERC20Mock.js, line 39

Promise.<void>

Type Definitions

Object

# Options

Properties:
Name Type Attributes Default Description
test Boolean
localtest Boolean

ganache local blockchain

web3Connection Web3Connection <optional>
Web3Connection

created from params: 'test', 'localtest' and optional 'web3Connection' string and 'privateKey'

contractAddress string <optional>

View Source models/mocks/ERC20Mock.js, line 5