colin axnér
1744194e71
x/ibc: migrate rest of 04-channel to gRPC ( #6964 )
...
* migrate channel querier to grpc
* fix various issues in channel grpc migration
* remove querier and add tests
* fix lint
* update utils based on self review
* Update x/ibc/24-host/keys.go
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* apply @fedekunze review suggestions
* fix build
* fix build
* run make proto gen again
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-08-11 08:29:29 -04:00
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
Alessio Treglia
99f8b54cfd
fix 0.3{8,9} migrations and migration test case ( #7002 )
...
These fixes were applied to Launchopad 0.39.1 RC and
never ported to master.
2020-08-11 05:51:47 -04: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
colin axnér
6ebc476474
don't create localhost ( #6974 )
2020-08-07 12:42:12 +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
atheeshp
ceba0cb45d
x/ibc migrate genesis proto ( #6878 )
...
* migrated channel genesis types to proto
* connection genesis types migrated to proto
* client proto migration
* failing tests due to tendermint part incomplete
* add genesis test
* x/ibc: ClientState Any
* add genesis test
* suite NotPanics
* comment tests
* update export logic
* refactor
* update test
* fix non-determinism
* castrepeated
* x/ibc: migrate simulations to protobuf
* add proto genesis
* add UnpackInterfaces func to genclientstate
* add unpackinterfaces for consensus states
* formatting
* fix genesis tests
* add modified genesis test
* update comments
* remove localhost register codec
* use app registry
* fix bug
* Update simapp/app.go
* Update x/ibc/02-client/types/genesis.go
* unmarshaler interface
Co-authored-by: Colin Axner <colinaxner@berkeley.edu>
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
2020-08-07 08:33:47 +00:00
Alexander Bezobchuk
89097a00d7
Merge PR #6968 : fix sign command
2020-08-06 12:25:54 -04:00
colin axnér
0e4d67601f
Migrate Consensus State to being proto encoded/decoded in 02-client ( #6960 )
...
* flip switch to proto on consensus state in 02-client
* change consensus state to pointer
* fix bug
* remove amino from connection
* some test cleanup
2020-08-06 07:06:14 -04:00
colin axnér
3076a8b12e
Migrate tendermint consensus state to proto ( #6957 )
...
* migrate tm consensus state to proto
* update con state
* register con state
* add confio to proto lint exclude
* Update proto/ibc/tendermint/tendermint.proto
* casttype to hexbytes
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-08-06 05:21:56 -04:00
SaReN
ba140c90f5
Fix x/bank genesis non-determinism ( #6940 )
...
* Sort coins in x/bank genesis
* Sort address before looping
* GetAccountsBalances
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-08-06 09:10:07 +00:00
Aditya
e3391ff447
Remove ValidatorSet from ConsensusState ( #6942 )
...
* fix stash merge
* fix build errors
* fix tendermint types test
* fix tendermint tests
* fix client tests
* fix rest of ibc tests
* include TrustedHeight in Header
* fix all tests
* fix all tests
* remove validatorshash from consensus state
* lint
* add evidence checks
* Apply suggestions from code review
Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* refix build
* remove redundant hashing in tests
* complete rest of minor review requests
* make format
* suite.valsetHash
* fix test
* Update x/ibc/07-tendermint/misbehaviour.go
Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
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: Federico Kunze <federico.kunze94@gmail.com>
2020-08-06 08:32:19 +00:00
SaReN
4835cdc178
Remove TxBuilder and usages ( #6941 )
2020-08-05 18:28:33 +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
colin axnér
1a531cb645
x/ibc: migrate 02-client to use proto encoded/decoded client states ( #6948 )
...
* begin migration
* make client state a pointer
* fix build
* fixes from self review and rename cdctypes -> codectypes
* add godoc
2020-08-05 11:14:24 -04:00
Alexander Bezobchuk
801b64868d
Merge PR #6935 : Fix Testnet Command
2020-08-04 12:51:27 -04:00
colin axnér
79cee06967
Migrate Tendermint client state to proto ( #6932 )
...
* add tm client state proto file
* migrate tm client state to proto
* bump ics23 dep
* add issue link to makefile
2020-08-04 16:31:50 +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
colin axnér
cb5c93213c
remove GetCommitmentType and register commitment interfaces ( #6927 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-08-04 09:12:52 +00:00
Aditya
9b61e0947e
Remove Last Header from ClientState ( #6873 )
...
* implement features, fix tendermint tests
* allow test headers to pass in custom nextvalidatorset
* allow updates to previous heights and test
* remove unnecessary testing feature
* fix client tests
* fix ibc tests, and updating consensus state
* fix ibc-transfer tests
* appease linter
* Apply suggestions from code review
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* add chainID test case
* fix expPass value
* Apply suggestions from code review
Co-authored-by: colin axner <25233464+colin-axner@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* address rest of @colin-axner review
* fix bug and errors
* Apply suggestions from code review
Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
* address rest of @colin-axner review
* implement updating before frozen height
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: colin axner <25233464+colin-axner@users.noreply.github.com>
2020-08-04 05:05:03 -04:00
Jonathan Gimeno
0daf3c3271
Fix problem with Gen TX ( #6924 )
...
Closes : #6908
2020-08-04 08:41:58 +02: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
colin axnér
57cd7d62b3
migrate localhost client state to proto ( #6925 )
...
* migrate localhost to proto
* localhost returns err on verify consensus state
* fix lint
2020-08-03 09:45:15 -04:00
colin axnér
00961f2082
x/ibc: remove parts of amino ( #6819 )
...
* remove amino from channel types
* fix unmarshal error
* fix msgs_test
* update msgs test with underscore json encoding
* remove amino from connections
* purge amino from ibc-transfer
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-08-03 08:08:41 -04:00
dauTT
4c4538947f
Allow empty version strings ( #6909 )
...
* Allow empty version strings (left over from PR #6904 )
* Update spec
Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
2020-08-03 03:50:40 -04:00
Emmanuel T Odeke
10d330e5b1
x/params/types: make KeyTable.RegisterType fully dereference pointers ( #6915 )
...
Use a for loop to correctly and fully dereference and
extract the type for the type of ParamSetPair.Value.
Fixes #6785
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-08-02 20:18:28 +00:00
colin axner
b3bbca343f
fix ibc-transfer source bug ( #6865 )
...
* update proto and refactor types test
* cleanup SendTransfer
* fix build and prep to update handler tests
* fix handler tests
* fix tests
* update spec
* fix lint
* Apply suggestions from code review
Co-authored-by: Aditya <adityasripal@gmail.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* rename amount to token
* merge send transfer and createOutgoingPacket
* apply rest of @fedekunze review suggestions
* apply review suggestions from @AdityaSripal
* update spec to token renaming
* split token in denom and amount when creating fungible token packet
* remove source flag, add prefix on recv
* fix lint
* fix proto numbers
* Update x/ibc-transfer/keeper/relay.go
Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
* apply @cwgoes review suggestions
* Apply suggestions from code review
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* apply @fedekunze suggestions
* Apply suggestions from code review
* fix lint
* apply @AdityaSripal review requests
* Update x/ibc-transfer/types/coin.go
* apply @AdityaSpripal last suggestions
Co-authored-by: Aditya <adityasripal@gmail.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
2020-08-01 09:16:22 +00:00
dauTT
8e67a5d23b
Allow empty version strings ( #6904 )
...
* Allow empty version strings
* Restore empty version.Identifier check
* Fix test
Co-authored-by: colin axner <25233464+colin-axner@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-31 18:18:05 +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
Federico Kunze
25c539aade
x/ibc: fix log ( #6903 )
...
* x/ibc: fix log
* Update x/ibc/05-port/keeper/keeper.go
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-07-30 21:00:58 +00:00
Aaron Craelius
7e2eea84c6
Fix the one remaining proto tx bug and flip the switch ( #6902 )
...
* Fix the one remaining proto tx bug and flip the switch
* Update github CI
* Wrap TxDecoder errors
* Add test
* Cleanup
2020-07-30 18:58:26 +00:00
Alexander Bezobchuk
9ccec075e2
cli: refactor flag reading ( #6884 )
...
* cli: refactor ReadPersistentCommandFlags
* updates
* fix tetts
* cover all cases
* fix tests
* fix tests
* fix tests
* fix tests
* godoc++
Co-authored-by: Aaron Craelius <aaron@regen.network>
2020-07-30 16:44:22 +00:00
SaReN
e15d0322dc
Migrate remaining x/auth tx tests to proto ( #6898 )
...
* Fix ReadTx
* Migrate batch scanner tests
* add TODO
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>
2020-07-30 15:36:36 +00: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
c7ad21d162
REST tx endpoint backwards compatibility ( #6801 )
...
* update rest endpoints
* Add conversion logic for auth encode/decode/broadcast
* Cleanup
* Add tx conversion to legacy REST tx endpoints.
* Cleanup
* Add tests
* Add tests for ConvertAndEncodeStdTx
* Fix for StdSignature
* Test coverage improvements
* Add integration test for REST broadcast
Co-authored-by: Aaron Craelius <aaronc@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
2020-07-30 10:45:18 -04:00
Amaury Martiny
8283165600
Revert `SetSignerInfo` ( #6894 )
...
* Fix TestCLIMultisign tests
* Fix lint
Co-authored-by: SaReN <sahithnarahari@gmail.com>
2020-07-30 13:22:31 +00:00
colin axner
fe6a341b4e
fix nil check bug ( #6895 )
2020-07-30 08:25:03 -04:00
Aaron Craelius
ef6dc2f180
Revert change of StdSignature PubKey to []byte ( #6885 )
...
* Revert change of StdSignature.PubKey to []byte
* Fixes
2020-07-30 09:29:43 +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
Marie
bc7e943158
x/auth genesis protobuf migration ( #6880 )
...
* Add auth genesis.proto and related changes
* Add UnpackInterfaces method to auth GenesisState
* Remove unrelevant test case
* Update proto/cosmos/auth/genesis.proto
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Add test for auth types ConvertAccountsAny
* Apply naming suggestions
* Update x/auth/types/genesis_test.go
Co-authored-by: Federico Kunze <31522760+fedekunze@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-29 16:00:15 +00:00
Aaron Craelius
9592f34cde
Fully remove StdTx usage in ante handler tests ( #6845 )
...
* WIP on removing StdTx from ante handler tests
* Fix recheck
* Fix basic_test
* Don't use StdTx in ante_test
* Use TxConfig sign mode handler in anteHandler
* Fix TestAnteHandlerAccountNumbers
* Amino don't panic
* Fix more tests
* All proto ante tests pass
* Fix last tests
* Amino register concrete
* Add tests
Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
2020-07-29 15:52:22 +00:00
Emmanuel T Odeke
b0c73ae994
codec: implement protobuf unknown fields checker ( #6557 )
2020-07-29 11:31:23 -04:00
atheeshp
a4d1f306c0
x/{capability, genutil} genesis types migrated to proto ( #6867 )
...
* x/capability genesis types migrated to proto
* added docs
* x/genutil: genesis proto migration
* fixed package issue
* review changes
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-29 15:01:20 +00:00
Aditya
c7dab51192
remove ack length limit ( #6874 )
...
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-29 10:46:44 +00: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
Alexander Bezobchuk
72f6bf0893
Fix 0.39 x/auth Migration Types ( #6870 )
...
* types: add coins to JSON
* add migrate test
* finish test
* Add panic
* fix test
2020-07-28 19:18:07 +00:00
Alexander Bezobchuk
3ff3e58240
Launchpad Migration ( #6829 )
...
* fix migration
* add 039 pkg
* lint
* Fix pkg name
* add v0.39 auth types
* remove file
* updates
* updates
* update godoc
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-28 15:28:23 +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
Federico Kunze
2651427ab4
x/ibc-transfer: use ibc testing package ( #6641 )
...
* x/ibc-transfer: use ibc testing package
* coin denom failure
* update handler tests
* refactor first test in relay
* update onrecvtest, failing tests expected due to existing bug
* update on acknowledgement test, failing test is expected
* refactor timeout test
* revert coin validation changed, comment out tests
* minor fix
* update coordinator.go
* update coordinator.go
* add comment to fix handler test
* add link to issue in handler test
* fix test
Co-authored-by: Colin Axner <colinaxner@berkeley.edu>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-28 08:24:13 +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
Aditya
5676e7293f
Remove ID from ClientState ( #6823 )
...
* remove id from clients, build works
* fix client state tests
* fix tests
* address @fedekunze review
* Apply suggestions from code review
Co-authored-by: colin axner <25233464+colin-axner@users.noreply.github.com>
* lint
* remove commented-out test case
* Update x/ibc/02-client/keeper/keeper_test.go
Co-authored-by: colin axner <25233464+colin-axner@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: colin axner <25233464+colin-axner@users.noreply.github.com>
2020-07-27 18:43:09 +00:00
Aaron Craelius
20488b4f8e
Make all IBC Msg types use pointers ( #6857 )
...
* Make IBC Msg types use pointers
* Fix tests
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-27 16:21:24 +00:00
Aaron Craelius
bb8aabd4e1
Migrate pieces of x/genutil missed in #6734 ( #6860 )
...
* Migrate pieces of x/genutil missed in 6734
* Fix tests
* Fix lint
* Add test
2020-07-27 15:41:20 +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
SaReN
928f7fccff
Add wrap tx builder to TxConfig ( #6836 )
...
* Add wrap tx builder
* Add tests
* update for StdTx
* fix StdTxConfig
* Update generator
* Add godoc
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-24 22:24:57 +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
1f8cc450c4
Add missing cancel-software-upgrade cmd ( #6840 )
...
* Add cancel software upgrade cmd
* add proposal cancel handler
* Fix gofmt
2020-07-24 17:39:52 +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
2224be5c67
Merge PR #6818 : x/upgrade: Fix ReadUpgradeInfoFromDisk
2020-07-22 12:22:00 -04:00
Alexander Bezobchuk
ab664e9a43
Merge PR #6815 : Code & Doc Cleanup
2020-07-22 11:02:36 -04:00
colin axner
ef0a7344af
x/ibc: remove ID from ConnectionEnd ( #6814 )
...
* remove connection id
* various test and code fixes
* fix tests
* Update proto/ibc/connection/connection.proto
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* rename utils.go to parse.go in host
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-22 09:59:15 -04:00
colin axner
e9627abc54
bump identifier maximum to 64 characters ( #6812 )
...
* bump identifier maximum to 64 characters
* fix tests
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-22 10:20:41 +00:00
colin axner
35a59b1573
rename MsgPacket to MsgRecvPacket ( #6813 )
2020-07-22 10:01:57 +00:00
atheeshp
470465d792
x/auth: cli gRPC migration ( #6809 )
...
* migrated auth cli to use grpc query client
* unpacker added for account command
* fxed tests
2020-07-21 17:48:37 +00:00
colin axner
97a83e9c78
Update IBC events docs and code ( #6798 )
...
* update msgs type from opaque
* update spec for createclient
* update events spec for handshake cals
* update packet events for spec and code
* add relayer events doc
* update ibc-transfer events
* fix build
* small fix from self review
* update channel msgs types
* acknowledgement_packet -> acknowledge_packet
* Apply suggestions from code review
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* fix spec issues for ibc and ibc-transfer
* add golang relayer link
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-21 12:56:14 -04:00
atheeshp
9ee14ee985
Add pagination flags to x{ibc, bank} ( #6804 )
...
* updated pagination flags
* updated all balances pagination flags
* updated all balances
* some doc updates
Co-authored-by: Anil Kumar Kammari <anil@vitwit.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-21 15:36:45 +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
colin axner
79fa06b26c
remove IBC ante handler in favor of using handler ( #6793 )
...
* remove IBC ante handler, add calls to handler
* move some events upstream to handler
* remove change log entry
* move ante handler tests to handler
* fix build
* update docs
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-07-20 15:25:57 +00:00
Jonathan Gimeno
54141887b5
Add home default to other commands. ( #6789 )
...
* Add home default to other commands.
* add defaultNodeHome to rest of commands
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 15:12:33 +00:00
dauTT
2247465fa3
x/distribution/simulation/operations.go: add unit tests ( #6764 )
...
* x/distribution/simulation/operations.go: add unit tests
* Use NewDecCoins constructor instead of the DecCoins struct
* Refactor code to use a testing suite
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-07-20 15:05:41 +00:00
Amaury Martiny
8e61ef86c3
x/{gov,params,upgrade,distribution} CLI: In-Process test & use grpc query service ( #6664 )
...
* refactor CLI to use grpc query service
* In process CLI for gov
* ReadQueryCommandFlags
* gov tx
* Fix compiler errors
* Formatting
* x/distribution: use gRPC query
* Consistent
* Fix x/distrib test
* Update x/gov
* Add ReadQueryCommandFlags
* Fix lint
* Revert x/params
* x/params use grpc query
* Fix tests
* Use page request
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-20 13:09:57 +00:00
colin axner
1d6344888e
Fix query unrelayed packets logic ( #6733 )
...
* add some query functions to channel keeper
* update grpc queries and cli cmd and tests
* rerun proto gen after merging master
* fix build broken from merge conflicts
* add test and update proto
* Update x/ibc/04-channel/client/cli/query.go
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-20 12:42:36 +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
dauTT
b3838394e7
x/gov/simulation/params.go: add unit tests ( #6738 )
...
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-19 21:57:14 +00:00
atheeshp
3123d07ad9
Update x/{mint,slashing,evidence} cli to use gRPC query client ( #6704 )
...
* changes cli to use gRPC in mint, slashing
* added command for signing infos
* gRPC query client migration of evidence
* review changes
* added unpack any
* fixed build error
* fixed failing tests issue
* added read flags
* added pagination flags
* updated docs
* fixed tests issue
* failing tests
* fixed tests
* review changes
* review changes
Co-authored-by: Anil Kumar Kammari <anil@vitwit.com>
2020-07-19 06:16:57 -04:00
dauTT
13b5a8d670
Merge PR #6771 : x/bank/simulation/operations.go: add unit tests
2020-07-18 19:47:22 -04:00
Alexander Bezobchuk
b9f533d51f
Merge PR #6778 : fix TestGetCmdQueryCommunityPool
2020-07-18 19:12:51 -04:00
dauTT
5a5a402518
Merge PR #6775 : x/auth/simulation/genesis.go: add unit tests
2020-07-18 13:46:56 -04:00
dauTT
f59ea26941
Merge PR #6774 : x/auth/simulation/params.go: add unit tests
2020-07-18 13:23:37 -04:00
dauTT
d5bd38fa3d
Merge PR #6773 : x/bank/simulation/params.go: add unit tests
2020-07-18 13:06:21 -04:00
dauTT
9262319caf
Merge PR #6772 : x/bank/simulation/genesis.go: add unit tests
2020-07-18 12:53:39 -04:00
dauTT
4b07cb6cc4
Merge PR #6768 : x/distribution/simulation/params.go: add unit tests
2020-07-18 12:47:22 -04:00
dauTT
0033f24650
Merge PR #6770 : x/capability/simulation/genesis.go: add unit tests
2020-07-18 12:40:08 -04:00