Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge main with sdk upgrade #7801

Merged
Changes from 1 commit
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
90059b8
chore(deps): bump google.golang.org/grpc from 1.68.1 to 1.69.0 (#7690)
dependabot[bot] Dec 16, 2024
291ed95
docs: The method description should be standardized. (#7692)
RiceChuan Dec 17, 2024
62ae007
Fix: Correct Typographical Errors in Documentation (#7693)
vipocenka Dec 17, 2024
fa77756
chore: remove duplicate words (#7674)
lfgtwo Dec 17, 2024
8575743
deps: update to cosmos-sdk v0.52 (Olympus) (#7261)
tac0turtle Dec 17, 2024
a14feef
chore: update import alias to align (#7710)
damiannolan Dec 17, 2024
797922b
chore(deps): bump google.golang.org/protobuf from 1.35.2 to 1.36.0 (#…
dependabot[bot] Dec 17, 2024
42421af
fix experror in two places (#7704)
iIvaki Dec 17, 2024
ebab69a
fix many typos (#7703)
iIvaki Dec 17, 2024
d5e329c
fix tests: update tests in 04-channel/types , use expected errors (#7…
likesToEatFish Dec 17, 2024
7aae649
refactor: update icahost to use runtime.Environment (#7600)
damiannolan Dec 17, 2024
c15bb5c
refactor: use header info for interchain accounts address generation …
damiannolan Dec 18, 2024
2bfad67
chore(docs):spellchecker (#7719)
argentpapa Dec 18, 2024
d257acb
code-Update Dockerfile (#7718)
romashka-btc Dec 18, 2024
ae882ac
Update compatibility.md (#7716)
detrina Dec 18, 2024
4baaa27
chores: fix linter repeated string error (#7714)
biemoh Dec 18, 2024
f88b9b3
fix: use experror. (#7717)
ikalyak Dec 18, 2024
24a49b5
[chores] Update spell checker (#7721)
NisTun Dec 18, 2024
39d8547
Remove circuit module (#7715)
ikalyak Dec 18, 2024
fd6a78a
refactor: update transfer to use runtime.Environment (#7615)
Dec 18, 2024
4123036
nit: axe stale mispell ignore file. (#7723)
DimitrisJim Dec 18, 2024
0e72d08
refactor: use event service in transfer mod (#7725)
damiannolan Dec 18, 2024
c8dc02c
refactor: update 29-fee to use runtime.Environment (#7617)
Dec 18, 2024
2c5af16
chore(deps): bump github.com/spf13/cast from 1.7.0 to 1.7.1 (#7726)
dependabot[bot] Dec 18, 2024
fcbb27b
chore (04-channel): use IBC channel sentinel errors in genesis valida…
DongLieu Dec 18, 2024
934af6f
chore: fix spelling errors (#7724)
github-actions[bot] Dec 18, 2024
0b2866d
chore: refactor event service to 29-fee (#7728)
damiannolan Dec 18, 2024
219bbd4
fix experror in parasm test (#7731)
iIvaki Dec 18, 2024
6cd1b8f
chore: remove reference to TestGrandpaTestSuite (#7733)
gjermundgaraba Dec 18, 2024
83fdb7f
chore: address some linter complaints (#7734)
damiannolan Dec 18, 2024
ca15c9a
fix linter (#7738)
ikalyak Dec 19, 2024
23bc6bd
fix: use experror (#7737)
ikalyak Dec 19, 2024
661277c
chore: fix test TestValidateGenesisState, use expected errors (#7730)
essenmeoikia Dec 19, 2024
d50f7ba
refactor: use branch service in 29-fee (#7732)
damiannolan Dec 19, 2024
b0a4012
chore: fix struct field name in comment (#7740)
goodfirm Dec 19, 2024
5b33740
chore(deps): bump google.golang.org/grpc from 1.69.0 to 1.69.2 (#7746)
dependabot[bot] Dec 19, 2024
3b54ed6
chore(deps): bump github.com/cosmos/cosmos-db from 1.1.0 to 1.1.1 (#7…
dependabot[bot] Dec 19, 2024
d078d3f
chore(deps): bump cosmossdk.io/x/accounts/defaults/base from 0.0.0-20…
dependabot[bot] Dec 19, 2024
c5ec835
fixed exp error in modules/04-channel/types/packet-test.go (#7749)
iIvaki Dec 19, 2024
a6ee228
fixed exp error in modules/02-client/types/client-test.go (#7741)
iIvaki Dec 19, 2024
8164b07
chore: add backport tasks for new release branches (#7748)
gjermundgaraba Dec 19, 2024
5bd6eda
fix test TestValidateControllerGenesisState (#7753)
meoaka3 Dec 19, 2024
c41f3ef
chore: added changelog entry for vesting account balance transfer (#7…
gjermundgaraba Dec 19, 2024
f5e1a4c
refactor: ibc core runtime env (#7601)
damiannolan Dec 20, 2024
bdcb8fd
fix TestValidateHostGenesisState" (#7756)
meoaka3 Dec 20, 2024
23a4a96
chore: bump wasmvm (#7735)
gjermundgaraba Dec 20, 2024
0bea84d
chore: use header service in localhost client (#7757)
damiannolan Dec 20, 2024
78f5392
chore: fix mergify task for 08-wasm (#7759)
gjermundgaraba Dec 20, 2024
bb670d2
Axe myself from CODEOWNERS (#7750)
DimitrisJim Dec 20, 2024
ec65d27
fix TestGenesisAccountValidate" (#7763)
meoaka3 Dec 20, 2024
1b51f87
chore(deps): bump bufbuild/buf-setup-action from 1.47.2 to 1.48.0 (#7…
dependabot[bot] Dec 20, 2024
a2037c7
chore: fix spell-checker (#7774)
gjermundgaraba Dec 20, 2024
3ffb0e7
chore: spelling errors fixes (#7776)
github-actions[bot] Dec 20, 2024
a8369a9
chore: remove unecessary/unused github actions (#7772)
gjermundgaraba Dec 20, 2024
ed43b48
no need to declare new variables (#7751)
essenmeoikia Dec 20, 2024
6201c79
fix TestValidateControllerMetadata' (#7773)
meoaka3 Dec 20, 2024
18162f0
fix TestValidateBasic packet (#7775)
essenmeoikia Dec 20, 2024
1b06e2b
fix TestNewControllerPortID (#7777)
solkorap7 Dec 20, 2024
719bbaf
fix to use expected error (#7778)
Noulodado Dec 20, 2024
a89fbf6
chore: fix TestParseClientIdentifier (#7779)
solkorap7 Dec 21, 2024
a3239a2
fix TestSerializeAndDeserializeCosmosTx (#7780)
meoaka3 Dec 21, 2024
0a7756f
docs: update integration guide for ibc-go v7 and v8 (#7781)
ronething-bot Dec 21, 2024
3e7348d
Combine functions TestGetSourceCallbackDataTransfer and TestGetDestCa…
lacsomot Dec 21, 2024
3768736
Update 07-v5-to-v6.md (#7784)
vtjl10 Dec 22, 2024
6c41505
fix: Typographical Errors (#7786)
Pricstas Dec 22, 2024
37dce93
chore: update codeowners (#7793)
gjermundgaraba Dec 23, 2024
e10bbbc
chore: fix and update linter (#7792)
gjermundgaraba Dec 23, 2024
6909b27
Use wrap instead of wrapf (#7796)
Noulodado Dec 23, 2024
e4da876
lint unused (#7795)
solkorap7 Dec 23, 2024
805894d
chore: Update AI Bot to Unified Bot (#7788)
olliegilbey Dec 23, 2024
2ce62a4
perf: decode proposal id from tx resp (#7785)
duvbell Dec 23, 2024
f29db43
chore(deps): bump google.golang.org/protobuf from 1.36.0 to 1.36.1 (#…
dependabot[bot] Dec 23, 2024
7d86244
doc: fix invalid link 03-client-state.md (#7794)
osrm Dec 26, 2024
36ba082
Merge branch 'main' into gjermund/merge-main-with-sdk-upgrade-to-feat…
gjermundgaraba Dec 26, 2024
0795868
lint
gjermundgaraba Dec 26, 2024
dbc8acf
update abigen
gjermundgaraba Dec 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed exp error in modules/04-channel/types/packet-test.go (#7749)
* fixed exp error in modules/04-channel/types/packet-test.go

* chore

* move to top

---------

Co-authored-by: Damian Nolan <damiannolan@gmail.com>
iIvaki and damiannolan authored Dec 19, 2024
commit c5ec835658680aaee5f50d9221e0c6fb98e2d67f
34 changes: 17 additions & 17 deletions modules/core/04-channel/types/packet_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package types_test

import (
"errors"
"testing"

"github.com/stretchr/testify/require"
@@ -55,28 +56,27 @@ func TestCommitPacket(t *testing.T) {

func TestPacketValidateBasic(t *testing.T) {
testCases := []struct {
packet types.Packet
expPass bool
errMsg string
packet types.Packet
expError error
}{
{types.NewPacket(validPacketData, 1, portid, chanid, cpportid, cpchanid, timeoutHeight, timeoutTimestamp), true, ""},
{types.NewPacket(validPacketData, 0, portid, chanid, cpportid, cpchanid, timeoutHeight, timeoutTimestamp), false, "invalid sequence"},
{types.NewPacket(validPacketData, 1, invalidPort, chanid, cpportid, cpchanid, timeoutHeight, timeoutTimestamp), false, "invalid source port"},
{types.NewPacket(validPacketData, 1, portid, invalidChannel, cpportid, cpchanid, timeoutHeight, timeoutTimestamp), false, "invalid source channel"},
{types.NewPacket(validPacketData, 1, portid, chanid, invalidPort, cpchanid, timeoutHeight, timeoutTimestamp), false, "invalid destination port"},
{types.NewPacket(validPacketData, 1, portid, chanid, cpportid, invalidChannel, timeoutHeight, timeoutTimestamp), false, "invalid destination channel"},
{types.NewPacket(validPacketData, 1, portid, chanid, cpportid, cpchanid, disabledTimeout, 0), false, "disabled both timeout height and timestamp"},
{types.NewPacket(validPacketData, 1, portid, chanid, cpportid, cpchanid, disabledTimeout, timeoutTimestamp), true, "disabled timeout height, valid timeout timestamp"},
{types.NewPacket(validPacketData, 1, portid, chanid, cpportid, cpchanid, timeoutHeight, 0), true, "disabled timeout timestamp, valid timeout height"},
{types.NewPacket(unknownPacketData, 1, portid, chanid, cpportid, cpchanid, timeoutHeight, timeoutTimestamp), true, ""},
{types.NewPacket(validPacketData, 1, portid, chanid, cpportid, cpchanid, timeoutHeight, timeoutTimestamp), nil},
{types.NewPacket(validPacketData, 1, portid, chanid, cpportid, cpchanid, disabledTimeout, timeoutTimestamp), nil},
{types.NewPacket(validPacketData, 1, portid, chanid, cpportid, cpchanid, timeoutHeight, 0), nil},
{types.NewPacket(unknownPacketData, 1, portid, chanid, cpportid, cpchanid, timeoutHeight, timeoutTimestamp), nil},
{types.NewPacket(validPacketData, 0, portid, chanid, cpportid, cpchanid, timeoutHeight, timeoutTimestamp), errors.New("packet sequence cannot be 0: invalid packet")},
{types.NewPacket(validPacketData, 1, invalidPort, chanid, cpportid, cpchanid, timeoutHeight, timeoutTimestamp), errors.New("invalid source port")},
{types.NewPacket(validPacketData, 1, portid, invalidChannel, cpportid, cpchanid, timeoutHeight, timeoutTimestamp), errors.New("invalid source channel")},
{types.NewPacket(validPacketData, 1, portid, chanid, invalidPort, cpchanid, timeoutHeight, timeoutTimestamp), errors.New("invalid destination port")},
{types.NewPacket(validPacketData, 1, portid, chanid, cpportid, invalidChannel, timeoutHeight, timeoutTimestamp), errors.New("invalid destination channel")},
{types.NewPacket(validPacketData, 1, portid, chanid, cpportid, cpchanid, disabledTimeout, 0), errors.New("packet timeout height and packet timeout timestamp cannot both be 0: invalid packet")},
}

for i, tc := range testCases {
for _, tc := range testCases {
err := tc.packet.ValidateBasic()
if tc.expPass {
require.NoError(t, err, "Msg %d failed: %s", i, tc.errMsg)
if tc.expError == nil {
require.NoError(t, err)
} else {
require.Error(t, err, "Invalid Msg %d passed: %s", i, tc.errMsg)
require.ErrorContains(t, err, tc.expError.Error())
}
}
}