wallet

package
v0.9.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

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) *Wallet

GetObject returns proxy object

func (*Wallet) AddDeposit

func (r *Wallet) AddDeposit(txId string, deposit insolar.Reference) error

AddDeposit is proxy generated method

func (*Wallet) AddDepositAsImmutable

func (r *Wallet) AddDepositAsImmutable(txId string, deposit insolar.Reference) error

AddDepositAsImmutable is proxy generated method

func (*Wallet) FindDeposit

func (r *Wallet) FindDeposit(transactionHash string) (bool, *insolar.Reference, error)

FindDepositAsImmutable is proxy generated method

func (*Wallet) FindDepositAsMutable

func (r *Wallet) FindDepositAsMutable(transactionHash string) (bool, *insolar.Reference, error)

FindDeposit 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) GetBalance

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

GetBalanceAsImmutable is proxy generated method

func (*Wallet) GetBalanceAsMutable added in v0.9.2

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

GetBalance is proxy generated method

func (*Wallet) GetCode

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

GetCode returns reference to the code

func (*Wallet) GetDeposits

func (r *Wallet) GetDeposits() (map[string]interface{}, error)

GetDepositsAsImmutable is proxy generated method

func (*Wallet) GetDepositsAsMutable

func (r *Wallet) GetDepositsAsMutable() (map[string]interface{}, error)

GetDeposits is proxy generated method

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

Jump to

Keyboard shortcuts

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