Alexander Bezobchuk
35312d098e
JSON Codec Updates ( #6444 )
...
* Initial commit
* More updates
* Fix tests
* CLI test updates
* Updates
* Updates
2020-06-16 00:20:50 +00:00
Akhil Kumar P
6336f95802
x/gov: fix rest single vote and inactive proposal votes list queries ( #6388 )
...
* Fix single vote and votes list issues
* Add unmarshal json test
2020-06-15 08:56:03 -04:00
dauTT
24b9be0ef8
x/bank: remove alias.go usage ( #6439 )
...
* x/bank: remove alias.go usage
* Fix simd_test.go
2020-06-14 23:06:16 +00:00
dauTT
1783f5ef1e
x/gov: remove alias.go usage ( #6432 )
2020-06-13 11:07:51 +02:00
dauTT
14e3aa1265
x/staking: remove alias.go usage ( #6397 )
...
* x/staking: remove alias.go usage
* Fix formatting and Add entry in CHANGELOG.md
* Add missing end curly parenthesis
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-06-12 14:54:37 +00:00
Jonathan Gimeno
b09d6728ec
Rename all methods IsEmpty to Empty to be consistent with all codebase ( #6409 )
...
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-06-11 23:32:24 +02:00
Jonathan Gimeno
49597b19ec
module: pass route by value ( #6404 )
...
* use instance
* add some comments
* Update types/router.go
* rename Nil to Empty
* run make mocks
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-06-11 15:37:23 +00:00
Jonathan Gimeno
79c308ae4a
Concept PR simplify Module ( #6231 )
...
* add test of alternative impl
* simplify query route too
* change name querier
* simplify register routes
* revert change
* add route
* add router
* first step refactor
* refactor
* update documentation
* update
* add format
* simplify appmodule
* update changelog
* rename vars
* remove interface
* Update CHANGELOG.md
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-10 18:48:16 +00:00
Aaron Craelius
43947ca2ef
Add RegisterQueryService to AppModule ( #6336 )
...
* Add RegisterQueryService to AppModule
* Update CHANGELOG.md
* Update CHANGELOG.md
* Wire up BaseApp, fix tests
* Add mock test
* add missing file
* Update types/module/module.go
* Update CHANGELOG.md
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-06-06 07:59:57 +00:00
Aaron Craelius
81d647e505
Move codec.RegisterCrypto and codec.Cdc to new packages ( #6330 )
...
* Move codec.Cdc to legacy_global.Cdc
* Update CHANGELOG.md
* Updates
* nit
* Fix imports
* Updates
* Use cosmos multisig instead of tendermint multisig everywhere
* Fix tests
* Rename legacy_global -> legacy
* Add doc.go
* Linting, move all RegisterCrypto calls to crypto/codec
* Update crypto/codec/amino.go
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-04 10:38:24 +00:00
Aaron Craelius
fed0c2317d
Change GetQueryCmd to take client.Context ( #6326 )
...
* Change GetQueryCmd to take a client.Context
* Update CHANGELOG
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-06-03 20:15:11 +00:00
Aaron Craelius
2e11c81668
Make sdk.Msg implement proto.Message ( #6327 )
...
* Make sdk.Msg implement proto.Message
* Cleaning up
* Cleaning up
* Update CHANGELOG.md
* Lint fixes
* Lint fixes
* fix tests
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-06-03 19:52:05 +00:00
SaReN
39f53ac22f
client: rename CliContext to Context ( #6290 )
...
* Refactor CliContext as Context
* Fix lint issues
* Fix goimports
* Fix gov tests
* Resolved ci-lint issues
* Add changelog
* Rename cliCtx to clientCtx
* Fix mocks and routes
* Add changelog
* Update changelog
* Apply suggestions from code review
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
* merge client/rpc/ro{ot,utes}.go
* Update docs
* client/rpc: remove redundant client/rpc.RegisterRPCRoutes
* regenerate mocks
* Update ADRs
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-06-01 12:46:03 +00:00
vincent
74329c619f
Fix typo ( #6295 )
...
* fix typo
* add changelog
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-05-29 13:58:44 +00:00
dauTT
7cd0caba7a
Merge PR #6278 : Add msg type sim operations
2020-05-26 12:52:23 -04:00
Aaron Craelius
850419fffd
Tx CLI proto module interface ( #5989 )
...
* WIP
* WIP
* WIP on removing x/auth dependency from client/tx
* Revert unneeded changes
* Simplify cli tx UX
* Wire up bank tx REST routes
* Fix assignment issue
* Wire up bank NewSendTxCmd
* fix lint
* revert file
* revert file
* fix simcli
* Refactor AccountRetriever
* Fix build
* Fix build
* Fix build
* Fix integration tests
* Fix tests
* Docs, linting
* Linting
* WIP on all modules
* Implement other module new tx cmd's
* Fix cmd's
* Refactor existing GetTxCmd
* Fix cmd
* Removing deprecated code
* Update ADR 020 & CHANGELOG
* Lint
* Lint
* Lint
* Lint
* Lint
* Lint
* Lint
* Fix client/tx tests
* Fix mocks
* Fix tests
* Lint fixes
* REST tx migration
* Wire up REST
* Linting
* Update CHANGELOG, docs
* Fix tests
* lint
* Address review feedback
* Update CHANGELOG.md
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
* group vars
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-05-21 21:29:34 +00:00
SaReN
bf8809ef98
Update x/auth to use Any ( #6165 )
...
* Migrate keeper codec to use marshaler
* Migrate AccountI to types
* Did go imports
* Fix tests for x/auth
* Cleanup std/codec
* Sort imports
* Fix legacy codec
* Add godoc for RegisterInterfaces
* Add RegisterInterfaces to std
* Fix typo
* Fixed merge changes
* Eliminate vesting import in auth
* Fix lint issues
* Fix tests
* Addressed comments
* Rename interfaces in RegisterInterfaces
* Removed codec.proto from std
* Minor code cleanup
Co-authored-by: Aaron Craelius <aaron@regen.network>
2020-05-20 19:21:00 +00:00
Aaron Craelius
70767c87c4
Update x/gov to use Any ( #6147 )
...
* Update x/gov to use Any
* Fixes
* Remove MsgSubmitProposalLegacy
* Update CHANGELOG.md
* Add RegisterInterfaces for x/distribution, x/params, & x/upgrade
* Fix query JSON issue
* Fix gov tests
* Revert custom Any Equals
* Re-remove types
* Rename receivers
* Fix imports in gov
* Sort imports
* Make amino JSON signing work with Any
* Run proto-gen
* Create full amino wrapper
* Fix errors
* Fixes
* Fix tests
* Test fixes
* Fix tests
* Linting
* Update ADR 019 and CHANGELOG
* Updated ADR 019
* Extract Marshal/UnmarshalProposal
* fix error
* lint
* linting
* linting
* Update client/keys/parse.go
Co-authored-by: Marko <marbar3778@yahoo.com>
* linting
* Update docs/architecture/adr-019-protobuf-state-encoding.md
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
* Update docs/architecture/adr-019-protobuf-state-encoding.md
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
* Address review feedback
* Add godocs
* Fix errors
* fix errors
* revert file
* Address review feedback
* Address review feedback
* Stacktrace debug flag
* Fix tests
* Address review feedback
Co-authored-by: sahith-narahari <sahithnarahari@gmail.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-05-19 20:17:29 +00:00
dependabot-preview[bot]
f37308778a
build(deps): bump github.com/spf13/viper from 1.6.3 to 1.7.0 ( #6183 )
...
* build(deps): bump github.com/spf13/viper from 1.6.3 to 1.7.0
Bumps [github.com/spf13/viper](https://github.com/spf13/viper ) from 1.6.3 to 1.7.0.
- [Release notes](https://github.com/spf13/viper/releases )
- [Commits](https://github.com/spf13/viper/compare/v1.6.3...v1.7.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* refresh go.sum
* run make format
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-05-11 10:22:36 +02:00
atheeshp
dd148fcd7a
gov: port integration tests ( #6120 )
2020-05-10 16:25:27 +02:00
Marko
bef3689245
linter: enable nolintlint ( #6162 )
...
* nolintlint enable
* remove space
* fix tests
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-05-08 08:46:12 +00:00
Aaron Craelius
386217209d
Merge PR #6076 : Proto Any init + evidence
2020-05-05 10:28:20 -04:00
Marko
218ec99508
various linter fixes ( #6106 )
...
x/staking: Fix all linter warnings.
Fixed warnings across base packages.
New linters:
- unparam
- nolintlint
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-05-02 21:26:59 +02:00
Alessio Treglia
2879c0702c
x/ibc: fix missing return statement ( #6099 )
...
* enable the wsl linter
Fix various wsl-related warnings.
x/ibc/04-channel/keeper/handshake.go: fix missing return statement in ChanOpenTry().
* goimports -w files
* remove unknown linter references
* run make format
* Revert "run make format"
This reverts commit f810b62b9e4993f08506663d4e5f2ec2228a9863.
* run make format
2020-04-29 22:36:34 -04:00
Aaron Craelius
cc90f2e002
Merge pull request #6085 : Move codec/std to std
2020-04-27 15:40:50 -04:00
Federico Kunze
3ee975c57b
Merge PR #6037 : refactor simulation decoder
2020-04-21 17:33:56 -04:00
Jack Zampolin
71c62a432f
Merge PR #6043 : Fix some lcd test failures in gaia
2020-04-21 14:13:03 -04:00
Alexander Bezobchuk
fea231556a
Move ModuleAccount to x/auth ( #6029 )
...
* Move ModuleAccount to x/auth
* Update x/auth module
* Update x/staking
* Update x/mint
* Update x/gov
* Update x/distribution
* Update simapp
* Update x/bank
* Update std codec
* Add changelog entries
* Update CHANGELOG.md
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-04-20 19:32:10 +00:00
Alexander Bezobchuk
1083fa948e
Merge PR #6010 : Merge x/supply into x/bank
2020-04-20 11:22:12 -04:00
Aaron Craelius
06b85f9ba7
Merge PR #5993 : Tx Client Migration: x/upgrade
2020-04-16 15:33:57 -04:00
Alexander Bezobchuk
09a55f68b5
Merge PR #5952 : Refactor Evidence Age Util + Governable Consensus Params
2020-04-16 11:10:39 -04:00
Aaron Craelius
58a6c4c007
Merge PR #5942 : Tx Client Migration: x/gov
2020-04-14 15:05:14 -04:00
Alessio Treglia
ca19fbc5f8
types/rest: add convenience functions for error checking ( #5900 )
2020-04-01 09:50:22 +02:00
Aleksandr Bezobchuk
6135912e53
JSON Proto changes
2020-03-26 12:46:10 -04: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
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
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
Aleksandr Bezobchuk
4dac1abebf
Update imports
2020-03-05 09:40:43 -05:00
Aleksandr Bezobchuk
430739c2b8
Remove named return
2020-03-03 20:29:34 -05: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
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
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
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
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
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
Anil Kumar Kammari
0b7449129a
Merge PR #5500 : Regen network/multistore upgrades
2020-02-27 22:26:04 -08:00
Aaron Craelius
81735debe5
Fix proposal marshaling, make Proposal extend ProposalBase
2020-02-26 20:47:45 -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
Marko
ebbfaf2a47
Merge PR #5681 : proto: migrate bank to hybridcodec
2020-02-20 15:24:26 +01:00
Jonathan Gimeno
434f539bff
Merge PR #5649 : Update x/params to follow module standards
2020-02-19 12:52:20 +01:00
Alexander Bezobchuk
a63de303b8
Merge PR #5665 : Bump Module ABCI Error Codes
2020-02-18 14:43:00 +01:00
Alexander Bezobchuk
794a496892
Merge PR #5533 : Protobuf: x/auth & x/supply
2020-02-18 13:50:13 +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
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
Marko
e1517e7a1d
Merge PR #5604 : docs: minor doc formatting & touchup of the scaffold section
2020-02-04 13:16:56 -05:00