-
Notifications
You must be signed in to change notification settings - Fork 0
/
params.go
42 lines (33 loc) · 1001 Bytes
/
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
package simapp
import (
"crypto/ed25519"
"github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/tendermint/tendermint/crypto/secp256k1"
)
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 sdk.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
)