Documentation ¶
Index ¶
- Variables
- func GetPrototype() core.RecordRef
- type Allowance
- func (r *Allowance) GetBalanceForOwner() (uint, error)
- func (r *Allowance) GetBalanceForOwnerNoWait() error
- func (r *Allowance) GetCode() (core.RecordRef, error)
- func (r *Allowance) GetExpiredBalance() (uint, error)
- func (r *Allowance) GetExpiredBalanceNoWait() error
- func (r *Allowance) GetPrototype() (core.RecordRef, error)
- func (r *Allowance) GetReference() core.RecordRef
- func (r *Allowance) TakeAmount() (uint, error)
- func (r *Allowance) TakeAmountNoWait() error
- type ContractConstructorHolder
Constants ¶
This section is empty.
Variables ¶
var PrototypeReference, _ = core.NewRefFromBase58("1111237ibkogZ3cs3LKSrEdKwv5eiKzAsNAA9tG6pxJ.11111111111111111111111111111111")
PrototypeReference to prototype of this contract error checking hides in generator
Functions ¶
func GetPrototype ¶ added in v0.6.2
GetPrototype returns reference to the prototype
Types ¶
type Allowance ¶
Allowance holds proxy type
func GetImplementationFrom ¶
GetImplementationFrom returns proxy to delegate of given type
func (*Allowance) GetBalanceForOwner ¶
GetBalanceForOwner is proxy generated method
func (*Allowance) GetBalanceForOwnerNoWait ¶
GetBalanceForOwnerNoWait is proxy generated method
func (*Allowance) GetExpiredBalance ¶ added in v0.6.3
GetExpiredBalance is proxy generated method
func (*Allowance) GetExpiredBalanceNoWait ¶ added in v0.6.3
GetExpiredBalanceNoWait is proxy generated method
func (*Allowance) GetPrototype ¶ added in v0.6.2
GetPrototype returns reference to the code
func (*Allowance) GetReference ¶
GetReference returns reference of the object
func (*Allowance) TakeAmount ¶
TakeAmount is proxy generated method
func (*Allowance) TakeAmountNoWait ¶
TakeAmountNoWait is proxy generated method
type ContractConstructorHolder ¶
type ContractConstructorHolder struct {
// contains filtered or unexported fields
}
ContractConstructorHolder holds logic with object construction
func New ¶
func New(to *core.RecordRef, amount uint, expire int64) *ContractConstructorHolder
New is constructor
func (*ContractConstructorHolder) AsChild ¶
func (r *ContractConstructorHolder) AsChild(objRef core.RecordRef) (*Allowance, error)
AsChild saves object as child
func (*ContractConstructorHolder) AsDelegate ¶
func (r *ContractConstructorHolder) AsDelegate(objRef core.RecordRef) (*Allowance, error)
AsDelegate saves object as delegate