github.com/wormhole-foundation/wormhole-explorer/common@v0.0.0-20240604151348-09585b5b97c5/domain/const.go (about) 1 package domain 2 3 // p2p network constants. 4 const ( 5 P2pMainNet = "mainnet" 6 P2pTestNet = "testnet" 7 P2pDevNet = "devnet" 8 ) 9 10 const ( 11 AppIdUnkonwn = "UNKONWN" 12 AppIdPortalTokenBridge = "PORTAL_TOKEN_BRIDGE" 13 ) 14 15 // SourceTxStatus is meant to be a user-facing enum that describes the status of the source transaction. 16 type SourceTxStatus string 17 18 const ( 19 // SourceTxStatusChainNotSupported indicates that the processing failed due to the chain ID not being supported. 20 // 21 // (i.e.: there is no adapter for that chain yet) 22 SourceTxStatusChainNotSupported SourceTxStatus = "chainNotSupported" 23 24 // SourceTxStatusInternalError represents an internal, unspecified error. 25 SourceTxStatusInternalError SourceTxStatus = "internalError" 26 27 // SourceTxStatusConfirmed indicates that the transaciton has been processed successfully. 28 SourceTxStatusConfirmed SourceTxStatus = "confirmed" 29 ) 30 31 const ( 32 DstTxStatusFailedToProcess = "failed" 33 DstTxStatusConfirmed = "completed" 34 DstTxStatusUnkonwn = "unknown" 35 )