Commit Graph

5276 Commits

Author SHA1 Message Date
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
frog power 4000 cec3065a36
Revert "Return errors instead of panic (#3782)" (#4054)
This reverts commit 985aae5575.
2019-04-05 16:20:58 -04:00
Frank Yang 055d219301 Add `GO111MODULE=on` to environment. (#4042) 2019-04-04 15:38:02 +01:00
Alessio Treglia 85021d4ca9
No packages must depend on cmd/gaia/ (#4048)
Preparation work for moving gaia out of the SDK.
2019-04-04 15:36:39 +01:00
Marin Basic 985aae5575 Return errors instead of panic (#3782)
This is related to issue #3741 where fetching data from
invalid store, package panic.

Modify subspace.go to return errors instead of panic.

Also update other packages that import subspace and
handle errors.
2019-04-04 08:10:56 +01:00
Alexander Bezobchuk bf17e1b020
Merge PR #4029: Update Tendermint to v0.31.3 2019-04-03 09:03:21 -04:00
Alexander Bezobchuk e2928d5b70
Merge PR ##4007: Add Block Time in Txs Responses 2019-04-02 21:09:37 -04:00
Christopher Goes 5b87966ee2
Merge PR #4022: Link to latest IBC spec 2019-04-02 18:19:06 +02:00
Frank Yang bc8d2d4414 R4R: Rename validator.GetJailed() to validator.IsJailed() #3245 (#4017)
Closes: #3245
2019-04-02 15:43:22 +02:00
Karoly Albert Szabo ecd2bfa16f Merge PR #4014: Update Swagger Config 2019-04-02 09:12:24 -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
Frank Yang 3e26ea7819 Merge PR #4015: Fix Documentation Inconsistency 2019-04-01 14:42:02 -04:00
Alexander Bezobchuk b95ade93bd Merge PR #4011: Mint/Inflation Querier, LCD and CLI
* A few godoc updates

* More minor tweaks and reformatting

* Implement initial minting querier

* Implement stringer interface for minting params

* Minor cleanup

* Add minting CLI commands

* Implement inflation query command

* Implement annual provisions query and CLI command

* Update x/mint/client/module_client.go

Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com>

* Update x/mint/client/module_client.go

Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com>

* Update x/mint/client/module_client.go

Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com>

* Update x/mint/querier.go

Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com>

* Add minting REST client routes/handlers

* Fix build issues

* Implement querier unit tests

* Update gaiacli docs

* Implement LCD tests

* Update Swagger docs

* Add pending log entry

* add examples

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* revert adding examples

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
2019-04-01 10:28:36 -07:00
Alexander Bezobchuk 120e08f12d
Merge PR #3851: Enable Transfers
Remove forked bank router from Gaia
2019-04-01 11:38:31 -04:00
Alessio Treglia 273c5253fd
Fix docker_image ci job (#4004)
- Always build regardless of the branch;
  push only from develop and master.
- Add curl to packages dependencies in Dockerfile
  to allow golangci-lint to be downloaded.

Closes: #3977
2019-03-29 18:31:55 +01:00
Alexander Bezobchuk 92f653b35c
Merge PR #4001: Upgrade Tendermint to v0.31.1 2019-03-29 13:13:45 -04:00
Alessio Treglia 9556393aaf Merge PR #4005: Increase crypto coverage
Test LazyLeybase and crypto/keys/mintkey extensively
2019-03-29 09:49:00 -04:00
frog power 4000 b85f5284a2
Merge PR #3971: disable non-deterministic lcd test 2019-03-28 22:44:00 -04:00
frog power 4000 df4394185e
Merge PR #3656: Broken-Invar Tx - aka. Crisis module
* beginning thinking on issue

* ...

* working

* working

* working fee pool distribution

* spek outline

* spec update

* gas refund calculations

* simulation saved to ~/.gaiad/simulations/

* lean simulation output

int

* cleanup bank simulation messages

* operation messges

int

* lint

* move simulation to its own module

* move simulation log code to log.go

* logger overhaul

int

* distribution comments

* fix compiling

* cleanup modifications to x/distribution/keeper/allocation.go

int

int

int

* gov bug

* result.IsOK() minimization

* importExport typo bug

* pending

* address @alexanderbez comments

* simple @cwgoes comments addressed

* event logging unified approach

* distr module name constant

* implementing

* compiles

* gaia integration

* proper constant fee removal

* crisis genesis

* go.sum update

* ...

* debugging

* fix sum errors

* missing err checks

* working implementing CLI

* remove query command

* crisis expected keepers in other modules

* crisis testing infrastructure

* working

* tests complete

* modify handler to still panic if not enough pool coins, docs working

* spec tags

* docs complete

* CL

* assert invariants on a blockly basis gaiad functionality

* gaiad CL

* transaction details in runtime invariance panic

* Apply suggestions from code review

Co-Authored-By: rigelrozanski <rigel.rozanski@gmail.com>

* sender tags

* @mossid suggestions

int

* @cwgoes comments final

* Apply suggestions from code review

Co-Authored-By: rigelrozanski <rigel.rozanski@gmail.com>

* bug seems fixed (#3998)

* delete unused line in zero height export bug
2019-03-28 19:27:47 -04:00
Alessio Treglia b9e6df3851
Reintroduce cli_test built tag (#4002)
Removed in ca43225851, wanting it back to avoid
running cli tests along with unit tests.

See #3994 for more info.
2019-03-28 21:49:28 +00:00
Karoly Albert Szabo 5bb6090e38 Add route for querying signing_info for all validators (#3952)
Also remove duplicate pagination:
- move function to extract query params into types/rest
- adjust pagination values locally until available in tendermint for validators

Code cleanup:
- helper function in test
- fix pagination description in swagger.yaml
- uint instead of int when possible

Closes: #3226
Closes: #3991
2019-03-28 18:43:33 +00:00
Frank Yang e5897d8d91 Merge PR #3996: Update DOCS_README
Update references to make targets
2019-03-28 12:39:21 -04:00
Jack Zampolin 38b7c0705c Implement client functionality for the community pool (#3939)
Fixes: #3937
2019-03-28 01:05:36 +00:00
Alexander Bezobchuk f635b1cd14 Fix Proposal Stringer (#3986)
Fix the `Stringer` interface implementation for the `Proposal` type:
- Add missing description.
- Fix indentation.
2019-03-27 21:08:20 +00:00
Karoly Albert Szabo 8550d14071 Gaiad gentx optional flags (#3897)
Add website, details and identity to gentx

Closes: #3858
2019-03-27 18:38:35 +00:00
Aaron Craelius 82d437f206 Fix broken cosmos-sdk go module (#3982)
The unicode characters in the filename of the Chinese language launch article were breaking the cosmos-sdk go module for module consumers.
2019-03-27 17:45:08 +00:00
Alexander Bezobchuk 9cf9e6fff6
Merge PR #3983: Fix Flag Typo 2019-03-27 12:16:48 -04:00
Alexander Bezobchuk ea46da7126
Merge PR #3970: Fix Tx Sign Offline Mode
- Add shorthand flags `-a` and `-s` for the account and sequence numbers respectively
- Mark the account and sequence numbers required during "offline" mode
- Always do an RPC query for account and sequence number during "online" mode
  - If clients wish to provide such values, they must use `--offline`. This makes the whole flow/UX easier to reason about.

closes: #3893
2019-03-26 10:36:10 -04:00
Frank Yang 83f3d1e192 Merge PR #3975: Missing `source ~/.bash_profile` when setting the go environment 2019-03-25 22:04:55 -07:00
Juan Leni 2dfba4ec9b Merge PR #3962: Upgrading ledger dependencies 2019-03-25 20:28:25 -07:00
Alexander Bezobchuk 2b43e25d55
Merge PR #3954: Tx Broadcasting Sync by Default 2019-03-25 20:54:23 -04:00
Frank Yang 5c2077c150 Merge PR #3935: Modify stake to uatom in gaia's doc
* Modify stake to atom in gaia's doc. #3833

* Scale up the amount from atom to uatom.

* Scale up the amount from atom to uatom.

* Update docs/gaia/validators/validator-setup.md

Co-Authored-By: yangyanqing <yangyanqing.cn@gmail.com>

* modify for review
2019-03-25 17:15:54 -04:00
Alexander Bezobchuk 59765cecb1 Merge PR #3857: Remove Shares Concept from Unbond/Redelegate UX
* Remove shares concept from unbonding and redelegation

* Remove redundant staking REST type declerations

* Rename staking REST request types

* Fix slashing tests

* Fix staking tests

* Fix integration tests

* Add safety checks for when validator tokens are zero

* Attempt to fix simulation

* Add pending log entry

* Update docs

* Implement and use SharesFromTokens

* Rename ShareTokens and ShareTokensTruncated

* Rename Delegation to Amount in DelegateRequest

* Implement and use SharesFromTokensTruncated

* Update MsgDelegate to use Amount instead of Value

* Use constructors in staking sim messages

* Implement and use ValidateUnbondAmount
2019-03-25 17:13:02 -04:00
Zaki Manian 2788c2250d Merge PR #3968: Documentation on how to sign Cosmos transactions 2019-03-25 18:20:03 +01:00
frog power 4000 2ca86c8605 Merge PR #3898: Circuit breaker high level explanation 2019-03-25 16:37:05 +01:00
Alexander Bezobchuk 8528ac7665
Merge PR #3960: Disable Keybase for Generate Only in CLI 2019-03-25 11:27:24 -04:00
Alexander Bezobchuk dd7de2acaf
Merge PR #3951: Remove ';' delimiting support from ParseDecCoins 2019-03-25 10:38:15 -04:00
gamarin2 294ac8e980 Merge PR #3965: Cherry pick docs update to develop 2019-03-22 13:53:37 -07:00
Jack Zampolin f9c290f42e
Merge PR #3957: Remove requirement that deposit period and voting period linked 2019-03-22 13:47:04 -07:00
wangjj9219 160928b8f3 Merge PR #3955: update docs chinese translation 2019-03-22 12:06:55 -07:00
frog power 4000 9b27901b2a
Merge PR #3958: Fix lcd-testing 303030 bug continued
* 303030 bug part 2

* further rearrange
2019-03-21 15:43:02 -04:00
Frank Yang 424adf1461 Merge PR #3953: Codespace should be lowercase 2019-03-20 16:45:02 -07:00
Karoly Albert Szabo 7438a650e6 Validate genesis before running gentx (#3927)
Closes: #3825
2019-03-20 19:02:11 +01:00
Jack Zampolin ae215a2520
Merge PR #3950: sdkch various changes 2019-03-20 08:48:35 -07:00
Alessio Treglia 2832941711
Remove -prune flag.
-prune is unnecessary and misleading. Once a release is cut,
.pending/ contents must be recursively removed by git rm -r
and changes committed and pushed.

Ref #3892
2019-03-20 14:29:41 +01:00
Alessio Treglia 4b91909ae8
generate: hide empty sections/stanzas if empty 2019-03-20 14:00:20 +01:00
Alexander Bezobchuk 386116f9e2 Merge PR: #3918 Allow Unrated Decreases to Validator Commission Rates
* Allow arbitrary decreases to validator commission rates

* Implement TestCommissionValidate

* Implement TestCommissionValidateNewRate

* Add comments to unit tests
2019-03-19 22:04:25 -04:00
Christopher Goes b9837e3ca2
Merge PR #3938: Remove REST server's secure mode altogether
* Remove REST server's secure mode altogether
* Add changelog pending entry
2019-03-19 22:00:48 +01:00
Alessio Treglia 236bc237a9
Add changelog pending entry 2019-03-19 18:25:30 +01:00
Alessio Treglia 8421008042
Remove REST server's secure mode altogether 2019-03-19 18:20:53 +01:00