Cory
61a97ef347
Audit / Refactor proto packages layout ( #6905 )
...
* create base proto package, move ValAddresses to staking
* move tx, crypto, query proto packages into base; mark module level packages as beta
* new cosmos/base/abci.proto file, refactor some message names
* add comments to TxResponse
* refactor RegisterInterface calls to new proto package names
* fix bug in merge commit
* move missing module proto packages to beta, move cosmos.kv to cosmos.base.kv
* add tx.proto files, holding proto messages for module Msgs
* rm old generated pb.go files
* cosmos/base/base.proto -> cosmos/base/coin.proto
* mark genutil proto package as beta
* Fix conflicts
* Restructure proto files
* Re put signing
* Fix test
* Update slashing genesis
* Ignore confio proto files
* Fix interface register
* Make proto-gen
* Fix lint
* Put tx service into tx.v1beta1
* Use v1beta1 in interface registry
* Remove to cosmos.base.store
* Remove extra confio in buf
Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-08-11 11:49:45 +00:00
Alexander Bezobchuk
0f44d1af23
store: Remove Amino ( #6984 )
...
* Update kv pair to proto
* updates
* fix LastCommitID
* lint++
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-08-11 10:09:16 +00:00
Aaron Craelius
0faf545221
Add simulation gRPC service definition ( #6872 )
...
* WIP on TxService
* WIP on TxService
* Update docs
* WIP on simulation service
* WIP on simulate service
* Simplify interface
* Simplify interface
* proto-gen
* Update docs
* Update docs
* Simplify
* proto-gen
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-08-11 07:33:35 +00:00
Aaron Craelius
7de8ef75b3
Require proto.Message in client.Context.PrintOutput ( #6999 )
...
* Enable proto JSON json for cli tx & query
* WIP on tests
* Test fixes, cleanup
* Cleanup
* Address review comments
* Update client/context.go
Co-authored-by: Anil Kumar Kammari <anil@vitwit.com>
* Fixes
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Anil Kumar Kammari <anil@vitwit.com>
2020-08-11 03:19:49 -04:00
dauTT
20c80cfd44
Rename *codec.Codec to *codec.LegacyAmino ( #6991 )
...
* Rename *codec.Codec to *codec.LegacyAmino
* Implement requested changes
Co-authored-by: Aaron Craelius <aaron@regen.network>
2020-08-10 19:41:21 +00:00
Amaury Martiny
6e3c268a72
Protobuf audit: Queries ( #6967 )
...
* Add required fields for queries, p1
* Add comments
* Remove required
* More modules
* 2 to go
* Finish all modules
* Fix typo
* Fix test
* Make proto-gen
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-08-10 08:12:59 +00:00
Alexander Bezobchuk
9ae17669d6
Tx Height Timeout ( #6089 )
...
* Implement TxHeightTimeoutDecorator
* Update error message
* rename type
* set height timeout
* update tests
* update *SignDoc)
* rename
* remove dup
* fix build
* cli updates
* rest updates
* cl++
* Update x/auth/ante/basic.go
Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
* Update x/auth/ante/basic.go
Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
* Update x/auth/ante/basic.go
Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
* Update x/auth/ante/basic.go
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* rename
* rename
* remove TimeoutHeight from SignDoc
* updates
* fix tests
* update IBC cmd flags
* use omitempty
* update godoc
* add test case to TestStdSignBytes
Co-authored-by: colin axnér <25233464+colin-axner@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-08-07 23:32:22 +00:00
atheeshp
3322e269a1
Add pagination response for commands ( #6825 )
...
* migrated auth cli to use grpc query client
* unpacker added for account command
* fxed tests
* added grpc register in module.go
* fixed grpc failing issue
* page resonse added for console
* added reference
* paginations res added for commands
* Fix auth cli tests
Co-authored-by: SaReN <sahithnarahari@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-08-07 10:20:22 +00:00
SaReN
95cf3c95a6
Remove old tx code from rest ( #6939 )
...
* Cleanup rest txs
* Remove nolint
* Update x/ibc to use WriteGeneratedTxResponse
* Update marshaler usages
* Fix PostProcessResponse test
* Update PostProcessResponse
2020-08-05 18:08:13 +00:00
atheeshp
662aa7fa01
Slashing genesis types proto migration ( #6881 )
...
* slashing genesis types migrated to proto
* review changes
* fixed lint
* review change
* review change
* review changes
* Update proto messgaes
* Add test for ExportGenesis
* Address naming suggestions
* Update genesis
* Fix genesis test
* Add GetMissedBlocks
* Update genesis test
* Address review suggestions
Co-authored-by: Anil Kumar Kammari <anil@vitwit.com>
Co-authored-by: SaReN <sahithnarahari@gmail.com>
2020-08-04 12:58:36 +00:00
Aaron Craelius
6d937443b2
Reject unknown fields in TxDecoder and sign mode handlers ( #6883 )
...
* WIP on unknown field rejection in TxDecoder
* WIP on unknown field rejection in TxDecoder
* WIP
* WIP
* WIP
* WIP
* Fix bugs with RejectUnknownFields
* Fix tests
* Fix bug and update docs
* Lint
* Add tests
* Add unknown field tests
* Lint
* Address review comments
2020-08-03 19:47:25 +00:00
Alexander Bezobchuk
9a3fd7cac5
Refactor x/staking Unbonding Validator Queue ( #6844 )
...
* init commit
* revise GetValidatorQueueKey
* add order test
* update UnbondAllMatureValidators
* update APIs
* fix build
* cl++
2020-07-31 12:55:32 -04:00
Marko
617b822efa
types: add kv type ( #6897 )
...
* add kv type
* add changelog entry
* fix build
* replace sdkkv with kv
* revert change
* fix some tests
* proto-gen
* fix tests
Co-authored-by: Aleksandr Bezobchuk <aleks.bezobchuk@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-30 14:53:02 +00:00
SaReN
72ebafeeca
Update auth cli commands ( #6717 )
...
* add utils
* update sign cmd
* update multisign cmd
* update sign batch cmd
* update genutil cmd
* add wrap tx builder
* update gentx cli
* update validate sigs cmd
* fix lint
* add flag reader to cli
* update marshaler for batchscan
* add register query server
* update to master
* remove depricated methods
* fix keyring issue
* update wraptx
* Fix batch scan
* fix register interfaces issue
* update printOutput
* Update Validate Sigs test
* WIP on signature JSON
* Cleanup
* Cleanup
* Test fixes
* Test fixes
* Fixes
* WIP on tests
* Fix gov tests
* fix lint
* fix MultiSign tests
* fix tests
* refactor tests
* Cleanup
* Address review comments
* Update encode
* Test fix
* Rename SignData func
* Fix lint
* Fix lint
* Revert ReadTxCommandFlags
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: Aaron Craelius <aaronc@users.noreply.github.com>
2020-07-29 22:33:42 +00:00
Marie
2da954ff61
x/evidence genesis protobuf migration ( #6864 )
...
* Migrate evidence genesis state to proto
* Fix lint error
* Remove commented code
* Clean up
* Add UnpackInterfaces to evidence GenesisState
* Add cosmos_proto.accepts_interface to evidence any and fix lint error
* Add test for x/evidence ExportGenesis and use table tests
* Update x/evidence/types/genesis.go
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Update proto/cosmos/evidence/evidence.proto
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
* Keep []Evidence as return type in GenEvidences
* Add GenesisState Validate tests
* Add test case for NewGenesisState
* Add tests for GenesisState UnpackInterfaces
Co-authored-by: SaReN <sahithnarahari@gmail.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-07-29 18:22:51 +00:00
Emmanuel T Odeke
b0c73ae994
codec: implement protobuf unknown fields checker ( #6557 )
2020-07-29 11:31:23 -04:00
SaReN
804b80a82c
Migrate gov, ibc-transfer genesis state to proto ( #6866 )
...
* Migrate gov genesis state
* Migrate ibc-transfer genesis state
* format genesis proto
2020-07-28 19:57:09 +00:00
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
dauTT
5a7e22022c
Implement ADR 024 - Coin Metadata ( #6821 )
...
* Implement ADR 024 - Coin Metadata
* Fix lint
* Fix proto lint
* Index metadata by denom
* Fix test
* Fix proto comments
* Add GetAllDenomMetaData help method and refactor code accordingly
* Add x/bank/keeper/genesis_test.go
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-28 07:49:56 +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
Amaury Martiny
61d0c4adcd
proto: Consistent naming for Params ( #6803 )
...
* Use consistent "Params" in proto
* Update comments
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-21 14:04:51 +00: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
dauTT
efa73c7edb
Merge PR #6800 : Cosmetic changes
2020-07-20 16:22:46 -04: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
Alexander Bezobchuk
515b25b94e
Context: Remove Init/New ( #6797 )
...
* init commit
* remove new/init functions
* update CLI commands
* tests: fix TestCLIQueryConn
* remove viper
2020-07-20 16:42:46 +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
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
Finn
cc96e5c16f
x/staking: add call to iterator Close method ( #6791 )
...
Co-authored-by: FinnZhang <>
2020-07-20 04:30:09 -04:00
Adam Bozanich
f33749263f
Merge PR #6761 : telemetry: use UTC() in wrappers
2020-07-17 15:33:50 -04:00
Cory
32de79d0aa
refactor auths broadcast cmd in alignment with #6216 ( #6713 )
...
* refactor auths broadcast cmd in alignment with #6216
* add TxResponse proto definition, and related refactoring
* re-run make proto-gen, updating staking.pb.go
* cleanup TxResponse tests to handle nil return values
* properly handle nil Tx value in TxResponse's implementation of UnpackInterfaces
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-17 17:17:21 +00:00
Alexander Bezobchuk
5c86ecd1f8
Fix measure since ( #6759 )
...
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-07-17 15:34:37 +00:00
atheeshp
c37f683cc1
x/staking: cli migration to use gRPC query client ( #6728 )
...
* migrated to use gRPC query client
* removed codecs usage
* review change
* added read command flags
* added pagination flags
* fixed limit issue
* added helper function for default pagination flags
* review changes
* review change
* review changes
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-17 15:23:42 +00:00
Marko
de08dc4288
bump versiion of ci linter fix ( #6743 )
2020-07-16 08:38:29 +00:00
SaReN
5656e8647b
x/staking: gRPC query Service ( #6490 )
...
* Add types for staking grpc
* Update module.go
* Update staking query types
* Add grpc query methods
* Add delegation response to proto
* Add queriers for delegations
* Add queriers for unbonding
* Add queriers for redelegations
* Add cases for redelegations
* Add test for grpc validators
* Update staking types to proto
* Update staking query proto
* Add tests for grpc
* Add tests for grpc pool, parameters
* Fix lint issues
* Add grpc redelegation tests
* Add more tests
* Add docs for query proto
* Add docs for query types
* Modify redel querier
* Add debugging statements
* Revert debugging
* Fix proto lint errors
* Add wrapper for keeper
* Embed keeper in querier
* Add more tests
* Add tests for validator unbondings
* Add redel tests
* fix queryRedelegationsFromSrcValidator
* Fix Redelegation tests
* update godoc
* Update args
* Update tests with suite
* Fix lint
* Remove redundant types
* Refactor tests
* fix test
* refactor query proto
* Fix tests
* address review comments
* lint staking proto
* add godoc
* Update tests to table driven tests
* add debugging
* Fix grpc tests
* address comments
* address whitespace suggestions
* Add more tests
* add tests for invalid redels
* update error messages
* address review suggestions
* add tests
* move suite to keeper_test
Co-authored-by: Aaron Craelius <aaronc@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-14 17:41:30 +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
Federico Kunze
eb72ee042a
x/staking: wrap denom error ( #6718 )
2020-07-14 10:38:35 -04:00
dauTT
2de851d5bd
Merge PR #6693 : x/staking/simulation/params.go: add unit tests
2020-07-11 22:26:38 -04:00
dauTT
d6e0888ea6
Merge PR #6692 : x/staking/simulation/genesis.go: add unit tests
2020-07-11 22:15:31 -04:00
dauTT
3ab823c587
x/staking/simulation/operations.go: add unit tests ( #6690 )
2020-07-12 01:56:28 +00:00
Alexander Bezobchuk
e7554bb3b0
Fix Gas Flag Usage + CLI Flag APIs ( #6685 )
...
* Use new APIs
* fix usage
* fix usage of gas flag
* tests: TestParseGasSetting
2020-07-11 08:13:46 +00:00
Jonathan Gimeno
a417b38926
Remove viper in Staking module. ( #6631 )
2020-07-08 22:00:34 +02:00
Alexander Bezobchuk
b25e3fc76d
Merge PR #6651 : More CLI cleanup
2020-07-08 13:57:45 -04: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
9ebda4edb9
Server/simd: Viper Removal ( #6599 )
...
* init commit
* remove viper from tm cmds
* updates
* Undo x/bank/client/cli/tx.go
* Fix unit tests
* lint++
* rename var
* Fix genutil test
* fix test
* prefer cmd.Flags() over direct viper usage
* update
* fix ABCI error tests
* fix integration tests
* Add viper to context
* fix build
* fix unit test
* Implement and use AppOptions
* Revert Redact godoc
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-07-05 16:56:17 +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
Alexander Bezobchuk
d5049413ef
Merge PR #6525 : x/bank: Refactor CLI & Tests
2020-06-30 16:59:21 -04:00
Michael FIG
6251d28389
Merge PR #6529 : Export validator addresses
2020-06-29 14:56:08 -04: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
Jonathan Gimeno
c134e8974e
Move some Param types from Keeper to Types in staking ( #6451 )
2020-06-16 19:59:36 +02: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
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
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
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
Jonathan Gimeno
626f9b62c5
add pagination ( #6163 )
...
* add pagination
* make test pass with validators
* add pagination option
* unbonding delegations test added
* test unbondedvalidators pagination
* clean test
* remove comment
* remove comment
* add page and limit to unbonding delegations
* add flag limit and page for delegations-to command
* refactor hardcoded string values
* udpate page and limit for validator
* update changelog
* add pagination option
* add defaults
* Update CHANGELOG.md
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-06-06 17:32:15 +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
Xuefeng Zhu
c74b28a7ac
remove duplicated check when RemoveValidator ( #6239 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-05-18 02:09:28 +00:00
SaReN
c211488b0b
x/auth: cli tests ( #6152 )
...
* Add cli tests for auth
* Format imports
* Fix auth tests
* Remove keys in validate sign call
* Eliminate defer in tests
* Format imports
* Test commit
2020-05-05 21:16:37 -04:00
Aaron Craelius
386217209d
Merge PR #6076 : Proto Any init + evidence
2020-05-05 10:28:20 -04:00
Alessio Treglia
2414e5bdd4
x/auth: turn sign --validate-sigantures into a standalone command ( #6108 )
...
--validate-signatures should not be a flag of the sign command
as the operation performed (transaction signatures verification)
is logically distinct.
cli_test is and has always been an horrible name for package
directory as it's very much Go anti-idiomatic - _test is the
suffix used by test packages, not directories. Plus, CLI test
cases can and should live alongside other testcases that don't
require binaries to be built beforehand. Thus:
x/module/client/cli_test/*.go -> x/module/client/cli/
Test files that require sim{cli,d} shall be tagged with // +build cli_test
With regard to cli test auxiliary functions, they should live in:
x/module/client/testutil/
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-05-04 13:55:16 +00: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
SaReN
f92f6c9dd1
Add CLI tests for simd, distribution ( #6095 )
...
* Added cli integration base setup
* Added cmd to simapp
* Fixed ci-lint issues
* Fixed ci-lint issues
* Addressed changes in Makefile
* Updated simd to latest
* Removed testnet and replay commands
* Modified tx command for simcli
* Did code cleanup
* Removed duplication in Makefile
* Refactored cli_test
* Added build-sim to Makefile
* Added test-cli to circleci
* Added tests for staking txns
* Addressed format issues
* refctored tests code
* Added tests for send, staking
* Removed test_hepers file
* Moved test_cover to contrib
* Added codec in fixtures
* Migrated tests to respective modules
* Exported helper methods
* Moved helpers to bank
* Added codec to fixtures
* Migrated tests to modules
* Removed auth helpers from staking
* Did minor code cleanup
* Added test-cli to Makefile
* Updated github actions
* Did code refactor
* Fixed github actions for cli-test
* Added tests for recover keys and fee deduction
* Did minor code cleanup
* Added build flag to cli_tests
* Moved cli_test to tests
* Modified path in Makefile
* Updated codec std in fixtures
* Added doc for cli tests
* Remove ibc genesis validation
* Fix issue number
* Added missing imports
* Add tests for distribution and simd
* Modified naming for test functions
* Added test for withdraw rewards
* Modified test function names
* Fixed import format
* Migrated helpers to package cli
* Fixed github test actions
* Fixed test coverage in actions
* Added build sim to actions
* Apply Alessio patch for tests
* Removed unused imports
* Added init for go tests
* try fix tests
* goimports what wasn't goimports'd
* try fix ci
* add relevant tags to integration tests
* run integration tests separately
* use go build -o flag and let compiler gemerate the binary with the
right extension for the HOST platform
rename cli-test to test-integration
* update ci
* rename
Co-authored-by: atheesh <atheesh1>
Co-authored-by: kaustubhkapatral <54210167+kaustubhkapatral@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: anilCSE <anil@vitwit.com>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-05-01 20:16:17 +00: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
b854c485e4
Add CLI tests for fee deduction ( #6088 )
...
* Added cli integration base setup
* Added cmd to simapp
* Fixed ci-lint issues
* Fixed ci-lint issues
* Addressed changes in Makefile
* Updated simd to latest
* Removed testnet and replay commands
* Modified tx command for simcli
* Did code cleanup
* Removed duplication in Makefile
* Refactored cli_test
* Added build-sim to Makefile
* Added test-cli to circleci
* Added tests for staking txns
* Addressed format issues
* refctored tests code
* Added tests for send, staking
* Removed test_hepers file
* Moved test_cover to contrib
* Added codec in fixtures
* Migrated tests to respective modules
* Exported helper methods
* Moved helpers to bank
* Added codec to fixtures
* Migrated tests to modules
* Removed auth helpers from staking
* Did minor code cleanup
* Added test-cli to Makefile
* Updated github actions
* Did code refactor
* Fixed github actions for cli-test
* Added tests for recover keys and fee deduction
* Did minor code cleanup
* Added build flag to cli_tests
* Moved cli_test to tests
* Modified path in Makefile
* Updated codec std in fixtures
* Added doc for cli tests
* Remove ibc genesis validation
* Fix issue number
* Added missing imports
* Modified naming for test functions
Co-authored-by: atheesh <atheesh1>
Co-authored-by: kaustubhkapatral <54210167+kaustubhkapatral@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: anilCSE <anil@vitwit.com>
2020-04-29 20:46:10 +00:00
SaReN
3b71198b25
Merge PR #6033 : Add setup for cli_test
2020-04-29 11:52:30 -04:00
Aaron Craelius
cc90f2e002
Merge pull request #6085 : Move codec/std to std
2020-04-27 15:40:50 -04:00
Alexander Bezobchuk
d90b2e7a99
Allow Unjail of Non-Bonded Jailed Validator ( #6061 )
...
* Use correct API and add TODO
* Allow unjail without signing info
* Add unit test
* Update godoc
* Add changelog entries
* Fix TestUndelegateSelfDelegationBelowMinSelfDelegation
* Fix delegation tests
* Revert API call
2020-04-26 17:38:33 +00:00
Jack Zampolin
4f52797931
Update DefaultHistoricalEntries to 100 ( #6059 )
...
* Update DefaultHistoricalEntries to 1000
* hist entries sims and comment on simapp
* changelog and godoc
* update sim param change
* update default to 100
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-04-23 15:06:30 +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
Federico Kunze
3ee975c57b
Merge PR #6037 : refactor simulation decoder
2020-04-21 17:33:56 -04: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
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
Jack Zampolin
fe163e839c
Merge PR #6021 : Fix failed gentx because node is untrusted
2020-04-17 14:55:51 -04:00
Alexander Bezobchuk
09a55f68b5
Merge PR #5952 : Refactor Evidence Age Util + Governable Consensus Params
2020-04-16 11:10:39 -04:00
SaReN
192f259e77
Merge PR #5967 : Fixed cliCtx in tx cli
2020-04-09 10:00:10 -04:00
Federico Kunze
b5a6587291
x/ibc: IBC alpha ( #5277 )
...
* IBC alpha
* ICS 23 Implementation (#4515 )
* add mapping
* rm unused mapping/*, rm interfaces
* rm unused code
* mv mapping -> state, rm x/ibc
* rm GetIfExists
* add key
* rm custom encoding/decoding in enum/bool
* fix lint
* rm tests
* add commitment
* newtyped remote values
* newtyped context
* revert context newtype
* add README, keypath
* reflect downstream ics
* add merkle
* add test for proving
* soft coded root keypath
* add update
* remove RootUpdate
* separate keypath and keuprefix
* add codec
* separate root/path
* add path to codec
* add docs in progre
* add comments
* add comments
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* add comments in progress
* add comments
* fix comment
* add comments in progress
* recover IntEncoding scheme for integer
* add uint tests, don't use codec in custom types
* finalize merge
* add godoc
* reformat test
* rm XXX
* add godoc
* add query
* update query.go
* update query.go
* add Query to boolean.go
* fix key
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* merge from ics04 branch
* merge from ics04 branch
* fix lint
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* applying review in progress
* apply review - make querier interface
* fix dependency
* revise querier interface to work both on cli & store
* rm commented lines
* rename Path -> Prefix
* Store accessor upstream changes (#5119 )
* Store accessor upstream changes (#5119 )
* add comments, reformat merkle querier
* rm merkle/utils
* ICS 23 upstream changes (#5120 )
* ICS 23 upstream changes (#5120 )
* update Value
* remove Mapping
* remove store accessors
* refactor ICS23
* cleanup types
* implement batch verification
* gosimple suggestion
* alias
* add tests
* ICS 24 Implementation (#5229 )
* add validation functions
* validate path in ics-23
* address @fede comments
* move errors into host package
* flatten ICS23 structure
* fix ApplyPrefix
* complete types testing
* delete empty test file
* remove ibc errors from core error package
* start batch-verify tests
* minor changes on commitment types
* use testsuite
* upstream changes
* context changes
* ICS 02 Implementation (#4516 )
* add mapping
* rm unused mapping/*, rm interfaces
* rm unused code
* mv mapping -> state, rm x/ibc
* rm GetIfExists
* add key
* rm custom encoding/decoding in enum/bool
* fix lint
* rm tests
* add commitment
* newtyped remote values
* newtyped context
* revert context newtype
* add README, keypath
* reflect downstream ics
* add merkle
* add test for proving
* soft coded root keypath
* add update
* remove RootUpdate
* separate keypath and keuprefix
* add codec
* separate root/path
* add path to codec
* add client
* add counterpartymanager
* fix manager
* add Is() to counterobject
* add readme, reflect ICS02 revision
* reflect downstream ics
* test in progress
* add test
* in progres
* fin rebase
* in progress
* fin rebase
* add CLIObject in progress
* cli in progress
* add CLIObject
* separate testing from tendermint
* add key to node
* add root and storekey to tests/node, add codec
* rm cli/query.go
* fix test
* fix lint
* fix lint
* add handler/msgs/client
* rm relay
* finalize rebase on 23 root/path sep
* fix lint, fix syntax
* rm freebase, reformat query
* add docs in progre
* add comments
* add comments
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* add comments in progress
* add comments
* fix comment
* add comments in progress
* recover IntEncoding scheme for integer
* add uint tests, don't use codec in custom types
* finalize merge
* add godoc
* add godoc in progress
* reformat test
* rm XXX
* add godoc
* modify store
* add query
* update query.go
* update query.go
* cli refactor in progress
* cli refactor in progress
* add Query to boolean.go
* fix key
* fix cli / merkle test
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* merge from ics04 branch
* merge from ics04 branch
* merge from ics04 branch
* fix lint
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* applying review in progress
* apply review - make querier interface
* fix dependency
* fix dependency
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* reflect downstream change
* fix cli
* rm commented lines
* address review in progress
* rename Path -> Prefix
* Store accessor upstream changes (#5119 )
* Store accessor upstream changes (#5119 )
* add comments, reformat merkle querier
* rm merkle/utils
* ICS 23 upstream changes (#5120 )
* ICS 23 upstream changes (#5120 )
* update Value
* update test
* fix
* ICS 02 upstream changes (#5122 )
* ICS 02 upstream changes (#5122 )
* cleanup types and submodule
* more cleanup and godocs
* remove counterPartyManager/State and cleanup
* implement SubmitMisbehaviour and refactor
* errors
* events
* fix test
* refactors
* remove Mapping
* remove store accessors
* proposed refactor
* remove store accessors from ICS02
* refactor queriers, handler and clean keeper
* logger and tx long description
* ineffassign
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* add verification functions
* ICS02 module.go
* top level x/ibc structure
* Update x/ibc/02-client/client/cli/query.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Update x/ibc/02-client/types/tendermint/consensus_state.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* address some of the review comments
* minor UX improvements
* rename pkg
* fixes
* refactor ICS23
* cleanup types
* implement batch verification
* gosimple suggestion
* various fixes; remove legacy tests; remove commitment path query
* alias
* minor updates from ICS23
* renaming
* update verification and rename root funcs
* move querier to x/ibc
* update query.go to use 'custom/...' query path
* add tests
* ICS 24 Implementation (#5229 )
* add validation functions
* validate path in ics-23
* address @fede comments
* move errors into host package
* flatten ICS23 structure
* fix ApplyPrefix
* updates from ICS23 and ICS24
* msg.ValidateBasic and ADR09 evidence interface
* complete types testing
* delete empty test file
* remove ibc errors from core error package
* custom JSON marshaling
* start batch-verify tests
* minor changes on commitment types
* R4R - Store consensus state correctly (#5242 )
* store consensus state correctly
* fix client example
* update alias
* use testsuite
* Integrate Evidence Implementation into ICS-02 (#5258 )
* implement evidence in ics-02
* fix build errors and import cycles
* address fede comments
* remove unnecessary pubkey and fix init
* add tests
* finish tendermint tests
* complete merge
* Add tests for msgs
* upstream changes
* fix
* upstream changes
* fix cons state
* context changes
* ICS 03 Implementation (#4517 )
* add test
* in progres
* fin rebase
* in progress
* fin rebase
* add CLIObject in progress
* cli in progress
* add CLIObject
* separate testing from tendermint
* add key to node
* add root and storekey to tests/node, add codec
* rm cli/query.go
* fix test
* fix lint
* fix lint
* add handler/msgs/client
* rm relay
* finalize rebase on 23 root/path sep
* fix lint, fix syntax
* fix querying
* extract out context withstore
* fix 02-client test
* fix 23-commitment test
* add query in progress
* rm freebase, reformat query
* add cli/handler/msg in progress
* add cli/msg/handler
* add CLIQuery, fix tests
* fix golangci
* add docs in progre
* add comments
* add comments
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* add comments in progress
* add comments
* fix comment
* add comments in progress
* recover IntEncoding scheme for integer
* add uint tests, don't use codec in custom types
* finalize merge
* add godoc
* add godoc in progress
* reformat test
* rm XXX
* add godoc
* modify store
* add query
* update query.go
* update query.go
* cli refactor in progress
* cli refactor in progress
* add Query to boolean.go
* fix key
* fix cli / merkle test
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* fix test
* fix client
* merge from ics04 branch
* merge from ics04 branch
* merge from ics04 branch
* merge from ics04 branch
* fix lint
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* applying review in progress
* apply review - make querier interface
* fix dependency
* fix dependency
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* reflect downstream change
* fix cli
* reflect downstream changes
* rm commented lines
* address review in progress
* address review, rm cleanup/closing
* rename Path -> Prefix
* Store accessor upstream changes (#5119 )
* Store accessor upstream changes (#5119 )
* add comments, reformat merkle querier
* rm merkle/utils
* ICS 23 upstream changes (#5120 )
* ICS 23 upstream changes (#5120 )
* update Value
* update test
* fix
* ICS 02 upstream changes (#5122 )
* ICS 02 upstream changes (#5122 )
* ICS 03 upstream changes (#5123 )
* ICS 03 upstream changes (#5123 )
* cleanup types and submodule
* more cleanup and godocs
* remove counterPartyManager/State and cleanup
* implement SubmitMisbehaviour and refactor
* errors
* events
* fix test
* refactors
* WIP refactor ICS03
* remove Mapping
* remove store accessors
* proposed refactor
* remove store accessors from ICS02
* refactor queriers, handler and clean keeper
* logger and tx long description
* ineffassign
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* remove store accessors
* refactor handshake to update it to the latest ICS03 spec
* update handler and msgs
* add verification functions
* update verification
* ICS02 module.go
* top level x/ibc structure
* update connection queries
* update connection tx
* remove extra files
* update expected client keeper and export verification funcs
* Update x/ibc/02-client/client/cli/query.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Update x/ibc/02-client/types/tendermint/consensus_state.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* address some of the review comments
* resolve some TODOs and address comments from review
* update connection versioning
* minor error updates
* minor UX improvements
* rename pkg
* fixes
* refactor ICS23
* cleanup types
* rename pkg and fix import
* implement batch verification
* gosimple suggestion
* various fixes; remove legacy tests; remove commitment path query
* alias
* minor updates from ICS23
* renaming
* update verification and rename root funcs
* move querier to x/ibc
* update query.go to use 'custom/...' query path
* add tests
* ICS 24 Implementation (#5229 )
* add validation functions
* validate path in ics-23
* address @fede comments
* move errors into host package
* flatten ICS23 structure
* fix ApplyPrefix
* updates from ICS23 and ICS24
* msg.ValidateBasic and ADR09 evidence interface
* complete types testing
* delete empty test file
* remove ibc errors from core error package
* custom JSON marshaling; msg.ValidateBasic; renaming of variables
* minor update
* custom JSON marshaling
* start batch-verify tests
* minor changes on commitment types
* R4R - Store consensus state correctly (#5242 )
* store consensus state correctly
* fix client example
* update alias
* update alias
* use testsuite
* Integrate Evidence Implementation into ICS-02 (#5258 )
* implement evidence in ics-02
* fix build errors and import cycles
* address fede comments
* remove unnecessary pubkey and fix init
* add tests
* finish tendermint tests
* complete merge
* Add tests for msgs
* upstream changes
* fix
* upstream changes
* fix cons state
* context changes
* fix cli tx
* upstream changes
* fix
* ICS 05 implementation (#5193 )
* fix lint
* fix lint
* add handler/msgs/client
* rm relay
* finalize rebase on 23 root/path sep
* fix lint, fix syntax
* fix querying
* extract out context withstore
* fix 02-client test
* fix 23-commitment test
* add query in progress
* rm freebase, reformat query
* add cli/handler/msg in progress
* add cli/msg/handler
* add CLIQuery, fix tests
* fix golangci
* add docs in progre
* add comments
* add comments
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* add comments in progress
* add comments
* fix comment
* add comments in progress
* recover IntEncoding scheme for integer
* add uint tests, don't use codec in custom types
* finalize merge
* add godoc
* add godoc in progress
* reformat test
* rm XXX
* add godoc
* modify store
* add query
* update query.go
* update query.go
* cli refactor in progress
* cli refactor in progress
* add Query to boolean.go
* fix key
* fix cli / merkle test
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* fix test
* fix client
* merge from ics04 branch
* merge from ics04 branch
* merge from ics04 branch
* merge from ics04 branch
* fix lint
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* applying review in progress
* apply review - make querier interface
* fix dependency
* fix dependency
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* reflect downstream change
* fix cli
* reflect downstream changes
* rm commented lines
* address review in progress
* address review, rm cleanup/closing
* rename Path -> Prefix
* Store accessor upstream changes (#5119 )
* Store accessor upstream changes (#5119 )
* add comments, reformat merkle querier
* rm merkle/utils
* ICS 23 upstream changes (#5120 )
* ICS 23 upstream changes (#5120 )
* update Value
* update test
* fix
* ICS 02 upstream changes (#5122 )
* ICS 02 upstream changes (#5122 )
* ICS 03 upstream changes (#5123 )
* ICS 03 upstream changes (#5123 )
* cleanup types and submodule
* more cleanup and godocs
* remove counterPartyManager/State and cleanup
* implement SubmitMisbehaviour and refactor
* errors
* events
* fix test
* refactors
* WIP refactor ICS03
* remove Mapping
* remove store accessors
* proposed refactor
* remove store accessors from ICS02
* refactor queriers, handler and clean keeper
* logger and tx long description
* ineffassign
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* remove store accessors
* refactor handshake to update it to the latest ICS03 spec
* update handler and msgs
* add verification functions
* update verification
* ICS02 module.go
* top level x/ibc structure
* update connection queries
* update connection tx
* remove extra files
* update expected client keeper and export verification funcs
* ICS 05 Implementation
* release port and godocs
* Update x/ibc/02-client/client/cli/query.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Update x/ibc/02-client/types/tendermint/consensus_state.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* address some of the review comments
* resolve some TODOs and address comments from review
* update connection versioning
* minor error updates
* update errors and add port Keeper to ibc Keeper
* minor UX improvements
* rename pkg
* fixes
* refactor ICS23
* cleanup types
* ICS 5 updates (#5222 )
* Validate port identifiers
* Refactor to static bind
* Add comments
* Add 'GetPorts' query function
* rename pkg and fix import
* implement batch verification
* gosimple suggestion
* various fixes; remove legacy tests; remove commitment path query
* alias
* minor updates from ICS23
* renaming
* update verification and rename root funcs
* move querier to x/ibc
* update query.go to use 'custom/...' query path
* add tests
* ICS 24 Implementation (#5229 )
* add validation functions
* validate path in ics-23
* address @fede comments
* move errors into host package
* flatten ICS23 structure
* fix ApplyPrefix
* updates from ICS23 and ICS24
* msg.ValidateBasic and ADR09 evidence interface
* complete types testing
* delete empty test file
* remove ibc errors from core error package
* custom JSON marshaling; msg.ValidateBasic; renaming of variables
* minor update
* custom JSON marshaling
* use host validation for port ids
* start batch-verify tests
* minor changes on commitment types
* R4R - Store consensus state correctly (#5242 )
* store consensus state correctly
* fix client example
* update alias
* update alias
* update alias and keeper.GetPort()
* use testsuite
* Integrate Evidence Implementation into ICS-02 (#5258 )
* implement evidence in ics-02
* fix build errors and import cycles
* address fede comments
* remove unnecessary pubkey and fix init
* add tests
* finish tendermint tests
* complete merge
* Add tests for msgs
* upstream changes
* fix
* upstream changes
* fix cons state
* context changes
* fix cli tx
* upstream changes
* upstream changes
* ICS 04 Implementation (#4548 )
* merge from ics04 branch
* merge from ics04 branch
* fix lint
* add port
* fix test
* add mocks
* fix connid -> portid in handshake.go
* add mock
* add ibc module.go, finalize mock
* add keeper
* add StoreKey const
* fix test
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* applying review in progress
* apply review - make querier interface
* fix cli errors
* fix dependency
* fix dependency
* reflect method name change
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* reflect downstream change
* fix cli
* reflect downstream changes
* reflect downstream changes
* fix from address in tx cli
* fix cli in progress(squash later)
* fix cli
* remove timeout, add channel cli
* fix golangci
* fix cli
* Clean up
* fix mock cli in progress
* finalize cleanup, mock cli wip
* add cli for mocksend
* fix handler
* rm commented lines
* address review in progress
* address review, rm cleanup/closing
* rename mock packages
* fix interface for gaia
* rename Path -> Prefix
* Store accessor upstream changes (#5119 )
* Store accessor upstream changes (#5119 )
* add comments, reformat merkle querier
* rm merkle/utils
* ICS 23 upstream changes (#5120 )
* ICS 23 upstream changes (#5120 )
* update Value
* update test
* fix
* ICS 02 upstream changes (#5122 )
* ICS 02 upstream changes (#5122 )
* ICS 03 upstream changes (#5123 )
* ICS 03 upstream changes (#5123 )
* update test
* cleanup types and submodule
* more cleanup and godocs
* remove counterPartyManager/State and cleanup
* implement SubmitMisbehaviour and refactor
* errors
* events
* fix test
* refactors
* WIP refactor ICS03
* remove Mapping
* remove store accessors
* proposed refactor
* remove store accessors from ICS02
* refactor queriers, handler and clean keeper
* logger and tx long description
* ineffassign
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* remove store accessors
* refactor handshake to update it to the latest ICS03 spec
* update handler and msgs
* add verification functions
* update verification
* ICS02 module.go
* top level x/ibc structure
* update connection queries
* update connection tx
* remove extra files
* refactor: remove store accessors, update keeper and types to match spec (WIP)
* update handshake and packet
* implement packet timeouts
* implement send and receive packet
* implement packet ACK
* update handler
* add channel errors
* channel querier
* update expected client keeper and export verification funcs
* ICS 05 Implementation
* release port and godocs
* Update x/ibc/02-client/client/cli/query.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Update x/ibc/02-client/types/tendermint/consensus_state.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* address some of the review comments
* resolve some TODOs and address comments from review
* update connection versioning
* minor error updates
* update ICS04 with downstream changes
* Implement tx cli actions
* add MsgSendPacket handler; msg validation, errors and events
* update errors and add port Keeper to ibc Keeper
* minor UX improvements
* rename pkg
* fixes
* refactor ICS23
* cleanup types
* ICS 5 updates (#5222 )
* Validate port identifiers
* Refactor to static bind
* Add comments
* Add 'GetPorts' query function
* rename pkg and fix import
* implement batch verification
* gosimple suggestion
* various fixes; remove legacy tests; remove commitment path query
* alias
* minor updates from ICS23
* renaming
* update verification and rename root funcs
* rm legacy tests; add query proofs support
* remove capability key generation and authentication logic
* move querier to x/ibc
* update query.go to use 'custom/...' query path
* add tests
* ICS 24 Implementation (#5229 )
* add validation functions
* validate path in ics-23
* address @fede comments
* move errors into host package
* flatten ICS23 structure
* fix ApplyPrefix
* updates from ICS23 and ICS24
* msg.ValidateBasic and ADR09 evidence interface
* complete types testing
* delete empty test file
* remove ibc errors from core error package
* custom JSON marshaling; msg.ValidateBasic; renaming of variables
* minor update
* custom JSON marshaling
* use host validation for port ids
* downstream changes; custom marshal JSON; msg validation, and update errors
* update errors and aliases
* start batch-verify tests
* update msg validation and CLI UX
* minor changes on commitment types
* fix channel and packet check (#5243 )
* R4R - Store consensus state correctly (#5242 )
* store consensus state correctly
* fix client example
* update alias
* update alias
* update alias and keeper.GetPort()
* authenticate port ID; remove send packet msg from CLI
* comment out handlers
* use testsuite
* Integrate Evidence Implementation into ICS-02 (#5258 )
* implement evidence in ics-02
* fix build errors and import cycles
* address fede comments
* remove unnecessary pubkey and fix init
* add tests
* finish tendermint tests
* complete merge
* Add tests for msgs
* upstream changes
* fix
* upstream changes
* fix cons state
* context changes
* fix cli tx
* upstream changes
* upstream changes
* upstream changes
* IBC v1.0.0 (#5245 )
* applying review in progress
* apply review - make querier interface
* fix cli errors
* fix dependency
* fix dependency
* reflect method name change
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* reflect downstream change
* fix cli
* reflect downstream changes
* reflect downstream changes
* fix from address in tx cli
* fix cli in progress(squash later)
* fix cli
* remove timeout, add channel cli
* fix golangci
* fix cli
* Clean up
* fix mock cli in progress
* finalize cleanup, mock cli wip
* add cli for mocksend
* fix handler
* rm commented lines
* address review in progress
* address review, rm cleanup/closing
* rename mock packages
* fix interface for gaia
* rename Path -> Prefix
* Store accessor upstream changes (#5119 )
* Store accessor upstream changes (#5119 )
* add comments, reformat merkle querier
* rm merkle/utils
* ICS 23 upstream changes (#5120 )
* ICS 23 upstream changes (#5120 )
* update Value
* update test
* fix
* ICS 02 upstream changes (#5122 )
* ICS 02 upstream changes (#5122 )
* ICS 03 upstream changes (#5123 )
* ICS 03 upstream changes (#5123 )
* update test
* cleanup types and submodule
* more cleanup and godocs
* remove counterPartyManager/State and cleanup
* implement SubmitMisbehaviour and refactor
* errors
* events
* fix test
* refactors
* WIP refactor ICS03
* remove Mapping
* remove store accessors
* proposed refactor
* remove store accessors from ICS02
* refactor queriers, handler and clean keeper
* logger and tx long description
* ineffassign
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* remove store accessors
* refactor handshake to update it to the latest ICS03 spec
* update handler and msgs
* add verification functions
* update verification
* ICS02 module.go
* top level x/ibc structure
* update connection queries
* update connection tx
* remove extra files
* refactor: remove store accessors, update keeper and types to match spec (WIP)
* update handshake and packet
* implement packet timeouts
* implement send and receive packet
* implement packet ACK
* update handler
* add channel errors
* channel querier
* update expected client keeper and export verification funcs
* ICS 05 Implementation
* release port and godocs
* Update x/ibc/02-client/client/cli/query.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Update x/ibc/02-client/types/tendermint/consensus_state.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* address some of the review comments
* resolve some TODOs and address comments from review
* update connection versioning
* minor error updates
* update ICS04 with downstream changes
* Implement tx cli actions
* add MsgSendPacket handler; msg validation, errors and events
* update errors and add port Keeper to ibc Keeper
* minor UX improvements
* rename pkg
* fixes
* refactor ICS23
* cleanup types
* ICS 5 updates (#5222 )
* Validate port identifiers
* Refactor to static bind
* Add comments
* Add 'GetPorts' query function
* rename pkg and fix import
* implement batch verification
* gosimple suggestion
* various fixes; remove legacy tests; remove commitment path query
* alias
* minor updates from ICS23
* renaming
* update verification and rename root funcs
* rm legacy tests; add query proofs support
* remove capability key generation and authentication logic
* move querier to x/ibc
* update query.go to use 'custom/...' query path
* add tests
* ICS 24 Implementation (#5229 )
* add validation functions
* validate path in ics-23
* address @fede comments
* move errors into host package
* flatten ICS23 structure
* fix ApplyPrefix
* updates from ICS23 and ICS24
* msg.ValidateBasic and ADR09 evidence interface
* complete types testing
* delete empty test file
* remove ibc errors from core error package
* custom JSON marshaling; msg.ValidateBasic; renaming of variables
* minor update
* custom JSON marshaling
* use host validation for port ids
* downstream changes; custom marshal JSON; msg validation, and update errors
* update errors and aliases
* start batch-verify tests
* update msg validation and CLI UX
* minor changes on commitment types
* fix channel and packet check (#5243 )
* R4R - Store consensus state correctly (#5242 )
* store consensus state correctly
* fix client example
* update alias
* update alias
* update alias and keeper.GetPort()
* authenticate port ID; remove send packet msg from CLI
* comment out handlers
* add ibc module to simapp
* ICS20 implementation (#5204 )
* add ibc bank mock
* modify handler
* import channel
* add receiving logic
* add cli proof handling
* modify cli
* modify receiver type
* modify errcode
* optimize codes
* add denom prefix when source is true
* refactor code
* error return
* switch ibc antehandler to decorator pattern
* fix name/comment
* ICS 20 implementation (#5250 )
* move ics20 code to 20-transfer
* clean code
* fix compiling error
* add transfer module
* address ICS20 comments from review
* add routing callbacks
* clean code
* add missing err return
* modify err type
* modify err type
* add supply handling
* modify proof type
* add comments for msg and packet data
* add timeout supply handling
* modify module account name
* use supply keeper for burn and mint coins
* restructure keeper
* update alias and module.go
* golangci linter
* add ics20 handler to IBC handler
* update callbacks
* update ICS20 escrow address
* fix querier routes
* fix create client cli
* minor updates
* ibc querier test
* Refactor ibc/mock/bank into ICS 20 (#5264 )
* Most of code port from mock module to ICS 20
* A few minor fixes
* Apply suggestions from code review
Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
* Fix suggestions from autolinter
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Fix order of messages
* Add invalid height error code, check non-nil proof
* Fix linter error
* Return the underlying error
* Tendermint starts at height 1
* Apply suggestions from code review
* setup ics20 test suite
* add event to MsgRecvPacket
* update ibc keeper test to use test suite
* Add handshake commands
* WIP connection handshake
* WIP Connection Handshake
* use testsuite
* Add cliCtx.WaitForNBlocks
* fix connection handshake in progress
* fix connection handshake in progress
* Integrate Evidence Implementation into ICS-02 (#5258 )
* implement evidence in ics-02
* fix build errors and import cycles
* address fede comments
* remove unnecessary pubkey and fix init
* add tests
* finish tendermint tests
* complete merge
* Add tests for msgs
* upstream changes
* fix
* upstream changes
* fix cons state
* context changes
* fix cli tx
* upstream changes
* upstream changes
* upstream changes
* upstream changes
* IBC demo fixes (#5267 )
* WIP refactor ICS03
* remove Mapping
* remove store accessors
* proposed refactor
* remove store accessors from ICS02
* refactor queriers, handler and clean keeper
* logger and tx long description
* ineffassign
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* remove store accessors
* refactor handshake to update it to the latest ICS03 spec
* update handler and msgs
* add verification functions
* update verification
* ICS02 module.go
* top level x/ibc structure
* update connection queries
* update connection tx
* remove extra files
* refactor: remove store accessors, update keeper and types to match spec (WIP)
* update handshake and packet
* implement packet timeouts
* implement send and receive packet
* implement packet ACK
* update handler
* add channel errors
* channel querier
* update expected client keeper and export verification funcs
* ICS 05 Implementation
* release port and godocs
* Update x/ibc/02-client/client/cli/query.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Update x/ibc/02-client/types/tendermint/consensus_state.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* address some of the review comments
* resolve some TODOs and address comments from review
* update connection versioning
* minor error updates
* update ICS04 with downstream changes
* Implement tx cli actions
* add MsgSendPacket handler; msg validation, errors and events
* update errors and add port Keeper to ibc Keeper
* minor UX improvements
* rename pkg
* fixes
* refactor ICS23
* cleanup types
* ICS 5 updates (#5222 )
* Validate port identifiers
* Refactor to static bind
* Add comments
* Add 'GetPorts' query function
* rename pkg and fix import
* implement batch verification
* gosimple suggestion
* various fixes; remove legacy tests; remove commitment path query
* alias
* minor updates from ICS23
* renaming
* update verification and rename root funcs
* rm legacy tests; add query proofs support
* remove capability key generation and authentication logic
* move querier to x/ibc
* update query.go to use 'custom/...' query path
* add tests
* ICS 24 Implementation (#5229 )
* add validation functions
* validate path in ics-23
* address @fede comments
* move errors into host package
* flatten ICS23 structure
* fix ApplyPrefix
* updates from ICS23 and ICS24
* msg.ValidateBasic and ADR09 evidence interface
* complete types testing
* delete empty test file
* remove ibc errors from core error package
* custom JSON marshaling; msg.ValidateBasic; renaming of variables
* minor update
* custom JSON marshaling
* use host validation for port ids
* downstream changes; custom marshal JSON; msg validation, and update errors
* update errors and aliases
* start batch-verify tests
* update msg validation and CLI UX
* minor changes on commitment types
* fix channel and packet check (#5243 )
* R4R - Store consensus state correctly (#5242 )
* store consensus state correctly
* fix client example
* update alias
* update alias
* update alias and keeper.GetPort()
* authenticate port ID; remove send packet msg from CLI
* comment out handlers
* add ibc module to simapp
* ICS20 implementation (#5204 )
* add ibc bank mock
* modify handler
* import channel
* add receiving logic
* add cli proof handling
* modify cli
* modify receiver type
* modify errcode
* optimize codes
* add denom prefix when source is true
* refactor code
* error return
* switch ibc antehandler to decorator pattern
* fix name/comment
* ICS 20 implementation (#5250 )
* move ics20 code to 20-transfer
* clean code
* fix compiling error
* add transfer module
* address ICS20 comments from review
* add routing callbacks
* clean code
* add missing err return
* modify err type
* modify err type
* add supply handling
* modify proof type
* add comments for msg and packet data
* add timeout supply handling
* modify module account name
* use supply keeper for burn and mint coins
* restructure keeper
* update alias and module.go
* golangci linter
* add ics20 handler to IBC handler
* update callbacks
* update ICS20 escrow address
* fix querier routes
* fix create client cli
* minor updates
* ibc querier test
* Refactor ibc/mock/bank into ICS 20 (#5264 )
* Most of code port from mock module to ICS 20
* A few minor fixes
* Apply suggestions from code review
Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
* Fix suggestions from autolinter
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Fix order of messages
* Add invalid height error code, check non-nil proof
* Fix linter error
* Return the underlying error
* Tendermint starts at height 1
* Apply suggestions from code review
* setup ics20 test suite
* add event to MsgRecvPacket
* update ibc keeper test to use test suite
* Add handshake commands
* WIP connection handshake
* WIP Connection Handshake
* use testsuite
* Add cliCtx.WaitForNBlocks
* fix connection handshake in progress
* fix connection handshake in progress
* Add print debugging (old-school)
* Add log line
* More debugging
* Set prove flag to true
* More debugging
* Use store query
* Fix query, hopefully
* Fix query path
* Hmm
* Fix context bug
* Generate & return & use consensus state proof
* Print debugging
* Add debugging
* Begin working on the channel creation command
* remove submodule prefix from keypath, fix addConnectionToClients to treat nil as empty array
* fix OpenConfirm, rm debugging code
* WIP channel shake 🕺
* WIP channel shake 🕺
* WIP channel shake 🕺
* WIP channel shake 🕺
* WIP channel shake 🕺
* WIP channel shake 🕺
* WIP channel shake 🕺
* Update bound port
* Add from flag to ICS 20 commands
* Undefine flag
* add debug
* Uncomment channel message handlers
* fix validatebasic identifier failure
* Fix printing
* add debug code
* CLI debugging
* fix counterpartyHops, channel handshake working w/o port
* Fix compilation error
* Push channel query command update
* Remove unused code
* Add gaiacli keys test
* Update error
* Add printf
* fix token restriciton
* comment out port
* fix querier to retrieve the next sequence
* Alter command to take arguments
* Name it packet-sequence
* add packet query utils
* Use the querier
* Packet is JSON
* printf the value
* fix query packet
* fix packet receive in progress
* lol
* export Packet fields, rename Packet.XXX() -> Packet.GetXXX()
* fix route
* add debug
* comment out port logic from packet.go
* token transfer now working
* fix client tx
* Integrate Evidence Implementation into ICS-02 (#5258 )
* implement evidence in ics-02
* fix build errors and import cycles
* address fede comments
* remove unnecessary pubkey and fix init
* add tests
* Apply suggestions from code review
* clean up
* finish tendermint tests
* complete merge
* Add tests for msgs
* ICS02 changes
* upstream changes
* fix
* upstream changes
* fix cons state
* context changes
* fix cli tx
* upstream changes
* upstream changes
* upstream changes
* upstream changes
* more cleanup
* Add unit tests for ICS03 (#5275 )
* add Is() to counterobject
* add readme, reflect ICS02 revision
* reflect downstream ics
* test in progress
* add test
* in progres
* fin rebase
* in progress
* fin rebase
* add CLIObject in progress
* cli in progress
* add CLIObject
* separate testing from tendermint
* add key to node
* add root and storekey to tests/node, add codec
* rm cli/query.go
* fix test
* fix lint
* fix lint
* add handler/msgs/client
* rm relay
* finalize rebase on 23 root/path sep
* fix lint, fix syntax
* fix querying
* extract out context withstore
* fix 02-client test
* fix 23-commitment test
* add query in progress
* rm freebase, reformat query
* add cli/handler/msg in progress
* add cli/msg/handler
* add CLIQuery, fix tests
* fix golangci
* add docs in progre
* add comments
* add comments
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* add comments in progress
* add comments
* fix comment
* add comments in progress
* recover IntEncoding scheme for integer
* add uint tests, don't use codec in custom types
* finalize merge
* add godoc
* add godoc in progress
* reformat test
* rm XXX
* add godoc
* modify store
* add query
* update query.go
* update query.go
* cli refactor in progress
* cli refactor in progress
* add Query to boolean.go
* fix key
* fix cli / merkle test
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* fix test
* fix client
* merge from ics04 branch
* merge from ics04 branch
* merge from ics04 branch
* merge from ics04 branch
* fix lint
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* applying review in progress
* apply review - make querier interface
* fix dependency
* fix dependency
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* reflect downstream change
* fix cli
* reflect downstream changes
* rm commented lines
* address review in progress
* address review, rm cleanup/closing
* rename Path -> Prefix
* Store accessor upstream changes (#5119 )
* Store accessor upstream changes (#5119 )
* add comments, reformat merkle querier
* rm merkle/utils
* ICS 23 upstream changes (#5120 )
* ICS 23 upstream changes (#5120 )
* update Value
* update test
* fix
* ICS 02 upstream changes (#5122 )
* ICS 02 upstream changes (#5122 )
* ICS 03 upstream changes (#5123 )
* ICS 03 upstream changes (#5123 )
* cleanup types and submodule
* more cleanup and godocs
* remove counterPartyManager/State and cleanup
* implement SubmitMisbehaviour and refactor
* errors
* events
* fix test
* refactors
* WIP refactor ICS03
* remove Mapping
* remove store accessors
* proposed refactor
* remove store accessors from ICS02
* refactor queriers, handler and clean keeper
* logger and tx long description
* ineffassign
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* remove store accessors
* refactor handshake to update it to the latest ICS03 spec
* update handler and msgs
* add verification functions
* update verification
* ICS02 module.go
* top level x/ibc structure
* update connection queries
* update connection tx
* remove extra files
* update expected client keeper and export verification funcs
* Update x/ibc/02-client/client/cli/query.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Update x/ibc/02-client/types/tendermint/consensus_state.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* address some of the review comments
* resolve some TODOs and address comments from review
* update connection versioning
* minor error updates
* minor UX improvements
* rename pkg
* fixes
* refactor ICS23
* cleanup types
* rename pkg and fix import
* implement batch verification
* gosimple suggestion
* various fixes; remove legacy tests; remove commitment path query
* alias
* minor updates from ICS23
* renaming
* update verification and rename root funcs
* move querier to x/ibc
* update query.go to use 'custom/...' query path
* add tests
* ICS 24 Implementation (#5229 )
* add validation functions
* validate path in ics-23
* address @fede comments
* move errors into host package
* flatten ICS23 structure
* fix ApplyPrefix
* updates from ICS23 and ICS24
* msg.ValidateBasic and ADR09 evidence interface
* complete types testing
* delete empty test file
* remove ibc errors from core error package
* custom JSON marshaling; msg.ValidateBasic; renaming of variables
* minor update
* custom JSON marshaling
* minor changes on commitment types
* R4R - Store consensus state correctly (#5242 )
* store consensus state correctly
* fix client example
* update alias
* update alias
* implement ics25
* update comment
* refactor method name
* fix file name
* add test case
* refactor code
* refactor code
* blocked the consensusState check
* refactor code
* fix golangci comments
* refactor testcase
* replace rootMultiStore with simApp
* remove unless code
* remove unless code & refactor test case
* refactor testcase
* goimports code
* clean up
* Add unit tests for ICS04 (#5286 )
* fix test
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* applying review in progress
* apply review - make querier interface
* fix cli errors
* fix dependency
* fix dependency
* reflect method name change
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* reflect downstream change
* fix cli
* reflect downstream changes
* reflect downstream changes
* fix from address in tx cli
* fix cli in progress(squash later)
* fix cli
* remove timeout, add channel cli
* fix golangci
* fix cli
* Clean up
* fix mock cli in progress
* finalize cleanup, mock cli wip
* add cli for mocksend
* fix handler
* rm commented lines
* address review in progress
* address review, rm cleanup/closing
* rename mock packages
* fix interface for gaia
* rename Path -> Prefix
* Store accessor upstream changes (#5119 )
* Store accessor upstream changes (#5119 )
* add comments, reformat merkle querier
* rm merkle/utils
* ICS 23 upstream changes (#5120 )
* ICS 23 upstream changes (#5120 )
* update Value
* update test
* fix
* ICS 02 upstream changes (#5122 )
* ICS 02 upstream changes (#5122 )
* ICS 03 upstream changes (#5123 )
* ICS 03 upstream changes (#5123 )
* update test
* cleanup types and submodule
* more cleanup and godocs
* remove counterPartyManager/State and cleanup
* implement SubmitMisbehaviour and refactor
* errors
* events
* fix test
* refactors
* WIP refactor ICS03
* remove Mapping
* remove store accessors
* proposed refactor
* remove store accessors from ICS02
* refactor queriers, handler and clean keeper
* logger and tx long description
* ineffassign
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* remove store accessors
* refactor handshake to update it to the latest ICS03 spec
* update handler and msgs
* add verification functions
* update verification
* ICS02 module.go
* top level x/ibc structure
* update connection queries
* update connection tx
* remove extra files
* refactor: remove store accessors, update keeper and types to match spec (WIP)
* update handshake and packet
* implement packet timeouts
* implement send and receive packet
* implement packet ACK
* update handler
* add channel errors
* channel querier
* update expected client keeper and export verification funcs
* ICS 05 Implementation
* release port and godocs
* Update x/ibc/02-client/client/cli/query.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Update x/ibc/02-client/types/tendermint/consensus_state.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* address some of the review comments
* resolve some TODOs and address comments from review
* update connection versioning
* minor error updates
* update ICS04 with downstream changes
* Implement tx cli actions
* add MsgSendPacket handler; msg validation, errors and events
* update errors and add port Keeper to ibc Keeper
* minor UX improvements
* rename pkg
* fixes
* refactor ICS23
* cleanup types
* ICS 5 updates (#5222 )
* Validate port identifiers
* Refactor to static bind
* Add comments
* Add 'GetPorts' query function
* rename pkg and fix import
* implement batch verification
* gosimple suggestion
* various fixes; remove legacy tests; remove commitment path query
* alias
* minor updates from ICS23
* renaming
* update verification and rename root funcs
* rm legacy tests; add query proofs support
* remove capability key generation and authentication logic
* move querier to x/ibc
* update query.go to use 'custom/...' query path
* add tests
* ICS 24 Implementation (#5229 )
* add validation functions
* validate path in ics-23
* address @fede comments
* move errors into host package
* flatten ICS23 structure
* fix ApplyPrefix
* updates from ICS23 and ICS24
* msg.ValidateBasic and ADR09 evidence interface
* complete types testing
* delete empty test file
* remove ibc errors from core error package
* custom JSON marshaling; msg.ValidateBasic; renaming of variables
* minor update
* custom JSON marshaling
* use host validation for port ids
* downstream changes; custom marshal JSON; msg validation, and update errors
* update errors and aliases
* update msg validation and CLI UX
* minor changes on commitment types
* fix channel and packet check (#5243 )
* R4R - Store consensus state correctly (#5242 )
* store consensus state correctly
* fix client example
* update alias
* update alias
* update alias and keeper.GetPort()
* authenticate port ID; remove send packet msg from CLI
* comment out handlers
* add ibc module to simapp
* ICS20 implementation (#5204 )
* add ibc bank mock
* modify handler
* import channel
* add receiving logic
* add cli proof handling
* modify cli
* modify receiver type
* modify errcode
* optimize codes
* add denom prefix when source is true
* refactor code
* error return
* switch ibc antehandler to decorator pattern
* fix name/comment
* ICS 20 implementation (#5250 )
* move ics20 code to 20-transfer
* clean code
* fix compiling error
* add transfer module
* address ICS20 comments from review
* add routing callbacks
* clean code
* add missing err return
* modify err type
* modify err type
* add supply handling
* modify proof type
* add comments for msg and packet data
* add timeout supply handling
* modify module account name
* use supply keeper for burn and mint coins
* restructure keeper
* update alias and module.go
* golangci linter
* add ics20 handler to IBC handler
* update callbacks
* update ICS20 escrow address
* fix querier routes
* fix create client cli
* minor updates
* ibc querier test
* Refactor ibc/mock/bank into ICS 20 (#5264 )
* Most of code port from mock module to ICS 20
* A few minor fixes
* Apply suggestions from code review
Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
* Fix suggestions from autolinter
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Fix order of messages
* Add invalid height error code, check non-nil proof
* Fix linter error
* Return the underlying error
* Tendermint starts at height 1
* Apply suggestions from code review
* setup ics20 test suite
* add event to MsgRecvPacket
* update ibc keeper test to use test suite
* Add handshake commands
* WIP connection handshake
* WIP Connection Handshake
* Add cliCtx.WaitForNBlocks
* fix connection handshake in progress
* fix connection handshake in progress
* add channel unit test
* add more channel tests
* fix channel test
* refactor channel test
* add capability test for channel
* make channel testing work
* optimize channel test
* delete types/errors.go
* modify capability test
* uncomment
* add msg tests for channel
* fix port capability store
* fix channel test
* use simapp
* modify channel test
* refactor channel msg test
* go fmt
* IBC alpha general cleanup (#5291 )
* remove prefix from keeper; update client queries; address ICS02 comments from @cwgoes
* add proof for root query
* golangci
* remove hardcoded bind port logic
* space
* WIP: register errors
* register errors; make format
* use new instead of register; unescape path
* golangci
* Fix codec issue in ics23
* Modify codec registration style to match previous working state
* write port tests
* ICS-02: Keeper Tests (#5329 )
* add keeper tests
* fix tendermint tests
* Fix proof verification; remove store key prefixes; add additional path validations (#5313 )
* fix poof verify
* minor cleanup
* fix tests
* remove key prefixes
* fix tests
* Add ICS20 tests (#5308 )
* add ics20 test
* delete debug
* fix ics20 test
* revert and modify
* optimize test
* add ics20 msg test
* fix test
* add packet tests and more msgs tests
* add ReceivePacket and callbacks tests
* fix callbacks test
* add handler tests for ics20
* fix handler tests
* minor cleanup
* test all positive amounts
* update test suite NotNil to Error
* fix ics20 tests
* expected error
* Add IBC REST endpoints (#5310 )
* add rest framework
* add rest endpoints for ibc connection
* add rest endpoints for ibc client
* add rest endpoints for ibc channel
* modify ibc rest api
* add rest endpoints for ibc transfer
* fix query route
* fix receive packet
* fix query client state api
* use sub module name instead of icsxx
* use const for prove judgement
* modify ibc rest api
* add api docs to swagger
* add ibc config
* fix proof path in swagger
* return query result proof
* update swagger docs
* parse prove
* clean up
* fix ibc rest api and swagger docs
* fix host validate
* fix typo
* add submitMisbehaviour error response in swagger
* fix rest queryRoot and swagger doc
* add response comments for each REST functions
* fix rest function comments
* fix IBC proofs (#5351 )
* fix ICS02 proofs
* fix ICS03 proofs
* fix ICS04 proofs
* fix ICS20 proofs
* make format
* fix build; comment handshakes
* ICS-2 Implement Misbehavior (#5321 )
* ibc client evidence route
* split evidence from misbehaviour
* clean up client events
* test misbehaviour and evidence
* remove comments
* remove frozen comments from demo
* Update x/ibc/02-client/types/tendermint/evidence_test.go
Co-Authored-By: Aditya <adityasripal@gmail.com>
* change evidence to detect malicious chain
* remove unnecessary sort
* fix evidence and persist committers to check misbehaviour
* minor fixes and remove incorrect tests
* add evidence tests
* remove debug statements
* cleanup evidence test
* start misbehaviour tests
* fix nondeterministic bug
* add same height and next height checks in misbehaviour
* fix bugs
* apply fede review suggestions
* finish code review changes
* fix GetCommitter and write keeper-level misbehaviour tests
* remove incorrect special case checking
* save
* final fixes
* save
* fix conflict
* fix conflicts and add back submit misbehaviour msg
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* save
* add godocs and fix test
* fix test panics in other modules
* Update x/ibc/02-client/keeper/client.go
Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
* add back aliases
* Misc ibc fixes (#5357 )
* fix cli ExactArgs
* remove full handshakes
* rm dup flag
* fix error handling
* Implement Query Committer methods in ICS-02 (#5402 )
* add query methods for committers in ICS-02
* Update x/ibc/02-client/keeper/keeper.go
* add REST docs
* fix test
* IBC UX improvements (#5364 )
* ICS02 iterators
* ICS03 iterators
* ICS04 iterators
* ICS02 client updates
* CLI connections
* setup queriers
* clean up queriers
* add tests
* IBC top-level querier tests
* update ICS02 keys
* update ICS03 keys
* make format
* update ICS04 keys
* fix a few tests
* fix ICS20 tests
* update keys
* fix ICS02 queries (#5425 )
* fix CLI JSON param unmarshaling (#5431 )
* Fix inconsistent string lookup functions (#5437 )
* fix inconsistent string lookup functions
* test client type and ordering
* channel and connection state tests
* address golangcibot comments
* fix test
* Update x/ibc error handling (#5462 )
* Merge PR #5428 : Add mod, exponentiation for uint
* Modified examples in distribution module (#5441 )
* Merge PR #5442 : Remove of the client/alias.go
* Merge PR #5445 : Mock rpcclient in tests for votes pagination
* Merge PR #5435 : Added iterator that allows to read only requested values
* Merge PR #5427 : Remove code duplication in x/auth/client/cli
* Merge PR #5421 : Refactor Error Handling
* update x/ibc error handling
* update ICS24 and ICS02 errors
* ICS03, ICS23 and common errors
* updates from master and errors from ICS04
* build
* fix ics20 tests
* fix tests
* golangcibot fixes
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
Co-authored-by: kaustubhkapatral <54210167+kaustubhkapatral@users.noreply.github.com>
Co-authored-by: Ferenc Fabian <qwer.kocka@gmail.com>
Co-authored-by: Dmitry Shulyak <yashulyak@gmail.com>
Co-authored-by: Alessio Treglia <quadrispro@ubuntu.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
* ADR 015 Implementation (#5401 )
* implement in progress
* rm unneccessary change under simapp, modify baseapp for codetxbreak
* fix test in progress
* fix test error
* fix golangci
* address minor comments
* mv antehandler to ante/, address comments
* fix GetCommitment => GetData, fix syntax
* checkout types/ to ibc-alpha
* checkout to origin/ibc-alpha
* fix branch problem
* fix syntax error
* recover PacketI interface
* mv recvpacket rest from 20 -> 04
* address minor comments
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* rm wrong files
* Apply suggestions from code review
* PacketDataI field is now named, not embed
* add acknowledgement hashing
* rename finalization functiosn
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Rename GetCommitment() to GetBytes()
* Add recv sequence incr to RecvPacket()
* Revert but where is PacketExecuted() called
* Call PacketExecuted(), check seq in RecvPacket()
* The port is called "bank"
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Update simapp/app.go
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Remove omitempty
* Add godoc
* Move events
* set ProofVerificationDecorator on AnteHandler
* Apply suggestions from code review
Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
* format
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
Co-authored-by: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
* IBC alpha
* ICS 23 Implementation (#4515 )
* add mapping
* rm unused mapping/*, rm interfaces
* rm unused code
* mv mapping -> state, rm x/ibc
* rm GetIfExists
* add key
* rm custom encoding/decoding in enum/bool
* fix lint
* rm tests
* add commitment
* newtyped remote values
* newtyped context
* revert context newtype
* add README, keypath
* reflect downstream ics
* add merkle
* add test for proving
* soft coded root keypath
* add update
* remove RootUpdate
* separate keypath and keuprefix
* add codec
* separate root/path
* add path to codec
* add docs in progre
* add comments
* add comments
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* add comments in progress
* add comments
* fix comment
* add comments in progress
* recover IntEncoding scheme for integer
* add uint tests, don't use codec in custom types
* finalize merge
* add godoc
* reformat test
* rm XXX
* add godoc
* add query
* update query.go
* update query.go
* add Query to boolean.go
* fix key
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* merge from ics04 branch
* merge from ics04 branch
* fix lint
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* applying review in progress
* apply review - make querier interface
* fix dependency
* revise querier interface to work both on cli & store
* rm commented lines
* rename Path -> Prefix
* Store accessor upstream changes (#5119 )
* Store accessor upstream changes (#5119 )
* add comments, reformat merkle querier
* rm merkle/utils
* ICS 23 upstream changes (#5120 )
* ICS 23 upstream changes (#5120 )
* update Value
* remove Mapping
* remove store accessors
* refactor ICS23
* cleanup types
* implement batch verification
* gosimple suggestion
* alias
* add tests
* ICS 24 Implementation (#5229 )
* add validation functions
* validate path in ics-23
* address @fede comments
* move errors into host package
* flatten ICS23 structure
* fix ApplyPrefix
* complete types testing
* delete empty test file
* remove ibc errors from core error package
* start batch-verify tests
* minor changes on commitment types
* use testsuite
* upstream changes
* context changes
* ICS 02 Implementation (#4516 )
* add mapping
* rm unused mapping/*, rm interfaces
* rm unused code
* mv mapping -> state, rm x/ibc
* rm GetIfExists
* add key
* rm custom encoding/decoding in enum/bool
* fix lint
* rm tests
* add commitment
* newtyped remote values
* newtyped context
* revert context newtype
* add README, keypath
* reflect downstream ics
* add merkle
* add test for proving
* soft coded root keypath
* add update
* remove RootUpdate
* separate keypath and keuprefix
* add codec
* separate root/path
* add path to codec
* add client
* add counterpartymanager
* fix manager
* add Is() to counterobject
* add readme, reflect ICS02 revision
* reflect downstream ics
* test in progress
* add test
* in progres
* fin rebase
* in progress
* fin rebase
* add CLIObject in progress
* cli in progress
* add CLIObject
* separate testing from tendermint
* add key to node
* add root and storekey to tests/node, add codec
* rm cli/query.go
* fix test
* fix lint
* fix lint
* add handler/msgs/client
* rm relay
* finalize rebase on 23 root/path sep
* fix lint, fix syntax
* rm freebase, reformat query
* add docs in progre
* add comments
* add comments
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* add comments in progress
* add comments
* fix comment
* add comments in progress
* recover IntEncoding scheme for integer
* add uint tests, don't use codec in custom types
* finalize merge
* add godoc
* add godoc in progress
* reformat test
* rm XXX
* add godoc
* modify store
* add query
* update query.go
* update query.go
* cli refactor in progress
* cli refactor in progress
* add Query to boolean.go
* fix key
* fix cli / merkle test
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* merge from ics04 branch
* merge from ics04 branch
* merge from ics04 branch
* fix lint
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* applying review in progress
* apply review - make querier interface
* fix dependency
* fix dependency
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* reflect downstream change
* fix cli
* rm commented lines
* address review in progress
* rename Path -> Prefix
* Store accessor upstream changes (#5119 )
* Store accessor upstream changes (#5119 )
* add comments, reformat merkle querier
* rm merkle/utils
* ICS 23 upstream changes (#5120 )
* ICS 23 upstream changes (#5120 )
* update Value
* update test
* fix
* ICS 02 upstream changes (#5122 )
* ICS 02 upstream changes (#5122 )
* cleanup types and submodule
* more cleanup and godocs
* remove counterPartyManager/State and cleanup
* implement SubmitMisbehaviour and refactor
* errors
* events
* fix test
* refactors
* remove Mapping
* remove store accessors
* proposed refactor
* remove store accessors from ICS02
* refactor queriers, handler and clean keeper
* logger and tx long description
* ineffassign
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* add verification functions
* ICS02 module.go
* top level x/ibc structure
* Update x/ibc/02-client/client/cli/query.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Update x/ibc/02-client/types/tendermint/consensus_state.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* address some of the review comments
* minor UX improvements
* rename pkg
* fixes
* refactor ICS23
* cleanup types
* implement batch verification
* gosimple suggestion
* various fixes; remove legacy tests; remove commitment path query
* alias
* minor updates from ICS23
* renaming
* update verification and rename root funcs
* move querier to x/ibc
* update query.go to use 'custom/...' query path
* add tests
* ICS 24 Implementation (#5229 )
* add validation functions
* validate path in ics-23
* address @fede comments
* move errors into host package
* flatten ICS23 structure
* fix ApplyPrefix
* updates from ICS23 and ICS24
* msg.ValidateBasic and ADR09 evidence interface
* complete types testing
* delete empty test file
* remove ibc errors from core error package
* custom JSON marshaling
* start batch-verify tests
* minor changes on commitment types
* R4R - Store consensus state correctly (#5242 )
* store consensus state correctly
* fix client example
* update alias
* use testsuite
* Integrate Evidence Implementation into ICS-02 (#5258 )
* implement evidence in ics-02
* fix build errors and import cycles
* address fede comments
* remove unnecessary pubkey and fix init
* add tests
* finish tendermint tests
* complete merge
* Add tests for msgs
* upstream changes
* fix
* upstream changes
* fix cons state
* context changes
* ICS 03 Implementation (#4517 )
* add test
* in progres
* fin rebase
* in progress
* fin rebase
* add CLIObject in progress
* cli in progress
* add CLIObject
* separate testing from tendermint
* add key to node
* add root and storekey to tests/node, add codec
* rm cli/query.go
* fix test
* fix lint
* fix lint
* add handler/msgs/client
* rm relay
* finalize rebase on 23 root/path sep
* fix lint, fix syntax
* fix querying
* extract out context withstore
* fix 02-client test
* fix 23-commitment test
* add query in progress
* rm freebase, reformat query
* add cli/handler/msg in progress
* add cli/msg/handler
* add CLIQuery, fix tests
* fix golangci
* add docs in progre
* add comments
* add comments
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* add comments in progress
* add comments
* fix comment
* add comments in progress
* recover IntEncoding scheme for integer
* add uint tests, don't use codec in custom types
* finalize merge
* add godoc
* add godoc in progress
* reformat test
* rm XXX
* add godoc
* modify store
* add query
* update query.go
* update query.go
* cli refactor in progress
* cli refactor in progress
* add Query to boolean.go
* fix key
* fix cli / merkle test
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* fix test
* fix client
* merge from ics04 branch
* merge from ics04 branch
* merge from ics04 branch
* merge from ics04 branch
* fix lint
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* applying review in progress
* apply review - make querier interface
* fix dependency
* fix dependency
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* reflect downstream change
* fix cli
* reflect downstream changes
* rm commented lines
* address review in progress
* address review, rm cleanup/closing
* rename Path -> Prefix
* Store accessor upstream changes (#5119 )
* Store accessor upstream changes (#5119 )
* add comments, reformat merkle querier
* rm merkle/utils
* ICS 23 upstream changes (#5120 )
* ICS 23 upstream changes (#5120 )
* update Value
* update test
* fix
* ICS 02 upstream changes (#5122 )
* ICS 02 upstream changes (#5122 )
* ICS 03 upstream changes (#5123 )
* ICS 03 upstream changes (#5123 )
* cleanup types and submodule
* more cleanup and godocs
* remove counterPartyManager/State and cleanup
* implement SubmitMisbehaviour and refactor
* errors
* events
* fix test
* refactors
* WIP refactor ICS03
* remove Mapping
* remove store accessors
* proposed refactor
* remove store accessors from ICS02
* refactor queriers, handler and clean keeper
* logger and tx long description
* ineffassign
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* remove store accessors
* refactor handshake to update it to the latest ICS03 spec
* update handler and msgs
* add verification functions
* update verification
* ICS02 module.go
* top level x/ibc structure
* update connection queries
* update connection tx
* remove extra files
* update expected client keeper and export verification funcs
* Update x/ibc/02-client/client/cli/query.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Update x/ibc/02-client/types/tendermint/consensus_state.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* address some of the review comments
* resolve some TODOs and address comments from review
* update connection versioning
* minor error updates
* minor UX improvements
* rename pkg
* fixes
* refactor ICS23
* cleanup types
* rename pkg and fix import
* implement batch verification
* gosimple suggestion
* various fixes; remove legacy tests; remove commitment path query
* alias
* minor updates from ICS23
* renaming
* update verification and rename root funcs
* move querier to x/ibc
* update query.go to use 'custom/...' query path
* add tests
* ICS 24 Implementation (#5229 )
* add validation functions
* validate path in ics-23
* address @fede comments
* move errors into host package
* flatten ICS23 structure
* fix ApplyPrefix
* updates from ICS23 and ICS24
* msg.ValidateBasic and ADR09 evidence interface
* complete types testing
* delete empty test file
* remove ibc errors from core error package
* custom JSON marshaling; msg.ValidateBasic; renaming of variables
* minor update
* custom JSON marshaling
* start batch-verify tests
* minor changes on commitment types
* R4R - Store consensus state correctly (#5242 )
* store consensus state correctly
* fix client example
* update alias
* update alias
* use testsuite
* Integrate Evidence Implementation into ICS-02 (#5258 )
* implement evidence in ics-02
* fix build errors and import cycles
* address fede comments
* remove unnecessary pubkey and fix init
* add tests
* finish tendermint tests
* complete merge
* Add tests for msgs
* upstream changes
* fix
* upstream changes
* fix cons state
* context changes
* fix cli tx
* upstream changes
* fix
* ICS 05 implementation (#5193 )
* fix lint
* fix lint
* add handler/msgs/client
* rm relay
* finalize rebase on 23 root/path sep
* fix lint, fix syntax
* fix querying
* extract out context withstore
* fix 02-client test
* fix 23-commitment test
* add query in progress
* rm freebase, reformat query
* add cli/handler/msg in progress
* add cli/msg/handler
* add CLIQuery, fix tests
* fix golangci
* add docs in progre
* add comments
* add comments
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* add comments in progress
* add comments
* fix comment
* add comments in progress
* recover IntEncoding scheme for integer
* add uint tests, don't use codec in custom types
* finalize merge
* add godoc
* add godoc in progress
* reformat test
* rm XXX
* add godoc
* modify store
* add query
* update query.go
* update query.go
* cli refactor in progress
* cli refactor in progress
* add Query to boolean.go
* fix key
* fix cli / merkle test
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* fix test
* fix client
* merge from ics04 branch
* merge from ics04 branch
* merge from ics04 branch
* merge from ics04 branch
* fix lint
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* applying review in progress
* apply review - make querier interface
* fix dependency
* fix dependency
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* reflect downstream change
* fix cli
* reflect downstream changes
* rm commented lines
* address review in progress
* address review, rm cleanup/closing
* rename Path -> Prefix
* Store accessor upstream changes (#5119 )
* Store accessor upstream changes (#5119 )
* add comments, reformat merkle querier
* rm merkle/utils
* ICS 23 upstream changes (#5120 )
* ICS 23 upstream changes (#5120 )
* update Value
* update test
* fix
* ICS 02 upstream changes (#5122 )
* ICS 02 upstream changes (#5122 )
* ICS 03 upstream changes (#5123 )
* ICS 03 upstream changes (#5123 )
* cleanup types and submodule
* more cleanup and godocs
* remove counterPartyManager/State and cleanup
* implement SubmitMisbehaviour and refactor
* errors
* events
* fix test
* refactors
* WIP refactor ICS03
* remove Mapping
* remove store accessors
* proposed refactor
* remove store accessors from ICS02
* refactor queriers, handler and clean keeper
* logger and tx long description
* ineffassign
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* remove store accessors
* refactor handshake to update it to the latest ICS03 spec
* update handler and msgs
* add verification functions
* update verification
* ICS02 module.go
* top level x/ibc structure
* update connection queries
* update connection tx
* remove extra files
* update expected client keeper and export verification funcs
* ICS 05 Implementation
* release port and godocs
* Update x/ibc/02-client/client/cli/query.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Update x/ibc/02-client/types/tendermint/consensus_state.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* address some of the review comments
* resolve some TODOs and address comments from review
* update connection versioning
* minor error updates
* update errors and add port Keeper to ibc Keeper
* minor UX improvements
* rename pkg
* fixes
* refactor ICS23
* cleanup types
* ICS 5 updates (#5222 )
* Validate port identifiers
* Refactor to static bind
* Add comments
* Add 'GetPorts' query function
* rename pkg and fix import
* implement batch verification
* gosimple suggestion
* various fixes; remove legacy tests; remove commitment path query
* alias
* minor updates from ICS23
* renaming
* update verification and rename root funcs
* move querier to x/ibc
* update query.go to use 'custom/...' query path
* add tests
* ICS 24 Implementation (#5229 )
* add validation functions
* validate path in ics-23
* address @fede comments
* move errors into host package
* flatten ICS23 structure
* fix ApplyPrefix
* updates from ICS23 and ICS24
* msg.ValidateBasic and ADR09 evidence interface
* complete types testing
* delete empty test file
* remove ibc errors from core error package
* custom JSON marshaling; msg.ValidateBasic; renaming of variables
* minor update
* custom JSON marshaling
* use host validation for port ids
* start batch-verify tests
* minor changes on commitment types
* R4R - Store consensus state correctly (#5242 )
* store consensus state correctly
* fix client example
* update alias
* update alias
* update alias and keeper.GetPort()
* use testsuite
* Integrate Evidence Implementation into ICS-02 (#5258 )
* implement evidence in ics-02
* fix build errors and import cycles
* address fede comments
* remove unnecessary pubkey and fix init
* add tests
* finish tendermint tests
* complete merge
* Add tests for msgs
* upstream changes
* fix
* upstream changes
* fix cons state
* context changes
* fix cli tx
* upstream changes
* upstream changes
* ICS 04 Implementation (#4548 )
* merge from ics04 branch
* merge from ics04 branch
* fix lint
* add port
* fix test
* add mocks
* fix connid -> portid in handshake.go
* add mock
* add ibc module.go, finalize mock
* add keeper
* add StoreKey const
* fix test
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* applying review in progress
* apply review - make querier interface
* fix cli errors
* fix dependency
* fix dependency
* reflect method name change
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* reflect downstream change
* fix cli
* reflect downstream changes
* reflect downstream changes
* fix from address in tx cli
* fix cli in progress(squash later)
* fix cli
* remove timeout, add channel cli
* fix golangci
* fix cli
* Clean up
* fix mock cli in progress
* finalize cleanup, mock cli wip
* add cli for mocksend
* fix handler
* rm commented lines
* address review in progress
* address review, rm cleanup/closing
* rename mock packages
* fix interface for gaia
* rename Path -> Prefix
* Store accessor upstream changes (#5119 )
* Store accessor upstream changes (#5119 )
* add comments, reformat merkle querier
* rm merkle/utils
* ICS 23 upstream changes (#5120 )
* ICS 23 upstream changes (#5120 )
* update Value
* update test
* fix
* ICS 02 upstream changes (#5122 )
* ICS 02 upstream changes (#5122 )
* ICS 03 upstream changes (#5123 )
* ICS 03 upstream changes (#5123 )
* update test
* cleanup types and submodule
* more cleanup and godocs
* remove counterPartyManager/State and cleanup
* implement SubmitMisbehaviour and refactor
* errors
* events
* fix test
* refactors
* WIP refactor ICS03
* remove Mapping
* remove store accessors
* proposed refactor
* remove store accessors from ICS02
* refactor queriers, handler and clean keeper
* logger and tx long description
* ineffassign
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* remove store accessors
* refactor handshake to update it to the latest ICS03 spec
* update handler and msgs
* add verification functions
* update verification
* ICS02 module.go
* top level x/ibc structure
* update connection queries
* update connection tx
* remove extra files
* refactor: remove store accessors, update keeper and types to match spec (WIP)
* update handshake and packet
* implement packet timeouts
* implement send and receive packet
* implement packet ACK
* update handler
* add channel errors
* channel querier
* update expected client keeper and export verification funcs
* ICS 05 Implementation
* release port and godocs
* Update x/ibc/02-client/client/cli/query.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Update x/ibc/02-client/types/tendermint/consensus_state.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* address some of the review comments
* resolve some TODOs and address comments from review
* update connection versioning
* minor error updates
* update ICS04 with downstream changes
* Implement tx cli actions
* add MsgSendPacket handler; msg validation, errors and events
* update errors and add port Keeper to ibc Keeper
* minor UX improvements
* rename pkg
* fixes
* refactor ICS23
* cleanup types
* ICS 5 updates (#5222 )
* Validate port identifiers
* Refactor to static bind
* Add comments
* Add 'GetPorts' query function
* rename pkg and fix import
* implement batch verification
* gosimple suggestion
* various fixes; remove legacy tests; remove commitment path query
* alias
* minor updates from ICS23
* renaming
* update verification and rename root funcs
* rm legacy tests; add query proofs support
* remove capability key generation and authentication logic
* move querier to x/ibc
* update query.go to use 'custom/...' query path
* add tests
* ICS 24 Implementation (#5229 )
* add validation functions
* validate path in ics-23
* address @fede comments
* move errors into host package
* flatten ICS23 structure
* fix ApplyPrefix
* updates from ICS23 and ICS24
* msg.ValidateBasic and ADR09 evidence interface
* complete types testing
* delete empty test file
* remove ibc errors from core error package
* custom JSON marshaling; msg.ValidateBasic; renaming of variables
* minor update
* custom JSON marshaling
* use host validation for port ids
* downstream changes; custom marshal JSON; msg validation, and update errors
* update errors and aliases
* start batch-verify tests
* update msg validation and CLI UX
* minor changes on commitment types
* fix channel and packet check (#5243 )
* R4R - Store consensus state correctly (#5242 )
* store consensus state correctly
* fix client example
* update alias
* update alias
* update alias and keeper.GetPort()
* authenticate port ID; remove send packet msg from CLI
* comment out handlers
* use testsuite
* Integrate Evidence Implementation into ICS-02 (#5258 )
* implement evidence in ics-02
* fix build errors and import cycles
* address fede comments
* remove unnecessary pubkey and fix init
* add tests
* finish tendermint tests
* complete merge
* Add tests for msgs
* upstream changes
* fix
* upstream changes
* fix cons state
* context changes
* fix cli tx
* upstream changes
* upstream changes
* upstream changes
* IBC v1.0.0 (#5245 )
* applying review in progress
* apply review - make querier interface
* fix cli errors
* fix dependency
* fix dependency
* reflect method name change
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* reflect downstream change
* fix cli
* reflect downstream changes
* reflect downstream changes
* fix from address in tx cli
* fix cli in progress(squash later)
* fix cli
* remove timeout, add channel cli
* fix golangci
* fix cli
* Clean up
* fix mock cli in progress
* finalize cleanup, mock cli wip
* add cli for mocksend
* fix handler
* rm commented lines
* address review in progress
* address review, rm cleanup/closing
* rename mock packages
* fix interface for gaia
* rename Path -> Prefix
* Store accessor upstream changes (#5119 )
* Store accessor upstream changes (#5119 )
* add comments, reformat merkle querier
* rm merkle/utils
* ICS 23 upstream changes (#5120 )
* ICS 23 upstream changes (#5120 )
* update Value
* update test
* fix
* ICS 02 upstream changes (#5122 )
* ICS 02 upstream changes (#5122 )
* ICS 03 upstream changes (#5123 )
* ICS 03 upstream changes (#5123 )
* update test
* cleanup types and submodule
* more cleanup and godocs
* remove counterPartyManager/State and cleanup
* implement SubmitMisbehaviour and refactor
* errors
* events
* fix test
* refactors
* WIP refactor ICS03
* remove Mapping
* remove store accessors
* proposed refactor
* remove store accessors from ICS02
* refactor queriers, handler and clean keeper
* logger and tx long description
* ineffassign
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* remove store accessors
* refactor handshake to update it to the latest ICS03 spec
* update handler and msgs
* add verification functions
* update verification
* ICS02 module.go
* top level x/ibc structure
* update connection queries
* update connection tx
* remove extra files
* refactor: remove store accessors, update keeper and types to match spec (WIP)
* update handshake and packet
* implement packet timeouts
* implement send and receive packet
* implement packet ACK
* update handler
* add channel errors
* channel querier
* update expected client keeper and export verification funcs
* ICS 05 Implementation
* release port and godocs
* Update x/ibc/02-client/client/cli/query.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Update x/ibc/02-client/types/tendermint/consensus_state.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* address some of the review comments
* resolve some TODOs and address comments from review
* update connection versioning
* minor error updates
* update ICS04 with downstream changes
* Implement tx cli actions
* add MsgSendPacket handler; msg validation, errors and events
* update errors and add port Keeper to ibc Keeper
* minor UX improvements
* rename pkg
* fixes
* refactor ICS23
* cleanup types
* ICS 5 updates (#5222 )
* Validate port identifiers
* Refactor to static bind
* Add comments
* Add 'GetPorts' query function
* rename pkg and fix import
* implement batch verification
* gosimple suggestion
* various fixes; remove legacy tests; remove commitment path query
* alias
* minor updates from ICS23
* renaming
* update verification and rename root funcs
* rm legacy tests; add query proofs support
* remove capability key generation and authentication logic
* move querier to x/ibc
* update query.go to use 'custom/...' query path
* add tests
* ICS 24 Implementation (#5229 )
* add validation functions
* validate path in ics-23
* address @fede comments
* move errors into host package
* flatten ICS23 structure
* fix ApplyPrefix
* updates from ICS23 and ICS24
* msg.ValidateBasic and ADR09 evidence interface
* complete types testing
* delete empty test file
* remove ibc errors from core error package
* custom JSON marshaling; msg.ValidateBasic; renaming of variables
* minor update
* custom JSON marshaling
* use host validation for port ids
* downstream changes; custom marshal JSON; msg validation, and update errors
* update errors and aliases
* start batch-verify tests
* update msg validation and CLI UX
* minor changes on commitment types
* fix channel and packet check (#5243 )
* R4R - Store consensus state correctly (#5242 )
* store consensus state correctly
* fix client example
* update alias
* update alias
* update alias and keeper.GetPort()
* authenticate port ID; remove send packet msg from CLI
* comment out handlers
* add ibc module to simapp
* ICS20 implementation (#5204 )
* add ibc bank mock
* modify handler
* import channel
* add receiving logic
* add cli proof handling
* modify cli
* modify receiver type
* modify errcode
* optimize codes
* add denom prefix when source is true
* refactor code
* error return
* switch ibc antehandler to decorator pattern
* fix name/comment
* ICS 20 implementation (#5250 )
* move ics20 code to 20-transfer
* clean code
* fix compiling error
* add transfer module
* address ICS20 comments from review
* add routing callbacks
* clean code
* add missing err return
* modify err type
* modify err type
* add supply handling
* modify proof type
* add comments for msg and packet data
* add timeout supply handling
* modify module account name
* use supply keeper for burn and mint coins
* restructure keeper
* update alias and module.go
* golangci linter
* add ics20 handler to IBC handler
* update callbacks
* update ICS20 escrow address
* fix querier routes
* fix create client cli
* minor updates
* ibc querier test
* Refactor ibc/mock/bank into ICS 20 (#5264 )
* Most of code port from mock module to ICS 20
* A few minor fixes
* Apply suggestions from code review
Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
* Fix suggestions from autolinter
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Fix order of messages
* Add invalid height error code, check non-nil proof
* Fix linter error
* Return the underlying error
* Tendermint starts at height 1
* Apply suggestions from code review
* setup ics20 test suite
* add event to MsgRecvPacket
* update ibc keeper test to use test suite
* Add handshake commands
* WIP connection handshake
* WIP Connection Handshake
* use testsuite
* Add cliCtx.WaitForNBlocks
* fix connection handshake in progress
* fix connection handshake in progress
* Integrate Evidence Implementation into ICS-02 (#5258 )
* implement evidence in ics-02
* fix build errors and import cycles
* address fede comments
* remove unnecessary pubkey and fix init
* add tests
* finish tendermint tests
* complete merge
* Add tests for msgs
* upstream changes
* fix
* upstream changes
* fix cons state
* context changes
* fix cli tx
* upstream changes
* upstream changes
* upstream changes
* upstream changes
* IBC demo fixes (#5267 )
* WIP refactor ICS03
* remove Mapping
* remove store accessors
* proposed refactor
* remove store accessors from ICS02
* refactor queriers, handler and clean keeper
* logger and tx long description
* ineffassign
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* remove store accessors
* refactor handshake to update it to the latest ICS03 spec
* update handler and msgs
* add verification functions
* update verification
* ICS02 module.go
* top level x/ibc structure
* update connection queries
* update connection tx
* remove extra files
* refactor: remove store accessors, update keeper and types to match spec (WIP)
* update handshake and packet
* implement packet timeouts
* implement send and receive packet
* implement packet ACK
* update handler
* add channel errors
* channel querier
* update expected client keeper and export verification funcs
* ICS 05 Implementation
* release port and godocs
* Update x/ibc/02-client/client/cli/query.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Update x/ibc/02-client/types/tendermint/consensus_state.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* address some of the review comments
* resolve some TODOs and address comments from review
* update connection versioning
* minor error updates
* update ICS04 with downstream changes
* Implement tx cli actions
* add MsgSendPacket handler; msg validation, errors and events
* update errors and add port Keeper to ibc Keeper
* minor UX improvements
* rename pkg
* fixes
* refactor ICS23
* cleanup types
* ICS 5 updates (#5222 )
* Validate port identifiers
* Refactor to static bind
* Add comments
* Add 'GetPorts' query function
* rename pkg and fix import
* implement batch verification
* gosimple suggestion
* various fixes; remove legacy tests; remove commitment path query
* alias
* minor updates from ICS23
* renaming
* update verification and rename root funcs
* rm legacy tests; add query proofs support
* remove capability key generation and authentication logic
* move querier to x/ibc
* update query.go to use 'custom/...' query path
* add tests
* ICS 24 Implementation (#5229 )
* add validation functions
* validate path in ics-23
* address @fede comments
* move errors into host package
* flatten ICS23 structure
* fix ApplyPrefix
* updates from ICS23 and ICS24
* msg.ValidateBasic and ADR09 evidence interface
* complete types testing
* delete empty test file
* remove ibc errors from core error package
* custom JSON marshaling; msg.ValidateBasic; renaming of variables
* minor update
* custom JSON marshaling
* use host validation for port ids
* downstream changes; custom marshal JSON; msg validation, and update errors
* update errors and aliases
* start batch-verify tests
* update msg validation and CLI UX
* minor changes on commitment types
* fix channel and packet check (#5243 )
* R4R - Store consensus state correctly (#5242 )
* store consensus state correctly
* fix client example
* update alias
* update alias
* update alias and keeper.GetPort()
* authenticate port ID; remove send packet msg from CLI
* comment out handlers
* add ibc module to simapp
* ICS20 implementation (#5204 )
* add ibc bank mock
* modify handler
* import channel
* add receiving logic
* add cli proof handling
* modify cli
* modify receiver type
* modify errcode
* optimize codes
* add denom prefix when source is true
* refactor code
* error return
* switch ibc antehandler to decorator pattern
* fix name/comment
* ICS 20 implementation (#5250 )
* move ics20 code to 20-transfer
* clean code
* fix compiling error
* add transfer module
* address ICS20 comments from review
* add routing callbacks
* clean code
* add missing err return
* modify err type
* modify err type
* add supply handling
* modify proof type
* add comments for msg and packet data
* add timeout supply handling
* modify module account name
* use supply keeper for burn and mint coins
* restructure keeper
* update alias and module.go
* golangci linter
* add ics20 handler to IBC handler
* update callbacks
* update ICS20 escrow address
* fix querier routes
* fix create client cli
* minor updates
* ibc querier test
* Refactor ibc/mock/bank into ICS 20 (#5264 )
* Most of code port from mock module to ICS 20
* A few minor fixes
* Apply suggestions from code review
Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
* Fix suggestions from autolinter
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Fix order of messages
* Add invalid height error code, check non-nil proof
* Fix linter error
* Return the underlying error
* Tendermint starts at height 1
* Apply suggestions from code review
* setup ics20 test suite
* add event to MsgRecvPacket
* update ibc keeper test to use test suite
* Add handshake commands
* WIP connection handshake
* WIP Connection Handshake
* use testsuite
* Add cliCtx.WaitForNBlocks
* fix connection handshake in progress
* fix connection handshake in progress
* Add print debugging (old-school)
* Add log line
* More debugging
* Set prove flag to true
* More debugging
* Use store query
* Fix query, hopefully
* Fix query path
* Hmm
* Fix context bug
* Generate & return & use consensus state proof
* Print debugging
* Add debugging
* Begin working on the channel creation command
* remove submodule prefix from keypath, fix addConnectionToClients to treat nil as empty array
* fix OpenConfirm, rm debugging code
* WIP channel shake 🕺
* WIP channel shake 🕺
* WIP channel shake 🕺
* WIP channel shake 🕺
* WIP channel shake 🕺
* WIP channel shake 🕺
* WIP channel shake 🕺
* Update bound port
* Add from flag to ICS 20 commands
* Undefine flag
* add debug
* Uncomment channel message handlers
* fix validatebasic identifier failure
* Fix printing
* add debug code
* CLI debugging
* fix counterpartyHops, channel handshake working w/o port
* Fix compilation error
* Push channel query command update
* Remove unused code
* Add gaiacli keys test
* Update error
* Add printf
* fix token restriciton
* comment out port
* fix querier to retrieve the next sequence
* Alter command to take arguments
* Name it packet-sequence
* add packet query utils
* Use the querier
* Packet is JSON
* printf the value
* fix query packet
* fix packet receive in progress
* lol
* export Packet fields, rename Packet.XXX() -> Packet.GetXXX()
* fix route
* add debug
* comment out port logic from packet.go
* token transfer now working
* fix client tx
* Integrate Evidence Implementation into ICS-02 (#5258 )
* implement evidence in ics-02
* fix build errors and import cycles
* address fede comments
* remove unnecessary pubkey and fix init
* add tests
* Apply suggestions from code review
* clean up
* finish tendermint tests
* complete merge
* Add tests for msgs
* ICS02 changes
* upstream changes
* fix
* upstream changes
* fix cons state
* context changes
* fix cli tx
* upstream changes
* upstream changes
* upstream changes
* upstream changes
* more cleanup
* Add unit tests for ICS03 (#5275 )
* add Is() to counterobject
* add readme, reflect ICS02 revision
* reflect downstream ics
* test in progress
* add test
* in progres
* fin rebase
* in progress
* fin rebase
* add CLIObject in progress
* cli in progress
* add CLIObject
* separate testing from tendermint
* add key to node
* add root and storekey to tests/node, add codec
* rm cli/query.go
* fix test
* fix lint
* fix lint
* add handler/msgs/client
* rm relay
* finalize rebase on 23 root/path sep
* fix lint, fix syntax
* fix querying
* extract out context withstore
* fix 02-client test
* fix 23-commitment test
* add query in progress
* rm freebase, reformat query
* add cli/handler/msg in progress
* add cli/msg/handler
* add CLIQuery, fix tests
* fix golangci
* add docs in progre
* add comments
* add comments
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* add comments in progress
* add comments
* fix comment
* add comments in progress
* recover IntEncoding scheme for integer
* add uint tests, don't use codec in custom types
* finalize merge
* add godoc
* add godoc in progress
* reformat test
* rm XXX
* add godoc
* modify store
* add query
* update query.go
* update query.go
* cli refactor in progress
* cli refactor in progress
* add Query to boolean.go
* fix key
* fix cli / merkle test
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* godoc cleanup
* fix test
* fix client
* merge from ics04 branch
* merge from ics04 branch
* merge from ics04 branch
* merge from ics04 branch
* fix lint
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* applying review in progress
* apply review - make querier interface
* fix dependency
* fix dependency
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* reflect downstream change
* fix cli
* reflect downstream changes
* rm commented lines
* address review in progress
* address review, rm cleanup/closing
* rename Path -> Prefix
* Store accessor upstream changes (#5119 )
* Store accessor upstream changes (#5119 )
* add comments, reformat merkle querier
* rm merkle/utils
* ICS 23 upstream changes (#5120 )
* ICS 23 upstream changes (#5120 )
* update Value
* update test
* fix
* ICS 02 upstream changes (#5122 )
* ICS 02 upstream changes (#5122 )
* ICS 03 upstream changes (#5123 )
* ICS 03 upstream changes (#5123 )
* cleanup types and submodule
* more cleanup and godocs
* remove counterPartyManager/State and cleanup
* implement SubmitMisbehaviour and refactor
* errors
* events
* fix test
* refactors
* WIP refactor ICS03
* remove Mapping
* remove store accessors
* proposed refactor
* remove store accessors from ICS02
* refactor queriers, handler and clean keeper
* logger and tx long description
* ineffassign
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* remove store accessors
* refactor handshake to update it to the latest ICS03 spec
* update handler and msgs
* add verification functions
* update verification
* ICS02 module.go
* top level x/ibc structure
* update connection queries
* update connection tx
* remove extra files
* update expected client keeper and export verification funcs
* Update x/ibc/02-client/client/cli/query.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Update x/ibc/02-client/types/tendermint/consensus_state.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* address some of the review comments
* resolve some TODOs and address comments from review
* update connection versioning
* minor error updates
* minor UX improvements
* rename pkg
* fixes
* refactor ICS23
* cleanup types
* rename pkg and fix import
* implement batch verification
* gosimple suggestion
* various fixes; remove legacy tests; remove commitment path query
* alias
* minor updates from ICS23
* renaming
* update verification and rename root funcs
* move querier to x/ibc
* update query.go to use 'custom/...' query path
* add tests
* ICS 24 Implementation (#5229 )
* add validation functions
* validate path in ics-23
* address @fede comments
* move errors into host package
* flatten ICS23 structure
* fix ApplyPrefix
* updates from ICS23 and ICS24
* msg.ValidateBasic and ADR09 evidence interface
* complete types testing
* delete empty test file
* remove ibc errors from core error package
* custom JSON marshaling; msg.ValidateBasic; renaming of variables
* minor update
* custom JSON marshaling
* minor changes on commitment types
* R4R - Store consensus state correctly (#5242 )
* store consensus state correctly
* fix client example
* update alias
* update alias
* implement ics25
* update comment
* refactor method name
* fix file name
* add test case
* refactor code
* refactor code
* blocked the consensusState check
* refactor code
* fix golangci comments
* refactor testcase
* replace rootMultiStore with simApp
* remove unless code
* remove unless code & refactor test case
* refactor testcase
* goimports code
* clean up
* Add unit tests for ICS04 (#5286 )
* fix test
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* applying review in progress
* apply review - make querier interface
* fix cli errors
* fix dependency
* fix dependency
* reflect method name change
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* revise querier interface to work both on cli & store
* reflect downstream change
* fix cli
* reflect downstream changes
* reflect downstream changes
* fix from address in tx cli
* fix cli in progress(squash later)
* fix cli
* remove timeout, add channel cli
* fix golangci
* fix cli
* Clean up
* fix mock cli in progress
* finalize cleanup, mock cli wip
* add cli for mocksend
* fix handler
* rm commented lines
* address review in progress
* address review, rm cleanup/closing
* rename mock packages
* fix interface for gaia
* rename Path -> Prefix
* Store accessor upstream changes (#5119 )
* Store accessor upstream changes (#5119 )
* add comments, reformat merkle querier
* rm merkle/utils
* ICS 23 upstream changes (#5120 )
* ICS 23 upstream changes (#5120 )
* update Value
* update test
* fix
* ICS 02 upstream changes (#5122 )
* ICS 02 upstream changes (#5122 )
* ICS 03 upstream changes (#5123 )
* ICS 03 upstream changes (#5123 )
* update test
* cleanup types and submodule
* more cleanup and godocs
* remove counterPartyManager/State and cleanup
* implement SubmitMisbehaviour and refactor
* errors
* events
* fix test
* refactors
* WIP refactor ICS03
* remove Mapping
* remove store accessors
* proposed refactor
* remove store accessors from ICS02
* refactor queriers, handler and clean keeper
* logger and tx long description
* ineffassign
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* remove store accessors
* refactor handshake to update it to the latest ICS03 spec
* update handler and msgs
* add verification functions
* update verification
* ICS02 module.go
* top level x/ibc structure
* update connection queries
* update connection tx
* remove extra files
* refactor: remove store accessors, update keeper and types to match spec (WIP)
* update handshake and packet
* implement packet timeouts
* implement send and receive packet
* implement packet ACK
* update handler
* add channel errors
* channel querier
* update expected client keeper and export verification funcs
* ICS 05 Implementation
* release port and godocs
* Update x/ibc/02-client/client/cli/query.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* Update x/ibc/02-client/types/tendermint/consensus_state.go
Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>
* address some of the review comments
* resolve some TODOs and address comments from review
* update connection versioning
* minor error updates
* update ICS04 with downstream changes
* Implement tx cli actions
* add MsgSendPacket handler; msg validation, errors and events
* update errors and add port Keeper to ibc Keeper
* minor UX improvements
* rename pkg
* fixes
* refactor ICS23
* cleanup types
* ICS 5 updates (#5222 )
* Validate port identifiers
* Refactor to static bind
* Add comments
* Add 'GetPorts' query function
* rename pkg and fix import
* implement batch verification
* gosimple suggestion
* various fixes; remove legacy tests; remove commitment path query
* alias
* minor updates from ICS23
* renaming
* update verification and rename root funcs
* rm legacy tests; add query proofs support
* remove capability key generation and authentication logic
* move querier to x/ibc
* update query.go to use 'custom/...' query path
* add tests
* ICS 24 Implementation (#5229 )
* add validation functions
* validate path in ics-23
* address @fede comments
* move errors into host package
* flatten ICS23 structure
* fix ApplyPrefix
* updates from ICS23 and ICS24
* msg.ValidateBasic and ADR09 evidence interface
* complete types testing
* delete empty test file
* remove ibc errors from core error package
* custom JSON marshaling; msg.ValidateBasic; renaming of variables
* minor update
* custom JSON marshaling
* use host validation for port ids
* downstream changes; custom marshal JSON; msg validation, and update errors
* update errors and aliases
* update msg validation and CLI UX
* minor changes on commitment types
* fix channel and packet check (#5243 )
* R4R - Store consensus state correctly (#5242 )
* store consensus state correctly
* fix client example
* update alias
* update alias
* update alias and keeper.GetPort()
* authenticate port ID; remove send packet msg from CLI
* comment out handlers
* add ibc module to simapp
* ICS20 implementation (#5204 )
* add ibc bank mock
* modify handler
* import channel
* add receiving logic
* add cli proof handling
* modify cli
* modify receiver type
* modify errcode
* optimize codes
* add denom prefix when source is true
* refactor code
* error return
* switch ibc antehandler to decorator pattern
* fix name/comment
* ICS 20 implementation (#5250 )
* move ics20 code to 20-transfer
* clean code
* fix compiling error
* add transfer module
* address ICS20 comments from review
* add routing callbacks
* clean code
* add missing err return
* modify err type
* modify err type
* add supply handling
* modify proof type
* add comments for msg and packet data
* add timeout supply handling
* modify module account name
* use supply keeper for burn and mint coins
* restructure keeper
* update alias and module.go
* golangci linter
* add ics20 handler to IBC handler
* update callbacks
* update ICS20 escrow address
* fix querier routes
* fix create client cli
* minor updates
* ibc querier test
* Refactor ibc/mock/bank into ICS 20 (#5264 )
* Most of code port from mock module to ICS 20
* A few minor fixes
* Apply suggestions from code review
Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
* Fix suggestions from autolinter
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Fix order of messages
* Add invalid height error code, check non-nil proof
* Fix linter error
* Return the underlying error
* Tendermint starts at height 1
* Apply suggestions from code review
* setup ics20 test suite
* add event to MsgRecvPacket
* update ibc keeper test to use test suite
* Add handshake commands
* WIP connection handshake
* WIP Connection Handshake
* Add cliCtx.WaitForNBlocks
* fix connection handshake in progress
* fix connection handshake in progress
* add channel unit test
* add more channel tests
* fix channel test
* refactor channel test
* add capability test for channel
* make channel testing work
* optimize channel test
* delete types/errors.go
* modify capability test
* uncomment
* add msg tests for channel
* fix port capability store
* fix channel test
* use simapp
* modify channel test
* refactor channel msg test
* go fmt
* IBC alpha general cleanup (#5291 )
* remove prefix from keeper; update client queries; address ICS02 comments from @cwgoes
* add proof for root query
* golangci
* remove hardcoded bind port logic
* space
* WIP: register errors
* register errors; make format
* use new instead of register; unescape path
* golangci
* Fix codec issue in ics23
* Modify codec registration style to match previous working state
* write port tests
* ICS-02: Keeper Tests (#5329 )
* add keeper tests
* fix tendermint tests
* Fix proof verification; remove store key prefixes; add additional path validations (#5313 )
* fix poof verify
* minor cleanup
* fix tests
* remove key prefixes
* fix tests
* Add ICS20 tests (#5308 )
* add ics20 test
* delete debug
* fix ics20 test
* revert and modify
* optimize test
* add ics20 msg test
* fix test
* add packet tests and more msgs tests
* add ReceivePacket and callbacks tests
* fix callbacks test
* add handler tests for ics20
* fix handler tests
* minor cleanup
* test all positive amounts
* update test suite NotNil to Error
* fix ics20 tests
* expected error
* Add IBC REST endpoints (#5310 )
* add rest framework
* add rest endpoints for ibc connection
* add rest endpoints for ibc client
* add rest endpoints for ibc channel
* modify ibc rest api
* add rest endpoints for ibc transfer
* fix query route
* fix receive packet
* fix query client state api
* use sub module name instead of icsxx
* use const for prove judgement
* modify ibc rest api
* add api docs to swagger
* add ibc config
* fix proof path in swagger
* return query result proof
* update swagger docs
* parse prove
* clean up
* fix ibc rest api and swagger docs
* fix host validate
* fix typo
* add submitMisbehaviour error response in swagger
* fix rest queryRoot and swagger doc
* add response comments for each REST functions
* fix rest function comments
* fix IBC proofs (#5351 )
* fix ICS02 proofs
* fix ICS03 proofs
* fix ICS04 proofs
* fix ICS20 proofs
* make format
* fix build; comment handshakes
* ICS-2 Implement Misbehavior (#5321 )
* ibc client evidence route
* split evidence from misbehaviour
* clean up client events
* test misbehaviour and evidence
* remove comments
* remove frozen comments from demo
* Update x/ibc/02-client/types/tendermint/evidence_test.go
Co-Authored-By: Aditya <adityasripal@gmail.com>
* change evidence to detect malicious chain
* remove unnecessary sort
* fix evidence and persist committers to check misbehaviour
* minor fixes and remove incorrect tests
* add evidence tests
* remove debug statements
* cleanup evidence test
* start misbehaviour tests
* fix nondeterministic bug
* add same height and next height checks in misbehaviour
* fix bugs
* apply fede review suggestions
* finish code review changes
* fix GetCommitter and write keeper-level misbehaviour tests
* remove incorrect special case checking
* save
* final fixes
* save
* fix conflict
* fix conflicts and add back submit misbehaviour msg
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* save
* add godocs and fix test
* fix test panics in other modules
* Update x/ibc/02-client/keeper/client.go
Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
* add back aliases
* Misc ibc fixes (#5357 )
* fix cli ExactArgs
* remove full handshakes
* rm dup flag
* fix error handling
* Implement Query Committer methods in ICS-02 (#5402 )
* add query methods for committers in ICS-02
* Update x/ibc/02-client/keeper/keeper.go
* add REST docs
* fix test
* IBC UX improvements (#5364 )
* ICS02 iterators
* ICS03 iterators
* ICS04 iterators
* ICS02 client updates
* CLI connections
* setup queriers
* clean up queriers
* add tests
* IBC top-level querier tests
* update ICS02 keys
* update ICS03 keys
* make format
* update ICS04 keys
* fix a few tests
* fix ICS20 tests
* update keys
* fix ICS02 queries (#5425 )
* fix CLI JSON param unmarshaling (#5431 )
* Fix inconsistent string lookup functions (#5437 )
* fix inconsistent string lookup functions
* test client type and ordering
* channel and connection state tests
* address golangcibot comments
* fix test
* Update x/ibc error handling (#5462 )
* Merge PR #5428 : Add mod, exponentiation for uint
* Modified examples in distribution module (#5441 )
* Merge PR #5442 : Remove of the client/alias.go
* Merge PR #5445 : Mock rpcclient in tests for votes pagination
* Merge PR #5435 : Added iterator that allows to read only requested values
* Merge PR #5427 : Remove code duplication in x/auth/client/cli
* Merge PR #5421 : Refactor Error Handling
* update x/ibc error handling
* update ICS24 and ICS02 errors
* ICS03, ICS23 and common errors
* updates from master and errors from ICS04
* build
* fix ics20 tests
* fix tests
* golangcibot fixes
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
Co-authored-by: kaustubhkapatral <54210167+kaustubhkapatral@users.noreply.github.com>
Co-authored-by: Ferenc Fabian <qwer.kocka@gmail.com>
Co-authored-by: Dmitry Shulyak <yashulyak@gmail.com>
Co-authored-by: Alessio Treglia <quadrispro@ubuntu.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
* ADR 015 Implementation (#5401 )
* implement in progress
* rm unneccessary change under simapp, modify baseapp for codetxbreak
* fix test in progress
* fix test error
* fix golangci
* address minor comments
* mv antehandler to ante/, address comments
* fix GetCommitment => GetData, fix syntax
* checkout types/ to ibc-alpha
* checkout to origin/ibc-alpha
* fix branch problem
* fix syntax error
* recover PacketI interface
* mv recvpacket rest from 20 -> 04
* address minor comments
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* rm wrong files
* Apply suggestions from code review
* PacketDataI field is now named, not embed
* add acknowledgement hashing
* rename finalization functiosn
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Rename GetCommitment() to GetBytes()
* Add recv sequence incr to RecvPacket()
* Revert but where is PacketExecuted() called
* Call PacketExecuted(), check seq in RecvPacket()
* The port is called "bank"
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Update simapp/app.go
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Remove omitempty
* Add godoc
* Move events
* set ProofVerificationDecorator on AnteHandler
* Apply suggestions from code review
Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
* format
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
Co-authored-by: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
* Fix build errors
* remove tmcmn instance
* remove tmcmn instance
* Fix compliation errors
* Fix build errors
* Fix build errors
* ICS07 Tendermint Client implementation (#5485 )
* implement ICS07
* build
* update tests and cleanup
* x/ibc/02-client/types: remove misbehaviour in favor of evidence
* remove root query, update queriers, implement verification funcs
* remove committer; cleanup
* move keys to ibc/types
* fix paths
* update ICS03 connection verification
* move order and states to exported pkg
* update ICS04 to latest spec
* fix build
* move ics02 types/errors package to /types
* update a few tests
* update tests; fix codec registration
* minor changes from code review
* ibc/client/types: fix tests
* ibc/02-client/keeper: fix tests
* ibc/03-connection/keeper: begin tests for verify.go
* ibc/23-commitment: add IsEmpty() to Prefix, Path and Proof
* address comments from review
* add tests for evidence
* x/ibc/07-tendermint: add tests for consensus state, header and update
* ibc/07-tendermint: fix verification panic and add tests
* ibc/07-tendermint: add failure test cases
* x/ibc/03-connection/keeper: add verification tests for failing cases
* remove unused queriers
* Update ICS 7 tests (#5556 )
* Update ICS 7 tests
* Fix one problem
* Also set consensus state for height 1
* Apply same fixes to ICS 4 tests
* Remove unnecessary change
* Fix ante tests; remove printfs
* Remove printf
* Update x/ibc/ante/ante_test.go
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* add TODOs for ADR 03 dynamic store
* add tests for msgs and packet (#5559 )
* Add skeleton for ValidateBasic tests
* Move tests; basic one passes
* Add more ValidateBasic tests
* Add more ValidateBasic testcases
* Fix minor typo
* Add `ValidateBasic` tests for Packet
* Move to packet_test.go
* use app.Commit for tests
* update verify.go
* Fix all ICS 07 Tests (#5565 )
* ICS 07 Debugging
* WIP Debugging
* Foo bar baz, baz bar foo, 🤷♂️
* cleanup print statements
* cleanup verification test
* add return err for proof verification
* cleanup; start handshake testing
* connection handshake tests
* scopelint
* WIP Test refactor
* fix ICS03 tests
* fix ICS04 tests
* nolint
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* cleanup comments and add a few tests
* typo
Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
Co-authored-by: Jack Zampolin <jack.zampolin@gmail.com>
* fix build
* IBC historical info support (#5475 )
* implement GetConsensusState
* introspect past consensus states on ICS03 handshake
* implement ToTmValidator staking util function
* add test cases
* update tests
* Fix various compile erros
* fix historical info
* fix dep cycle
* Fix golint issues
* Fix proto docs lint fail
* move consensus state query downstream to ICS03
* remove unused funcs on expected keeper
* update tests and move get consensus state to ICS03
* increase cov for verification funcs
* fix tests
* interfacer fix
* fix expected keeper
* remove TODOs
Co-authored-by: Jack Zampolin <jack.zampolin@gmail.com>
* cleanup ibc-alpha diff with master
* Add bank alias for gaia
* Moar bank alias gaia
* Moar bank alias gaia
* Fix query all clients
* update to current Tendermint master
* TxSearchMock: add orderBy field to TxSearch method
* fix build errors
* Small changes for compilation of gaia
* Small changes for compilation of gaia
* Add 07-tm.Header.ConsensusState() to make conversions easy
* Add additional IBC Channel Tests (#5578 )
* Add stubbed out tests
* one working testcase and mocked packet types
* Finish TestSendPacket
* Move mocked proofs to ibc/types and finish TestRecvPacket
* Implement TestPacketExecuted
* WIP TestAckPacket
* Start on timeout tests, 1 passing
* WIP Tests
* first cleanup
* test send transfer
* add packet tests
* fixes and more tests
* finish tests
* Update x/ibc/04-channel/keeper/packet.go
* golangcibot fixes
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
* merge master
* ICS07 follow up changes (#5606 )
* ADR07 follow up changes
* add assertion checks
* update ICS02 tests
* update ICS07 tests
* add trusting and ubd period to msg
* tests
* more test updates
* ICS07 follow ups (#5631 )
* refactor tendermint package to move msgs here
* fix rest of package to accomadate 07 refactor
* added GetHeight to ConsensusState and moved clientstate struct creation to 07-tendermint
* start work on making misbehavior retrieve consensusState LTE misbehavior
* allow misbehavior submission at height not equal to persisted consensusState
* optimize submitMisbehavior by erroring earlier
* cleanup misbehavior and propose lazy fix
* fix bug
* Update x/ibc/02-client/keeper/client.go
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* address fede review
* add chain-id into clientstate
* address necessary fede review
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Aditya <adityasripal@gmail.com>
* IBC SDK specification (#5426 )
* IBC SDK specification
* update events
* add implementation mapping
* minor additions to readme
* fix conflicts
* add missing ADRs, modules and ICS
* fix build
* Merge PR #5670 : Fix Packet Timeout Bug
* add destination height to MsgSendTransger
* quick fix
* Add defensive checks before setting param keytables in keeprs
* ICS 20 Cleanup and Tests (#5577 )
* Add comments, remove unused code and attempt to point to places where the spec is being implemented
* close channel when transfer fails
* rename packer data transfer to align to spec; refactor table tests
* ICS 20 implementation cleanup work (#5602 )
* Simulation docs (#5033 )
* simulation docs
* update docs with the latest simulation changes
* minor imporvments
* clean up of simulation.md
* expand section on weights
* minor reword
* minor wording fix
Co-authored-by: Marko <marbar3778@yahoo.com>
* Merge PR #5597 : Include Amount in Complete Unbonding/Redelegation Events
* Add bank alias for gaia
* Moar bank alias gaia
* Moar bank alias gaia
* Call `TimeoutExecuted`, add wrappers
* Remove unused `MsgRecvPacket`
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Jack Zampolin <jack.zampolin@gmail.com>
* Merge PR #5603 : Remove acknowledgement interface in favour of []byte
* fixes and cleanup
* spec compliance
* refactor relay prefixes and tests
* Fix test compilation
* cleanup; add notes and additional test case
* Receive transfer test
* Apply suggestions from code review
Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
* Fix autolinter application
* Add testcase with incorrect prefix
* golangcibot fixes
* delete extra comment
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
* Merge PR #5666 : Use Tendermint lite client verification
* Disambiguate error codes
* Fix binary marshalling for state storage
* readd MsgSubmitClientMisbehaviour
* Fix double flag registration
* ICS23 refactor (#5710 )
* ICS23 restructure directories
* more fixes
* format
* Merge PR #5711 : Switch mock proofs to real proofs
* Add key, path, value to mock proofs
* Also alter mock types (why are there duplicates)
* Remove mock proofs from handshake_test.go
* Use actual proofs
* Try to fix historical info, no luck
* Have test-cases produce consensus heights
* Fix consensus height / proof height difference in verifyClientConsensusState
* Bug fixes contd.
* Fix some identifier issues
* `TestConnOpenConfirm` now works
* further on proof
* fix debugger print statement
* IT PASSES
* revert identifier changes
* refactor query proof to generate proofs from either chain
* fix ack and confirm
* Remove temporary break
* fix connection and channel verify tests
* fix everything but verify client consensusstate
* fix all verify tests
* fix ics07 tests
* fix handshake tests
* fix packet tests
* fix timeout tests
Co-authored-by: Aditya Sripal <adityasripal@gmail.com>
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
* Try to fix store decoding issue
* Sim issue update
* add error in msg
* remove next validator set from ibctmtypes.Header
* remove warning msg
* Make IBC updating more robust
* blh
* bump tm dependency
* remove redundant clockdrift correction
* remove blh commit
* fix test build failures
* Change time from PST to UTC
* Merge PR #5770 : Update error message in connection keeper
* Merge PR #5774 : Debug timestamp issues
* Merge PR #5786 : Fix MsgTransfer routing
* Fix test-case
* register MsgPacket
* Flip boolean
* emit packet event on SendPacket
* Fix attribute setting
* Implement in-memory KVStore
* Start keeper and types
* Add codec
* Add keys logic
* Update types
* Update keeper
* Implement NewCapability
* Implement InitializeAndSeal
* Update simapp
* Implement GetCapability
* Add logging for new and claimed caps
* Call InitializeAndSeal in SimApp
* Update keeper semantics + unit tests
* Use big endian
* More unit tests
* Increase keeper test coverage
* Remove TODO
* Add module doc
* Update doc
* Apply suggestions from code review
Co-Authored-By: Aditya <adityasripal@gmail.com>
* Update NewCapability godoc
* Clarify owner
* Add forgery test case to TestAuthenticateCapability
* Format doc
* Update to tm@v0.33.2
* Update ADR
* Explicitly take pointer in FwdCapabilityKey
* Update set to be logn
* Update app module
* Lint
* Fix broken test after packet format changed
* Add stub and unit tests for ReleaseCapability
* Finish implementation
* Add test case to TestAuthenticateCapability for releasing a cap
* remove swagger files from ibc module (#5893 )
* Move IBC packet data interpretation to the application module (#5890 )
* fix: move IBC packet data interpretation to the application module
This also adds a channelexported.NewOpaquePacketData(rawBytes)
implementation to assist apps in being able to manipulate the
raw packet data using the codec layer.
* feat: use an internal-to-module PacketDataI type
This one only has a GetBytes() method, which is implemented by
OpaquePacketData.
* fix: remove OpaquePacketData
No need to wrap the []byte packet.GetData(). If the caller wants
it, they can use it directly.
* docs: update adr-015
* fix: put the TimeoutHeight back into the packet commitment
* refactor: simplify unmarshalling of transfer packet
* docs: update for new unmarshal steps
* fix: clean up usage of sdkerrors.Wrapf
* Apply suggestions from code review
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* chore: remove unnecessary "encoding/binary" import
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* fix ibc-alpha sims (#5909 )
* fix some simulations
* fix HistoricalInfo sim decoders
* add staking sim decoder test case for HistInfo
* Merge PR #5901 : Add & update IBC queriers for relayer use
* Add identifier to connection responses (ref #5829 )
* Update querier as well
* Fix test-case
* Update for consistency
* Add querier for connection channels; fix linter
* Fix build (?)
* Add JSON & Yaml tags
* Add tags
* Add identifiers to channels as well
* fix test
* Merge PR #5914 : x/capability: Fix Object Capability Model
* Merge PR #5918 : Remove source field from ICS 20 packet & message types per latest spec
* fix ics20 client args (#5924 )
* Merge PR #5930 : Add GetChainID to ClientState interface
* Merge PR #5925 : Add additional events to x/ibc
* Migrate x/capability to Protobuf (#5926 )
* migrate x/capability to protobuf
* fixes
* format
* remove capability from codec std
* return pointer for getOwners
* remove &
* Update x/capability/keeper/keeper.go
Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
* rename remove Capability interface; rename CapabilityKey -> Capaility; cc @cwgoes
* x/capability: remove RegisterCapabilityTypeCodec and seal amino cdc
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
* Merge PR #5939 : Unmarshal packets as JSON
* Merge PR #5888 : Dynamic Capabilities with Routing
* cleanup ibc-alpha (#5945 )
* cleanup ibc-alpha
* remove HasKeyTable()
* add preexisting checks
* undo remove checks
* x/staking: import and export HistoricalInfo
* staking/types: add HistoricalInfo to GenesisState
* changelog
* add staking module to app BeginBlockers
* remove JSON files
* address comments from review
* cleanup ibc-alpha
* fix ibc-alpha lint (#5959 )
* x/ibc: changelog (#5960 )
* x/ibc: changelog
* add reference to the spec
* Merge PR #5954 : Bind Transfer Port on InitChain
* Bind transfer port in InitChain
* push fixes
* address @fedekunze review
* Apply suggestions from code review
* lint
Co-authored-by: Jack Zampolin <jack.zampolin@gmail.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
Co-authored-by: Joon <torecursedivine@gmail.com>
Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
Co-authored-by: vincent <vincent.ch.cn@gmail.com>
Co-authored-by: Jack Zampolin <jack.zampolin@gmail.com>
Co-authored-by: Aditya Sripal <adityasripal@gmail.com>
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
Co-authored-by: kaustubhkapatral <54210167+kaustubhkapatral@users.noreply.github.com>
Co-authored-by: Ferenc Fabian <qwer.kocka@gmail.com>
Co-authored-by: Dmitry Shulyak <yashulyak@gmail.com>
Co-authored-by: Alessio Treglia <quadrispro@ubuntu.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Aleksandr Bezobchuk <aleks.bezobchuk@gmail.com>
Co-authored-by: Michael FIG <michael+github@fig.org>
Co-authored-by: Segue <huoda.china@163.com>
2020-04-08 20:57:52 -04:00