testwallet

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClassReference, _ = reference.GlobalFromString("insolar:0AAABAqiF7kGalgYGa1bKDmA33RKr0lfmdtIZr73_tMU")

ClassReference to class of this contract error checking hides in generator

Functions

func GetClass

func GetClass() reference.Global

GetClass returns reference to the class

Types

type ContractConstructorHolder

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

ContractConstructorHolder holds logic with object construction

func New

New is constructor

func (*ContractConstructorHolder) AsChild

func (r *ContractConstructorHolder) AsChild(objRef reference.Global) (*Wallet, error)

AsChild saves object as child

type Wallet

type Wallet struct {
	Reference   reference.Global
	Class       reference.Global
	Code        reference.Global
	ProxyHelper XXX_contract.ProxyHelper
}

Wallet holds proxy type

func GetObject

func GetObject(foundation foundation.ContractFoundation, ref reference.Global) *Wallet

GetObject returns proxy object

func (*Wallet) Accept

func (r *Wallet) Accept(amount uint32) error

Accept is proxy generated method

func (*Wallet) AcceptAsImmutable

func (r *Wallet) AcceptAsImmutable(amount uint32) error

AcceptAsImmutable is proxy generated method

func (*Wallet) Destroy

func (r *Wallet) Destroy() error

Destroy is proxy generated method

func (*Wallet) DestroyAsImmutable

func (r *Wallet) DestroyAsImmutable() error

DestroyAsImmutable is proxy generated method

func (*Wallet) GetBalance

func (r *Wallet) GetBalance() (uint32, error)

GetBalanceAsImmutable is proxy generated method

func (*Wallet) GetBalanceAsMutable

func (r *Wallet) GetBalanceAsMutable() (uint32, error)

GetBalance is proxy generated method

func (*Wallet) GetClass

func (r *Wallet) GetClass() (reference.Global, error)

GetClass returns reference to the code

func (*Wallet) GetCode

func (r *Wallet) GetCode() (reference.Global, error)

GetCode returns reference to the code

func (*Wallet) GetReference

func (r *Wallet) GetReference() reference.Global

GetReference returns reference of the object

func (*Wallet) Transfer

func (r *Wallet) Transfer(toWallet reference.Global, amount uint32) error

Transfer is proxy generated method

func (*Wallet) TransferAsImmutable

func (r *Wallet) TransferAsImmutable(toWallet reference.Global, amount uint32) error

TransferAsImmutable is proxy generated method

Jump to

Keyboard shortcuts

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