Skip to content

Commit

Permalink
XRPL tx scanner (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitryhil authored Sep 26, 2023
1 parent 41f6359 commit 1190d01
Show file tree
Hide file tree
Showing 19 changed files with 4,035 additions and 59 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/relayer-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
]
include:
- ci_step: "lint"
command: "make lint"
command: "make go-lint"
go-cache: true
wasm-cache: true
linter-cache: true
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
key: ${{ runner.os }}-cache-smart-contracts-${{ hashFiles('./coreum/**/*.rs') }}
if: ${{ matrix.wasm-cache }}
- name: Run ${{ matrix.ci_step }}
working-directory: ./coreumbridge-xrpl/relayer
working-directory: ./coreumbridge-xrpl
run: ${{ matrix.command }}
- name: Dump docker logs on failure
if: failure()
Expand Down
34 changes: 34 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
GO_IMPORT_PREFIX=github.com/CoreumFoundation
GO_SCAN_FILES := $(shell find . -type f -name '*.go' -not -name '*mock.go' -not -name '*_gen.go' -not -path "*/vendor/*")

###############################################################################
### Development ###
###############################################################################

.PHONY: go-fmt
go-fmt:
which gofumpt || go install mvdan.cc/gofumpt@v0.5.0
which gogroup || go install github.com/vasi-stripe/gogroup/cmd/gogroup@v0.0.0-20200806161525-b5d7f67a97b5
gofumpt -lang=v2.1 -extra -w $(GO_SCAN_FILES)
gogroup -order std,other,prefix=$(GO_IMPORT_PREFIX) -rewrite $(GO_SCAN_FILES)

.PHONY: go-mockgen
go-mockgen:
which mockgen || go install github.com/golang/mock/mockgen@v1.6.0
cd relayer && go generate ./...

.PHONY: go-lint
go-lint:
crust lint/current-dir

.PHONY: test-integration
test-integration:
cd integration-tests && go test -v --tags=integrationtests -mod=readonly -parallel=4 ./...

.PHONY: restart-dev-env
restart-dev-env:
crust znet remove && crust znet start --profiles=integration-tests-modules,xrpl --timeout-commit 0.5s

.PHONY: rebuild-dev-env
rebuild-dev-env:
crust build images
Loading

0 comments on commit 1190d01

Please sign in to comment.