Skip to content

Commit 421839a

Browse files
gjermundgarabaCopilotsrdtrk
authored
feat: attestation light client (#8717)
* first pass * cr fixes * some clean * non-membership * clean up testing * e2e * properly disable misbehaviour * tidy * fix some staff * Update modules/light-clients/10-attestations/client_state.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * check multi-packet commitements * ABI encoding * Apply suggestion from @gjermundgaraba * hashing correction * correct path hashing * update readme * no reflection plz * Update modules/light-clients/10-attestations/errors.go Co-authored-by: srdtrk <59252793+srdtrk@users.noreply.github.com> * Update modules/light-clients/10-attestations/client_state.go Co-authored-by: srdtrk <59252793+srdtrk@users.noreply.github.com> * cr fixes * fix tests * remove unused function * cr fixes * fix failing test * docs: rename title of readme * imp: use attestations instead of 10-attestations in proto * chore: renamed 10-attestations to attestations * fix: wipe 10-attestations * lint: e2e * lint: remove redundant alias * doc: added doc.go * chore: removed unused proto import * doc: update readme * imp: wire attestor * lint: gci * lint: gci wasm * chore: regen proto --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: srdtrk <59252793+srdtrk@users.noreply.github.com> Co-authored-by: srdtrk <srdtrk@hotmail.com>
1 parent e6474de commit 421839a

File tree

34 files changed

+3863
-5
lines changed

34 files changed

+3863
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ format:
360360

361361
protoVer=0.17.1
362362
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
363-
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)
363+
protoImage=$(DOCKER) run --rm -e GOTOOLCHAIN=auto -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)
364364

365365
#? proto-all: Format, lint and generate Protobuf files
366366
proto-all: proto-format proto-lint proto-gen

e2e/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ require (
2525
github.com/cosmos/ibc-go/v10 v10.3.0
2626
github.com/cosmos/interchaintest/v10 v10.0.1
2727
github.com/docker/docker v28.5.2+incompatible
28+
github.com/ethereum/go-ethereum v1.16.7
2829
github.com/moby/moby v28.5.2+incompatible
2930
github.com/pelletier/go-toml v1.9.5
3031
github.com/stretchr/testify v1.11.1
@@ -137,7 +138,6 @@ require (
137138
github.com/envoyproxy/go-control-plane/envoy v1.35.0 // indirect
138139
github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect
139140
github.com/ethereum/c-kzg-4844/v2 v2.1.5 // indirect
140-
github.com/ethereum/go-ethereum v1.16.7 // indirect
141141
github.com/ethereum/go-verkle v0.2.2 // indirect
142142
github.com/fatih/color v1.18.0 // indirect
143143
github.com/felixge/httpsnoop v1.0.4 // indirect

e2e/scripts/run-e2e.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,12 @@ function run_suite() {
104104

105105
# if the dev configs directory is present, enable fzf completion to select a test config file to use.
106106
if [[ -d "dev-configs" ]]; then
107-
export E2E_CONFIG_PATH="$(pwd)/dev-configs/$(_select_test_config)"
108-
echo "Using configuration file at ${E2E_CONFIG_PATH}"
107+
if [[ -n "${E2E_CONFIG_PATH:-}" && "${E2E_CONFIG_PATH}" == *.yaml ]]; then
108+
echo "Using configuration file at ${E2E_CONFIG_PATH}"
109+
else
110+
export E2E_CONFIG_PATH="$(pwd)/dev-configs/$(_select_test_config)"
111+
echo "Using configuration file at ${E2E_CONFIG_PATH}"
112+
fi
109113
fi
110114

111115
if [ "${RUN_SUITE:-}" = "true" ]; then

0 commit comments

Comments
 (0)