Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Commit

Permalink
V0.37.9 patched by okchain (#13)
Browse files Browse the repository at this point in the history
* okchain patch

* Change system fee to gas fee

* remove minimum-gas-prices from the server/start.go

* fix backend default config

* Remove some meaningless comments and some default value of flags

* fix the mock test func

* set 	defaultMinGasPrices = "0.00000001okt"

* FIX: issue #47, remove param msdLimited in config/default_params.go

* add fee

* Update query.go

change client tips from cosmosxxx to okchainxxx

* open CI and fix UT (#12)

* Update config.yml

* udpate go mod

* Update config.yml

* fix UT

* fix UT

* fix UT

* fix UT

* fix UT

* fix UT

* fix UT

* fix UT

* fix slashing UT

* Update config.yml

* cancel TxMsgs limit, revert to version cosmos

* Update config.yml

* Update config.yml

* Update config.yml

* Update README.md

Co-authored-by: ylsGit <>
Co-authored-by: yezhigang <zhigang.ye@okcoin.net>

* To fix okchain issue #70 && order tx not requiring fees (#10)

* set the Infinite Gas Meter for order tx

Co-authored-by: GeYiLi <yili.ge@okcoin.net>

Co-authored-by: liuxiong <xiong.liu@okcoin.net>
Co-authored-by: yanwei.han <yanwei.han@okcoin.net>
Co-authored-by: qzhongwood <2609611@qq.com>
Co-authored-by: MichaelWang <guanyi.wang@okcoin.net>
Co-authored-by: lei.ji@okcoin.com <lei.ji@okcoin.net>
Co-authored-by: ZhiGang <44460798+KamiD@users.noreply.github.com>
Co-authored-by: ylsGit <bzwdyls@163.com>
Co-authored-by: yezhigang <zhigang.ye@okcoin.net>
Co-authored-by: banishee <gl12138@live.com>
Co-authored-by: GeYiLi <yili.ge@okcoin.net>
  • Loading branch information
11 people authored Apr 27, 2020
1 parent 469463a commit e85e6e7
Show file tree
Hide file tree
Showing 187 changed files with 2,679 additions and 1,551 deletions.
166 changes: 12 additions & 154 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
version: 2.1

executors:
golang:
docker:
- image: circleci/golang:1.13
docs:
docker:
- image: tendermintdev/docker-website-deployment
environment:
AWS_REGION: us-east-1

commands:
make:
parameters:
Expand All @@ -35,8 +25,10 @@ commands:
make << parameters.target >>
jobs:
setup_dependencies:
executor: golang
build:
docker:
- image: circleci/golang:1.13
working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}}
steps:
- checkout
- restore_cache:
Expand All @@ -47,11 +39,13 @@ jobs:
name: Cache go modules
command: make go-mod-cache
- run:
name: Build
command: make build
- run:
name: Git garbage collection
command: git gc
name: Run tests
command: |
export VERSION="$(git describe --tags --long | sed 's/v\(.*\)/\1/')"
export GO111MODULE=on
for pkg in $(go list ./... | grep -v staking | grep -v distribution | grep -v gov | grep -v params | circleci tests split); do
go test -mod=readonly -tags='ledger test_ledger_mock' "$pkg"
done
- save_cache:
name: "Save go modules cache"
key: go-mod-v1-{{ checksum "go.sum" }}
Expand All @@ -61,140 +55,4 @@ jobs:
name: "Save source code cache"
key: go-src-v1-{{ .Revision }}
paths:
- ".git"

test_sim_nondeterminism:
executor: golang
steps:
- make:
target: test_sim_nondeterminism
description: "Test individual module simulations"

test_sim_import_export:
executor: golang
steps:
- make:
target: test_sim_import_export
description: "Test application import/export simulation"

test_sim_after_import:
executor: golang
steps:
- make:
target: test_sim_after_import
description: "Test simulation after import"

test_sim_multi_seed_long:
executor: golang
steps:
- make:
target: test_sim_multi_seed_long
description: "Test multi-seed simulation (long)"

test_sim_multi_seed_short:
executor: golang
steps:
- make:
target: test_sim_multi_seed_short
description: "Test multi-seed simulation (short)"

test_cover:
executor: golang
parallelism: 4
steps:
- checkout
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run:
name: Run tests
command: |
export VERSION="$(git describe --tags --long | sed 's/v\(.*\)/\1/')"
export GO111MODULE=on
mkdir -p /tmp/logs /tmp/workspace/profiles
for pkg in $(go list ./... | grep -v '/simulation' | circleci tests split); do
id=$(echo "$pkg" | sed 's|[/.]|_|g')
go test -mod=readonly -timeout 8m -race -coverprofile=/tmp/workspace/profiles/$id.out -covermode=atomic -tags='ledger test_ledger_mock' "$pkg" | tee "/tmp/logs/$id-$RANDOM.log"
done
- persist_to_workspace:
root: /tmp/workspace
paths:
- "profiles/*"
- store_artifacts:
path: /tmp/logs

upload_coverage:
executor: golang
steps:
- attach_workspace:
at: /tmp/workspace
- checkout
- run:
name: gather
command: |
echo "--> Concatenating profiles:"
ls /tmp/workspace/profiles/
echo "mode: atomic" > coverage.txt
for prof in $(ls /tmp/workspace/profiles/); do
tail -n +2 /tmp/workspace/profiles/"$prof" >> coverage.txt
done
- run:
name: filter out DONTCOVER
command: |
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER' | xargs realpath --relative-to=$GOPATH/src)"
for filename in ${excludelist}; do
echo "Excluding ${filename} ..."
sed -i "\%${filename}:%d" coverage.txt
done
- run:
name: upload
command: bash <(curl -s https://codecov.io/bash) -f coverage.txt

check_statik:
executor: golang
steps:
- make:
target: update-swagger-docs
description: "Check if statik.go is up-to-date"

workflows:
version: 2
test-suite:
jobs:
- check_statik:
requires:
- setup_dependencies
- setup_dependencies:
# This filter enables the job for tags
filters:
tags:
only:
- /^v.*/
- test_sim_nondeterminism:
requires:
- setup_dependencies
- test_sim_import_export:
requires:
- setup_dependencies
- test_sim_after_import:
requires:
- setup_dependencies
- test_sim_multi_seed_short:
requires:
- setup_dependencies
- test_sim_multi_seed_long:
requires:
- setup_dependencies
# These filters ensure that the long sim only runs during release
filters:
branches:
ignore: /.*/
tags:
only:
- /^v.*/
- test_cover:
requires:
- setup_dependencies
- upload_coverage:
requires:
- test_cover
- ".git"
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Cosmos SDK
![banner](docs/cosmos-sdk-image.jpg)

[![version](https://img.shields.io/github/tag/cosmos/cosmos-sdk.svg)](https://github.com/cosmos/cosmos-sdk/releases/latest)
[![CircleCI](https://circleci.com/gh/cosmos/cosmos-sdk/tree/master.svg?style=shield)](https://circleci.com/gh/cosmos/cosmos-sdk/tree/master)
[![codecov](https://codecov.io/gh/cosmos/cosmos-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/cosmos/cosmos-sdk)
[![Go Report Card](https://goreportcard.com/badge/github.com/cosmos/cosmos-sdk)](https://goreportcard.com/report/github.com/cosmos/cosmos-sdk)
[![license](https://img.shields.io/github/license/cosmos/cosmos-sdk.svg)](https://github.com/cosmos/cosmos-sdk/blob/master/LICENSE)
[![LoC](https://tokei.rs/b1/github/cosmos/cosmos-sdk)](https://github.com/cosmos/cosmos-sdk)
[![API Reference](https://godoc.org/github.com/cosmos/cosmos-sdk?status.svg
)](https://godoc.org/github.com/cosmos/cosmos-sdk)
[![version](https://img.shields.io/github/tag/dex/cosmos-sdk.svg)](https://github.com/dex/cosmos-sdk/releases/latest)
[![CircleCI](https://circleci.com/gh/okex/cosmos-sdk.svg?style=shield)](https://circleci.com/gh/okex/cosmos-sdk)
[![codecov](https://codecov.io/gh/dex/cosmos-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/dex/cosmos-sdk)
[![Go Report Card](https://goreportcard.com/badge/github.com/cosmos/cosmos-sdk)](https://goreportcard.com/report/github.com/dex/cosmos-sdk)
[![license](https://img.shields.io/github/license/dex/cosmos-sdk.svg)](https://github.com/dex/cosmos-sdk/blob/master/LICENSE)
[![LoC](https://tokei.rs/b1/github/dex/cosmos-sdk)](https://github.com/dex/cosmos-sdk)
[![API Reference](https://godoc.org/github.com/dex/cosmos-sdk?status.svg
)](https://godoc.org/github.com/dex/cosmos-sdk)
[![riot.im](https://img.shields.io/badge/riot.im-JOIN%20CHAT-green.svg)](https://riot.im/app/#/room/#cosmos-sdk:matrix.org)

The Cosmos-SDK is a framework for building blockchain applications in Golang.
Expand Down
Loading

0 comments on commit e85e6e7

Please sign in to comment.