-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathconstants.go
65 lines (52 loc) · 2.15 KB
/
constants.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package constants
import (
"fmt"
evmtypes "github.com/cosmos/evm/x/vm/types"
)
const (
// DefaultGasPrice is used in testing as the default to use for transactions
DefaultGasPrice = 20
// ExampleAttoDenom provides an example denom for use in tests
ExampleAttoDenom = "aatom"
// ExampleMicroDenom provides an example denom for use in tests
ExampleMicroDenom = "uatom"
// ExampleDisplayDenom provides an example display denom for use in tests
ExampleDisplayDenom = "atom"
// ExampleBech32Prefix provides an example Bech32 prefix for use in tests
ExampleBech32Prefix = "cosmos"
// ExampleEIP155ChainID provides an example EIP-155 chain ID for use in tests
ExampleEIP155ChainID = 9001
// WEVMOSContractMainnet is the WEVMOS contract address for mainnet
WEVMOSContractMainnet = "0xD4949664cD82660AaE99bEdc034a0deA8A0bd517"
// WEVMOSContractTestnet is the WEVMOS contract address for testnet
WEVMOSContractTestnet = "0xcc491f589b45d4a3c679016195b3fb87d7848210"
// ExampleEvmAddress1 is the example EVM address
ExampleEvmAddressAlice = "0x1e0DE5DB1a39F99cBc67B00fA3415181b3509e42"
// ExampleEvmAddress2 is the example EVM address
ExampleEvmAddressBob = "0x0AFc8e15F0A74E98d0AEC6C67389D2231384D4B2"
)
var (
// ExampleChainIDPrefix provides a chain ID prefix for EIP-155 that can be used in tests
ExampleChainIDPrefix = fmt.Sprintf("cosmos_%d", ExampleEIP155ChainID)
// ExampleChainID provides a chain ID that can be used in tests
ExampleChainID = ExampleChainIDPrefix + "-1"
// SixDecimalsChainID provides a chain ID which is being set up with 6 decimals
SixDecimalsChainID = "ossix_9002-2"
// ExampleChainCoinInfo provides the coin info for the example chain
//
// It is a map of the chain id and its corresponding EvmCoinInfo
// that allows initializing the app with different coin info based on the
// chain id
ExampleChainCoinInfo = map[string]evmtypes.EvmCoinInfo{
ExampleChainID: {
Denom: ExampleAttoDenom,
DisplayDenom: ExampleDisplayDenom,
Decimals: evmtypes.EighteenDecimals,
},
SixDecimalsChainID: {
Denom: ExampleMicroDenom,
DisplayDenom: ExampleDisplayDenom,
Decimals: evmtypes.SixDecimals,
},
}
)