Commit Graph

370 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
Alexander Bezobchuk 41fc538ac7 Add Safety Measures to Coin/Coins (#2797) 2018-11-20 01:22:35 -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
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
Christopher Goes cf6b7ef6d8 Test runtime-assertable invariants every block (#2807)
* Initial pass
* Minor cleanup
2018-11-15 13:21:42 -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 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
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 21795672c4 Update PENDING.md 2018-11-14 18:23:20 -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
Christopher Goes 2bff5c2838
Merge PR #2748: Fix governance simulation, more import/export work 2018-11-14 19:20:50 +01:00
Christopher Goes 1f632e39bd
Merge branch 'develop' into cwgoes/export-at-height 2018-11-14 12:27:14 +01:00
Sunny Aggarwal d1614ebb7e R4R: Query Gov Params (#2576)
* gov query params
2018-11-13 15:45:37 -08:00
zramsay 689d8d0921 pending 2018-11-13 17:31:32 -05:00
Jack Zampolin 695395aca8
Merge branch 'develop' into sunny/get_all_delegations_validator_querier 2018-11-13 11:07:36 -08:00
Jack Zampolin 12ad39ea96
R4R: Reorganize CLI command structure. (#2728)
* Reorganize CLI command structure. Fixes #2575
2018-11-13 11:03:47 -08:00
Christopher Goes 7cb314ec01 Update PENDING.md 2018-11-13 15:55:22 +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 a4e5d8e594
Merge PR #2773: Require moniker on `gaiad init`
* Generate random moniker when missing
* Update moniker prefix
* Require moniker instead of generating a random one
* Fix test coverage
* Fix required flag
* Link to issue
2018-11-13 13:58:40 +01:00
Christopher Goes e76a18dcec Link to issue 2018-11-13 13:46:38 +01:00
Jack Zampolin b255a7d59f
Merge branch 'develop' into sunny/get_all_delegations_validator_querier 2018-11-12 14:09:18 -08:00
Jack Zampolin 8be97eec78 Add pending entry 2018-11-12 13:05:47 -08:00
Jack Zampolin 4df780b1dc
Merge branch 'develop' into bez/require-moniker-init 2018-11-12 12:08:38 -08:00
Jack Zampolin fd7175d8ca
Merge pull request #2709 from cosmos/greg/MakefileFix2672
R4R: Makefile OS compatibility update
2018-11-12 11:33:22 -08:00
Jack Zampolin ac8f2dabd4
Merge branch 'develop' into jack/query-tx-reorg 2018-11-12 11:10:52 -08:00
Christopher Goes 9c01348d7c Merge branch 'develop' into greg/MakefileFix2672 2018-11-12 19:59:06 +01:00
Christopher Goes 0228d8f694
Merge branch 'develop' into dev/sim_msg_edit_val 2018-11-12 19:57:54 +01:00
Jack Zampolin b7daf23366 R4R: Fix unbonding command flow (#2727) 2018-11-12 19:55:24 +01:00
Alessio Treglia 70826495b8 Merge PR #2752: Don't hardcode bondable denom 2018-11-12 19:54:18 +01:00
Christopher Goes 81ae35c0f7 Merge branch 'develop' into cwgoes/fix-gov-sim-more-import-export 2018-11-12 15:28:52 +01:00
Aleksandr Bezobchuk 08a1667246 Require moniker instead of generating a random one 2018-11-12 08:27:26 -05:00
Aleksandr Bezobchuk 29bec833f3 Update moniker prefix 2018-11-12 08:16:47 -05:00
Aleksandr Bezobchuk 156370ea9c Generate random moniker when missing 2018-11-12 08:15:08 -05:00
Alexander Bezobchuk 811b863677 Use correct Bech32 prefix for show-address command (#2746)
* Use consensus address bech32 prefix
* Update show-address CLI description
2018-11-11 23:34:50 -08:00
Jae Kwon bb54a0de12 Gaia-9000: Update to TM 0.26.1-rc3 -- pex SeedMode fix 2018-11-09 19:39:22 -08:00
Hendrik Hofstadt 61fd142b9e Fix TimeoutCommit (#2743)
* Fix TimeoutCommit to 5 seconds instead of whatever it was before which was too short.
2018-11-09 16:08:35 -08:00
Christopher Goes 241f6364e9 Merge branch 'develop' into cwgoes/fix-gov-sim-more-import-export 2018-11-09 16:55:20 +01:00
Christopher Goes 1049a2647f
Merge PR #2720: x/mock/simulation cleanup and re-org 2018-11-09 16:54:25 +01:00
Alessio Treglia fc56dd011e Update PENDING.md 2018-11-09 15:27:28 +00:00
Christopher Goes 7031bc8e61 Update PENDING.md 2018-11-09 16:17:03 +01:00