colin axner
f163ec6765
refactor ibc ante_test ( #6610 )
...
* remove old code from ante test
* add recv packet test
* add acknowledge test
* add timeout tests
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-07 08:30:23 +00:00
Aditya
6fa295c857
fix NextSeqAck increment logic ( #6619 )
...
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-07-07 08:03:43 +00:00
Federico Kunze
f35e3b2c02
x/ibc: gRPC query service ( #6466 )
...
* x/ibc: gRPC query service
* fixes
* connection updates
* register channel query service
* update clients
* change proofs to bytes
* implement additional channel grpc queries
* unrelayed packets query
* query.proto files
* move next sequence recv query to channel client
* update REST
* wip test
* add missing cli queries
* install the right tools
* fixes
* build
* lint
* use gRPC when query proof is not requested
* connection gRPC tests
* IBC query server interface
* more gRPC channel tests
* pagination tests
* connection use query server
* connection pagination tests
* channel pagination tests
* typo
* remove buf
* Update x/ibc/03-connection/keeper/grpc_query_test.go
Co-authored-by: colin axner <25233464+colin-axner@users.noreply.github.com>
* address comments from review
* fix tests
* unrelayed packet sequences flag
* remove ClientsConnections query
* fix
Co-authored-by: colin axner <25233464+colin-axner@users.noreply.github.com>
2020-07-06 15:35:35 -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
colin axner
bbe245ac1d
refactor connection verify_test ( #6588 )
...
* refactor verify consensus state
* refactor connection verification
* simplify code, channel + packet commitment tests
* refactor verify ack
* refactor verify ack absence
* refactor next seq recv test
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
2020-07-06 13:37:12 +00:00
Alexander Bezobchuk
fd9cdb8ba7
Merge PR #6608 : ibc: remove viper from CLI
2020-07-06 09:25:47 -04:00
dauTT
4f3efaded4
Add same attributes for all connection/ channel/ packet IBC events ( #6482 )
...
* Emmit events with same attributes in connection handlers
* Emmit events with same attributes in channel handlers
* Add paket_data attribute to EventTypeAcknowledgePacket
* Revert proto changes
* Query channel and connection to emit events with same attributes
* Simplify code
* Update x/ibc/04-channel/keeper/packet.go
* Update x/ibc/04-channel/handler.go
* Apply suggestions from code review
Co-authored-by: Aditya <adityasripal@gmail.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-07-03 15:48:48 +00:00
colin axner
73757243c2
Update connection handshake version negotiation ( #6534 )
...
* update version negotiation and add basic testing
* add integration tests
* update spec
* apply @fedekunze suggestions
* update to enforce connection validation checks
* add test
* update godoc and spec
* small doc fix
* update versioning to feature set
* update version code and tests to specified version tuple
* update docs/spec
* merge and fix bug
* Update x/ibc/03-connection/types/version.go
Co-authored-by: Aditya <adityasripal@gmail.com>
* Apply suggestions from code review
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* add verify proposed feature set test
* fix formatting bug
* add safety check
* merge tests into existing handshake tests
Co-authored-by: Aditya <adityasripal@gmail.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-03 09:28:02 +00:00
colin axner
db60e658f8
refactor connection handshake_test ( #6576 )
...
* refactor connopeninit test
* updated opentry
* refactor openack
* update openconfirm
* fix typo and test issue
* fix missing code cov hits
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-02 20:08:29 +00:00
colin axner
5a22342a24
check ordered channel ordering in RecvPacket ( #6574 )
...
* move nextrecvseq check to recvpacket
* add test for next recv seq not found
* fix test bug, increase cov
* remove dup check and test
* Update x/ibc/04-channel/keeper/packet_test.go
Co-authored-by: Aditya <adityasripal@gmail.com>
Co-authored-by: Aditya <adityasripal@gmail.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-02 20:03:45 +00:00
Alexander Bezobchuk
cbb3dca78b
deps: bump TM v0.33.6 ( #6580 )
...
Co-authored-by: Marko Baricevic <marbar3778@yahoo.com>
2020-07-02 16:37:09 +02:00
colin axner
8ed09e5098
remove alias.go from 05-port ( #6575 )
2020-07-02 12:44:08 +00:00
colin axner
2658175b01
remove alias.go from channel ( #6569 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-01 18:25:23 +00:00
colin axner
497b27305d
x/ibc: remove returning packet from channel keeper funcs ( #6544 )
...
* remove unnecessary return var
* fix changes lost in merge
2020-06-30 11:04:18 -04:00
colin axner
e8fb76ae44
x/ibc: remove alias.go from 03-connection ( #6543 )
2020-06-30 09:10:53 -04:00
colin axner
43b4f2f120
remove alias.go from 02-client ( #6542 )
2020-06-30 10:37:05 +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
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
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
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
Federico Kunze
d82114df2b
ibc/04-channel: move UNORDERED channel ack to RecvPacket ( #6457 )
2020-06-17 05:36:09 -04: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
dauTT
8cf8098861
x/capability: remove alias.go usage ( #6438 )
2020-06-14 19:05:45 +02:00
dauTT
cc42a82c86
x/evidence: remove alias.go usage ( #6435 )
2020-06-14 11:58:48 +02: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
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
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
ddbb9a2321
run make format ( #6416 )
2020-06-12 10:17:36 -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
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
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
Federico Kunze
0d9faec1f3
07-tendermint: cherry-picks from #6272 ( #6387 )
2020-06-10 08:36:18 -04:00
Federico Kunze
55796fb3e7
x/ibc: client consensus_height event ( #6381 )
2020-06-10 05:34:18 -04:00
colin axner
6851c844b3
x/ibc: testing pkg ( #6356 )
...
* add ibc testing pkg with testchain
* add ibctestsuite
* add create connection and channel support
* lint fixes
* lint
* revert
* simplify code via lint
* change suite to coordinator
* Update x/ibc/testing/chain.go
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* make trust level var and remove get from channel test struct
* apply most suggestions from pr review
* split conn handshake into single step funcs
* split channel handshake into separate funcs
* apply @fedekunze suggestions
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 09:00:13 +00:00
colin axner
a8298976ac
update 07-tm err msg to utc time ( #6383 )
...
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-10 08:54:23 +00:00
Federico Kunze
744c1ce250
x/ibc: simulation store decoders ( #6247 )
...
* x/ibc: simulation store decoders
* x/ibc: missing decoders
* fixes
* 02-client: decoder test
* 03-connection: decoder test
* x/ibc: decoder test
* address comments from review
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-06-10 08:09:51 +00:00
Federico Kunze
c44813bcdf
x/ibc: commit timeout timestamp ( #6363 )
...
Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
2020-06-08 08:03:18 -04:00
Segue
52d11acb45
R4R: Fix bug of unordered channel ( #6337 )
...
* fix unordered
* resolve conflicts
2020-06-08 06:19:59 +00:00
colin axner
b9b578d6de
x/ibc: querying support for unordered channels ( #6294 )
...
* pause
* add querying for packet commitments and unrelayed acks
* add get all packet commitments test
* add query channels test
* add query connection channels test
* add test for query packet commitments
* fix key path and add unrelayed acks test
* fix part of lint
* add unrelayed packetsends func
* fix godoc
* add nolint directive
* fix lint
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-06 19:25:45 -04: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
Federico Kunze
1a5f2b7859
x/ibc-transfer: custom absolute packet timeout ( #6248 )
...
* x/ibc-transfer: custom timeout
* remove destHeight field
* cleanup
* fix test
* replace CLI arg for flag
* update CLI
* viper get flag
* address comments from review
* update cmd example:
* update spec
* address comments from review
2020-06-04 19:30:56 +00:00
colin axner
b1f483fe24
move packet executed call to ibc handler ( #6312 )
...
* move packet executed to within ibc handler
* add spec updates
* godoc and nil check to lenght
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-04 11:24:21 +00:00
colin axner
50d748bffb
remove duplicate event emission ( #6328 )
...
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-04 10:59:13 +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
Federico Kunze
1f5626b800
baseapp: fix sender events accumulation ( #6307 )
...
* add default case on ibc AnteHandler
* reset ante handler EventManager
* use event manager from runTx instead the one set by the ante handler
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-06-02 04:26:13 +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
colin axner
654b2fdd10
x/ibc: packet commitment deletion after ack verification ( #6292 )
...
* add deletion of packet commitments to AcknowledgePacket and remove CleanupPacket
* update tests
* add replay test for unordered channels
* add cleanup back, update tests
* remove nolint
* add timeoutonclose handling and fix
* add check for deleted packets
* Update x/ibc/04-channel/keeper/keeper.go
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* add ackexecuted and update tests
* add timeoutexecuted back and update test
* move events to executed funcs
* update handler
* update godoc
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-05-30 21:18:43 -04:00
colin axner
6973c56457
x/ibc: fix internal errors messages ( #6268 )
...
* update errors in ibc client and localhost
* update code 1 errors
* fix misisng import
* add import
* fix compile and lint issues
* fix lint
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-05-22 17:17:52 -04:00
Federico Kunze
bf3fa30671
ibc/07-tendermint: fix CLI ( #6271 )
2020-05-22 14:48:44 -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
Federico Kunze
ca20a39962
x/ibc: constrain acks processing order ( #6244 )
...
* x/ibc: constrain acks processing order
* test
* address @AdityaSripal comments
* address @colin-axner comments
* address @alexanderbez comments
2020-05-18 16:50:07 +00:00
Federico Kunze
3dcdc582af
x/ibc-transfer: move ICS20 out from x/ibc ( #6222 )
...
* x/transfer: move ICS20 out from x/ibc
* rename to ibc-transfer
2020-05-15 20:36:47 +00:00
colin axner
86a9750508
x/ibc: update path validator to enforce no beginning or ending of the separator ( #6233 )
...
* update path validator to enforce no beginning or ending of the separator
* modify test slightly
2020-05-15 14:58:43 -04:00
Federico Kunze
b2ad4d2a23
x/ibc: alter id requirements ( #6227 )
...
* x/ibc: alter id requirements
* add regex to validations
* comment
* update error
* test all validators:
* fix tests
* check for only separators
2020-05-15 17:24:31 +00:00
Federico Kunze
c9ec0ff087
x/ibc: default genesis state for sims ( #6158 )
...
* x/ibc: default genesis state for sims
* add ibc and transfer module to simulations
* minor update
* remove TODO
* add validation to transfer genesis
* fix transfer init genesis
* address @alexanderbez comments
2020-05-14 22:47:11 +00:00
Federico Kunze
48aebed2ea
x/ibc: /types cleanup ( #6169 )
...
* x/ibc: move /types to /common
* x/ibc/types: remove errors
* remove mocked proofs
* remove invalidProof{}
* create new ibc/types dir
* format
* move keys to host
* move order to channel
* move channel state
* move connection state
* lint
2020-05-13 19:23:33 -04:00
Christopher Goes
513c5f30c2
Alter connection handshake ( #6209 )
...
* Alter connection handshake
* Add test-case
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-05-13 13:26:19 -04:00
Federico Kunze
a08aa41213
ibc/07-tendermint: variable trust-level ( #6206 )
...
* ibc/07-tendermint: variable trust-level
* update client state and tests
* fix tests
* address comments from review
* cli: define trust-level as flag
2020-05-13 01:10:25 +00:00
Federico Kunze
b93300288e
x/ibc: stateful clients ( #6202 )
...
Closes : #6198
2020-05-12 21:13:41 +02:00
Federico Kunze
138e0b074f
x/ibc: log fixes ( #6184 )
...
* x/ibc: log fixes
* fix test
2020-05-11 17:17:05 +00:00
Federico Kunze
f88d9ab586
x/ibc: create localhost client on InitGenesis ( #6170 )
...
closes : #6159
2020-05-11 17:46:00 +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
Alessio Treglia
c8c47786da
x/ibc: fix int overflow ( #6171 )
...
x/ibc/07-tendermint/types/test_utils.go: Calculate and use
machine-dependent maxInt instead of causing int overflow by
passing math.MaxInt64.
Closes : #6130
2020-05-07 22:11:29 -04:00
Aditya
b3cada1001
x/ibc: fix event emission on msgs ( #6161 )
...
* add sender events into signer, and update events into keeper
* move all handler functionality to keeper for update
Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
2020-05-07 09:55:26 -04:00
Federico Kunze
f3e3a30e5e
x/ibc: add missing query height ( #6157 )
2020-05-06 13:06:35 -04:00
Federico Kunze
ff24a24ae6
x/ibc: query all client connection paths ( #6155 )
...
* x/ibc: query all client connections
* add queries to CLI and REST
* add missing height
* update swagger
2020-05-06 15:56:49 +00:00
Federico Kunze
d7ebee74e7
x/ibc: proto migration pt 1 ( #6097 )
...
* x/ibc: proto migration pt 1
* fix tests
* fixes and godoc
* yaml tags
* rm changelog
* address comments from review
* fix some tests
* fix tests
* add _UNSPECIFIED suffix for default enums
* Update app
* protobuf Any fixes
* use gogoproto
* fix tests
* wrap all messages
* address @alexanderbez comments
* update proto files
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Aleksandr Bezobchuk <aleks.bezobchuk@gmail.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
2020-05-06 11:17:50 -04:00
Alessio Treglia
b09eef7298
run make format ( #6153 )
2020-05-06 13:47:53 +02:00
Aditya
f2a331fddb
Fix Timeout Handling ( #6118 )
...
* fix timeout
* remove print statement
* fix tests
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-05-05 14:46:13 +00:00
Pavel
4a28dd1645
Args: cobra.ExactArgs(1) required but never used ( #6140 )
2020-05-05 08:43:20 +00:00
Federico Kunze
106bcd5e13
default gen state ( #6139 )
2020-05-04 18:00:17 -04:00
Pavel
110942add6
add anotation for json/yaml marshal ibc/tendermint/header type ( #6138 )
2020-05-04 20:34:08 +00:00
colin axner
54ecf7d629
bump ibc sub module error codes ( #6117 )
...
* bump ibc sub module error codes
* add godoc
* update error numbers
2020-05-04 09:02:23 -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
Alexander Bezobchuk
843e3f163c
Merge PR #6112 : Fix error code registration
2020-05-01 10:56:08 -04:00
Federico Kunze
930802e7a1
x/capability: simulations ( #6062 )
...
* x/capability: simulations
* update logs
* validate genesis state
* InitGenesis and ExportGenesis functions
* update validation func
* fix import-export sim
* remove nondeterminism from capability genesis
* Update x/capability/types/genesis.go
* Update x/capability/types/genesis.go
* fix tests
* fix merge
* consistency updates
* try fix nondeterminism
* fix conditional
* Fix random index logic
* lint
* lint
Co-authored-by: Aditya Sripal <adityasripal@gmail.com>
Co-authored-by: Aleksandr Bezobchuk <aleks.bezobchuk@gmail.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-04-30 15:07:43 +00:00
Federico Kunze
7143d092c4
x/ibc: add logs ( #6104 )
2020-04-30 08:37:02 -04: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
SaReN
3b71198b25
Merge PR #6033 : Add setup for cli_test
2020-04-29 11:52:30 -04:00
Federico Kunze
2d3a8525b9
ibc/04-channel: import export GenesisState ( #6087 )
...
* ibc/04-channel: import export GenesisState
* update tests
* add missing genesis fields
* genesis tests
* keeper tests
* update genesis test
* typo
* rename types
* address comments from review
* minor updates
* typo
2020-04-29 09:17:20 -04:00
Aaron Craelius
cc90f2e002
Merge pull request #6085 : Move codec/std to std
2020-04-27 15:40:50 -04:00
Federico Kunze
9b51908597
ibc/02-client: import export GenesisState ( #6073 )
...
* ibc/02-client: import export GenesisState
* client validation
* genesis validation
* ibc genesis tests
* GetAllConsensusStates test
* fix non-determinism
* lint
* fix test
2020-04-27 14:04:26 -04:00
Federico Kunze
e9b5fc9716
ibc/03-connection: import export GenesisState ( #6067 )
...
* ibc/03-connection: import export GenesisState
* add connection paths
* add genesis to ibc module root package
* genesis tests
* iterator and fixes
* changelog
* lint fixes
* godoc
* revert validation
2020-04-24 15:52:07 +00:00
colin axner
f6e9ee7623
x/ibc: Implement Timeout Timestamp ( #6022 )
...
* add timeout timestamp to packet and timestamp to consensus state
* add timeout timestamp event attribute
* update various issues with adding timestamp
* fix tests, add default timeout timestamp
* add unit test and minor fixes
* remove unnecessary code
* code review fix
* Update x/ibc/03-connection/keeper/keeper.go
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Update x/ibc/02-client/exported/exported.go
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Update x/ibc/04-channel/types/packet.go
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Update x/ibc/07-tendermint/types/consensus_state.go
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* return time.Time in error message
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-04-22 22:23:42 +00:00
Alexander Bezobchuk
72a2dae3db
Bump Tendermint v0.33.4 ( #6055 )
...
* Bump go.{mod,sum}
* Update APIs from Tendermint
* Add max clock drift to client state
* Test updates
* Update APIs from Tendermint
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-04-22 19:21:48 +00:00
Jonathan Gimeno
550c3e9ef0
Jonathan/5988 sim params consensus 2 ( #6051 )
...
* temporal commit
* add random consensus params
* make format
* make random pass
* remove comment
* revert change
* update ub key types
* extract Evidence params from state
* extract the random parameters from state
* clean the code
* update imports!
* mispelled back
* mispelled back
* add misspelled command
* update changelog
* remove useless linter to avoid misspell
* remove function
* use tendermint constants
* update import test
* remove debug comment
* Update baseapp/baseapp.go
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-04-22 18:24:13 +00:00
Alexander Bezobchuk
37c92c5f39
Revert "Add consensus params into Simulation ( #6002 )" ( #6046 )
...
This reverts commit 65048683b5
.
2020-04-21 21:46:34 +00:00
Jonathan Gimeno
65048683b5
Add consensus params into Simulation ( #6002 )
...
* temporal commit
* add random consensus params
* make format
* make random pass
* remove comment
* revert change
* update ub key types
* extract Evidence params from state
* extract the random parameters from state
* clean the code
* update imports!
* mispelled back
* mispelled back
* add misspelled command
* update changelog
* remove useless linter to avoid misspell
* remove function
* use tendermint constants
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-04-21 18:28:43 +00:00
Jack Zampolin
793c6f17ff
Fixes for Packet Ack ( #6036 )
...
* Fix packet ack
* Fix test failures
2020-04-20 22:37:18 +00:00