Ethan Buchman
14ce7f3366
types: update comments on ctx.GetOp
2018-02-06 14:48:18 -05:00
Emmanuel Odeke
cf91a059c9
types: Context.GetOp should never crash
...
Ensure that requesting version <= 0 doesn't
cause a runtime out of bounds dereference,
with a simple validation and accompanying tests
to ensure we never regress.
Since GetOp allows int64, it is fair game
that it should except out of range inputs,
plus this is an SDK so is bound to be abused
both unintentionally and intentionally.
Fixes #400
2018-02-06 14:48:07 -05:00
Adrian Brink
0b5c262f35
Need to trigger rebuild
2018-01-28 18:54:54 -08:00
Adrian Brink
12fef05733
Add note about contract
2018-01-28 18:54:54 -08:00
Adrian Brink
1cc0cf236c
Add tests for coins
2018-01-28 18:54:54 -08:00
Jae Kwon
c368b1062c
Add docs/design.md; Add sketchy for illustration
2018-01-28 15:20:45 -08:00
Jae Kwon
b95b67d520
Separation of Tx from Msg; CodeType
2018-01-26 06:54:03 -08:00
Jae Kwon
05036e35d2
CacheWrap after AnteHandler
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
be665d53fe
Substore->Store; BaseApp has db; Mapper
2018-01-22 06:20:46 -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
a74293e4ba
godoc tweak
2018-01-20 15:03:57 -08:00
Jae Kwon
48cc398266
Update error constructor names
2018-01-18 00:53:40 -08:00
Jae Kwon
11cccfaf02
New error API
2018-01-18 00:44:54 -08:00
Jae Kwon
14a0dce920
Refactor basecoin example ( #332 )
...
Refactor basecoin example
2018-01-17 16:59:40 -08:00
Ethan Buchman
381424460c
basecoin compiles
2018-01-14 22:49:57 -05:00
Ethan Buchman
5f76febce8
auth and bank compile
2018-01-12 19:17:17 -08:00
Ethan Buchman
ab438c3f45
app compiles
2018-01-12 19:17:17 -08:00
Ethan Buchman
5e46eea616
types and store compile
2018-01-12 19:17:17 -08:00
Jae Kwon
ba2b4f0f21
WIP: refactor
...
Refactor
* No more decorators, but rather types.AntiHandler
* No more handlers, but rather types.MsgHandler
* Ability to pass "stores" in NewXYZHandler()
* Coins live in types, and Accounts have coins
* Coinstore -> bank
2018-01-12 19:17:17 -08:00
Jae Kwon
620bdf409f
Update context to track thePast
2018-01-12 19:17:17 -08:00
Jae Kwon
51e6144c0d
Initial commit for permissioning...
2018-01-12 19:17:17 -08:00
Ethan Buchman
e908cfbb6f
move account back to types
2018-01-09 19:11:00 -08:00
Ethan Buchman
3ba3d6b02f
move coins and accounts out of types
2018-01-09 19:11:00 -08:00
Ethan Buchman
3235b2d647
update glide
2018-01-06 16:07:54 -05:00
Ethan Buchman
2c1d5332be
make test/install
2018-01-06 15:53:31 -05:00
Ethan Buchman
1d07f88867
new basecoin example
2018-01-03 20:20:21 -05:00
Jae Kwon
657820372c
App compiles. Ready to build on it
2017-12-26 17:04:48 -08:00
Jae Kwon
ab2cef884d
Move Coins to types
2017-12-25 00:57:07 -08:00
Jae Kwon
e7b38b3fb9
ABCI w/ more non-nullable fields
2017-12-22 00:23:37 -08:00
Jae Kwon
623e77d5a2
Context is more immutable
2017-12-21 23:30:14 -08:00
Jae Kwon
1afab45cf5
Move store/types.go to types/store.go and alias
2017-12-21 20:05:41 -08:00
Jae Kwon
5c06e56c24
WIP: Implementing App w/ tests
2017-12-21 03:44:59 -08:00
Ethan Buchman
a9b2636439
Coin ( #312 )
...
* wip: tests and fixes for kvstore iteration
* update for latest tmlibs
* types compiles
* x/coin almost compiles
* x/coin: move things out of the way so it builds
* rebase fixes
* update glide
* add test for ChainDecorators
2017-12-21 03:31:33 -08:00
Jae Kwon
a2a1151a4f
Unify CheckTx and DeliverTx ( #286 )
...
Unify CheckTx and DeliverTx
2017-12-03 21:25:37 -08:00
Jae Kwon
8c250cc840
Move Queue to attic
2017-12-01 14:08:37 -08:00
Jae Kwon
b96e4784ed
Draft of new BaseApp
2017-12-01 09:10:17 -08:00
Jae Kwon
6e8e4331ea
...
2017-11-26 20:29:17 -08:00
Jae Kwon
458fba22d3
Update decorators/handler/results.go add tx_msg/signature.go
2017-11-26 14:14:03 -08:00
Jae Kwon
6a9b8c3a92
Sweeping util/*
2017-11-26 02:19:17 -08:00
Jae Kwon
7750a698f9
Add basic types Account and Msg
2017-11-03 16:43:04 -05:00
Ethan Frey
6983f61961
Moved Coins from types -> modules/coin
2017-07-06 14:59:45 +02:00
Ethan Frey
49357a3574
Move kvstore from types to state
2017-07-06 14:23:38 +02:00
Ethan Frey
912c24093f
Removed a whole lot of old crud
2017-07-06 13:40:02 +02:00
Ethan Frey
6dc3aedc25
Fix up the tx parsing for chain ids in address
2017-06-30 18:30:02 +02:00
Ethan Frey
4b815f4289
Test to reproduce #147
2017-06-30 18:28:40 +02:00
Ethan Frey
6fec396fbd
92: Fix ParseCoins regexp in general
2017-05-29 16:16:55 +02:00
Ethan Frey
07fb680a01
92: return error on empty coin in list
2017-05-24 17:15:42 +02:00
Ethan Buchman
4503bb61f2
test SendTx to IBC packet
2017-05-22 07:35:23 -04:00
Ethan Buchman
412c2b5bb7
support SendTx to other chains via IBC
2017-05-22 07:35:23 -04:00
Ethan Frey
be321373da
87: Sort coin order on ParseCoins to be less fragile
2017-05-22 11:22:41 +02:00
Ethan Frey
a32bf5475f
Start working on apptx for counter in basecli
2017-05-16 21:40:07 +02:00
Ethan Buchman
9c391a08a9
fix some imports
2017-04-27 15:55:23 +02:00
Ethan Buchman
1a6fae6af6
update import paths for repo merge
2017-04-27 15:55:23 +02:00
Ethan Frey
b6ebf9f8b8
Update to latest go-crypto, adjust code and tests
2017-04-27 15:53:49 +02:00
Ethan Frey
0665a2e8a6
Clean up all XxxS structs to Xxx
2017-04-27 15:52:53 +02:00
Ethan Frey
57356beab6
Use WrapXxx to safelt construct XxxS structs
2017-04-27 15:52:53 +02:00
rigel rozanski
e36a40c603
fixes, remove assert with Sprintf
2017-04-17 19:53:06 -04:00
Rigel Rozanski
f857f6218b
foo->in bar->out, use of variadic variables
2017-04-13 23:31:52 -04:00
Ethan Buchman
750859f1e8
some renames and comments
2017-04-13 23:31:52 -04:00
rigelrozanski
d19f52c893
review changes
...
int
int
2017-04-13 23:31:52 -04:00
rigelrozanski
0720a03dae
tests cleanup
...
cleanup
2017-04-13 23:31:52 -04:00
rigelrozanski
4bf37baf0b
Additional Unit Tests
...
int
int
int
int, got it working!
int
2017-04-13 23:31:52 -04:00
Ethan Frey
52353433a3
Update all dependencies to develop, fix method names
2017-04-13 14:25:06 +02:00
rigelrozanski
c0f093551f
sign bytes bug fix
2017-03-17 01:43:22 -04:00
Ethan Buchman
e3826a2f45
use default vals for new accounts
2017-03-06 04:40:43 -05:00
Ethan Frey
1fd2d17cd9
Update go-crypto, move testutils into types
2017-02-25 00:12:15 +01:00
Ethan Frey
4ad645f318
Proper json marshalling/unmarshalling of sendtx with or w/o sig
2017-02-25 00:12:15 +01:00
Ethan Frey
c1fa8cb0d2
Use new go-crypto S structs to get full go-data support
2017-02-25 00:12:15 +01:00
Ethan Buchman
fe81f87a13
fix for empty coins in Plus()
2017-02-24 17:12:05 -05:00
Ethan Buchman
0c12e78d98
remove commented test
2017-02-23 19:10:19 -05:00
rigelrozanski
e6579cf9e9
table driven testing
...
squash
2017-02-22 18:17:29 -05:00
rigelrozanski
78167b4e3a
added unit tests
...
squash me
squash me
squash
2017-02-18 19:19:26 -05:00
rigelrozanski
c835ebf650
Fix Coin.IsGTE logic bug
...
flag redescription
2017-02-13 17:01:28 -05:00
Matt Bell
4ea03bc9dd
Change ABCI app to implement abci.BlockchainAware interface
2017-02-04 15:09:16 -08:00
Ethan Frey
2f7875dec0
Fixed Coins IsValid, issue #8
2017-01-31 12:24:49 +01:00
Jae Kwon
b5e3a11347
Add test for IBCRegisterChainTx
2017-01-29 18:48:12 -08:00
Jae Kwon
cf33596bb1
Fix Context field
2017-01-27 10:46:01 -08:00
Jae Kwon
c974475378
Updating the comments to match the blog post
2017-01-18 14:05:25 -08:00
Jae Kwon
16a6680e24
Vote->Counter; Fee is types.Coin; Context has Account; Cleanup
2017-01-15 15:10:51 -08:00
Jae Kwon
6cb95498fd
TMSP -> ABCI
2017-01-14 20:42:47 -08:00
Jae Kwon
8a6e4095b7
Cleanup code, remove plugin type byte
2017-01-13 16:10:22 -08:00
Jae Kwon
ea444b7047
Implement KVCache.store lookup
2016-05-02 14:48:29 -07:00
Jae Kwon
324e72f36d
Plugin interface methods take store
2016-05-01 13:52:08 -07:00
Jae Kwon
fefcbbf3b0
Remove unnecessary SetSignature calls
2016-04-19 17:21:02 -07:00
Jae Kwon
ce2b8904d6
Split validation into basic/advanced
2016-04-18 08:09:19 -07:00
Jae Kwon
a16b96062b
Coins and fees and gas...
2016-04-01 15:19:07 -07:00
Jae Kwon
13a0bdd911
Fix Basecoin CheckTx cache
2016-03-29 14:25:17 -07:00
Jae Kwon
f491c8d8fb
Query uses type bytes
2016-03-27 21:51:04 -07:00
Jae Kwon
fa39c9da5c
s/CallTx/AppTx/g; NamedPlugins
2016-03-27 12:47:50 -07:00
Jae Kwon
601a654b7d
Plugin support for SetOption, Query, and Commit
2016-03-24 14:10:17 -07:00
Jae Kwon
964a4cfd50
Plugins and AccountCaches
2016-03-24 12:17:26 -07:00
Jae Kwon
83e7c9dab1
Basecoin TMSP test; Result logs
2016-03-24 11:27:44 -07:00
Jae Kwon
ed9dd875a7
Commit returns tmsp.Result; Move errors to tmsp/errors.go
2016-03-23 02:47:05 -07:00
Jae Kwon
f082e59f9e
Account JSON field names
2016-03-22 15:13:31 -07:00
Jae Kwon
fd648a6782
Hook into tmsp app
2016-03-22 13:07:03 -07:00
Jae Kwon
5049c35efc
Merge basecoin with tendermint_classic
2016-03-21 15:31:25 -07:00
Jae Kwon
63279a897c
Begin integrating Governmint
2016-03-15 15:01:53 -07:00
Jae Kwon
436e0ba7d7
Added genesis file; Added draft of Tendermint tests
2016-02-07 22:54:49 -08:00
Jae Kwon
d31a8d8258
Initial commit
2016-02-05 23:16:33 -08:00