synapsecns/sanguine

View on GitHub
contrib/opbot/internal/model.go

Summary

Maintainability
A
0 mins
Test Coverage
package internal

// GetRFQByTxIDResponse is the response for GetRFQByTxID.
type GetRFQByTxIDResponse struct {
    Bridge        Bridge        `json:"Bridge"`
    BridgeRequest BridgeRequest `json:"BridgeRequest"`
    BridgeRelay   BridgeRelay   `json:"BridgeRelay"`
    BridgeProof   BridgeProof   `json:"BridgeProof"`
    BridgeClaim   BridgeClaim   `json:"BridgeClaim"`
}

// Bridge contains the bridge information.
type Bridge struct {
    TransactionID         string `json:"transactionId"`
    OriginChain           string `json:"originChain"`
    DestChain             string `json:"destChain"`
    OriginChainID         int    `json:"originChainId"`
    DestChainID           int    `json:"destChainId"`
    OriginToken           string `json:"originToken"`
    DestToken             string `json:"destToken"`
    OriginAmountFormatted string `json:"originAmountFormatted"`
    DestAmountFormatted   string `json:"destAmountFormatted"`
    Sender                string `json:"sender"`
    SendChainGas          int    `json:"sendChainGas"`
    Request               string `json:"request"`
}

// BridgeRequest contains the bridge request information.
type BridgeRequest struct {
    BlockNumber     string `json:"blockNumber"`
    BlockTimestamp  int64  `json:"blockTimestamp"`
    TransactionHash string `json:"transactionHash"`
}

// BridgeRelay contains the bridge relay information.
type BridgeRelay struct {
    BlockNumber     string `json:"blockNumber"`
    BlockTimestamp  int64  `json:"blockTimestamp"`
    TransactionHash string `json:"transactionHash"`
    Relayer         string `json:"relayer"`
    To              string `json:"to"`
}

// BridgeProof contains the bridge proof information.
type BridgeProof struct {
    BlockNumber     string `json:"blockNumber"`
    BlockTimestamp  int64  `json:"blockTimestamp"`
    TransactionHash string `json:"transactionHash"`
    Relayer         string `json:"relayer"`
}

// BridgeClaim contains the bridge claim information.
type BridgeClaim struct {
    BlockNumber     string `json:"blockNumber"`
    BlockTimestamp  int64  `json:"blockTimestamp"`
    TransactionHash string `json:"transactionHash"`
    To              string `json:"to"`
    Relayer         string `json:"relayer"`
    AmountFormatted string `json:"amountFormatted"`
}