Commit Graph

6247 Commits

Author SHA1 Message Date
Jonathan Gimeno b813e8965f
Merge branch 'master' into jonathan/5569-create-module-account-on-init-genesis 2020-03-05 17:15:35 +01:00
mergify[bot] 6c1e3e53e3
[ADR: 013] Observability (#5188)
* [ADR: 013] Metrics

- Inital ADR for metrics with in the SDK
- extending metrics to be module specific as well

Signed-off-by: Marko Baricevic <marbar3778@yahoo.com>

* add some metrics

* update adr-013 to Observability

* Update docs/architecture/README.MD

Co-Authored-By: Jack Zampolin <jack.zampolin@gmail.com>

* change wording

* minor wording change

* add more things

* undo module work

* Fix formatting and added more info

* Address comments

* Address comments

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Jack Zampolin <jack.zampolin@gmail.com>
Co-authored-by: Timothy Chen <tnachen@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-03-05 16:02:17 +00:00
mergify[bot] bc863c9212
Update module spec (#5751) 2020-03-05 15:40:25 +00:00
Jonathan Gimeno ba099998f6 Clarify what happens with GetModuleAccount method. 2020-03-05 16:36:36 +01:00
Jonathan Gimeno 60031bbc9b re-public methods 2020-03-05 16:19:36 +01:00
Jonathan Gimeno 643b109826 change assert by require 2020-03-05 16:15:53 +01:00
Alexander Bezobchuk ecc00bf9f6
Merge PR #5750: Move Simapp Codec to Std 2020-03-05 09:59:11 -05:00
Aleksandr Bezobchuk 69ba71c28d
Add pkg doc 2020-03-05 09:44:11 -05:00
Federico Kunze e0b5413861
Merge branch 'master' into jonathan/5569-create-module-account-on-init-genesis 2020-03-05 11:41:06 -03:00
Aleksandr Bezobchuk 4dac1abebf
Update imports 2020-03-05 09:40:43 -05:00
Aleksandr Bezobchuk 3f2f4b984e
Move pkg to std/ 2020-03-05 09:32:43 -05:00
mergify[bot] 9acd722db2
x/distribution: simapp for testing (#5725)
* migrate first distribution test to use simapp

* refactor test TestAllocateTokensTruncation

* migrate allocation test for distribution

* migrate TestCalculateRewardsBasic to simapp in distribution

* migrate TestCalculateRewardsAfterSlash to simapp in distribution

* migrate TestCalculateRewardsAfterManySlashes to use simapp

* migrate TestCalculateRewardsMultiDelegator to use ssimapp

* migrate TestWithdrawDelegationRewardsBasic to simapp

* migrate TestCalculateRewardsAfterManySlashesInSameBlock to simapp

* migrate TestCalculateRewardsMultiDelegatorMultiSlash

* migrate old delegation test

* migrate keeper test to simapp

* refactor all distribution to use simapp

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-03-05 14:00:45 +00:00
Jonathan Gimeno 0fc3950899 Merge branch 'jonathan/5569-create-module-account-on-init-genesis' of github.com:cosmos/cosmos-sdk into jonathan/5569-create-module-account-on-init-genesis 2020-03-05 13:34:03 +01:00
Jonathan Gimeno ccb0062560 update changelog 2020-03-05 12:18:04 +01:00
Jonathan Gimeno 626cc1973d update changelog 2020-03-05 12:17:18 +01:00
Jonathan Gimeno 0a93f01eb3
Merge branch 'master' into jonathan/5569-create-module-account-on-init-genesis 2020-03-05 11:58:30 +01:00
Jonathan Gimeno 29abc244eb make private methods that does not need to be exported 2020-03-05 11:56:39 +01:00
Jonathan Gimeno e01c99d019 now it creates the module account on InitChain 2020-03-05 11:45:51 +01:00
Alessio Treglia da5c6ced1d
types: add test cases (#5747)
Upgrade gomock dependency.
2020-03-04 17:49:59 +00:00
Alexander Bezobchuk b9ab834732
Merge PR #5737: x/gov - Proto Migration 2020-03-04 11:20:20 -05:00
Alexander Bezobchuk 0cbe4e5532
Update x/upgrade/types/types.proto
Co-Authored-By: Anil Kumar Kammari <anil@vitwit.com>
2020-03-04 09:27:50 -05:00
Aleksandr Bezobchuk 430739c2b8
Remove named return 2020-03-03 20:29:34 -05:00
Aleksandr Bezobchuk 94103b92d5
Merge branch 'master' into bez/5444-gov-proto-enc 2020-03-03 15:37:04 -05:00
Alexander Bezobchuk 274f389111
Merge PR #5745: Remove internal folder in package Crisis 2020-03-03 15:27:06 -05:00
Aleksandr Bezobchuk cd2febac28
Fix proto 2020-03-03 14:36:02 -05:00
Jonathan Gimeno 87012c7cc8 Merge branch 'jonathan/5646-remove-internal-crisis' of github.com:cosmos/cosmos-sdk into jonathan/5646-remove-internal-crisis 2020-03-03 20:07:47 +01:00
Jonathan Gimeno f3607833c1 update proto file 2020-03-03 20:06:55 +01:00
Aleksandr Bezobchuk d256e5a56f
Address feedback 2020-03-03 13:30:21 -05:00
Aleksandr Bezobchuk 463f522f44
Merge branch 'bez/5444-gov-proto-enc' of github.com:cosmos/cosmos-sdk into bez/5444-gov-proto-enc 2020-03-03 13:25:10 -05:00
Aleksandr Bezobchuk 3b8772725f
Address feedback 2020-03-03 13:24:54 -05:00
Alexander Bezobchuk 9aa2581dc5
Update CHANGELOG.md
Co-Authored-By: Aaron Craelius <aaron@regen.network>
2020-03-03 13:22:29 -05:00
Alexander Bezobchuk b6e36b8aca
Merge branch 'master' into bez/5444-gov-proto-enc 2020-03-03 13:19:44 -05:00
Alexander Bezobchuk c50dd15413
Merge branch 'master' into jonathan/5646-remove-internal-crisis 2020-03-03 13:04:33 -05:00
Alexander Bezobchuk 027fe7f982
Merge PR #5744: Migrate slashing module to use new Simapp 2020-03-03 13:04:15 -05:00
Alexander Bezobchuk 79b04396a4
Merge branch 'master' into bez/5444-gov-proto-enc 2020-03-03 12:03:24 -05:00
Alexander Bezobchuk 87d3f217c4
Merge branch 'master' into jonathan/4875-slashing-use-simapp 2020-03-03 12:02:33 -05:00
Alessio Treglia bfac2a9342
fix types.ChainAnteDecorators() panic (#5742)
* fix types.ChainAnteDecorators() panic

ChainAnteDecorators() panics when no arguments are supplied.
This change its behaviour and the function now returns a nil
AnteHandler in case no AnteDecorator instances are supplied.

Closes: #5741

* Append Terminator to non-terminated chains.

* Fix test case
2020-03-03 16:57:33 +00:00
Alexander Bezobchuk e96ef63b61
Merge branch 'master' into jonathan/4875-slashing-use-simapp 2020-03-03 11:52:09 -05:00
Jonathan Gimeno 3517ebad4c remove internal package folder 2020-03-03 17:45:02 +01:00
Jonathan Gimeno 78791f3c4e clean part of the code 2020-03-03 17:21:17 +01:00
Jonathan Gimeno c97a1b66ca migrate TestJailedValidatorDelegations to simapp 2020-03-03 17:13:49 +01:00
Aleksandr Bezobchuk 04cf635c72
Add changelog entries 2020-03-03 10:32:43 -05:00
Aleksandr Bezobchuk 00180faa15
Proto lint & gen 2020-03-03 09:59:05 -05:00
Alexander Bezobchuk e9dced87f8
Merge branch 'master' into bez/5444-gov-proto-enc 2020-03-03 09:40:57 -05:00
Aleksandr Bezobchuk eedc6f6190
Fulfill MsgSubmitProposalI interface 2020-03-03 09:40:11 -05:00
Alessio Treglia 3349c971ae
increase types/module coverage up to 80% (#5740)
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-03-03 13:38:46 +00:00
seungyeon-hwang 70e829949c
crypto: print an error message if the password input failed (#5739) 2020-03-03 13:32:52 +00:00
Jonathan Gimeno 210d78b54d refactor TestCannotUnjailUnlessMeetMinSelfDelegation to use simapp 2020-03-03 11:43:18 +01:00
Jonathan Gimeno 1da6f3c86e refactor TestCannotUnjailUnlessJailed to use simapp 2020-03-03 11:28:22 +01:00
Jonathan Gimeno 24d25fa207 refactor abci test to use simapp 2020-03-03 11:25:32 +01:00