Documentation ¶
Index ¶
- Variables
- func GetPrototype() core.RecordRef
- type ContractConstructorHolder
- type Wallet
- func (r *Wallet) Accept(aRef *core.RecordRef) error
- func (r *Wallet) AcceptNoWait(aRef *core.RecordRef) error
- func (r *Wallet) Allocate(amount uint, to *core.RecordRef) (core.RecordRef, error)
- func (r *Wallet) AllocateNoWait(amount uint, to *core.RecordRef) error
- func (r *Wallet) GetPrototype() core.RecordRef
- func (r *Wallet) GetReference() core.RecordRef
- func (r *Wallet) GetTotalBalance() (uint, error)
- func (r *Wallet) GetTotalBalanceNoWait() error
- func (r *Wallet) Receive(amount uint, from *core.RecordRef) error
- func (r *Wallet) ReceiveNoWait(amount uint, from *core.RecordRef) error
- func (r *Wallet) ReturnAndDeleteExpiredAllowances() error
- func (r *Wallet) ReturnAndDeleteExpiredAllowancesNoWait() error
- func (r *Wallet) Transfer(amount uint, to *core.RecordRef) error
- func (r *Wallet) TransferNoWait(amount uint, to *core.RecordRef) error
Constants ¶
This section is empty.
Variables ¶
var PrototypeReference = core.NewRefFromBase58("")
PrototypeReference to prototype of this contract
Functions ¶
func GetPrototype ¶ added in v0.6.2
GetPrototype returns reference to the prototype
Types ¶
type ContractConstructorHolder ¶
type ContractConstructorHolder struct {
// contains filtered or unexported fields
}
ContractConstructorHolder holds logic with object construction
func (*ContractConstructorHolder) AsChild ¶
func (r *ContractConstructorHolder) AsChild(objRef core.RecordRef) (*Wallet, error)
AsChild saves object as child
func (*ContractConstructorHolder) AsDelegate ¶
func (r *ContractConstructorHolder) AsDelegate(objRef core.RecordRef) (*Wallet, error)
AsDelegate saves object as delegate
type Wallet ¶
Wallet holds proxy type
func GetImplementationFrom ¶
GetImplementationFrom returns proxy to delegate of given type
func (*Wallet) AcceptNoWait ¶
AcceptNoWait is proxy generated method
func (*Wallet) AllocateNoWait ¶
AllocateNoWait is proxy generated method
func (*Wallet) GetPrototype ¶ added in v0.6.2
GetPrototype returns reference to the prototype
func (*Wallet) GetReference ¶
GetReference returns reference of the object
func (*Wallet) GetTotalBalance ¶
GetTotalBalance is proxy generated method
func (*Wallet) GetTotalBalanceNoWait ¶
GetTotalBalanceNoWait is proxy generated method
func (*Wallet) ReceiveNoWait ¶
ReceiveNoWait is proxy generated method
func (*Wallet) ReturnAndDeleteExpiredAllowances ¶
ReturnAndDeleteExpiredAllowances is proxy generated method
func (*Wallet) ReturnAndDeleteExpiredAllowancesNoWait ¶
ReturnAndDeleteExpiredAllowancesNoWait is proxy generated method