Federico Kunze
ca20a39962
x/ibc: constrain acks processing order ( #6244 )
...
* x/ibc: constrain acks processing order
* test
* address @AdityaSripal comments
* address @colin-axner comments
* address @alexanderbez comments
2020-05-18 16:50:07 +00:00
Federico Kunze
3dcdc582af
x/ibc-transfer: move ICS20 out from x/ibc ( #6222 )
...
* x/transfer: move ICS20 out from x/ibc
* rename to ibc-transfer
2020-05-15 20:36:47 +00:00
colin axner
86a9750508
x/ibc: update path validator to enforce no beginning or ending of the separator ( #6233 )
...
* update path validator to enforce no beginning or ending of the separator
* modify test slightly
2020-05-15 14:58:43 -04:00
Federico Kunze
b2ad4d2a23
x/ibc: alter id requirements ( #6227 )
...
* x/ibc: alter id requirements
* add regex to validations
* comment
* update error
* test all validators:
* fix tests
* check for only separators
2020-05-15 17:24:31 +00:00
Federico Kunze
c9ec0ff087
x/ibc: default genesis state for sims ( #6158 )
...
* x/ibc: default genesis state for sims
* add ibc and transfer module to simulations
* minor update
* remove TODO
* add validation to transfer genesis
* fix transfer init genesis
* address @alexanderbez comments
2020-05-14 22:47:11 +00:00
Federico Kunze
48aebed2ea
x/ibc: /types cleanup ( #6169 )
...
* x/ibc: move /types to /common
* x/ibc/types: remove errors
* remove mocked proofs
* remove invalidProof{}
* create new ibc/types dir
* format
* move keys to host
* move order to channel
* move channel state
* move connection state
* lint
2020-05-13 19:23:33 -04:00
Christopher Goes
513c5f30c2
Alter connection handshake ( #6209 )
...
* Alter connection handshake
* Add test-case
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-05-13 13:26:19 -04:00
Federico Kunze
a08aa41213
ibc/07-tendermint: variable trust-level ( #6206 )
...
* ibc/07-tendermint: variable trust-level
* update client state and tests
* fix tests
* address comments from review
* cli: define trust-level as flag
2020-05-13 01:10:25 +00:00
Federico Kunze
b93300288e
x/ibc: stateful clients ( #6202 )
...
Closes : #6198
2020-05-12 21:13:41 +02:00
Federico Kunze
138e0b074f
x/ibc: log fixes ( #6184 )
...
* x/ibc: log fixes
* fix test
2020-05-11 17:17:05 +00:00
Federico Kunze
f88d9ab586
x/ibc: create localhost client on InitGenesis ( #6170 )
...
closes : #6159
2020-05-11 17:46:00 +02:00
Marko
bef3689245
linter: enable nolintlint ( #6162 )
...
* nolintlint enable
* remove space
* fix tests
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-05-08 08:46:12 +00:00
Alessio Treglia
c8c47786da
x/ibc: fix int overflow ( #6171 )
...
x/ibc/07-tendermint/types/test_utils.go: Calculate and use
machine-dependent maxInt instead of causing int overflow by
passing math.MaxInt64.
Closes : #6130
2020-05-07 22:11:29 -04:00
Aditya
b3cada1001
x/ibc: fix event emission on msgs ( #6161 )
...
* add sender events into signer, and update events into keeper
* move all handler functionality to keeper for update
Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
2020-05-07 09:55:26 -04:00
Federico Kunze
f3e3a30e5e
x/ibc: add missing query height ( #6157 )
2020-05-06 13:06:35 -04:00
Federico Kunze
ff24a24ae6
x/ibc: query all client connection paths ( #6155 )
...
* x/ibc: query all client connections
* add queries to CLI and REST
* add missing height
* update swagger
2020-05-06 15:56:49 +00:00
Federico Kunze
d7ebee74e7
x/ibc: proto migration pt 1 ( #6097 )
...
* x/ibc: proto migration pt 1
* fix tests
* fixes and godoc
* yaml tags
* rm changelog
* address comments from review
* fix some tests
* fix tests
* add _UNSPECIFIED suffix for default enums
* Update app
* protobuf Any fixes
* use gogoproto
* fix tests
* wrap all messages
* address @alexanderbez comments
* update proto files
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Aleksandr Bezobchuk <aleks.bezobchuk@gmail.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
2020-05-06 11:17:50 -04:00
Alessio Treglia
b09eef7298
run make format ( #6153 )
2020-05-06 13:47:53 +02:00
Aditya
f2a331fddb
Fix Timeout Handling ( #6118 )
...
* fix timeout
* remove print statement
* fix tests
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-05-05 14:46:13 +00:00
Pavel
4a28dd1645
Args: cobra.ExactArgs(1) required but never used ( #6140 )
2020-05-05 08:43:20 +00:00
Federico Kunze
106bcd5e13
default gen state ( #6139 )
2020-05-04 18:00:17 -04:00
Pavel
110942add6
add anotation for json/yaml marshal ibc/tendermint/header type ( #6138 )
2020-05-04 20:34:08 +00:00
colin axner
54ecf7d629
bump ibc sub module error codes ( #6117 )
...
* bump ibc sub module error codes
* add godoc
* update error numbers
2020-05-04 09:02:23 -04:00
Marko
218ec99508
various linter fixes ( #6106 )
...
x/staking: Fix all linter warnings.
Fixed warnings across base packages.
New linters:
- unparam
- nolintlint
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-05-02 21:26:59 +02:00
Alexander Bezobchuk
843e3f163c
Merge PR #6112 : Fix error code registration
2020-05-01 10:56:08 -04:00
Federico Kunze
930802e7a1
x/capability: simulations ( #6062 )
...
* x/capability: simulations
* update logs
* validate genesis state
* InitGenesis and ExportGenesis functions
* update validation func
* fix import-export sim
* remove nondeterminism from capability genesis
* Update x/capability/types/genesis.go
* Update x/capability/types/genesis.go
* fix tests
* fix merge
* consistency updates
* try fix nondeterminism
* fix conditional
* Fix random index logic
* lint
* lint
Co-authored-by: Aditya Sripal <adityasripal@gmail.com>
Co-authored-by: Aleksandr Bezobchuk <aleks.bezobchuk@gmail.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-04-30 15:07:43 +00:00
Federico Kunze
7143d092c4
x/ibc: add logs ( #6104 )
2020-04-30 08:37:02 -04:00
Alessio Treglia
2879c0702c
x/ibc: fix missing return statement ( #6099 )
...
* enable the wsl linter
Fix various wsl-related warnings.
x/ibc/04-channel/keeper/handshake.go: fix missing return statement in ChanOpenTry().
* goimports -w files
* remove unknown linter references
* run make format
* Revert "run make format"
This reverts commit f810b62b9e4993f08506663d4e5f2ec2228a9863.
* run make format
2020-04-29 22:36:34 -04:00
SaReN
3b71198b25
Merge PR #6033 : Add setup for cli_test
2020-04-29 11:52:30 -04:00
Federico Kunze
2d3a8525b9
ibc/04-channel: import export GenesisState ( #6087 )
...
* ibc/04-channel: import export GenesisState
* update tests
* add missing genesis fields
* genesis tests
* keeper tests
* update genesis test
* typo
* rename types
* address comments from review
* minor updates
* typo
2020-04-29 09:17:20 -04:00
Aaron Craelius
cc90f2e002
Merge pull request #6085 : Move codec/std to std
2020-04-27 15:40:50 -04:00
Federico Kunze
9b51908597
ibc/02-client: import export GenesisState ( #6073 )
...
* ibc/02-client: import export GenesisState
* client validation
* genesis validation
* ibc genesis tests
* GetAllConsensusStates test
* fix non-determinism
* lint
* fix test
2020-04-27 14:04:26 -04:00
Federico Kunze
e9b5fc9716
ibc/03-connection: import export GenesisState ( #6067 )
...
* ibc/03-connection: import export GenesisState
* add connection paths
* add genesis to ibc module root package
* genesis tests
* iterator and fixes
* changelog
* lint fixes
* godoc
* revert validation
2020-04-24 15:52:07 +00:00
colin axner
f6e9ee7623
x/ibc: Implement Timeout Timestamp ( #6022 )
...
* add timeout timestamp to packet and timestamp to consensus state
* add timeout timestamp event attribute
* update various issues with adding timestamp
* fix tests, add default timeout timestamp
* add unit test and minor fixes
* remove unnecessary code
* code review fix
* Update x/ibc/03-connection/keeper/keeper.go
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Update x/ibc/02-client/exported/exported.go
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Update x/ibc/04-channel/types/packet.go
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Update x/ibc/07-tendermint/types/consensus_state.go
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* return time.Time in error message
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-04-22 22:23:42 +00:00
Alexander Bezobchuk
72a2dae3db
Bump Tendermint v0.33.4 ( #6055 )
...
* Bump go.{mod,sum}
* Update APIs from Tendermint
* Add max clock drift to client state
* Test updates
* Update APIs from Tendermint
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-04-22 19:21:48 +00:00
Jonathan Gimeno
550c3e9ef0
Jonathan/5988 sim params consensus 2 ( #6051 )
...
* temporal commit
* add random consensus params
* make format
* make random pass
* remove comment
* revert change
* update ub key types
* extract Evidence params from state
* extract the random parameters from state
* clean the code
* update imports!
* mispelled back
* mispelled back
* add misspelled command
* update changelog
* remove useless linter to avoid misspell
* remove function
* use tendermint constants
* update import test
* remove debug comment
* Update baseapp/baseapp.go
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-04-22 18:24:13 +00:00
Alexander Bezobchuk
37c92c5f39
Revert "Add consensus params into Simulation ( #6002 )" ( #6046 )
...
This reverts commit 65048683b5
.
2020-04-21 21:46:34 +00:00
Jonathan Gimeno
65048683b5
Add consensus params into Simulation ( #6002 )
...
* temporal commit
* add random consensus params
* make format
* make random pass
* remove comment
* revert change
* update ub key types
* extract Evidence params from state
* extract the random parameters from state
* clean the code
* update imports!
* mispelled back
* mispelled back
* add misspelled command
* update changelog
* remove useless linter to avoid misspell
* remove function
* use tendermint constants
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-04-21 18:28:43 +00:00
Jack Zampolin
793c6f17ff
Fixes for Packet Ack ( #6036 )
...
* Fix packet ack
* Fix test failures
2020-04-20 22:37:18 +00:00
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
758cdd2206
x/ibc: register missing msgs to codec ( #6026 )
...
* Add msg ack and timeout to channel codec
* ibc/09-localhost: register codec MsgCreateClient
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
2020-04-20 10:08:36 +00:00
Federico Kunze
397ffbe119
x/ibc: update ICS09 Loopback Client ( #6018 )
...
* x/ibc: update ICS09 Loopback Client
* ibc/09-localhost: client state errors
* ibc/09-localhost: add messages for create client
* x/ibc: BeginBlocker for localhost client
* test fixes
* update client REST
* add tests
2020-04-17 22:36:12 -04:00
Aditya
54f8666044
Flexible Port Binding for Transfer Module ( #6011 )
...
* remove port check and move portID into genesis state
* move GenesisState to types and implement ExportGenesis
* fix build
* store bound portID in transfer state
* Update x/ibc/20-transfer/types/codec.go
Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-04-17 21:08:25 +00:00
Jack Zampolin
11528d3959
x/ibc/20-transfer/keeper: fix issue with capabilities when receiving packet ( #6023 )
2020-04-17 22:10:27 +02:00
Greg Hill
de00a7fed1
x/ibc: implement 09-localhost per specification ( #5769 )
...
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
2020-04-17 10:36:47 -04:00
colin axner
7bfb709d96
Merge PR #6013 : add cmd validation to ibc query cli cmd
2020-04-16 19:36:13 -04:00
Christopher Goes
3cc4063a2e
Change address type to string ( #6009 )
...
Closes : #5977
2020-04-17 00:09:52 +02:00
Aditya
ca26587e81
Implement ICS-20 Callbacks ( #5984 )
...
* fix acknowledgements, timeouts, and chancloseinit
* fix tests
* add acknowledge test
* add 20 ack events
* add cap authentication to PacketExecuted
* fix events
* return error
* emit error event attribute only on failure
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-04-15 23:37:38 +00:00
Alessio Treglia
aeee097b2f
spring cleanup ( #5991 )
...
* Make format
* Fix golangci-lint warnings
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-04-14 19:13:15 +00:00