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

Serial nonce update #74

Merged
merged 4 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ run:
timeout: 5m
skip-dirs:
- test
- mocks


linters:
Expand Down
17 changes: 17 additions & 0 deletions .mockery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
with-expecter: true
dir: "mocks"
filename: "{{.InterfaceName | lower }}.generated.go"
mockname: "{{.InterfaceName}}"
outpkg: "mocks"
packages:
github.com/0xPolygonHermez/zkevm-ethtx-manager/ethtxmanager:
interfaces:
EthermanInterface:
config:
StorageInterface:
config:
dir: "{{.InterfaceDir}}"
filename: "{{.InterfaceName | lower }}.generated.go"
mockname: "{{.InterfaceName}}Mock"
outpkg: "{{.PackageName}}"
inpackage: True
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ check-go:
check-curl:
@which curl > /dev/null || (echo "Error: curl is not installed" && exit 1)

.PHONY: check-mockery
check-mockery:
@which mockery > /dev/null || (echo "Error: mockery is not installed" && exit 1)

# Targets that require the checks
build: check-go
lint: check-go
Expand All @@ -37,6 +41,10 @@ install-linter: ## Installs the linter
lint: ## Runs the linter
export "GOROOT=$$(go env GOROOT)" && $$(go env GOPATH)/bin/golangci-lint run

.PHONY: generate
generate: ## Generates mocks and other autogenerated types
mockery

## Help display.
## Pulls comments from beside commands and prints a nicely formatted
## display with the commands and their usage information.
Expand Down
Loading
Loading