Skip to content

Commit

Permalink
chore: reorganize and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey committed Sep 26, 2024
1 parent 58a402e commit 0f9fd95
Show file tree
Hide file tree
Showing 74 changed files with 2,154 additions and 1,277 deletions.
6 changes: 6 additions & 0 deletions .github/license.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
header: |
// Copyright 2024 NASD Inc.
//
// Use of this source code is governed by a BSL-style
// license that can be found in the LICENSE file or at
// https://mariadb.com/bsl11.
57 changes: 57 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
License text copyright © 2023 MariaDB plc, All Rights Reserved.
"Business Source License" is a trademark of MariaDB plc.

Parameters

Licensor: NASD Inc.
Licensed Work: Authority Cosmos SDK Module.
Additional Use Grant: Not Applicable
Change Date: Four years from the date the Licensed Work is published.
Change License: GNU GPL v3

For licensing inquiries, please contact [email protected].

Notice

Business Source License 1.1

Terms

The Licensor hereby grants you the right to copy, modify, create derivative
works, redistribute, and make non-production use of the Licensed Work. The
Licensor may make an Additional Use Grant, above, permitting limited production use.

Effective on the Change Date, or the fourth anniversary of the first publicly
available distribution of a specific version of the Licensed Work under this
License, whichever comes first, the Licensor hereby grants you rights under
the terms of the Change License, and the rights granted in the paragraph
above terminate.

If your use of the Licensed Work does not comply with the requirements
currently in effect as described in this License, you must purchase a
commercial license from the Licensor, its affiliated entities, or authorized
resellers, or you must refrain from using the Licensed Work.

All copies of the original and modified Licensed Work, and derivative works
of the Licensed Work, are subject to this License. This License applies
separately for each version of the Licensed Work and the Change Date may vary
for each version of the Licensed Work released by Licensor.

You must conspicuously display this License on each original or modified copy
of the Licensed Work. If you receive the Licensed Work in original or
modified form from a third party, the terms and conditions set forth in this
License apply to your use of that work.

Any use of the Licensed Work in violation of this License will automatically
terminate your rights under this License for the current and all other
versions of the Licensed Work.

This License does not grant you any right in any trademark or logo of
Licensor or its affiliates (provided that you may use a trademark or logo of
Licensor as expressly required by this License).

TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
TITLE.
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: proto-format proto-lint proto-gen format lint test-unit build local-image test-e2e
.PHONY: proto-format proto-lint proto-gen license format lint test-unit build local-image test-e2e
all: proto-all format lint test-unit build local-image test-e2e

###############################################################################
Expand All @@ -11,12 +11,16 @@ build:
@echo "✅ Completed build!"

###############################################################################
### Formatting & Linting ###
### Tooling ###
###############################################################################

gofumpt_cmd=mvdan.cc/gofumpt
golangci_lint_cmd=github.com/golangci/golangci-lint/cmd/golangci-lint

FILES := $(shell find $(shell go list -f '{{.Dir}}' ./...) -name "*.go" -a -not -name "*.pb.go" -a -not -name "*.pb.gw.go" -a -not -name "*.pulsar.go" | sed "s|$(shell pwd)/||g")
license:
@go-license --config .github/license.yml $(FILES)

format:
@echo "🤖 Running formatter..."
@go run $(gofumpt_cmd) -l -w .
Expand All @@ -31,8 +35,8 @@ lint:
### Protobuf ###
###############################################################################

BUF_VERSION=1.31.0
BUILDER_VERSION=0.14.0
BUF_VERSION=1.42
BUILDER_VERSION=0.15.1

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

Expand Down Expand Up @@ -69,7 +73,7 @@ endif

test-unit:
@echo "🤖 Running unit tests..."
@go test -cover -coverprofile=coverage.out -race -v ./x/authority/keeper/...
@go test -cover -coverprofile=coverage.out -race -v ./keeper/...
@echo "✅ Completed unit tests!"

test-e2e:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
34 changes: 24 additions & 10 deletions api/noble/authority/v1/tx_grpc.pb.go → api/v1/tx_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions buf.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Generated by buf. DO NOT EDIT.
version: v2
deps:
- name: buf.build/cosmos/cosmos-proto
commit: 1935555c206d4afb9e94615dfd0fad31
digest: b5:0a29584117fe6433fa593d03fbda6b3964ddc59b986cd2277833ee01d4ac215a14b0286241462cd0dee6b460a108823dff5c7c42c9c1f4f7df861fcfa4bbebdf
- name: buf.build/cosmos/cosmos-sdk
commit: 5a6ab7bc14314acaa912d5e53aef1c2f
digest: b5:8042fb175299da4ff2bbc9dc8051efbab9d997a2a797d1e7d7feb22c658990894199e1952b1f5965902ce765e3ef48b0c4dbdff423daf5fda5eb646f999c6c96
- name: buf.build/cosmos/gogo-proto
commit: 5e5b9fdd01804356895f8f79a6f1ddc1
digest: b5:fa99e286ee3012cd95902e9889a57392ae87f9def39e11c3f2db66c9ca39f16e513175c1aa40a9a47c18cceadb0ee37c326591eb1bc2c4de0e0ccb72c04929d4
- name: buf.build/googleapis/googleapis
commit: cc916c31859748a68fd229a3c8d7a2e8
digest: b5:3b4e241d18fbebc6b30ff28968527af2cdd618026930d2a9666bbad2868b1aa164d20229477464691bdfd053a77b5c727468039bd1d2b550cb4151ee4c1499fe
3 changes: 0 additions & 3 deletions buf.work.yaml

This file was deleted.

10 changes: 4 additions & 6 deletions proto/buf.yaml → buf.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
version: v1
# yaml-language-server: $schema=https://json.schemastore.org/buf.json
version: v2
modules:
- path: proto
deps:
- buf.build/cosmos/cosmos-proto:1935555c206d4afb9e94615dfd0fad31
- buf.build/cosmos/cosmos-sdk:v0.50.0
- buf.build/cosmos/gogo-proto:5e5b9fdd01804356895f8f79a6f1ddc1
- buf.build/googleapis/googleapis:cc916c31859748a68fd229a3c8d7a2e8
breaking:
use:
- FILE
lint:
use:
- DEFAULT
except:
- SERVICE_SUFFIX
- RPC_REQUEST_STANDARD_NAME
Expand Down
Loading

0 comments on commit 0f9fd95

Please sign in to comment.