2017-03-15 21:03:01 +00:00
|
|
|
package params
|
|
|
|
|
2018-04-20 12:23:18 +00:00
|
|
|
import "github.com/ethereum/go-ethereum/p2p/discv5"
|
|
|
|
|
2017-03-15 21:03:01 +00:00
|
|
|
const (
|
2018-04-10 06:44:09 +00:00
|
|
|
// StatusDatabase path relative to DataDir.
|
|
|
|
StatusDatabase = "status-db"
|
|
|
|
|
2024-06-06 14:08:17 +00:00
|
|
|
ArchivesRelativePath = "data/archivedata"
|
|
|
|
TorrentTorrentsRelativePath = "data/torrents"
|
|
|
|
|
2023-11-24 15:39:36 +00:00
|
|
|
// SendTransactionMethodName https://docs.walletconnect.com/advanced/rpc-reference/ethereum-rpc#eth_sendtransaction
|
2017-08-15 10:27:12 +00:00
|
|
|
SendTransactionMethodName = "eth_sendTransaction"
|
2018-04-12 16:17:10 +00:00
|
|
|
|
2023-11-24 15:39:36 +00:00
|
|
|
// SendTransactionMethodName https://docs.walletconnect.com/advanced/rpc-reference/ethereum-rpc#eth_sendrawtransaction
|
|
|
|
SendRawTransactionMethodName = "eth_sendRawTransaction"
|
|
|
|
|
2022-10-31 15:52:21 +00:00
|
|
|
BalanceMethodName = "eth_getBalance"
|
|
|
|
|
2018-04-09 08:18:22 +00:00
|
|
|
// AccountsMethodName defines the name for listing the currently signed accounts.
|
|
|
|
AccountsMethodName = "eth_accounts"
|
2018-04-12 16:17:10 +00:00
|
|
|
|
2023-11-24 15:39:36 +00:00
|
|
|
// PersonalSignMethodName https://docs.walletconnect.com/advanced/rpc-reference/ethereum-rpc#personal_sign
|
2018-04-09 08:18:22 +00:00
|
|
|
PersonalSignMethodName = "personal_sign"
|
2017-08-15 10:27:12 +00:00
|
|
|
|
2023-11-24 15:39:36 +00:00
|
|
|
// SignMethodName https://docs.walletconnect.com/advanced/rpc-reference/ethereum-rpc#eth_sign
|
|
|
|
SignMethodName = "eth_sign"
|
|
|
|
|
|
|
|
// SignTransactionMethodName https://docs.walletconnect.com/advanced/rpc-reference/ethereum-rpc#eth_signtransaction
|
|
|
|
SignTransactionMethodName = "eth_signTransaction"
|
|
|
|
|
|
|
|
// SignTypedDataMethodName https://docs.walletconnect.com/advanced/rpc-reference/ethereum-rpc#eth_signtypeddata
|
2023-12-12 08:35:51 +00:00
|
|
|
SignTypedDataMethodName = "eth_signTypedData"
|
|
|
|
SignTypedDataV3MethodName = "eth_signTypedData_v3"
|
|
|
|
SignTypedDataV4MethodName = "eth_signTypedData_v4"
|
2023-11-24 15:39:36 +00:00
|
|
|
|
|
|
|
WalletSwitchEthereumChainMethodName = "wallet_switchEthereumChain"
|
|
|
|
|
2018-04-18 11:04:02 +00:00
|
|
|
// PersonalRecoverMethodName defines the name for `personal.recover` API.
|
|
|
|
PersonalRecoverMethodName = "personal_ecRecover"
|
|
|
|
|
2017-03-15 21:03:01 +00:00
|
|
|
// DefaultGas default amount of gas used for transactions
|
|
|
|
DefaultGas = 180000
|
|
|
|
|
2017-04-09 22:16:05 +00:00
|
|
|
// WhisperMinimumPoW amount of work for Whisper message to be added to sending queue
|
2020-05-14 05:40:40 +00:00
|
|
|
// We enforce a minimum as a bland spam prevention mechanism.
|
2020-05-13 13:10:04 +00:00
|
|
|
WhisperMinimumPoW = 0.000002
|
2017-04-09 22:16:05 +00:00
|
|
|
|
|
|
|
// WhisperTTL is time to live for messages, in seconds
|
|
|
|
WhisperTTL = 120
|
2017-03-18 19:00:40 +00:00
|
|
|
|
2020-01-08 11:12:23 +00:00
|
|
|
// WakuMinimumPoW amount of work for Whisper message to be added to sending queue
|
2020-05-14 05:40:40 +00:00
|
|
|
// We enforce a minimum as a bland spam prevention mechanism.
|
2020-05-13 13:10:04 +00:00
|
|
|
WakuMinimumPoW = 0.000002
|
2020-01-08 11:12:23 +00:00
|
|
|
|
|
|
|
// WakuTTL is time to live for messages, in seconds
|
|
|
|
WakuTTL = 120
|
|
|
|
|
2017-10-25 12:08:33 +00:00
|
|
|
// MainnetEthereumNetworkURL is URL where the upstream ethereum network is loaded to
|
2017-08-15 10:27:12 +00:00
|
|
|
// allow us avoid syncing node.
|
2017-10-25 12:08:33 +00:00
|
|
|
MainnetEthereumNetworkURL = "https://mainnet.infura.io/nKmXgiFgc2KqtoQ8BCGJ"
|
2017-08-15 10:27:12 +00:00
|
|
|
|
2024-10-15 07:29:21 +00:00
|
|
|
// SepoliaEthereumNetworkURL is an open RPC endpoint to Sepolia network
|
|
|
|
SepoliaEthereumNetworkURL = "https://sepolia.etherscan.io/"
|
2019-03-14 08:43:32 +00:00
|
|
|
|
2017-05-03 14:24:48 +00:00
|
|
|
// MainNetworkID is id of the main network
|
|
|
|
MainNetworkID = 1
|
2017-05-02 14:30:11 +00:00
|
|
|
|
2024-10-15 07:29:21 +00:00
|
|
|
// SepoliaNetworkID is id of sepolia test network
|
|
|
|
SepoliaNetworkID = 11155111
|
2019-03-14 08:43:32 +00:00
|
|
|
|
2017-10-16 21:54:56 +00:00
|
|
|
// StatusChainNetworkID is id of a test network (private chain)
|
|
|
|
StatusChainNetworkID = 777
|
2018-04-20 12:23:18 +00:00
|
|
|
|
|
|
|
// WhisperDiscv5Topic used to register and search for whisper peers using discovery v5.
|
|
|
|
WhisperDiscv5Topic = discv5.Topic("whisper")
|
2018-08-27 09:32:14 +00:00
|
|
|
|
2018-09-21 14:09:31 +00:00
|
|
|
// MailServerDiscv5Topic used to register and search for mail server peers using discovery v5.
|
|
|
|
MailServerDiscv5Topic = discv5.Topic("whispermail")
|
|
|
|
|
2018-08-27 09:32:14 +00:00
|
|
|
// LESDiscoveryIdentifier is a prefix for topic used for LES peers discovery.
|
|
|
|
LESDiscoveryIdentifier = "LES2@"
|
2018-04-20 12:23:18 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// WhisperDiscv5Limits declares min and max limits for peers with whisper topic.
|
|
|
|
WhisperDiscv5Limits = Limits{2, 2}
|
2018-08-24 11:20:50 +00:00
|
|
|
// LesDiscoveryLimits default limits used if LES and discovery are enabled.
|
|
|
|
LesDiscoveryLimits = Limits{2, 2}
|
2017-05-17 16:23:30 +00:00
|
|
|
)
|