Documentation ¶
Index ¶
- type ClientV5
- func (c *ClientV5) BuildTransaction(ctx context.Context, srcTokenAddress common.Address, srcTokenDecimals uint, ...) (Transaction, error)
- func (c *ClientV5) FetchPriceRoute(ctx context.Context, srcTokenAddress common.Address, srcTokenDecimals uint, ...) (Route, error)
- func (c *ClientV5) FetchTokensList(ctx context.Context) ([]Token, error)
- func (c *ClientV5) SetChainID(chainID uint64)
- type HTTPClient
- type PriceRouteResponse
- type Route
- type Token
- type TokensResponse
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientV5 ¶
type ClientV5 struct {
// contains filtered or unexported fields
}
func NewClientV5 ¶
func (*ClientV5) BuildTransaction ¶
func (c *ClientV5) BuildTransaction(ctx context.Context, srcTokenAddress common.Address, srcTokenDecimals uint, srcAmountWei *big.Int, destTokenAddress common.Address, destTokenDecimals uint, destAmountWei *big.Int, addressFrom common.Address, addressTo common.Address, priceRoute json.RawMessage) (Transaction, error)
func (*ClientV5) FetchPriceRoute ¶
func (*ClientV5) FetchTokensList ¶
func (*ClientV5) SetChainID ¶
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
func NewHTTPClient ¶
func NewHTTPClient() *HTTPClient
type PriceRouteResponse ¶
type PriceRouteResponse struct { PriceRoute json.RawMessage `json:"priceRoute"` Error string `json:"error"` }
type Route ¶
type Route struct { GasCost *bigint.BigInt `json:"gasCost"` SrcAmount *bigint.BigInt `json:"srcAmount"` SrcTokenAddress common.Address `json:"srcToken"` SrcTokenDecimals uint `json:"srcDecimals"` DestAmount *bigint.BigInt `json:"destAmount"` DestTokenAddress common.Address `json:"destToken"` DestTokenDecimals uint `json:"destDecimals"` RawPriceRoute json.RawMessage `json:"rawPriceRoute"` }
type TokensResponse ¶
Click to show internal directories.
Click to hide internal directories.