github.com/status-im/status-go@v1.1.0/params/defaults.go (about)

     1  package params
     2  
     3  import "github.com/ethereum/go-ethereum/p2p/discv5"
     4  
     5  const (
     6  	// StatusDatabase path relative to DataDir.
     7  	StatusDatabase = "status-db"
     8  
     9  	ArchivesRelativePath        = "data/archivedata"
    10  	TorrentTorrentsRelativePath = "data/torrents"
    11  
    12  	// SendTransactionMethodName https://docs.walletconnect.com/advanced/rpc-reference/ethereum-rpc#eth_sendtransaction
    13  	SendTransactionMethodName = "eth_sendTransaction"
    14  
    15  	// SendTransactionMethodName https://docs.walletconnect.com/advanced/rpc-reference/ethereum-rpc#eth_sendrawtransaction
    16  	SendRawTransactionMethodName = "eth_sendRawTransaction"
    17  
    18  	BalanceMethodName = "eth_getBalance"
    19  
    20  	// AccountsMethodName defines the name for listing the currently signed accounts.
    21  	AccountsMethodName = "eth_accounts"
    22  
    23  	// PersonalSignMethodName https://docs.walletconnect.com/advanced/rpc-reference/ethereum-rpc#personal_sign
    24  	PersonalSignMethodName = "personal_sign"
    25  
    26  	// SignMethodName https://docs.walletconnect.com/advanced/rpc-reference/ethereum-rpc#eth_sign
    27  	SignMethodName = "eth_sign"
    28  
    29  	// SignTransactionMethodName https://docs.walletconnect.com/advanced/rpc-reference/ethereum-rpc#eth_signtransaction
    30  	SignTransactionMethodName = "eth_signTransaction"
    31  
    32  	// SignTypedDataMethodName https://docs.walletconnect.com/advanced/rpc-reference/ethereum-rpc#eth_signtypeddata
    33  	SignTypedDataMethodName   = "eth_signTypedData"
    34  	SignTypedDataV3MethodName = "eth_signTypedData_v3"
    35  	SignTypedDataV4MethodName = "eth_signTypedData_v4"
    36  
    37  	WalletSwitchEthereumChainMethodName = "wallet_switchEthereumChain"
    38  
    39  	// PersonalRecoverMethodName defines the name for `personal.recover` API.
    40  	PersonalRecoverMethodName = "personal_ecRecover"
    41  
    42  	// DefaultGas default amount of gas used for transactions
    43  	DefaultGas = 180000
    44  
    45  	// WhisperMinimumPoW amount of work for Whisper message to be added to sending queue
    46  	// We enforce a minimum as a bland spam prevention mechanism.
    47  	WhisperMinimumPoW = 0.000002
    48  
    49  	// WhisperTTL is time to live for messages, in seconds
    50  	WhisperTTL = 120
    51  
    52  	// WakuMinimumPoW amount of work for Whisper message to be added to sending queue
    53  	// We enforce a minimum as a bland spam prevention mechanism.
    54  	WakuMinimumPoW = 0.000002
    55  
    56  	// WakuTTL is time to live for messages, in seconds
    57  	WakuTTL = 120
    58  
    59  	// MainnetEthereumNetworkURL is URL where the upstream ethereum network is loaded to
    60  	// allow us avoid syncing node.
    61  	MainnetEthereumNetworkURL = "https://mainnet.infura.io/nKmXgiFgc2KqtoQ8BCGJ"
    62  
    63  	// GoerliEthereumNetworkURL is an open RPC endpoint to Goerli network
    64  	// Other RPC endpoints are available here: http://goerli.blockscout.com/
    65  	GoerliEthereumNetworkURL = "http://goerli.blockscout.com/"
    66  
    67  	// MainNetworkID is id of the main network
    68  	MainNetworkID = 1
    69  
    70  	// GoerliNetworkID is id of goerli test network (PoA)
    71  	GoerliNetworkID = 5
    72  
    73  	// StatusChainNetworkID is id of a test network (private chain)
    74  	StatusChainNetworkID = 777
    75  
    76  	// WhisperDiscv5Topic used to register and search for whisper peers using discovery v5.
    77  	WhisperDiscv5Topic = discv5.Topic("whisper")
    78  
    79  	// MailServerDiscv5Topic used to register and search for mail server peers using discovery v5.
    80  	MailServerDiscv5Topic = discv5.Topic("whispermail")
    81  
    82  	// LESDiscoveryIdentifier is a prefix for topic used for LES peers discovery.
    83  	LESDiscoveryIdentifier = "LES2@"
    84  )
    85  
    86  var (
    87  	// WhisperDiscv5Limits declares min and max limits for peers with whisper topic.
    88  	WhisperDiscv5Limits = Limits{2, 2}
    89  	// LesDiscoveryLimits default limits used if LES and discovery are enabled.
    90  	LesDiscoveryLimits = Limits{2, 2}
    91  )