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

Merge gaia master #44

Merged
merged 47 commits into from
Jan 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
3733383
Add -trimpath for enhanced build reproducibility (#202)
Nov 28, 2019
9823769
Merge PR #196: Upgrade module
fedekunze Nov 30, 2019
ba07766
Bump github.com/tendermint/tendermint from 0.32.7 to 0.32.8 (#199)
dependabot-preview[bot] Nov 30, 2019
477a223
Merge PR #205: Update Migration Doc with Proposal Values
alexanderbez Dec 3, 2019
45109c4
Bump SDK Commit (#207)
alexanderbez Dec 4, 2019
8d0e63f
Merge PR #209: update PR template
fedekunze Dec 4, 2019
767330e
deprecate GOPATH references on docs (#204)
tac0turtle Dec 5, 2019
7c5bd87
update Gaia with to latest SDK master (#210)
fedekunze Dec 5, 2019
39b5d48
Merge PR #211: Bump SDK Commit Version
Dec 5, 2019
e88b0c1
Bump github.com/spf13/viper from 1.5.0 to 1.6.1 (#214)
dependabot-preview[bot] Dec 9, 2019
83787aa
Ledger + Lunie guide docs (#208)
gamarin2 Dec 9, 2019
123353a
Merge PR #216: fixed the fail in the install cmd
iammelea Dec 10, 2019
9858aaa
Merge PR #217: Add proper block height in Hubble's link
npinto Dec 10, 2019
6e21ebe
Merge PR #213: Update cosmoshub-2.md
cfl0ws Dec 10, 2019
495feec
Cleanup in preparation of new docs (#183)
gamarin2 Dec 11, 2019
09790f6
rename staly.yml -> stale.yml (#218)
fedekunze Dec 11, 2019
47eca7b
Bump SDK master version (#212)
Dec 12, 2019
ed036f6
fix links (#223) [skip ci]
gamarin2 Dec 12, 2019
dcbddd9
Merge PR #221: Hide unnecessarily exported function to better coverag…
Dec 12, 2019
08ea6f4
Incorporate SDK's latest changes (#227)
Dec 13, 2019
10493a8
Update join-mainnet.md (#229)
okwme Dec 13, 2019
ebfbd95
Merge PR #215: Update simulation tests
fedekunze Dec 19, 2019
b7839f2
Bump SDK commit to the latest master (#239)
alexanderbez Dec 30, 2019
961b8ab
Merge PR #245: archives
gamarin2 Jan 6, 2020
434f425
Merge PR #246: Update Archive page with explorers
tac0turtle Jan 7, 2020
87a4269
Merge PR #247: Update SDK Commit & Update CLI Doc
alexanderbez Jan 7, 2020
e1b8201
Merge PR #249: docker image build and upload for release tags
Jan 7, 2020
edfdf6d
Merge PR #252: v2.0.4 Changelog
alexanderbez Jan 10, 2020
53e8367
Merge PR #253: Bump SDK master commit
alexanderbez Jan 12, 2020
2c74973
Merge PR #255: Bump github.com/pkg/errors from 0.8.1 to 0.9.0
dependabot-preview[bot] Jan 13, 2020
ce37252
Merge PR #256: Bump github.com/pkg/errors from 0.9.0 to 0.9.1
dependabot-preview[bot] Jan 15, 2020
f61b391
Merge PR #250: Docs-update
tac0turtle Jan 15, 2020
97c5f7a
Merge PR #258: Bump github.com/spf13/viper from 1.6.1 to 1.6.2
dependabot-preview[bot] Jan 17, 2020
6e69ba0
docs: removed redundant readme.md (#261)
Jan 18, 2020
ba8d2b3
Fix broken link in delegator guide (#262)
gamarin2 Jan 20, 2020
ffdb98e
Merge PR #265: add version v2.0.5 to CHANGELOG
fedekunze Jan 21, 2020
75cc997
Exec go mod tidy (#267)
alexanderbez Jan 22, 2020
090c545
Merge PR #259: Bump SDK master commit
alexanderbez Jan 22, 2020
95292c8
Merge remote-tracking branch 'remotes/gaia/master' into merge_gaia_ma…
alpe Jan 23, 2020
a3ec9f9
Updated tendermint cmn imports
ethanfrey Jan 23, 2020
94667e9
x/wasm/internal compiles
ethanfrey Jan 23, 2020
06c3f0f
All compiles except ./cmd
ethanfrey Jan 23, 2020
c02f69d
make install works
ethanfrey Jan 23, 2020
85d7677
x/wasmd tests pass
ethanfrey Jan 23, 2020
d505266
Fix cli_tests, add --keyring-backend flag to wasmd
ethanfrey Jan 23, 2020
7f436c5
Fixed (last) cli test failure
ethanfrey Jan 23, 2020
95cc9da
Merge branch 'master' into merge_gaia_master_broken
ethanfrey Jan 23, 2020
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
19 changes: 13 additions & 6 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#
# This codecov.yml is the default configuration for
# all repositories on Codecov. You may adjust the settings
Expand All @@ -10,17 +9,25 @@ coverage:
range: 70...100

status:
# Learn more at https://codecov.io/docs#yaml_default_commit_status
project:
# Learn more at https://docs.codecov.io/docs/commit-status
project:
default:
threshold: 1% # allow this much decrease on project
app:
target: 80%
paths: "app/"

changes: false

comment:
layout: "header, diff"
behavior: default # update if exists else create new
layout: "reach, diff, files"
behavior: default # update if exists else create new
require_changes: true

ignore:
- "docs"
- "*.md"
- "*.rst"
- "cmd/"
- "contrib/"
- "docs/"
- "networks/"
16 changes: 9 additions & 7 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@ v Before smashing the submit button please review the checkboxes.
v If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -->

- Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmwasm/wasmd/blob/master/CONTRIBUTING.md#pr-targeting))
- Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/gaia/blob/master/CONTRIBUTING.md#pr-targeting))

- [ ] Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
- [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
- [ ] Wrote tests
- [ ] Updated relevant documentation (`docs/`)
- [ ] Added relevant `godoc` [comments](https://blog.golang.org/godoc-documenting-go-code).
- [ ] Added a relevant changelog entry to the `Unreleased` section in `CHANGELOG.md`
- [ ] Reviewed `Files changed` in the github PR explorer
- [ ] Re-reviewed `Files changed` in the Github PR explorer

______

For Admin Use:
- Added appropriate labels to PR (ex. wip, ready-for-review, docs)
- Reviewers Assigned
- Squashed all commits, uses message "Merge PR #XYZ: [title]" ([coding standards](https://github.com/tendermint/coding/blob/master/README.md#merging-a-pr))
For admin use:

- [ ] Added appropriate labels to PR (ex. `WIP`, `R4R`, `docs`, etc)
- [ ] Reviewers assigned
- [ ] Squashed all commits, uses message "Merge pull request #XYZ: [title]" ([coding standards](https://github.com/tendermint/coding/blob/master/README.md#merging-a-pr))
45 changes: 45 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Configuration for probot-stale - https://github.com/probot/stale

# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 10

# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: 4

# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
onlyLabels: []

# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
- blocked
- pinned
- security

# Set to true to ignore issues in a project (defaults to false)
exemptProjects: true

# Set to true to ignore issues in a milestone (defaults to false)
exemptMilestones: true

# Label to use when marking as stale
staleLabel: stale

# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 30

# Limit to only `issues` or `pulls`
only: pulls

# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
pulls:
daysUntilStale: 30
markComment: >
This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
11 changes: 11 additions & 0 deletions .github/workflows/linkchecker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Check links
on: [pull_request]
jobs:
link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Link Checker
uses: peter-evans/link-checker@v1
with:
args: -v -r *
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ docs/_build
docs/tutorial
dist
tools-stamp
docs/node_modules

# Data - ideally these don't exist
baseapp/data/*
Expand Down
75 changes: 39 additions & 36 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ overall information on repository workflow and standards. Note, we use `make
tools` for installing the linting tools.

Other notes:
- Looking for a good place to start contributing? How about checking out some
[good first issues](https://github.com/cosmwasm/wasmd/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)
- Please make sure to use `gofmt` before every commit - the easiest way to do
this is have your editor run it for you upon saving a file. Additionally
please ensure that your code is lint compliant by running `make lint`

- Looking for a good place to start contributing? How about checking out some
[good first issues](https://github.com/cosmwasm/wasmd/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)
- Please make sure to use `gofmt` before every commit - the easiest way to do
this is have your editor run it for you upon saving a file. Additionally
please ensure that your code is lint compliant by running `make lint`

## Pull Requests

Expand All @@ -84,7 +85,7 @@ All PRs require two Reviews before merge (except docs changes, or variable name-

If you open a PR in Gaia, it is mandatory to update the relevant documentation in /docs.

* If your changes relate specifically to the gaia application, please modify the docs/ folder.
- If your changes relate specifically to the gaia application, please modify the docs/ folder.

## Forking

Expand All @@ -96,19 +97,19 @@ Instead, we use `git remote` to add the fork as a new remote for the original re

For instance, to create a fork and work on a branch of it, I would:

- Create the fork on github, using the fork button.
- Go to the original repo checked out locally (i.e. `$GOPATH/src/github.com/cosmwasm/wasmd`)
- `git remote rename origin upstream`
- `git remote add origin git@github.com:rigeyrigerige/gaia.git`
- Create the fork on github, using the fork button.
- Go to the original repo checked out locally (i.e. `$GOPATH/src/github.com/cosmwasm/wasmd`)
- `git remote rename origin upstream`
- `git remote add origin git@github.com:rigeyrigerige/gaia.git`

Now `origin` refers to my fork and `upstream` refers to the Gaia version.
So I can `git push -u origin master` to update my fork, and make pull requests to Gaia from there.
Of course, replace `rigeyrigerige` with your git handle.

To pull in updates from the origin repo, run

- `git fetch upstream`
- `git rebase upstream/master` (or whatever branch you want)
- `git fetch upstream`
- `git rebase upstream/master` (or whatever branch you want)

Please don't make Pull Requests to `master`.

Expand Down Expand Up @@ -152,13 +153,13 @@ for tcIndex, tc := range cases {
<some code>
for i := 0; i < tc.numTxsToTest; i++ {
<some code>
require.Equal(t, expectedTx[:32], calculatedTx[:32],
"First 32 bytes of the txs differed. tc #%d, i #%d", tcIndex, i)
require.Equal(t, expectedTx[:32], calculatedTx[:32],
"First 32 bytes of the txs differed. tc #%d, i #%d", tcIndex, i)
```

## Branching Model and Release

User-facing repos should adhere to the trunk based development branching model: https://trunkbaseddevelopment.com/.
User-facing repos should adhere to the [trunk based development branching model](https://trunkbaseddevelopment.com/).

Libraries need not follow the model strictly, but would be wise to.

Expand All @@ -173,17 +174,19 @@ should be targeted against the release candidate branch. Release candidate branc
only pull requests targeted directly against master.

### Development Procedure
- the latest state of development is on `master`
- `master` must never fail `make test` or `make test_cli`
- `master` should not fail `make lint`
- no `--force` onto `master` (except when reverting a broken commit, which should seldom happen)
- create a development branch either on github.com/cosmwasm/wasmd, or your fork (using `git remote add origin`)
- before submitting a pull request, begin `git rebase` on top of `master`

- the latest state of development is on `master`
- `master` must never fail `make test` or `make test_cli`
- `master` should not fail `make lint`
- no `--force` onto `master` (except when reverting a broken commit, which should seldom happen)
- create a development branch either on github.com/cosmwasm/wasmd, or your fork (using `git remote add origin`)
- before submitting a pull request, begin `git rebase` on top of `master`

### Pull Merge Procedure
- ensure pull branch is rebased on `master`
- run `make test` and `make test_cli` to ensure that all tests pass
- merge pull request

- ensure pull branch is rebased on `master`
- run `make test` and `make test_cli` to ensure that all tests pass
- merge pull request

### Release Procedure

Expand All @@ -206,15 +209,15 @@ only pull requests targeted directly against master.
At the moment, only a single major release will be supported, so all point
releases will be based off of that release.

- start on `vX.XX.X`
- checkout a new branch `pre-rc/vX.X.X`
- cherry pick the desired changes from `master`
- these changes should be small and NON-BREAKING (both API and state machine)
- add entries to CHANGELOG.md and remove corresponding pending log entries
- checkout a new branch `rc/vX.X.X` based off of `vX.XX.X`
- create a PR merging `pre-rc/vX.X.X` into `rc/vX.X.X`
- run tests and simulations (noted in [Release Procedure](#release-procedure))
- after tests and simulation have successfully completed, create the release branch `release/vX.XX.X` from the `RC` branch
- delete the `pre-rc/vX.X.X` and `RC` branches
- create a PR into `master` containing ONLY the CHANGELOG.md updates
- tag and release `release/vX.XX.X`
- start on `vX.XX.X`
- checkout a new branch `pre-rc/vX.X.X`
- cherry pick the desired changes from `master`
- these changes should be small and NON-BREAKING (both API and state machine)
- add entries to CHANGELOG.md and remove corresponding pending log entries
- checkout a new branch `rc/vX.X.X` based off of `vX.XX.X`
- create a PR merging `pre-rc/vX.X.X` into `rc/vX.X.X`
- run tests and simulations (noted in [Release Procedure](#release-procedure))
- after tests and simulation have successfully completed, create the release branch `release/vX.XX.X` from the `RC` branch
- delete the `pre-rc/vX.X.X` and `RC` branches
- create a PR into `master` containing ONLY the CHANGELOG.md updates
- tag and release `release/vX.XX.X`
26 changes: 23 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ LEDGER_ENABLED ?= true
SDK_PACK := $(shell go list -m github.com/cosmos/cosmos-sdk | sed 's/ /\@/g')

export GO111MODULE = on
export COSMOS_SDK_TEST_KEYRING = y

# process build tags

Expand Down Expand Up @@ -61,7 +60,7 @@ endif
ldflags += $(LDFLAGS)
ldflags := $(strip $(ldflags))

BUILD_FLAGS := -tags "$(build_tags)" -ldflags '$(ldflags)'
BUILD_FLAGS := -tags "$(build_tags)" -ldflags '$(ldflags)' -trimpath

# The below include contains the tools target.
include contrib/devtools/Makefile
Expand Down Expand Up @@ -91,6 +90,27 @@ install: go.sum
go install -mod=readonly $(BUILD_FLAGS) ./cmd/wasmd
go install -mod=readonly $(BUILD_FLAGS) ./cmd/wasmcli


########################################
### Documentation

build-docs:
@cd docs && \
while read p; do \
(git checkout $${p} && npm install && VUEPRESS_BASE="/$${p}/" npm run build) ; \
mkdir -p ~/output/$${p} ; \
cp -r .vuepress/dist/* ~/output/$${p}/ ; \
cp ~/output/$${p}/index.html ~/output ; \
done < versions ;

sync-docs:
cd ~/output && \
echo "role_arn = ${DEPLOYMENT_ROLE_ARN}" >> /root/.aws/config ; \
echo "CI job = ${CIRCLE_BUILD_URL}" >> version.html ; \
aws s3 sync . s3://${WEBSITE_BUCKET} --profile terraform --delete ; \
aws cloudfront create-invalidation --distribution-id ${CF_DISTRIBUTION_ID} --profile terraform --path "/*" ;
.PHONY: sync-docs

########################################
### Tools & dependencies

Expand Down Expand Up @@ -155,7 +175,7 @@ build-docker-wasmdnode:

# Run a 4-node testnet locally
localnet-start: build-linux localnet-stop
@if ! [ -f build/node0/wasmd/config/genesis.json ]; then docker run -e COSMOS_SDK_TEST_KEYRING=y --rm -v $(CURDIR)/build:/wasmd:Z tendermint/wasmdnode testnet --v 4 -o . --starting-ip-address 192.168.10.2 ; fi
@if ! [ -f build/node0/wasmd/config/genesis.json ]; then docker run --rm -v $(CURDIR)/build:/wasmd:Z tendermint/wasmdnode testnet --v 4 -o . --starting-ip-address 192.168.10.2 ; fi
docker-compose up -d

# Stop testnet
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This code was forked from the `cosmos/gaia` repository and the majority of the c

**Note**: Requires [Go 1.13+](https://golang.org/dl/)

**Compatibility**: Last merge from `cosmos/gaia` was `d6dfa141e2ae38a1ff9f53fca8078c0822671b95`
**Compatibility**: Last merge from `cosmos/gaia` was `090c545347b03e59415a18107a0a279c703c8f40` (Jan 23, 2020)

## Quick Start

Expand Down
Loading