-
Notifications
You must be signed in to change notification settings - Fork 0
/
params.go
23 lines (19 loc) · 829 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
package params
import (
"github.com/Moonyongjung/xpriv.go/key"
"github.com/Moonyongjung/xpriv.go/types"
"github.com/Moonyongjung/xpla-private-chain/app/params"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
paramsproposal "github.com/cosmos/cosmos-sdk/x/params/types/proposal"
)
// (Tx) make msg - param change
func MakeProposalParamChangeMsg(paramChangeMsg types.ParamChangeMsg, privKey key.PrivateKey, encodingConfig params.EncodingConfig) (govtypes.MsgSubmitProposal, error) {
return parseProposalParamChangeArgs(paramChangeMsg, privKey, encodingConfig)
}
// (Query) make msg - subspace
func MakeQueryParamsSubspaceMsg(subspaceMsg types.SubspaceMsg) (paramsproposal.QueryParamsRequest, error) {
return paramsproposal.QueryParamsRequest{
Subspace: subspaceMsg.Subspace,
Key: subspaceMsg.Key,
}, nil
}