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

Upgrade to Cosmos SDK v0.50 #28

Merged
merged 2 commits into from
Oct 15, 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
6 changes: 6 additions & 0 deletions .covignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.pb.go
.pb.gw.go
/x/fiattokenfactory/simulation
/x/fiattokenfactory/client/cli
module_simulation.go
module.go
18 changes: 17 additions & 1 deletion .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# Copyright 2024 Circle Internet Group, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

name: E2E Tests

on:
Expand All @@ -18,7 +34,7 @@ jobs:
go-version: 1.21

- name: Install Heighliner
run: go install github.com/strangelove-ventures/heighliner@latest
run: go install github.com/strangelove-ventures/heighliner@v1.6.3

- name: Build Image
run: make heighliner
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# Copyright 2024 Circle Internet Group, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

name: Unit Tests

on:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
.idea
.vscode
build
cover.html
cover.out
10 changes: 10 additions & 0 deletions .licenseignore
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
pkg:golang/github.com/ethereum/go-ethereum
pkg:golang/github.com/hashicorp/go-getter
pkg:golang/github.com/hashicorp/go-cleanhttp
pkg:golang/github.com/hashicorp/go-plugin
pkg:golang/github.com/hashicorp/go-safetemp
pkg:golang/github.com/hashicorp/go-uuid
pkg:golang/github.com/hashicorp/go-version
pkg:golang/github.com/hashicorp/golang-lru
pkg:golang/github.com/hashicorp/golang-lru/v2
pkg:golang/github.com/hashicorp/yamux
pkg:golang/pgregory.net/rapid
25 changes: 0 additions & 25 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -174,28 +174,3 @@
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
19 changes: 10 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: proto-setup proto-format proto-lint proto-gen format lint test-e2e test-unit build
.PHONY: proto-format proto-lint proto-gen format lint test-e2e test-unit build
all: proto-all format lint test-unit build

###############################################################################
Expand All @@ -25,7 +25,8 @@ format:
### Protobuf ###
###############################################################################

BUF_VERSION=1.27.1
BUF_VERSION=1.34.0
BUILDER_VERSION=0.14.0

proto-all: proto-format proto-lint proto-gen

Expand All @@ -38,7 +39,7 @@ proto-format:
proto-gen:
@echo "🤖 Generating code from protobuf..."
@docker run --rm --volume "$(PWD)":/workspace --workdir /workspace \
noble-fiattokenfactory-proto sh ./proto/generate.sh
ghcr.io/cosmos/proto-builder:$(BUILDER_VERSION) sh ./proto/generate.sh
@echo "✅ Completed code generation!"

proto-lint:
Expand All @@ -47,11 +48,6 @@ proto-lint:
bufbuild/buf:$(BUF_VERSION) lint
@echo "✅ Completed protobuf linting!"

proto-setup:
@echo "🤖 Setting up protobuf environment..."
@docker build --rm --tag noble-fiattokenfactory-proto:latest --file proto/Dockerfile .
@echo "✅ Setup protobuf environment!"

###############################################################################
### Testing ###
###############################################################################
Expand All @@ -70,5 +66,10 @@ test-e2e:

test-unit:
@echo "🤖 Running unit tests..."
@go test -cover -race -v ./x/...
@go test -coverprofile=cover.out -race -count=1 ./x/...
@echo "✅ Completed unit tests!"
@grep -v -f .covignore cover.out > cover.filtered.out && rm cover.out
@echo "\n📝 Detailed coverage report, excluding files in .covignore:"
@go tool cover -func cover.filtered.out
@go tool cover -html cover.filtered.out -o cover.html && rm cover.filtered.out
@echo "\n📝 Produced html coverage report at cover.html, excluding files in .covignore"
4 changes: 4 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Security Policy

## Reporting a Vulnerability
Please do not file public issues on Github for security vulnerabilities. All security vulnerabilities should be reported to Circle privately, through Circle's [Vulnerability Disclosure Program](https://hackerone.com/circle). Please read through the program policy before submitting a report.
Loading
Loading