-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4d55102
Showing
53 changed files
with
11,839 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
![](./banner.png) | ||
|
||
<h1 style="text-align: center">Monerium's EURe on Noble</h1> | ||
|
||
[![codecov](https://img.shields.io/codecov/c/gh/noble-assets/florin?token=7WD7YY13G1&labelColor=black)](https://codecov.io/gh/noble-assets/florin) | ||
|
||
This repository includes the `x/florin` Cosmos SDK module implementation. | ||
|
||
For more information, refer to the module's [spec](../x/florin/spec) files. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,3 @@ | ||
parsers: | ||
go: | ||
partials_as_hits: true |
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,28 @@ | ||
name: Unit Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- v* | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21' | ||
|
||
- name: Run Tests | ||
run: make test-unit | ||
|
||
- name: Upload Coverage | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |
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,4 @@ | ||
.florin | ||
.idea | ||
build | ||
coverage.out |
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,68 @@ | ||
.PHONY: proto-format proto-lint proto-gen format lint test-unit build | ||
all: proto-all format lint test-unit build | ||
|
||
############################################################################### | ||
### Build ### | ||
############################################################################### | ||
|
||
build: | ||
@echo "π€ Building simd..." | ||
@cd simapp && make build 1> /dev/null | ||
@echo "β Completed build!" | ||
|
||
############################################################################### | ||
### Formatting & Linting ### | ||
############################################################################### | ||
|
||
gofumpt_cmd=mvdan.cc/gofumpt | ||
golangci_lint_cmd=github.com/golangci/golangci-lint/cmd/golangci-lint | ||
|
||
format: | ||
@echo "π€ Running formatter..." | ||
@go run $(gofumpt_cmd) -l -w . | ||
@echo "β Completed formatting!" | ||
|
||
lint: | ||
@echo "π€ Running linter..." | ||
@go run $(golangci_lint_cmd) run --timeout=10m | ||
@echo "β Completed linting!" | ||
|
||
############################################################################### | ||
### Protobuf ### | ||
############################################################################### | ||
|
||
BUF_VERSION=1.32 | ||
|
||
proto-all: proto-format proto-lint proto-gen | ||
|
||
proto-format: | ||
@echo "π€ Running protobuf formatter..." | ||
@docker run --rm --volume "$(PWD)":/workspace --workdir /workspace \ | ||
bufbuild/buf:$(BUF_VERSION) format --diff --write | ||
@echo "β Completed protobuf formatting!" | ||
|
||
proto-gen: | ||
@echo "π€ Generating code from protobuf..." | ||
@docker run --rm --volume "$(PWD)":/workspace --workdir /workspace \ | ||
florin-proto sh ./proto/generate.sh | ||
@echo "β Completed code generation!" | ||
|
||
proto-lint: | ||
@echo "π€ Running protobuf linter..." | ||
@docker run --rm --volume "$(PWD)":/workspace --workdir /workspace \ | ||
bufbuild/buf:$(BUF_VERSION) lint | ||
@echo "β Completed protobuf linting!" | ||
|
||
proto-setup: | ||
@echo "π€ Setting up protobuf environment..." | ||
@docker build --rm --tag florin-proto:latest --file proto/Dockerfile . | ||
@echo "β Setup protobuf environment!" | ||
|
||
############################################################################### | ||
### Testing ### | ||
############################################################################### | ||
|
||
test-unit: | ||
@echo "π€ Running unit tests..." | ||
@go test -cover -coverprofile=coverage.out -race -v ./x/florin/keeper/... | ||
@echo "β Completed unit tests!" |
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,3 @@ | ||
version: v1 | ||
directories: | ||
- proto |
Oops, something went wrong.