github.com/status-im/status-go@v1.1.0/services/wallet/router/pathprocessor/constants.go (about)

     1  package pathprocessor
     2  
     3  import (
     4  	"math/big"
     5  
     6  	"github.com/ethereum/go-ethereum/common"
     7  )
     8  
     9  var (
    10  	ZeroAddress     = common.Address{}
    11  	ZeroBigIntValue = big.NewInt(0)
    12  )
    13  
    14  const (
    15  	IncreaseEstimatedGasFactor = 1.1
    16  	SevenDaysInSeconds         = 60 * 60 * 24 * 7
    17  
    18  	EthSymbol  = "ETH"
    19  	SntSymbol  = "SNT"
    20  	SttSymbol  = "STT"
    21  	UsdcSymbol = "USDC"
    22  	HopSymbol  = "HOP"
    23  
    24  	ProcessorTransferName     = "Transfer"
    25  	ProcessorBridgeHopName    = "Hop"
    26  	ProcessorBridgeCelerName  = "CBridge"
    27  	ProcessorSwapParaswapName = "Paraswap"
    28  	ProcessorERC721Name       = "ERC721Transfer"
    29  	ProcessorERC1155Name      = "ERC1155Transfer"
    30  	ProcessorENSRegisterName  = "ENSRegister"
    31  	ProcessorENSReleaseName   = "ENSRelease"
    32  	ProcessorENSPublicKeyName = "ENSPublicKey"
    33  	ProcessorStickersBuyName  = "StickersBuy"
    34  )
    35  
    36  func IsProcessorBridge(name string) bool {
    37  	return name == ProcessorBridgeHopName || name == ProcessorBridgeCelerName
    38  }
    39  
    40  func IsProcessorSwap(name string) bool {
    41  	return name == ProcessorSwapParaswapName
    42  }