27 lines
462 B
Go
Raw Normal View History

2024-04-01 15:39:17 +02:00
package paraswap
import "github.com/status-im/status-go/services/wallet/thirdparty"
2024-06-12 22:14:30 +02:00
type SwapSide string
const (
SellSide = SwapSide("SELL")
BuySide = SwapSide("BUY")
)
2024-04-01 15:39:17 +02:00
type ClientV5 struct {
httpClient *thirdparty.HTTPClient
2024-04-01 15:39:17 +02:00
chainID uint64
}
func NewClientV5(chainID uint64) *ClientV5 {
return &ClientV5{
httpClient: thirdparty.NewHTTPClient(),
2024-04-01 15:39:17 +02:00
chainID: chainID,
}
}
func (c *ClientV5) SetChainID(chainID uint64) {
c.chainID = chainID
}