account

package
v0.9.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrototypeReference, _ = insolar.NewObjectReferenceFromBase58("0111A62X73fkPeY5vK6NjcXgmL9d37DgRRNtHNLGaEse")

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 Account

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

Account holds proxy type

func GetObject

func GetObject(ref insolar.Reference) *Account

GetObject returns proxy object

func (*Account) Accept

func (r *Account) Accept(amountStr string) error

Accept is proxy generated method

func (*Account) GetBalance

func (r *Account) GetBalance() (string, error)

GetBalanceAsImmutable is proxy generated method

func (*Account) GetBalanceAsMutable

func (r *Account) GetBalanceAsMutable() (string, error)

GetBalance is proxy generated method

func (*Account) GetCode

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

GetCode returns reference to the code

func (*Account) GetPrototype

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

GetPrototype returns reference to the code

func (*Account) GetReference

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

GetReference returns reference of the object

func (*Account) IncreaseBalance added in v0.9.1

func (r *Account) IncreaseBalance(amountStr string) error

IncreaseBalance is proxy generated method

func (*Account) IncreaseBalanceAsImmutable added in v0.9.1

func (r *Account) IncreaseBalanceAsImmutable(amountStr string) error

IncreaseBalanceAsImmutable is proxy generated method

func (*Account) RollBack

func (r *Account) RollBack(amountStr string) error

RollBack is proxy generated method

func (*Account) RollBackAsImmutable

func (r *Account) RollBackAsImmutable(amountStr string) error

RollBackAsImmutable is proxy generated method

func (*Account) Transfer added in v0.9.1

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

Transfer is proxy generated method

func (*Account) TransferAsImmutable added in v0.9.1

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

TransferAsImmutable is proxy generated method

func (*Account) TransferToDeposit

func (r *Account) TransferToDeposit(amountStr string, toDeposit insolar.Reference) error

TransferToDeposit is proxy generated method

func (*Account) TransferToDepositAsImmutable

func (r *Account) TransferToDepositAsImmutable(amountStr string, toDeposit insolar.Reference) error

TransferToDepositAsImmutable is proxy generated method

func (*Account) TransferToMember added in v0.9.1

func (r *Account) TransferToMember(amountStr string, toMember insolar.Reference) error

TransferToMember is proxy generated method

func (*Account) TransferToMemberAsImmutable added in v0.9.1

func (r *Account) TransferToMemberAsImmutable(amountStr string, toMember insolar.Reference) error

TransferToMemberAsImmutable is proxy generated method

type ContractConstructorHolder

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

ContractConstructorHolder holds logic with object construction

func New

func New(balance string) *ContractConstructorHolder

New is constructor

func (*ContractConstructorHolder) AsChild

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

AsChild saves object as child

Jump to

Keyboard shortcuts

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