Skip to content

Commit

Permalink
Merge pull request #109 from line/v2/feat/merge_link_module
Browse files Browse the repository at this point in the history
merge link modules
  • Loading branch information
Woosang Son authored Mar 29, 2021
2 parents 4a0004e + 34b5d90 commit 817809a
Show file tree
Hide file tree
Showing 389 changed files with 52,135 additions and 445 deletions.
2 changes: 2 additions & 0 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
titleAndCommits: true
allowMergeCommits: true
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ jobs:
if: env.GIT_DIFF
- name: test & coverage report creation
run: |
cat pkgs.txt.part.${{ matrix.part }} | xargs go test -mod=readonly -timeout 30m -coverprofile=${{ matrix.part }}profile.out -covermode=atomic -tags='norace ledger test_ledger_mock'
cat pkgs.txt.part.${{ matrix.part }} | xargs go test -mod=readonly -timeout 30m -coverprofile=${{ matrix.part }}profile.out -covermode=atomic -tags='norace ledger test_ledger_mock goleveldb'
if: env.GIT_DIFF
- uses: actions/upload-artifact@v2
with:
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
if: env.GIT_DIFF
- name: test & coverage report creation
run: |
xargs --arg-file=pkgs.txt.part.${{ matrix.part }} go test -mod=readonly -json -timeout 30m -race -tags='cgo ledger test_ledger_mock' | tee ${{ matrix.part }}-race-output.txt
xargs --arg-file=pkgs.txt.part.${{ matrix.part }} go test -mod=readonly -json -timeout 30m -race -tags='cgo ledger test_ledger_mock goleveldb' | tee ${{ matrix.part }}-race-output.txt
if: env.GIT_DIFF
- uses: actions/upload-artifact@v2
with:
Expand Down
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,19 @@ dist
tools-stamp
buf-stamp
artifacts
.vscode
output
tools/bin/*
examples/build/*

# Data - ideally these don't exist
baseapp/data/*
client/lcd/keys/*
mytestnet

# Testing
coverage.txt
profile.out
sim_log_file
client/keys/home/

# Vagrant
.vagrant/
Expand All @@ -52,3 +55,4 @@ dependency-graph.png
*.aux
*.out
*.synctex.gz

19 changes: 8 additions & 11 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,16 @@ run:
# timeout: 5m

linters:
disable-all: true
disable-all: false
enable:
- bodyclose
- deadcode
- depguard
- dogsled
# - errcheck
- goconst
- gocritic
- gofmt
- goconst
- goimports
- golint
- gosec
- gosimple
- govet
- ineffassign
- interfacer
- maligned
- misspell
- nakedret
- prealloc
Expand All @@ -34,7 +26,12 @@ linters:
- unused
- unparam
- misspell
# - wsl
disable:
- gocritic
- maligned
- errcheck
- interfacer
- wsl
- nolintlint

issues:
Expand Down
429 changes: 28 additions & 401 deletions CONTRIBUTING.md

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,12 @@ benchmark:
### Linting ###
###############################################################################

lint:
lint: golangci-lint
golangci-lint run --out-format=tab
find . -name '*.go' -type f -not -path "*.git*" | xargs gofmt -d -s

golangci-lint:
@go get github.com/golangci/golangci-lint/cmd/golangci-lint

lint-fix:
golangci-lint run --fix --out-format=tab --issues-exit-code=0
Expand Down
22 changes: 22 additions & 0 deletions PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->

## Motivation and context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->

## How has this been tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran to -->
<!--- see how your change affects other areas of the code, etc. -->

## Screenshots (if appropriate):

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] I followed the [contributing guidelines](https://github.com/line/link/blob/master/CONTRIBUTING.md).
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
64 changes: 64 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#
# This codecov.yml is the default configuration for
# all repositories on Codecov. You may adjust the settings
# below in your own codecov.yml in your repository.
#
codecov:
require_ci_to_pass: yes
bot: Codecov bot for LINK

comment:
layout: "reach,diff,flags,tree"
behavior: default # update if exists else create new
require_changes: no

coverage:
status:
project:
default:
# basic
target: 75
threshold: 1% # allow this much decrease on project
base: auto
# advanced
branches: null
if_no_uploads: error
if_not_found: success
if_ci_failed: error
only_pulls: false
flags: null
paths: null
changes: false
patch: off
precision: 2
range: 50...90
round: down

parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no

ignore:
- "docs"
- "*.md"
- "*.rst"
- "*.yml"
- "*.yaml"
- "*.sh"
- "*.png"
- "*_test.go"
- "x/**/test_common.go"
- "*_cmd.go"
- "contrib/**/*"
- "client/rpc/**/*_wrapper.go"
- "client/rpc/**/*_alias.go"
- "client/rpc/mock/*.go"
- "statik.go"
- "root.go"
- "x/**/module.go"
- "x/**/errors.go"
- "x/**/key.go"
11 changes: 10 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@ module github.com/line/lbm-sdk/v2

require (
github.com/99designs/keyring v1.1.6
github.com/CosmWasm/wasmvm v0.12.0
github.com/DataDog/zstd v1.4.5 // indirect
github.com/armon/go-metrics v0.3.6
github.com/bgentry/speakeasy v0.1.0
github.com/btcsuite/btcd v0.21.0-beta
github.com/btcsuite/btcutil v1.0.2
github.com/confio/ics23/go v0.6.3
github.com/cosmos/cosmos-sdk v0.39.2
github.com/cosmos/go-bip39 v1.0.0
github.com/cosmos/ledger-cosmos-go v0.11.1
github.com/enigmampc/btcutil v1.0.3-0.20200723161021-e2fb6adb2a25
github.com/gogo/gateway v1.1.0
github.com/gogo/protobuf v1.3.3
github.com/golang/mock v1.4.4
github.com/golang/protobuf v1.4.3
github.com/google/gofuzz v1.0.0
github.com/gorilla/handlers v1.5.1
github.com/gorilla/mux v1.8.0
github.com/grpc-ecosystem/go-grpc-middleware v1.2.2
Expand All @@ -37,13 +41,14 @@ require (
github.com/spf13/afero v1.3.4 // indirect
github.com/spf13/cast v1.3.1
github.com/spf13/cobra v1.1.1
github.com/spf13/jwalterweatherman v1.1.0 // indirect; indirects
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.7.1
github.com/stretchr/testify v1.7.0
github.com/tendermint/btcd v0.1.1
github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15
github.com/tendermint/go-amino v0.16.0
github.com/tendermint/tendermint v0.34.7
github.com/tendermint/tm-db v0.6.4
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad
google.golang.org/genproto v0.0.0-20210114201628-6edceaf6022f
google.golang.org/grpc v1.35.0
Expand All @@ -52,6 +57,10 @@ require (
)

replace (
github.com/CosmWasm/wasmvm => github.com/line/wasmvm v0.12.0-0.1.0
github.com/cosmos/cosmos-sdk => github.com/line/lbm-sdk v0.39.2-0.2.0
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
github.com/tendermint/tendermint => github.com/tendermint/tendermint v0.33.9
github.com/tendermint/tm-db => github.com/tendermint/tm-db v0.5.2
google.golang.org/grpc => google.golang.org/grpc v1.33.2
)
Loading

0 comments on commit 817809a

Please sign in to comment.