SaReN
919e906866
Minor Code Cleanup - gRPC queries ( #6862 )
...
* add missing RegisterQueryService
* Update generated proto files
* Update grpc tests for auth,bank
* Make format
* fix godoc
* Address suggestions
* Update godoc
2020-07-28 12:53:35 +00:00
atheeshp
b33b1e9052
x/{distribution, staking, bank, mint, crisis} genesis protobuf migration ( #6835 )
...
* distribution genesis types migrated to proto
* removed types from types/genesis.go
* fix lint
* added new line proto
* staking genesis migrated to proto
* fix lint
* x/bank: genesis types migrated to proto
* fix lint
* x/mint: genesis types changed to proto
* x/crisis: genesis types changed to proto
* Migrate genesis state of x/crisis
* add new lines
* whitespace
* Fix bad merge
* added missing field
* fixed error
Co-authored-by: sahith-narahari <sahithnarahari@gmail.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: Aaron Craelius <aaronc@users.noreply.github.com>
2020-07-28 09:20:17 +00:00
Marie
f59df68a97
Migrate x/genutil to use TxConfig ( #6734 )
...
* Update genutil collect and gentx to use TxGenerator
* Remove print statement
* Use Tx in genutil DeliverGenTxs
* Use Tx in genutil genesis_state
* Use Tx in ValidateGenesis
* Use amino txJSONDecoder and txBinaryEncoder in genutil InitGenesis
* Use TxConfig in place of TxGenerator
* Add gentx tests
* Remove commented line
* Test fixes
* Apply suggestions from code review
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
* Fixes
* Fixes
* Fixes
* Fixes
* Remove unneeded test case (doesn't apply to proto marshaling)
* linting
* Refactor to use new TxEncodingConfig interface in genutil module
* Replace golang/protobuf with gogo/protobuf package
* Use TxEncodingConfig in InitTestnet
* Remove old amino.go file
* Use TxJSONDecoder in genutil ValidateGenesis
* Add parameter to ValidateGenesis to resolve the tx JSON decoder issue
* Address review feedback
Co-authored-by: Jack Zampolin <jack.zampolin@gmail.com>
Co-authored-by: Aaron Craelius <aaronc@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-25 08:10:04 +00:00
Anil Kumar Kammari
3bafd8255a
Remove hybrid codec usage ( #6843 )
...
* remove hybrid codec for slashing, staking and upgrade
* Remove hybridcodec from params and mint
* revert staking
* Fix gov
* Fix ibc and evidence
* Fix ibc-transfer
* Fix staking
* remove evidence json marshaling
* Fix tests
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: Aaron Craelius <aaronc@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-25 08:03:58 +00:00
Aaron Craelius
80f7ff62f7
Start removing HybridCodec (init + auth, bank, distribution) ( #6838 )
...
* Start to remove HybridCodec
* Rename
* Fixes
* Test fixes
* Cleanup
2020-07-24 19:04:29 +00:00
Anil Kumar Kammari
e906c012a0
add page flag for CLI queries ( #6824 )
...
* add page flag for CLI queries
* fix review suggestions
* Fix `page` flag default value
* fix offset calc
* Apply suggestions from code review
Co-authored-by: Aaron Craelius <aaron@regen.network>
* fix review suggestions
* refactor
* fix returning error
Co-authored-by: SaReN <sahithnarahari@gmail.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-24 08:17:11 +00:00
Aaron Craelius
1538e65478
Fix module interface registration ( #6834 )
2020-07-23 22:45:34 -04:00
Marko
e6a56226a8
context: remove verifier & trust node ( #6805 )
...
* remove verifier
* more removal of trustnode flag
* add todo
* fix lint
* remove file
* remove viper and add link to issue
* remve mention of trustnode
2020-07-23 06:44:18 +00:00
Alexander Bezobchuk
61d69a978f
Merge PR #6806 : Docs & Cleanup
2020-07-21 11:28:43 -04:00
Alexander Bezobchuk
0ccc48d2a3
CLI/Tests: Remove Fixtures ( #6799 )
...
* remove fixtures
* setup tests
* update x/mint
* cli: update x/staking commands
* tests: convert x/staking CLI tests
* tests: fix x/auth CLI tests
* cli updates
* fix buiild
* fix build
* Update x/gov/client/cli/cli_test.go
Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
* remove GenerateOrBroadcastTx
* move TestCLIQueryConn
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
2020-07-21 13:54:07 +00:00
Amaury Martiny
69bbb8b327
Rename proto Req/Res to Pagination ( #6796 )
...
* Rename proto Req to Pagination
* Change Res to Pagination
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-20 16:51:16 +00:00
billy rennekamp
cde3f46d52
Add validation to prevent empty store keys ( #6754 )
...
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-20 18:05:01 +02:00
dauTT
2247465fa3
x/distribution/simulation/operations.go: add unit tests ( #6764 )
...
* x/distribution/simulation/operations.go: add unit tests
* Use NewDecCoins constructor instead of the DecCoins struct
* Refactor code to use a testing suite
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-07-20 15:05:41 +00:00
Amaury Martiny
8e61ef86c3
x/{gov,params,upgrade,distribution} CLI: In-Process test & use grpc query service ( #6664 )
...
* refactor CLI to use grpc query service
* In process CLI for gov
* ReadQueryCommandFlags
* gov tx
* Fix compiler errors
* Formatting
* x/distribution: use gRPC query
* Consistent
* Fix x/distrib test
* Update x/gov
* Add ReadQueryCommandFlags
* Fix lint
* Revert x/params
* x/params use grpc query
* Fix tests
* Use page request
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-20 13:09:57 +00:00
Amaury Martiny
5c0e3b4de5
x/auth/ante: Migrate tests to use the new client.TxConfig ( #6661 )
...
* WIP: using encoding config
* Make it compile, test fails
* test should be okay
* Make tests pass
* Add comments
* Convert more tests
* Make TestAnteHandlerSigErrors work
* Make first 2 tests pass
* TestAnteHandlerAccountNumbers
* Use table tests
* Remove print
* Use test table
* TestAnteHandlerSigErrors
* TestAnteHandlerAccountNumbers
* TestAnteHandlerAccountNumbers
* Refactor TestAccount
* Refactor getSignBytes
* TestAnteHandlerAccountNumbersAtBlockHeightZero
* TestAnteHandlerSequences
* TestAnteHandlerFees
* TestAnteHandlerMultiSigner
* TestAnteHandlerBadSignBytes
* TestAnteHandlerSetPubKey
* TestAnteHandlerSigLimitExceeded
* TestCustomSignatureVerificationGasConsumer
* TestAnteHandlerReCheck
* Make all tests pass
* Refactor a little bit more
* Fee test
* SetupTest
* All tests pass
* Refactor to RunTestCase
* Don't use StdFee
* Revert some little stuff
* Finish up last couple of test cases
* Less verbose
* s/TxGenerator/TxConfig
* Add comments
* Indent
* Move KeyTestPubAddr to testdata
* Move testdata to /testutil
* Revert to use signature: nil step in signing
* Add comments
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-07-20 08:30:12 -04:00
Alexander Bezobchuk
b9f533d51f
Merge PR #6778 : fix TestGetCmdQueryCommunityPool
2020-07-18 19:12:51 -04:00
dauTT
4b07cb6cc4
Merge PR #6768 : x/distribution/simulation/params.go: add unit tests
2020-07-18 12:47:22 -04:00
dauTT
07a6bd4321
Merge PR #6769 : x/distribution/simulation/genesis.go: add unit tests
2020-07-18 12:34:15 -04:00
dauTT
6b5733918b
Merge PR #6767 : x/distribution/simulation/proposals.go: add unit tests
2020-07-18 12:19:00 -04:00
Adam Bozanich
f33749263f
Merge PR #6761 : telemetry: use UTC() in wrappers
2020-07-17 15:33:50 -04:00
Alexander Bezobchuk
5c86ecd1f8
Fix measure since ( #6759 )
...
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-07-17 15:34:37 +00:00
SaReN
b9f86dd7fe
Update simapp helpers to use Tx generator ( #6655 )
...
* update helpers to use tx generator
* update modules to use tx generator
* add todo
* update ibc to use txG
* fix lint
* Eliminate panics from Gentx
* update module ops
* fix lgtm alert
* update ibc with txG
* Remove todo
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* move simapp/helpers to test_helpers
* revert simapp/helpers to test_helpers
* revert renaming
* address suggestion
Co-authored-by: Aaron Craelius <aaron@regen.network>
* fix tests
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-14 17:33:31 +00:00
Alexander Bezobchuk
6bd36c8719
Merge PR #6702 : x/slashing: In-Process CLI Integration Tests
2020-07-14 11:55:19 -04:00
atheeshp
be111ef036
x/distribution: gRPC query service ( #6600 )
...
* WIP: adding grpc
* added grpc for query withdraw address
* Fix outstanding rewards query
* added inteerface registry
* added gRPC for delegation rewards
* added remaining commands
* lint issue
* added tests
* added test for community pool
* fixed error
* added test for delegator validators
* updated to use test suite
* updated tests
* more test checks added
* updated tests
* Add sdk wrap
* removed pagination for outstanding rewards
* fixed distr tests issue
* fixed slashes issue
* migrated tests to table driven tests
* docs updated
* review changes
* review changes
* review changes
* Update x/distribution/keeper/grpc_query.go
Co-authored-by: sahith-narahari <sahithnarahari@gmail.com>
Co-authored-by: anilCSE <anil@vitwit.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-13 20:01:16 +00:00
Alexander Bezobchuk
e1476c1f9d
x/distribution: CLI & Module Tweaks ( #6684 )
...
* init commit
* cleanup methods
* fix
2020-07-10 19:59:26 +00:00
Alexander Bezobchuk
400c3cb08e
Merge PR #6652 : x/distribution: In-Process Testing & CLI Refactor
2020-07-10 10:45:46 -04:00
Alessio Treglia
a940214a49
testutil cleanup and reorg ( #6658 )
...
Prepare migrating testing auxiliary functions from tests
to testutil.
Remove local duplicates on testutil.WriteToNewTempFile().
Always favor testutil.NewTestCaseDir() over ioutil.TempDir().
Add test cases for the testing auxiliary functions.
2020-07-09 14:21:20 +02:00
Alexander Bezobchuk
8670a10564
Merge PR #6595 : Single Binary & Command Refactor
2020-07-07 11:40:46 -04:00
Jonathan Gimeno
3c76084bf5
Merge PR #6596 : Genutil remove global viper
2020-07-06 17:48:54 -04:00
Aaron Craelius
2f44fbf2ab
Add support for protobuf TxGenerator and SIGN_MODE_DIRECT ( #6385 )
...
* Add TxWrapper, encoder, decoder and DirectModeHandler
* fix pkg name
* Update API and leave test TODO's
* Update TxWrapper API
* tests for tx wrapper (#6410 )
* WIP: added test for direct mode handler
* updated code
* Add msg
* Update TxWrapper API
* Fix pubkey declaration
* Add pubkey for tests
* Fix SetFee
* Remove logs
* Avoid global var declaration for tests
* Add test for GetPubKeys
* Fix direct signing tests
* Add more test cases for GetSignBytes
* Revert SetFee API
* Remove logs
* Refactor tests
Co-authored-by: anilCSE <anil@vitwit.com>
Co-authored-by: sahith-narahari <sahithnarahari@gmail.com>
* Refactoring
* Refactoring
* Integrate SignatureV2 API
* Fix wrapper tests
* Fix tests
* Linting and API tweaks
* Update API
* WIP on updating API
* Fix tests
* Update to new SigVerifiableTx
* Rename
* Update docs to reflect ADR 020
* proto-gen
* proto docs
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* Add tests
* Refactor and improving test coverage
* WIP on test coverage
* WIP on test coverage
* proto-gen
* Fix CompactBitArray.Size() bug
* Rename
* Remove Builder interface
* Address review comments
* Update x/auth/tx/sigs.go
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Update x/auth/tx/encoder.go
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Update x/auth/tx/encoder.go
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Address review feedback
* Fix build issues
* Resolve conflicts
* Fix ValidateBasic test coverage
* Add test for malicious multisig
Co-authored-by: atheeshp <59333759+atheeshp@users.noreply.github.com>
Co-authored-by: anilCSE <anil@vitwit.com>
Co-authored-by: sahith-narahari <sahithnarahari@gmail.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-06 17:03:45 +00:00
Alexander Bezobchuk
51df2f2033
Module Viper Removal ( #6604 )
...
* Remove viper
* Remove viper
* Remove viper
* Skip TestCLIValidateGenesis
* remove cruft leftover
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-07-06 10:12:00 +00:00
Alexander Bezobchuk
37cc04081e
Fix Current Integration Tests ( #6570 )
...
* fix attempt
* fix test
2020-07-01 18:37:59 +00:00
Jonathan Gimeno
6a52c5a569
Remove DefaultParamspace and simplify simapp creation. ( #6564 )
...
* Remove DefaultParamspace and simplify simapp creation.
* Update changelog.
* Create function that inits ParamsKeeper.
* 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-07-01 13:57:29 +00:00
SaReN
4b0c66982a
Add pagination ( #6452 )
...
* Add pagination types and helper func
* Update API
* Add pagination to queryBalance
* Add QueryBalance to use Paginate
* Update GetAllBalances usage
* Add tests for QueryAllBalances
* Fix bank get balance querier tests
* Add pagination test setup
* revert simapp changes
* Fix pagenation tests
* Add more tests for pagination
* Add offset nullable
* Add more tests
* Fix paginate for offset
* Add grpc queryconn for query
* Fix paginate
* Fix maxlimit
* Fix queryClient
* Fix pagination tests
* refacor
* Fix grpc tests
* Revert
* review changes
* Fix lint
* Update types/query/pagination.go
* Fix review suggestions
* Remove maxLimit and use defaultLimit
* change example paginate as a testable fun
* Fix review comments
* Merge master
* Add bank query.pb.go
* Add missing import
* Add pageReq to queryBalance
* Add example for pagenate
* Fix cli tests
* Remove example for pagination
* Update paginate example
Co-authored-by: Aaron Craelius <aaronc@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: anilCSE <anil@vitwit.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-20 23:44:04 +00:00
Alexander Bezobchuk
5040ff87c4
Merge PR #6449 : Initial Metrics
2020-06-18 14:12:44 -04:00
Cory
4e73e0f817
Update proto files & definitions in accordance with ADR023 ( #6413 )
...
* consolidate proto files into single directory, turn on PACKAGE_DIRECTORY_MATCH linting
* add third_party root for third party proto files
* move ibc proto files to top level folder, rename .proto files to types.proto as before
* update protocgen script, and run code generation
* move vesting proto definition to cosmos namespace, rename from types.proto in alignment with buf.build naming conventions
* update Makefile so proto dependencies are set with new structure when updated
* add comment for sed usage in makefile
* remove unused aliases of proto generated types
* add settings.json instructions to contributing.md for including protobuf paths
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
2020-06-18 10:04:26 -07:00
dauTT
32278d9a2b
x/auth: remove alias.go usage ( #6440 )
...
* x/auth: remove alias.go usage
* Fix simd_test.go and formatting
* Fix app.go formatting
* Fix cli_test.go
* Fix lint warnings
* Undo accidental deletion during merge
Co-authored-by: colin axner <25233464+colin-axner@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-17 14:42:27 -04:00
colin axner
eb3f7e6473
rename blacklist to blocked ( #6455 )
...
* rename blacklisted to cannotSendTo
* add changelog
* rename to blockedAddrs
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-17 13:32:49 +00:00
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
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
190bee27cb
x/distribution: remove alias.go usage ( #6436 )
2020-06-14 11:01:47 +00:00
dauTT
1783f5ef1e
x/gov: remove alias.go usage ( #6432 )
2020-06-13 11:07:51 +02:00
dauTT
73bdb7d190
Merge PR #6424 : x/mint - remove alias.go usage
2020-06-12 20:26:19 -04: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
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
atheeshp
4ecbd00436
missing cli tests for distr and mint ( #6349 )
...
Add cli tests for distribution and mint modules.
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-06-11 13:03:43 +02: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
SaReN
0786e68296
Add proto compatible community spend cli tx ( #6215 )
...
* Add NewSubmitProposal for x/distribution
* Addressed comments
* Fix description for fund tx
* Remove old splitAndApply
* Update utils
* Add missing flag
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-09 10:18:44 +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