Skip to content

Commit 3622fbb

Browse files
authored
Merge pull request #44 from cosmwasm/merge_gaia_master_broken
Merge gaia master
2 parents 12499ea + 95cc9da commit 3622fbb

File tree

99 files changed

+12831
-1608
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+12831
-1608
lines changed

.codecov.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#
32
# This codecov.yml is the default configuration for
43
# all repositories on Codecov. You may adjust the settings
@@ -10,17 +9,25 @@ coverage:
109
range: 70...100
1110

1211
status:
13-
# Learn more at https://codecov.io/docs#yaml_default_commit_status
14-
project:
12+
# Learn more at https://docs.codecov.io/docs/commit-status
13+
project:
1514
default:
1615
threshold: 1% # allow this much decrease on project
16+
app:
17+
target: 80%
18+
paths: "app/"
19+
1720
changes: false
1821

1922
comment:
20-
layout: "header, diff"
21-
behavior: default # update if exists else create new
23+
layout: "reach, diff, files"
24+
behavior: default # update if exists else create new
25+
require_changes: true
2226

2327
ignore:
24-
- "docs"
2528
- "*.md"
2629
- "*.rst"
30+
- "cmd/"
31+
- "contrib/"
32+
- "docs/"
33+
- "networks/"

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@ v Before smashing the submit button please review the checkboxes.
44
v If a checkbox is n/a - please still include it but + a little note why
55
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -->
66

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

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

1516
______
1617

17-
For Admin Use:
18-
- Added appropriate labels to PR (ex. wip, ready-for-review, docs)
19-
- Reviewers Assigned
20-
- Squashed all commits, uses message "Merge PR #XYZ: [title]" ([coding standards](https://github.com/tendermint/coding/blob/master/README.md#merging-a-pr))
18+
For admin use:
19+
20+
- [ ] Added appropriate labels to PR (ex. `WIP`, `R4R`, `docs`, etc)
21+
- [ ] Reviewers assigned
22+
- [ ] Squashed all commits, uses message "Merge pull request #XYZ: [title]" ([coding standards](https://github.com/tendermint/coding/blob/master/README.md#merging-a-pr))

.github/stale.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Configuration for probot-stale - https://github.com/probot/stale
2+
3+
# Number of days of inactivity before an Issue or Pull Request becomes stale
4+
daysUntilStale: 10
5+
6+
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
7+
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
8+
daysUntilClose: 4
9+
10+
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
11+
onlyLabels: []
12+
13+
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
14+
exemptLabels:
15+
- blocked
16+
- pinned
17+
- security
18+
19+
# Set to true to ignore issues in a project (defaults to false)
20+
exemptProjects: true
21+
22+
# Set to true to ignore issues in a milestone (defaults to false)
23+
exemptMilestones: true
24+
25+
# Label to use when marking as stale
26+
staleLabel: stale
27+
28+
# Comment to post when marking as stale. Set to `false` to disable
29+
markComment: >
30+
This issue has been automatically marked as stale because it has not had
31+
recent activity. It will be closed if no further activity occurs. Thank you
32+
for your contributions.
33+
# Limit the number of actions per hour, from 1-30. Default is 30
34+
limitPerRun: 30
35+
36+
# Limit to only `issues` or `pulls`
37+
only: pulls
38+
39+
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
40+
pulls:
41+
daysUntilStale: 30
42+
markComment: >
43+
This pull request has been automatically marked as stale because it has not had
44+
recent activity. It will be closed if no further activity occurs. Thank you
45+
for your contributions.

.github/workflows/linkchecker.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Check links
2+
on: [pull_request]
3+
jobs:
4+
link-check:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- name: Link Checker
9+
uses: peter-evans/link-checker@v1
10+
with:
11+
args: -v -r *

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ docs/_build
1717
docs/tutorial
1818
dist
1919
tools-stamp
20+
docs/node_modules
2021

2122
# Data - ideally these don't exist
2223
baseapp/data/*

CONTRIBUTING.md

Lines changed: 39 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ overall information on repository workflow and standards. Note, we use `make
5353
tools` for installing the linting tools.
5454

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

6263
## Pull Requests
6364

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

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

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

8990
## Forking
9091

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

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

99-
- Create the fork on github, using the fork button.
100-
- Go to the original repo checked out locally (i.e. `$GOPATH/src/github.com/cosmwasm/wasmd`)
101-
- `git remote rename origin upstream`
102-
- `git remote add origin [email protected]:rigeyrigerige/gaia.git`
100+
- Create the fork on github, using the fork button.
101+
- Go to the original repo checked out locally (i.e. `$GOPATH/src/github.com/cosmwasm/wasmd`)
102+
- `git remote rename origin upstream`
103+
- `git remote add origin [email protected]:rigeyrigerige/gaia.git`
103104

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

108109
To pull in updates from the origin repo, run
109110

110-
- `git fetch upstream`
111-
- `git rebase upstream/master` (or whatever branch you want)
111+
- `git fetch upstream`
112+
- `git rebase upstream/master` (or whatever branch you want)
112113

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

@@ -152,13 +153,13 @@ for tcIndex, tc := range cases {
152153
<some code>
153154
for i := 0; i < tc.numTxsToTest; i++ {
154155
<some code>
155-
require.Equal(t, expectedTx[:32], calculatedTx[:32],
156-
"First 32 bytes of the txs differed. tc #%d, i #%d", tcIndex, i)
156+
require.Equal(t, expectedTx[:32], calculatedTx[:32],
157+
"First 32 bytes of the txs differed. tc #%d, i #%d", tcIndex, i)
157158
```
158159
159160
## Branching Model and Release
160161
161-
User-facing repos should adhere to the trunk based development branching model: https://trunkbaseddevelopment.com/.
162+
User-facing repos should adhere to the [trunk based development branching model](https://trunkbaseddevelopment.com/).
162163
163164
Libraries need not follow the model strictly, but would be wise to.
164165
@@ -173,17 +174,19 @@ should be targeted against the release candidate branch. Release candidate branc
173174
only pull requests targeted directly against master.
174175
175176
### Development Procedure
176-
- the latest state of development is on `master`
177-
- `master` must never fail `make test` or `make test_cli`
178-
- `master` should not fail `make lint`
179-
- no `--force` onto `master` (except when reverting a broken commit, which should seldom happen)
180-
- create a development branch either on github.com/cosmwasm/wasmd, or your fork (using `git remote add origin`)
181-
- before submitting a pull request, begin `git rebase` on top of `master`
177+
178+
- the latest state of development is on `master`
179+
- `master` must never fail `make test` or `make test_cli`
180+
- `master` should not fail `make lint`
181+
- no `--force` onto `master` (except when reverting a broken commit, which should seldom happen)
182+
- create a development branch either on github.com/cosmwasm/wasmd, or your fork (using `git remote add origin`)
183+
- before submitting a pull request, begin `git rebase` on top of `master`
182184
183185
### Pull Merge Procedure
184-
- ensure pull branch is rebased on `master`
185-
- run `make test` and `make test_cli` to ensure that all tests pass
186-
- merge pull request
186+
187+
- ensure pull branch is rebased on `master`
188+
- run `make test` and `make test_cli` to ensure that all tests pass
189+
- merge pull request
187190
188191
### Release Procedure
189192
@@ -206,15 +209,15 @@ only pull requests targeted directly against master.
206209
At the moment, only a single major release will be supported, so all point
207210
releases will be based off of that release.
208211
209-
- start on `vX.XX.X`
210-
- checkout a new branch `pre-rc/vX.X.X`
211-
- cherry pick the desired changes from `master`
212-
- these changes should be small and NON-BREAKING (both API and state machine)
213-
- add entries to CHANGELOG.md and remove corresponding pending log entries
214-
- checkout a new branch `rc/vX.X.X` based off of `vX.XX.X`
215-
- create a PR merging `pre-rc/vX.X.X` into `rc/vX.X.X`
216-
- run tests and simulations (noted in [Release Procedure](#release-procedure))
217-
- after tests and simulation have successfully completed, create the release branch `release/vX.XX.X` from the `RC` branch
218-
- delete the `pre-rc/vX.X.X` and `RC` branches
219-
- create a PR into `master` containing ONLY the CHANGELOG.md updates
220-
- tag and release `release/vX.XX.X`
212+
- start on `vX.XX.X`
213+
- checkout a new branch `pre-rc/vX.X.X`
214+
- cherry pick the desired changes from `master`
215+
- these changes should be small and NON-BREAKING (both API and state machine)
216+
- add entries to CHANGELOG.md and remove corresponding pending log entries
217+
- checkout a new branch `rc/vX.X.X` based off of `vX.XX.X`
218+
- create a PR merging `pre-rc/vX.X.X` into `rc/vX.X.X`
219+
- run tests and simulations (noted in [Release Procedure](#release-procedure))
220+
- after tests and simulation have successfully completed, create the release branch `release/vX.XX.X` from the `RC` branch
221+
- delete the `pre-rc/vX.X.X` and `RC` branches
222+
- create a PR into `master` containing ONLY the CHANGELOG.md updates
223+
- tag and release `release/vX.XX.X`

Makefile

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ LEDGER_ENABLED ?= true
77
SDK_PACK := $(shell go list -m github.com/cosmos/cosmos-sdk | sed 's/ /\@/g')
88

99
export GO111MODULE = on
10-
export COSMOS_SDK_TEST_KEYRING = y
1110

1211
# process build tags
1312

@@ -61,7 +60,7 @@ endif
6160
ldflags += $(LDFLAGS)
6261
ldflags := $(strip $(ldflags))
6362

64-
BUILD_FLAGS := -tags "$(build_tags)" -ldflags '$(ldflags)'
63+
BUILD_FLAGS := -tags "$(build_tags)" -ldflags '$(ldflags)' -trimpath
6564

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

93+
94+
########################################
95+
### Documentation
96+
97+
build-docs:
98+
@cd docs && \
99+
while read p; do \
100+
(git checkout $${p} && npm install && VUEPRESS_BASE="/$${p}/" npm run build) ; \
101+
mkdir -p ~/output/$${p} ; \
102+
cp -r .vuepress/dist/* ~/output/$${p}/ ; \
103+
cp ~/output/$${p}/index.html ~/output ; \
104+
done < versions ;
105+
106+
sync-docs:
107+
cd ~/output && \
108+
echo "role_arn = ${DEPLOYMENT_ROLE_ARN}" >> /root/.aws/config ; \
109+
echo "CI job = ${CIRCLE_BUILD_URL}" >> version.html ; \
110+
aws s3 sync . s3://${WEBSITE_BUCKET} --profile terraform --delete ; \
111+
aws cloudfront create-invalidation --distribution-id ${CF_DISTRIBUTION_ID} --profile terraform --path "/*" ;
112+
.PHONY: sync-docs
113+
94114
########################################
95115
### Tools & dependencies
96116

@@ -155,7 +175,7 @@ build-docker-wasmdnode:
155175

156176
# Run a 4-node testnet locally
157177
localnet-start: build-linux localnet-stop
158-
@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
178+
@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
159179
docker-compose up -d
160180

161181
# Stop testnet

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This code was forked from the `cosmos/gaia` repository and the majority of the c
1313

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

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

1818
## Quick Start
1919

0 commit comments

Comments
 (0)