Documentation ¶
Overview ¶
Package client contians a client implementation for the RFQ Quoter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIQuote ¶
type APIQuote struct { Relayer string `json:"relayer" binding:"required"` OriginChainID uint `json:"origin_chain_id" binding:"required"` OriginToken string `json:"origin_token" binding:"required"` OriginAmount string `json:"origin_amount" binding:"required"` // TODO: origin amount norm should be a string OriginAmountNorm float64 `json:"origin_amount_norm" binding:"required"` OriginDecimals uint8 `json:"origin_decimals" binding:"required"` DestChainID uint `json:"dest_chain_id" binding:"required"` DestToken string `json:"dest_token" binding:"required"` DestAmount string `json:"dest_amount" binding:"required"` DestAmountNorm float64 `json:"dest_amount_norm" binding:"required"` DestDecimals uint8 `json:"dest_decimals" binding:"required"` Price float64 `json:"price"` // price = destAmount <quote> / originAmount <base> CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at"` }
APIQuote is the struct for the quote API.
Click to show internal directories.
Click to hide internal directories.