Commit Graph

2739 Commits

Author SHA1 Message Date
Yanqing Yang
c333050b59 Repair link of QuickStart->Documentation which was broken by #1289 (#1444) 2018-06-29 03:14:06 +02:00
Christopher Goes
59aadf42aa
Ledger integration (#931)
Merges the keybase and Ledger code from go-crypto (which is no more) into the SDK
Adds support for Ledger into gaiacli
Cherry-picks updated error handling from #1158
2018-06-29 02:54:47 +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
Ethan Buchman
7f59aa259f
Merge pull request #1371 from cosmos/bucky/gaiadebug-bech32
gaiadebug: support bech32
2018-06-28 16:09:50 -04:00
Rigel
b07a4654ff
Merge branch 'develop' into bucky/gaiadebug-bech32 2018-06-28 15:25:32 -04:00
David Kajpust
090aaf8137 Merge #1412: Add async flag and functionality to gaiacli send
* added async functionality to gaiacli
* addressed requested changes, updated changelog
2018-06-28 21:23:47 +02:00
Christopher Goes
6037243250
Merge branch 'develop' into bucky/gaiadebug-bech32 2018-06-28 19:16:44 +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
Rigel
473ac4a38e Merge PR #1423: PR Template labels 2018-06-28 03:22:57 +02:00
Rigel
2f3e1a3fde
Merge branch 'develop' into bucky/gaiadebug-bech32 2018-06-27 20:41:42 -04: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
36e8c27786
Merge branch 'develop' into bucky/gaiadebug-bech32 2018-06-27 20:28:48 -04:00
Sunny Aggarwal
4effa6f8d4 Merge PR #1357: RESTful governance endpoints
* get deposit rest endpoint
* query proposals
* changelog
* fixed commented out headers
* fixed undeterministic tests
* increase circle test timeout
* MustBech32ifyAcc
* asdf
2018-06-28 01:49:59 +02:00
Rigel
9dbdb1a55f
Merge branch 'develop' into bucky/gaiadebug-bech32 2018-06-27 19:32:24 -04:00
Aditya
9b4838d96e Merge PR #1367: Set ChainID on InitChain
* Added chain-id to context in InitChain
* Fix bug in test
* fmt
* Appease linter
* updated changelog
* Remove chainID hack
* setCheckState in InitChain
* Fix bug
* Fix initialization errors in example tests
* Initialize app tests with default stake genesis
* fix comments
2018-06-28 00:45:10 +02:00
Dev Ojha
49f421db19 Merge PR #1332: benchmarks: Add benchmark for block time to bank module
* benchmarks: Add benchmark folder, and single benchmark for block time
* Move benchmark into module
* Fix merge conflict errors
* Fix spelling
* Add instructions to run benchmark
* Update auth_app_test.go
2018-06-28 00:33:56 +02:00
Dev Ojha
3dc2387124 Merge PR #1404: Add more context for errors when no address is provided 2018-06-27 19:39:57 +02:00
Joon
6018e719d2 Merge PR #1069: Oracle Module
fix prefixstore iterator
in progress
fix mock validator
fix NewContext
add to changelog
apply requests
fix mock
2018-06-27 19:21:12 +02: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
d6df6b07d1 Merge PR #1388: types/int: Switch Int, Uint to use pointers internally
* types/int: Switch Int, Uint to use pointers internally
This reduces the amount of pointer refs & derefs.
* Fix nil pointers on unmarshalling amino
* Fix elusive bug in marshalling with unitialized big int
* Remove debug code
* Switch big.rat to use pointers internally
2018-06-27 03:10:34 +02:00
Sunny Aggarwal
9ca3a16bb3 Merge PR #1397: Fix spelling changes
* fixed spelling changes
* extra spelling error
2018-06-27 01:58:42 +02:00
Christopher Goes
8778576b93
Merge PR #1391: Remove Viper from ante handler
No longer necessary.
2018-06-27 00:05:51 +02:00
Christopher Goes
8bdf06b9f6 Remove Viper from ante handler 2018-06-26 23:45:31 +02:00
7768
4f57a765ad Merge PR 1354: CLI: Show fractional in human-readable format
Fix https://github.com/cosmos/cosmos-sdk/issues/1353

before:
```
Shares: Status Bonded,  Amount: -6508168128760126341/-3308135364330552608
Delegator Shares: -6508168128760126341/-3308135364330552608
```
after:
```
Shares: Status Bonded,  Amount: 2.0000000000
Delegator Shares: 2.0000000000
```
2018-06-26 19:26:12 +02:00
Christopher Goes
ff09c76471
Merge PR #1383: Pin exact versions 2018-06-26 09:03:27 +02:00
Dev Ojha
9f30a90980 Merge PR #1374: types/rat: Fix overflowing in printing
This now uses the underlying golang big.rat's string function,
instead of casting to num and den which are int64s.

Closes #1258
2018-06-26 05:03:55 +02:00
Dev Ojha
893bb4027d Merge PR #1377: types: remove GetMemo from Tx
This method is an unneccessary requirement on Tx. Auth casts the Tx
to StdTx, so the memo can be obtained in previous usecases from
StdTx. This also makes it more clear for when something is
implementing StdTx vs Tx.

Resolves #1375
2018-06-26 04:37:21 +02:00
Dev Ojha
f2a83a07f9 Merge PR #1366: tests: add method to wait for n blocks to pass
Adds a helper method to tests/util.go for waiting for N blocks to
pass. This is useful for situations when you need to wait for
multiple blocks to pass, but don't know the current block number.
In general, this is safer than using "wait for height", since the
block height could have advanced further than expected while the
test was running.

Resolves remaining point in #1283
2018-06-25 23:53:48 +02:00
Ethan Buchman
5b29a509cd gaiadebug: support bech32 2018-06-25 17:42:48 -04:00
Dev Ojha
2e97baabf6 Merge PR #1358: Fix typos and gofmt files
* Fix typos
* gofmt -s files
* Add mispellings and gofmt checks to circle CI
* circleci: Install misspell in the linting step
2018-06-25 20:23:17 +02:00
Dev Ojha
eb097c4c5c Merge PR 1361: server: Use differing defaults from tendermint
When loading the config file, this now checks in the sdk if the file
already exists. If not, it writes a config with different defaults.
The defaults differ by having the profiler listen address set,
and increasing the receive / send rates.
2018-06-25 18:33:07 +02:00
Adrian Brink
296ba2d56e Merge PR #1350: Update README.md 2018-06-23 04:45:24 +02:00
Christopher Goes
b098c0da74
Merge PR #1344: Swap parallelism: 4 to parallelism: 1 2018-06-22 22:58:48 +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
Sunny Aggarwal
c3c570898d Merge PR #1340: Reverted ChangePubKey
* removed msgChangePubKey
* changelog
* removed setPubKey
2018-06-22 21:53:24 +02:00
Geet Kumar
17e5a48b65 Merge PR #1334: democli: fix account query
* democli: fix query account
* Update changelog
2018-06-22 20:50:36 +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
Ethan Buchman
ba783a0f09
Merge pull request #1335 from zmanian/bech32_spec
Added a bech32 spec doc
2018-06-22 08:56:56 -07:00
Zaki Manian
7e9859d388 Added a bech32 spec doc 2018-06-21 22:38:40 -07:00
Joon
ec6acda6a4 Merge PR #1331: Remove TxBytes from NewContext 2018-06-22 03:03:05 +02:00
Sunny Aggarwal
dc2c8f900b Merge PR #1168: Governance MVP 2018-06-22 02:19:14 +02:00
Ethan Buchman
d08b916f01
Merge pull request #1289 from cosmos/bucky/docs
Refactor Docs
2018-06-21 15:53:17 -07:00
Ethan Buchman
b983bd3ddf /docs/sdk -> /docs 2018-06-21 15:46:33 -07:00
Ethan Buchman
f0c3f0e47a remove old files. move rest to _attic 2018-06-21 15:46:33 -07:00
Ethan Buchman
84f0c6d609 updates from feedback 2018-06-21 15:46:33 -07:00
Ethan Buchman
45692154fd rocket.chat -> riot.im 2018-06-21 15:46:33 -07:00
Ethan Buchman
03f3b96085 docs/sdk: various updates 2018-06-21 15:46:33 -07:00
Ethan Buchman
671956c74c baseapp 2018-06-21 15:46:33 -07:00
Ethan Buchman
bfe6eed02c update readmes 2018-06-21 15:46:33 -07:00