test

package
v0.0.0-...-00a565c Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevNet

type DevNet struct {
	// contains filtered or unexported fields
}

func NewDevNet

func NewDevNet(baseURL ...string) *DevNet

func (*DevNet) Accounts

func (devnet *DevNet) Accounts() ([]TestAccount, error)

func (*DevNet) FeeToken

func (devnet *DevNet) FeeToken() (*FeeToken, error)

func (*DevNet) IsAlive

func (devnet *DevNet) IsAlive() bool

func (*DevNet) Mint

func (devnet *DevNet) Mint(address types.Hash, amount uint64) (*MintResponse, error)

type FeeToken

type FeeToken struct {
	Symbol  string
	Address types.Hash
}

type MintResponse

type MintResponse struct {
	NewBalance uint64 `json:"new_balance"`
	Unit       string `json:"unit"`
}

type TestAccount

type TestAccount struct {
	PrivateKey string `json:"private_key"`
	PublicKey  string `json:"public_key"`
	Address    string `json:"address"`
}

Jump to

Keyboard shortcuts

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