Commit Graph

2363 Commits

Author SHA1 Message Date
Alessio Treglia ca19fbc5f8
types/rest: add convenience functions for error checking (#5900) 2020-04-01 09:50:22 +02:00
Alessio Treglia 35e15521dc
x/auth: use validateMaxMemoCharacters() for memo fields (#5898)
Add test cases.
2020-03-31 16:18:02 +02:00
Federico Kunze 6a6fd1c7ac
patch auth register cdc (#5892)
* readd RegisterAccountTypeCodec

* fix

* remove seal

* update BaseAccount and StdSig to use amino codec

* remove comments

* rename

* changelog

* rename
2020-03-30 22:09:28 +00:00
Sahith Reddy Narahari f4dd7f5a52 Did minor code cleanup 2020-03-27 22:55:56 +05:30
Sahith Reddy Narahari 32699c5985 Added proto compatible x/slashing clients 2020-03-27 21:21:53 +05:30
Aleksandr Bezobchuk 78fd300127
Fix bank tests 2020-03-26 13:50:34 -04:00
Aleksandr Bezobchuk 6135912e53
JSON Proto changes 2020-03-26 12:46:10 -04:00
Aleksandr Bezobchuk 7310a0cca9
Fix build 2020-03-25 15:21:20 -04:00
Alexander Bezobchuk 37885b8d38
Merge branch 'master' into bez/tx-client-proto-i 2020-03-25 14:25:58 -04:00
Aleksandr Bezobchuk 3e0cf99e81
Finish remaining x/bank REST handlers 2020-03-25 14:23:34 -04:00
Aleksandr Bezobchuk 0e83e328d0
Prep QueryBalancesRequestHandlerFn for proto 2020-03-25 13:22:29 -04:00
Aleksandr Bezobchuk 7e67d84c0e
Lint 2020-03-25 12:30:10 -04:00
Aleksandr Bezobchuk d21020e0f8
Update x/bank CLI query commands 2020-03-25 12:27:03 -04:00
Federico Kunze 9cce836c08
crypto/keys: move keybase and keyring to crypto/keyring/ dir (#5866)
* crypto/keys: move keybase and keyring to crypto/keyring/ dir

* Update client/keys/root.go

* Update crypto/keyring/errors.go

* Update crypto/keyring/keybase.go

* Update crypto/keyring/options.go

* format

* changelog

* fix build

* format

* lint
2020-03-25 15:20:36 +00:00
Aleksandr Bezobchuk c4a4047ed2
Implement NewSendTxCmd 2020-03-25 10:55:28 -04:00
Aleksandr Bezobchuk 486fa5b4b0
Fix constructors 2020-03-24 18:55:53 -04:00
Denis Fadeev 43627d0d1c
Update docs website (#5827)
* query-lifecycle and started modules-interfaces

* query-lifecycle first draft done

* module interfaces first draft

* rest and intro skeletons

* rest and intro done

* small edits and links

* comments

* revisions

* cli.md comments

* comments

* minor edits

* better flow for query lifecycle

* add transactions into core

* hans comments

* add transactions into core

* checkout master-docs files

* deleted some

* remove modules readme

* cli.md comments

* comments

* module-interfaces comments

* Merge PR #4857: Add Context concept doc

* working

* working

* finish messages and queries

* handler

* querier

* last comments!

* punctuation

* querier2

* consolidate intro

* querier

* workiiiing

* refactor for new module interface

* karoly review

* working on baseapp doc

* baseapp work

* reorg

* almost there

* finish first draft

* remove old files

* finish intro

* workinnn

* initial commit after rebase

* query-lifecycle and started modules-interfaces

* query-lifecycle first draft done

* module interfaces first draft

* rest and intro skeletons

* rest and intro done

* small edits and links

* comments

* revisions

* cli.md comments

* comments

* minor edits

* better flow for query lifecycle

* checkout master-docs files

* deleted some

* remove modules readme

* cli.md comments

* comments

* module-interfaces comments

* keeper

* genesis

* finish

* Apply suggestions from code review

Co-Authored-By: Hans Schoenburg <hschoenburg@users.noreply.github.com>

* hans review

* Update docs/core/baseapp.md

Co-Authored-By: Hans Schoenburg <hschoenburg@users.noreply.github.com>

* working

* last comment

* workin

* Apply suggestions from code review

* encoding and node

* almost finish store

* finish docs

* fixes

* fede comments + permalinks

* hans review

* add more permalinks

* update docs theme version (#5239)

* R4R: Docs Cleanup (#5246)

* start

* work

* work

* work

* remove table of content

* links intro

* fix links

* remove junk

* cleanup

* cleanup

* work

* finish cleanup

* addback readmes

* remove nft

* fix links

* remove dup

* remove dup

* remove dup

* remove dup

* remove dup

* fix links

* add subscribe events

* refine rest

* index page

* sidebar

* theme version

* theme version

* testing netlify

* theme version

* tooltip example

* version

* testing code embedding

* reverting back

* theme version

* version

* version

* version

* readme and version

* cleanup

* redo app anatomy

* modules readme, theme version

* theme version

* fix modules list

* theme version

* new snippets

* modules readme

* update docs readme

* modify synopsis

* version

* fix yaml

* version

* version

* version

* version

* version

* version

* version

* version

* version

* version

* add hide banner

* version

* version

* version

* small fixes

* modules readme, version

* remove hotkeys dep, version

* version

* version

* version

* version

* version

* version

* version

* slight notice

* fix links and hide

* permalinks

* small clean

* version

* resolve conflicts, add google analytics

* fix merge remants

* version

* changelog 1/2

* Changelog: docs UI

* version

* remove merge conflicts

* Code: Update link for Contributing to the docs to docs_readme

* HTML/CSS: Update layout of homepage footer to match new layout in Figma

* version

* final modifs

* modules, version

* modules readme

* link to module list from homepage

* version

* building modules link

* version

* version

* fonts

* version

* version

* fix link

* fix package.json

* links in explore sdk section

* core concepts

* version

* change delimeters for frontmatter

* frontmatter in comments

* version

* temp add tiny-cookie

* fixed link issues

* fixed styling issues, copy

* hide frontmatter

* hide frontmatter

* layout fixes, padded ascii diagram

* fira sans font for code

* scrollbar color

* move synopsis from frontmatter

* move synopsis from frontmatter

* code styling in synopsis fix

* tutorial link

* active headers

* 404 fix

* homepage links fix

* fix link in footer

* misc fixes

* version

* prerequisite links on mobile

* version

* version

* Fix footer links

* version

* Fix permalink popup

* Update version

* package-lock.json

* Update Questions section in the footer

* Config for Algolia Docsearch

* Update version

* Update to the latest version of the theme

* Use docs-staging as a branch for staging website

* Update version

* Add google analytics

* Remove {hide} from Pre-Requisite Readings

* Replace Riot with Discord

Co-Authored-By: billy rennekamp <billy.rennekamp@gmail.com>

* Fix yaml syntax error in docs

* Fix formatting in keyring.md

Co-authored-by: Gloria Zhao <gzhao408@berkeley.edu>
Co-authored-by: gamarin <gautier@tendermint.com>
Co-authored-by: Jack Zampolin <jack.zampolin@gmail.com>
Co-authored-by: Hans Schoenburg <hschoenburg@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: billy rennekamp <billy.rennekamp@gmail.com>
2020-03-24 16:20:30 +00:00
Jonathan Gimeno 49102b1d98
Remove dependency of types/module package on x/simulation (#5835)
Closes: #5724
2020-03-23 12:55:44 +01:00
Marko d657513741
lint: various linting fixs (#5825)
* lint: various linting fixs

Signed-off-by: Marko Baricevic <marbar3778@yahoo.com>

* more linting

* more linting fixes

* more errchecking

* comment out errcheck for now

* undo error check

* address some comments

* remore require error

* change delete to batch delete

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-03-20 19:24:18 +00:00
Alessio Treglia 1d0967c32a
run go mod tidy && make format (#5847) 2020-03-20 17:14:14 +00:00
Federico Kunze 2cf816d457
minor test change 2020-03-19 22:48:20 -03:00
Federico Kunze 51d9045152
authclient: fix tests 2020-03-19 22:46:35 -03:00
Federico Kunze 38f4b084c1
authclient: update godoc for gas adjusted 2020-03-19 22:42:34 -03:00
Federico Kunze 3d2746434f
authclient: update txBuilder to return sdk.SimulationResponse 2020-03-19 22:40:07 -03:00
Jonathan Gimeno 8c7bb89549
Implementing --offline flag (#5810)
Closes: #5448
2020-03-19 02:49:33 +01:00
Alessio Treglia 3db39cda3c
Fix various linter warnings (#5824) 2020-03-18 12:59:08 +00:00
Aleksandr Bezobchuk 91115fd6ab
Merge branch 'master' into bez/proto-client-init 2020-03-17 17:56:21 -04:00
Gavin e0280bf2d5
Update 07_params.md 2020-03-17 11:30:24 -04:00
Aleksandr Bezobchuk 25f036f248
Update params doc with restrictions 2020-03-16 19:02:55 -04:00
Aleksandr Bezobchuk f60cd5a2b5
Merge branch 'master' into bez/proto-client-init 2020-03-14 12:34:34 -04:00
Jonathan Gimeno 2e42f9cb74
Favor marshal unmashal binare bare (#5799)
* change abci file to use BinaryBare

* change all calls to EncodeLengthPrefixed to BinaryBare in distribution keeper store.

* change all calls to EncodeLengthPrefixed to BinaryBare in mint keeper store.

* change all calls to EncodeLengthPrefixed to BinaryBare in auth keeper store.

* change all calls to EncodeLengthPrefixed to BinaryBare in distribution keeper store.

* change all calls to EncodeLengthPrefixed to BinaryBare in staking keeper store.

* change all calls to EncodeLengthPrefixed to BinaryBare in staking keeper store.

* change all calls to EncodeLengthPrefixed to BinaryBare in gov keeper store.

* change all calls to EncodeLengthPrefixed to BinaryBare in slashing keeper store.

* update decoder test

* migrate decoder

* migrate gov simulation decoder

* migrate baseapp_test

* refactor QuerySubspace

* refactor coedc std codec

* migrate keybase

* migrate iavl store

* migrate root multi

* migrate ante basic

* migrate tx type to bare

* migrate auth client

* update auth types

* update decoder

* migrate supply decoder

* migrate stake encoding

* migrate staking simulation

* migrate genutil

* migrate simapp test helpers

* migrate docs

* upgrade changelog

* Update CHANGELOG.md

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

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-03-13 19:58:43 +00:00
Aleksandr Bezobchuk 62dbd4a9be
Merge branch 'master' into bez/proto-client-init 2020-03-13 14:00:47 -04:00
Aleksandr Bezobchuk 0b76411469
Update StdTx 2020-03-13 09:36:29 -04:00
Aleksandr Bezobchuk b38d3ae69a
Update ADR and types 2020-03-12 15:35:22 -04:00
Aleksandr Bezobchuk 5513927778
Fix TestStdSignatureMarshalYAML 2020-03-12 13:52:55 -04:00
Aleksandr Bezobchuk 34f9fc439a
Implement canonical signing 2020-03-12 13:32:03 -04:00
Aleksandr Bezobchuk 3a94f42e11
Implement app-level tx 2020-03-12 10:53:27 -04:00
Jonathan Gimeno 644b85254f
Merge branch 'master' into jonathan/5783-standarize-representation-governance 2020-03-12 14:30:06 +01:00
Jonathan Gimeno ee0e0aeaff undo change 2020-03-12 14:27:19 +01:00
Alessio Treglia f8897308d6
fix error's raw log messages ugly encoding
Closes: #5785
2020-03-12 01:36:16 +01:00
Jonathan Gimeno 1c7ec9e339 update params cli msg 2020-03-11 18:07:49 +01:00
Jonathan Gimeno 382e5021b2 update cli documentation distribution 2020-03-11 18:06:39 +01:00
Jonathan Gimeno 36554e73e2 refactor cli tx for distribution param change request 2020-03-11 18:03:47 +01:00
Jonathan Gimeno 34e22fbcb8 refactor parsing to use unified version 2020-03-11 17:45:02 +01:00
Aleksandr Bezobchuk f218e4c42d
Fix x/genutil ExportGenesis 2020-03-10 09:41:37 -04:00
Alexander Bezobchuk 1b51a043e2
Fix x/auth GET commands (#5756)
Fix x/auth GET commands.

Fix QueryParamsCmd.
2020-03-06 15:16:30 +00:00
Alexander Bezobchuk 88d01a9869
Remove redundant staking APIs (#5755) 2020-03-06 13:40:50 +00:00
Jonathan Gimeno 5c4ace2548 Merge branch 'jonathan/5569-create-module-account-on-init-genesis' of github.com:cosmos/cosmos-sdk into jonathan/5569-create-module-account-on-init-genesis 2020-03-05 22:11:35 +01:00
Jonathan Gimeno e45be08eb1 create module account on init for FeeCollectorName and tests for other module accounts 2020-03-05 22:11:05 +01:00
Jonathan Gimeno b813e8965f
Merge branch 'master' into jonathan/5569-create-module-account-on-init-genesis 2020-03-05 17:15:35 +01:00
Jonathan Gimeno ba099998f6 Clarify what happens with GetModuleAccount method. 2020-03-05 16:36:36 +01:00
Jonathan Gimeno 60031bbc9b re-public methods 2020-03-05 16:19:36 +01:00
Jonathan Gimeno 643b109826 change assert by require 2020-03-05 16:15:53 +01:00
Federico Kunze e0b5413861
Merge branch 'master' into jonathan/5569-create-module-account-on-init-genesis 2020-03-05 11:41:06 -03:00
Aleksandr Bezobchuk 4dac1abebf
Update imports 2020-03-05 09:40:43 -05:00
Aleksandr Bezobchuk 3f2f4b984e
Move pkg to std/ 2020-03-05 09:32:43 -05:00
mergify[bot] 9acd722db2
x/distribution: simapp for testing (#5725)
* migrate first distribution test to use simapp

* refactor test TestAllocateTokensTruncation

* migrate allocation test for distribution

* migrate TestCalculateRewardsBasic to simapp in distribution

* migrate TestCalculateRewardsAfterSlash to simapp in distribution

* migrate TestCalculateRewardsAfterManySlashes to use simapp

* migrate TestCalculateRewardsMultiDelegator to use ssimapp

* migrate TestWithdrawDelegationRewardsBasic to simapp

* migrate TestCalculateRewardsAfterManySlashesInSameBlock to simapp

* migrate TestCalculateRewardsMultiDelegatorMultiSlash

* migrate old delegation test

* migrate keeper test to simapp

* refactor all distribution to use simapp

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-03-05 14:00:45 +00:00
Jonathan Gimeno ccb0062560 update changelog 2020-03-05 12:18:04 +01:00
Jonathan Gimeno 29abc244eb make private methods that does not need to be exported 2020-03-05 11:56:39 +01:00
Jonathan Gimeno e01c99d019 now it creates the module account on InitChain 2020-03-05 11:45:51 +01:00
Alexander Bezobchuk 0cbe4e5532
Update x/upgrade/types/types.proto
Co-Authored-By: Anil Kumar Kammari <anil@vitwit.com>
2020-03-04 09:27:50 -05:00
Aleksandr Bezobchuk 430739c2b8
Remove named return 2020-03-03 20:29:34 -05:00
Aleksandr Bezobchuk 94103b92d5
Merge branch 'master' into bez/5444-gov-proto-enc 2020-03-03 15:37:04 -05:00
Aleksandr Bezobchuk cd2febac28
Fix proto 2020-03-03 14:36:02 -05:00
Jonathan Gimeno 87012c7cc8 Merge branch 'jonathan/5646-remove-internal-crisis' of github.com:cosmos/cosmos-sdk into jonathan/5646-remove-internal-crisis 2020-03-03 20:07:47 +01:00
Jonathan Gimeno f3607833c1 update proto file 2020-03-03 20:06:55 +01:00
Alexander Bezobchuk b6e36b8aca
Merge branch 'master' into bez/5444-gov-proto-enc 2020-03-03 13:19:44 -05:00
Alexander Bezobchuk c50dd15413
Merge branch 'master' into jonathan/5646-remove-internal-crisis 2020-03-03 13:04:33 -05:00
Jonathan Gimeno 3517ebad4c remove internal package folder 2020-03-03 17:45:02 +01:00
Jonathan Gimeno 78791f3c4e clean part of the code 2020-03-03 17:21:17 +01:00
Jonathan Gimeno c97a1b66ca migrate TestJailedValidatorDelegations to simapp 2020-03-03 17:13:49 +01:00
Aleksandr Bezobchuk 00180faa15
Proto lint & gen 2020-03-03 09:59:05 -05:00
Aleksandr Bezobchuk eedc6f6190
Fulfill MsgSubmitProposalI interface 2020-03-03 09:40:11 -05:00
Jonathan Gimeno 210d78b54d refactor TestCannotUnjailUnlessMeetMinSelfDelegation to use simapp 2020-03-03 11:43:18 +01:00
Jonathan Gimeno 1da6f3c86e refactor TestCannotUnjailUnlessJailed to use simapp 2020-03-03 11:28:22 +01:00
Jonathan Gimeno 24d25fa207 refactor abci test to use simapp 2020-03-03 11:25:32 +01:00
Jonathan Gimeno 2b95d5317e refactor signing info test 2020-03-03 11:20:18 +01:00
Jonathan Gimeno c2cc84950b refactor TestGetSetValidatorSigningInfo test 2020-03-03 11:16:31 +01:00
Jonathan Gimeno 416f0147f7 refactor querier test 2020-03-03 11:14:22 +01:00
Jonathan Gimeno 0a5f64b64f clean some code 2020-03-03 11:05:20 +01:00
Jonathan Gimeno 863dc1484e make test pass 2020-03-03 10:51:06 +01:00
Aleksandr Bezobchuk 05cef02b4d
Add MsgSubmitProposal back to codec 2020-03-02 17:24:10 -05:00
Aleksandr Bezobchuk 1a25cdae6f
Update tests 2020-03-02 17:21:00 -05:00
Jonathan Gimeno 2706854eff refactor TestHandleAlreadyJailed to simapp 2020-03-02 22:54:38 +01:00
Aleksandr Bezobchuk 5f0c53da17
update tests 2020-03-02 16:46:28 -05:00
Aleksandr Bezobchuk 833368cc74
reintroduce old MsgSubmitProposal type 2020-03-02 16:29:10 -05:00
Aleksandr Bezobchuk fe7b02231e
Update handler 2020-03-02 16:06:35 -05:00
Aleksandr Bezobchuk fb42f8b2a0
types updates 2020-03-02 15:50:20 -05:00
Jonathan Gimeno a016524468 migrate TestHandleNewValidator to new simapp 2020-03-02 21:19:46 +01:00
Aleksandr Bezobchuk 81830807e7
Merge branch 'master' into bez/5444-gov-proto-enc 2020-03-02 15:07:51 -05:00
Aleksandr Bezobchuk 7562c2765a
Update gov types 2020-03-02 14:13:42 -05:00
Aleksandr Bezobchuk a89eb77841
Add equal option to upgrade proto types 2020-03-02 14:10:27 -05:00
Jonathan Gimeno eba38af83d end of gov refactoring 2020-03-02 19:56:29 +01:00
Jonathan Gimeno e266c40ce1 refactor vote test 2020-03-02 19:50:39 +01:00
Jonathan Gimeno 894b2e5897 refactor old tally test 2020-03-02 19:46:39 +01:00
Jonathan Gimeno 275b78f1c3 add TestTallyJailedValidator to simapp 2020-03-02 19:25:05 +01:00
Jonathan Gimeno 7d3430673e add tally test TestTallyDelgatorMultipleInherit 2020-03-02 19:17:31 +01:00
Alexander Bezobchuk c0384a1b91
Merge branch 'master' into bez/5444-gov-proto-enc 2020-03-02 13:08:26 -05:00
Jonathan Gimeno 8d4d10d27f refactor TestTallyDelgatorMultipleOverride to use simapp 2020-03-02 18:52:45 +01:00
Aleksandr Bezobchuk 31dc2729fc
Merge branch 'master' into bez/5444-gov-proto-enc 2020-03-02 12:50:32 -05:00
Aleksandr Bezobchuk e2b72141bf
Update keeper 2020-03-02 12:49:32 -05:00
Jonathan Gimeno 73e1e3a354 refactor TestTallyDelgatorInherit to use simapp 2020-03-02 18:49:14 +01:00
Aleksandr Bezobchuk 725e2dc2b4
Update gov codec interface 2020-03-02 12:44:55 -05:00
Jonathan Gimeno 9f251885f1 migreate TestTallyDelgatorOverride to simapp 2020-03-02 18:08:40 +01:00
Jonathan Gimeno 46a70d58fa migrate TestTallyOnlyValidatorsNonVoter to simapp 2020-03-02 18:01:10 +01:00
Jonathan Gimeno 759181c2cc migrate TestTallyOnlyValidatorsAbstainFails into simapp 2020-03-02 17:59:24 +01:00
Jonathan Gimeno b83755fc1d migrate TestTallyOnlyValidatorsAbstainPasses to simapp 2020-03-02 17:57:39 +01:00
Jonathan Gimeno c3b18dfb2f migrate TestTallyOnlyValidatorsVetoed test 2020-03-02 17:55:31 +01:00
Aleksandr Bezobchuk 081e62cb2d
Update codec 2020-03-02 11:54:43 -05:00
Jonathan Gimeno 84b7fe5bfa migrate TestTallyOnlyValidators51Yes to use simapp 2020-03-02 16:53:06 +01:00
Jonathan Gimeno 1cf4a7e330 migrate TestTallyOnlyValidators51No to use simapp 2020-03-02 16:50:39 +01:00
Jonathan Gimeno 88e3a22fc4 migrate TestTallyOnlyValidatorsAllYes to simapp 2020-03-02 16:47:06 +01:00
Jonathan Gimeno e24734f72e migrate TestTallyNoQuorum to use simapp 2020-03-02 16:41:41 +01:00
Jonathan Gimeno 8c0d32c8a8 migrate TestTallyNoOneVotes to use simapp 2020-03-02 16:38:24 +01:00
Jonathan Gimeno 80bfd0d2dc migrate TestQueries to new test simapp 2020-03-02 16:22:36 +01:00
Jonathan Gimeno 2c231e2fa0 TestGetProposalsFiltered migrate to simapp 2020-03-02 16:10:19 +01:00
Jonathan Gimeno 00396145d5 migrate TestActivateVotingPeriod to simapp 2020-03-02 16:07:23 +01:00
Jonathan Gimeno eedd2b2341 migrate part of proposal to simapp 2020-03-02 16:04:49 +01:00
Jonathan Gimeno 2afd22f37e migrate TestProposalQueues to use simapp 2020-03-02 15:59:55 +01:00
Jonathan Gimeno 0c938123d9 migrate TestIncrementProposalNumber to simap 2020-03-02 15:56:26 +01:00
Jonathan Gimeno 3fa47df519 migrate test TestDeposits from gov to simapp 2020-03-02 15:52:43 +01:00
Aleksandr Bezobchuk 8f131e2e0c
Fix and updates gov proto types 2020-03-02 09:14:17 -05:00
Alessio Treglia d7fd5b6a42
Replace defer with testing.T.Cleanup() (#5732) 2020-03-02 00:16:23 +00:00
Alessio Treglia 2ae25caa74
linter fixes (#5733)
* make .golangcy.yml work with Goland's Golint plugin

Explicitly disable all linters. Whitelist of enabled
plugins is already provided.

This would enable Goland users to user Golint plugin.

* fix deadcode warnings

* fix gocritic error

unslice: could simplify pkBytes[:] to pkBytes
2020-03-01 15:38:57 +00:00
Alexander Bezobchuk 9aa2088c23
Update x/staking/keeper/keeper.go 2020-02-28 09:59:06 -08:00
Jonathan Gimeno 2c32ff3ee4
Merge branch 'master' into jonathan/4875-staking-test-use-simapp 2020-02-28 10:58:16 +01:00
Anil Kumar Kammari 0b7449129a
Merge PR #5500: Regen network/multistore upgrades 2020-02-27 22:26:04 -08:00
Jonathan Gimeno 60293dd2e6
Merge branch 'master' into jonathan/4875-staking-test-use-simapp 2020-02-27 17:51:14 +01:00
Jonathan Gimeno d279066285 remove duplicated func 2020-02-27 16:47:59 +01:00
Alessio Treglia 5a2e59ebb2
Exclude proto files from format (#5706)
* Don't change proto files on make format

The format target does not need to depend on tools.
Thus remove dependency.

* Run make format

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-02-27 07:53:22 -03:00
Aaron Craelius 81735debe5 Fix proposal marshaling, make Proposal extend ProposalBase 2020-02-26 20:47:45 -05:00
Aaron Craelius 333066efa8 Fix distribution proto package 2020-02-26 20:16:48 -05:00
Aaron Craelius feb8b0d4c3 Protogen fix 2020-02-26 20:15:32 -05:00
Aaron Craelius 2cf8a5e955 WIP on proposal proto 2020-02-26 20:15:00 -05:00
Aaron Craelius 830ada0fa4 WIP on StdProposal 2020-02-26 20:15:00 -05:00
Aaron Craelius 2e0033afcf Update x/gov/types/codec.go
Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
2020-02-26 20:15:00 -05:00
Aaron Craelius 38d44e839e WIP on fixing tests 2020-02-26 20:15:00 -05:00
Aaron Craelius d563248bbb mv codec.proto -> types.proto 2020-02-26 20:15:00 -05:00
Aaron Craelius 3919645e8b Rename GovCodec to gov.Codec 2020-02-26 20:15:00 -05:00
Aaron Craelius e8155d67d0 Simple refactoring of gov to use protobuf for store encoding (for everything besides proposal) 2020-02-26 20:15:00 -05:00
Aaron Craelius 56104c2961
Merge PR #5703: Fix typo in distribution proto package name 2020-02-26 10:58:27 -05:00
Jonathan Gimeno 4de26fd67a fix lint errors 2 2020-02-26 16:35:04 +01:00
Alexander Bezobchuk 8cab43c812
Merge PR #5702: Add Param Querying to x/auth 2020-02-26 10:33:56 -05:00
Jonathan Gimeno 14469ccc74 fix lint errors 2020-02-26 16:29:48 +01:00
Jonathan Gimeno c94a98f459 fix based on PR comments 2020-02-26 16:05:12 +01:00
Jonathan Gimeno 1d18f8839c remove create test public keys 2020-02-26 15:57:41 +01:00
Jonathan Gimeno 64c2971c6f remove test_common 2020-02-26 15:51:45 +01:00
Jonathan Gimeno bbbbc61276 end refactor handler_test 2020-02-26 15:48:51 +01:00
Jonathan Gimeno 015fd43f51 refactor TestMultipleUnbondingDelegationAtUniqueTimes and TestUnbondingWhenExcessValidators 2020-02-26 15:44:15 +01:00
Jonathan Gimeno 9381500fbc refactor TestMultipleRedelegationAtUniqueTimes and TestMultipleUnbondingDelegationAtSameTime 2020-02-26 15:39:56 +01:00
Jonathan Gimeno 4e16a0861c refactor TestTransitiveRedelegation and TestMultipleRedelegationAtSameTime 2020-02-26 15:35:29 +01:00
Jonathan Gimeno c58ec7f7b7 refactor TestUnbondingFromUnbondingValidator and TestRedelegationPeriod 2020-02-26 15:31:16 +01:00
Jonathan Gimeno eb26b478b4 refactor TestUnbondingPeriod and TestValidatorQueue 2020-02-26 15:26:50 +01:00
Jonathan Gimeno 0fcf1e20d6 refactor TestJailValidator 2020-02-26 15:21:42 +01:00
Jonathan Gimeno 0e3b95857b refactor TestMultipleMsgDelegate 2020-02-26 15:19:39 +01:00
Jonathan Gimeno d251f6436e refator TestMultipleMsgCreateValidator 2020-02-26 15:17:31 +01:00
Jonathan Gimeno 46d62ebfa9 refactor TestIncrementsMsgUnbond 2020-02-26 15:13:08 +01:00
Jonathan Gimeno a07ed83dd2 refactor TestEditValidatorIncreaseMinSelfDelegationBeyondCurrentBond 2020-02-26 15:08:43 +01:00
Jonathan Gimeno 8ecd5b8954 refactor next 2020-02-26 15:06:52 +01:00
Jonathan Gimeno 3f319c2578 refactor TestIncrementsMsgDelegate 2020-02-26 15:04:40 +01:00
Jonathan Gimeno ee21805282 refactor TestLegacyValidatorDelegations to use simapp 2020-02-26 14:52:34 +01:00
Jonathan Gimeno c314b93789 temporary commit 2020-02-26 13:28:18 +01:00
Jonathan Gimeno 030f612b6c refactor TestInvalidPubKeyTypeMsgCreateValidator 2020-02-26 12:23:55 +01:00
Jonathan Gimeno 59ecf11a12 refactor TestDuplicatesMsgCreateValidator 2020-02-26 11:36:37 +01:00
Jonathan Gimeno 315572bcd2 refactor TestValidatorByPowerIndex 2020-02-26 11:33:25 +01:00
Jonathan Gimeno 399ea763ee refactor old genesis_test to use simapp 2020-02-26 10:47:39 +01:00
Alexander Bezobchuk ec39bb3b42
Merge PR #5696: Fix x/auth proto json tags 2020-02-25 15:22:28 -05:00
Jonathan Gimeno 194b97b1c1 git remove unused vars 2020-02-25 17:33:18 +01:00
Jonathan Gimeno 13f2138989 Merge branch 'master' into jonathan/4875-staking-test-use-simapp 2020-02-25 15:48:13 +01:00
Jonathan Gimeno a44bebc11c rename commont test 2020-02-25 15:31:22 +01:00
Jonathan Gimeno b931c491ae rename 2020-02-25 15:29:53 +01:00
Jonathan Gimeno 632e65f575 move methods 2020-02-25 15:27:51 +01:00
Jonathan Gimeno 8f779b12b8 clean code 2020-02-25 15:11:52 +01:00
Jonathan Gimeno 9ae53260bf end refactoring validator_test 2020-02-25 14:07:01 +01:00
Jonathan Gimeno b4ab8e5e07 refactor TestFullValidatorSetPowerChange test 2020-02-25 13:54:55 +01:00
Jonathan Gimeno 96216c3dac make test TestValidatorBondHeight pass 2020-02-25 13:51:48 +01:00
Jonathan Gimeno 99554926e8 refctor TestGetValidatorsEdgeCases to use simapp 2020-02-25 13:45:29 +01:00
Jonathan Gimeno c7d68c59a9 refactor TestGetValidatorSortingMixed test to simap 2020-02-25 13:38:27 +01:00
Jonathan Gimeno 460619fa29 refactro TestGetValidatorSortingUnmixed to simapp 2020-02-25 13:27:05 +01:00
Jonathan Gimeno 9fa658c3f9 TestValidatorBasics 2020-02-25 13:23:22 +01:00
Jonathan Gimeno ed401119e4 refactor TestSlashToZeroPowerRemoved 2020-02-25 13:18:49 +01:00
Jonathan Gimeno 385c5c556b refactor TestUpdateBondedValidatorsDecreaseCliff to simapp 2020-02-25 11:59:15 +01:00
Jonathan Gimeno 25681ad3ad refacor TestUpdateValidatorByPowerIndex to use simapp 2020-02-25 11:54:43 +01:00
Jonathan Gimeno 66abd1f19f refactor first test validation to simapp 2020-02-25 11:43:51 +01:00
Jonathan Gimeno 0cddd4fff6 end refactoring slash_test 2020-02-25 10:32:53 +01:00
Jonathan Gimeno 15eaa129ee refactor TestSlashWithRedelegation 2020-02-25 10:24:58 +01:00
Jonathan Gimeno a6767d31fe migrated two tests from slash_test to use simapp 2020-02-25 10:13:13 +01:00
Jonathan Gimeno b36cdac3e3 test TestSlashAtNegativeHeight migrated to simapp 2020-02-24 19:01:55 +01:00
Jonathan Gimeno 7ee50eacf2 refactor TestSlashAtFutureHeight test 2020-02-24 18:43:51 +01:00
Jonathan Gimeno 3ea53f5682 refactor TestSlashRedelegation to use simapp 2020-02-24 18:41:01 +01:00
Jonathan Gimeno a34575a8bb fix TestSlashUnbondingDelegation test to use simapp 2020-02-24 18:30:30 +01:00
Aaron Craelius df65016694
Merge PR #5659: Migrate upgrade module to protobuf 2020-02-24 18:14:19 +01:00
Jonathan Gimeno fe1012dc29 migrate revocation of old slash test 2020-02-24 17:34:22 +01:00
Marko f7486b9395
Merge PR #5634: Protobuf - Migrate x/evidence 2020-02-24 17:05:21 +01:00
Jonathan Gimeno 3910ec25f6 refactor and remove unused code 2020-02-24 16:14:16 +01:00
Jonathan Gimeno 17ee1f510a finish refactor delegation test 2020-02-24 15:37:03 +01:00
Jonathan Gimeno a1fcb07d0f refactor TestRedelegateFromUnbondingValidator to use simapp 2020-02-24 15:28:25 +01:00
Jonathan Gimeno 5bf1fa0048 refactor delegation test 2020-02-24 15:11:37 +01:00
Jonathan Gimeno ae44324d5a refacotr TestRedelegationMaxEntries to use simapp 2020-02-24 15:06:12 +01:00
Jonathan Gimeno 27e20236a3 refactor TestRedelegateToSameValidator to use simapp 2020-02-24 13:16:32 +01:00
Jonathan Gimeno e33844fa56 refactor TestRedelegation to use simapp 2020-02-24 13:11:18 +01:00
Jonathan Gimeno 9a5aae9f0e refactor TestGetRedelegationsFromSrcValidator to use simapp 2020-02-24 12:50:02 +01:00
Jonathan Gimeno 62dbd8bcee TestUnbondingAllDelegationFromValidator to use simapp 2020-02-24 12:46:14 +01:00
Jonathan Gimeno 6ce12184d4 refactor TestUndelegateFromUnbondedValidator to use simapp 2020-02-24 12:37:32 +01:00
Jonathan Gimeno bbc2b33f7d update TestUndelegate from unbonding validator and fix bug 2020-02-24 12:24:25 +01:00
Jonathan Gimeno 8378be277c refactor TestUndelegateSelfDelegationBelowMinSelfDelegation to use simapp 2020-02-21 21:18:24 +01:00
Jonathan Gimeno 8cf9219a53 refactor test unbondingdelegationsmax entries 2020-02-21 21:05:56 +01:00
Jonathan Gimeno e5b67801a3 refactor to use accounts 2020-02-21 20:51:11 +01:00
Jonathan Gimeno ee7ccc3704 make TestDelegation pass with generated accounts 2020-02-21 19:34:07 +01:00
Jonathan Gimeno 89785765e0 comment before creating new way to generate accounts 2020-02-21 19:19:57 +01:00
Jonathan Gimeno 01aaf8446d refactor creation of simapp 2020-02-21 18:54:10 +01:00
Jonathan Gimeno e155b1083d refactor creation of the simapp 2020-02-21 18:49:54 +01:00
Jonathan Gimeno 594e0a6bfa avoid usage of historicals 2020-02-21 18:38:28 +01:00
Jonathan Gimeno 27ff208fb8 make all test pass temporary 2020-02-21 18:34:03 +01:00
Jonathan Gimeno 9eaa5b0e1a refactor delegation test TestUnbondDelegation to use simapp 2020-02-21 12:24:41 +01:00
Alexander Bezobchuk 238928ed50
Merge PR #5688: Proto Option Updates 2020-02-21 11:31:16 +01:00
Jonathan Gimeno fdba5b5904 finish keeper refactor for querier in staking using simapp 2020-02-20 18:10:37 +01:00
Jonathan Gimeno 32a27afbd5 make TestQueryRedelegations pass with simapp 2020-02-20 17:58:17 +01:00
Jonathan Gimeno 06c144805d rename function 2020-02-20 17:30:45 +01:00
Jonathan Gimeno 29987a095b make TestQueryDelegations pass with simapp :D 2020-02-20 17:30:13 +01:00
Alexander Bezobchuk 9b47079171
Merge PR #5682: Change pubkey to bytes 2020-02-20 17:15:22 +01:00
Jonathan Gimeno 0d24d2b2cb fix test query validators 2020-02-20 16:09:25 +01:00
Marko ebbfaf2a47
Merge PR #5681: proto: migrate bank to hybridcodec 2020-02-20 15:24:26 +01:00
Anil Kumar Kammari 883c1a2bc1
Merge PR #5627: Regen Network/Slashing protobuf 2020-02-20 01:04:13 +01:00
Jonathan Gimeno 434f539bff
Merge PR #5649: Update x/params to follow module standards 2020-02-19 12:52:20 +01:00
Federico Kunze 4aa078b5f3
x/ibc ICS24 (#5588)
* x/ibc ICS24

* changelog

* move regex to /types

* address @alexanderbez comments

Co-authored-by: Jack Zampolin <jack.zampolin@gmail.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-02-19 10:56:22 +01:00
Jonathan Gimeno cdcbecb2f4 rename and temp commit 2020-02-19 10:53:43 +01:00
Xuefeng Zhu 69c5b46413
Get Uin64 directly instead of Int64 (#5672) 2020-02-19 10:05:27 +01:00
Jonathan Gimeno 7f8d0e6047 commit end of day refactoring 2020-02-18 19:10:53 +01:00
Alexander Bezobchuk 1736692f3b
Merge PR #5668: Fix GetAccountWithHeight 2020-02-18 16:53:11 +01:00
Jonathan Gimeno c84c5922e4 temporal commit on querier test, it passes 2020-02-18 16:44:23 +01:00
Alexander Bezobchuk a63de303b8
Merge PR #5665: Bump Module ABCI Error Codes 2020-02-18 14:43:00 +01:00
Jonathan Gimeno 6025132720 refactor historical info test 2020-02-18 14:03:06 +01:00
Jonathan Gimeno 918949cf23 refactor TestHistoricalInfo to use simapp 2020-02-18 14:00:59 +01:00
Alexander Bezobchuk 794a496892
Merge PR #5533: Protobuf: x/auth & x/supply 2020-02-18 13:50:13 +01:00
Jonathan Gimeno f912618b8a use simapp into keeper 2020-02-18 13:42:53 +01:00
Alessio Treglia c77bb7b038
Squash various linter warnings (#5652)
Closes: #5651
2020-02-16 20:06:45 +01:00
Alexander Bezobchuk 05c21a534a
Merge Pr #5642: Remove x/mock 2020-02-14 10:30:51 -05:00
Marko e44f914893
dep: bump tendermint version to 0.33.1 (#5645)
* dep: bump tendermint version to 0.33.1

Signed-off-by: Marko Baricevic <marbar3778@yahoo.com>

* minor touch up

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-02-14 09:04:05 -05:00
Marko 48d39e344e
Merge PR #5619: proto: migrate params to hybrid codec 2020-02-12 11:34:09 -05:00
Marko 56c5868975
Merge PR #5610: proto: migrate x/distr to use hybrid codec 2020-02-11 09:58:37 -05:00
Chad Barraford e2d4b9de44
Merge PR #5497: ensure non-nil gentxs 2020-02-10 15:32:16 -05:00
Alessio Treglia 6cbf634ad5
Merge PR #5620: Fix nil pointer deref in distribution tax/rewward validation helpers 2020-02-07 13:09:18 -05:00
Gavin dd2d1c2573
Merge PR #5626: Update README.md 2020-02-07 11:15:55 -05:00
Alexander Bezobchuk cd9b2d450b
Merge PR #5622: Track proposal handler events on success 2020-02-06 16:19:26 -05:00
Alexander Bezobchuk 53bf2271d5
Merge PR #5600: Migrate x/staking to Protobuf 2020-02-06 14:21:02 -05:00
Erik Grinaker a7f25ade03
Merge PR #5613: update to golangci-lint v1.23.3
Co-authored-by: Jack Zampolin <jack.zampolin@gmail.com>
2020-02-05 11:32:45 -08:00
Alexander Bezobchuk 30d5f7daf3
Merge PR #5615: Create Account on SendCoins 2020-02-04 21:33:02 -05:00
Marko e1517e7a1d
Merge PR #5604: docs: minor doc formatting & touchup of the scaffold section 2020-02-04 13:16:56 -05:00
Alexander Bezobchuk 22ba931ec6
Merge PR #5611: Add missing aliases 2020-02-04 10:07:39 -05:00
Alexander Bezobchuk ce16e0a99d
Merge PR #5597: Include Amount in Complete Unbonding/Redelegation Events 2020-01-31 11:12:04 -05:00
Alexander Bezobchuk 6890feb3d2
Merge PR #5572: ADR 004 Implementation 2020-01-30 16:31:16 -05:00
Federico Kunze ec35cf2d91
Merge PR #5584: Staking additions for IBC 2020-01-29 08:35:49 -05:00
Miguel Dingli d5d29ef67a Merge PR #5557: Added amount event to InputOutputCoins for MsgMultSend 2020-01-27 09:46:55 -05:00
Marko 1b6897ad1b Merge PR #5568: godoc: change nft to supply in godoc 2020-01-24 12:32:15 -05:00
Alessio Treglia b647824716
Refactor x/auth/client/utils/ (#5555)
Packages named utils, common, or misc provide clients with no
sense of what the package contains. This makes it harder for
clients to use the package and makes it harder for maintainers
to keep the package focused. Over time, they accumulate dependencies
that can make compilation significantly and unnecessarily slower,
especially in large programs. And since such package names are
generic, they are more likely to collide with other packages
imported by client code, forcing clients to invent names to
distinguish them.

 cit. https://blog.golang.org/package-names
2020-01-24 16:40:56 +00:00
Alexander Bezobchuk 26d6e49d6a
Merge PR #5491: Protobuf Introduction + Types 2020-01-24 10:32:00 -05:00
Alessio Treglia d0ff973386 Merge PR #5562: Remove KeyringServiceName from the sdk.Config struct 2020-01-23 13:47:11 -05:00
Alexander Bezobchuk a4b36b9dcd
Merge PR #5561: v0.38 Migration Fixes 2020-01-23 13:15:22 -05:00
Alessio Treglia 415eab7a56
Create new generic keyring constructor: NewKeyring (#5547)
Remove other convenience constructors:
 * Remove NewKeyBaseFromHomeFlag
 * Remove NewKeyringFromDir
 * Remove NewKeyringFromHomeFlag
2020-01-22 17:54:56 +00:00
Alexander Bezobchuk c1991e31bd Merge PR #5527: Bump Tendermint Version to v0.33.0
* Bump Tendermint version to v0.33.0

* Deprecate old cmn package with new packages

* Update update DB APIs

* More DB updates

* Bump IAVL to v0.13.0

* Handle error returned by iavl.NewMutableTree

* Fix some IAVL stuffs

* Update IAVL

* More updates

* Passing tests

* Fix unit tests

Co-authored-by: Jack Zampolin <jack.zampolin@gmail.com>
2020-01-16 13:46:51 -08:00
Sunny Aggarwal f367087731 Merge PR #5439: Keybase: Multiple Signature Algorithms 2020-01-14 10:40:10 -05:00
Alexander Bezobchuk 214024431f
Merge PR #5508: Fix and Return Height in x/distribution REST Handlers 2020-01-10 16:10:37 -05:00
Alexander Bezobchuk bf41deac62
Merge Pr #5506: Refactor use of parameters in x/distribution to match module spec 2020-01-10 15:08:14 -05:00
Xuefeng Zhu 6024115667 Merge PR #5503: use build-in iterator function 2020-01-10 09:33:43 -05:00
Alexander Bezobchuk 3df3887597
Merge PR #5499: Cleanup genesis state validation + Genutil 2020-01-09 15:14:23 -05:00
Alexander Bezobchuk 869531ca92
Merge PR #5495: Replace Redundant Bech32 PubKey Functions 2020-01-09 09:04:28 -05:00
Alexander Bezobchuk 25be589af6
Merge PR #5482: Update Query Txs by Events Command 2020-01-06 11:49:31 -05:00
Ferenc Fabian 066dd1114f Merge PR #5449: Add New constructor for the DecCoin 2020-01-03 15:44:53 -05:00
Anil Kumar Kammari a5fc7d6ba6 Merge PR #5367: Regen network/skip upgrade 2020-01-03 09:37:29 -05:00
Marko 43e25e283e Merge PR #5463: docs: add link to iavl documentation 2020-01-02 10:25:09 -05:00
Alexander Bezobchuk 9a183ffbcc
Merge PR #5421: Refactor Error Handling 2019-12-27 12:57:54 -05:00
Alessio Treglia 3c82b66347 Merge PR #5427: Remove code duplication in x/auth/client/cli 2019-12-27 10:23:18 -05:00
Dmitry Shulyak 5188c3565b Merge PR #5445: Mock rpcclient in tests for votes pagination 2019-12-24 12:04:36 -05:00
Ferenc Fabian 8353680115 Merge PR #5442: Remove of the client/alias.go 2019-12-23 11:05:47 -05:00
kaustubhkapatral d12919987a Modified examples in distribution module (#5441) 2019-12-21 15:40:03 -03:00
Dmitry Shulyak cf4645213d Merge PR #5405: Queries to /gov/proposals/{proposalID}/votes support pagination 2019-12-18 13:15:37 -05:00
Alessio Treglia eae10b0cff Merge PR #5419: Parametrise simulation gas value 2019-12-18 09:48:22 -05:00
Aditya fca4cbef88 Merge PR #5380: ADR 17 Implementation: Historical Module 2019-12-18 08:20:02 -05:00
Alexander Bezobchuk 908fd2ba78
Merge PR #5417: Update distribution module doc 2019-12-17 13:59:16 -05:00
Denis Fadeev 13378bd2cf Docs: hide frontmatter, bugfixes (#5413)
* encoding

* working on baseapp doc

* baseapp work

* reorg

* almost there

* finish first draft

* remove old files

* module doc start

* finish intro

* working

* workinnn

* add transactions into core

* hans comments

* add transactions into core

* working

* gautier comments

* clean

* working

* consolidate intro

* querier

* workiiiing

* refactor for new module interface

* karoly review

* working on baseapp doc

* baseapp work

* reorg

* almost there

* finish first draft

* remove old files

* finish intro

* workinnn

* initial commit after rebase

* query-lifecycle and started modules-interfaces

* query-lifecycle first draft done

* module interfaces first draft

* rest and intro skeletons

* rest and intro done

* small edits and links

* comments

* revisions

* cli.md comments

* comments

* minor edits

* better flow for query lifecycle

* add transactions into core

* hans comments

* add transactions into core

* checkout master-docs files

* deleted some

* remove modules readme

* cli.md comments

* comments

* module-interfaces comments

* Merge PR #4857: Add Context concept doc

* working

* working

* finish messages and queries

* handler

* querier

* last comments!

* punctuation

* querier2

* consolidate intro

* querier

* workiiiing

* refactor for new module interface

* karoly review

* working on baseapp doc

* baseapp work

* reorg

* almost there

* finish first draft

* remove old files

* finish intro

* workinnn

* initial commit after rebase

* query-lifecycle and started modules-interfaces

* query-lifecycle first draft done

* module interfaces first draft

* rest and intro skeletons

* rest and intro done

* small edits and links

* comments

* revisions

* cli.md comments

* comments

* minor edits

* better flow for query lifecycle

* checkout master-docs files

* deleted some

* remove modules readme

* cli.md comments

* comments

* module-interfaces comments

* keeper

* genesis

* finish

* Apply suggestions from code review

Co-Authored-By: Hans Schoenburg <hschoenburg@users.noreply.github.com>

* hans review

* Update docs/core/baseapp.md

Co-Authored-By: Hans Schoenburg <hschoenburg@users.noreply.github.com>

* working

* last comment

* workin

* Apply suggestions from code review

* encoding and node

* almost finish store

* finish docs

* fixes

* fede comments + permalinks

* hans review

* add more permalinks

* update docs theme version (#5239)

* R4R: Docs Cleanup (#5246)

* start

* work

* work

* work

* remove table of content

* links intro

* fix links

* remove junk

* cleanup

* cleanup

* work

* finish cleanup

* addback readmes

* remove nft

* fix links

* remove dup

* remove dup

* remove dup

* remove dup

* remove dup

* fix links

* add subscribe events

* refine rest

* index page

* sidebar

* theme version

* theme version

* testing netlify

* theme version

* tooltip example

* version

* testing code embedding

* reverting back

* theme version

* version

* version

* version

* readme and version

* cleanup

* redo app anatomy

* modules readme, theme version

* theme version

* fix modules list

* theme version

* new snippets

* modules readme

* update docs readme

* modify synopsis

* version

* fix yaml

* version

* version

* version

* version

* version

* version

* version

* version

* version

* version

* add hide banner

* version

* version

* version

* small fixes

* modules readme, version

* remove hotkeys dep, version

* version

* version

* version

* version

* version

* version

* version

* slight notice

* fix links and hide

* permalinks

* small clean

* version

* resolve conflicts, add google analytics

* fix merge remants

* version

* changelog 1/2

* Changelog: docs UI

* version

* remove merge conflicts

* Code: Update link for Contributing to the docs to docs_readme

* HTML/CSS: Update layout of homepage footer to match new layout in Figma

* version

* final modifs

* modules, version

* modules readme

* link to module list from homepage

* version

* building modules link

* version

* version

* fonts

* version

* version

* fix link

* fix package.json

* links in explore sdk section

* core concepts

* version

* change delimeters for frontmatter

* frontmatter in comments

* version

* temp add tiny-cookie

* fixed link issues

* fixed styling issues, copy

* hide frontmatter

* hide frontmatter

* layout fixes, padded ascii diagram

* fira sans font for code
2019-12-17 08:44:44 -03:00
Alessio Treglia 98acd941e7 Reduce password prompt duplication when using keyring's file backend (#5406)
Workaround for #5403, users are still prompted for password twice.
2019-12-16 23:48:52 -03:00
Alessio Treglia bc7c8c7c6b
Bump x/simulation coverage (#5407) 2019-12-13 17:46:27 +00:00
gamarin2 efcd5fd315 Fix module docs ordering (#5400)
* add dep and makefile

* Apply suggestions from code review

Co-Authored-By: Alessio Treglia <quadrispro@ubuntu.com>

* typo

* typo

* Apply suggestions from code review

Co-Authored-By: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-Authored-By: Alessio Treglia <quadrispro@ubuntu.com>
Co-Authored-By: frog power 4000 <rigel.rozanski@gmail.com>

* refactor for new module interface

* karoly review

* Apply suggestions from code review

Co-Authored-By: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* encoding

* working on baseapp doc

* baseapp work

* reorg

* almost there

* finish first draft

* remove old files

* module doc start

* finish intro

* working

* workinnn

* add transactions into core

* hans comments

* add transactions into core

* working

* gautier comments

* clean

* working

* consolidate intro

* querier

* workiiiing

* refactor for new module interface

* karoly review

* working on baseapp doc

* baseapp work

* reorg

* almost there

* finish first draft

* remove old files

* finish intro

* workinnn

* initial commit after rebase

* query-lifecycle and started modules-interfaces

* query-lifecycle first draft done

* module interfaces first draft

* rest and intro skeletons

* rest and intro done

* small edits and links

* comments

* revisions

* cli.md comments

* comments

* minor edits

* better flow for query lifecycle

* add transactions into core

* hans comments

* add transactions into core

* checkout master-docs files

* deleted some

* remove modules readme

* cli.md comments

* comments

* module-interfaces comments

* Merge PR #4857: Add Context concept doc

* working

* working

* finish messages and queries

* handler

* querier

* last comments!

* punctuation

* querier2

* consolidate intro

* querier

* workiiiing

* refactor for new module interface

* karoly review

* working on baseapp doc

* baseapp work

* reorg

* almost there

* finish first draft

* remove old files

* finish intro

* workinnn

* initial commit after rebase

* query-lifecycle and started modules-interfaces

* query-lifecycle first draft done

* module interfaces first draft

* rest and intro skeletons

* rest and intro done

* small edits and links

* comments

* revisions

* cli.md comments

* comments

* minor edits

* better flow for query lifecycle

* checkout master-docs files

* deleted some

* remove modules readme

* cli.md comments

* comments

* module-interfaces comments

* keeper

* genesis

* finish

* Apply suggestions from code review

Co-Authored-By: Hans Schoenburg <hschoenburg@users.noreply.github.com>

* hans review

* Update docs/core/baseapp.md

Co-Authored-By: Hans Schoenburg <hschoenburg@users.noreply.github.com>

* working

* last comment

* workin

* Apply suggestions from code review

* encoding and node

* almost finish store

* finish docs

* fixes

* fede comments + permalinks

* hans review

* add more permalinks

* update docs theme version (#5239)

* R4R: Docs Cleanup (#5246)

* start

* work

* work

* work

* remove table of content

* links intro

* fix links

* remove junk

* cleanup

* cleanup

* work

* finish cleanup

* addback readmes

* remove nft

* fix links

* remove dup

* remove dup

* remove dup

* remove dup

* remove dup

* fix links

* add subscribe events

* refine rest

* index page

* sidebar

* theme version

* theme version

* testing netlify

* theme version

* tooltip example

* version

* testing code embedding

* reverting back

* theme version

* version

* version

* version

* readme and version

* cleanup

* redo app anatomy

* modules readme, theme version

* theme version

* fix modules list

* theme version

* new snippets

* modules readme

* update docs readme

* modify synopsis

* version

* fix yaml

* version

* version

* version

* version

* version

* version

* version

* version

* version

* version

* add hide banner

* version

* version

* version

* small fixes

* modules readme, version

* remove hotkeys dep, version

* version

* version

* version

* version

* version

* version

* version

* slight notice

* fix links and hide

* permalinks

* small clean

* version

* resolve conflicts, add google analytics

* fix merge remants

* version

* changelog 1/2

* Changelog: docs UI

* version

* remove merge conflicts

* Code: Update link for Contributing to the docs to docs_readme

* HTML/CSS: Update layout of homepage footer to match new layout in Figma

* version

* final modifs

* modules, version

* modules readme

* link to module list from homepage

* version

* building modules link

* version

* version

* fonts

* version

* version

* fix link

* fix package.json

* links in explore sdk section

* core concepts

* version

* fix order

* fix
2019-12-12 16:36:37 -03:00
gamarin2 7c9164cdc8 Final updates for new docs website (#5388)
* consolidate intro

* start anatomy of sdk app

* wokring

* working

* querier

* working

* workiiiing

* finish

* add dep and makefile

* Apply suggestions from code review

Co-Authored-By: Alessio Treglia <quadrispro@ubuntu.com>

* typo

* typo

* Apply suggestions from code review

Co-Authored-By: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-Authored-By: Alessio Treglia <quadrispro@ubuntu.com>
Co-Authored-By: frog power 4000 <rigel.rozanski@gmail.com>

* refactor for new module interface

* karoly review

* Apply suggestions from code review

Co-Authored-By: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* encoding

* working on baseapp doc

* baseapp work

* reorg

* almost there

* finish first draft

* remove old files

* module doc start

* finish intro

* working

* workinnn

* add transactions into core

* hans comments

* add transactions into core

* working

* gautier comments

* clean

* working

* consolidate intro

* querier

* workiiiing

* refactor for new module interface

* karoly review

* working on baseapp doc

* baseapp work

* reorg

* almost there

* finish first draft

* remove old files

* finish intro

* workinnn

* initial commit after rebase

* query-lifecycle and started modules-interfaces

* query-lifecycle first draft done

* module interfaces first draft

* rest and intro skeletons

* rest and intro done

* small edits and links

* comments

* revisions

* cli.md comments

* comments

* minor edits

* better flow for query lifecycle

* add transactions into core

* hans comments

* add transactions into core

* checkout master-docs files

* deleted some

* remove modules readme

* cli.md comments

* comments

* module-interfaces comments

* Merge PR #4857: Add Context concept doc

* working

* working

* finish messages and queries

* handler

* querier

* last comments!

* punctuation

* querier2

* consolidate intro

* querier

* workiiiing

* refactor for new module interface

* karoly review

* working on baseapp doc

* baseapp work

* reorg

* almost there

* finish first draft

* remove old files

* finish intro

* workinnn

* initial commit after rebase

* query-lifecycle and started modules-interfaces

* query-lifecycle first draft done

* module interfaces first draft

* rest and intro skeletons

* rest and intro done

* small edits and links

* comments

* revisions

* cli.md comments

* comments

* minor edits

* better flow for query lifecycle

* checkout master-docs files

* deleted some

* remove modules readme

* cli.md comments

* comments

* module-interfaces comments

* keeper

* genesis

* finish

* Apply suggestions from code review

Co-Authored-By: Hans Schoenburg <hschoenburg@users.noreply.github.com>

* hans review

* Update docs/core/baseapp.md

Co-Authored-By: Hans Schoenburg <hschoenburg@users.noreply.github.com>

* working

* last comment

* workin

* Apply suggestions from code review

* encoding and node

* almost finish store

* finish docs

* fixes

* fede comments + permalinks

* hans review

* add more permalinks

* update docs theme version (#5239)

* R4R: Docs Cleanup (#5246)

* start

* work

* work

* work

* remove table of content

* links intro

* fix links

* remove junk

* cleanup

* cleanup

* work

* finish cleanup

* addback readmes

* remove nft

* fix links

* remove dup

* remove dup

* remove dup

* remove dup

* remove dup

* fix links

* add subscribe events

* refine rest

* index page

* sidebar

* theme version

* theme version

* testing netlify

* theme version

* tooltip example

* version

* testing code embedding

* reverting back

* theme version

* version

* version

* version

* readme and version

* cleanup

* redo app anatomy

* modules readme, theme version

* theme version

* fix modules list

* theme version

* new snippets

* modules readme

* update docs readme

* modify synopsis

* version

* fix yaml

* version

* version

* version

* version

* version

* version

* version

* version

* version

* version

* add hide banner

* version

* version

* version

* small fixes

* modules readme, version

* remove hotkeys dep, version

* version

* version

* version

* version

* version

* version

* version

* slight notice

* fix links and hide

* permalinks

* small clean

* version

* resolve conflicts, add google analytics

* fix merge remants

* version

* changelog 1/2

* Changelog: docs UI

* version

* remove merge conflicts

* Code: Update link for Contributing to the docs to docs_readme

* HTML/CSS: Update layout of homepage footer to match new layout in Figma

* version

* final modifs

* modules, version

* modules readme

* link to module list from homepage

* version

* building modules link

* version

* version

* fonts

* version

* Update post.sh
2019-12-11 18:35:27 +01:00
Alessio Treglia 394860068d
keyring's encrypted file backend integration (#5355)
Client commands accept a new `--keyring-backend` option through which users can specify which backend should be used by the new key store:
- os: use OS default credentials storage (default).
- file: use encrypted file-based store.
- test: use password-less key store (highly insecure).
2019-12-11 09:45:26 +00:00
Alexander Bezobchuk bcca045caf
Merge PR #5384: Fund Community Pool -- Part II 2019-12-10 23:02:15 -05:00
Riccardo Montagnin 09bd174a49 Merge PR #5249: Support for sending funds to the community pool - Part I 2019-12-10 14:09:22 -05:00
Alexander Bezobchuk 9f03b57fe3
Merge PR #5359: Params Validation 2019-12-10 11:48:57 -05:00
gamarin2 b18bd06a36 Merge PR #5379: New docs V1 (merge master-docs to master) 2019-12-10 09:29:46 -05:00
Federico Kunze e648f6c672 Merge PR #5356: isPositive and minor linter changes 2019-12-06 13:18:00 -05:00
Alessio Treglia 72ff13eb97
[x/simulation] RandSubsetCoins() should return sorted coinset (#5373)
Closes: #5372
2019-12-06 16:25:25 +01:00
Federico Kunze 722a633f54
Sim refactor 3: move weighted operations to modules (#4869)
* move GenesisState generators to modules

* minor change on slashing genState generator

* move simulation params back to modules (#4839)

move simulation params back to modules (#4839)

* cleanup params

* various fixes

* move store decoders to modules

* fix

* module pattern

* split generators for param change

* param changes

* revert util pkg

* banksim

* compile

* update Decoders params

* fix

* address @colin-axner comments

* move weighted operations to modules

* cleanup

* cleanup

* Update cmd_test.go

* simulation manager

* mino fixes

* cleanup

* add GenerateGenesisState to simulation manager

* Apply suggestions from code review

Co-Authored-By: frog power 4000 <rigel.rozanski@gmail.com>

* address @rigelrozanski comments

* changelog

* Apply suggestions from code review

Co-Authored-By: colin axner <colinaxner@berkeley.edu>

* restructure modules simulation pkgs

* remove cycle deps

* rename funcs and add missing params

* modularize simulator param changes

* build

* fix params keys

* make format

* various fixes

* fix tests

* minor updates to sim_test

* cleanup

* more cleanup

* modularize genesis generators

* minor cleanup

* remove cdc from generators

* remove cdc

* add get or generate

* fix non-determinism in simulation

* changelog and x/simulation godoc

* cleanup operations

* update operations to use baseapp

* updates and cleanup operations

* update operations

* restructure sim ops params

* rename sim /operations/msg.go to /operations.go

* move GenTx to a helper pkg to avoid circle deps

* rm msg.ValidateBasic

* changelog

* random fees; delete auth's DeductFees sim operation

* add chain-id for sig verification

* Update x/simulation/account.go

Co-Authored-By: colin axner <colinaxner@berkeley.edu>

* fix bank, gov and distr errors

* fix staking and slashing errors; increase prob for send enabled

* increase gas x10

* make format

* fix some distr and staking edge cases

* fix all edge cases

* golang ci

* rename acc vars; default no fees to 0stake

* cleanup; check for exchange rate and skip invalid ops

* fixes

* check for max entries

* add pubkey to genaccounts

* fix gov bug

* update staking sim ops

* fix small redelegation error

* fix small self delegation on unjail

* rm inf loop on random val/accs

* copy array

* add ok boolean to RandomValidator return values

* format

* build

* add WeightedOperations to AppModuleSimulation

* define each module proposals content as part of the module pattern

* Update x/bank/simulation/operations.go

Co-Authored-By: colin axner <colinaxner@berkeley.edu>

* Update simapp/helpers/test_helpers.go

Co-Authored-By: colin axner <colinaxner@berkeley.edu>

* address @colin-axner comments

* add genaccount pubkey validation

* fix test

* update operations and move RandomFees to x/simulation

* update gov ops

* address @alexanderbez comments

* avoid modifications to config

* reorder params

* modularized sim operations working

* changelog

* Update types/module/simulation.go

Co-Authored-By: frog power 4000 <rigel.rozanski@gmail.com>

* Update x/simulation/params.go

Co-Authored-By: frog power 4000 <rigel.rozanski@gmail.com>

* Update x/simulation/params.go

Co-Authored-By: frog power 4000 <rigel.rozanski@gmail.com>

* update /types/module

* Update x/distribution/simulation/genesis.go

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

* remove named return values

* ensure all operations are simulated

* golangci

* add nolint

* disable whitespace and funlen linter

* disable godox

* add TODO on unjail

* update ops weights

* remove dup

* update godoc

* remove unused func

* build fixes

* move weights to the same file

* scopelint

* changelog

* address @AdityaSripal comments

* address @alexanderbez comments
2019-12-05 10:29:54 +01:00
Federico Kunze b9c40ea2b6
fix MsgEditValidator JSON tag (#5342)
* add json tag to MsgEditValidator; closes #5336

* changelog

* Apply suggestions from code review

Co-Authored-By: Alessio Treglia <alessio@tendermint.com>

* format

* changelog minor fix
2019-12-03 12:14:18 +01:00
Alexander Bezobchuk 7953b525d8
Merge PR #5299: Migrate Equivocation Handling to x/evidence 2019-12-02 20:58:14 -05:00
Alexander Bezobchuk 82a5238a46
Merge PR #5348: Fix Ignored Error During Tx Generate Only Mode 2019-12-01 10:06:34 -05:00
Alexander Bezobchuk 3196b7c4ca
Merge PR #5294: Upgrade Module Spec 2019-11-29 15:17:13 -05:00
Federico Kunze 43f011865d
Add upgrade module to simapp (#5328)
* upgrade: add x/upgrade to simapp

* upgrade: clean up tests
2019-11-19 21:54:31 +01:00
Alessio Treglia d4c831e63a Drop on-disk keybase in favor of keyring (#5180)
* Switch keys commands to keyring

* Replace NewKeybase with NewKeyring

* Fix delete test

* Purge dead code

* Override COSMOS_SDK_TEST_KEYRING envvar to switch to a test keyring

* s/unningOnServer/unningUnattended/

C'ing @tnachen

* Add deprecated warning, output looks like the following:

```
$ gaiacli keys update --help
Command "update" is deprecated, it takes no effect with the new keyring
based backend and is provided only for backward compatibility with the
legacy LevelDB based backend.
Refer to your operating system's manual to learn how to change your
keyring's password.

Change the password used to protect private key

Usage:
  gaiacli keys update <name> [flags]

Flags:
  -h, --help   help for update

Global Flags:
      --chain-id string   Chain ID of tendermint node
  -e, --encoding string   Binary encoding (hex|b64|btc) (default "hex")
      --home string       directory for config and data (default "/home/alessio/.gaiacli")
  -o, --output string     Output format (text|json) (default "text")
      --trace             print out full stack trace on errors
```

* Update multisign command

* Modify server.GenerateSaveCoinKey()

* GenerateSaveCoinKey more modifications

* Update docs

* Update upgrade module
2019-11-14 15:17:21 +01:00
Santatic 0425f97f24 Fix typo on commission flag (#5307) 2019-11-13 10:20:13 +01:00