Commit Graph

474 Commits

Author SHA1 Message Date
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
Ethan Frey
0fc0a62323 Added restart cli test to Makefile 2017-06-21 18:38:19 +02:00
Ethan Frey
06c854f846 "make fresh" when things are getting stale 2017-06-19 15:13:46 +02:00
rigel rozanski
24bd0f5ed6 update docs, move counter
int

int

int
2017-06-18 19:01:54 -04:00
Ethan Frey
f75ebca3ae Fix Makefile, remove no longer needed demo! 2017-06-16 17:10:45 +02:00
Ethan Frey
4606fc84f7 Add ibc test scaffolding 2017-06-16 14:43:54 +02:00
Ethan Frey
4d4137855d Cache shunit2 in Makefile, so we don't wget everytime 2017-06-16 13:56:12 +02:00
rigel rozanski
ad17fcf347 makefile cleanup
int
2017-06-16 13:38:51 +02:00
Ethan Frey
81d6d2425f Added counter tests as well 2017-06-16 13:38:51 +02:00
rigel rozanski
e356fc1edb makefile cleanup 2017-06-16 13:38:22 +02:00
Ethan Frey
cfe13e9c13 Cleanup proof format, complete basic cli tests 2017-06-15 17:45:44 +02:00
Ethan Frey
66c9010bcb Starting bash cli tests 2017-06-15 17:16:00 +02:00
Anton Kaliaev
1f345358e6
fix broken build script (it relies on make tools)
also removed `sudo` from `bash scripts/dish.sh` - I was able to build
dist on MacOS without it. Do we need it?
2017-06-02 19:06:48 +03:00
Ethan Buchman
9a9a3a787a make: build and publish 2017-06-01 23:51:35 -04:00
Anton Kaliaev
4fff8821a3 replace fullpath with a dot in Makefile 2017-04-13 21:37:00 -04:00
Anton Kaliaev
0e730e67f8
Dockerfile and Dockerfile.dev for development 2017-03-14 16:15:03 +04:00
Ethan Frey
1fd2d17cd9 Update go-crypto, move testutils into types 2017-02-25 00:12:15 +01:00
Jae Kwon
b8374f4a9c Merge abci_proof 2017-01-28 09:33:07 -08:00
rigelrozanski
ba24e69e45 restructure, tmsp test now using go testing, app/tmsp_test.go 2017-01-13 15:29:12 -05:00
rigelrozanski
73c7edd588 runs in-tendermint 2017-01-12 00:07:56 -05:00
Jae Kwon
bc78a2d272 Governmint testing 2016-04-17 12:41:26 -07:00
Jae Kwon
615981c70d Add 'update_deps' 2016-03-28 09:46:57 -07:00
Jae Kwon
cec82d8250 s/blackstar/basecoin/g 2016-02-16 12:29:54 -08:00
Jae Kwon
538f3110b1 Relaxed nonce-checking for demo 2016-02-08 15:01:26 -08:00
Jae Kwon
d31a8d8258 Initial commit 2016-02-05 23:16:33 -08:00