Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DexApproval ¶
type DexBuildTxIn ¶
type DexBuildTxOut ¶
type DexBuildTxOut struct {
UserOp string `json:"userOp,omitempty"`
TxData *DexTx `json:"txData"`
ApprovalData *DexApproval `json:"approvalData,omitempty"`
}
type DexCheckTxIn ¶
type DexCheckTxOut ¶
type DexHashType ¶
type DexHashType string
const ( DexHashTypeTxHash DexHashType = "txHash" DexHashTypeRequestHash DexHashType = "requestHash" )
func (DexHashType) IsValid ¶
func (h DexHashType) IsValid() bool
func (DexHashType) String ¶
func (h DexHashType) String() string
type DexQuoteIn ¶
type DexQuoteIn struct {
FromChain string `json:"fromChain"`
ToChain string `json:"toChain"`
FromToken string `json:"fromToken"`
ToToken string `json:"toToken"`
FromAddress string `json:"fromAddress"`
ToAddress string `json:"toAddress"`
FromAmount string `json:"fromAmount"`
Slippage string `json:"slippage"`
FeeRate string `json:"feeRate,omitempty"`
FeeReceiver string `json:"feeReceiver,omitempty"`
FromValueUsd string `json:"fromValueUsd,omitempty"`
GasOnDestination string `json:"gasOnDestination,omitempty"`
}
type DexQuoteOut ¶
type DexRoute ¶
type DexRoute struct {
RouteId string `json:"routeId"`
RequestHash string `json:"requestHash,omitempty"`
Name string `json:"name"`
AmountOut string `json:"amountOut"`
AmountOutMin string `json:"amountOutMin"`
Slippage float64 `json:"slippage,omitempty"`
SuggestedSlippage float64 `json:"suggestedSlippage"`
FeeInUsd string `json:"feeInUsd"`
EstimatedTime int64 `json:"estimatedTime"`
NeedBuild bool `json:"needBuild"`
Gasless bool `json:"gasless,omitempty"`
RequestId string `json:"requestId,omitempty"`
TxData *DexTx `json:"txData,omitempty"`
ApprovalData *DexApproval `json:"approvalData,omitempty"`
UserOp string `json:"userOp,omitempty"`
SignTypedData json.RawMessage `json:"signTypedData,omitempty"`
SubmitRequest json.RawMessage `json:"submitRequest,omitempty"`
TrustedSpenders []string `json:"trustedSpenders,omitempty"`
PriceImpactPct float64 `json:"priceImpactPct,omitempty"`
Warnings []DexWarning `json:"warnings,omitempty"`
}
type DexWarning ¶
Click to show internal directories.
Click to hide internal directories.