Documentation ¶
Index ¶
- Constants
- func INSCONSTRUCTOR_New(data []byte) ([]byte, []byte, error)
- func INSMETHOD_Accept(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetAccount(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetBalance(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetCode(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetPrototype(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_Transfer(object []byte, data []byte) ([]byte, []byte, error)
- func INS_META_INFO() []map[string]string
- func Initialize() XXX_insolar.ContractWrapper
- type Wallet
- func (w *Wallet) Accept(amountStr string, assetName string) error
- func (w *Wallet) GetAccount(assetName string) (*insolar.Reference, error)
- func (w *Wallet) GetBalance(assetName string) (string, error)
- func (w *Wallet) Transfer(rootDomainRef insolar.Reference, assetName string, amountStr string, ...) (interface{}, error)
Constants ¶
View Source
const XNS = "XNS"
Variables ¶
This section is empty.
Functions ¶
func INSMETHOD_GetAccount ¶
func INSMETHOD_GetBalance ¶
func INSMETHOD_GetPrototype ¶
func INSMETHOD_Transfer ¶
func INS_META_INFO ¶
func Initialize ¶
func Initialize() XXX_insolar.ContractWrapper
Types ¶
type Wallet ¶
type Wallet struct { foundation.BaseContract Accounts foundation.StableMap }
Wallet - basic wallet contract.
func (*Wallet) GetAccount ¶
func (*Wallet) GetBalance ¶
GetBalance gets balance by asset name.
Click to show internal directories.
Click to hide internal directories.