wallet

package
v0.9.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrototypeReference, _ = insolar.NewReferenceFromBase58("111A5gmRD1ZbHjQh7DgH9SrCK4a1qfwEUP5xAir6i8L.11111111111111111111111111111111")

PrototypeReference to prototype of this contract error checking hides in generator

Functions

func GetPrototype

func GetPrototype() insolar.Reference

GetPrototype returns reference to the prototype

Types

type ContractConstructorHolder

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

ContractConstructorHolder holds logic with object construction

func New

func New(accountReference insolar.Reference) *ContractConstructorHolder

New is constructor

func (*ContractConstructorHolder) AsChild

func (r *ContractConstructorHolder) AsChild(objRef insolar.Reference) (*Wallet, error)

AsChild saves object as child

type Wallet

type Wallet struct {
	Reference insolar.Reference
	Prototype insolar.Reference
	Code      insolar.Reference
}

Wallet holds proxy type

func GetObject

func GetObject(ref insolar.Reference) (r *Wallet)

GetObject returns proxy object

func (*Wallet) Accept

func (r *Wallet) Accept(amountStr string, assetName string) error

Accept is proxy generated method

func (*Wallet) AcceptAsImmutable

func (r *Wallet) AcceptAsImmutable(amountStr string, assetName string) error

AcceptAsImmutable is proxy generated method

func (*Wallet) AcceptNoWait

func (r *Wallet) AcceptNoWait(amountStr string, assetName string) error

AcceptNoWait is proxy generated method

func (*Wallet) GetAccount

func (r *Wallet) GetAccount(assetName string) (*insolar.Reference, error)

GetAccount is proxy generated method

func (*Wallet) GetAccountAsImmutable

func (r *Wallet) GetAccountAsImmutable(assetName string) (*insolar.Reference, error)

GetAccountAsImmutable is proxy generated method

func (*Wallet) GetAccountNoWait

func (r *Wallet) GetAccountNoWait(assetName string) error

GetAccountNoWait is proxy generated method

func (*Wallet) GetBalance

func (r *Wallet) GetBalance(assetName string) (string, error)

GetBalance is proxy generated method

func (*Wallet) GetBalanceAsImmutable

func (r *Wallet) GetBalanceAsImmutable(assetName string) (string, error)

GetBalanceAsImmutable is proxy generated method

func (*Wallet) GetBalanceNoWait

func (r *Wallet) GetBalanceNoWait(assetName string) error

GetBalanceNoWait is proxy generated method

func (*Wallet) GetCode

func (r *Wallet) GetCode() (insolar.Reference, error)

GetCode returns reference to the code

func (*Wallet) GetPrototype

func (r *Wallet) GetPrototype() (insolar.Reference, error)

GetPrototype returns reference to the code

func (*Wallet) GetReference

func (r *Wallet) GetReference() insolar.Reference

GetReference returns reference of the object

func (*Wallet) Transfer

func (r *Wallet) Transfer(rootDomainRef insolar.Reference, assetName string, amountStr string, toMember *insolar.Reference) (interface{}, error)

Transfer is proxy generated method

func (*Wallet) TransferAsImmutable

func (r *Wallet) TransferAsImmutable(rootDomainRef insolar.Reference, assetName string, amountStr string, toMember *insolar.Reference) (interface{}, error)

TransferAsImmutable is proxy generated method

func (*Wallet) TransferNoWait

func (r *Wallet) TransferNoWait(rootDomainRef insolar.Reference, assetName string, amountStr string, toMember *insolar.Reference) error

TransferNoWait is proxy generated method

Jump to

Keyboard shortcuts

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