Commit Graph

6123 Commits

Author SHA1 Message Date
Aleksandr Bezobchuk
31dc2729fc
Merge branch 'master' into bez/5444-gov-proto-enc 2020-03-02 12:50:32 -05:00
Aleksandr Bezobchuk
e2b72141bf
Update keeper 2020-03-02 12:49:32 -05:00
Aleksandr Bezobchuk
725e2dc2b4
Update gov codec interface 2020-03-02 12:44:55 -05:00
Aleksandr Bezobchuk
081e62cb2d
Update codec 2020-03-02 11:54:43 -05:00
Aleksandr Bezobchuk
8f131e2e0c
Fix and updates gov proto types 2020-03-02 09:14:17 -05:00
Alexander Bezobchuk
e3580896ab
Migrate Keeper staking tests to use simapp (#5683)
* use simapp into keeper

* refactor TestHistoricalInfo to use simapp

* refactor historical info test

* temporal commit on querier test, it passes

* commit end of day refactoring

* rename and temp commit

* fix test query validators

* make TestQueryDelegations pass with simapp :D

* rename function

* make TestQueryRedelegations pass with simapp

* finish keeper refactor for querier in staking using simapp

* refactor delegation test TestUnbondDelegation to use simapp

* make all test pass temporary

* avoid usage of historicals

* refactor creation of the simapp

* refactor creation of simapp

* comment before creating new way to generate accounts

* make TestDelegation pass with generated accounts

* refactor to use accounts

* refactor test unbondingdelegationsmax entries

* refactor TestUndelegateSelfDelegationBelowMinSelfDelegation to use simapp

* update TestUndelegate from unbonding validator and fix bug

* refactor TestUndelegateFromUnbondedValidator to use simapp

* TestUnbondingAllDelegationFromValidator to use simapp

* refactor TestGetRedelegationsFromSrcValidator to use simapp

* refactor TestRedelegation to use simapp

* refactor TestRedelegateToSameValidator to use simapp

* refacotr TestRedelegationMaxEntries to use simapp

* refactor delegation test

* refactor TestRedelegateFromUnbondingValidator to use simapp

* finish refactor delegation test

* refactor and remove unused code

* migrate revocation of old slash test

* fix TestSlashUnbondingDelegation test to use simapp

* refactor TestSlashRedelegation to use simapp

* refactor TestSlashAtFutureHeight test

* test TestSlashAtNegativeHeight migrated to simapp

* migrated two tests from slash_test to use simapp

* refactor TestSlashWithRedelegation

* end refactoring slash_test

* refactor first test validation to simapp

* refacor TestUpdateValidatorByPowerIndex to use simapp

* refactor TestUpdateBondedValidatorsDecreaseCliff to simapp

* refactor TestSlashToZeroPowerRemoved

* TestValidatorBasics

* refactro TestGetValidatorSortingUnmixed to simapp

* refactor TestGetValidatorSortingMixed test to simap

* refctor TestGetValidatorsEdgeCases to use simapp

* make test TestValidatorBondHeight pass

* refactor TestFullValidatorSetPowerChange test

* end refactoring validator_test

* clean code

* move methods

* rename

* rename commont test

* git remove unused vars

* refactor ordering functions

* refactor old genesis_test to use simapp

* refactor TestValidatorByPowerIndex

* refactor TestDuplicatesMsgCreateValidator

* refactor TestInvalidPubKeyTypeMsgCreateValidator

* temporary commit

* refactor TestLegacyValidatorDelegations to use simapp

* refactor TestIncrementsMsgDelegate

* refactor next

* refactor TestEditValidatorIncreaseMinSelfDelegationBeyondCurrentBond

* refactor TestIncrementsMsgUnbond

* refator TestMultipleMsgCreateValidator

* refactor TestMultipleMsgDelegate

* refactor TestJailValidator

* refactor TestUnbondingPeriod and TestValidatorQueue

* refactor TestUnbondingFromUnbondingValidator and TestRedelegationPeriod

* refactor TestTransitiveRedelegation and TestMultipleRedelegationAtSameTime

* refactor TestMultipleRedelegationAtUniqueTimes and TestMultipleUnbondingDelegationAtSameTime

* refactor TestMultipleUnbondingDelegationAtUniqueTimes and TestUnbondingWhenExcessValidators

* end refactor handler_test

* remove test_common

* remove create test public keys

* fix based on PR comments

* use prealloc array for ConvertAddrsToValAddrs

* fix lint errors

* fix lint errors 2

* remove duplicated func

* rename function names

* Update simapp/test_helpers.go

* Update x/staking/keeper/keeper.go

* Update simapp/test_helpers.go

* Update simapp/test_helpers.go

* add last touches to the PR

* edit text

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Alessio Treglia <quadrispro@ubuntu.com>
2020-02-28 12:45:24 -08:00
Alessio Treglia
52c6e5e322
Merge branch 'master' into jonathan/4875-staking-test-use-simapp 2020-02-28 20:30:27 +00:00
Alessio Treglia
7080949f4e
Update CODEOWNERS as per @jaekwon's directives (#5728) 2020-02-28 18:27:42 +00:00
Alessio Treglia
d094183895
Increase code coverage of version up to 100% (#5726) 2020-02-28 18:14:01 +00:00
Jonathan Gimeno
f090da2100 edit text 2020-02-28 19:07:10 +01:00
Jonathan Gimeno
f8442bb46f add last touches to the PR 2020-02-28 19:06:03 +01:00
Alexander Bezobchuk
2b688a0121
Merge branch 'master' into jonathan/4875-staking-test-use-simapp 2020-02-28 09:59:39 -08:00
Alexander Bezobchuk
19546f2197
Update simapp/test_helpers.go 2020-02-28 09:59:26 -08:00
Alexander Bezobchuk
03af49bda2
Update simapp/test_helpers.go 2020-02-28 09:59:17 -08:00
Alexander Bezobchuk
9aa2088c23
Update x/staking/keeper/keeper.go 2020-02-28 09:59:06 -08:00
Alexander Bezobchuk
256e5fc863
Update simapp/test_helpers.go 2020-02-28 09:58:55 -08:00
Alexander Bezobchuk
5c1c64bfae
Merge PR #5718: Return Empty GasInfo on Failed Msg Validation 2020-02-28 09:51:00 -08:00
Marko
a5fd4705ed
Merge PR #5723: fix config file 2020-02-28 09:36:26 -08:00
Alessio Treglia
1b78457135
Run go mod tidy (#5721) 2020-02-28 13:19:00 +00:00
Alessio Treglia
66f8e35b90
Build with go1.14 (#5719) 2020-02-28 12:26:11 +00:00
Jonathan Gimeno
2c32ff3ee4
Merge branch 'master' into jonathan/4875-staking-test-use-simapp 2020-02-28 10:58:16 +01:00
Anil Kumar Kammari
0b7449129a
Merge PR #5500: Regen network/multistore upgrades 2020-02-27 22:26:04 -08:00
Marko
de0f1a9e40
Merge PR #5714: tools: add mergify 2020-02-27 21:36:42 -08:00
Jonathan Gimeno
60293dd2e6
Merge branch 'master' into jonathan/4875-staking-test-use-simapp 2020-02-27 17:51:14 +01:00
Jonathan Gimeno
ce46939308 rename function names 2020-02-27 16:49:53 +01:00
Jonathan Gimeno
d279066285 remove duplicated func 2020-02-27 16:47:59 +01:00
Alessio Treglia
5a2e59ebb2
Exclude proto files from format (#5706)
* Don't change proto files on make format

The format target does not need to depend on tools.
Thus remove dependency.

* Run make format

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-02-27 07:53:22 -03:00
dependabot-preview[bot]
8227d9e376
Bump github.com/golang/protobuf from 1.3.3 to 1.3.4 (#5707)
Bumps [github.com/golang/protobuf](https://github.com/golang/protobuf) from 1.3.3 to 1.3.4.
- [Release notes](https://github.com/golang/protobuf/releases)
- [Commits](https://github.com/golang/protobuf/compare/v1.3.3...v1.3.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-02-27 02:47:05 -05:00
Anthony
2b75f50604
Merge PR #5708: fix type for the event documentation 2020-02-27 02:37:16 -05:00
Aaron Craelius
81735debe5 Fix proposal marshaling, make Proposal extend ProposalBase 2020-02-26 20:47:45 -05:00
Aaron Craelius
333066efa8 Fix distribution proto package 2020-02-26 20:16:48 -05:00
Aaron Craelius
feb8b0d4c3 Protogen fix 2020-02-26 20:15:32 -05:00
Aaron Craelius
8bd648eef1 WIP on std codec 2020-02-26 20:15:00 -05:00
Aaron Craelius
2cf8a5e955 WIP on proposal proto 2020-02-26 20:15:00 -05:00
Aaron Craelius
830ada0fa4 WIP on StdProposal 2020-02-26 20:15:00 -05:00
Aaron Craelius
2e0033afcf Update x/gov/types/codec.go
Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
2020-02-26 20:15:00 -05:00
Aaron Craelius
38d44e839e WIP on fixing tests 2020-02-26 20:15:00 -05:00
Aaron Craelius
d563248bbb mv codec.proto -> types.proto 2020-02-26 20:15:00 -05:00
Aaron Craelius
3919645e8b Rename GovCodec to gov.Codec 2020-02-26 20:15:00 -05:00
Aaron Craelius
e8155d67d0 Simple refactoring of gov to use protobuf for store encoding (for everything besides proposal) 2020-02-26 20:15:00 -05:00
Aaron Craelius
56104c2961
Merge PR #5703: Fix typo in distribution proto package name 2020-02-26 10:58:27 -05:00
Jonathan Gimeno
4de26fd67a fix lint errors 2 2020-02-26 16:35:04 +01:00
Alexander Bezobchuk
8cab43c812
Merge PR #5702: Add Param Querying to x/auth 2020-02-26 10:33:56 -05:00
Jonathan Gimeno
14469ccc74 fix lint errors 2020-02-26 16:29:48 +01:00
Jonathan Gimeno
1648edfc0d use prealloc array for ConvertAddrsToValAddrs 2020-02-26 16:16:56 +01:00
Jonathan Gimeno
c94a98f459 fix based on PR comments 2020-02-26 16:05:12 +01:00
Jonathan Gimeno
1d18f8839c remove create test public keys 2020-02-26 15:57:41 +01:00
Jonathan Gimeno
64c2971c6f remove test_common 2020-02-26 15:51:45 +01:00
Jonathan Gimeno
bbbbc61276 end refactor handler_test 2020-02-26 15:48:51 +01:00
Jonathan Gimeno
015fd43f51 refactor TestMultipleUnbondingDelegationAtUniqueTimes and TestUnbondingWhenExcessValidators 2020-02-26 15:44:15 +01:00