-
Notifications
You must be signed in to change notification settings - Fork 0
/
slashing.go
32 lines (26 loc) · 1.03 KB
/
slashing.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
package slashing
import (
"github.com/Moonyongjung/xpriv.go/core"
"github.com/Moonyongjung/xpriv.go/key"
"github.com/Moonyongjung/xpriv.go/types"
"github.com/Moonyongjung/xpla-private-chain/app/params"
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
)
// (Tx) make msg - unjail
func MakeUnjailMsg(privKey key.PrivateKey) (slashingtypes.MsgUnjail, error) {
return parseUnjailArgs(privKey)
}
// (Query) make msg - slahsing params
func MakeQuerySlashingParamsMsg() (slashingtypes.QueryParamsRequest, error) {
return slashingtypes.QueryParamsRequest{}, nil
}
// (Query) make msg - signing infos
func MakeQuerySigningInfosMsg() (slashingtypes.QuerySigningInfosRequest, error) {
return slashingtypes.QuerySigningInfosRequest{
Pagination: core.PageRequest,
}, nil
}
// (Query) make msg - signing info
func MakeQuerySigningInfoMsg(signingInfoMsg types.SigningInfoMsg, xplacEncodingConfig params.EncodingConfig) (slashingtypes.QuerySigningInfoRequest, error) {
return parseQuerySigingInfoArgs(signingInfoMsg, xplacEncodingConfig)
}