Documentation ¶
Index ¶
- func NewSwap(localProfile *LocalProfile, remoteProfile *RemoteProfile, ...) (swapInstance *swap.Swap, err error)
- type LocalProfile
- func (lp *LocalProfile) Chequebook() *chequebook.Chequebook
- func (lp *LocalProfile) Init(contract common.Address, prvkey *ecdsa.PrivateKey)
- func (lp *LocalProfile) PrivateKey() *ecdsa.PrivateKey
- func (lp *LocalProfile) SetChequebook(ctx context.Context, backend chequebook.Backend, path string) error
- func (lp *LocalProfile) SetKey(prvkey *ecdsa.PrivateKey)
- type PayProfile
- type RemoteProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSwap ¶
func NewSwap(localProfile *LocalProfile, remoteProfile *RemoteProfile, backend chequebook.Backend, proto swap.Protocol) (swapInstance *swap.Swap, err error)
Types ¶
type LocalProfile ¶
type LocalProfile struct { *swap.Params *PayProfile }
func NewDefaultSwapParams ¶
func NewDefaultSwapParams() *LocalProfile
func (*LocalProfile) Chequebook ¶
func (lp *LocalProfile) Chequebook() *chequebook.Chequebook
func (*LocalProfile) Init ¶
func (lp *LocalProfile) Init(contract common.Address, prvkey *ecdsa.PrivateKey)
func (*LocalProfile) PrivateKey ¶
func (lp *LocalProfile) PrivateKey() *ecdsa.PrivateKey
func (*LocalProfile) SetChequebook ¶
func (lp *LocalProfile) SetChequebook(ctx context.Context, backend chequebook.Backend, path string) error
func (*LocalProfile) SetKey ¶
func (lp *LocalProfile) SetKey(prvkey *ecdsa.PrivateKey)
type PayProfile ¶
type RemoteProfile ¶
type RemoteProfile struct { *swap.Profile *PayProfile }
Click to show internal directories.
Click to hide internal directories.