Skip to content

Commit fb7ced3

Browse files
RANE-4333 emit plugin relayer config (#443)
1 parent 4475e96 commit fb7ced3

50 files changed

Lines changed: 3089 additions & 2009 deletions

Some content is hidden

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

.github/workflows/contracts.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,16 @@ jobs:
3434
# https://github.com/smartcontractkit/chainlink-cosmos/issues/15
3535

3636
- name: Run unit tests
37-
run: nix develop -c cargo unit-test --locked
37+
run: nix develop --option fallback true -c cargo unit-test --locked
3838
env:
3939
RUST_BACKTRACE: 1
4040

4141
- name: Compile WASM contract
42-
run: nix develop -c cargo wasm --locked
42+
run: nix develop --option fallback true -c cargo wasm --locked
4343
env:
4444
RUSTFLAGS: "-C link-arg=-s"
4545

4646
contracts_lint:
47-
# TODO: reenable linting once we've updated contract syntax
48-
if: false
4947
name: Contracts Lint
5048
runs-on: ubuntu-latest
5149
steps:
@@ -68,13 +66,17 @@ jobs:
6866
run: rm -rf ~/.cargo/bin
6967

7068
- name: Run cargo fmt
71-
run: nix develop -c cargo fmt --all -- --check
69+
run: nix develop --option fallback true -c cargo fmt --all -- --check
7270

7371
- name: Run cargo check
74-
run: nix develop -c cargo check
72+
run: nix develop --option fallback true -c cargo check
73+
env:
74+
RUSTFLAGS: "--check-cfg=cfg(tarpaulin_include)"
7575

7676
- name: Run cargo clippy
77-
run: nix develop -c cargo clippy -- -D warnings
77+
run: nix develop --option fallback true -c cargo clippy -- -D warnings
78+
env:
79+
RUSTFLAGS: "--check-cfg=cfg(tarpaulin_include)"
7880

7981
# TODO: Add schema checks
8082
# https://github.com/smartcontractkit/chainlink-terra/issues/17

.github/workflows/gauntlet.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
with:
2222
name: chainlink-cosmos
2323
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
24+
useDaemon: false
25+
skipAddingSubstituter: true
2426
- run: nix develop -c yarn install --frozen-lockfile
2527
- run: nix develop -c yarn build
2628

@@ -41,6 +43,8 @@ jobs:
4143
with:
4244
name: chainlink-cosmos
4345
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
46+
useDaemon: false
47+
skipAddingSubstituter: true
4448
- run: nix develop -c yarn install --frozen-lockfile
4549
- run: nix develop -c yarn lint:format
4650

@@ -61,6 +65,8 @@ jobs:
6165
with:
6266
name: chainlink-cosmos
6367
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
68+
useDaemon: false
69+
skipAddingSubstituter: true
6470
- run: nix develop -c yarn install --frozen-lockfile
6571
- run: nix develop -c yarn eslint
6672
- name: Upload eslint report
@@ -74,6 +80,7 @@ jobs:
7480
name: Gauntlet Run Tests
7581
env:
7682
CI: true
83+
DOCKER_API_VERSION: "1.44"
7784
runs-on: ubuntu-latest
7885
steps:
7986
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
@@ -87,6 +94,8 @@ jobs:
8794
with:
8895
name: chainlink-cosmos
8996
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
97+
useDaemon: false
98+
skipAddingSubstituter: true
9099
- name: Cache Wasmd Artifacts
91100
uses: actions/cache@v4
92101
id: cache-wasmd-artifacts
@@ -109,4 +118,3 @@ jobs:
109118
with:
110119
name: typescript-test-coverage
111120
path: ./coverage/lcov.info
112-

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1
2020
with:
2121
version: v${{ steps.tool-versions.outputs.golangci-lint_version }}
22+
install-mode: goinstall
2223
args: --timeout=5m0s --tests=false --out-format checkstyle:golangci-lint-report.xml
2324
only-new-issues: true
2425
- name: Print lint report artifact

.github/workflows/relay.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
env:
1111
DATABASE_URL: postgres://postgres@localhost:5432/postgres?sslmode=disable
12+
GOTOOLCHAIN: go1.25.7+auto
1213
services:
1314
postgres:
1415
image: postgres
@@ -44,6 +45,12 @@ jobs:
4445
- name: Run unit tests
4546
run: nix develop -c make test_relay_unit
4647

48+
- name: Verify wasmd binary is available
49+
run: nix develop -c wasmd version
50+
51+
- name: Run integration-tagged tests
52+
run: nix develop -c go test -v ./pkg/cosmos/client -run TestIntegration -tags integration
53+
4754
- name: Run tests with the race detector enabled
4855
run: nix develop -c make test_relay_unit_race
4956

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
rust 1.67.1
33
nodejs 18.6.0
44
yarn 1.22.19
5-
golang 1.23.3
5+
golang 1.25.7
66
python 3.9.13
77

88
# Tools

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ build_relay:
9898

9999
# Unit test without race detection
100100
test_relay_unit: build_relay
101-
go test -v -covermode=atomic ./pkg/cosmos/... -coverpkg=./... -coverprofile=unit_coverage.txt
101+
go test -v -covermode=atomic ./pkg/cosmos/... -coverprofile=unit_coverage.txt
102102

103103
# Unit test with race detection
104104
test_relay_unit_race: build_relay
105-
go test -v -covermode=atomic ./pkg/cosmos/... -race -count=10 -coverpkg=./... -coverprofile=race_coverage.txt
105+
go test -v -covermode=atomic ./pkg/cosmos/... -race -count=10 -coverprofile=race_coverage.txt
106106

107107

108108
# copied over from starknet, replace as needed
@@ -140,7 +140,7 @@ gomodtidy: gomods
140140

141141
.PHONY: mockery
142142
mockery: $(mockery) ## Install mockery.
143-
go install github.com/vektra/mockery/v2@v2.43.2
143+
go install github.com/vektra/mockery/v2@v2.53.5
144144

145145
.PHONY: rm-mocked
146146
rm-mocked:

contracts/ocr2/src/contract.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,8 @@ pub fn execute_propose_config(
576576
proposal.f = f;
577577
proposal.oracles = signers
578578
.into_iter()
579-
.zip(transmitters.into_iter())
580-
.zip(payees.into_iter())
579+
.zip(transmitters)
580+
.zip(payees)
581581
.map(|((signers, transmitters), payees)| (signers, transmitters, payees))
582582
.collect();
583583

flake.lock

Lines changed: 9 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)