swap

package
v0.0.0-...-b78b3a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2019 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

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 PayProfile struct {
	PublicKey   string         //
	Contract    common.Address //
	Beneficiary common.Address //
	// contains filtered or unexported fields
}

type RemoteProfile

type RemoteProfile struct {
	*swap.Profile
	*PayProfile
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL