-
Notifications
You must be signed in to change notification settings - Fork 30
/
model.go
30 lines (27 loc) · 1.04 KB
/
model.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package relapi
// GetTxRetryResponse contains the schema for a PUT /tx/retry response.
type GetTxRetryResponse struct {
TxID string `json:"tx_id"`
ChainID uint32 `json:"chain_id"`
Nonce uint64 `json:"nonce"`
GasAmount string `json:"gas_amount"`
}
// PutRelayAckResponse contains the schema for a POST /relay/ack response.
type PutRelayAckResponse struct {
TxID string `json:"tx_id"`
ShouldRelay bool `json:"should_relay"`
RelayerAddress string `json:"relayer_address"`
}
// GetQuoteRequestResponse is the response to a get quote request.
type GetQuoteRequestResponse struct {
Sender string `json:"sender"`
Status string `json:"status"`
TxID string `json:"tx_id"`
QuoteRequestRaw string `json:"quote_request"`
OriginTxHash string `json:"origin_tx_hash"`
DestTxHash string `json:"dest_tx_hash"`
OriginChainID uint32 `json:"origin_chain_id"`
DestChainID uint32 `json:"dest_chain_id"`
OriginToken string `json:"origin_token"`
DestToken string `json:"dest_token"`
}