Skip to content

Commit 0177972

Browse files
chore: remove ics20-2 (#7951)
* remove ics20-2 * update callbacks for removing ics20-2 * lint * fix test + cleanup * fix upgrade tests * fix more upgrade tests * Update modules/apps/transfer/v2/ibc_module.go --------- Co-authored-by: Aditya <[email protected]>
1 parent 7ee3cb0 commit 0177972

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+1114
-8029
lines changed

.github/workflows/e2e-compatibility.yaml

-9
Original file line numberDiff line numberDiff line change
@@ -218,15 +218,6 @@ jobs:
218218
test-file: "e2e/tests/transfer/authz_test.go"
219219
release-version: "${{ needs.determine-image-tag.outputs.release-version }}"
220220

221-
transfer-forwarding-test:
222-
needs:
223-
- build-release-images
224-
- determine-image-tag
225-
uses: ./.github/workflows/e2e-compatibility-workflow-call.yaml
226-
with:
227-
test-file: "e2e/tests/transfer/forwarding_test.go"
228-
release-version: "${{ needs.determine-image-tag.outputs.release-version }}"
229-
230221
transfer-incentivized-test-a:
231222
needs:
232223
- build-release-images

.github/workflows/e2e-fork.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
output=$(go run cmd/build_test_matrix/main.go)
3333
echo "matrix=$output" >> $GITHUB_OUTPUT
3434
env:
35-
TEST_EXCLUSIONS: 'TestUpgradeTestSuite,TestIBCWasmUpgradeTestSuite'
35+
TEST_EXCLUSIONS: 'TestUpgradeTestSuite'
3636

3737
e2e-fork:
3838
env:

.github/workflows/e2e-test-workflow-call.yml

-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ jobs:
257257
- entrypoint: TestConnectionTestSuite
258258
- entrypoint: TestInterchainAccountsGovTestSuite
259259
- entrypoint: TestIncentivizedTransferTestSuite
260-
- entrypoint: TestTransferForwardingTestSuite
261260
steps:
262261
- uses: actions/checkout@v4
263262
with:

.github/workflows/e2e-upgrade.yaml

-21
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,6 @@ jobs:
6969
test: "TestV8ToV8_1ChainUpgrade_FeeMiddlewareChannelUpgrade"
7070
upload-logs: true
7171

72-
upgrade-ibcwasm-v8:
73-
uses: ./.github/workflows/e2e-test-workflow-call.yml
74-
with:
75-
chain-image: ghcr.io/cosmos/ibc-go-wasm-simd
76-
chain-a-tag: v7.3.0-e2e-upgrade
77-
chain-b-tag: v7.3.0-e2e-upgrade
78-
upgrade-plan-name: "ibcwasm-v8"
79-
test-entry-point: "TestIBCWasmUpgradeTestSuite"
80-
test: "TestIBCWasmChainUpgrade"
81-
upload-logs: true
82-
8372
upgrade-v9:
8473
uses: ./.github/workflows/e2e-test-workflow-call.yml
8574
with:
@@ -102,13 +91,3 @@ jobs:
10291
test: "TestV8ToV9ChainUpgrade_Localhost"
10392
upload-logs: true
10493

105-
upgrade-v9-channel-upgrades:
106-
uses: ./.github/workflows/e2e-test-workflow-call.yml
107-
with:
108-
chain-image: ghcr.io/cosmos/ibc-go-simd
109-
chain-a-tag: v8.4.0
110-
chain-b-tag: v9.0.0
111-
upgrade-plan-name: "v9"
112-
test-entry-point: "TestUpgradeTestSuite"
113-
test: "TestV8ToV9ChainUpgrade_ICS20v2ChannelUpgrade"
114-
upload-logs: true

.github/workflows/e2e.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ jobs:
6666
chain-b-tag: '${{ needs.determine-image-tag.outputs.simd-tag }}'
6767
# on regular PRs we won't run upgrade tests.
6868
# NOTE: we are excluding TestTransferTestSuite as we run this full suite instead of each individual test.
69-
test-exclusions: 'TestUpgradeTestSuite,TestIBCWasmUpgradeTestSuite,TestTransferTestSuite,TestAuthzTransferTestSuite,TestTransferTestSuiteSendReceive,TestTransferTestSuiteSendEnabled,TestTransferLocalhostTestSuite,TestConnectionTestSuite,TestInterchainAccountsGovTestSuite,TestIncentivizedTransferTestSuite,TestTransferForwardingTestSuite'
69+
test-exclusions: 'TestUpgradeTestSuite,TestTransferTestSuite,TestAuthzTransferTestSuite,TestTransferTestSuiteSendReceive,TestTransferTestSuiteSendEnabled,TestTransferLocalhostTestSuite,TestConnectionTestSuite,TestInterchainAccountsGovTestSuite,TestIncentivizedTransferTestSuite'
7070
temp-run-full-suite: true

e2e/tests/core/03-connection/connection_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func (s *ConnectionTestSuite) TestMaxExpectedTimePerBlockParam() {
114114

115115
t.Run("ensure packets can be received, send from chainB to chainA", func(t *testing.T) {
116116
t.Run("send tokens from chainB to chainA", func(t *testing.T) {
117-
transferTxResp := s.Transfer(ctx, chainB, chainBWallet, channelA.Counterparty.PortID, channelA.Counterparty.ChannelID, testvalues.DefaultTransferCoins(chainBDenom), chainBAddress, chainAAddress, s.GetTimeoutHeight(ctx, chainA), 0, "", nil)
117+
transferTxResp := s.Transfer(ctx, chainB, chainBWallet, channelA.Counterparty.PortID, channelA.Counterparty.ChannelID, testvalues.DefaultTransferAmount(chainBDenom), chainBAddress, chainAAddress, s.GetTimeoutHeight(ctx, chainA), 0, "")
118118
s.AssertTxSuccess(transferTxResp)
119119
})
120120

e2e/tests/transfer/authz_test.go

+4-8
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,12 @@ func (suite *AuthzTransferTestSuite) TestAuthz_MsgTransfer_Succeeds() {
129129
channelA.PortID,
130130
channelA.ChannelID,
131131
channelA.Version,
132-
testvalues.DefaultTransferCoins(chainADenom),
132+
testvalues.DefaultTransferAmount(chainADenom),
133133
granterAddress,
134134
receiverWalletAddress,
135135
suite.GetTimeoutHeight(ctx, chainB),
136136
0,
137137
"",
138-
nil,
139138
)
140139

141140
protoAny, err := codectypes.NewAnyWithValue(transferMsg)
@@ -190,13 +189,12 @@ func (suite *AuthzTransferTestSuite) TestAuthz_MsgTransfer_Succeeds() {
190189
channelA.PortID,
191190
channelA.ChannelID,
192191
channelA.Version,
193-
testvalues.DefaultTransferCoins(chainADenom),
192+
testvalues.DefaultTransferAmount(chainADenom),
194193
granterAddress,
195194
receiverWalletAddress,
196195
suite.GetTimeoutHeight(ctx, chainB),
197196
0,
198197
"",
199-
nil,
200198
)
201199

202200
protoAny, err := codectypes.NewAnyWithValue(transferMsg)
@@ -276,13 +274,12 @@ func (suite *AuthzTransferTestSuite) TestAuthz_InvalidTransferAuthorizations() {
276274
channelA.PortID,
277275
channelA.ChannelID,
278276
channelA.Version,
279-
sdk.NewCoins(sdk.Coin{Denom: chainADenom, Amount: sdkmath.NewInt(invalidSpendAmount)}),
277+
sdk.Coin{Denom: chainADenom, Amount: sdkmath.NewInt(invalidSpendAmount)},
280278
granterAddress,
281279
receiverWalletAddress,
282280
suite.GetTimeoutHeight(ctx, chainB),
283281
0,
284282
"",
285-
nil,
286283
)
287284

288285
protoAny, err := codectypes.NewAnyWithValue(transferMsg)
@@ -337,13 +334,12 @@ func (suite *AuthzTransferTestSuite) TestAuthz_InvalidTransferAuthorizations() {
337334
channelA.PortID,
338335
channelA.ChannelID,
339336
channelA.Version,
340-
sdk.NewCoins(sdk.Coin{Denom: chainADenom, Amount: sdkmath.NewInt(spendLimit)}),
337+
sdk.Coin{Denom: chainADenom, Amount: sdkmath.NewInt(spendLimit)},
341338
granterAddress,
342339
invalidWalletAddress,
343340
suite.GetTimeoutHeight(ctx, chainB),
344341
0,
345342
"",
346-
nil,
347343
)
348344

349345
protoAny, err := codectypes.NewAnyWithValue(transferMsg)

0 commit comments

Comments
 (0)