-
Notifications
You must be signed in to change notification settings - Fork 0
/
celo.go
26 lines (22 loc) · 1019 Bytes
/
celo.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package ethutils
import "math/big"
// Common error strings returned by v1 of celo-blockchain nodes.
const (
ErrInsufficientGas = "w3: call failed: insufficient funds for gas * price + value + gatewayFee"
ErrGasPriceLow = "w3: call failed: gasprice is less than gas price minimum floor"
ErrNonceLow = "w3: call failed: nonce too low"
CeloContractMainnet = "0x471EcE3750Da237f93B8E339c536989b8978a438"
CeloContractTestnet = "0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"
CUSDContractMainnet = "0x765DE816845861e75A25fCA122bb6898B8B1282a"
CUSDContractTestnet = "0x874069Fa1Eb16D44d622F2e0Ca25eeA172369bC1"
MinGasContractMainnet = "0xDfca3a8d7699D8bAfe656823AD60C17cb8270ECC"
MinGasContractTestnet = "0xd0Bf87a5936ee17014a057143a494Dc5C5d51E5e"
)
var (
// SafeGasLimit is set to 350k gas units.
SafeGasLimit = 350000
// SafeGasFeeCap is set to 2x the current MinBaseFee of 5 gwei.
SafeGasFeeCap = big.NewInt(10000000000)
// SafeGasTipCap is set to 5 wei.
SafeGasTipCap = big.NewInt(5)
)