Commit Graph

367 Commits

Author SHA1 Message Date
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
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
Aditya Sripal
599b8ba4cf Fix bug, clearer logic 2018-08-15 13:54:03 -07: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
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
52475b1684 Fix minor typos 2018-08-14 11:31:39 +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
rigelrozanski
e7ebe35b0a updating transactions 2018-08-09 00:34:19 -04:00
rigelrozanski
5285489977 general updates 2018-08-08 23:43:40 -04: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
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
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
Aditya Sripal
d4d7658166 New idea for spec 2018-07-31 18:11:19 -07:00
Aditya Sripal
41130f8742 Addressed basic comments 2018-07-30 13:25:44 -07: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
Rigel
3231daa4d8 remove global shares (#1644)
* wip removing pool shares

* remove PoolShares/Tokens entirely

* worked through stake/type compile error

* work through a bunch of keeper errors

* worked through compile errors

* debugging tests

* resolve compilation error

* resolved types errors

* ...

* move inflation to pool type

* ...

* stumped problem

* Calculate newly issued shares, remove unnecessary pool arg from exchange rate calculation

* Rounding changed

* Update x/slashing tests for sdk.Rat BondedTokens

* testing fixes

* resolved test fixes

* cwgoes comments, changelog, lint

* cli bugfixes

* ..

* cli fixed

* spec update

* 'make format'

* cwgoes comments

* Increase test_cover parallelism
2018-07-13 21:46:14 +01:00
gamarin2
894d0cf5e3
Merge branch 'master' into gamarin/update_gov_spec 2018-07-11 15:59:24 +02:00
Zach Ramsay
557e652530 docs: fix dead links, closes #1508 2018-07-04 09:23:01 -04:00
gamarin
b2e9e1724b Spec conforms to current module 2018-07-02 13:50:55 +02:00
Christopher Goes
3654579ea7
Merge PR #1278: Slashing v2
Implement semifinal Gaia slashing spec (#1263), less #1348, #1378, and #1440 which are TBD.
2018-06-30 05:34:55 +02:00
Dev Ojha
0d28eda146 Merge PR #1463: docs: Fix dependencies, from monorepo merge
Closes #1456
2018-06-29 22:02:45 +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
Sunny Aggarwal
9ca3a16bb3 Merge PR #1397: Fix spelling changes
* fixed spelling changes
* extra spelling error
2018-06-27 01:58:42 +02:00
Zaki Manian
7e9859d388 Added a bech32 spec doc 2018-06-21 22:38:40 -07:00
Sunny Aggarwal
dc2c8f900b Merge PR #1168: Governance MVP 2018-06-22 02:19:14 +02:00
Ethan Buchman
a051091219 docs/spec: update readme 2018-06-21 15:46:18 -07:00
Ethan Buchman
d95cb82741 reorg docs/sdk and move stuff from docs/guide/sdk 2018-06-21 15:46:18 -07:00
Ethan Buchman
190d87d750 docs/spec: flesh out dir structure and update index 2018-06-16 00:39:15 -07:00
Ethan Buchman
2219c3b1c7 docs/spec/slashing: point to Tendermint evidence 2018-06-16 00:29:02 -07:00
Christopher Goes
0a6d09ebb3 Fix two typos, ensure nonnegative tokens 2018-06-16 00:29:02 -07:00
Ethan Buchman
902d066f52 docs/spec/slashing: separate out a proper state.md 2018-06-16 00:29:02 -07:00
Ethan Buchman
1b93f468bc docs/spec/staking: clean up state.md 2018-06-16 00:29:02 -07:00
Ethan Buchman
cab0a9bbae docs/spec/slashing 2018-06-16 00:29:02 -07:00
Ethan Buchman
85389f0db9 docs/spec/staking: update state.md 2018-06-16 00:29:02 -07:00
gamarin
9d5425b806 latest change 2018-06-15 16:18:50 +02:00
rigelrozanski
ab028a7805 cwgoes comments, improved pseudocode 2018-06-13 21:58:36 -07:00
gamarin
09ea8dac11 additional chekc in VoteMsg 2018-06-07 12:30:49 +02:00
gamarin
b525989319 Split procedures and add grace period 2018-06-07 12:02:21 +02:00
rigelrozanski
02559e725a cwgoes spec comments 2018-06-05 09:25:27 -07:00
Christopher Goes
e78a232e85 Move over slashing spec changes from #1011 2018-06-05 09:23:23 -07:00
rigelrozanski
605dfbbe54 changelog, update spec README 2018-06-05 09:23:23 -07:00
rigelrozanski
25ae026958 spec complete unbonding, redelegation txs 2018-06-05 09:23:23 -07:00
rigelrozanski
e39ba70c08 complete staking spec update 2018-06-05 09:23:23 -07:00
rigelrozanski
b8cf5f347e transaction stake updates 2018-06-05 09:23:23 -07:00
rigelrozanski
35956c1c78 staking spec state revisions 2018-06-05 09:23:23 -07:00
rigelrozanski
55cc086f55 docs reorganization 2018-06-05 09:23:23 -07:00
rigelrozanski
c66ded7646 staking overview.md revisions, moving files 2018-06-05 09:23:23 -07:00
rigelrozanski
18aa9a9909 stake/fees spec updates 2018-06-05 09:23:23 -07:00
gamarin
8c800eb42a Sunnys feedback 2018-06-05 16:43:56 +02:00
gamarin
6f8a2d562c better display 2018-06-04 17:34:31 +02:00
gamarin
bd8c481064 Small fix 2018-06-04 17:22:38 +02:00
gamarin
5735075b05 Revamp gov spec 2018-06-04 17:20:07 +02:00
Zaki Manian
f33f49a840 Almost from scratch reimplementation of bech32cosmos integration. 2018-05-27 13:47:23 +02:00
Ethan Buchman
0cf51da799 update valset-changes.md 2018-05-09 09:55:39 -04:00
Ethan Buchman
077ffeb706 spec: explicit CandidateStatus enum 2018-05-09 09:55:19 -04:00
Ethan Buchman
f4b2750b4f update readme 2018-05-08 17:46:08 -04:00
Ethan Buchman
b8b200ac34 consolidate into valset-changes.md 2018-05-08 17:45:05 -04:00
Ethan Buchman
111e7ecd52 spec: bust up staking into files 2018-05-08 17:35:24 -04:00
Ethan Buchman
2cad1aab3d remove governance.md 2018-05-08 17:17:49 -04:00
Ethan Buchman
b3421a884d spec/governance: update transactions.md 2018-05-08 15:53:23 -04:00
Ethan Buchman
ac8597e49d spec/governance: update state.md 2018-05-08 15:31:37 -04:00
Ethan Buchman
8a6ec9a257 slashing wip 2018-05-08 10:50:09 -04:00
Ethan Buchman
b452859f6a staking spec: minor cleanup 2018-05-08 10:50:02 -04:00
Ethan Buchman
ffed398035
Merge branch 'develop' into feature/ibc 2018-05-07 09:42:40 -04:00
Ethan Buchman
bf178ba041 spec/ibc -> spec/ibc/mvp 2018-05-07 09:47:17 -04:00
Christopher Goes
7dc29c0785
Update appendices 2018-05-02 18:01:17 +02:00
Christopher Goes
9eeffaa06d
Fix vector clock reference 2018-04-23 12:09:04 +02:00
Christopher Goes
43f97496cf
Update optimizations section 2018-04-23 11:57:40 +02:00
Christopher Goes
25a146d43f
Update optimizations section 2018-04-21 20:56:53 +02:00
Christopher Goes
dddf818e20
Move Byzantine failure section to Appendix D 2018-04-21 15:04:06 +02:00
Christopher Goes
1ac8a4b38e
Connection / channel / packet clarifications 2018-04-21 14:33:21 +02:00
Adrian Brink
fbfec1c9cf
Start prep for IBC standard for Ethereum community 2018-04-21 13:43:57 +02:00
Christopher Goes
37fd166829
Formatting updates 2018-04-20 19:22:00 +02:00
Christopher Goes
00489162ac
Clarify connections intro, Byzantine recovery strategies 2018-04-20 13:28:17 +02:00
Christopher Goes
773c87e8c0
Add section on closing IBC connections 2018-04-19 16:51:27 +02:00
Christopher Goes
f9e8018d43
Add receipt definition 2018-04-18 14:35:20 +02:00
Christopher Goes
2493332509
Define IBC packet, IBC channel 2018-04-18 13:22:14 +02:00
Christopher Goes
edd5368669
Add the concept of a 'channel' 2018-04-17 18:23:26 +02:00
Christopher Goes
eafa484184
Fix a few links 2018-04-17 16:39:33 +02:00
Christopher Goes
be3fa5672e
Update layout & fix anchor links 2018-04-17 16:28:34 +02:00
Christopher Goes
1cdfef81cd
Reorder Merkle proof section 2018-04-17 16:28:34 +02:00
Christopher Goes
0b00dbfdcd
Clarify queue interface 2018-04-17 16:28:34 +02:00
Christopher Goes
8e9615a403
Pluralize 2018-04-17 16:28:34 +02:00
Christopher Goes
f01ab5e4c9
Start editing of Queues section 2018-04-17 16:28:34 +02:00
Christopher Goes
f1c7d1ccea
Cleanup & clarification in progress 2018-04-17 16:28:33 +02:00
Christopher Goes
dc2c638f7f
Move specification.md to README.md, cleanup overview, separate MVP directory 2018-04-17 16:28:33 +02:00
Christopher Goes
6500728dd2
Rebase onto develop 2018-04-17 16:28:33 +02:00
Ethan Frey
a8d3b3ef19
Correct spelling
This reverts commit 3c7d194a7f1bc53b60cf09473f0ac50d2192e2af.
2018-04-17 16:28:33 +02:00
Adrian Brink
32ffd2d316
Review the IBC specification 2018-04-17 16:28:33 +02:00
Ethan Frey
ecb1f93e19
Join appendices into one file 2018-04-17 16:28:33 +02:00
Ethan Frey
cdf08ecdb7
Fix typos 2018-04-17 16:28:33 +02:00
Ethan Frey
f5a45a94f6
Clean up optimization section 2018-04-17 16:28:33 +02:00
Ethan Frey
1feb84e272
Cleaned up queue section 2018-04-17 16:28:33 +02:00
Ethan Frey
cc17a3e963
Clean up all formulas in proofs 2018-04-17 16:28:32 +02:00
Ethan Frey
97e61a6f7b
Break IBC spec into multiple md files 2018-04-17 16:28:32 +02:00
Ethan Frey
7610cca7c9
Rough import of google doc to markdown 2018-04-17 16:28:32 +02:00
Ethan Frey
06ec4b4a1a
Added protobuf specifications for ibc messages 2018-04-17 16:28:32 +02:00
Ethan Frey
f40335342f
Started IBC spec 2018-04-17 16:28:32 +02:00
Ethan Buchman
4bfa40adbd
Merge pull request #465 from cosmos/improve_staking_spec
WIP: Staking Specification
2018-03-20 01:14:58 +01:00
mossid
2c0b172653 apply comments 2018-03-20 00:22:49 +01:00
Joon
7e4e164518
Merge branch 'develop' into joon/ibc-mvp1 2018-03-19 22:14:13 +01:00
Ethan Buchman
8231fd4f04
Merge branch 'develop' into matt/ibc-spec 2018-03-19 21:37:32 +01:00
Adrian Brink
54b162f5c3
Merge branch 'develop' into joon/ibc-mvp1 2018-03-18 17:11:34 +01:00
Adrian Brink
95a5a7c9a0
IBC implementation almost done 2018-03-18 13:32:16 +01:00
Ethan Buchman
ad705fdea1 bump version
added rest server and status endpoint

added get block endpoint

added latest block endpoint

add 404 if height is out of bounds

add version endpoint

add validators endpoint

export GetBlockHeight

add keys endpoints

add txs endpoints

added verb limiters to ednpoints

only output node info + json structure improvement

fixed wrong body parsing

github PR template

crypto.Address -> sdk.Address

revert to old go-wire

update glide

remove print statement and update glide

fix #554

add .DS_Store to .gitignore

Massive consolidation: queue, data storage struct, store, logic, ...

Small fixes
2018-03-17 22:14:19 +01:00
Adrian Brink
c409455150
IBC module 2018-03-15 14:54:44 +01:00
Zarko Milosevic
5b0e222639 Add spec of the basic staking features 2018-03-14 17:48:52 +01:00
mossid
1cb795ba73 structure 2018-03-14 13:11:33 +01:00
mossid
5ebdff2e5e packetdata->payload 2018-03-13 20:28:38 +01:00
mossid
ded9de18cf add term description, packetdata abstraction in 2/3 2018-03-13 20:22:03 +01:00
mossid
ac004be491 merge storeKeys 2018-03-13 19:55:38 +01:00
mossid
259400cbda in progress 2018-03-13 19:47:02 +01:00
mossid
2217aaf54f router -> dispatcher, get rid of sdk.Msg 2018-03-13 19:39:06 +01:00
mossid
a9064c97c3 remove leftover in mvp3 2018-03-13 19:08:16 +01:00
mossid
8b55006fca fill mvp1/2/3 2018-03-13 19:05:27 +01:00
mossid
927b869db9 refactor spec structure 2018-03-13 17:10:26 +01:00
Adrian Brink
e42aca05eb Extend IBC specification 2018-03-13 16:21:24 +01:00
mossid
9be287ced1 add ibc2.md 2018-03-13 16:21:24 +01:00
Matt Bell
83ce0ed1f9 Added IBC MVP spec 2018-03-13 16:21:24 +01:00
gamarin
5ff1f0c5f8 Add submitter in proposal struct 2018-03-02 12:08:18 +01:00
gamarin
7ca150fd40 Remove .DS_Store 2018-03-01 18:29:46 +01:00
gamarin
9820f5b45c Removed stores, change address to PubKey, fixes, ... 2018-03-01 17:21:35 +01:00
gamarin
66c89143be Little fix deposit tx 2018-02-28 15:15:10 +01:00
gamarin
0012f42057 Remove governance GovPubKey 2018-02-27 18:55:04 +01:00
gamarin
38975ac695 Remove map from Proposal struct 2018-02-27 16:04:44 +01:00
gamarin
02435bb1f8 From two processes to one process (jae's pick) 2018-02-26 18:15:48 +01:00
gamarin
aa19612dd0 Improve store description 2018-02-26 17:28:57 +01:00
gamarin
3071f05d0e remove governance.md 2018-02-26 16:40:25 +01:00
gamarin
275abe56e7 Split in multiple files 2018-02-26 16:36:09 +01:00
gamarin
48bd59eee3 Split in multiple files 2018-02-26 16:35:09 +01:00
gamarin
798b2b6ea3 Add Readme 2018-02-26 16:07:17 +01:00
Adrian Brink
d0539d5e9d
Review Governance specification 2018-02-26 12:27:26 +01:00
gamarin
dd0695afa0 Small fixes 2018-02-21 17:45:23 +01:00
gamarin
d0e458f3bc Massive consolidation: queue, data storage struct, store, logic, ... 2018-02-20 18:40:01 +01:00
Ethan Buchman
8864bc2a20 add spec dir 2018-02-11 12:17:40 -05:00