Skip to content

Commit

Permalink
Upgrade to Cosmos SDK v0.50 (#28)
Browse files Browse the repository at this point in the history
# Summary

This PR upgrades this module to SDK v0.50.
  • Loading branch information
circle-smartin authored Oct 15, 2024
1 parent 738932c commit c20bd0c
Show file tree
Hide file tree
Showing 264 changed files with 48,513 additions and 8,325 deletions.
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

0 comments on commit c20bd0c

Please sign in to comment.