Documentation ¶
Index ¶
- Constants
- func INSCONSTRUCTOR_New(ref insolar.Reference, data []byte) (state []byte, result []byte, err error)
- func INSMETHOD_Burn(object []byte, data []byte) (newState []byte, result []byte, err error)
- func INSMETHOD_GetBalance(object []byte, data []byte) (newState []byte, result []byte, err error)
- func INSMETHOD_GetCode(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetPrototype(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_IncreaseBalance(object []byte, data []byte) (newState []byte, result []byte, err error)
- func INSMETHOD_ReallocateToDeposit(object []byte, data []byte) (newState []byte, result []byte, err error)
- func INSMETHOD_Transfer(object []byte, data []byte) (newState []byte, result []byte, err error)
- func INS_META_INFO() []map[string]string
- func Initialize() insolar.ContractWrapper
- type Account
- func (a *Account) Burn(amountStr string, fromMember insolar.Reference, request insolar.Reference) error
- func (a *Account) GetBalance() (string, error)
- func (a *Account) IncreaseBalance(amountStr string) error
- func (a *Account) ReallocateToDeposit(amountStr string, toDeposit insolar.Reference, fromMember insolar.Reference, ...) error
- func (a *Account) Transfer(amountStr string, toMember *insolar.Reference, fromMember insolar.Reference, ...) (interface{}, error)
Constants ¶
View Source
const PanicIsLogicalError = false
Variables ¶
This section is empty.
Functions ¶
func INSCONSTRUCTOR_New ¶
func INSMETHOD_Burn ¶
func INSMETHOD_GetBalance ¶
func INSMETHOD_GetPrototype ¶
func INSMETHOD_Transfer ¶
func INS_META_INFO ¶
func Initialize ¶
func Initialize() insolar.ContractWrapper
Types ¶
type Account ¶
type Account struct { foundation.BaseContract Balance string }
func (*Account) Burn ¶
func (a *Account) Burn( amountStr string, fromMember insolar.Reference, request insolar.Reference, ) error
Burn transfers money to burn account.
func (*Account) GetBalance ¶
GetBalance gets total balance. ins:immutable
func (*Account) IncreaseBalance ¶
IncreaseBalance increases the current balance by the amount.
Click to show internal directories.
Click to hide internal directories.