Documentation ¶
Index ¶
- Variables
- func GetClass() reference.Global
- type ContractConstructorHolder
- type Wallet
- func (r *Wallet) Accept(amount uint32) error
- func (r *Wallet) AcceptAsImmutable(amount uint32) error
- func (r *Wallet) Destroy() error
- func (r *Wallet) DestroyAsImmutable() error
- func (r *Wallet) GetBalance() (uint32, error)
- func (r *Wallet) GetBalanceAsMutable() (uint32, error)
- func (r *Wallet) GetClass() (reference.Global, error)
- func (r *Wallet) GetCode() (reference.Global, error)
- func (r *Wallet) GetReference() reference.Global
- func (r *Wallet) Transfer(toWallet reference.Global, amount uint32) error
- func (r *Wallet) TransferAsImmutable(toWallet reference.Global, amount uint32) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ClassReference, _ = reference.GlobalFromString("insolar:0AAABAqiF7kGalgYGa1bKDmA33RKr0lfmdtIZr73_tMU")
ClassReference to class of this contract error checking hides in generator
Functions ¶
Types ¶
type ContractConstructorHolder ¶
type ContractConstructorHolder struct {
// contains filtered or unexported fields
}
ContractConstructorHolder holds logic with object construction
func New ¶
func New(foundation foundation.ContractFoundation) *ContractConstructorHolder
New is constructor
type Wallet ¶
type Wallet struct { Reference reference.Global Class reference.Global Code reference.Global ProxyHelper XXX_contract.ProxyHelper }
Wallet holds proxy type
func GetObject ¶
func GetObject(foundation foundation.ContractFoundation, ref reference.Global) *Wallet
GetObject returns proxy object
func (*Wallet) AcceptAsImmutable ¶
AcceptAsImmutable is proxy generated method
func (*Wallet) DestroyAsImmutable ¶
DestroyAsImmutable is proxy generated method
func (*Wallet) GetBalance ¶
GetBalanceAsImmutable is proxy generated method
func (*Wallet) GetBalanceAsMutable ¶
GetBalance is proxy generated method
func (*Wallet) GetReference ¶
GetReference returns reference of the object
Click to show internal directories.
Click to hide internal directories.