Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSwap ¶
func NewSwap(local *SwapParams, remote *SwapProfile, backend chequebook.Backend, proto swap.Protocol) (self *swap.Swap, err error)
Types ¶
type PayProfile ¶
type SwapParams ¶ added in v1.5.0
type SwapParams struct { *swap.Params *PayProfile }
func DefaultSwapParams ¶ added in v1.5.0
func DefaultSwapParams(contract common.Address, prvkey *ecdsa.PrivateKey) *SwapParams
func (*SwapParams) Chequebook ¶ added in v1.5.0
func (self *SwapParams) Chequebook() *chequebook.Chequebook
func (*SwapParams) PrivateKey ¶ added in v1.5.0
func (self *SwapParams) PrivateKey() *ecdsa.PrivateKey
func (*SwapParams) SetChequebook ¶ added in v1.5.0
func (self *SwapParams) SetChequebook(ctx context.Context, backend chequebook.Backend, path string) error
setChequebook(path, backend) wraps the chequebook initialiser and sets up autoDeposit to cover spending.
func (*SwapParams) SetKey ¶ added in v1.5.0
func (self *SwapParams) SetKey(prvkey *ecdsa.PrivateKey)
type SwapProfile ¶ added in v1.5.0
type SwapProfile struct { *swap.Profile *PayProfile }
Click to show internal directories.
Click to hide internal directories.