-
Notifications
You must be signed in to change notification settings - Fork 99
/
wire.go
85 lines (67 loc) · 4.09 KB
/
wire.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
85
package msg
import (
"github.com/tendermint/go-amino"
)
var MsgCdc = amino.NewCodec()
func RegisterCodec(cdc *amino.Codec) {
cdc.RegisterInterface((*Msg)(nil), nil)
cdc.RegisterConcrete(SideChainSubmitProposalMsg{}, "cosmos-sdk/MsgSideChainSubmitProposal", nil)
cdc.RegisterConcrete(SideChainDepositMsg{}, "cosmos-sdk/MsgSideChainDeposit", nil)
cdc.RegisterConcrete(SideChainVoteMsg{}, "cosmos-sdk/MsgSideChainVote", nil)
cdc.RegisterInterface((*SCParam)(nil), nil)
cdc.RegisterConcrete(&OracleParams{}, "params/OracleParamSet", nil)
cdc.RegisterConcrete(&StakeParams{}, "params/StakeParamSet", nil)
cdc.RegisterConcrete(&SlashParams{}, "params/SlashParamSet", nil)
cdc.RegisterConcrete(&IbcParams{}, "params/IbcParamSet", nil)
cdc.RegisterConcrete(CreateOrderMsg{}, "dex/NewOrder", nil)
cdc.RegisterConcrete(CancelOrderMsg{}, "dex/CancelOrder", nil)
cdc.RegisterConcrete(TokenIssueMsg{}, "tokens/IssueMsg", nil)
cdc.RegisterConcrete(TokenBurnMsg{}, "tokens/BurnMsg", nil)
cdc.RegisterConcrete(TransferOwnershipMsg{}, "tokens/TransferOwnershipMsg", nil)
cdc.RegisterConcrete(TimeLockMsg{}, "tokens/TimeLockMsg", nil)
cdc.RegisterConcrete(TokenFreezeMsg{}, "tokens/FreezeMsg", nil)
cdc.RegisterConcrete(TokenUnfreezeMsg{}, "tokens/UnfreezeMsg", nil)
cdc.RegisterConcrete(TimeUnlockMsg{}, "tokens/TimeUnlockMsg", nil)
cdc.RegisterConcrete(TimeRelockMsg{}, "tokens/TimeRelockMsg", nil)
cdc.RegisterConcrete(HTLTMsg{}, "tokens/HTLTMsg", nil)
cdc.RegisterConcrete(DepositHTLTMsg{}, "tokens/DepositHTLTMsg", nil)
cdc.RegisterConcrete(ClaimHTLTMsg{}, "tokens/ClaimHTLTMsg", nil)
cdc.RegisterConcrete(RefundHTLTMsg{}, "tokens/RefundHTLTMsg", nil)
cdc.RegisterConcrete(DexListMsg{}, "dex/ListMsg", nil)
cdc.RegisterConcrete(MintMsg{}, "tokens/MintMsg", nil)
//Must use cosmos-sdk.
cdc.RegisterConcrete(SendMsg{}, "cosmos-sdk/Send", nil)
cdc.RegisterConcrete(SubmitProposalMsg{}, "cosmos-sdk/MsgSubmitProposal", nil)
cdc.RegisterConcrete(DepositMsg{}, "cosmos-sdk/MsgDeposit", nil)
cdc.RegisterConcrete(VoteMsg{}, "cosmos-sdk/MsgVote", nil)
cdc.RegisterConcrete(SetAccountFlagsMsg{}, "scripts/SetAccountFlagsMsg", nil)
cdc.RegisterConcrete(MsgCreateValidatorOpen{}, "cosmos-sdk/MsgCreateValidatorOpen", nil)
cdc.RegisterConcrete(MsgRemoveValidator{}, "cosmos-sdk/MsgRemoveValidator", nil)
cdc.RegisterConcrete(MsgEditValidator{}, "cosmos-sdk/MsgEditValidator", nil)
cdc.RegisterConcrete(MsgDelegate{}, "cosmos-sdk/MsgDelegate", nil)
cdc.RegisterConcrete(MsgRedelegate{}, "cosmos-sdk/MsgRedelegate", nil)
cdc.RegisterConcrete(MsgUndelegate{}, "cosmos-sdk/MsgUndelegate", nil)
cdc.RegisterConcrete(CreateSideChainValidatorMsg{}, "cosmos-sdk/MsgCreateSideChainValidator", nil)
cdc.RegisterConcrete(MsgCreateSideChainValidatorWithVoteAddr{}, "cosmos-sdk/MsgCreateSideChainValidatorWithVoteAddr", nil)
cdc.RegisterConcrete(EditSideChainValidatorMsg{}, "cosmos-sdk/MsgEditSideChainValidator", nil)
cdc.RegisterConcrete(MsgEditSideChainValidatorWithVoteAddr{}, "cosmos-sdk/MsgEditSideChainValidatorWithVoteAddr", nil)
cdc.RegisterConcrete(SideChainDelegateMsg{}, "cosmos-sdk/MsgSideChainDelegate", nil)
cdc.RegisterConcrete(SideChainRedelegateMsg{}, "cosmos-sdk/MsgSideChainRedelegate", nil)
cdc.RegisterConcrete(SideChainUndelegateMsg{}, "cosmos-sdk/MsgSideChainUndelegate", nil)
cdc.RegisterConcrete(MsgSideChainUnjail{}, "cosmos-sdk/MsgSideChainUnjail", nil)
cdc.RegisterConcrete(MsgUnjail{}, "cosmos-sdk/MsgUnjail", nil)
cdc.RegisterConcrete(BindMsg{}, "bridge/BindMsg", nil)
cdc.RegisterConcrete(TransferOutMsg{}, "bridge/TransferOutMsg", nil)
cdc.RegisterConcrete(Claim{}, "oracle/Claim", nil)
cdc.RegisterConcrete(Prophecy{}, "oracle/Prophecy", nil)
cdc.RegisterConcrete(Status{}, "oracle/Status", nil)
cdc.RegisterConcrete(DBProphecy{}, "oracle/DBProphecy", nil)
cdc.RegisterConcrete(ClaimMsg{}, "oracle/ClaimMsg", nil)
cdc.RegisterConcrete(MiniTokenIssueMsg{}, "tokens/IssueMiniMsg", nil)
cdc.RegisterConcrete(TinyTokenIssueMsg{}, "tokens/IssueTinyMsg", nil)
cdc.RegisterConcrete(SetURIMsg{}, "tokens/SetURIMsg", nil)
cdc.RegisterConcrete(ListMiniMsg{}, "dex/ListMiniMsg", nil)
}
func init() {
RegisterCodec(MsgCdc)
}