Members
# __assert
Use a erc20mock contract with the current address
Methods
# deploy(options) → {Promise.<Transaction>}
Deploy ERC20Mock
Parameters:
Name | Type | Description |
---|---|---|
options |
IContract~TxOptions
|
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. |
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> |