/
context.go
21 lines (19 loc) · 928 Bytes
/
context.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package prettyprint
var (
// ContextKeyGenesisHash is the key to retrieve the Genesis document's hash
// value from a context.
ContextKeyGenesisHash = contextKey("genesis/hash")
// ContextKeyTokenSymbol is the key to retrieve the token's ticker symbol
// value from a context.
ContextKeyTokenSymbol = contextKey("staking/token-symbol")
// ContextKeyTokenValueExponent is the key to retrieve the token's value
// base-10 exponent from a context.
ContextKeyTokenValueExponent = contextKey("staking/token-value-exponent")
// ContextKeyTokenValueSign is the key to retrieve the token's value sign
// from a context.
ContextKeyTokenValueSign = contextKey("staking/token-value-sign")
// ContextKeyCommissionScheduleIndex is the key to retrieve the rate (bound)
// index in a commission schedule (amendment).
ContextKeyCommissionScheduleIndex = contextKey("staking/commission-schedule-index")
)
type contextKey string