Jonathan Gimeno
49102b1d98
Remove dependency of types/module package on x/simulation ( #5835 )
...
Closes : #5724
2020-03-23 12:55:44 +01:00
Alexander Bezobchuk
6890feb3d2
Merge PR #5572 : ADR 004 Implementation
2020-01-30 16:31:16 -05:00
Alexander Bezobchuk
26d6e49d6a
Merge PR #5491 : Protobuf Introduction + Types
2020-01-24 10:32:00 -05:00
Alexander Bezobchuk
c1991e31bd
Merge PR #5527 : Bump Tendermint Version to v0.33.0
...
* Bump Tendermint version to v0.33.0
* Deprecate old cmn package with new packages
* Update update DB APIs
* More DB updates
* Bump IAVL to v0.13.0
* Handle error returned by iavl.NewMutableTree
* Fix some IAVL stuffs
* Update IAVL
* More updates
* Passing tests
* Fix unit tests
Co-authored-by: Jack Zampolin <jack.zampolin@gmail.com>
2020-01-16 13:46:51 -08:00
Alessio Treglia
bc7c8c7c6b
Bump x/simulation coverage ( #5407 )
2019-12-13 17:46:27 +00:00
Alexander Bezobchuk
9f03b57fe3
Merge PR #5359 : Params Validation
2019-12-10 11:48:57 -05:00
Alessio Treglia
72ff13eb97
[x/simulation] RandSubsetCoins() should return sorted coinset ( #5373 )
...
Closes : #5372
2019-12-06 16:25:25 +01:00
Federico Kunze
722a633f54
Sim refactor 3: move weighted operations to modules ( #4869 )
...
* move GenesisState generators to modules
* minor change on slashing genState generator
* move simulation params back to modules (#4839 )
move simulation params back to modules (#4839 )
* cleanup params
* various fixes
* move store decoders to modules
* fix
* module pattern
* split generators for param change
* param changes
* revert util pkg
* banksim
* compile
* update Decoders params
* fix
* address @colin-axner comments
* move weighted operations to modules
* cleanup
* cleanup
* Update cmd_test.go
* simulation manager
* mino fixes
* cleanup
* add GenerateGenesisState to simulation manager
* Apply suggestions from code review
Co-Authored-By: frog power 4000 <rigel.rozanski@gmail.com>
* address @rigelrozanski comments
* changelog
* Apply suggestions from code review
Co-Authored-By: colin axner <colinaxner@berkeley.edu>
* restructure modules simulation pkgs
* remove cycle deps
* rename funcs and add missing params
* modularize simulator param changes
* build
* fix params keys
* make format
* various fixes
* fix tests
* minor updates to sim_test
* cleanup
* more cleanup
* modularize genesis generators
* minor cleanup
* remove cdc from generators
* remove cdc
* add get or generate
* fix non-determinism in simulation
* changelog and x/simulation godoc
* cleanup operations
* update operations to use baseapp
* updates and cleanup operations
* update operations
* restructure sim ops params
* rename sim /operations/msg.go to /operations.go
* move GenTx to a helper pkg to avoid circle deps
* rm msg.ValidateBasic
* changelog
* random fees; delete auth's DeductFees sim operation
* add chain-id for sig verification
* Update x/simulation/account.go
Co-Authored-By: colin axner <colinaxner@berkeley.edu>
* fix bank, gov and distr errors
* fix staking and slashing errors; increase prob for send enabled
* increase gas x10
* make format
* fix some distr and staking edge cases
* fix all edge cases
* golang ci
* rename acc vars; default no fees to 0stake
* cleanup; check for exchange rate and skip invalid ops
* fixes
* check for max entries
* add pubkey to genaccounts
* fix gov bug
* update staking sim ops
* fix small redelegation error
* fix small self delegation on unjail
* rm inf loop on random val/accs
* copy array
* add ok boolean to RandomValidator return values
* format
* build
* add WeightedOperations to AppModuleSimulation
* define each module proposals content as part of the module pattern
* Update x/bank/simulation/operations.go
Co-Authored-By: colin axner <colinaxner@berkeley.edu>
* Update simapp/helpers/test_helpers.go
Co-Authored-By: colin axner <colinaxner@berkeley.edu>
* address @colin-axner comments
* add genaccount pubkey validation
* fix test
* update operations and move RandomFees to x/simulation
* update gov ops
* address @alexanderbez comments
* avoid modifications to config
* reorder params
* modularized sim operations working
* changelog
* Update types/module/simulation.go
Co-Authored-By: frog power 4000 <rigel.rozanski@gmail.com>
* Update x/simulation/params.go
Co-Authored-By: frog power 4000 <rigel.rozanski@gmail.com>
* Update x/simulation/params.go
Co-Authored-By: frog power 4000 <rigel.rozanski@gmail.com>
* update /types/module
* Update x/distribution/simulation/genesis.go
Co-Authored-By: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
* remove named return values
* ensure all operations are simulated
* golangci
* add nolint
* disable whitespace and funlen linter
* disable godox
* add TODO on unjail
* update ops weights
* remove dup
* update godoc
* remove unused func
* build fixes
* move weights to the same file
* scopelint
* changelog
* address @AdityaSripal comments
* address @alexanderbez comments
2019-12-05 10:29:54 +01:00
Federico Kunze
8344c0aef8
update simulation operations to use BaseApp ( #4946 )
...
* update operations to use baseapp
* updates and cleanup operations
* update operations
* restructure sim ops params
* rename sim /operations/msg.go to /operations.go
* move GenTx to a helper pkg to avoid circle deps
* rm msg.ValidateBasic
* changelog
* random fees; delete auth's DeductFees sim operation
* add chain-id for sig verification
* Update x/simulation/account.go
Co-Authored-By: colin axner <colinaxner@berkeley.edu>
* fix bank, gov and distr errors
* fix staking and slashing errors; increase prob for send enabled
* increase gas x10
* make format
* fix some distr and staking edge cases
* fix all edge cases
* golang ci
* rename acc vars; default no fees to 0stake
* cleanup; check for exchange rate and skip invalid ops
* fixes
* check for max entries
* add pubkey to genaccounts
* fix gov bug
* update staking sim ops
* fix small redelegation error
* fix small self delegation on unjail
* rm inf loop on random val/accs
* copy array
* add ok boolean to RandomValidator return values
* format
* Update x/bank/simulation/operations.go
Co-Authored-By: colin axner <colinaxner@berkeley.edu>
* Update simapp/helpers/test_helpers.go
Co-Authored-By: colin axner <colinaxner@berkeley.edu>
* address @colin-axner comments
* add genaccount pubkey validation
* fix test
* update operations and move RandomFees to x/simulation
* update gov ops
* address @alexanderbez comments
* avoid modifications to config
* reorder params
* changelog
* Update x/distribution/simulation/genesis.go
Co-Authored-By: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
* remove named return values
* ensure all operations are simulated
* golangci
* add nolint
* disable whitespace and funlen linter
* disable godox
* add TODO on unjail
* update ops weights
* remove dup
* update godoc
* x/slashing/simulation/operations.go linting
* x/staking/simulation/operations.go linting
* update operations format
* x/bank/simulation/operations.go linting
* x/distribution/simulation/operations.go linting
* x/staking/simulation/operations.go linting
* start changes: make bank simulate send multiple coins, code cleanup
* fix nondeterminism bug
* fix txsiglimit err
* fix multisend bug
* simplify simulation, cleanup opt privkey args
* make slashing test invalid unjail msgs
* Update simapp/state.go
* golangCI changes
2019-10-23 11:14:45 +02:00
Marko
b9490f2d93
Merge PR #5203 : Add more linters
2019-10-17 09:47:35 -04:00
Federico Kunze
e3e49fc72c
Merge PR #5009 : remove redundant invariant simapp check
2019-09-06 14:23:40 -04:00
Alexander Bezobchuk
f010d2c6f1
Merge PR #4748 : Write-Through Inter-Block Cache
2019-09-04 13:33:32 -04:00
Federico Kunze
45b25ceaae
Merge PR #4838 : Sim refactor 2 - Move GenesisState generators to modules
2019-08-28 10:58:25 -04:00
Marko
3a4f1fc4d4
Merge PR #4881 : Linting Galore
2019-08-19 12:06:27 -04:00
Federico Kunze
57cc5ae3a2
Merge PR #4906 : Introduce Simulation Config
2019-08-15 11:35:25 -04:00
Alexander Bezobchuk
42c54f8d0c
Merge PR #4861 : Simulation Fixes
2019-08-07 12:54:13 -04:00
colin axner
865d473eb4
Merge PR #4832 : print all failed invariants only
2019-08-05 14:21:44 -04:00
Federico Kunze
c4e3578087
Merge PR #4791 : resume simulations at a given height
2019-08-02 11:28:50 -04:00
Federico Kunze
24b9e84a84
Merge PR #4784 : JSON representation of event stats
2019-07-26 13:09:15 -07:00
Alexander Bezobchuk
3c822547cf
Merge PR #4750 : Allow the use of a custom genesis time in simulations
2019-07-19 14:46:06 -07:00
Federico Kunze
8af2230ee4
Merge PR #4731 : Save sim params and export app state to file
2019-07-19 18:59:04 +02:00
Federico Kunze
a922dad346
Merge PR #4686 : v0.36 supply changes to genesis migration
2019-07-18 14:43:56 +02:00
colin axner
280734d0e3
collect all invariants for a block before stopping ( #4707 )
2019-07-11 11:56:43 +01:00
Aayushi Jain
1a7f31f7c8
Merge PR #4678 : Clean YAML output
2019-07-05 19:25:56 -04:00
Federico Kunze
352678438c
Merge PR #4255 : Supply Module
2019-06-28 16:11:27 -04:00
Alexander Bezobchuk
6606007297
Merge PR #4435 : Simulation: Params from File
...
* Move distr params to simulation param generator
* Cleanup sim params output
* Print params when possible instead of entire genesis struct
* Update module param simulator keys
* Rename module params simulator keys
* Add/fix missing module params and implement SimParams
* UPdate sim test to accept params file
* Allow weights to be provided from file
* Create doc.go
* Remove TODO
* Implement MustMarshalJSONIndent
* Use mustMarshalJSONIndent for non-codec
* Remove TODO
* Fix doc.go
* Update points
* Update simapp/doc.go
Co-Authored-By: Alessio Treglia <quadrispro@ubuntu.com>
* Update simapp/doc.go
Co-Authored-By: Alessio Treglia <quadrispro@ubuntu.com>
* Cleanup appStateFn
* Use constants for simulation parameter keys
* Update msgs.go
* minor formatting
2019-06-08 16:55:47 -04:00
Federico Kunze
9c65e47329
Merge PR #4485 : rename expected pkg to exported
...
* rename expected pkg to exported
* rename pkg
2019-06-05 13:42:25 -04:00
Joon
91e75cb74a
Merge PR #4403 : Paramchange proposal skips omitempty fields
2019-05-27 20:47:12 -04:00
frog power 4000
38f49e4114
Merge PR #4389 : stake invariance bug
...
* add trouble seed
* currentStakeRoundUp is now always atleast currentStake + smallest-decimal-precision
* remove unused code
* remove debugs
* @alexanderbez comment
* compile fix
* better comment, increase tolerance to 3 smallest decimal points
2019-05-24 21:23:53 -04:00
Christopher Goes
dd89c32951
Community pool spend proposal ( #4329 )
...
Implement the "CommunityPoolSpendProposal" as described in Cosmos Hub proposal 7.
Also a useful test of Git flow for merging features passed in governance proposals.
2019-05-21 11:02:10 +01:00
Alessio Treglia
71d71f2206
Remove gaia ( #4347 )
...
Gaia is removed from cosmos-sdk repository.
Few changes were required to make sure no packages depend on gaia subpackages.
CI config is amended accordingly.
Unnecessary targets are removed from Makefile.
Simulations run through a lightweight version of gaia renamed to simapp.
Closes : #4104
2019-05-18 10:42:24 +02:00
Nicolas Pinto
f0b690ba6e
Merge PR #4366 : Random Fuzzer fix: avoids VotingPeriod=0
2019-05-17 19:46:43 -04:00
frog power 4000
cef788042b
Merge PR #4365 : Simulator bugfix for multisim 7601778
2019-05-17 19:45:36 -04:00
Nicolas Pinto
fd9f322b8c
Merge PR #4363 : invalid 0stake deposit amount in sim
...
This fixes the "panic: Governance deposit amount must be a valid sdk.Coins amount, is 0stake" that can happen in the simulator if `DepositParams/MinDeposit` samples the integer `0`.
2019-05-17 16:51:55 -04:00
Alexander Bezobchuk
29ed730aff
Merge PR #4244 : Param Proposal Simulation Messages; Minting Params Fix
2019-05-02 16:50:01 -04:00
Alexander Bezobchuk
df6f2d6e25
Merge PR #4140 : Fix Failed Simulation Seeds
2019-04-22 10:57:58 -04:00
Alexander Bezobchuk
722d122da7
Merge PR #4079 : Implement Invariant Benchmarks
2019-04-12 18:52:16 -04:00
frog power 4000
02a0e393c5
Run missing invariants during simulations ( #4080 )
2019-04-10 02:34:38 +01:00
Alessio Treglia
85021d4ca9
No packages must depend on cmd/gaia/ ( #4048 )
...
Preparation work for moving gaia out of the SDK.
2019-04-04 15:36:39 +01:00
frog power 4000
f0d1efa43c
Merge PR #3819 : Simulation Refactor
2019-03-14 19:13:15 +01:00