@@ -7,6 +7,13 @@ import (
77
88const RouterKey = ModuleName
99
10+ // oracle message types
11+ const (
12+ TypeMsgRelayPriceFeedPrice = "relayPriceFeedPrice"
13+ TypeMsgRelayBandRates = "relayBandRates"
14+ TypeMsgRelayCoinbaseMessages = "relayCoinbaseMessages"
15+ )
16+
1017var (
1118 _ sdk.Msg = & MsgRelayPriceFeedPrice {}
1219 _ sdk.Msg = & MsgRelayBandRates {}
1724func (msg MsgRelayPriceFeedPrice ) Route () string { return RouterKey }
1825
1926// Type implements the sdk.Msg interface. It should return the action.
20- func (msg MsgRelayPriceFeedPrice ) Type () string { return "msgRelayPriceFeedPrice" }
27+ func (msg MsgRelayPriceFeedPrice ) Type () string { return TypeMsgRelayPriceFeedPrice }
2128
2229// ValidateBasic implements the sdk.Msg interface. It runs stateless checks on the message
2330func (msg MsgRelayPriceFeedPrice ) ValidateBasic () error {
@@ -55,7 +62,7 @@ func (msg MsgRelayPriceFeedPrice) GetSigners() []sdk.AccAddress {
5562func (msg MsgRelayBandRates ) Route () string { return RouterKey }
5663
5764// Type implements the sdk.Msg interface. It should return the action.
58- func (msg MsgRelayBandRates ) Type () string { return "msgRelayBandRates" }
65+ func (msg MsgRelayBandRates ) Type () string { return TypeMsgRelayBandRates }
5966
6067// ValidateBasic implements the sdk.Msg interface for MsgRelay.
6168func (msg MsgRelayBandRates ) ValidateBasic () error {
@@ -96,7 +103,7 @@ func (msg MsgRelayBandRates) GetSigners() []sdk.AccAddress {
96103func (msg MsgRelayCoinbaseMessages ) Route () string { return RouterKey }
97104
98105// Type implements the sdk.Msg interface. It should return the action.
99- func (msg MsgRelayCoinbaseMessages ) Type () string { return "msgRelayCoinbaseMessages" }
106+ func (msg MsgRelayCoinbaseMessages ) Type () string { return TypeMsgRelayCoinbaseMessages }
100107
101108// ValidateBasic implements the sdk.Msg interface for MsgRelay.
102109func (msg MsgRelayCoinbaseMessages ) ValidateBasic () error {
0 commit comments