Commit Graph

474 Commits

Author SHA1 Message Date
Aaron Craelius
850419fffd
Tx CLI proto module interface (#5989)
* WIP

* WIP

* WIP on removing x/auth dependency from client/tx

* Revert unneeded changes

* Simplify cli tx UX

* Wire up bank tx REST routes

* Fix assignment issue

* Wire up bank NewSendTxCmd

* fix lint

* revert file

* revert file

* fix simcli

* Refactor AccountRetriever

* Fix build

* Fix build

* Fix build

* Fix integration tests

* Fix tests

* Docs, linting

* Linting

* WIP on all modules

* Implement other module new tx cmd's

* Fix cmd's

* Refactor existing GetTxCmd

* Fix cmd

* Removing deprecated code

* Update ADR 020 & CHANGELOG

* Lint

* Lint

* Lint

* Lint

* Lint

* Lint

* Lint

* Fix client/tx tests

* Fix mocks

* Fix tests

* Lint fixes

* REST tx migration

* Wire up REST

* Linting

* Update CHANGELOG, docs

* Fix tests

* lint

* Address review feedback

* Update CHANGELOG.md

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* Update CHANGELOG.md

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* group vars

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-05-21 21:29:34 +00:00
Aaron Craelius
70767c87c4
Update x/gov to use Any (#6147)
* Update x/gov to use Any

* Fixes

* Remove MsgSubmitProposalLegacy

* Update CHANGELOG.md

* Add RegisterInterfaces for x/distribution, x/params, & x/upgrade

* Fix query JSON issue

* Fix gov tests

* Revert custom Any Equals

* Re-remove types

* Rename receivers

* Fix imports in gov

* Sort imports

* Make amino JSON signing work with Any

* Run proto-gen

* Create full amino wrapper

* Fix errors

* Fixes

* Fix tests

* Test fixes

* Fix tests

* Linting

* Update ADR 019 and CHANGELOG

* Updated ADR 019

* Extract Marshal/UnmarshalProposal

* fix error

* lint

* linting

* linting

* Update client/keys/parse.go

Co-authored-by: Marko <marbar3778@yahoo.com>

* linting

* Update docs/architecture/adr-019-protobuf-state-encoding.md

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* Update docs/architecture/adr-019-protobuf-state-encoding.md

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* Address review feedback

* Add godocs

* Fix errors

* fix errors

* revert file

* Address review feedback

* Address review feedback

* Stacktrace debug flag

* Fix tests

* Address review feedback

Co-authored-by: sahith-narahari <sahithnarahari@gmail.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-05-19 20:17:29 +00:00
Aaron Craelius
386217209d
Merge PR #6076: Proto Any init + evidence 2020-05-05 10:28:20 -04:00
Alessio Treglia
2414e5bdd4
x/auth: turn sign --validate-sigantures into a standalone command (#6108)
--validate-signatures should not be a flag of the sign command
as the operation performed (transaction signatures verification)
is logically distinct.

cli_test is and has always been an horrible name for package
directory as it's very much Go anti-idiomatic - _test is the
suffix used by test packages, not directories. Plus, CLI test
cases can and should live alongside other testcases that don't
require binaries to be built beforehand. Thus:

x/module/client/cli_test/*.go -> x/module/client/cli/

Test files that require sim{cli,d} shall be tagged with // +build cli_test

With regard to cli test auxiliary functions, they should live in:

x/module/client/testutil/

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-05-04 13:55:16 +00:00
SaReN
f92f6c9dd1
Add CLI tests for simd, distribution (#6095)
* Added cli integration base setup

* Added cmd to simapp

* Fixed ci-lint issues

* Fixed ci-lint issues

* Addressed changes in Makefile

* Updated simd to latest

* Removed testnet and replay commands

* Modified tx command for simcli

* Did code cleanup

* Removed duplication in Makefile

* Refactored cli_test

* Added build-sim to Makefile

* Added test-cli to circleci

* Added tests for staking txns

* Addressed format issues

* refctored tests code

* Added tests for send, staking

* Removed test_hepers file

* Moved test_cover to contrib

* Added codec in fixtures

* Migrated tests to respective modules

* Exported helper methods

* Moved helpers to bank

* Added codec to fixtures

* Migrated tests to modules

* Removed auth helpers from staking

* Did minor code cleanup

* Added test-cli to Makefile

* Updated github actions

* Did code refactor

* Fixed github actions for cli-test

* Added tests for recover keys and fee deduction

* Did minor code cleanup

* Added build flag to cli_tests

* Moved cli_test to tests

* Modified path in Makefile

* Updated codec std in fixtures

* Added doc for cli tests

* Remove ibc genesis validation

* Fix issue number

* Added missing imports

* Add tests for distribution and simd

* Modified naming for test functions

* Added test for withdraw rewards

* Modified test function names

* Fixed import format

* Migrated helpers to package cli

* Fixed github test actions

* Fixed test coverage in actions

* Added build sim to actions

* Apply Alessio patch for tests

* Removed unused imports

* Added init for go tests

* try fix tests

* goimports what wasn't goimports'd

* try fix ci

* add relevant tags to integration tests

* run integration tests separately

* use go build -o flag and let compiler gemerate the binary with the
right extension for the HOST platform

rename cli-test to test-integration

* update ci

* rename

Co-authored-by: atheesh <atheesh1>
Co-authored-by: kaustubhkapatral <54210167+kaustubhkapatral@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: anilCSE <anil@vitwit.com>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-05-01 20:16:17 +00:00
Alessio Treglia
a8a455a6f7
Makefiles: various improvements (#6101)
Don't reinstall proto tools unconditionally every time
one runs make.

On most Linux systems, /usr/local is writable by root only.
Allow users to customise installation directory by passing
PREFIX to make command line, e.g.:

 $ make PREFIX=~/.local
2020-04-30 21:30:30 +02:00
SaReN
3b71198b25
Merge PR #6033: Add setup for cli_test 2020-04-29 11:52:30 -04:00
Marko
4b3eb0ea98
ci: migrate long sims (#6084)
Cancel ci if no .go files have been touched. There is no clean way of
doing this so i opted to `exit 1` on the diff job if no go files were
changed and have builds depend on diff passing

- migrate proto checks  to github actions.
- providing make commands to use buf within docker.
-  test-sim-multi-seed-long migration to github actions. Follows same
  logic and only runs on release branches.
-  add protobuf section to CONTRIBUTING.md.
2020-04-28 16:13:36 +02:00
Federico Kunze
3ee975c57b
Merge PR #6037: refactor simulation decoder 2020-04-21 17:33:56 -04:00
SaReN
50f81b173b
Add simd and simcli commands (#5998)
Reference: #5951
2020-04-20 15:17:21 +02:00
Alessio Treglia
22f377a858
regenerate mocks, don't format autogenered files on make format (#5848) 2020-03-20 18:14:53 +00:00
Alessio Treglia
3349c971ae
increase types/module coverage up to 80% (#5740)
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-03-03 13:38:46 +00:00
Alessio Treglia
5f14dc2e42
Increase coverage across the store package (#5727) 2020-02-28 23:05:28 +00:00
Alessio Treglia
5a2e59ebb2
Exclude proto files from format (#5706)
* Don't change proto files on make format

The format target does not need to depend on tools.
Thus remove dependency.

* Run make format

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-02-27 07:53:22 -03:00
Marko
32b40fdb27
Merge PR #5669: proto: update tendermint proto files 2020-02-20 11:38:07 +01:00
Marko
56c5868975
Merge PR #5610: proto: migrate x/distr to use hybrid codec 2020-02-11 09:58:37 -05:00
Erik Grinaker
05e40d3ff3
Merge PR #5612: Makefile: remove golangci-lint installation 2020-02-04 13:43:48 -05:00
Alexander Bezobchuk
26d6e49d6a
Merge PR #5491: Protobuf Introduction + Types 2020-01-24 10:32:00 -05:00
Alessio Treglia
394860068d
keyring's encrypted file backend integration (#5355)
Client commands accept a new `--keyring-backend` option through which users can specify which backend should be used by the new key store:
- os: use OS default credentials storage (default).
- file: use encrypted file-based store.
- test: use password-less key store (highly insecure).
2019-12-11 09:45:26 +00:00
Alessio Treglia
9428615c49 Run tests with passwordless keyring (#5332) 2019-11-20 10:42:02 +01:00
Mircea Colonescu
1285782ef6 add docs staging build (#5306) 2019-11-13 12:06:05 +01:00
Alessio Treglia
849e2fb638 Merge PR #5025: Standardize and clean up Makefile
* Attempt to standardise Makefile's conventions

Use check- prefix for test- targets to adhere to
Make's standard naming convention [1].

Snake-case names are abandoned in favor of
kebab-case naming convention.

[1] https://www.gnu.org/prep/standards/html_node/Standard-Targets.html

* Replace check- with test-

* Remove goimports from tools

* Update circleci config

* Update workflow steps names to match Makefile

* Fix circleci config

* s/check_statik/update-swagger-docs/
2019-09-11 08:13:11 -07:00
Alexander Bezobchuk
47ffaa2504
Merge PR #5018: Fix test_sim_multi_seed_long make target 2019-09-09 13:40:33 -04:00
Alexander Bezobchuk
2c4faf983b
Merge PR #5015: Update Makefile runsim targets 2019-09-09 09:54:01 -04:00
Federico Kunze
e3e49fc72c Merge PR #5009: remove redundant invariant simapp check 2019-09-06 14:23:40 -04:00
Federico Kunze
45b25ceaae Merge PR #4838: Sim refactor 2 - Move GenesisState generators to modules 2019-08-28 10:58:25 -04:00
mircea-c
450c8ced2c Merge PR #4787: Updated docs build process 2019-08-26 09:09:18 -04:00
Alexander Bezobchuk
42c54f8d0c
Merge PR #4861: Simulation Fixes 2019-08-07 12:54:13 -04:00
Alexander Bezobchuk
451535bd79
Merge PR #4837: Cleanup node_info Endpoint 2019-08-02 11:52:55 -04:00
mircea-c
e8ed9302f7 CI configuration refactor (#4776)
* added back the tools targets
* removed ci target
2019-07-25 20:21:42 +02:00
Federico Kunze
8af2230ee4 Merge PR #4731: Save sim params and export app state to file 2019-07-19 18:59:04 +02:00
Alessio Treglia
01d4425658
Remove tools from the repository (#4683) 2019-07-04 15:54:06 +01:00
Alessio Treglia
a57915600c
Update golangci-lint (#4636)
Update golangci-lint to latest version.

Remove ci-lint, no longer used.

Remove golangci-lint from tools target to prevent CI builds
from downloading automatically (and unnecessarily).
Developers can still run make golangci-lint to download
it locally for development and testing purposes.
2019-06-28 15:11:26 +01:00
Alessio Treglia
908c5cf4be
R4R: added slack notification to runsim (#4547) 2019-06-26 08:11:42 +01:00
Alessio Treglia
1eb7706c28
Separate account getters from client/context (#4579)
Account getters are removed from client context. x/auth has the
queriers necessary for retrieving account information.
These functions should be removed since they are currently
redundant and don't provide any extra value.

Closes: #4543
2019-06-19 14:24:11 +02:00
Alexander Bezobchuk
5cae008fbe
Merge #4434: Remove draw_deps target 2019-05-29 10:58:28 -04:00
Karoly Albert Szabo
c39fa755cb Merge PR #4413: Revert swagger removal 2019-05-28 09:46:26 -04:00
Alexander Bezobchuk
4b872d2eb4
Merge PR #4377: Remove statik/Swagger UI 2019-05-20 11:19:53 -04:00
Alessio Treglia
71d71f2206
Remove gaia (#4347)
Gaia is removed from cosmos-sdk repository.

Few changes were required to make sure no packages depend on gaia subpackages.

CI config is amended accordingly.

Unnecessary targets are removed from Makefile.

Simulations run through a lightweight version of gaia renamed to simapp.

Closes: #4104
2019-05-18 10:42:24 +02:00
frog power 4000
3fe5869148
Merge PR #4159: Module/Genesis Generalization
* first commit

* gaia cleanup

* ...

* staking multihooks

* missing module function return args

* bank module name constant

* working, module interface for x/

* got this thing compiling

* make test compiles and passes

* remove expanded simulation invariants

* genesis issue

* continued

* continued

* register crisis routes thought mm

* begin blocker to mm

* end blocker to mm

* empty routes not initialized

* move gaia initChainer sanity check to baseapp

* remove codecs from module manager

* reorging genesis stuff

* module manager passed by reference/bugfixes from working last commit

int

int

* move invariant checks from gaia to crisis

* typo

* basic refactors cmd/gaia/init

* working

* MultiStakingHooks from types to x/staking/types

int

* default module manager order of operations from input modules

* working

* typo

* add AppModuleBasic

* moduleBasicManager / non-test code compiles

* working attempting to get tests passing

* make test passes

* sim random genesis fix

* export bug

* ...

* genutil module

* genutil working

* refactored - happy with non-testing code in cmd/

* ...

* lint fixes

* comment improvement

* cli test fix

* compile housing

* working through compile errors

* working gettin' compilin'

* non-test code compiles

* move testnet to its own module

* reworking tests

int

* bez staging PR 1 comments

* concise module function-of names

* moved all tests from genesis_test.go to other genutil tests

* genaccounts package, add genutil and genaccounts to app.go

* docs for genutil genaccounts

* genaccounts iterate fn

* non-test code with genaccounts/ now compiles

* working test compiling

* debugging tests

* resolved all make test compile errors

* test debuggin

* resolved all unit tests, introduced param module

* cli-test compile fixes

* staking initialization bug

* code comment improvements, changelog entries

* BasicGaiaApp -> ModuleBasics

* highlevel explanation in types/module.go

* @alexanderbez comment revisions

* @fedekunze PR comments

* @alexanderbez PR comments (x2)

* @cwgoes comments (minor updates)

* @fedekunze suggestions

* panic on init with multiple validator updates from different modules

* initchain panic makes validate genesis fail

int

* AppModuleGenesis seperation

int

* test

* remove init panic logic in validate genesis replaced with TODO

* set maxprocs to match system's GOMAXPROCS

* Update circleci

* Cap maxprocs in CI to 4

* @alexanderbez recent comments addressed

* less blocks in twouble sims

int

* runsim error output flag

* -e on import_export as well

* error out

int

* Try to fix failures

* runsim
2019-05-16 11:25:32 -04:00
Alessio Treglia
c0486aa532
R4R: Infrastructure for reproducible builds (#4262)
This change set introduces support for building gaia with gitian
on the following GOOS/GOARCH pairs:

- darwin/386
- darwin/amd64
- linux/386
- linux/amd64
- linux/arm
- linux/arm64
- windows/386
- windows/amd64

cmd/gaia/contrib/gitian-descriptors/ contains gitian descriptor files.

cmd/gaia/contrib/gitian-keys/ contains:
- a keys.txt file that is meant to list core developers and gitian
  builders PGP keys. 
- README.me to provide instructions on how to import the keys
  into one's personal GPG keyring.

The gosum utility is removed, so is the go.sum hashsum bit from
gaiacli/gaiad version string. It was meant to be a provisional
mitigation to the lack of a reproducible build process.

GOBIN is removed from all Makefiles. When GOBIN is set, go
refuses to cross-compiles binaries for foreign architectures.
export GOBIN=$GOPATH/bin is unnecessary anyway as by
default go install places built binaries in $GOPATH/bin.
Developers are required to update their enviornment files and
replace $GOBIN with $GOPATH/bin in PATH.

circleci configuration file is amended accordingly.

Closes: #4027
Closes: #4280
2019-05-14 00:33:34 +02:00
Alessio Treglia
06f7b2198a
Replace vet with golangci lint govet (#4277)
Drop go vet in favor of golangci-lint govet check.

Fix golangci-lint warnings.

Upgrade golangci-lint.
2019-05-06 17:50:05 +01:00
Alessio Treglia
5060187d3d
Merge gaiareplay into gaiad to reduce number of binaries (#4272) 2019-05-06 17:43:37 +01:00
Alessio Treglia
38f93128eb
Remove baseapp dependency on the version package (#4250)
The version package is meant to be a convenience utility
that provides SDK consumers with a ready-to-use version
command that produces app's versioning information from
flags passed at compile time.
It will not make sense anymore for the baseapp package
to depend on the version package once gaia will have been
migrated away from the SDK main repository as we neither
want to make assumptions nor set expectations on downstream
apps buildsystems. Thus BaseApp now provides SetAppVersion()
and AppVersion() to to allow SDK consumers to set BaseApp's
version information string once the struct is initialised.
2019-05-02 20:37:44 +01:00
Alessio Treglia
60a6a8dcef
Remove tools from go.sum deps (#4251)
The go.sum target does not need to depend on tools to run successfully.
2019-05-02 17:30:29 +01:00
Alessio Treglia
4e70a37c6b Merge PR #4228: gaiakeyutil -> gaiacli keys parse 2019-05-02 09:34:02 -04:00
Alessio Treglia
4bf9d2b3ec Merge PR #4161: New experimental simulation runner 2019-04-23 09:01:59 -04:00
Alessio Treglia
74ea92a990
New Makefile for gaia (#4110)
Amend targets naming convention as per [1]:
- Switch from underscore '_' separated naming scheme to dash '-'
  separated naming scheme.
- Replace test with check.

Simulations now live in their own Make module.

[1] https://www.gnu.org/prep/standards/html_node/Standard-Targets.html
2019-04-15 14:00:28 +01:00
Alexander Bezobchuk
722d122da7
Merge PR #4079: Implement Invariant Benchmarks 2019-04-12 18:52:16 -04:00
Alessio Treglia
1505c2b2e6
Move tools to contrib (#4073)
Also rename sdkch to clog
2019-04-09 10:41:00 +01:00
Frank Yang
9e7440a92c Merge PR #4064: Remove dep/vendor from documentation and version cmd
* Remove `dep` and `vendor` from documentation
* Replace vendor with go.sum hash in version command
2019-04-08 11:00:17 -04:00
Alessio Treglia
3b9a1f7c29
Handle build correctly (#4016)
Remove build from .PHONY, add it to clean
2019-04-02 03:01:12 +02:00
Alessio Treglia
cdf2b7a7c5
gometalinter -> golangci-lint migration (#3933)
{,scripts/}Makefile:
- Remove gometalinter, install golangci-lint.
- Remove distinction between tools and devtools.
  Just tools is enough.
- test_lint -> lint
  Migrating away from underscore separated names.
- Remove unnecessary targets.
- Drop tendermint/lint. Incompatbile with golangci-lint
  and no longer necessary anyway.
- Fix misleading message in go-mod-cache.
- New ci-target to avoid download tools twice.
- Run tests with -mod=readonly.

Port tools/gometalinter.json to .golangci.yml
Update CircleCI config accordingly.

Closes: #3896
2019-03-19 17:52:43 +01:00
Alessio Treglia
6ce4d5efd1
replace dep with go mod (#3907)
Replace sha1sum with jack's gosum and get rid of
vendor-deps.
Also don't compute hash on vendor/ contents.
Instead hash go.sum.

Disable unconvert lint check. It does not
work very well with go mod.

Remove update_vendor_deps once and for all.

Upgrade to go 1.12

Closes: #3919 #3630
2019-03-18 13:45:25 +01:00
Alessio Treglia
648b43288b Merge PR #3828: Add sdkch to maintain PENDING.md effectively and free of file conflicts
Closes: #2380
2019-03-14 14:24:53 +01:00
Jae Kwon
a24dee0155 Merge PR #3808: Make cli tests use build files
* Make cli tests use build files

* Update PENDING.md

Add PR number.
2019-03-07 11:51:14 -08:00
Alessio Treglia
3e82a8bbb8 Merge PR #3792: Use DBBackend set at compile time
* use DBBackend set at compile time

Closes: #3719

* Refresh changelog

* Tweak Makefile
2019-03-04 21:31:55 +01:00
Juan Leni
787f46546d Merge PR #3620: Indicate build flags in version 2019-02-13 09:53:16 -08:00
Juan Leni
4282c6a351 Merge PR #3582: Fix for make test_unit
* Fix for make test_unit
* adding entry in pending.md
2019-02-11 11:28:52 +01:00
Juan Leni
b5fdb83830 Merge PR #3517: Increasing test coverage in keys/client package 2019-02-08 12:45:23 -08:00
Alessio Treglia
b63b6254c8 Merge PR #3522: get rid of double negatives: IsNotNegative -> IsAnyNegative 2019-02-06 14:45:15 -08:00
Juan Leni
174ec0c809 Merge PR #3431: PrivKeyLedgerSecp256k1: lost connection 2019-02-05 10:21:04 -08:00
Alessio Treglia
59727516ee Remove build-snap-edge, keep snapcraft-local.yaml for local builds 2019-02-03 16:35:13 -08:00
Alessio Treglia
24876aa47b Merge PR #3441: Small fixes for Makefile
- Remove --long from git describe. Appending commit info on tagged
  revisions is redundant.
- $(subst v,,$(shell git describe --tags --long)) was removing any
  occurrence of 'v'. Rather we want to remove only the 'v' prefix
  from tags.
2019-01-30 06:00:06 +01:00
Alessio Treglia
26ee435a61 Upgrade gometalinter (#3439) 2019-01-29 16:02:39 -08:00
Christopher Goes
9320dbb2da
Merge PR #3428: Simulate from a genesis file 2019-01-29 23:53:42 +01:00
Alessio Treglia
0ed6de0cbd Merge PR #3426: Various changes to version cmd, revert those which previously broke ABI
* version prints out short info by default

Handle -o json, add --long flag to print full version info.

* Add distclean target to Makefile

* Update PENDING.md

* Add missing targets in .PHONY
2019-01-29 23:25:43 +01:00
Alessio Treglia
f16cc31919 Merge PR #3403: Implement parameter-controlled bank/send switch-off 2019-01-29 04:06:48 +01:00
Alessio Treglia
57ae957168 Snap Packaging #3313 2019-01-28 15:00:17 -08:00
gamarin2
7988686e75 Update docs get_vendor_deps -> vendor-deps (#3402) 2019-01-28 09:49:13 -08:00
Jack Zampolin
af60c75dd3 Merge PR #3352: Reenable simulation tests 2019-01-24 22:01:32 +01:00
Alessio Treglia
168034746d Merge PR #3374: Install and build-linux depend on vendor-deps 2019-01-24 20:29:24 +01:00
Jack Zampolin
0043912548 Merge PR #3338: Remove unused code and examples 2019-01-24 11:18:45 +01:00
Alessio Treglia
bf59291a79 Merge PR #3343: Enrich version command's output 2019-01-22 21:16:29 +01:00
Alessio Treglia
0c0bff7ea0 Fix Makefile's all target (#3085)
- Rename get_dev_tools to devtools
- tools and devtools now create a stamp after execution so
  that they are not executed twice on the same pipeline
- Add clean target to remove stamps
2018-12-20 10:03:59 -08:00
Sunny Aggarwal
f4fb3608c0 Redelegation Querier (#2559) 2018-12-18 13:43:41 -08:00
Jae Kwon
677ea0a541
Welcome back, logjack (#3126) 2018-12-16 21:32:01 -08:00
Jae Kwon
e02e55116c multi_seed sim should run 400, or at least 100 2018-12-08 07:31:27 -08:00
Jae Kwon
bc51fa93b6
Fix updateValidatorDistInfoFromPool (#3046)
Fixes regression introduced by #2984.
Continuiation of #3033 , which didn't fix the simulation issues.
(candidate) Complete solution for #3019, 9002 halt bug.

From #2984, it isn't sufficient to take the fee pool rewards of a validator. Since we don't track delegator accums (as we do with validator accums), and because onValidatorModified >updateValidatorDistInfoFromPool is also being called upon delegation updates (or at least I believe this is the reason), it is necessary to also withdraw self delegation.

TODO: I don't think self-delegation should be required to be modified here... consider using a delegation hook to do the self-delegation withdraw part instead, e.g. splitting the updateValidatorDistInfoFromPool function into two. It might not result in cleaner code, however. Think hard.
2018-12-08 07:18:04 -08:00
Jae Kwon
2473b74d86
Jae/gaiareplay3 (#3032)
gaiareplay tool
2018-12-07 03:19:49 -08:00
Jack Zampolin
d8fbae677f R4R: Additional gentx verfication (#2971)
* Add check that account is in genesis and contains enough funds to gentx command

* Fix CLI tests and make them parallel

* Update makefile to take advantage of parallel tests

* Add path seperator back in

* Don
't check error on key delete

* Add debuggin printout for debugging remote test failures

* Update cmd/gaia/init/gentx.go

Co-Authored-By: jackzampolin <jack.zampolin@gmail.com>

* Update cmd/gaia/init/gentx.go

Co-Authored-By: jackzampolin <jack.zampolin@gmail.com>

* Change to bondDenom from the stake section in genesis

* Add PENDING.md

* Push changes

* Fix CI failure

* Address PR comments

* Fix broken gov tests

* Address PR comments

* Address PR comments
2018-12-04 10:57:44 +01:00
Alessio Treglia
bedc900d49 Run cli test in parallel (#2969) 2018-11-30 15:11:52 -08:00
Christopher Goes
b2b026b5e0
Merge PR #2930: Simulation spring cleaning
* Update PENDING.md
* Add simple period for expensive invariants
* Remove individual module simulations
* Simulate a few more blocks
* Add README explaining reason for shell scripts
* Deduplicate scripts, log exact replication command on failure
* Refactor invariants to take sdk.Context instead of baseapp.BaseApp
* Reference all issues in PENDING.md entry
* Remove no longer used simulation.RandSetup
* Bug fixes
* Address @rigelrozanski comments
* Fix typo
2018-11-29 16:17:10 +01:00
Jae Kwon
d1e76221d8
Jae/simulator improvements (#2900)
* Make simulator operations predetermined
* Use new dbm.ReverseIterator API
* Simulation speed improvements
* Pin exact revisions, not branches
* Rename 'MountStoresIAVL' to 'MountStores'
* Zero Power Block fees to community pool
2018-11-27 00:14:22 -08:00
Greg Szabo
2e0dfc31af Added goimports tool to get_tools. Fixed get_tools build. (#2889)
* Added goimports tool to get_tools. Get_tools now only builds new versions if binaries are missing.
* Added the goimports format command from yutianwu's PR
* goimports install typo fix
2018-11-26 14:20:43 -05:00
Christopher Goes
ad121f1498 Add a flag to export for zero-height start (#2827)
Closes #2812

This PR adds the flag --for-zero-height to gaiad export, which runs several alterations to the application state to prepare for restarting a new chain in a consistent fashion.

It also:

* Moves Gaia's export code to cmd/gaia/app/export.go for cleaner separation.
* Fixes an inconsistency where we treated the initChainer as happening at height -1 - it should now happen at height 0, since the first header sent by Tendermint has height 1.
* Runs the runtime invariant checks on start (in initChainer)
* Adds a few auxiliary functions to clear slashing periods
* Removes the Height field from Delegation objects in x/stake, which was not used anywhere
2018-11-26 04:21:23 -08:00
gamarin2
addcfbf5cb Documentation Structure Change and Cleanup (#2808)
* Update docs/sdk/clients.md
* organize ADR directory like tendermint
* docs: move spec-proposals into spec/
* remove lotion, moved to website repo
* move getting-started to cosmos-hub, and voyager to website
* docs: move lite/ into clients/lite/
* move introduction/ content to website repo
* move resources/ content to website repo
* mv sdk/clients.md to clients/clients.md
* mv validators to cosmos-hub/validators
* move deprecated sdk/ content to _attic
* sdk/modules.md is duplicate with modules/README.md
* consolidate remianing sdk/ files into a single sdk.md
* move examples/ to docs/examples/
* mv docs/cosmos-hub to docs/gaia
* Add keys/accounts section to localnet docs
2018-11-14 11:44:17 -08:00
Christopher Goes
2bff5c2838
Merge PR #2748: Fix governance simulation, more import/export work 2018-11-14 19:20:50 +01:00
Alessio Treglia
6e9c3f8d1a Merge PR #2744: Fix Makefile targets dependencies
* Fix Makefile targets dependencies
* Remove unnecessary build deps from install targets
* Create a rule for each tool
* Don't dep test_lint on tools
2018-11-14 17:15:46 +01:00
Christopher Goes
d2a53539dd Merge branch 'develop' into cwgoes/fix-gov-sim-more-import-export 2018-11-13 14:23:15 +01:00
Christopher Goes
9c01348d7c Merge branch 'develop' into greg/MakefileFix2672 2018-11-12 19:59:06 +01:00
Christopher Goes
d761eb7282 Address remaining comments from #2690 2018-11-09 16:26:08 +01:00
Christopher Goes
94f45311a0 Fix state export/import, add to CI (#2690)
* Update slashing import/export
* More slashing.WriteGenesis
* Add test import/export to CI
* Store equality comparison.
* Fix validator bond intra-tx counter
* Set timeslices for unbonding validators
* WriteGenesis => ExportGenesis
* Delete validators from unbonding queue when re-bonded
* Hook for validator deletion, fix staking genesis tests
2018-11-08 16:28:28 -08:00
Greg Szabo
9bbd3e3711 Removed comment from Makefile as per bez's request 2018-11-08 10:20:14 -05:00
Greg Szabo
74549faac9 Cross-compiling get_tools Makefile added 2018-11-07 22:42:43 -05:00
Greg Szabo
02327e13b6 Makefile OS compatibility update 2018-11-07 04:02:18 -05:00
ValarDragon
3cffe29da7 simulation: Make validator choice use validator set
This also had to change the default seed, since with the previous one it
actually got into a state where there were no validators left bonded, lol.

This also changes Unbond msgs from failing with almost 100% probability to now
only failing with 33% probability.
Thus more of the state machine is getting tested!
2018-11-01 12:45:22 -07:00
Dev Ojha
0d8325b859 Merge PR #2623: Speedup simulator by switching to goleveldb
Due to requiring app.Commit() at the moment, golevel db is significantly faster than a memdb
2018-10-30 00:10:39 +01:00
Jae Kwon
0f1fb179c4 Merge PR #2599 from cosmos/jae/dist_refactor
* Rename Pool -> DelRewards; PoolCommission -> ValCommision
* FeePool.Pool -> FeePool.ValPool
* WithdrawalHeight->DelPoolWithdrawalHeight
* OnValidatorBeginUnbonding
* Caught the bug's tail
* Update vi.FeePoolWithdrawalHeight upon bonding
* Fix staking slashUnbondingDelegation bug; fixes simulator failure #9
2018-10-26 13:27:55 +02:00
ValarDragon
a703e6e09a Use tendermint/lint :( 2018-10-11 12:10:42 -07:00
ValarDragon
8201c92544 fix bugs 2018-10-11 00:38:55 -07:00
ValarDragon
58bedad64d Update changelog 2018-10-10 00:09:23 -07:00
ValarDragon
9e334afad0 Lock binary dependencies to a specific commits / versions
This is basically copying over @anton's great script!

Also had to run `make format` to make this pass `test_lint`.
This PR also makes the make commands for tools further align
with the tendermint implementation.
2018-10-09 23:52:36 -07:00
Christopher Goes
034163c021 Minor fixes 2018-10-05 14:58:19 +02:00
Christopher Goes
fdc7b4d7a5 Add default CI multi-seed sim 2018-10-05 14:33:46 +02:00
HaoyangLiu
9f67e8af20 Merge PR #2215: Add swagger-ui for gaiacli lite-server 2018-10-04 13:00:24 +02:00
Christopher Goes
17983460b8
Merge PR #2219: Update to Tendermint 0.24 (except NextValSet offsets) 2018-10-03 17:48:23 +02:00
Christopher Goes
91ee6b0d99
Merge PR #2313: Multi-seed parallel simulation 2018-09-26 23:04:42 +08:00
Alessio Treglia
10b916eb28 Merge PR #2318: Simplify version handling, rely on git describe 2018-09-20 00:03:04 +08:00
Federico Kunze
d195cc15ed Merge PR #2249: Staking Querier pt1
* Cherry picked commits from prev branch

* Added new keepers for querier functionalities

* Renaming

* Fixed gov errors and messages

* Added Querier to stake and app

* Update delegation keepers

* REST Queriers not working

* Fix marshalling error

* Querier tests working

* Pool and params working

* sdk.NewCoin for test handler

* Refactor and renaming

* Update LCD queries and added more tests for queriers

* use sdk.NewCoin

* Delegator summary query and tests

* Added more tests for keeper

* Update PENDING.md

* Update stake rest query

* Format and replaced panics for sdk.Error

* Refactor and addressed comments from Sunny and Aleks

* Fixed some of the errors produced by addr type change

* Fixed remaining errors

* Updated and fixed lite tests

* JSON Header and consistency on errors

* Increased cov for genesis

* Added comment for maxRetrieve param in keepers

* Comment on DelegationWithoutDec

* Bech32Validator Keepers

* Changed Bech validator

* Updated remaining tests and bech32 validator

* Addressed most of Rigel's comments

* Updated tests and types

* Make codec to be unexported from keeper

* Moved logic to query_utils and updated tests

* Fix linter err and PENDING

* Fix err

* Fix err

* Fixed tests

* Update PENDING description

* Update UpdateBondedValidatorsFull

* Update iterator

* defer iterator.Close()

* delete comment

* Address some of Aleks comments, need to fix tests

* export querier

* Fixed tests

* Address Rigel's comments

* More tests

* return error for GetDelegatorValidator

* Fixed conflicts

* Fix linter warnings

* Address @rigelrozanski comments

* Delete comments

* wire ––> codec
2018-09-13 17:23:44 -04:00
Rigel
5bf9401e87
Merge PR #2310: staking transient store for Tendermint Updates
* working

* non-tests compile

* fix mounting error, working on testing

* stumped using transient store

* joon comments

* remove old comments

* resolve ibc error

* lint/sim_test

* fix determinism sim test

* sim enable commit

* docs and pending
2018-09-13 00:53:55 -04:00
Dev Ojha
e5e7c4fa0f Merge PR #2303: simulation: Add weighted operation 2018-09-12 15:16:52 +08:00
Dev Ojha
173ed6a63d Merge PR #2282: simulation: Switch the log method from a single string to string builders 2018-09-09 23:34:09 +08:00
ValarDragon
5ed24e44d2 simulation: Minor changes
Now that we properly initialize governance, a ton of governance slashing
doesn't happen in the first few blocks. Because of this, we can run through
blocks in the range (0,200) quite rapidly. This PR acknowledges that and
increases many of the default block heights.
2018-09-03 19:15:51 -07:00
ValarDragon
8a452b940a simulation: display db size at end of simulation, add makefile entries 2018-09-01 19:09:27 -07:00
Dev Ojha
946e24d7bf Merge PR #2152: Make CI not update the lock file
* CI: Make CI not update the lock file

We want CI to be running the lock in the repo, not generating a new one.
Linting now ensures that the lock file is up to date.

* Switch to Chris' comment

* Update pending to indicate this new command
2018-08-28 12:53:56 -04:00
Christopher Goes
c37ae1d563 50 blocks now 2018-08-23 15:25:00 +02:00
Christopher Goes
efa820b8f4 Try printing output instead 2018-08-23 15:14:12 +02:00
Christopher Goes
435f0d5f8f Decrease 'make test_sim_gaia_fast' to 100 blocks 2018-08-23 14:08:02 +02:00
Alessio Treglia
56a98cb047
Simple integration tests for {base,demo}coind
Closes: #1632
2018-08-22 18:17:15 +01:00
Matthew Slipper
5ce9b9af5a Merge PR #2015: Change gaiad testnet example output flag
Closes #1960.
2018-08-21 23:28:16 -04:00
Christopher Goes
d8d17df2c5 Correctly set variables in Makefile 2018-08-21 14:22:41 +02:00
Christopher Goes
98a5844310 Makefile phony; Gopkg.lock 2018-08-20 17:06:18 +02:00
Ethan Buchman
af73b885e7 Merge branch 'develop' into bucky/merge-master 2018-08-19 16:24:45 -04:00
Christopher Goes
b8cfc1e19f
Merge PR #2068: Minor simulation changes 2018-08-17 16:19:33 +02:00
Jack Zampolin
45bd414fc2 Run localnet on every commit ensure network reaches at least 10 blocks (#2067) 2018-08-16 20:23:57 +02:00
Christopher Goes
3d50567034
Merge PR #1783: Slashing, validator set, and governance simulation 2018-08-16 17:36:15 +02:00
Avi Saranga
0adbd60dfa Merge PR #1989: Openbsd support 2018-08-14 10:39:27 +02:00
Dev Ojha
9997ea2243 Merge PR #2016: dep: Fix error with scratch directory
If dep already sees its scratch directory (.vendor-new), dep ensure fails. This rm -rf's that directory so make get_vendor_deps doesn't fail.
2018-08-14 10:35:08 +02:00
Dev Ojha
1854430e7b makefile: Improve error message when LEDGER_ENABLED=True & no gcc (#2008)
Closes #2005
2018-08-13 20:42:38 +02:00
ValarDragon
496c75c35a tests: Move cli tests behind a build flag
This is done to make go test ./... work for people using the sdk as a sdk.
Closes #1806
2018-07-25 13:47:00 -07:00
Greg Szabo
75eeaadaae Merge PR #1234: Cloud network setup scripts
* Remotenet command for AWS and ansible fixes for all remotenet commands
* Ansible for AWS, terraform for AWS
* Moved remotenet commands to networks/ folder, created ansible playbooks and example scripts to set up remote testnets in the cloud
* Added application deployment infrastructure scripts
* Obsoleted DigitalOcean scripts, some cleanup in AWS scripts
* Changelog -> pending, disclaimer
2018-07-24 06:27:39 +02:00
Dev Ojha
6d0da9bc2a Merge PR #1782: tools: Re-add get_tools to makefile 2018-07-21 00:12:21 +02:00
Christopher Goes
1e5a7993ed Environment variables => flags 2018-07-19 08:40:46 +02:00
rigelrozanski
423d0c4a18 Merge remote-tracking branch 'origin/develop' into cwgoes/a-random-walk-down-proof-of-stake 2018-07-19 01:56:42 -04:00
Rigel
8e26eb73a5
Merge branch 'develop' into svaishnavy/cosmos-sdk-cli 2018-07-18 21:27:04 -04:00
Sridhar Ganesan
fcab14435d Removing extra space that was accidentally added 2018-07-18 10:52:55 +02:00
Dev Ojha
2c81f4973f Merge PR #1731: tools: remove rm -rf vendor/ from make get_vendor_deps
We now ensure that the Gopkg.lock is correct, and that the toml
doesn't depend on any branches, so this is no longer necessary.
2018-07-18 10:21:52 +02:00
Dev Ojha
6cfef64382 Merge PR #1732: tools: add make {get, update, check}_dev_tools
This is so that validators can have a more minimal install, but we
can still install linters for developers. (And any other future dev
tools)
2018-07-18 10:20:24 +02:00
Christopher Goes
dcbd13c392 Environment variables 2018-07-18 09:54:41 +02:00
Christopher Goes
6c61577b0b Misc, environment variables 2018-07-18 07:37:38 +02:00
Christopher Goes
c61b1aa591 Event stats 2018-07-18 01:27:51 +02:00
Christopher Goes
253b82f92a Makefile changes 2018-07-18 00:04:10 +02:00
Christopher Goes
eda7eb48cd Gaia simulation needs internal field access 2018-07-17 23:06:30 +02:00
Sridhar Ganesan
1603804ca0 Using basecoin as the template and refactoring the command that creates the workspace setup
Removing templates, making changes to makefile to remove dependency on packr
2018-07-17 21:18:55 +02:00
Christopher Goes
a6dd96db4d Merge branch 'develop' into cwgoes/a-random-walk-down-proof-of-stake 2018-07-17 02:23:10 +02:00
Sridhar Ganesan
07ddbae7a3 Adding install_cosmos-sdk-cli to target all 2018-07-16 21:48:16 +02:00
Sridhar Ganesan
e3a54f7c28 ignoring template directory in cosmos-sdk-cli 2018-07-16 21:23:27 +02:00
Sridhar Ganesan
c0cf595221 Using packr install instead of go install 2018-07-16 21:16:39 +02:00
Sridhar Ganesan
b952331b22 Including changes to Makefile to build cosmos-sdk-cli and also ignoring linting for cosmos-sdk-cli 2018-07-16 20:45:56 +02:00
Dev Ojha
a2047c5c81 Merge PR #1687: tools: Ensure Gopkg.lock is correct in linting
* tools: Ensure Gopkg.lock is correct in linting

This adds dep status to the lint process. Also fixes linting errors
that existed earlier. (not sure why they didn't show up on CI)

Closes #1574

* Update dep, use the lock file new dep version creates
2018-07-14 23:48:41 +02:00
Alexander Bezobchuk
bb1f1a21bf Fix Cross Compile Build/Ledger Build Tag (#1674)
* Merge pull request #1674: Fix Cross Compile Build/Ledger Build Tag
* Merge pull request #1674: Fix Cross Compile Build/Ledger Build Tag
* Remove incorrect Ledger test
2018-07-14 04:17:53 +02:00
Christopher Goes
601251d9b8 Update Gopkg.lock & Makefile 2018-07-12 21:31:24 +02:00
Christopher Goes
53138fb36f 'make test_sim', simulation folder 2018-07-11 19:43:25 +02:00
ValarDragon
08e98d3124 tools: Switch gometalinter to use a config file 2018-07-07 12:00:06 -07:00
Ethan Buchman
d388036454 Merge PR #1520: various fixes for test_cli
* various fixes for test_cli
* linting
2018-07-03 06:33:53 +02:00
Dev Ojha
097dd8a164 tools: Add unparam linter (#1443)
* tools: Add unparam linter

unparam detects unused parameters in functions, and a parameter to
a function which only ever takes on one value. The latter is an
indication that more tests are required.

There are many nolints in this PR, as I believe that writing tests
to fix alot of these situations is out of scope for this PR / it
will be changed in future commits. There are some nolints for
when we have to comply to normal api's.

* crypto/keys no longer used by x/gov/client/rest/rest.go
2018-06-29 18:22:24 -04:00
Dev Ojha
b66a5cc853 Merge PR #1455: tools: Add make format
This adds a command to automatically fix gofmt and misspell errors.
2018-06-29 09:37:16 +02:00
Dev Ojha
ac3adff1e8 Merge PR #1438: Tools: Add errcheck linter
This linter ensures that all errors are checked.
This is disabled in the client directories, since its not needed on
those writes
2018-06-29 00:52:10 +02:00
Dev Ojha
3e14868bd6 Merge PR #1429: tools: Add ineffassign linter
* tools: Add ineffassign linter

This errors on assignments that don't actually do anything. i.e.

x, err := myFunc(1)
y, err = myFunc(2)

This will call out that the first function's call error was never
used.

* Fix makefile, add misspell to makefile
2018-06-28 19:12:02 +02:00
Dev Ojha
2755c66545 Merge PR #1424: tools: add unconvert linter
unconvert checks for unnecessary type conversions
2018-06-28 18:08:29 +02:00
Dev Ojha
6d9f07dfee tools: Add go vet as a linter (#1421)
* tools: add go vet

* tools: Add go vet as a linter
2018-06-27 20:32:06 -04:00
Rigel
6f140d7296 Merge PR #1119: Unbonding, Redelegation
* stake/fees spec updates
* staking overview.md revisions, moving files
* docs reorganization
* staking spec state revisions
* transaction stake updates
* complete staking spec update
* WIP adding unbonding/redelegation commands
* added msg types for unbonding, redelegation
* stake sub-package reorg
* working stake reorg
* modify lcd tests to not use hardcoded json strings
* add description update
* index keys
* key managment for unbonding redelegation complete
* update stake errors
* completed handleMsgCompleteUnbonding fn
* updated to use begin/complete unbonding/redelegation
* fix token shares bug
* develop docs into unbonding
* got non-tests compiling after merge develop
* working fixing tests
* PrivlegedKeeper -> PrivilegedKeeper
* tests compile
* fix some tests
* fixing tests
* remove PrivilegedKeeper
* get unbonding bug
* only rpc sig verification failed tests now
* move percent unbonding/redelegation to the CLI and out of handler logic
* remove min unbonding height
* add lcd txs
* add pool sanity checks, fix a buncha tests
* fix ante. set lcd log to debug (#1322)
* redelegation tests, adding query functionality for bonds
* add self-delegations at genesis ref #1165
* PR comments (mostly) addressed
* cleanup, added Query LCD functionality
* test cleanup/fixes
* fix governance test
* SlashValidatorSet -> ValidatorSet
* changelog
* stake lcd fix
* x/auth: fix chainID in ante
* fix lcd test
* fix lint, update lint make command for spelling
* lowercase error string
* don't expose coinkeeper in staking
* remove a few duplicate lines in changelog
* chain_id in stake lcd tests
* added transient redelegation
* 'transient' => 'transitive'
* Re-add nolint instruction
* Fix tiny linter error
2018-06-27 04:00:12 +02:00
Dev Ojha
15bba919e2 Merge PR #1341: Switch gometalinter to stable
* Switch gometalinter to stable
* Delete empty folder
2018-06-22 22:08:50 +02:00
Dev Ojha
7f1169db4d Merge PR #1337: tools: Fix makefile install scripts
Previously, the install scripts weren't installing golint and gometalinter.
This commit fixes this, and installs tendermints linter, and the HEAD of
the gometalinter repository. Now make all should work.
2018-06-22 20:01:44 +02:00
Dev Ojha
0292a3b4d9 Merge PR #1291: Delete unused tests
* Tweak retry logic on waitForHeight
* Add HTTP retry logic to LCD tests
* Simplify waitForHeight changes
* Update changelog
* Add 'make test_cli_retry', 'make test_unit_retry'
* Run test_cli_retry in CI
* Delete unused tests
2018-06-20 00:29:54 +02:00
Greg Szabo
1d568d1706 Added -tags netgo flag to statically link binary 2018-06-15 12:18:26 -07:00
Greg Szabo
73b0b489cf
Merge branch 'develop' into greg/testnet-command-2 2018-06-13 09:28:04 -07:00
Ethan Buchman
522042fd12 gaiadebug tool 2018-06-12 22:41:33 -07:00
Greg Szabo
4c5e536b31 Added testnet command and localnet targets
Finished testnet command and introduced localnet targets in Makefile, together with gaiadnode Docker image

Fixed function parameter list - now starts with ctx

Separated GenTxConfig into a server/config package so both the server package and the mock package can use it

Adding server/config to app package

gaiadnode Docker image

Separated GenTxConfig into a server/config package so both the server package and the mock package can use it

Adding server/config to app package

Fixes requested by Rigel

Removed commented code

Global flag fixes
2018-06-12 11:25:03 -07:00
Rigel
1b20adcd22 Merge PR #1191: LCD cleanup / add LCD gas field
* remove global variables from lcd
* added make race, fix lcd race condition
* cleanup
* Five-character changelog update
2018-06-12 03:12:37 +02:00
Adrian Brink
17ab868af5 Correct graphviz command in Makefile 2018-06-01 22:50:41 -07:00
Greg Szabo
7b64a9466a
Added binary check to Makefile 2018-05-25 03:03:18 +02:00
Greg Szabo
220afc7cf4
Remotenet start/status/stop added to Makefile to create a DO validator network 2018-05-25 03:02:54 +02:00
rigelrozanski
cd689ce2c1 remove experimental bash tests from ci
int

Fix typo

...
2018-05-07 19:12:45 -04:00
rigelrozanski
e970dce841 circle/makefile upgraaade 2018-05-02 23:07:05 -04:00
Sunny Aggarwal
9ccee0770f switched test to test_nopcli 2018-05-01 23:33:23 -04:00
rigelrozanski
bffb0132a5 lint fix, add make test_lint 2018-04-27 15:20:12 -04:00
rigelrozanski
3a4813ff01 added test_nocli for fast non-cli tests 2018-04-26 14:26:39 -04:00
Sunny Aggarwal
b500cfcf44 added to Makefile 2018-04-22 14:47:12 -07:00
rigelrozanski
e584d5acac ci build -> install
pubkey issue

...

rebase fixes

...
2018-04-18 12:19:35 -04:00
rigelrozanski
abce3850ec build fixes 2018-04-18 12:18:28 -04:00
rigelrozanski
179caa5768 refactor gaia with stake 2018-04-18 12:18:28 -04:00
Ethan Buchman
1f93e965fb add log_level flag 2018-04-05 14:16:20 +03:00
Ethan Buchman
02a2008c0d move gaia to cmd, update makefile 2018-04-05 13:08:19 +03:00
Ethan Buchman
24e1bb4f24 make install 2018-03-31 19:13:34 +03:00
Ethan Buchman
e226cb7a35
Merge branch 'develop' into cwgoes/misc-minor-fixes 2018-03-31 18:54:06 +03:00
Christopher Goes
f1af53fe30
Move 'sketchy' and 'cool' modules to democoin, which is separate from basecoin 2018-03-30 20:13:22 +02:00
Christopher Goes
bb66b852ef Move keybase DB to ~/.basecoind/data (closes #644) 2018-03-29 12:04:52 +02:00
Fabian
2da9025bd3 switched delete statement and filenames 2018-03-26 11:44:13 +02:00
Adrian Brink
75674a9ec3
Implement Simple Staking as a module
The simple staking module allows validators to bond and add more stake
to their bond. It doesn't allow partial unbond and has no delegation.
The staking power per validator though is correctly reflected within the
consensus.
2018-03-20 12:14:35 +01:00
mossid
df3a7095f0 modify server/start_test.go and Makefile to pass ci 2018-03-19 13:29:32 +01:00
Ethan Buchman
f25c9fc06a tools: get_tools 2018-03-08 19:48:17 +00:00
Adrian Brink
c42f036318 Fix build, just tools/ missing 2018-03-08 19:48:17 +00:00
Zaki Manian
ce689ab4f3 Switch dependency resolution to dep and update Makefile to use dep 2018-03-08 19:48:17 +00:00
Ethan Frey
66e6677281 Copy over gaiacli skeleton to basecli 2018-03-01 02:36:57 +00:00
Ethan Buchman
ed88100f15
Merge pull request #515 from cosmos/bugfix/remove-basecoin-extra-vendor
Remove errant basecoin vendor mess
2018-02-27 23:57:38 -05:00
Ethan Buchman
a91bcaf4f2
Merge pull request #488 from cosmos/moar-tests
REVIEW: baseapp: start TestInfo
2018-02-27 19:11:49 -05:00
Ethan Frey
babbf0635f Remove errant basecoin vendor mess 2018-02-27 17:44:20 +01:00
Ethan Buchman
e4ba2f83a2 makefile: dont use sub vendor deps 2018-02-21 09:53:14 -05:00
Ethan Buchman
53812a2076
Merge pull request #490 from cosmos/basecoin-install-patch
basecoin get_tools
2018-02-21 00:17:46 -05:00
Zach Ramsay
c1b9721f89 coverage recipe 2018-02-20 21:13:27 +00:00
Adrian Brink
9ec5f37a02
Fix installation process for basecoind from top-level folder
The make build command only works if you install the dependencies first.
Previously you had to cd into examples/basecoin and run get_vendor_deps
and then cd into cosmos-sdk and then run build.

With this change a user can just run build in the top-level folder and
the dependencies are installed automatically.
2018-02-20 13:00:48 +01:00
zramsay
e1e886a0fc s/dummy&Dummy/kvstore&KVStore/g 2018-02-19 22:17:06 +00:00
Jae Kwon
1197c6db93 Making basecoind quickly terminate - temporary workaround 2018-02-18 22:09:10 -08:00
Zach Ramsay
d4dcc4c3c8 tests: more organized 2018-02-13 09:12:23 -05:00
Zach Ramsay
b51d5dda8c remove deprecated 'tests/' directory & old D-file 2018-02-13 09:12:23 -05:00
Ethan Buchman
bdc33f6a10 examples/gaia 2018-02-13 08:40:09 -05:00
Ethan Frey
c7f31bdf26 Collapsed nested commands in gaiacli 2018-02-13 08:40:09 -05:00
Ethan Frey
b10afcaf4c Rough separation of gaiad and gaiacli 2018-02-13 08:40:09 -05:00
Ethan Frey
90a102cf3e Start with demo chub command
Add version and node subcommand as TODOs
2018-02-13 08:39:42 -05:00
Adrian Brink
f98f57b4ff
Removes the _attic folder from x/
If you need to reference things from _attic, please check `ref/attic`.
That branch keeps all the old _attic files.

I've removed it here in order to make it easier for developers to search
and understand the codebase. We shouldn't have stale code on `develop`.
2018-02-09 08:05:32 +01:00
Adrian Brink
ea62142adf
Remove Tendermint Core as dependency to enable build 2018-02-03 12:32:13 +01:00
Jae Kwon
c6bad0b325 Add first Basecoin test harness 2018-01-26 06:54:03 -08:00
Jae Kwon
0d22a9106c Wipe examples/basecoin/vendor to use cosmos-sdk vendor 2018-01-20 22:28:43 -08:00
Jae Kwon
a74293e4ba godoc tweak 2018-01-20 15:03:57 -08:00
Ethan Buchman
8c6a2d7ec1 codecov: closes #334 2018-01-17 20:00:54 -05:00
Ethan Buchman
69621fb41e fix circle 2018-01-17 19:17:57 -05:00
Jae Kwon
81b6012021 Vendor tools into tools/* (#331)
* Add tools dir
* Update Makefile to call tools/Makefile
* Add cmd/basecoind to make make pass
2018-01-16 11:24:20 -08:00
Ethan Buchman
2c1d5332be make test/install 2018-01-06 15:53:31 -05:00
Jae Kwon
8c250cc840 Move Queue to attic 2017-12-01 14:08:37 -08:00
Ethan Frey
53e9106b09 Start working to compile eyes app 2017-10-25 19:56:48 +02:00
Ethan Frey
9211564e0b Move postponed functionality to _attic so we can focus 2017-10-25 19:56:48 +02:00
Ethan Frey
b11536c579 Move the tests into basecoin examples 2017-09-08 20:51:14 +02:00
rigelrozanski
4ac089f084 json testing, addressed init option PR comments 2017-09-06 01:19:20 -04:00
Ethan Frey
96f96ffc3d Moved basecoin into examples 2017-09-04 16:50:09 +02:00
Ethan Frey
041396b53e Moved eyes into example apps, cleaned up Makefile 2017-09-04 16:50:09 +02:00
Ethan Frey
d22c08b12a Store shunit2 in the repo, no dangerous wget each test 2017-09-04 16:50:09 +02:00
Ethan Frey
ce46642aa0 Move counter cli tests into example dir 2017-09-04 16:50:09 +02:00
Ethan Frey
21cc189043 moved counter to examples dir 2017-09-04 16:50:09 +02:00
Ethan Frey
592752435c Fix makefile version flag 2017-08-21 22:21:42 +01:00
Emmanuel Odeke
8a4e24925a Fixed tests/cli/rest.sh for checking accounts 2017-08-18 22:50:10 +01:00
Ethan Frey
a908c24235 Use linker flags to set git commit in version command 2017-08-18 22:04:50 +01:00
Alexis Sellier
a9df9aeef4 Make Makefile posix-compliant 2017-08-08 21:09:39 +02:00
Ethan Frey
483ed6d87a Add cli tests for eyes query and add to Makefile 2017-08-07 18:50:33 +02:00
Ethan Frey
b7f31ad70a Test sendtx with foreign addr creates proper ibc packet 2017-07-27 16:36:15 -04:00
Ethan Frey
5f1d98ba0f Tested sending 1 sig from role 2017-07-19 16:36:35 +02:00
Ethan Frey
942506c21a basecli tx handles json input 2017-07-18 22:40:04 +02:00
Ethan Frey
d9c39ff9e6 Bring more cli tests from light-client 2017-07-18 21:46:13 +02:00
rigel rozanski
463f2dca30 changefile remove silent on bash test
int

int
2017-07-18 12:08:28 +02:00
Ethan Frey
28b5350cb6 Added simple benchmark for signature checks 2017-07-06 16:51:40 +02:00
rigel rozanski
375fad3bec go linting working 2017-07-04 23:28:27 -04:00
Ethan Frey
49ebe59804 Get counter app working, with cli tests 2017-07-04 14:04:18 +02:00
Ethan Frey
d0a2041c89 Remove references to IBC from binaries 2017-07-03 16:47:03 +02:00
Ethan Frey
78787ccd23 Cleanup Makefile - cache shunit2 files 2017-06-29 14:53:38 +02:00
rigel rozanski
4e93be304e circle fix, minor IBC tutorial 2017-06-29 05:52:07 -04:00
rigel rozanski
a08775052c circle fixes 2017-06-29 05:47:38 -04:00
rigel rozanski
ec7ef41fdc First Full Auto-Tutorial Test 2017-06-29 05:47:38 -04:00
rigel rozanski
e521f3769e tutorial auto-testing, basecoin basics 2017-06-29 05:47:38 -04:00
Ethan Frey
aa18ff4c4c Update go-crypto with keys seedphrase, better testable password prompts 2017-06-21 20:13:54 +02:00