This repository has been archived by the owner on Sep 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
core_staking_msg.go
84 lines (72 loc) · 1.77 KB
/
core_staking_msg.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package types
import (
sdk "github.com/cosmos/cosmos-sdk/types"
)
var (
DefaultTokens = sdk.TokensFromConsensusPower(100, sdk.DefaultPowerReduction)
DefaultAmount = DefaultTokens.String() + XplaDenom
DefaultCommissionRate = "0.1"
DefaultCommissionMaxRate = "0.2"
DefaultCommissionMaxChangeRate = "0.01"
DefaultMinSelfDelegation = "1"
DefaultHomeDir = ".xpla"
Memo string
)
type CreateValidatorMsg struct {
NodeKey string
PrivValidatorKey string
ValidatorAddress string
HomeDir string
Website string
SecurityContact string
Identity string
Moniker string
Amount string
Details string
CommissionRate string
CommissionMaxRate string
CommissionMaxChangeRate string
MinSelfDelegation string
ServerIp string
}
type EditValidatorMsg struct {
Website string
SecurityContact string
Identity string
Details string
Moniker string
CommissionRate string
MinSelfDelegation string
}
type DelegateMsg struct {
Amount string
ValAddr string
}
type RedelegateMsg struct {
Amount string
ValSrcAddr string
ValDstAddr string
}
type UnbondMsg struct {
Amount string
ValAddr string
}
type QueryValidatorMsg struct {
ValidatorAddr string
}
type QueryDelegationMsg struct {
DelegatorAddr string
ValidatorAddr string
}
type QueryUnbondingDelegationMsg struct {
DelegatorAddr string
ValidatorAddr string
}
type QueryRedelegationMsg struct {
DelegatorAddr string
SrcValidatorAddr string
DstValidatorAddr string
}
type HistoricalInfoMsg struct {
Height string
}