Commit Graph

5668 Commits

Author SHA1 Message Date
frog power 4000 ce0c0946b6 Merge PR #4654: Validator slash event stored by period and height 2019-07-01 12:03:34 -04:00
Marko b5cd01d1a8 Merge PR #4651: Remove debugdb & colors 2019-07-01 09:53:16 -04:00
Federico Kunze 48e8161f25 supply querier (#4592)
Add querier to the supply module.

Closes: #4082
2019-07-01 12:32:04 +01:00
Alexander Bezobchuk a485b9a263
Merge PR #4648: Flatten events by type when stringified 2019-06-30 16:31:09 -04:00
Peng Zhong 997c4129ea Merge PR #4643: Update cosmos sdk image, remove unused images 2019-06-30 16:29:05 -04:00
Federico Kunze 352678438c Merge PR #4255: Supply Module 2019-06-28 16:11:27 -04:00
Federico Kunze 4a0fbb3d6e Improve Import/Export Simulation Errors (#4607) 2019-06-28 19:20:36 +01:00
Aditya f9dea984c2 Merge PR #4629: Emit Warning Events when Validator Misses Blocks 2019-06-28 13:53:30 -04:00
Alessio Treglia a57915600c
Update golangci-lint (#4636)
Update golangci-lint to latest version.

Remove ci-lint, no longer used.

Remove golangci-lint from tools target to prevent CI builds
from downloading automatically (and unnecessarily).
Developers can still run make golangci-lint to download
it locally for development and testing purposes.
2019-06-28 15:11:26 +01:00
Alexander Bezobchuk 3a39e9d558
Merge PR #4637: Update Search Txs by Events APIs 2019-06-28 09:32:47 -04:00
Marko b2f8c58ec4 Merge PR #4608: More linters - Gosec, staticcheck 2019-06-26 13:30:36 -07:00
Aayushi Jain c898dac6a9 Merge PR #4625: Implement logger on all module keepers 2019-06-26 12:41:14 -04:00
Alexander Bezobchuk 67f6b02118 Merge PR #4541: Events Tracking / Tendermint v0.32.0 Update
* Update Tendermint to v0.32.0-dev0

* Initial refactor of tags

* Update event types and add unit tests

* Refactor context

* Update module manager

* Update result godoc

* Implement ToABCIEvents

* Update BaseApp

* Minor cleanup

* Fix typo

* Update x/bank message handler

* Update x/bank keeper

* Update x/bank

* Update x/bank events docs

* Update x/crisis module events

* Reset context with events on each message exec

* Update x/distribution events and docs

* Update BaseApp to not set empty events manually

* Implement simple event manager

* Update module manager

* Update modules to use event manager

* Update x/gov module to use events

* Update events docs

* Update gov queries and crisis app module

* Update bank keeper

* Add events to minting begin blocker

* Update modules to use types/events.go

* Cleanup x/mint

* Update x/staking events

* Update x/staking events

* Update events to have sender part of message.sender

* Fix build

* Fix module unit tests

* Add pending log entry

* Update deps

* Update x/crisis/types/events.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update x/bank/internal/types/events.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update x/distribution/types/events.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update x/mint/internal/types/events.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update x/slashing/types/events.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update x/staking/types/events.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update x/gov/handler.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update x/gov/handler.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update x/mint/abci.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update x/mint/abci.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update x/slashing/handler.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update x/staking/handler.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update x/slashing/handler.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update x/staking/handler.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update x/staking/handler.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update x/staking/handler.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Upgrade TM to v0.32.0-dev1

* Update events as strings

* Update Tendermint to v0.32.0-dev2

* Fix BaseApp unit tests

* Fix unit tests

* Bump tendermint version to v0.32.0

* typos
2019-06-26 18:03:25 +02:00
Ethan Frey 3950017bd9 Merge PR #4624: Don't reject config files with create_empty_blocks=false 2019-06-26 08:30:35 -04:00
Alessio Treglia 908c5cf4be
R4R: added slack notification to runsim (#4547) 2019-06-26 08:11:42 +01:00
Ethan Frey 891eb8eec5 Merge PR #4613: Only change rootmultistore hash when substore hashes change 2019-06-25 13:11:22 -04:00
Alexander Bezobchuk 0feee1c160
Merge PR #4618: Module Structure Spec 2019-06-25 11:14:09 -04:00
Marko a7af4e8c45 Merge PR #4621: Changed abci_app.go -> abci.go 2019-06-25 10:03:10 -04:00
Alexander Bezobchuk f0ff0e87f3
Merge PR #4620: Close Staking Iterators 2019-06-25 09:22:17 -04:00
Alexander Bezobchuk b78c359a23
Merge PR #4605: x/bank: Expected Keeeper 2019-06-24 16:45:09 -04:00
Karoly Albert Szabo 52bb151fc7 Remove snap badge from README (#4614) 2019-06-24 16:47:25 +01:00
Alessio Treglia 7b5e6cee07
Remove client/input.{Buffer,Override}Stdin() functions (#4602)
Cobra's new release made them redundant.

Thanks: Juan Leni <juan.leni@zondax.ch> for the original patch.
2019-06-22 11:24:59 +02:00
Marko 4ffabb65a5 lint add deadcode unused (#4606)
Added deadcode and unused linters to the repo, it
helped find some unused code.

Ref #4589
2019-06-21 17:18:01 +02:00
Alessio Treglia 6672e70556 Merge PR #4603: Increase server package's coverage by adding DONTCOVER 2019-06-20 12:06:03 -04:00
Federico Kunze eda558bc7e Merge PR #4600: Check Denom when (Un|Re)delegating 2019-06-20 09:51:18 -04:00
Alexander Bezobchuk 6d5ca0b4f1 Remove print response flag (#4593)
This flag isn't used anywhere and probably hasn't for quite some time.
2019-06-20 14:26:48 +02:00
Hans Schoenburg c3bef9a211 remove ICS categories from swagger UI docs Fixes #4357 (#4429) 2019-06-20 14:17:58 +02:00
Alessio Treglia e12876c0a6
Add goconst to enabled linters (#4591) 2019-06-19 18:44:08 +02:00
Alessio Treglia c530c1cbb7
Remove auth's AccountDecoder type (#4588)
AccountDecoder is now entirely redundant.
client package now does no longer depend on x/auth.

Context: #4488
2019-06-19 16:20:27 +02:00
Alessio Treglia 1eb7706c28
Separate account getters from client/context (#4579)
Account getters are removed from client context. x/auth has the
queriers necessary for retrieving account information.
These functions should be removed since they are currently
redundant and don't provide any extra value.

Closes: #4543
2019-06-19 14:24:11 +02:00
colin axner 84a2582877 remove BlockHeight in context (#4580)
closes #4578
2019-06-19 00:11:31 +02:00
Alessio Treglia 55928ad165
Fix BaseAccount's YAML serialization (#4577) 2019-06-18 18:03:16 +02:00
colin axner 314af42d92 Reintroduce Coin.IsValid() (#4558)
Closes #4556
2019-06-18 18:02:31 +02:00
Alessio Treglia 1e7c4dd58a
Move /bank/balances/{address} REST endpoint into /x/bank (#4570)
Closes: #4560
2019-06-18 15:44:09 +02:00
Marko a79749564e Merge PR #4571: Update .vuepress 2019-06-18 08:04:47 -04:00
Alessio Treglia 1fcac93d57
switch GetConfirmation()'s default to no (#4575)
client/input.GetConfirmation() returns true if and only if the
user's input is confirmative.

The function is used in places where fat-fingering may cause
financial loss, e.g. gaiacli tx send command. Thus it seems
wiser to provide a conservative default in order to protect
users from accidental mistyping.

Closes: #4564
2019-06-18 11:46:51 +02:00
shirleypyj 36142ab624 Merge PR #4567: Update README.md 2019-06-17 22:54:49 -04:00
Alessio Treglia 18415eedaf
Take empty input as yes answer (#4565)
Closes: #4564
2019-06-16 12:06:39 +02:00
Alexander Bezobchuk ac2e765607
Merge PR #4561: Add account JSON tag to AccountWithHeight 2019-06-15 16:17:39 +02:00
Alessio Treglia 73700df8c3 Merge PR #4555: Move client/{tx,rest,utils} into x/auth/client 2019-06-15 14:34:11 +02:00
helldealer 941effc14d Merge PR #4553: Fix undelegate losing tokens issue 2019-06-15 10:26:17 +02:00
Alessio Treglia 1e9ca4a15b
x/bank: use internal package (#4521)
Reorganise x/bank packages and leverage internal special
package for enhanced encapsulation.
2019-06-14 16:10:37 +02:00
Alexander Bezobchuk d5fe9b7eef
Merge PR #4550: Minor Cleanup 2019-06-14 11:52:28 +02:00
colin axner 95f3d32250 Merge PR #4536: Return account queries with height 2019-06-13 15:54:17 +02:00
frog power 4000 8c89023e9f Merge PR #4524: Staking ValidatorPowerRank to use "Potential Consensus Power" 2019-06-12 17:57:47 +02:00
gamarin2 b096357d99 Merge PR #4426: Anatomy of an SDK App Doc 2019-06-12 13:22:27 +02:00
Alessio Treglia 58ce605de4 Merge PR #4530: Test zero fee scenario
Closes: #4528
2019-06-11 12:47:17 +02:00
Alessio Treglia 8cc708b67c
Remove --cors flag (#4525)
The feature is long gone.
Thanks: Angelo Recca <a.recca@bitsong.io> for reporting this.
2019-06-10 17:01:48 +01:00
frog power 4000 d1f17ff903
Merge PR #4520: add some noalias's also fix alias directory in mint 2019-06-10 11:57:38 +02: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