Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JupSwapTransaction ¶
type JupSwapTransaction struct {
// contains filtered or unexported fields
}
func NewJupSwapTransaction ¶
func NewJupSwapTransaction(service *SwapService, quoteResponse *jupiter.QuoteResponse, signer string) *JupSwapTransaction
func (*JupSwapTransaction) OutAmount ¶
func (tx *JupSwapTransaction) OutAmount() *big.Int
func (*JupSwapTransaction) Signer ¶
func (tx *JupSwapTransaction) Signer() string
func (*JupSwapTransaction) SlippageBps ¶
func (tx *JupSwapTransaction) SlippageBps() int
type OkxSwapTransaction ¶
type OkxSwapTransaction struct {
// contains filtered or unexported fields
}
func NewOkxSwapTransaction ¶
func NewOkxSwapTransaction(service *SwapService, quoteResponse *okxweb3.SwapInstruction, signer string) *OkxSwapTransaction
func (*OkxSwapTransaction) OutAmount ¶
func (tx *OkxSwapTransaction) OutAmount() *big.Int
func (*OkxSwapTransaction) Signer ¶
func (tx *OkxSwapTransaction) Signer() string
func (*OkxSwapTransaction) SlippageBps ¶
func (tx *OkxSwapTransaction) SlippageBps() int
type RelaySwapTransaction ¶
type RelaySwapTransaction struct {
// contains filtered or unexported fields
}
func NewRelaySwapTransaction ¶
func NewRelaySwapTransaction(service *SwapService, quoteResponse *relaylink.QuoteResponse, signer string) *RelaySwapTransaction
func (*RelaySwapTransaction) OutAmount ¶
func (tx *RelaySwapTransaction) OutAmount() *big.Int
func (*RelaySwapTransaction) Signer ¶
func (tx *RelaySwapTransaction) Signer() string
func (*RelaySwapTransaction) SlippageBps ¶
func (tx *RelaySwapTransaction) SlippageBps() int
type SwapService ¶
type SwapService struct {
// contains filtered or unexported fields
}
func NewSwapService ¶
func NewSwapService(svcCtx *svc.ServiceContext, userId int64) *SwapService
Click to show internal directories.
Click to hide internal directories.