colin axner
43b4f2f120
remove alias.go from 02-client ( #6542 )
2020-06-30 10:37:05 +00:00
Aaron Craelius
c0e48e1c43
Update ante handlers to use SignatureV2 ( #6428 )
...
* Update ante handlers to use SignatureV2
* WIP on test fixes
* WIP on test fixes
* Debugging CLI Tests
* CHANGELOG.md
* CHANGELOG
* Add missing tests for ante
* Add tests for verify signatures
* Update verify tests
* Fix register codec issue
* debug
* Cleanup
* Fix verify signature tests
* Remove viper
* remove keyring usage
* Fix review changes
* Fix simapp
* Fix ante tests
* Add reference issue
* Add test for multisignature
* Wrap sign error with sig
* Fix verify sign test
* Fix CHANGELOG.md
Co-authored-by: sahith-narahari <sahithnarahari@gmail.com>
Co-authored-by: anilCSE <anil@vitwit.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-06-29 20:48:41 +00:00
Michael FIG
6251d28389
Merge PR #6529 : Export validator addresses
2020-06-29 14:56:08 -04:00
Anil Kumar Kammari
74eb56dd2a
Add test suite for client TxBuilder ( #6460 )
...
* Add tests
* Fix gofmt
* typecast tests
* Fix review comments
* typecast SigVerificableTx
* cleanup
* Refactor
* Linting and move encode/decode tests to suite
* Fix lint
* Move test suite
* godoc
* Refactor
* Refactor
Co-authored-by: Aaron Craelius <aaronc@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
2020-06-29 14:05:30 +00:00
colin axner
1c575c95b2
Remove CleanupPacket from 04-channel ( #6533 )
...
* remove cleanup func
* remove unused func
2020-06-29 08:54:45 +00:00
colin axner
43837b16e7
Refactor 04-channel/keeper tests to ibc testing pkg ( #6400 )
...
* update testing pkg and first keeper test
* fix version bug
* add more helper testing funcs
* move create header to testing pkg
* fix connection state bug
* add staking genesis state
* update simapp with setting validator helper func
* update simapp with valset helper
* fix app hash issue
* update to query from correct iavl proof height
* first keeper test passing
* second test passing 🎉
* fix build
* update tests in all keeper_test
* fix lint
* begin refactoring querier test
* update first querier test and update testing helpers
* finish updating rest of querier tests
* rename ChannelID in TestChannel to ID
* remove usage of chain id for calling helper funcs
* update openinit and opentry tests
* finish opening channel handshake tests
* finish handshake tests
* general testing pkg cleanup
* finish packetsend refactor
* update recvpacket
* packet executed refactored
* finish packet test 🎉
* all tests passing
* cleanup and increase code cov
* remove todos in favor of opened issue #6509
* bump invalid id to meet validation requirements
* bubble up proof height + 1
* Apply suggestions from code review
Co-authored-by: Aditya <adityasripal@gmail.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* fix uninit conn test
* fix compile and address various pr review issues
* Update x/ibc/04-channel/keeper/handshake_test.go
Co-authored-by: Aditya <adityasripal@gmail.com>
* Update x/ibc/04-channel/keeper/handshake_test.go
Co-authored-by: Aditya <adityasripal@gmail.com>
* address @AdityaSripal comments and increase cov
Co-authored-by: Aditya <adityasripal@gmail.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-26 16:36:04 +00:00
Alexander Bezobchuk
9bf3ff75f5
Merge PR #6489 : Test Network Testing Framework
2020-06-26 12:30:49 -04:00
Aditya
dcd578183d
Allow JSON input for proof specs in tendermint client ( #6506 )
...
* Allow JSON input for proof specs in tendermint client
* fix build
2020-06-25 03:30:13 -04: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
Aditya
231ae6eaff
docs: IBC Application guide ( #6464 )
...
* start app guide
* finish guide
* add link to cap module
* move guide to docs/
* fix broken links
* vuedocs warning format
* Update docs/core/ibc.md
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
2020-06-19 08:23:45 -04:00
Aaron Craelius
712d23740f
Migrate x/auth cmd's to TxGenerator marshaling ( #6391 )
...
* Migrate encode, decode, and broadcast cmd's to use TxGenerator marshal methods
* Fix tests, add EncodingConfig
* Add simapp/encoding.go and wire up with simcli
* add godocs
* fix tests
* Debugging CLI Tests
* Fix integration test
* 6391 - lint issues and code coverage (#6414 )
* fixed lint issue of "txEncodeRespStr"
* added tests for encode.go
* WIP: added tests for decode.go
* added txEncoder at bytes
* updated decode test
* updated txBytes to use TxEncoder in decoder test
* added a require after TxEncoder
* removed file save
* debug decode command
* fixed decode tests
* added decode cli
* updated encode and decode in a single file
* separated decode test from encode test
* review changes
* removed register interface
* review change
* Fix tests
* WIP add test for tx sign
* removed commented code
* Fix flags
* WIP add test for sign
* Address review suggestions
* fixed command issue
* Add tests for TxEncoder
* Revert sign changes
* Fix TxEncoder tests
* Fix GetSign Cmd
* Add tx test
* Remove duplicate validation
* Add tests for TxDecoder
* Fix tests
* Fix tests
* Output to clientCtx.Output
* Fix cli_tests
Co-authored-by: atheeshp <59333759+atheeshp@users.noreply.github.com>
Co-authored-by: atheesh <atheesh@vitwit.com>
Co-authored-by: anilCSE <anil@vitwit.com>
Co-authored-by: sahith-narahari <sahithnarahari@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-06-18 20:29:41 +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
Federico Kunze
fe9356ddb8
07-tendermint: ignore misbehaviour if age is greater than consensus params ( #6422 )
...
* 07-tendermint: ignore misbehaviour if age is greater than consensus params
* update tests and errors
* add comment on consensus params
* Update x/ibc/02-client/handler.go
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
* update evidence GetTime to use Max
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
2020-06-18 12:52:34 -04:00
Aaron Craelius
257354dbff
x/bank: convert query CLI commands to use gRPC query client ( #6367 )
...
* Convert x/bank query cli methods to use gRPC query client
* WIP on x/bank cli query migration
* lint
* Fix integration tests
* Remove Println in favor of updated PrintOutput
* Add PrintOutput tests
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-18 03:36:25 -04:00
Federico Kunze
1c8249e26d
x/ibc: tx client protobuf migration ( #6461 )
...
* ibc/03-connection: tx client migration
* update commands
* update ibc-transfer
* remove unused queryRoute
* initialize clientCtx
2020-06-17 21:56:48 +02: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
Federico Kunze
d82114df2b
ibc/04-channel: move UNORDERED channel ack to RecvPacket ( #6457 )
2020-06-17 05:36:09 -04:00
Aaron Craelius
c13809062a
Update TxBuilder to use SignatureV2 ( #6443 )
...
* Update TxBuilder to use SignatureV2
* Fix unit tests
* Lint
* lint
* Cleanup
* Address review feedback
* Add Sign tests
* Add more cases for sign tests
* Fix lint
* Fix gofmt
* Deprecate StdTx
* Undeprecate StdTx, but leave a comment to use the protobuf Tx
* Address review comment
Co-authored-by: anilCSE <anil@vitwit.com>
2020-06-16 19:57:37 +00:00
Jonathan Gimeno
c134e8974e
Move some Param types from Keeper to Types in staking ( #6451 )
2020-06-16 19:59:36 +02:00
YOSHIDA Masanori
e2f336345d
x/ibc: add the missing path parameter "height" to "/ibc/clients/{client-id}/consensus-state/{height}" ( #6448 )
...
* x/ibc: fix "height" query parameter handling in queryConsensusStateHandlerFn
* x/ibc: add the missing path parameter "{height}" to "/ibc/clients/{client-id}/consensus-state/{height}"
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-06-16 09:19:20 -04: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
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
8cf8098861
x/capability: remove alias.go usage ( #6438 )
2020-06-14 19:05:45 +02:00
dauTT
6e9ffc1a0e
x/crisis: remove alias.go usage ( #6437 )
2020-06-14 13:59:25 +00:00
dauTT
190bee27cb
x/distribution: remove alias.go usage ( #6436 )
2020-06-14 11:01:47 +00:00
dauTT
cc42a82c86
x/evidence: remove alias.go usage ( #6435 )
2020-06-14 11:58:48 +02:00
dauTT
0286a4a5dc
x/ibc-transfer: remove alias.go usage ( #6427 )
...
* x/ibc-transfer: remove alias.go usage
* Fix formatting
Co-authored-by: colin axner <25233464+colin-axner@users.noreply.github.com>
2020-06-13 16:20:38 -04:00
atheeshp
6a0ac5b67d
Missing cli tests for staking module ( #6347 )
...
* edit validator flags issue fixed
* added remaining tests
* fixed example command
* fixed redelegation query in tests
* changed all "require" conditions to relevant type
* added err condition at query execution
* Added consoles for err msgs
* added comments
* fixed bug in query.go
* updated helpers, cli_test
* updated docs
* Update x/staking/client/cli/cli_test.go
* fixed type errors
* removed TODO comment
* updated docs
Co-authored-by: Anil Kumar Kammari <anil@vitwit.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-06-13 18:50:04 +00:00
dauTT
560398cfdc
x:ibc: remove alias.go usage ( #6429 )
...
* x:ibc: remove alias.go usage
* Replace ibc24host with ibchost
2020-06-13 14:29:00 +00:00
dauTT
1783f5ef1e
x/gov: remove alias.go usage ( #6432 )
2020-06-13 11:07:51 +02:00
dauTT
c3ff8c0c06
x/genutil: remove alias.go usage ( #6433 )
2020-06-13 07:41:45 +00:00
Aditya
e07c1e20bc
address review from pr #6374 ( #6430 )
...
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-06-13 00:33:25 +00:00
dauTT
73bdb7d190
Merge PR #6424 : x/mint - remove alias.go usage
2020-06-12 20:26:19 -04:00
Aaron Craelius
60f7edfe3d
Add SignatureV2 infrastructure ( #6373 )
...
* Updte tx generator
* Add sigv2, PublicKeyCodec
* revert changes
* revert changes
* updates
* Updates
* Integrate multisig support
* Undo move
* remove func
* undo
* godocs
* godocs, cleanup
* Cleanup
* godocs, tests
* lint
* Re-enable VerifyBytes
* Address comments
* Fix imports
* Update crypto/types/multisig/multisignature.go
* Add test for MultiSignatureData
* Add nested multisig case
* Add test for AddSignatureV2
* Add changelog
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: sahith-narahari <sahithnarahari@gmail.com>
2020-06-12 18:13:20 +00:00
Alexander Bezobchuk
7871910359
Simapp Localnet ( #6421 )
...
* Setup localnet
* Fix compose
* Fix file perms
* Fix build
* Codec + lint updates
* lint++
2020-06-12 16:23:08 +00: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
dauTT
df68b1512c
x/slashing: remove alias.go usage ( #6417 )
...
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-12 14:25:12 +00:00
Jonathan Gimeno
ddbb9a2321
run make format ( #6416 )
2020-06-12 10:17:36 -04:00
dauTT
3228c3b12a
x/params: remove alias.go usage ( #6415 )
2020-06-12 09:52:04 -04:00
Federico Kunze
55a7226535
x/ibc: channel from client state query ( #6401 )
...
* x/ibc: channel from client state query
* 04-channel/client: add CLI and REST queries
* querier test
2020-06-12 08:06:24 -04:00
Aditya
d82c2e6a94
Enforce ProofSpecs in 23-Commitment ( #6374 )
...
* enforce spec ordering
* modify clients to pass in specs to verify functions
* start fixing tests
* Apply suggestions from code review
* enforce spec length and proof length match
* fix all tests
* add argument to constructor:
* fixed msg client and tests
* appease linter
* Apply suggestions from code review
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* finish fixes from review
* add back proof-specific checks
* Apply suggestions from code review
* more robust proof spec checks
* add CHANGELOG entries
* do not hardcode proofspecs in 23-commitment
* fix client modules
* fix tests
* appease linter
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-12 10:45:40 +00:00
colin axner
9048ffa8d3
Update ibc proof to be bytes ( #6393 )
...
* update interfaces to use []byte instead of commitment proof
* update 03/04 msgs with bytes
* fix compile errors
* fix channel tests
* fix connection tests
* fix testing, tm, and localhost tests
* fix ante tests
* update 03-connection spec
* update channel msgs spec
* small fixes after self review
* rm unused import
* Update x/ibc/03-connection/client/utils/utils.go
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
* add empty proof test and rm ics 20 from ibc spec
* fix merge issues
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-06-12 00:19:25 +02: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
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
colin axner
affe7265cb
Update connection and channel to use types_test package name ( #6395 )
...
* convert connection types test pacakge name
* convert channel types test package name
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-06-11 00:31:54 +00:00
dauTT
82afd52981
x/upgrade: remove alias.go usage ( #6382 )
...
* x/upgrade: remove alias.go usage
* Simplify code
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-06-10 18:54:15 +00:00