Documentation ¶
Index ¶
- type CliWallet
- func (wallet *CliWallet) ApproveForPayments(amount int64) error
- func (wallet *CliWallet) GiveEther(address common.Address, amount, units int64) error
- func (wallet *CliWallet) GiveTokens(address common.Address, amount int64) error
- func (wallet *CliWallet) RegisterIdentity(dto tequilapi_client.RegistrationDataDTO) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CliWallet ¶
CliWallet represents operations which can be done with user controlled account
func NewDeployerWallet ¶
NewDeployerWallet initializes wallet with main localnet account private key (owner of ERC20, payments and lots of ether)
func NewUserWallet ¶
NewUserWallet initializes wallet with generated account with specified keystore
func (*CliWallet) ApproveForPayments ¶
ApproveForPayments allows specified amount of ERC20 tokens to be spend by payments contract
func (*CliWallet) GiveTokens ¶
GiveTokens gives myst tokens to specified address
func (*CliWallet) RegisterIdentity ¶
func (wallet *CliWallet) RegisterIdentity(dto tequilapi_client.RegistrationDataDTO) error
RegisterIdentity registers identity with given data on behalf of user
Click to show internal directories.
Click to hide internal directories.