e2e

package
v0.0.0-...-be0919c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2018 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CliWallet

type CliWallet struct {
	Owner common.Address
	// contains filtered or unexported fields
}

CliWallet represents operations which can be done with user controlled account

func NewDeployerWallet

func NewDeployerWallet() (*CliWallet, error)

NewDeployerWallet initializes wallet with main localnet account private key (owner of ERC20, payments and lots of ether)

func NewUserWallet

func NewUserWallet(keystoreDir string) (*CliWallet, error)

NewUserWallet initializes wallet with generated account with specified keystore

func (*CliWallet) ApproveForPayments

func (wallet *CliWallet) ApproveForPayments(amount int64) error

ApproveForPayments allows specified amount of ERC20 tokens to be spend by payments contract

func (*CliWallet) GiveEther

func (wallet *CliWallet) GiveEther(address common.Address, amount, units int64) error

GiveEther transfers ether to given address

func (*CliWallet) GiveTokens

func (wallet *CliWallet) GiveTokens(address common.Address, amount int64) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL