Skip to main content

ERC20Builder

Builders

A Builder allowing to build instance of ERC20 token using a custom configuration

Constructor

new ERC20Builder(client: IClient);
ParamTypeDescription
clientIClient





Methods

get(address)

Parameters

NameTypeDescription
addressAddress

Returns

Type: ERC20

setAccessControl()

a contract with AccessControl allows role-based accesscontrol mechanisms. this extension allows to access all functions related to roles management.

Returns The updated builder with AccessControl extension.

Type: ERC20Builder<ERC20 & AccessControl>

setAccessManaged()

a contract with AccessManager allows certain callers to access certain functions. this extension allows to access all functions related to authority management.

Returns The updated builder with AccessManager extension.

Type: ERC20Builder<ERC20 & AccessManaged>

setBurnable()

Returns

Type: ERC20Builder<ERC20 & ERC20Burnable>

setFlashMint()

Returns

Type: ERC20Builder<ERC20 & ERC20FlashMint>

setMintable()

Returns

Type: ERC20Builder<ERC20 & ERC20Mintable>

setOwnable()

a contract with Ownable allows an owner to access certain functions. this extension allows to access all functions related ownership management.

Returns The updated ERC20 builder with Ownable extension.

Type: ERC20Builder<ERC20 & Ownable>

setPausable()

Returns

Type: ERC20Builder<ERC20 & ERC20Pausable>

setPermit()

Returns

Type: ERC20Builder<ERC20 & ERC20Permit>