Skip to content

Commit

Permalink
refactor: remove batch bridge fee logic (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
zakir-code authored Oct 11, 2024
1 parent 6d2f7ce commit ebd652f
Show file tree
Hide file tree
Showing 57 changed files with 836 additions and 7,553 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ lint-install:
fi

check-no-lint:
@if [ $$(find . -name '*.go' -type f | xargs grep 'nolint\|#nosec' | wc -l) -ne 31 ]; then \
@if [ $$(find . -name '*.go' -type f | xargs grep 'nolint\|#nosec' | wc -l) -ne 29 ]; then \
echo "\033[91m--> increase or decrease nolint, please recheck them\033[0m"; \
echo "\033[91m--> list nolint: \`find . -name '*.go' -type f | xargs grep 'nolint\|#nosec'\`\033[0m"; \
exit 1;\
Expand Down
3 changes: 3 additions & 0 deletions app/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ func Test_MsgServiceRouter(t *testing.T) {
sdk.MsgTypeURL(&legacy.MsgUpdateParams{}): {},
sdk.MsgTypeURL(&legacy.MsgUpdateFXParams{}): {},
sdk.MsgTypeURL(&legacy.MsgUpdateEGFParams{}): {},
sdk.MsgTypeURL(&crosschaintypes.MsgCancelSendToExternal{}): {},
sdk.MsgTypeURL(&crosschaintypes.MsgIncreaseBridgeFee{}): {},
sdk.MsgTypeURL(&crosschaintypes.MsgRequestBatch{}): {},
}
for _, msg := range myApp.InterfaceRegistry().ListImplementations(sdk.MsgInterfaceProtoName) {
if _, ok := deprecated[msg]; ok {
Expand Down
2 changes: 1 addition & 1 deletion app/encoding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestRegisterInterfaces(t *testing.T) {
for implInterfaces.Next() {
count2++
}
assert.Equal(t, 303, count2)
assert.Equal(t, 300, count2)

typeURLMap := interfaceRegistry.FieldByName("typeURLMap").MapRange()
for typeURLMap.Next() {
Expand Down
3 changes: 0 additions & 3 deletions app/interface_registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@
"/fx.gravity.crosschain.v1.MsgBridgeCallResultClaim",
"/fx.gravity.crosschain.v1.MsgBridgeTokenClaim",
"/fx.gravity.crosschain.v1.MsgCancelSendToExternal",
"/fx.gravity.crosschain.v1.MsgCancelSendToExternalResponse",
"/fx.gravity.crosschain.v1.MsgClaim",
"/fx.gravity.crosschain.v1.MsgClaimResponse",
"/fx.gravity.crosschain.v1.MsgConfirm",
Expand All @@ -229,14 +228,12 @@
"/fx.gravity.crosschain.v1.MsgEditBridger",
"/fx.gravity.crosschain.v1.MsgEditBridgerResponse",
"/fx.gravity.crosschain.v1.MsgIncreaseBridgeFee",
"/fx.gravity.crosschain.v1.MsgIncreaseBridgeFeeResponse",
"/fx.gravity.crosschain.v1.MsgOracleSetConfirm",
"/fx.gravity.crosschain.v1.MsgOracleSetConfirmResponse",
"/fx.gravity.crosschain.v1.MsgOracleSetUpdatedClaim",
"/fx.gravity.crosschain.v1.MsgReDelegate",
"/fx.gravity.crosschain.v1.MsgReDelegateResponse",
"/fx.gravity.crosschain.v1.MsgRequestBatch",
"/fx.gravity.crosschain.v1.MsgRequestBatchResponse",
"/fx.gravity.crosschain.v1.MsgSendToExternal",
"/fx.gravity.crosschain.v1.MsgSendToExternalClaim",
"/fx.gravity.crosschain.v1.MsgSendToExternalResponse",
Expand Down
346 changes: 1 addition & 345 deletions contract/ICrossChain.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/statik/statik.go

Large diffs are not rendered by default.

Loading

0 comments on commit ebd652f

Please sign in to comment.