test

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 8 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 *felt.Felt, amount *big.Int) (*MintResponse, error)

type FeeToken

type FeeToken struct {
	Symbol  string
	Address *felt.Felt
}

type MintResponse

type MintResponse struct {
	NewBalance *big.Int `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