Documentation ¶
Index ¶
- func NewJSONReader(path string, filename string) *jsonReader
- type AnyswapAssetSource
- type AssetSource
- type Assets
- type SerumAssetSource
- type SerumPair
- type UniswapAssetSource
- func (uas *UniswapAssetSource) Asset() chan dia.Asset
- func (uas *UniswapAssetSource) Done() chan bool
- func (uas *UniswapAssetSource) GetDecimals(tokenAddress common.Address) (decimals uint8, err error)
- func (uas *UniswapAssetSource) GetName(tokenAddress common.Address) (name string, err error)
- func (uas *UniswapAssetSource) GetPairByAddress(pairAddress common.Address) (pair UniswapPair, err error)
- func (uas *UniswapAssetSource) GetPairByID(num int64) (UniswapPair, error)
- type UniswapPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJSONReader ¶
Types ¶
type AnyswapAssetSource ¶ added in v1.4.0
type AnyswapAssetSource struct { URL string // contains filtered or unexported fields }
func NewAnyswapAssetSource ¶ added in v1.4.0
func NewAnyswapAssetSource(exchange dia.Exchange) *AnyswapAssetSource
func (*AnyswapAssetSource) Asset ¶ added in v1.4.0
func (sas *AnyswapAssetSource) Asset() chan dia.Asset
func (*AnyswapAssetSource) Done ¶ added in v1.4.0
func (sas *AnyswapAssetSource) Done() chan bool
type AssetSource ¶
type SerumAssetSource ¶
type SerumAssetSource struct {
// contains filtered or unexported fields
}
func NewSerumAssetSource ¶
func NewSerumAssetSource(exchange dia.Exchange) *SerumAssetSource
func (*SerumAssetSource) Asset ¶
func (sas *SerumAssetSource) Asset() chan dia.Asset
func (*SerumAssetSource) Done ¶ added in v1.4.0
func (sas *SerumAssetSource) Done() chan bool
type UniswapAssetSource ¶
type UniswapAssetSource struct { WsClient *ethclient.Client RestClient *ethclient.Client // contains filtered or unexported fields }
func NewUniswapAssetSource ¶
func NewUniswapAssetSource(exchange dia.Exchange) *UniswapAssetSource
func (*UniswapAssetSource) Asset ¶
func (uas *UniswapAssetSource) Asset() chan dia.Asset
func (*UniswapAssetSource) Done ¶ added in v1.4.0
func (uas *UniswapAssetSource) Done() chan bool
func (*UniswapAssetSource) GetDecimals ¶
func (uas *UniswapAssetSource) GetDecimals(tokenAddress common.Address) (decimals uint8, err error)
GetDecimals returns the decimals of the token with address @tokenAddress
func (*UniswapAssetSource) GetName ¶
func (uas *UniswapAssetSource) GetName(tokenAddress common.Address) (name string, err error)
func (*UniswapAssetSource) GetPairByAddress ¶
func (uas *UniswapAssetSource) GetPairByAddress(pairAddress common.Address) (pair UniswapPair, err error)
func (*UniswapAssetSource) GetPairByID ¶
func (uas *UniswapAssetSource) GetPairByID(num int64) (UniswapPair, error)
GetPairByID returns the UniswapPair with the integer id @num
Click to show internal directories.
Click to hide internal directories.