Skip to content

Commit

Permalink
fix(x/crosschain): register MsgConfirm and MsgClaim to sdk.Msg Implem…
Browse files Browse the repository at this point in the history
…entations
  • Loading branch information
fx0x55 committed Jan 2, 2025
1 parent 3556b71 commit aa09502
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ func Test_MsgServiceRouter(t *testing.T) {
sdk.MsgTypeURL(&erc20types.MsgUpdateDenomAlias{}): {},
sdk.MsgTypeURL(&erc20types.MsgRegisterERC20{}): {},
sdk.MsgTypeURL(&erc20types.MsgRegisterCoin{}): {},

// MsgClaim
sdk.MsgTypeURL(&crosschaintypes.MsgSendToExternalClaim{}): {},
sdk.MsgTypeURL(&crosschaintypes.MsgSendToFxClaim{}): {},
sdk.MsgTypeURL(&crosschaintypes.MsgBridgeCallClaim{}): {},
sdk.MsgTypeURL(&crosschaintypes.MsgBridgeTokenClaim{}): {},
sdk.MsgTypeURL(&crosschaintypes.MsgOracleSetUpdatedClaim{}): {},
sdk.MsgTypeURL(&crosschaintypes.MsgBridgeCallResultClaim{}): {},

// MsgConfirm
sdk.MsgTypeURL(&crosschaintypes.MsgConfirmBatch{}): {},
sdk.MsgTypeURL(&crosschaintypes.MsgOracleSetConfirm{}): {},
sdk.MsgTypeURL(&crosschaintypes.MsgBridgeCallConfirm{}): {},
}
for _, msg := range myApp.InterfaceRegistry().ListImplementations(sdk.MsgInterfaceProtoName) {
if _, ok := deprecated[msg]; ok {
Expand Down
6 changes: 6 additions & 0 deletions app/interface_registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -413,17 +413,23 @@
"/fx.gravity.crosschain.v1.MsgAddDelegate",
"/fx.gravity.crosschain.v1.MsgAddOracleDeposit",
"/fx.gravity.crosschain.v1.MsgBondedOracle",
"/fx.gravity.crosschain.v1.MsgBridgeCallClaim",
"/fx.gravity.crosschain.v1.MsgBridgeCallConfirm",
"/fx.gravity.crosschain.v1.MsgBridgeCallResultClaim",
"/fx.gravity.crosschain.v1.MsgBridgeTokenClaim",
"/fx.gravity.crosschain.v1.MsgCancelSendToExternal",
"/fx.gravity.crosschain.v1.MsgClaim",
"/fx.gravity.crosschain.v1.MsgConfirm",
"/fx.gravity.crosschain.v1.MsgConfirmBatch",
"/fx.gravity.crosschain.v1.MsgEditBridger",
"/fx.gravity.crosschain.v1.MsgIncreaseBridgeFee",
"/fx.gravity.crosschain.v1.MsgOracleSetConfirm",
"/fx.gravity.crosschain.v1.MsgOracleSetUpdatedClaim",
"/fx.gravity.crosschain.v1.MsgReDelegate",
"/fx.gravity.crosschain.v1.MsgRequestBatch",
"/fx.gravity.crosschain.v1.MsgSendToExternal",
"/fx.gravity.crosschain.v1.MsgSendToExternalClaim",
"/fx.gravity.crosschain.v1.MsgSendToFxClaim",
"/fx.gravity.crosschain.v1.MsgSetOrchestratorAddress",
"/fx.gravity.crosschain.v1.MsgUnbondedOracle",
"/fx.gravity.crosschain.v1.MsgUpdateChainOracles",
Expand Down
10 changes: 10 additions & 0 deletions x/crosschain/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,17 @@ func RegisterInterfaces(registry types.InterfaceRegistry) {
&MsgUpdateChainOracles{},

&MsgClaim{},
&MsgSendToExternalClaim{},
&MsgSendToFxClaim{},
&MsgBridgeCallClaim{},
&MsgBridgeTokenClaim{},
&MsgOracleSetUpdatedClaim{},
&MsgBridgeCallResultClaim{},

&MsgConfirm{},
&MsgConfirmBatch{},
&MsgOracleSetConfirm{},
&MsgBridgeCallConfirm{},
)

registry.RegisterImplementations(
Expand Down

0 comments on commit aa09502

Please sign in to comment.