Ethan Buchman
8fc12a5265
Merge pull request #431 from cosmos/feature/strongly_typed_msgs
...
Strongly typed transactions in handlers
2018-02-17 16:53:53 -05:00
Adrian Brink
125954ace8
Strongly typed transactions in handlers
...
During transaction processing we retrieve the type of msg and based on
that we get the applicable handler from the router. This means that the
router should only receive messages that it knows how to handle. Instead
of using Get interfaces, we should cast to the actual type of
transaction and then access the transaction details that way.
It's okay to panic here, because if the DummyHandler receives a message
that it cannot cast to the expected type it means something is wrong
with the router. Instead of retrieving an arbitrary key by chance we
should panic.
2018-02-17 16:51:20 -05:00
Ethan Buchman
3b826455c6
Merge pull request #470 from cosmos/basecoin-refactor-more
...
Basecoin refactor more
2018-02-17 16:39:00 -05:00
Ethan Buchman
8d8f4114a8
x/sketchy -> examples/basecoin/x/sketchy
2018-02-17 16:32:30 -05:00
Ethan Buchman
c31f871de6
finish removing TestApp and TestTx
2018-02-17 16:32:30 -05:00
Ethan Buchman
c56b6254de
update basecoin for baseapp changes - still need to fix tests
2018-02-17 16:32:30 -05:00
Ethan Buchman
f6cea66e2e
test and fix InitChain
2018-02-17 16:32:30 -05:00
Ethan Buchman
c7df77ce3c
simplify baseapp and InitStater -> InitChainer
2018-02-17 16:32:30 -05:00
Ethan Buchman
96b734b729
glide update for abci RequestInitChain.AppStateBytes
2018-02-17 16:32:30 -05:00
Ethan Buchman
1698e4e2d8
small test and some comments
2018-02-17 16:32:30 -05:00
rigelrozanski
1555c4876e
pretty good refactor
2018-02-17 16:32:30 -05:00
rigelrozanski
938ee94e9e
WIP refactor working
2018-02-17 16:32:30 -05:00
rigelrozanski
6681904af9
wip refactoring basecoin
2018-02-17 16:32:30 -05:00
rigelrozanski
44536faf08
wip refactoring basecoin
2018-02-17 16:32:30 -05:00
rigelrozanski
f446b94ac7
wip basecoin refactoring
2018-02-17 16:32:30 -05:00
rigelrozanski
34ff225c31
working
2018-02-17 16:32:30 -05:00
rigelrozanski
890fadc8c3
wip refactor examples/basecoin
2018-02-17 16:32:30 -05:00
Ethan Buchman
e628756bea
Merge pull request #445 from cosmos/feature/code_of_conduct
...
Create CODE_OF_CONDUCT.md
2018-02-15 13:03:31 -05:00
Ethan Buchman
8626038e92
Merge pull request #430 from cosmos/feature/coinmapper
...
Refactor CoinMapper
2018-02-13 13:39:03 -05:00
Adrian Brink
8837af66bd
Refactor CoinMapper
...
CoinMapper is now called CoinKeeper to differentiate it from
AccountMapper. A Mapper retrieves things from a store. A Keeper exposes
functionality of coins and maintain invariants.
bank.NewHandler takes a CoinKeeper instead of the entire AccountMapper.
2018-02-13 13:33:19 -05:00
Ethan Buchman
51dca8f0a9
Merge pull request #415 from cosmos/docs-refactor
...
Docs refactor
2018-02-13 09:30:49 -05:00
Ethan Buchman
043e647695
rm attic
2018-02-13 09:23:34 -05:00
Ethan Buchman
3bb3c8406a
docs: minor fix
2018-02-13 09:14:04 -05:00
Zach Ramsay
07008f3103
nit
2018-02-13 09:12:23 -05:00
Zach Ramsay
53ad094f98
docs: fix links
2018-02-13 09:12:23 -05:00
Zach Ramsay
ca5e837e54
docs: prettify & organize
2018-02-13 09:12:23 -05:00
Zach Ramsay
fd5dfc5944
docs: remove middleware section
2018-02-13 09:12:23 -05:00
Zach Ramsay
515ad58dfb
fix gaia keys doc
2018-02-13 09:12:23 -05:00
Zach Ramsay
5e473f30d7
comment out basecoin binary stuff until it's built
2018-02-13 09:12:23 -05:00
Zach Ramsay
6af049ad00
fix build errors
2018-02-13 09:12:23 -05:00
Zach Ramsay
31843aa56c
docs: .rst formatting & image
2018-02-13 09:12:23 -05:00
Zach Ramsay
02e66992be
more dumb rebase fixes
2018-02-13 09:12:23 -05:00
Zach Ramsay
860cf229b0
rm more shelldown
2018-02-13 09:12:23 -05:00
Zach Ramsay
4e86016f98
return the attic because WTF rebase
2018-02-13 09:12:23 -05:00
Zach Ramsay
22ed04c896
docs: remove shelldown FTTB
2018-02-13 09:12:23 -05:00
Zach Ramsay
d4dcc4c3c8
tests: more organized
2018-02-13 09:12:23 -05:00
Zach Ramsay
b51d5dda8c
remove deprecated 'tests/' directory & old D-file
2018-02-13 09:12:23 -05:00
Zach Ramsay
3baea45694
remove deprecated 'publish/' directory
2018-02-13 09:12:13 -05:00
Zach Ramsay
5a651398b2
remove deprecated RELEASE / TODO files
2018-02-13 09:11:14 -05:00
Zach Ramsay
e6b0983e53
docs: use x dir for extensions
2018-02-13 09:11:14 -05:00
Zach Ramsay
461c776404
docs: remove _build dir
2018-02-13 09:11:14 -05:00
Zach Ramsay
b655d902de
docs: remove reference to middleware/isolation
2018-02-13 09:11:14 -05:00
Zach Ramsay
5ed30b2a62
docs: s/plugin/extensions/g, #326
2018-02-13 09:11:14 -05:00
Zach Ramsay
e30c8d8a7c
docs: more re-org
2018-02-13 09:11:14 -05:00
Zach Ramsay
4401b2afc0
docs: remove 'roles'
2018-02-13 09:11:14 -05:00
Zach Ramsay
670f833233
docs: ongoing organization
2018-02-13 09:11:12 -05:00
Zach Ramsay
ef65ff7b22
remove stdlib.rst
2018-02-13 09:08:16 -05:00
Zach Ramsay
05410f6f9b
update Cosmos SDK image, #409
2018-02-13 09:08:13 -05:00
Ethan Buchman
876e344e75
Merge pull request #349 from cosmos/sdk2-cli
...
gaia binary cli structure
2018-02-13 08:53:07 -05:00
Ethan Buchman
cb470003b3
add ebuchman as codeowner
2018-02-13 08:55:44 -05:00