Documentation
¶
Index ¶
- Constants
- func INSCONSTRUCTOR_New(ref insolar.Reference, data []byte) (state []byte, result []byte, err error)
- func INSMETHOD_CreateBurnedAccount(object []byte, data []byte) (newState []byte, result []byte, err error)
- func INSMETHOD_CreateFund(object []byte, data []byte) (newState []byte, result []byte, err error)
- func INSMETHOD_FindDeposit(object []byte, data []byte) (newState []byte, result []byte, err error)
- func INSMETHOD_FindOrCreateDeposit(object []byte, data []byte) (newState []byte, result []byte, err error)
- func INSMETHOD_GetAccount(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_GetDeposits(object []byte, data []byte) (newState []byte, result []byte, err error)
- func INSMETHOD_GetPrototype(object []byte, data []byte) ([]byte, []byte, 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 Wallet
- func (w *Wallet) CreateBurnedAccount() (*insolar.Reference, error)
- func (w *Wallet) CreateFund(lockupEndDate int64) (*insolar.Reference, error)
- func (w *Wallet) FindDeposit(transactionHash string) (bool, *insolar.Reference, error)
- func (w *Wallet) FindOrCreateDeposit(transactionHash string, lockup int64, vesting int64, vestingStep int64) (*insolar.Reference, error)
- func (w *Wallet) GetAccount(assetName string) (*insolar.Reference, error)
- func (w *Wallet) GetBalance(assetName string) (string, error)
- func (w *Wallet) GetDeposits() ([]interface{}, error)
- func (w *Wallet) Transfer(assetName string, amountStr string, toMember *insolar.Reference, ...) (interface{}, error)
Constants ¶
View Source
const ( XNS = "XNS" Burned = "Burned" )
View Source
const PanicIsLogicalError = false
Variables ¶
This section is empty.
Functions ¶
func INSCONSTRUCTOR_New ¶
func INSMETHOD_CreateFund ¶
func INSMETHOD_FindDeposit ¶
func INSMETHOD_GetAccount ¶
func INSMETHOD_GetBalance ¶
func INSMETHOD_GetDeposits ¶
func INSMETHOD_GetPrototype ¶
func INSMETHOD_Transfer ¶
func INS_META_INFO ¶
func Initialize ¶
func Initialize() insolar.ContractWrapper
Types ¶
type Wallet ¶
type Wallet struct { foundation.BaseContract Accounts foundation.StableMap Deposits foundation.StableMap }
Wallet - basic wallet contract.
func (*Wallet) CreateBurnedAccount ¶
CreateBurnedAccount creates new BurnedAccount.
func (*Wallet) CreateFund ¶
CreateFund creates new one public allocation 2 deposit with specified lockup end date.
func (*Wallet) FindDeposit ¶
FindDeposit finds deposit for this wallet with this transaction hash. ins:immutable
func (*Wallet) FindOrCreateDeposit ¶
func (w *Wallet) FindOrCreateDeposit(transactionHash string, lockup int64, vesting int64, vestingStep int64) (*insolar.Reference, error)
FindOrCreateDeposit finds deposit for this wallet with this transaction hash or creates new one with link in this wallet.
func (*Wallet) GetAccount ¶
GetAccount returns account ref ins:immutable
func (*Wallet) GetBalance ¶
GetBalance gets balance by asset name. ins:immutable
func (*Wallet) GetDeposits ¶
GetDeposits get all deposits for this wallet ins:immutable
Click to show internal directories.
Click to hide internal directories.