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

Master branch update to support Columbus-4 #422

Merged
merged 84 commits into from
Nov 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
9cd8a32
update sdk version to v0.37.7 & add treasury proposal events
Feb 12, 2020
58e43a4
fix slashing codec
Feb 13, 2020
5f8ebb9
before exporting for zero height, fill address in signing_infos
Feb 25, 2020
0c042c4
Merge pull request #324 from terra-project/feature/proposal-events
Mar 13, 2020
521d269
Merge pull request #327 from terra-project/bugfix/codec-naming
Mar 13, 2020
eefea82
Merge pull request #329 from terra-project/bugfix/slashing_signing_info
Mar 13, 2020
137e367
remove golangci-lint hash check (#333)
Mar 24, 2020
12789aa
export & import cumulated height to keep treasury state after hard po…
Mar 24, 2020
00655e2
[Feature] Improve oracle spec (#325)
Mar 25, 2020
1406f57
update docker script and circleci to automatically upload it (#334)
Mar 25, 2020
d8586be
fix market swap handler to properly treat zero spread case (#336)
Apr 8, 2020
3684f77
fix oracle end blocker to apply tobin tax only changes in whitelist (…
Apr 9, 2020
d23749c
add unbonded check to oracle slashing (#340)
Jun 1, 2020
a14ca8e
[Feature] CosmosSDK v0.38 (#323)
Jun 11, 2020
84df596
[Feature] New Ledger Support #346
Jun 11, 2020
83c85fb
[Feature] Burn Address (#343)
Jun 14, 2020
1b74b35
[Feature] WASM integration (#335)
Jun 15, 2020
f3cb0d8
fix alias & add market/treasury wasm interface
yun-yeo Jun 15, 2020
b42a89e
[Feature] MsgSwapSend (#348)
Jun 16, 2020
7e5e410
Update broken url link (#351)
maruf0011 Jun 24, 2020
ce10d13
add swap receiver on the market event field
yun-yeo Jun 29, 2020
cd97953
market client tax calculation update
yun-yeo Jun 25, 2020
5c50bbb
[Feature] WASM add params querier interface & align client interface …
Jun 30, 2020
b4d7a11
add zero voting power check at ballot pass checking
yun-yeo Jun 30, 2020
8915a48
change event tag msg
yun-yeo Jun 30, 2020
38447d8
[Feature] Bump cosmwasm to v0.9 (#357)
Jul 1, 2020
ccab035
adjust market swap pool with the actual return amount after deducting…
yun-yeo Jul 2, 2020
67583db
remove goreleaser ci due to shared library issue
yun-yeo Jul 2, 2020
14c4e85
delay config seal time to viper prerun step to apply old-hd-path flag…
Jul 2, 2020
0279cd2
[Feature] msg authorization module (#352)
Jul 3, 2020
113a332
Bump sdk version to v0.38.5 & tendermint to 0.33.6
yun-yeo Jul 6, 2020
ae2ce07
fix lint
yun-yeo Jul 6, 2020
000e603
[Bugfix] WASM module codec naming (#364)
Jul 9, 2020
1dc13a2
add missing distribution codec
yun-yeo Jul 9, 2020
90e524c
added comments
hanjukim Jul 10, 2020
20f77a9
remove unused param & simulation code & add missed cmd description
yun-yeo Jul 14, 2020
513cdae
increase wasm simulation gas for safe simulation
yun-yeo Jul 14, 2020
48272ca
Update docker image and change docker hub repo (#370)
etienne-napoleone Jul 17, 2020
faef604
Feature/readme (#372)
ouiliame Jul 17, 2020
f84f39b
Update README.md
dokwon Jul 17, 2020
2997283
Update README.md
ouiliame Jul 17, 2020
00d7c11
Merge pull request #373 from terra-project/dokwon-patch-1
ouiliame Jul 17, 2020
15f2286
Bump CosmWasm to v0.9.4 and SDK to v0.39.0 (Launchpad)
yun-yeo Jul 21, 2020
199b3dd
[Docs] module spec documentation (#375)
Jul 27, 2020
7f092e4
allow insufficient fee error for msgauth module (#376)
Jul 28, 2020
67adcbb
implement indicators querier for tax rate update
yun-yeo Jul 16, 2020
7456821
add public option at starting rest-server & enforce to use tx.height …
yun-yeo Jul 16, 2020
beb95c0
fix(treasury): indicator endpoint
hanjukim Jul 28, 2020
1b24b92
fix: stringify yes and no map keys (#379)
kjessec Jul 30, 2020
b99a7cf
[Bugfix] Convert Custom JSON Marshaling Codec to Amino Codec (#377)
Aug 4, 2020
950d1da
[Feature] Bump CosmWasm to v0.10 (#378)
Aug 4, 2020
42ce125
Bump SDK to v0.39.1 (#383)
Aug 12, 2020
be67e9a
append mint module
yun-yeo Aug 12, 2020
206c2b0
update go-cosmwasm to custom version to propagate interrupt signal (#…
Aug 12, 2020
da22bed
[Oracle] Exchange Rate and Ballot Rewards logic using reference terra…
dongsam Aug 14, 2020
a2cd04a
align oracle code
yun-yeo Aug 14, 2020
18032e3
add unit test
yun-yeo Aug 21, 2020
d76e776
Merge pull request #385 from terra-project/feature/clean-oracle
hanjukim Aug 21, 2020
4cc75e5
Merge pull request #384 from terra-project/feature/mint-module
hanjukim Aug 21, 2020
bd00ed3
[Feature] swagger update for mint module (#387)
Aug 21, 2020
50c3889
Bump cosmwasm to v0.10.1 (#388)
Sep 2, 2020
2dd40b7
change replace versioning (#390)
Sep 2, 2020
3394c4d
add default swagger binary to prefent crash when executing rest-serve…
Sep 11, 2020
ec47413
allow to change wasm store path by changing application db path in co…
Sep 14, 2020
19e4f82
[Bugfix] Wasm instantiate process (#398)
Sep 16, 2020
8dd3b35
chore(docker): update swagger on image build (#397)
etienne-napoleone Sep 16, 2020
5676a86
apply certik audit report
yun-yeo Sep 21, 2020
ce1b2ca
add oracle wasm query interface
yun-yeo Sep 22, 2020
2e6cd78
CHANGELOG update (#371)
Sep 22, 2020
b663351
allow gov msg to be grantable (#407)
Sep 22, 2020
0ccb97e
columbus-4 preparation (#380)
Sep 22, 2020
f571cd5
Merge branch 'master' into merge-master
yun-yeo Oct 3, 2020
185e2b7
Update README.md (#412)
ouiliame Oct 5, 2020
84fd890
Mempool errors for ParseExcahangeRateTuples were passed as unregister…
zmanian Oct 14, 2020
a9b956d
Merge pull request #411 from terra-project/merge-master
hanjukim Oct 19, 2020
9695e97
convert all module error code 1 to others
yun-yeo Oct 12, 2020
0c2b239
[Feature] WASM logging whitelist (#413)
Oct 19, 2020
54ca036
add a flag to the rest server to accept all cors
yun-yeo Oct 27, 2020
4ae926c
allow language specific decimal precision error
yun-yeo Oct 27, 2020
f2b6cd6
Revert "convert all module error code 1 to others" (#429)
hanjukim Nov 10, 2020
97a1967
[Feature] CosmWasm cache update (#426)
Nov 11, 2020
d3c4751
register wasm queriers after staking keeper initialization
yun-yeo Nov 10, 2020
df11740
[Bugfix] Prevent panic when external contract query executed (#432)
Nov 23, 2020
ee1cd6e
[Upgrade] Softfork for WASM Updates (#433)
Nov 23, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
69 changes: 18 additions & 51 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,7 @@ jobs:
sudo mv go /usr/local
popd
set -x
make tools
make build-linux
make build-docker-terradnode
make localnet-start
make clean build-docker-terradnode localnet-start
./contrib/localnet-blocks-test.sh 40 5 10 localhost

macos-ci:
Expand Down Expand Up @@ -275,9 +272,9 @@ jobs:
if [ -z "${TERRAD_VERSION}" ]; then
docker build .
else
docker build -t tendermint/terra:$TERRAD_VERSION .
# docker login --password-stdin -u $DOCKER_USER \<<<$DOCKER_PASS
# docker push tendermint/terra:$TERRAD_VERSION
docker build -t terramoney/core:$TERRAD_VERSION .
docker login --password-stdin -u $DOCKER_USER \<<<$DOCKER_PASS
docker push terramoney/core:$TERRAD_VERSION
fi

docker-tagged:
Expand All @@ -289,9 +286,9 @@ jobs:
- setup_remote_docker:
docker_layer_caching: true
- run: |
docker build -t tendermint/terra:$CIRCLE_TAG .
# docker login --password-stdin -u $DOCKER_USER \<<<$DOCKER_PASS
# docker push tendermint/terra:$CIRCLE_TAG
docker build -t terramoney/core:$CIRCLE_TAG .
docker login --password-stdin -u $DOCKER_USER \<<<$DOCKER_PASS
docker push terramoney/core:$CIRCLE_TAG

reproducible-builds:
executor: golang
Expand All @@ -306,38 +303,11 @@ jobs:
no_output_timeout: 20m
command: |
sudo apt-get install -y ruby
bash -x ./contrib/gitian-build.sh all
for os in darwin linux windows; do
cp gitian-build-${os}/result/terra-${os}-res.yml .
rm -rf gitian-build-${os}/
done
- store_artifacts:
path: /go/src/github.com/terra-project/core/terra-darwin-res.yml
bash -x ./contrib/gitian-build.sh multi
cp gitian-build-multi/result/terra-multi-res.yml .
rm -rf gitian-build-multi/
- store_artifacts:
path: /go/src/github.com/terra-project/core/terra-linux-res.yml
- store_artifacts:
path: /go/src/github.com/terra-project/core/terra-windows-res.yml

# FIXME: The `setup-contract-tests-data` make target is broken as it completely
# overrides the .terrad directory.
#
# contract-tests:
# executor: golang
# steps:
# - attach_workspace:
# at: /tmp/workspace
# - checkout
# - setup_remote_docker:
# docker_layer_caching: true
# - run:
# name: Get Node.js and test REST implementation against swagger documentation at https://swagger.terra.money/rpc/
# command: |
# go get github.com/snikch/goodman/cmd/goodman
# make build
# make build-contract-tests-hooks
# make setup-contract-tests-data
# export PATH=~/.local/bin:$PATH
# ./contrib/get_node.sh && make contract-tests
path: /go/src/github.com/terra-project/core/terra-multi-res.yml

workflows:
version: 2
Expand Down Expand Up @@ -407,13 +377,10 @@ workflows:
- master
requires:
- setup-dependencies
- release:
# Only run this job on git tag pushes
filters:
branches:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
# - contract-tests:
# requires:
# - setup-dependencies
# - release:
# # Only run this job on git tag pushes
# filters:
# branches:
# ignore: /.*/
# tags:
# only: /v[0-9]+(\.[0-9]+)*(-.*)*/
7 changes: 5 additions & 2 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ coverage:
changes: false

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

ignore:
- "docs"
- "*.md"
- "*.rst"
- "cmd/"
- "contrib/"
- "docs/"
- "networks/"
- "**/cli"
- "**/rest"
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

- [ ] Github issue OR spec proposal link
- [ ] Wrote tests
- [ ] Updated relevant documentation (docs/)
- [ ] Updated API documentation (client/lcd/swagger-ui/swagger.yaml)
- [ ] Added a relevant changelog entry: clog add [section] [stanza] [message]

----
Expand Down
15 changes: 4 additions & 11 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ builds:
main: cmd/terracli/main.go
binary: terracli
flags:
- -tags=netgo
- -tags="netgo ledger"
asmflags:
- all=-trimpath={{.Env.GOPATH}}
gcflags:
Expand All @@ -22,28 +22,25 @@ builds:
-X github.com/cosmos/cosmos-sdk/version.ClientName=terracli
-X github.com/cosmos/cosmos-sdk/version.Version={{.Version}}
-X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}}
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo"
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger"
env:
- GO111MODULE=on
- CGO_ENABLED=0
goos:
- windows
- darwin
- linux
goarch:
- amd64
ignore:
- goos: darwin
goarch: 386
- goos: windows
goarch: 386

-
id: 'terrad'
main: ./cmd/terrad
binary: terrad
flags:
- -tags=netgo
- -tags="netgo ledger"
asmflags:
- all=-trimpath={{.Env.GOPATH}}
gcflags:
Expand All @@ -54,28 +51,24 @@ builds:
-X github.com/cosmos/cosmos-sdk/version.ClientName=terracli
-X github.com/cosmos/cosmos-sdk/version.Version={{.Version}}
-X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}}
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo"
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger"
env:
- GO111MODULE=on
- CGO_ENABLED=0
goos:
- windows
- darwin
- linux
goarch:
- amd64
ignore:
- goos: darwin
goarch: 386
- goos: windows
goarch: 386

archives:
-
replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
checksum:
name_template: 'checksums.txt'
Expand Down
79 changes: 73 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,85 @@
## v0.3.4
## 0.4.0

### Release Notes
- [Cosmos-SDK v0.38 Release Notes](https://github.com/cosmos/cosmos-sdk/wiki/v0.38-Release-Notes)
- [Cosmos-SDK v0.39.0 Release Notes](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.39.0)
- [Cosmos-SDK v0.39.1 Release Notes](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.39.1)
- [Cosmos-SDK Breaking Changes](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.38.0)

### Improvements

* (sdk) Bump SDK version to [v0.37.9](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.37.9).
* [\#407](https://github.com/terra-project/core/pull/407) Allow `gov/MsgVote` to be grantable
* [\#405](https://github.com/terra-project/core/pull/405) CosmWasm oracle exchange rates query interface
* [\#388](https://github.com/terra-project/core/pull/388) Bump CosmWasm to v0.10.1
* [\#383](https://github.com/terra-project/core/pull/383) Bump SDK version to v0.39.1
* [\#374](https://github.com/terra-project/core/pull/374) Bump SDK version to v0.39 and CosmWasm to v0.9.4
* [\#357](https://github.com/terra-project/core/pull/357) Bump CosmWasm to v0.9
* [\#352](https://github.com/terra-project/core/pull/352) MsgAuthorization module to allow subkey feature
* [\#349](https://github.com/terra-project/core/pull/349) Add `--old-hd-path` flag to support 118 coin type users
* [\#348](https://github.com/terra-project/core/pull/348) MsgSwapSend to allow sending all swap coin
* [\#347](https://github.com/terra-project/core/pull/347) CosmWasm custom msg & querier handler
* [\#343](https://github.com/terra-project/core/pull/343) Burn Address
* [\#335](https://github.com/terra-project/core/pull/335) CosmWasm integration
* [\#325](https://github.com/terra-project/core/pull/325) New oracle msgs for vote process optimization
* [\#324](https://github.com/terra-project/core/pull/324) Update to emit events at proposal handler
* [\#323](https://github.com/terra-project/core/pull/323) Bump SDK version to v0.38.x

### Bug Fixes
* [\#360](https://github.com/terra-project/core/pull/360) Fix market module pool adjustment to apply delta with actual minted amount
* [\#336](https://github.com/terra-project/core/pull/336) Allow zero tobin tax rate

## 0.3.3
### Breaking Changes

#### Keys Migration
Any existing keys that were managed via Keybase in prior versions must be migrated. To migrate keys, execute the following:
```
$ terracli keys migrate [--home] [--keyring-backend]
```

The above command will provide a prompt for each existing key and ask if you wish for it to be skipped or not. If the key is not to be skipped, you must provide the correct passphrase for it to be migrated successfully.

#### Pruning Configuration

The operator can now set the pruning options by passing a pruning configuration via command line option or `app.toml`. The pruning flag supports the following
options: `default`, `everything`, `nothing`, `custom` - see the [PR](https://github.com/cosmos/cosmos-sdk/pull/6475) for further details. If the operator chooses `custom`, they may want to provide either of the granular pruning values:

- `pruning-keep-recent`
- `pruning-keep-every`
- `pruning-interval`

The former two options dictate how many recent versions are kept on disk and the offset of what versions are kept after that
respectively, and the latter defines the height interval in which versions are deleted in a batch.

**The operator, who wants to upgrade the node from v0.3 to v0.4, must change pruning option in `app.toml` to one of above options.**

#### API Changes
* The `block_meta` field has been removed from `/blocks/{block_height}` becasuse it was redandunt data with `block_header`.
* The `whitelist` of`/oracle/parameters` response has been changed from `[]string` to `[]{ name: string; tobin_tax: string; }`

## 0.3.6

### Improvements
* [\#319](https://github.com/terra-project/core/pull/319) Bump SDK version to [v0.37.6]((https://github.com/cosmos/cosmos-sdk/releases/tag/v0.37.6))
#### [99581ba](https://github.com/terra-project/core/commit/99581baf89a838cf09a25d47adc2fd2cc97ab4a2) Ledger update(custom ledger library) & Bump SDK to v0.37.13

## 0.3.5

### Improvements
#### [654b5cb](https://github.com/terra-project/core/commit/654b5cb66a9152dcf6e53f73e7935522251a1ede) Bump SDK to v0.37.11

### Bug Fixes
* [\#321](https://github.com/terra-project/core/pull/321) revert to distribute zero oracle reward (#321)

#### [7a3d01c](https://github.com/terra-project/core/commit/7a3d01c9198cfdcc67d90593c92ce5cb465e4516) Oracle slashing unbonding state check

## 0.3.4

### Improvements
#### [\#338](https://github.com/terra-project/core/pull/338) Bump SDK to v0.37.9 for Tendermint security patch

## 0.3.3

### Improvements
#### [\#319](https://github.com/terra-project/core/pull/319) Bump SDK to v0.37.6
#### [\#321](https://github.com/terra-project/core/pull/321) Revert to distribute zero oracle rewards

## 0.3.2

### Improvements
Expand Down
58 changes: 25 additions & 33 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,43 +1,35 @@
# Simple usage with a mounted data directory:
# > docker build -t terra .
# > docker run -it -p 46657:46657 -p 46656:46656 -v ~/.terrad:/root/.terrad -v ~/.terracli:/root/.terracli terra terrad init
# > docker run -it -p 46657:46657 -p 46656:46656 -v ~/.terrad:/root/.terrad -v ~/.terracli:/root/.terracli terra terrad start
# > docker run -it -p 46657:46657 -p 46656:46656 -v ~/.terrad:/root/.terrad -v ~/.terracli:/root/.terracli terra terrad init
# > docker run -it -p 46657:46657 -p 46656:46656 -v ~/.terrad:/root/.terrad -v ~/.terracli:/root/.terracli terra terrad start
FROM golang:alpine AS build-env
FROM cosmwasm/go-ext-builder:0001-alpine AS rust-builder

# Set up dependencies
ENV PACKAGES make git libc-dev bash gcc linux-headers eudev-dev
WORKDIR /go/src/github.com/terra-project/core

# Set working directory for the build
WORKDIR /go/src/terra
COPY go.* /go/src/github.com/terra-project/core/

# Add source files
COPY . .
RUN apk add --no-cache git \
&& go mod download github.com/CosmWasm/go-cosmwasm \
&& export GO_WASM_DIR=$(go list -f "{{ .Dir }}" -m github.com/CosmWasm/go-cosmwasm) \
&& cd ${GO_WASM_DIR} \
&& cargo build --release --features backtraces --example muslc \
&& mv ${GO_WASM_DIR}/target/release/examples/libmuslc.a /lib/libgo_cosmwasm_muslc.a


FROM cosmwasm/go-ext-builder:0001-alpine AS go-builder

# Install minimum necessary dependencies, build Cosmos SDK, remove packages
RUN apk add --no-cache $PACKAGES && \
make tools && \
make go-mod-cache && \
make build-linux && \
make install
WORKDIR /go/src/github.com/terra-project/core

RUN apk add --no-cache git libusb-dev linux-headers

COPY . .
COPY --from=rust-builder /lib/libgo_cosmwasm_muslc.a /lib/libgo_cosmwasm_muslc.a

# Final image
FROM alpine:edge
# force it to use static lib (from above) not standard libgo_cosmwasm.so file
RUN BUILD_TAGS=muslc make update-swagger-docs build

# Install ca-certificates
RUN apk add --update ca-certificates rsync jq curl

# Copy over binaries from the build-env
COPY --from=build-env /go/bin/terrad /usr/bin/terrad
COPY --from=build-env /go/bin/terracli /usr/bin/terracli
FROM alpine:3

# Create a terra group and a terra user
RUN addgroup -S terra -g 54524 && adduser -S terra -u 54524 -h /home/terra -G terra
WORKDIR /root

# Tell docker that all future commands should run as the terra user
USER terra
WORKDIR /home/terra
COPY --from=go-builder /go/src/github.com/terra-project/core/build/terrad /usr/local/bin/terrad
COPY --from=go-builder /go/src/github.com/terra-project/core/build/terracli /usr/local/bin/terracli

# Run terrad by default, omit entrypoint to ease using container with terracli
CMD ["terrad"]
CMD [ "terrad", "--help" ]
Loading