Documentation ¶
Index ¶
- Variables
- func GetPrototype() core.RecordRef
- type Allowance
- func (r *Allowance) DeleteExpiredAllowance() (uint, error)
- func (r *Allowance) DeleteExpiredAllowanceNoWait() error
- func (r *Allowance) GetBalanceForOwner() (uint, error)
- func (r *Allowance) GetBalanceForOwnerNoWait() error
- func (r *Allowance) GetPrototype() core.RecordRef
- 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("")
PrototypeReference to prototype of this contract
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) DeleteExpiredAllowance ¶
DeleteExpiredAllowance is proxy generated method
func (*Allowance) DeleteExpiredAllowanceNoWait ¶
DeleteExpiredAllowanceNoWait is proxy generated method
func (*Allowance) GetBalanceForOwner ¶
GetBalanceForOwner is proxy generated method
func (*Allowance) GetBalanceForOwnerNoWait ¶
GetBalanceForOwnerNoWait is proxy generated method
func (*Allowance) GetPrototype ¶ added in v0.6.2
GetPrototype returns reference to the prototype
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