Commit Graph

713 Commits

Author SHA1 Message Date
Alexander Bezobchuk 2d92803b9f Merge PR #2040: Refactor Validator Account Types/Bech32 Prefixing
* Add new account bech32 prefixes with godocs

* Restructure spacing of existing account code

* Update account godocs

* More account godoc updates + new tm pub/addr helpers

* Update validator type to use new account types/bech32 prefixes

* Fix account documentation errors

* Update Bech32 prefix for consensus nodes

* Update Bech32 spec doc

* Fix account type tests

* Add missing account consensus functions, clear up godocs, and fix tests

* Add to TestRandBech32PubkeyConsistency check

* Update initialization of validator public keys

* Update query signing info command

* Implement new ConsAddress type with associated unit tests

* [WIP] Update stake and slashing parameters

* Update all calls to MustBech32ifyValPub

* [WIP] Validator operator API updates

* [WIP] Fix and update unit tests

* Fix gov logs (helping to debug failing tests)

* Fix gov tally

* Fix all broken x/ unit tests

* Update gaia app genesis address logic

* Fix linting errors

* Fix broken LCD tests

* Fix broken CLI tests

* Implement command to get validator address and pubkey from key name

* Add support for getting validator key information via REST endpoint

* Update PENDING log

* Update docs

* Revert GaiaGenTx.PubKey bech32 prefix

* Fix broken docs and cli tests

* Update genesis to use correct Bech32 (cons) prefix for pubkeys

* Update docs and unit tests to reflect new cosmos account bech32 prefix

* minor formatting
2018-08-31 00:06:44 -04:00
Matthew Slipper 03c56fc024 Merge PR #2190: Rename --gen-txs to --with-txs
* Rename --gen-txs to --with-txs

Closes #1088.

* Update CHANGELOG.md
2018-08-30 21:33:48 -04:00
Christopher Goes 153756bb75
Merge PR #2171: Add documentation regarding environment variables 2018-08-30 23:24:11 +02:00
rigelrozanski 222597165e trigger -> hooks 2018-08-28 18:23:57 -04:00
Jack Zampolin dfd29a523c Update PRIORIEIES.md 2018-08-28 11:13:21 -07:00
Ethan Buchman a804dec76e
Merge pull request #2039 from cosmos/cwgoes/update-priorities
Update PRIORITIES.md
2018-08-28 13:15:37 -04:00
Fabian e89e860524
Update config.js 2018-08-28 16:18:06 +02:00
Christopher Goes 73f90e8f92
Merge PR #2047: Simulate transactions by default to set gas automatically 2018-08-28 13:53:29 +02:00
Matthew Slipper 4ddfef6204 Add documentation regarding environment variables
Closes #1973.
2018-08-28 01:29:46 -07:00
Greg Szabo 909a68ed65
Updating config.js for docs website build process
This change will put the documentation to the right folder for website deployment.
2018-08-27 12:34:16 -04:00
Jae Kwon bec53fb1df fixed bech32 for validator pubkeys 2018-08-26 16:44:51 -07:00
Jae Kwon 305589faf4
Update bech32 human readable spec to simply "cosmos" (#2103)
Update bech32 human readable to simply "cosmos"
2018-08-26 16:41:08 -07:00
Alessio Treglia 76a16ab288
Modify AnteHandler to take a simulate boolean parameter 2018-08-25 20:12:14 +01:00
Jordan Bibla 96fc6c6f7b double curlies breaks vuepress - single curlies does not 2018-08-24 15:05:40 -04:00
Christopher Goes 15b4b338df Merge branch 'develop' into rigel/piggy-bank-fee-spec 2018-08-24 14:25:29 +02:00
Alessio Treglia 47d55bd572
Add/refresh docs 2018-08-24 10:16:51 +01:00
Christopher Goes c5d44bcaf0
Merge PR #2001: Update slashing spec for slashing-by-period 2018-08-24 02:09:29 +02:00
Christopher Goes 63a85aaacf Change ASCII diagram slightly 2018-08-23 22:45:38 +02:00
Christopher Goes 81e5ce15aa
Merge branch 'develop' into rigel/piggy-bank-fee-spec 2018-08-23 14:01:16 +02:00
Christopher Goes 4475a8c7e8 Fixup links 2018-08-23 13:46:44 +02:00
Christopher Goes 4cc2054d7b Address @rigelrozanski comments 2018-08-23 13:43:01 +02:00
Christopher Goes 55de750dbe
Merge PR #2054: docs: add config.js for ToC sidebar 2018-08-23 13:17:34 +02:00
Rigel d0edcc5066
Merge branch 'develop' into rigel/piggy-bank-fee-spec 2018-08-23 04:05:16 -04:00
rigelrozanski cce4cbc9ec expand on shortcomings of the system 2018-08-23 04:02:26 -04:00
rigelrozanski b32285ec3b commission actively calculated, withdrawDelegationReward Tx 2018-08-23 03:19:21 -04:00
Christopher Goes bb9c265590
Merge branch 'develop' into cwgoes/slashing-period-spec 2018-08-22 18:31:04 +02:00
Christopher Goes 41df6db9ae Merge branch 'develop' into cwgoes/slashing-period-spec 2018-08-22 18:29:38 +02:00
Christopher Goes 879f78cfc0 Rename revoke(d) to jail(ed) 2018-08-22 17:56:13 +02:00
Christopher Goes 337869257b Merge branch 'develop' into temp 2018-08-22 16:13:13 +02:00
Christopher Goes 1adb53e5a5
Merge PR #1875: Vesting Spec 2018-08-22 15:07:49 +02:00
Christopher Goes b23fe15e4a
Merge PR #1918: Keeper custom queries & QueryRouter 2018-08-22 12:50:59 +02:00
Christopher Goes 4b5bb45a09
Merge PR #2062: Support a proposal JSON file in submit-proposal 2018-08-22 12:31:58 +02:00
Sunny Aggarwal 0eed9d1b60 PENDING 2018-08-22 00:15:18 -07:00
Matthew Slipper 62d6fd2f98 Merge PR #2014: Remove advanced gaiacli command
Closes #1965
2018-08-21 23:22:18 -04:00
Matthew Slipper f7d8675234 Support a proposal JSON file in submit-proposal
Closes #1852.
Closes #1776.
2018-08-21 14:34:15 -07:00
Federico Kunze cfb5acca6e Merge PR #2099: Query staking Pool and Params 2018-08-21 17:32:54 +02:00
Jack Zampolin 68f5ee786c Merge PR #1987: Fix broken link in validator setup guide 2018-08-21 16:28:52 +02:00
Federico Kunze 011e61a8de Merge PR #2066: Rename LCD endpoints (Docs) 2018-08-21 16:00:43 +02:00
Christopher Goes 1eadb510b8
Merge PR #1882: ICS 30 - Cosmos Signed Message Spec 2018-08-21 15:29:48 +02:00
Max Levy bb473e98fb
Merge pull request #1 from maxim-levy/patch-5
The URL to abci-spec.md fixed
2018-08-21 14:29:00 +09:00
Alexander Bezobchuk 9dd8e28104
Remove cosmosSignBytesPassword 2018-08-20 15:15:25 -04:00
Christopher Goes f18895532d Clarify which offenses utilize the slashing period 2018-08-20 18:37:16 +02:00
Christopher Goes c9e5745cd7 Clarify example 2018-08-20 18:34:03 +02:00
Christopher Goes d0c87ff5bc Go => pseudocode 2018-08-20 18:31:55 +02:00
Christopher Goes da92b1bb1d h_n => h_n-1 2018-08-20 18:28:40 +02:00
Christopher Goes 6e3e57e23e Typos; tiny wording changes 2018-08-20 17:50:13 +02:00
Christopher Goes b8d6465613 Conceptual overview & ASCII diagrams of slashing period 2018-08-20 16:58:24 +02:00
Christopher Goes e3cb1e1274 Add safety note 2018-08-20 15:13:17 +02:00
Christopher Goes 94dc512034 Fix typos 2018-08-20 15:07:23 +02:00
Christopher Goes 79e3c05367 Revert "Changes WIP" - we decided not to do this
This reverts commit 21be609f52.
2018-08-20 15:01:18 +02:00
Max Levy 459f126e9b
The URL to abci-spec.md fixed
docs/abci-spec.md -> docs/app-dev/abci-spec.md
2018-08-20 11:29:03 +09:00
Max Levy 8747eaac7d
A URL to abci-spec.md fixed
/docs/abci-spec.md -> /docs/app-dev/abci-spec.md
2018-08-20 11:22:46 +09:00
Ethan Buchman af73b885e7 Merge branch 'develop' into bucky/merge-master 2018-08-19 16:24:45 -04:00
Federico Kunze 466e0c04d5 R4R: Update cli docs (#2076)
* Update cli docs, fixes #2026

* Fixed merge conflicts

* Updated chain_id
2018-08-17 18:49:57 +02:00
Alessio Treglia 187bc1972a Merge PR #1950: Validator.Owner -> .Operator
* Rename --address-validator flag to --validator

See #1901

* Update PENDING.md

* Rename Validator.Owner -> Validator.Operator

See #1901
2018-08-16 16:47:59 -04:00
rigelrozanski 90e1c9fdb1 Merge branch 'rigel/piggy-bank-fee-spec' of https://github.com/cosmos/cosmos-sdk into rigel/piggy-bank-fee-spec 2018-08-16 16:41:57 -04:00
rigelrozanski 3c564c01b9 clearer names, missing commission logic 2018-08-16 16:41:32 -04:00
Aditya Sripal c79e130d0f jae comments 2018-08-16 12:07:09 -07:00
Rigel 54cc27fde9
Merge branch 'develop' into rigel/piggy-bank-fee-spec 2018-08-15 23:54:44 -04:00
rigelrozanski 5ef0f5d70e finalize txs 2018-08-15 23:33:26 -04:00
rigelrozanski 31d5348c4a txs pretty much ready 2018-08-15 20:03:39 -04:00
Zach Ramsay 63367a00c8 docs: add config.js for ToC sidebar 2018-08-15 19:22:23 -04:00
Aditya Sripal 599b8ba4cf Fix bug, clearer logic 2018-08-15 13:54:03 -07:00
Alexander Bezobchuk a9f240035c
Rename ics-xxx-signed-messages.md to ics-030-signed-messages.md 2018-08-15 15:13:51 -04:00
Alexander Bezobchuk 629c18541d
Update ICS number to 030 2018-08-15 15:12:04 -04:00
Christopher Goes 53242681fe Two bullet points 2018-08-15 12:50:07 +02:00
Christopher Goes 5624b1d7e5 Update PRIORITIES.md 2018-08-15 11:57:11 +02:00
rigelrozanski 37ed3b1a6e agasg 2018-08-15 04:12:44 -04:00
rigelrozanski 360eb75c8e working 2018-08-14 23:33:40 -04:00
Rigel d9dc061b4f
Merge pull request #1819: rational -> decimal
* changelog

* ...

* decimal func working

* decimal complete, untested

* fixing tests

* decimal compile errors resolved

* test compile errors

* precision multiplier test

* 1% laptop battery

* fixed TestNewDecFromStr

* equalities working

* fix bankers round chop

* ...

* working, some decimal issues resolved

* fix rounding error

* rounding works

* decimal works

* ...

* deleted rational

* rational conversion working

* revert changelog

* code compiles (not tests)

* went through all NewDec, made sure they were converted from NewRat properly

* test debugging

* all testing bugs besides the json marshalling fixed

* json unmarshal

* lint

* document update

* fix lcd test

* cli test fix

* mostly undo Dece -> Rate

* val comments

* Efficiency improvements

This now caches all of the precision multipliers (as they were all
used in non-mutative functions), and caches the precisionInt calculation.
(Now it just copies the already calculated value)

* Cache another precisionInt() call.

* Improve banker rounding efficiency

* remove defer, make negation in-place.

* chris val comments

* bez comments

* Aditya comments

* ...

* val comments

* rebasing start

* ...

* compiling

* tests pass

* cli fix

* anton, cwgoes, val comments

* val and jae comments

* type

* undo reuse quo
2018-08-14 20:15:02 -04:00
rigelrozanski 5e5fad4548 txs 2018-08-14 13:45:13 -04:00
Aleksandr Bezobchuk f252f3e36c Update Cosmos signed messages ICS doc
- Address PR comments
- Fix markdown lint errors
2018-08-14 13:36:51 -04:00
Christopher Goes 21be609f52 Changes WIP 2018-08-14 19:04:57 +02:00
Christopher Goes a2463d038b Clarify points from PR review 2018-08-14 18:04:32 +02:00
Christopher Goes 32263ffe4d Merge branch 'develop' into cwgoes/slashing-period-spec 2018-08-14 17:56:46 +02:00
Christopher Goes 52475b1684 Fix minor typos 2018-08-14 11:31:39 +02:00
Matthew Slipper 8fa2c3b4ea Merge PR #1984: Replace _ with - in command names
Closes #1955
2018-08-14 10:23:42 +02:00
Federico Kunze 63713c9378 Merge pull request #2000: tests for staking lcd
* Added tests for Delegator Validators routes

* Updated tests for undelegations

* Updated Gaia-lite docs

* Updated PENDING.md

* Updated comments

* Deleted more comments

* Add spacing
2018-08-13 18:06:48 -04:00
Jack Zampolin c9cbb0b094 Merge PR #2010: Add RELEASE_TEST_SCRIPT.md 2018-08-13 21:41:07 +02:00
Christopher Goes 8b7d6e0979 Update state machine, contd. 2018-08-13 17:52:58 +02:00
Christopher Goes 2445718295 State machine contd. 2018-08-13 17:03:39 +02:00
Christopher Goes 07a7db7fda Update links 2018-08-13 16:12:59 +02:00
Christopher Goes a8af4a4fad End block to begin block, add README 2018-08-13 16:04:35 +02:00
Christopher Goes 53fa4a28dc Start update of state-machine.md 2018-08-13 15:55:30 +02:00
Christopher Goes ff01cbb093 Update state.md 2018-08-13 15:48:23 +02:00
Christopher Goes 98a278d564 Reorganize sections 2018-08-13 14:56:10 +02:00
Christopher Goes 84e9b215b2 Fix typo 2018-08-13 14:54:42 +02:00
Christopher Goes 4f8c9e4917 Update transactions.md 2018-08-13 14:51:01 +02:00
Zach f18c01d291 Merge PR #1994: Delete install.md 2018-08-13 13:15:01 +02:00
gamarin2 c5fcc9b65f Add SDK_By_Examples to doc (#1795)
* Add simple gov example and sdk-by-example folder

* Add simple gov example

* Add simple gov example and sdk-by-example folder

* Add simple gov example

* fix sectino title

* Jb feedback + Offload some of the content in other docs

* Add what is cosmos back

* platform to framewoork

* Reemove testnet
2018-08-12 03:37:26 -04:00
Dev Ojha b2a4aecc44 Upgrade to tm version 23.0. (#1927)
* Start upgrade. Currently go test ./... hangs.

* (squash this) Fix staking tests

* wip

* note what changes need to be made to make this work on tm v0.23.0

* Fix addr -> pubkey map

* cleanup code

* Fix slashing test failures except for begin blocker

* fix all slashing tests

* fix lcd tests

* Address PR comments

* add link to changelog.

* (wip) start making addrToPubkey map persisted. Since amino can't handle maps,
we have to change from what this commit is doing.

* Use the correct method of storing a map

* (squash this) address PR comments

* Did you run 'make'?

* remove gaiadebug binary
2018-08-12 03:33:48 -04:00
Ethan Buchman 691048c88a
Merge pull request #1917 from gamarin2/update_val_faq
Update validator faq
2018-08-12 03:32:59 -04:00
Christopher Goes 8f05d052f2 Merge branch 'master' into cwgoes/stage 2018-08-11 15:04:28 +02:00
Aleksandr Bezobchuk 6675be23d2 Add proposed status 2018-08-09 15:02:50 -04:00
Aleksandr Bezobchuk aa01e9954c Simply Cosmos signed message spec (using TM canonical JSON) 2018-08-09 11:35:22 -04:00
rigelrozanski e7ebe35b0a updating transactions 2018-08-09 00:34:19 -04:00
rigelrozanski 5285489977 general updates 2018-08-08 23:43:40 -04:00
Jae Kwon 0600d7356d
Update PRIORITIES.md 2018-08-08 13:06:01 -07:00
Jae Kwon bd65dbe2df
Update PRIORITIES.md 2018-08-08 12:59:21 -07:00
Jae Kwon 9342e34da2
Update PRIORITIES.md 2018-08-08 12:58:27 -07:00
Jae Kwon b333d56b36
Update PRIORITIES.md 2018-08-08 12:55:23 -07:00
Jae Kwon 950f151e02
Update PRIORITIES.md 2018-08-08 12:49:02 -07:00
rigelrozanski a0e05a8f03 triggers, endblock, transactions 2018-08-08 15:03:43 -04:00
rigelrozanski 2d613cefe7 move lamborghini distribution to subfolder 2018-08-08 14:24:38 -04:00
rigelrozanski eb6f51ed45 piggy bank state 2018-08-08 13:28:30 -04:00
rigelrozanski 97397e63da simple distribution overview 2018-08-08 13:09:51 -04:00
Ethan Buchman e6dc01ec27
Bucky/docs (#1843)
* docs: updates for 7002

* docs: use master instead of versions

* Update validator-setup.md

* 7002 -> 7005
2018-08-08 12:26:31 -04:00
Federico Kunze 1da1115a24 Merge PR #1880: Staking Gaia-lite (ex LCD) refactor 2018-08-08 12:38:39 +02:00
Rigel 7fb626f548 Merge PR #1702: lamborghini distribution & inflation spec upgrade 2018-08-08 12:10:21 +02:00
Aditya Sripal 7539e212ee more readable pseudo 2018-08-07 17:04:22 -07:00
Aditya Sripal feb9a22663 Cleaned up spec further 2018-08-07 17:02:28 -07:00
Aditya Sripal 2ac55ebb1d even better pseudocode 2018-08-06 15:23:47 -07:00
Aditya Sripal d56e3a7ef9 better pseudocode 2018-08-06 13:03:58 -07:00
Christopher Goes 46382994a3
Merge PR #1925: Fix develop from FF merge
* Update types/coin_test.go from FF merge
* 'make format'
2018-08-06 21:49:17 +02:00
Aditya Sripal 9c1918efdc improve readability 2018-08-03 13:16:41 -07:00
Aditya Sripal 10b2e830a2 addressed comments, added formulas for easy verification 2018-08-03 13:12:34 -07:00
gamarin f90fd2b90c update val faq 2018-08-03 17:43:31 +02:00
Zach 3c4985c315 Merge PR #1913: Delete gaiacli.md 2018-08-03 02:18:48 +02:00
Aleksandr Bezobchuk 9cfe2c59f1 Update schema 2018-08-02 14:35:54 -04:00
Aleksandr Bezobchuk 43420936e5 Fix link 2018-08-02 14:31:09 -04:00
Aleksandr Bezobchuk 11abc3f4f4 Update encoding and schema spec 2018-08-02 14:28:23 -04:00
Aleksandr Bezobchuk 508c54d3cd Update API section to be more spec-defined 2018-08-01 15:38:54 -04:00
Aleksandr Bezobchuk 00e116c0c7 Update preliminary 2018-08-01 14:53:34 -04:00
Aditya Sripal d4d7658166 New idea for spec 2018-07-31 18:11:19 -07:00
Jae Kwon 9841a2dd91
Update PRIORITIES.md 2018-07-31 16:46:43 -07:00
Jae Kwon a5114ea1a2
Create PRIORITIES.md 2018-07-31 12:43:02 -07:00
Aleksandr Bezobchuk fd64da8587 Update assumptions 2018-07-31 10:04:21 -04:00
Aleksandr Bezobchuk da0d907d12 Update ICS cosmos signed messages 2018-07-31 09:38:29 -04:00
Aleksandr Bezobchuk 02a7552f18 Remove ADR 001 and related directories/files 2018-07-30 16:59:58 -04:00
Aditya Sripal 41130f8742 Addressed basic comments 2018-07-30 13:25:44 -07:00
Aleksandr Bezobchuk f875b446e1 Add notes on replay protection and algos 2018-07-30 12:47:26 -04:00
Aleksandr Bezobchuk 3fe0b73b03 Update ADR 001 context 2018-07-30 12:19:39 -04:00
Aleksandr Bezobchuk 6d75b69a5c Initial ADR directory, templates, and ADR 001 2018-07-30 11:16:33 -04:00
Aditya Sripal 89494ef73e improve readability 2018-07-29 19:35:23 -07:00
Aditya Sripal 69d1fe2fb1 clarify requirements 2018-07-29 19:33:17 -07:00
Aditya Sripal 39d1cf69b5 simplify spec 2018-07-29 19:29:54 -07:00
Aditya Sripal 3445a85aad initial progress on vesting spec 2018-07-27 18:35:21 -07:00
Christopher Goes 02d52e4326 Hotfix/0.23.1: Tendermint 0.22.7 (#1844)
* Tendermint 0.22.7; bump patch version

* 0.23.0 -> 0.23.1; update CHANGELOG.md
2018-07-26 19:24:51 -04:00
Jack Zampolin 12ef51dc7a Add a Release Process for SDK (#1803)
* Add docs/RELEASE_PROCESS.md

* Address PR comments
2018-07-26 16:55:41 -04:00
Dev Ojha 78c58bfa15 Merge PR #1836: docs: Fix build errors on latest tendermint 2018-07-26 10:19:48 +02:00
Ethan Buchman a627526639
Bucky/docs (#1832)
* deprecate gaia testnets dir for testnets repo

* update docs for gaia-7002
2018-07-26 01:10:22 -04:00
Dev Ojha bac91f7a7b Update to tendermint v0.22.6 (#1798)
* Update to tendermint v0.22.6

- This was cherry-picked and fixed from develop
- Updates all crypto imports for changes from v0.22.5
2018-07-25 17:13:30 -04:00
Dev Ojha 5d02a743fb Update to tendermint v0.22.6-rc0 (#1798)
* Update to tendermint v0.22.6-rc0

This is comprised of updating the crypto imports / API

* (squash this) switch to v0.22.6

If this passes tests, I'll squash this commit and update the PR.
2018-07-25 16:43:37 -04:00
Rigel d6cd0d4acc Merge PR #1818: CLI keybase-sig -> identity 2018-07-25 20:43:13 +02:00
Aditya 671d8494b4 Merge PR #1682: Docs example app tests 2018-07-24 06:13:55 +02:00
Aditya Sripal 48885b4093 merge 2018-07-19 11:38:44 -07:00
Ethan Buchman 27840abb38
Merge pull request #1617 from cosmos/adrian/lcd_spec_final
LCD and API Specification / Documentation
2018-07-19 17:44:13 +02:00
Rigel d2f70ec8af Merge PR #1748: CLI use --from consistently 2018-07-19 08:53:12 +02:00
Rigel 8e26eb73a5
Merge branch 'develop' into svaishnavy/cosmos-sdk-cli 2018-07-18 21:27:04 -04:00
Aditya Sripal 218c9b3702 Merge branch 'develop' of https://github.com/cosmos/cosmos-sdk into aditya/cleanup 2018-07-18 17:48:15 -07:00