Documentation ¶
Index ¶
- Variables
- func GetPrototype() insolar.Reference
- type ContractConstructorHolder
- type Wallet
- func (r *Wallet) AddDeposit(txId string, deposit insolar.Reference) error
- func (r *Wallet) AddDepositAsImmutable(txId string, deposit insolar.Reference) error
- func (r *Wallet) FindDeposit(transactionHash string) (bool, *insolar.Reference, error)
- func (r *Wallet) FindDepositAsMutable(transactionHash string) (bool, *insolar.Reference, error)
- func (r *Wallet) GetAccount(assetName string) (*insolar.Reference, error)
- func (r *Wallet) GetAccountAsImmutable(assetName string) (*insolar.Reference, error)
- func (r *Wallet) GetBalance(assetName string) (string, error)
- func (r *Wallet) GetBalanceAsMutable(assetName string) (string, error)
- func (r *Wallet) GetCode() (insolar.Reference, error)
- func (r *Wallet) GetDeposits() ([]interface{}, error)
- func (r *Wallet) GetDepositsAsMutable() ([]interface{}, error)
- func (r *Wallet) GetPrototype() (insolar.Reference, error)
- func (r *Wallet) GetReference() insolar.Reference
- func (r *Wallet) Transfer(rootDomainRef insolar.Reference, assetName string, amountStr string, ...) (interface{}, error)
- func (r *Wallet) TransferAsImmutable(rootDomainRef insolar.Reference, assetName string, amountStr string, ...) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
var PrototypeReference, _ = insolar.NewReferenceFromBase58("0111A5gmRD1ZbHjQh7DgH9SrCK4a1qfwEUP5xAir6i8L")
PrototypeReference to prototype of this contract error checking hides in generator
Functions ¶
func GetPrototype ¶
GetPrototype returns reference to the prototype
Types ¶
type ContractConstructorHolder ¶
type ContractConstructorHolder struct {
// contains filtered or unexported fields
}
ContractConstructorHolder holds logic with object construction
func New ¶
func New(accountReference insolar.Reference) *ContractConstructorHolder
New is constructor
type Wallet ¶
type Wallet struct { Reference insolar.Reference Prototype insolar.Reference Code insolar.Reference }
Wallet holds proxy type
func (*Wallet) AddDeposit ¶
AddDeposit is proxy generated method
func (*Wallet) AddDepositAsImmutable ¶
AddDepositAsImmutable is proxy generated method
func (*Wallet) FindDeposit ¶
FindDepositAsImmutable is proxy generated method
func (*Wallet) FindDepositAsMutable ¶
FindDeposit is proxy generated method
func (*Wallet) GetAccount ¶
GetAccount is proxy generated method
func (*Wallet) GetAccountAsImmutable ¶
GetAccountAsImmutable is proxy generated method
func (*Wallet) GetBalance ¶
GetBalanceAsImmutable is proxy generated method
func (*Wallet) GetBalanceAsMutable ¶ added in v0.9.2
GetBalance is proxy generated method
func (*Wallet) GetDeposits ¶
GetDepositsAsImmutable is proxy generated method
func (*Wallet) GetDepositsAsMutable ¶
GetDeposits is proxy generated method
func (*Wallet) GetPrototype ¶
GetPrototype returns reference to the code
func (*Wallet) GetReference ¶
GetReference returns reference of the object