Constructors
constructor
Parameters
name: string
symbol: string
signer: Signer
Methods
approveSpending
- approveSpending(spender: string): Promise<ContractTransaction>
Parameters
Returns Promise<ContractTransaction>
getAllowance
- getAllowance(owner: string, spender: string): Promise<BigNumber>
Parameters
owner: string
spender: string
Returns Promise<BigNumber>
getBalance
- getBalance(address: string): Promise<BigNumber>
Parameters
Returns Promise<BigNumber>
grantMinterRole
- grantMinterRole(address: string): Promise<ContractTransaction>
Parameters
Returns Promise<ContractTransaction>
mintTokens
- mintTokens(address: string, amount: BigNumberish): Promise<void>
Parameters
address: string
amount: BigNumberish
Returns Promise<void>
Static createToken
- createToken(name: string, symbol: string, creator: Signer): Promise<MintableToken>
Parameters
name: string
symbol: string
creator: Signer
Static tokenFromAddress
- tokenFromAddress(contract: string, signer: Signer): Promise<MintableToken>
Parameters
contract: string
signer: Signer