-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ng/cache-decimals
- Loading branch information
Showing
89 changed files
with
5,940 additions
and
2,889 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,10 @@ export ANCHOR_IMAGE ?= backpackapp/build:$(ANCHOR_VERSION) | |
anchor_version: | ||
@echo "${ANCHOR_VERSION}" | ||
|
||
.PHONY: clippy | ||
clippy: | ||
cargo clippy --manifest-path ./contracts/programs/ccip-router/Cargo.toml | ||
|
||
.PHONY: gomods | ||
gomods: ## Install gomods | ||
go install github.com/jmank88/[email protected] | ||
|
@@ -16,10 +20,22 @@ gomods: ## Install gomods | |
gomodtidy: gomods | ||
gomods tidy | ||
|
||
.PHONY: format-contracts | ||
format-contracts: | ||
cd ./contracts && cargo fmt && go fmt ./... | ||
|
||
.PHONY: rust-tests | ||
rust-tests: | ||
cd ./contracts && cargo test | ||
|
||
.PHONY: lint-go | ||
lint-go: | ||
golangci-lint --max-issues-per-linter 0 --max-same-issues 0 --color=always --exclude=dot-imports --timeout 15m --out-format checkstyle:golangci-lint-report.xml run | ||
|
||
.PHONY: lint-go-fix | ||
lint-go-fix: | ||
golangci-lint --max-issues-per-linter 0 --max-same-issues 0 --color=always --exclude=dot-imports --timeout 15m run --verbose --fix | ||
|
||
.PHONY: anchor-go-gen | ||
anchor-go-gen: | ||
cd ./contracts && rm -rf ./target && anchor build && cd .. && ./scripts/anchor-go-gen.sh | ||
|
@@ -32,6 +48,9 @@ format: | |
go-tests: | ||
go test -v ./... -json -covermode=atomic -coverpkg=./... -coverprofile=integration_coverage.txt 2>&1 | tee /tmp/gotest.log | gotestloghelper -ci=true -singlepackage=true -hidepassingtests=false -hidepassinglogs=false | ||
|
||
.PHONY: generate-idl | ||
generate-idl: | ||
.PHONY: build-contracts | ||
build-contracts: | ||
cd ./contracts && anchor build | ||
|
||
.PHONY: solana-checks | ||
solana-checks: clippy anchor-go-gen format gomodtidy lint-go rust-tests go-tests build-contracts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ go install github.com/gagliardetto/[email protected] | |
anchor build | ||
|
||
# go bindings need to be regenerated if contract changes were made | ||
./scrips/anchor-go-gen.sh | ||
./scripts/anchor-go-gen.sh | ||
|
||
# test contracts | ||
go test ./... -v -count=1 -failfast | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
203 changes: 0 additions & 203 deletions
203
chains/solana/contracts/programs/ccip-router/src/fee_quoter.rs
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
chains/solana/contracts/programs/ccip-router/src/instructions/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod v1; |
Oops, something went wrong.