-
Notifications
You must be signed in to change notification settings - Fork 28
/
consts.go
37 lines (28 loc) · 1.19 KB
/
consts.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
package types
import sdk "github.com/cosmos/cosmos-sdk/types"
// JWT constants
const (
// JWTHeaderIndex is the index of the header in the JWT ticket
JWTHeaderIndex = 0
// JWTPayloadIndex is the index of the payload in the JWT ticket
JWTPayloadIndex = 1
// JWTSeparator is the separator character between JWT ticket parts
JWTSeparator = "."
// DefaultTimeWeight is the default weight of the time for JWT ticket expiration
DefaultTimeWeight = 1
// MinPubKeysCount is the minimum allowed public keys in the key vault
MinPubKeysCount = 4
// MaxPubKeysCount is the maximum allowed public keys in the key vault
MaxPubKeysCount = 5
)
const (
// MaxValidProposalMinutes is the maximum elapsed time in minutes since
// the start time of a proposal to be acceptable.
MaxValidProposalMinutes = 30
// MaxValidProposalSeconds is the maximum elapsed time in seconds since
// the start time of a proposal to be acceptable.
MaxValidProposalSeconds = MaxValidProposalMinutes * 60 // 30 minutes
)
// minVoteMajorityForDecisionPercentage is the minimum majority percentage of votes for
// a proposal to be valid for making decision.
var minVoteMajorityForDecisionPercentage = sdk.NewDecWithPrec(6667, 4) // 66.67%