account

package
v0.9.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func INSCONSTRUCTOR_New

func INSCONSTRUCTOR_New(data []byte) ([]byte, []byte, error)

func INSMETHOD_Accept

func INSMETHOD_Accept(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetBalance

func INSMETHOD_GetBalance(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetCode

func INSMETHOD_GetCode(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetPrototype

func INSMETHOD_GetPrototype(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_IncreaseBalance added in v0.9.1

func INSMETHOD_IncreaseBalance(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_RollBack

func INSMETHOD_RollBack(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_Transfer added in v0.9.1

func INSMETHOD_Transfer(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_TransferToDeposit

func INSMETHOD_TransferToDeposit(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_TransferToMember added in v0.9.1

func INSMETHOD_TransferToMember(object []byte, data []byte) ([]byte, []byte, error)

func INS_META_INFO

func INS_META_INFO() []map[string]string

func Initialize

func Initialize() XXX_insolar.ContractWrapper

Types

type Account

type Account struct {
	foundation.BaseContract
	Balance string
}

func New

func New(balance string) (*Account, error)

func (*Account) Accept

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

Accept accepts transfer to balance.

func (*Account) GetBalance

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

GetBalance gets total balance. ins:immutable

func (*Account) IncreaseBalance added in v0.9.1

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

IncreaseBalance increases the current balance by the amount.

func (*Account) RollBack

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

RollBack rolls back transfer to balance.

func (*Account) Transfer added in v0.9.1

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

Transfer transfers money to given member.

func (*Account) TransferToDeposit

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

TransferToDeposit transfers funds to deposit.

func (*Account) TransferToMember added in v0.9.1

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

TransferToMember transfers funds to member.

Jump to

Keyboard shortcuts

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