Commit Graph

195 Commits

Author SHA1 Message Date
Ethan Buchman 62d6a5de46 crypto.Address -> sdk.Address 2018-03-02 02:49:07 -05:00
Ethan Buchman cba7379f78 dont mount multiple stores while its broken 2018-03-01 02:03:26 -05:00
Ethan Buchman 2047abc8bc add tests to show mounting multiple stores is broken. see #532 2018-03-01 02:00:44 -05:00
rigelrozanski 5ba2714777 removed gaia cli references (on reference branch now) 2018-03-01 02:36:57 +00:00
rigelrozanski 3be46395cf restructure to remove deps on example 2018-03-01 02:36:57 +00:00
rigelrozanski 5bc5135c1b wire 2018-03-01 02:36:57 +00:00
rigelrozanski 1d3904dfd3 bank registers crypto 2018-03-01 02:36:57 +00:00
Ethan Frey bae7cec3fa Move all subcommands out of main into proper folders 2018-03-01 02:36:57 +00:00
Ethan Frey 7779eec990 Make store name for query account configurable 2018-03-01 02:36:57 +00:00
Ethan Frey 356baf61c1 Move sendtx and query account commands into x/bank 2018-03-01 02:36:57 +00:00
Ethan Frey 00304dd094 Prompt for password on sendtx 2018-03-01 02:36:57 +00:00
Ethan Frey 67e896dcaf Clean up sendtx example 2018-03-01 02:36:57 +00:00
Ethan Frey f481900b23 Hacked together sendtx - basecoin parse logic fails 2018-03-01 02:36:57 +00:00
Ethan Frey 8c93a6455b Implement query account without proofs 2018-03-01 02:36:57 +00:00
Ethan Frey 58f2cbfa38 Removed keys stub 2018-03-01 02:36:57 +00:00
Ethan Frey b0c65f8045 All keys logic works with new basecli 2018-03-01 02:36:57 +00:00
Ethan Frey 66e6677281 Copy over gaiacli skeleton to basecli 2018-03-01 02:36:57 +00:00
Ethan Frey e8676921f7 Basecoind start works with upgraded tendermint 2018-03-01 02:36:08 +00:00
Ethan Frey 7848ee23db Addressed pr comments 2018-03-01 02:36:08 +00:00
Ethan Frey 94ddda6a1f Copy init code from tendermint so it runs properly 2018-03-01 02:31:17 +00:00
Ethan Frey 4e91a0db89 Add cli to basecoind, fix compatability issues 2018-03-01 02:31:17 +00:00
Ethan Frey 09e07bb44a Extracted initialization logic into server, default option generation in gaia 2018-03-01 02:30:14 +00:00
Ethan Frey 438d18e059 Pulled most of gaiad into server, with rough implementation 2018-03-01 02:30:13 +00:00
Ethan Frey a99d913982 Extract version command to common location 2018-03-01 02:30:13 +00:00
Ethan Frey d1fc3d6801 Add overview 2018-03-01 02:30:13 +00:00
Adrian Brink 40c3465ec5 Add multiple routes simultaneously
closes #329
2018-02-28 17:27:20 +00:00
Ethan Buchman 55730270e5 basecoin: remove glide 2018-02-28 00:04:20 -05:00
Ethan Buchman ed88100f15
Merge pull request #515 from cosmos/bugfix/remove-basecoin-extra-vendor
Remove errant basecoin vendor mess
2018-02-27 23:57:38 -05:00
Ethan Buchman 588acc272e baseapp: dont save header for now. use DeliverTx state in InitChain (fixes #474) 2018-02-27 23:07:54 -05:00
Ethan Buchman a91bcaf4f2
Merge pull request #488 from cosmos/moar-tests
REVIEW: baseapp: start TestInfo
2018-02-27 19:11:49 -05:00
Ethan Frey babbf0635f Remove errant basecoin vendor mess 2018-02-27 17:44:20 +01:00
Ethan Buchman 53812a2076
Merge pull request #490 from cosmos/basecoin-install-patch
basecoin get_tools
2018-02-21 00:17:46 -05:00
Zach Ramsay 2b25f5948d glide.lock 2018-02-20 22:10:01 +00:00
Adrian Brink 9ec5f37a02
Fix installation process for basecoind from top-level folder
The make build command only works if you install the dependencies first.
Previously you had to cd into examples/basecoin and run get_vendor_deps
and then cd into cosmos-sdk and then run build.

With this change a user can just run build in the top-level folder and
the dependencies are installed automatically.
2018-02-20 13:00:48 +01:00
rigelrozanski 37600d2cd0 basecoin get_tools 2018-02-20 10:10:36 +00:00
zramsay e1e886a0fc s/dummy&Dummy/kvstore&KVStore/g 2018-02-19 22:17:06 +00:00
Jae Kwon 1197c6db93 Making basecoind quickly terminate - temporary workaround 2018-02-18 22:09:10 -08:00
zramsay 0e93f694d6 basecoin/tests: send real tx, check balances (#471) 2018-02-19 02:31:52 +00:00
Ethan Buchman 5019700425 Set(Begin/End)Blocker and some comments 2018-02-18 13:48:36 -05:00
Ethan Buchman 958a632eed baseapp: ctxCheck and ctxDeliver, begin/endBlocker 2018-02-17 18:14:15 -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 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
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
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 bdc33f6a10 examples/gaia 2018-02-13 08:40:09 -05:00
Ethan Frey 94251eaf7c Fixed default directory 2018-02-13 08:40:09 -05:00
Ethan Frey 91592a91f1 Cleaned up client commands more 2018-02-13 08:40:09 -05:00
Ethan Frey c7f31bdf26 Collapsed nested commands in gaiacli 2018-02-13 08:40:09 -05:00
Ethan Frey b10afcaf4c Rough separation of gaiad and gaiacli 2018-02-13 08:40:09 -05:00
Ethan Frey 959ad1431e Capitalized help strings on flags 2018-02-13 08:40:09 -05:00
Ethan Frey 0b0500e8a0 Rebased on develop, fixed imports 2018-02-13 08:40:09 -05:00
Ethan Frey da7a36a866 Add global flags to all queries and posts 2018-02-13 08:40:09 -05:00
Ethan Frey acf24f1c1b Allow adding custom query/post commands to chub 2018-02-13 08:40:09 -05:00
Ethan Frey 27aa06bb73 Add basic client cli commands 2018-02-13 08:40:09 -05:00
Ethan Frey 87abef1e0e Mock out chub keys commands 2018-02-13 08:40:09 -05:00
Ethan Frey 2cd22b45bb Implement version in chub 2018-02-13 08:40:09 -05:00
Ethan Frey 90a102cf3e Start with demo chub command
Add version and node subcommand as TODOs
2018-02-13 08:39:42 -05:00
Ethan Buchman 4412c49546
Merge pull request #429 from cosmos/feature/remove_attec
Removes the _attic folder from x/
2018-02-13 07:49:12 -05:00
Ethan Buchman d9ebe34c32 fixes from review 2018-02-13 07:30:51 -05:00
rigelrozanski 658d7633a3 cleanup 2018-02-13 10:28:24 +00:00
rigelrozanski ed662566eb remove genesis of checkTx 2018-02-12 12:55:22 +00:00
rigelrozanski 0bab936d70 initgen tests complete 2018-02-09 17:07:54 +00:00
Ethan Frey b09653c9ea Fix init state bug 2018-02-09 18:04:18 +01:00
rigelrozanski fd1684ab6b ... 2018-02-09 16:56:23 +00:00
rigelrozanski 2b9633db4a working genesis tests 2018-02-09 16:24:21 +00:00
rigelrozanski 7206c434d4 genesis exisiting tests pass 2018-02-09 12:48:11 +00:00
Adrian Brink f98f57b4ff
Removes the _attic folder from x/
If you need to reference things from _attic, please check `ref/attic`.
That branch keeps all the old _attic files.

I've removed it here in order to make it easier for developers to search
and understand the codebase. We shouldn't have stale code on `develop`.
2018-02-09 08:05:32 +01:00
rigelrozanski 17acf9e18d working 2018-02-09 04:33:42 +00:00
rigelrozanski 849139ebeb working 2018-02-08 21:16:33 +00:00
rigelrozanski 6eaafa496a wip genesis parsing 2018-02-08 10:36:37 +00:00
rigelrozanski 7643dea255 genesis wip compiles 2018-02-08 10:36:37 +00:00
rigelrozanski 40fd4589c1 init genesis WIP, also making golint compliant 2018-02-08 10:36:13 +00:00
Jae Kwon 102d196204 Add README.md to Basecoin; Update licenses 2018-01-28 18:17:19 -08:00
Jae Kwon 4354774532 Remove shelldown from tools 2018-01-28 18:17:19 -08:00
Jae Kwon c368b1062c Add docs/design.md; Add sketchy for illustration 2018-01-28 15:20:45 -08:00
Jae Kwon d9e4b32004 Make code clearer by setting things to app 2018-01-27 17:34:43 -08:00
Jae Kwon b95b67d520 Separation of Tx from Msg; CodeType 2018-01-26 06:54:03 -08:00
Jae Kwon c6bad0b325 Add first Basecoin test harness 2018-01-26 06:54:03 -08:00
Jae Kwon de5bf2ebc6 Add Coins.AmountOf 2018-01-26 06:54:03 -08:00
Jae Kwon 83f0ee31af
Split dummy into 2 files. (#371)
* Update examples/basecoin glide.lock
* Split dummy file
2018-01-24 01:04:44 -08:00
Jae Kwon be665d53fe Substore->Store; BaseApp has db; Mapper 2018-01-22 06:20:46 -08:00
Jae Kwon b9455e9620 Make basecoin a root project 2018-01-20 22:28:43 -08:00
Jae Kwon 561da6353f x/auth/Account -> x/auth/BaseAccount; RegisterWireBaseAccount() 2018-01-20 22:10:41 -08:00
Jae Kwon 633eaa87b3 cosmos-sdk/app.App -> cosmos-sdk/baseapp.BaseApp 2018-01-20 20:13:46 -08:00
Jae Kwon bd8bbf9d98 BasecoinApp init refactor 2018-01-20 19:06:29 -08:00
Jae Kwon 8fda920de0 auth.AccountStore assumes go-wire; Remove GetTxBytes() from Tx 2018-01-20 18:11:38 -08:00
Ethan Buchman 6d3b5cb402 basecoin: fix codecs, add some tests 2018-01-20 18:11:38 -08:00
Jae Kwon 14a0dce920
Refactor basecoin example (#332)
Refactor basecoin example
2018-01-17 16:59:40 -08:00
Jae Kwon 81b6012021 Vendor tools into tools/* (#331)
* Add tools dir
* Update Makefile to call tools/Makefile
* Add cmd/basecoind to make make pass
2018-01-16 11:24:20 -08:00
Ethan Buchman e4676102a7 dummy compiles 2018-01-15 20:01:51 -05:00
Ethan Buchman 381424460c basecoin compiles 2018-01-14 22:49:57 -05:00
Ethan Buchman d2a801a513 fix glide. basecoin doesnt compile ... 2018-01-13 12:37:00 -05:00