2023-02-28 12:58:26 -08:00
|
|
|
package domain
|
|
|
|
|
|
|
|
// p2p network constants.
|
|
|
|
const (
|
|
|
|
P2pMainNet = "mainnet"
|
|
|
|
P2pTestNet = "testnet"
|
|
|
|
P2pDevNet = "devnet"
|
|
|
|
)
|
2023-03-14 11:49:10 -07:00
|
|
|
|
2023-03-27 12:14:38 -07:00
|
|
|
const AppIdPortalTokenBridge = "PORTAL_TOKEN_BRIDGE"
|
2023-04-25 11:34:29 -07:00
|
|
|
|
|
|
|
// SourceTxStatus is meant to be a user-facing enum that describes the status of the source transaction.
|
|
|
|
type SourceTxStatus string
|
|
|
|
|
|
|
|
const (
|
|
|
|
// SourceTxStatusChainNotSupported indicates that the processing failed due to the chain ID not being supported.
|
|
|
|
//
|
|
|
|
// (i.e.: there is no adapter for that chain yet)
|
|
|
|
SourceTxStatusChainNotSupported SourceTxStatus = "chainNotSupported"
|
|
|
|
|
|
|
|
// SourceTxStatusInternalError represents an internal, unspecified error.
|
|
|
|
SourceTxStatusInternalError SourceTxStatus = "internalError"
|
|
|
|
|
|
|
|
// SourceTxStatusConfirmed indicates that the transaciton has been processed successfully.
|
|
|
|
SourceTxStatusConfirmed SourceTxStatus = "confirmed"
|
|
|
|
)
|