-
Notifications
You must be signed in to change notification settings - Fork 28
/
params.go
46 lines (36 loc) · 1.14 KB
/
params.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
package simapp
import (
"crypto/ed25519"
sdkmath "cosmossdk.io/math"
"github.com/cometbft/cometbft/crypto/secp256k1"
"github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
)
const (
usernamePrefix = "user"
)
// TestUser is simapp user type for testing
type TestUser struct {
PrvKey secp256k1.PrivKey
Address sdk.AccAddress
Balance int64
}
// TestValidator is simapp validator type for testing
type TestValidator struct {
PubKey types.PubKey
Address sdk.ValAddress
ConsAddress sdk.ConsAddress
Power sdkmath.Int
}
var (
// TestParamUsers represents the map of simapp users
TestParamUsers = make(map[string]TestUser)
// TestParamValidatorAddresses represents the map of test validators
TestParamValidatorAddresses = make(map[string]TestValidator)
// TestOVMPublicKeys represents test public keys needed for ovm
TestOVMPublicKeys []ed25519.PublicKey
// TestOVMPrivateKeys represents test private keys needed for ovm
TestOVMPrivateKeys []ed25519.PrivateKey
)
// GenesisModuleAccountsBalances holds the test genesis module accounts balance map.
var GenesisModuleAccountsBalances = map[string]int64{}