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) GetAccountAsMutable(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(assetName string, amountStr string, toMember *insolar.Reference, ...) (interface{}, error)
- func (r *Wallet) TransferAsMutable(assetName string, amountStr string, toMember *insolar.Reference, ...) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
var PrototypeReference, _ = insolar.NewObjectReferenceFromString("insolar:0AAABAgfNy9VkTWQBamlz1DPbynRrVLzRtsRo-X2YI6U")
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 ¶
GetAccountAsImmutable is proxy generated method
func (*Wallet) GetAccountAsMutable ¶ added in v0.9.17
GetAccount is proxy generated method
func (*Wallet) GetBalance ¶
GetBalanceAsImmutable is proxy generated method
func (*Wallet) GetBalanceAsMutable ¶
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