Documentation ¶
Index ¶
- type API
- type Api
- type Contract
- type FlashArbContract
- func (fc *FlashArbContract) AddPair(ctx c.Context, pair entities.TradePair) (err error)
- func (fc *FlashArbContract) Address() (out string)
- func (fc *FlashArbContract) Api() (out API)
- func (fc *FlashArbContract) ClearPairs(ctx c.Context)
- func (fc *FlashArbContract) GetPair(ctx c.Context, pool0, pool1 string) (pair entities.TradePair, err error)
- func (fc *FlashArbContract) GetPairs(ctx c.Context, protocol entities.SwapProtocol, tokens entities.TokenPair) (out []entities.TradePair, ok bool)
- func (fc *FlashArbContract) ListPairs(ctx c.Context) (vals []entities.TradePair)
- func (fc *FlashArbContract) RemovePair(ctx c.Context, pool0, pool1 string) (err error)
- func (fc *FlashArbContract) SetPairs(ctx c.Context, pairs []entities.TradePair) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { Api() *api.Api Transactor() *api.ApiTransactor Caller() *api.ApiCaller Filterer() *api.ApiFilterer }
type FlashArbContract ¶
type FlashArbContract struct {
// contains filtered or unexported fields
}
func NewFlashArbContract ¶
func NewFlashArbContract( api *Contract, pairs []entities.TradePair, ) ( contract *FlashArbContract, )
func (*FlashArbContract) Address ¶
func (fc *FlashArbContract) Address() ( out string, )
func (*FlashArbContract) Api ¶
func (fc *FlashArbContract) Api() ( out API, )
func (*FlashArbContract) ClearPairs ¶
func (fc *FlashArbContract) ClearPairs( ctx c.Context, )
func (*FlashArbContract) GetPairs ¶
func (fc *FlashArbContract) GetPairs( ctx c.Context, protocol entities.SwapProtocol, tokens entities.TokenPair, ) ( out []entities.TradePair, ok bool, )
func (*FlashArbContract) ListPairs ¶
func (fc *FlashArbContract) ListPairs( ctx c.Context, ) ( vals []entities.TradePair, )
func (*FlashArbContract) RemovePair ¶
func (fc *FlashArbContract) RemovePair( ctx c.Context, pool0, pool1 string, ) ( err error, )
Click to show internal directories.
Click to hide internal directories.