Commit Graph

4625 Commits

Author SHA1 Message Date
Alessio Treglia 3e68e44063 Merge PR #2874: gaiad gentx subcommands refactoring
* gaiad gentx subcommands refactoring

- Replace STDIN/STDOUT redirection in `gaiad gentx` with subcommands
  command line options to redirect streams to file since viper does
  not handle redirection well.
- Use `BuildCreateValidatorMsg` to build a `MsgCreateValidator` rather
  than redirecting to `gaiacli tx stake create-validator`.
- `PrintUnsignedStdTx` now takes an `io.Writer` object.
- Mark `--pubkey`, `--amount` and `--moniker` as required flags
  instead of validating them manually.
- Use stake.NewDescription() to make a new Description - ref #2835

* Refresh PENDING.md
2018-11-22 00:44:13 +01:00
Alexander Bezobchuk 1ea0e4c457 Merge PR #2863: Transaction ValidateBasic
* Add ValidateBasic to Tx interface
* Update BaseApp unit tests
* Add missing return in ValidateBasic
* Update ValidateBasic to use IsNotNegative
* Add pending log entry
* Add unit test TestTxValidateBasic
* Fix broken lint regression
* Add sig count check to validation
* Add test case to TestTxValidateBasic
2018-11-21 11:16:56 +01:00
Federico Kunze d227e2a29e Merge PR #2869: Gov tally endpoint
* Added tally endpoint
* Update querier.go
* rename queryable
* Address @alexanderbez comments
2018-11-21 10:54:51 +01:00
Max Levy d8bbf85efa Merge PR #2866: URL fixed
Follow up on Documentation Structure Change and Cleanup (#2808)
2018-11-20 11:03:11 +01:00
Alexander Bezobchuk 41fc538ac7 Add Safety Measures to Coin/Coins (#2797) 2018-11-20 01:22:35 -08:00
Jae Kwon 47eed3958b
Clean up Context/MultiStore usage in BaseApp (#2847) 2018-11-20 01:06:14 -08:00
Alexander Bezobchuk 6e813ab3a8 Change gas & related fields to unsigned integer type (#2839)
* Change gas & related fields to unsigned integer type
* Implement AddUint64Overflow
2018-11-19 09:13:45 -08:00
Jack Zampolin f525717054
Standardize CLI Exports from Modules (#2840)
* Move query and tx commands to modules
* Move GetAccountDecoder to prevent import cycle and replace calls to it with one call in WithAccountDecoder
* Add moduleClients interface and implement in all applicable modules
* Use module clients in cli initialization
2018-11-19 09:02:34 -08:00
Christopher Goes fd968f7d8f R4R: Remove unused bank.MsgIssue (and prevent possible panic) (#2855)
* Remove all bank.MsgIssue code
2018-11-19 07:42:53 -08:00
Jack Zampolin 9676ce7d48
Expose LCD router, allowing devs to register custom routes from their modules (#2836)
* Fixes #1081
2018-11-16 14:21:36 -08:00
Alexander Bezobchuk 15b6fa0959 Cache-wrap context during ante handler exec (#2781)
* Use cache-wrapped multi-store in ante
* Implement TestBaseAppAnteHandler
* Add reference documentation for BaseApp/CheckTx/DeliverTx
2018-11-16 10:33:47 -08:00
Sunny Aggarwal 8d6b0929fb Codespaces as Strings (#2821) 2018-11-16 09:12:24 -08:00
Zach ca2270c87e Merge PR #2831: Fix dead link 2018-11-16 14:48:38 +01:00
Christopher Goes bd723fa909
Merge PR #2829: Add-genesis-account: validate app state accounts
* add-genesis-account: validate app state accounts
* Update PENDING.md
2018-11-16 11:55:54 +01:00
Christopher Goes eb27c70292
Merge branch 'develop' into alessio/validate-addr-when-adding-genesis-account 2018-11-16 11:44:41 +01:00
Christopher Goes 9a37066405
Merge PR #2841: Check whether key passed with --name exists before redirecting to tx create-validator
* Check whether key passed with --name exists before redirecting to tx create-validator
* Update PENDING.md
2018-11-16 11:40:37 +01:00
Alessio Treglia 9beb6d405e Update PENDING.md 2018-11-16 05:05:20 +00:00
Alessio Treglia f2b38874ef Check whether key passed with --name exists before redirecting to tx create-validator
Closes: #2804
2018-11-16 05:01:34 +00:00
Christopher Goes cf6b7ef6d8 Test runtime-assertable invariants every block (#2807)
* Initial pass
* Minor cleanup
2018-11-15 13:21:42 -08:00
gamarin2 e04d32c8d5 DOCS: fix links and add cli to sidebar (#2830)
* fix links and add cli to sidebar
2018-11-15 11:54:54 -08:00
Alessio Treglia 815a6de82f R4R: Remove AppInit (#2801)
* Remove AppInit
* Update PENDING.md
2018-11-15 10:01:19 -08:00
Alessio Treglia d22947f7b3 Update PENDING.md 2018-11-15 15:47:37 +00:00
Alessio Treglia 31ccfb5b5a add-genesis-account: validate app state accounts 2018-11-15 15:44:27 +00:00
Alessio Treglia 7b7d45ddd2 Merge PR #2800: Limit total number of signatures per transaction
* Limit total number of signatures per transaction
* Fail if limit is exceeded
* Loop over all sigs and count subkeys
* No need for a type switch, adopt early return
* Test rejection logic
* Mention sigs limit
2018-11-15 15:30:24 +01:00
Christopher Goes 7f68cee3d6
Merge PR #2803: Update ubuntu install script 2018-11-15 12:00:49 +01:00
Christopher Goes d40d767bc8
Merge PR #2792: Support export at specific height 2018-11-15 11:21:45 +01:00
Jack Zampolin 554bdfba45 Merge branch 'cwgoes/export-at-height' of github.com:cosmos/cosmos-sdk into cwgoes/export-at-height 2018-11-14 18:25:06 -08:00
Christopher Goes f1d5b808b7 Bugfix 2018-11-14 18:23:20 -08:00
Christopher Goes ac0319fd3c Update docs 2018-11-14 18:23:20 -08:00
Christopher Goes 42402d3f97 Check error 2018-11-14 18:23:20 -08:00
Christopher Goes 17b9afaaa7 Export specific height 2018-11-14 18:23:20 -08:00
Christopher Goes 21795672c4 Update PENDING.md 2018-11-14 18:23:20 -08:00
Zach 555b61e3ae deleted obsolete file (#2817) 2018-11-14 14:32:41 -08:00
Jack Zampolin 0453992ddb
Update contributing.md with new merge policy (#2789)
* Update contribuiting.md with new merge policy
2018-11-14 13:12:03 -08:00
mircea-c 45b0e3a7ac Build docs in CircleCI (#2810)
* error checking the API call
* added docs build trigger to circleci job
2018-11-14 13:11:34 -08:00
zramsay be53c7c706 install script, go version variable 2018-11-14 15:14:13 -05:00
gamarin2 7f07e93601 Bring back banner (#2814) 2018-11-14 12:01:59 -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
ValarDragon 269415908c change branch to master 2018-11-14 11:05:48 -08:00
Rigel 6feab55e1e
Merge PR #2765: Slight cleanup of distribution specification
[R4R] Slight cleanup of distribution specification
2018-11-14 13:53:11 -05:00
Alexander Bezobchuk bba7a3053d
Update overview.md 2018-11-14 13:26:31 -05:00
Christopher Goes 2bff5c2838
Merge PR #2748: Fix governance simulation, more import/export work 2018-11-14 19:20:50 +01:00
Rigel b1a1f192fb
Update docs/spec/distribution/overview.md
Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com>
2018-11-14 11:58:55 -05:00
Rigel 4b5be088c4
Update docs/spec/distribution/overview.md
Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com>
2018-11-14 11:58:26 -05:00
Rigel 9118cd7e13
Update docs/spec/distribution/overview.md
Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com>
2018-11-14 11:58:00 -05: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 1f632e39bd
Merge branch 'develop' into cwgoes/export-at-height 2018-11-14 12:27:14 +01:00
ValarDragon 9c4345fc72 Merge branch 'develop' of github.com:cosmos/cosmos-sdk into develop 2018-11-13 22:05:30 -08:00
ValarDragon db0bcdd0e6 update ubuntu install script 2018-11-13 22:05:15 -08:00
Sunny Aggarwal d1614ebb7e R4R: Query Gov Params (#2576)
* gov query params
2018-11-13 15:45:37 -08:00