Yukai Tu
f1194019cd
Merge PR #1534 : Check new rat decimal string length
2018-07-04 05:29:05 +02:00
Ethan Buchman
a6dc81defa
minor cleanup of feeKeeper
2018-07-03 00:08:00 -04:00
Ethan Buchman
673086f621
Merge branch 'develop' into davekaj/set-fee-collection-keeper
2018-07-02 20:43:33 -04:00
Ethan Buchman
f78f30c67a
update for tm v0.22.0. tmlibs->tendermint/libs
2018-07-02 16:34:06 -04:00
Dev Ojha
6a864923fa
types: Rename rational.Evaluate to rational.Round ( #1487 )
...
* rational.Evaluate -> rational.RoundInt64
* rational.EvaluateInt -> rational.RoundInt
This done to improve clarity of the code.
Closes #1485
2018-07-02 11:57:33 -04:00
Christopher Goes
3654579ea7
Merge PR #1278 : Slashing v2
...
Implement semifinal Gaia slashing spec (#1263 ), less #1348 , #1378 , and #1440 which are TBD.
2018-06-30 05:34:55 +02:00
Dev Ojha
955a0c9af7
Switch asserts to require ( #1483 )
...
* meta: Switch the majority of asserts to require
Switch most assert statements to require, to ease debugging.
Closes #1418
* Fix imports
2018-06-30 03:10:15 +02:00
Dev Ojha
47e4682d9f
Merge PR #1415 : x/stake: Limit the size of rationals from user input
...
* x/stake: Limit the size of rationals from user input
This commit sets the maximum number of decimal points that can be
passed in from messages. This is enforced on the validate basic of
MsgBeginUnbonding and MsgBeginRedelegation. The cli has been
updated to truncate the user input to the specified precision. This
also updates types/rational to return big ints for Num() and Den().
Closes #887
* Switch NewFromDecimal to error instead of truncating
2018-06-29 22:30:12 +02:00
David Kajpust
0a76035398
fee collection now works in gaia
2018-06-29 09:37:14 -04:00
Ethan Buchman
a88b6b9c97
Merge pull request #1376 from cosmos/bucky/docs-core
...
docs via example apps
2018-06-29 02:07:06 -04:00
Christopher Goes
59aadf42aa
Ledger integration ( #931 )
...
Merges the keybase and Ledger code from go-crypto (which is no more) into the SDK
Adds support for Ledger into gaiacli
Cherry-picks updated error handling from #1158
2018-06-29 02:54:47 +02:00
Ethan Buchman
e8946e9b36
fixes from review
2018-06-28 19:06:37 -04:00
Dev Ojha
ac3adff1e8
Merge PR #1438 : Tools: Add errcheck linter
...
This linter ensures that all errors are checked.
This is disabled in the client directories, since its not needed on
those writes
2018-06-29 00:52:10 +02:00
Dev Ojha
2755c66545
Merge PR #1424 : tools: add unconvert linter
...
unconvert checks for unnecessary type conversions
2018-06-28 18:08:29 +02:00
Dev Ojha
3dc2387124
Merge PR #1404 : Add more context for errors when no address is provided
2018-06-27 19:39:57 +02:00
Ethan Buchman
b3b075cc12
finish docs for app1
2018-06-27 07:15:30 -04:00
Rigel
6f140d7296
Merge PR #1119 : Unbonding, Redelegation
...
* stake/fees spec updates
* staking overview.md revisions, moving files
* docs reorganization
* staking spec state revisions
* transaction stake updates
* complete staking spec update
* WIP adding unbonding/redelegation commands
* added msg types for unbonding, redelegation
* stake sub-package reorg
* working stake reorg
* modify lcd tests to not use hardcoded json strings
* add description update
* index keys
* key managment for unbonding redelegation complete
* update stake errors
* completed handleMsgCompleteUnbonding fn
* updated to use begin/complete unbonding/redelegation
* fix token shares bug
* develop docs into unbonding
* got non-tests compiling after merge develop
* working fixing tests
* PrivlegedKeeper -> PrivilegedKeeper
* tests compile
* fix some tests
* fixing tests
* remove PrivilegedKeeper
* get unbonding bug
* only rpc sig verification failed tests now
* move percent unbonding/redelegation to the CLI and out of handler logic
* remove min unbonding height
* add lcd txs
* add pool sanity checks, fix a buncha tests
* fix ante. set lcd log to debug (#1322 )
* redelegation tests, adding query functionality for bonds
* add self-delegations at genesis ref #1165
* PR comments (mostly) addressed
* cleanup, added Query LCD functionality
* test cleanup/fixes
* fix governance test
* SlashValidatorSet -> ValidatorSet
* changelog
* stake lcd fix
* x/auth: fix chainID in ante
* fix lcd test
* fix lint, update lint make command for spelling
* lowercase error string
* don't expose coinkeeper in staking
* remove a few duplicate lines in changelog
* chain_id in stake lcd tests
* added transient redelegation
* 'transient' => 'transitive'
* Re-add nolint instruction
* Fix tiny linter error
2018-06-27 04:00:12 +02:00
Dev Ojha
d6df6b07d1
Merge PR #1388 : types/int: Switch Int, Uint to use pointers internally
...
* types/int: Switch Int, Uint to use pointers internally
This reduces the amount of pointer refs & derefs.
* Fix nil pointers on unmarshalling amino
* Fix elusive bug in marshalling with unitialized big int
* Remove debug code
* Switch big.rat to use pointers internally
2018-06-27 03:10:34 +02:00
7768
4f57a765ad
Merge PR 1354: CLI: Show fractional in human-readable format
...
Fix https://github.com/cosmos/cosmos-sdk/issues/1353
before:
```
Shares: Status Bonded, Amount: -6508168128760126341/-3308135364330552608
Delegator Shares: -6508168128760126341/-3308135364330552608
```
after:
```
Shares: Status Bonded, Amount: 2.0000000000
Delegator Shares: 2.0000000000
```
2018-06-26 19:26:12 +02:00
Dev Ojha
9f30a90980
Merge PR #1374 : types/rat: Fix overflowing in printing
...
This now uses the underlying golang big.rat's string function,
instead of casting to num and den which are int64s.
Closes #1258
2018-06-26 05:03:55 +02:00
Dev Ojha
893bb4027d
Merge PR #1377 : types: remove GetMemo from Tx
...
This method is an unneccessary requirement on Tx. Auth casts the Tx
to StdTx, so the memo can be obtained in previous usecases from
StdTx. This also makes it more clear for when something is
implementing StdTx vs Tx.
Resolves #1375
2018-06-26 04:37:21 +02:00
Jae Kwon
7487f67346
Use new tmlibs/common.Error for sdk.Error
2018-06-25 16:44:09 -04:00
Dev Ojha
2e97baabf6
Merge PR #1358 : Fix typos and gofmt files
...
* Fix typos
* gofmt -s files
* Add mispellings and gofmt checks to circle CI
* circleci: Install misspell in the linting step
2018-06-25 20:23:17 +02:00
Joon
ec6acda6a4
Merge PR #1331 : Remove TxBytes from NewContext
2018-06-22 03:03:05 +02:00
Sunny Aggarwal
dc2c8f900b
Merge PR #1168 : Governance MVP
2018-06-22 02:19:14 +02:00
Aditya
f049a56376
Merge PR #1266 : Multiple messages
...
* Started work on multiple msgs, types and x/auth tests pass
* Fix issues in x, examples, and baseapp
* Added baseapp tests for multiple msgs
* Documentation fixes
* Fix baseapp tests with sdk.Int
* Modify test
* Transaction handling is now atomic
* Fix test comment
* Minor doc fixes and code cleanup
* Added baseapp result changes
* Use address in validator update accumulation
* Started work on multiple msgs, types and x/auth tests pass
* Fix issues in x, examples, and baseapp
* Added baseapp tests for multiple msgs
* Documentation fixes
* Fix baseapp tests with sdk.Int
* Modify test
* Transaction handling is now atomic
* Fix test comment
* Minor doc fixes and code cleanup
* Added baseapp result changes
* Use address in validator update accumulation
* Added ante tests for multisigner
* Remove validatorUpdates from tx result
* Better error logs
* Put Memo in StdSignBytes and formatting
* Updated changelog
2018-06-22 00:05:25 +02:00
Joon
3fa68249eb
Merge PR #1254 : Add prefixstore and lib refactor
...
* Merge pull request #1254 : add prefixstore and lib refactor
add prefixstore
refactor lib
fix test
fix linter
in progress
in progress
add test for prefixstore
add KVStoreGetter, PrefixStoreGetter
move PrefixStoreGetter to types/
add tests
KVStore.Prefix(string) -> KVStore.Prefix([]byte)
fix mock
apply requests
pass lint, add test
apply requests
* Remove unnecessarily 'valid' boolean
2018-06-21 23:33:36 +02:00
Christopher Goes
918e217e1f
Merge PR #1280 : Implement simple transaction memos
...
* AltBytes -> Memo, memo CLI support & thread-through
* Check memo size, update changelog
* Update existing testcases
* Nuke CircleCI caches
* Charge gas proportional to memo size
* Fix gas allocations in ante handler testcases
* Add testcases
* Update changelog
* Fix tiny CLI bug & add to CLI tests
* Add '--memo' to gaiacli
* Add testcase for large memos
* Address PR comments
2018-06-20 21:27:36 +02:00
Ethan Buchman
c4a70f683c
Merge branch 'aditya/guide' into develop
2018-06-16 17:46:59 -07:00
Ethan Buchman
a77ac582a3
note on iterators
2018-06-16 17:45:48 -07:00
Joon
314b5a854d
Merge PR #1218 : sdk.Int in sdk.Coin
...
implement Int, Int256, Uint256
pass ci
pass ci
add to changelog, add boundcheck to test
add comments, fix cli_test.go
fix errors
apply requested changes
panics on New*WithDecimal
fix Int.BigInt()
fix stake tests
* Panic on uint division-by-zero
* Set ok=false on NewIntFromString, NewUintFromString failure
* Nuke CircleCI caches
2018-06-15 23:16:45 +02:00
Aditya Sripal
eb5113af55
Added documentation to guide
2018-06-14 19:18:48 -07:00
David Kajpust
ec2fedd36c
Merge PR #1227 : Set all Error strings 1st letters to lowercase. Fixes issue #1154
2018-06-13 21:13:22 +02:00
Fabian
8ece807301
Merge PR #1085 : Re-enable tx history in LCD
...
* reenable tx search
* removed not needed argument
* register types for decoding
* trying to fix indexing tests
* added tx hash query test
* Fix x/bank tagging
* remove dead code
* remove print
* extended tests for tx querying
* changelog
* added txs address querying
* linted
* rename
* use prefix for bech32 addresses in tags
* changed error message
* Fix tiny linter issue
2018-06-11 22:09:29 +02:00
Christopher Goes
496d4681c2
Add MsgUnrevoke.GetSignBytes() testcase, remove unused functions
2018-06-08 02:05:34 +02:00
Christopher Goes
a6c0db71e5
Bech32ify GetSignBytes() for x/bank
2018-06-08 00:32:14 +02:00
Christopher Goes
7baed6d361
Add MustUnBech32() functions
2018-06-07 21:36:03 +02:00
Christopher Goes
3fbee11ccc
Merge PR #1142 : Export validators to genesis
...
* Validator export skeleton
* Update export command, add tests, update CHANGELOG
* Rename exportAppState to exportAppStateAndTMValidators
2018-06-06 18:38:13 +02:00
Fabian
5f409ce832
Merge PR #1086 : Bech32Cosmos output/input for the LCD
...
* refactored bech32ization
* updated keys endpoints for bech32
* bech32 for sending and querying
* trying to change output of validator addresses
* fixed validator output
* linted
* fixed merge conflict
* added bech32 to staking endpoints
* removed some logging statements
* added GetAccPubKeyBech32Cosmos
* fixed cli tests
* updated swagger
* merged standard bech32 change
* renamed bech32cosmos to bech32
* bech32ify json output for key add
* readded changelog
* fixed changelog merge issue
* Update CHANGELOG.md
2018-06-06 06:53:04 +02:00
Christopher Goes
be7ec5bc07
Merge PR #1115 : Update SDK to ABCI v11
2018-06-05 01:42:01 +02:00
Zaki Manian
ce850dca3b
Switch from bech32cosmos to bech32
2018-06-01 16:23:58 +02:00
Rigel
0fb2bbdfef
Merge pull request #1011 from cosmos/cwgoes/slashing
...
Implement slashing (v1)
2018-05-31 11:09:44 -07:00
Christopher Goes
5f03e370c3
Remove ValidatorByPubKey, don't marshal sdk.Address
2018-05-31 00:19:23 +02:00
Rigel
1c462013a9
Merge branch 'develop' into matt/stake-rest
2018-05-30 10:53:12 -04:00
Christopher Goes
91f14e1b48
Merge branch 'develop' into cwgoes/slashing
2018-05-29 21:39:45 +02:00
Ethan Buchman
f946b630a4
fixes from review
2018-05-28 22:20:30 -04:00
Christopher Goes
aed5d94b1c
Remove absent validators from sdk.NewContext
2018-05-29 02:26:17 +02:00
Christopher Goes
e4b0d0a618
Reorganization in progress
2018-05-28 21:55:54 +02:00
Christopher Goes
366d8f9323
Slash() and ForceUnbond() are functions of ValidatorSet, not Validator
2018-05-28 21:55:52 +02:00
Christopher Goes
b005f9f18d
Validator by pubkey, tests work-in-progress
2018-05-28 21:55:52 +02:00
Christopher Goes
95c5baf449
Rebase & squash slashing
2018-05-28 21:55:27 +02:00
Zaki Manian
4fd998c669
Merge branch 'develop' into bech32cosmos
2018-05-27 19:14:15 +02:00
Zaki Manian
a163a3558f
Use public keys consistently for validators and all addresses are for accounts
2018-05-27 14:21:15 +02:00
Zaki Manian
f33f49a840
Almost from scratch reimplementation of bech32cosmos integration.
2018-05-27 13:47:23 +02:00
Matt Bell
5c1a7694e5
Merge branch 'develop' into matt/stake-rest
2018-05-27 16:02:33 +09:00
sunnya97
caf8c77dce
works
2018-05-26 18:00:39 -07:00
Matt Bell
efd1a3ac44
Typo fix
2018-05-25 09:32:12 +09:00
sunnya97
5d7c3af1b8
works
2018-05-23 22:09:01 -07:00
sunnya97
cb52712660
in progress
2018-05-23 19:49:35 -07:00
rigelrozanski
e70249b631
more bucky comments, single status validator, only one store now for core validator object
2018-05-20 17:39:04 -04:00
rigelrozanski
26be2a231b
working addressed bucky comments
2018-05-18 18:57:47 -04:00
rigelrozanski
037d810417
some cwgoes comments, getAllDelegations, getAllValidators
2018-05-17 14:09:35 -04:00
rigelrozanski
e145676fcc
revert absent validator changes
2018-05-17 10:47:25 -04:00
rigelrozanski
1ab432a7e1
many bug fixes, introduce PoolShare type
2018-05-17 09:19:33 -04:00
rigelrozanski
0c98cc6895
working fixing validator tests
2018-05-17 09:19:05 -04:00
rigelrozanski
c69c145964
fix stake app tests
2018-05-17 09:19:05 -04:00
rigelrozanski
eb87a5dbbf
introduce UpdateSharesLocation to deal with different share types
2018-05-17 09:19:05 -04:00
rigelrozanski
675dc5df15
staking refactor compiling
2018-05-17 09:19:05 -04:00
rigelrozanski
6d0c788185
working refactoring
2018-05-17 09:17:40 -04:00
rigelrozanski
fa64487e65
working fee distribution reorg
2018-05-17 09:17:40 -04:00
mossid
22e9fc276d
GetDelegated -> GetBondAmount
2018-05-17 09:17:40 -04:00
mossid
2e9e2835ff
add delegation
2018-05-17 09:17:40 -04:00
mossid
79fdbe2f3a
add ValidatorSet, remove methods
2018-05-17 09:17:40 -04:00
rigelrozanski
ed5d088824
renaming and refactoring for fees
2018-05-17 09:17:14 -04:00
rigelrozanski
750cbc53ec
stake cleanup, functionality for total prevote power
2018-05-17 09:17:14 -04:00
rigelrozanski
aeabdcae5d
add absent validators to context
2018-05-17 09:15:57 -04:00
rigelrozanski
d871605241
staking fee distribution working commit
2018-05-17 09:15:06 -04:00
mossid
02a267c292
remove cdc from validator_set.go
2018-05-17 09:15:06 -04:00
mossid
755f79d52d
GetValidators -> Validators, sdk.Validator=abci.Validator
2018-05-17 09:15:06 -04:00
mossid
60869ff427
implement TotalPower
2018-05-17 09:15:06 -04:00
mossid
9d7e893226
rebase on develop
2018-05-17 09:15:06 -04:00
Ethan Buchman
4bdcad572b
remove gasLimit from NewContext
2018-05-15 22:19:09 -04:00
Christopher Goes
3d5b048444
Remove txGasLimit, update tests
2018-05-16 02:31:52 +02:00
Christopher Goes
d55ba2ca7d
Add p2p filter functions & tests
2018-05-16 01:15:07 +02:00
Christopher Goes
147cf9f897
Move GasKVStore to /store
2018-05-16 01:14:30 +02:00
Christopher Goes
1c4ed7b833
Gas-wrap ctx.KVStore
2018-05-16 01:13:48 +02:00
Christopher Goes
1f8ef62d28
Swap to panic/recover version
2018-05-16 01:13:48 +02:00
Christopher Goes
af379b6cf6
Linter fixes
2018-05-16 01:13:48 +02:00
Christopher Goes
ddb3b36b7b
Pass gas consumed back in result struct
2018-05-16 01:13:47 +02:00
Christopher Goes
efc7843fb9
Changes to bank keeper for gas
2018-05-16 01:13:47 +02:00
Christopher Goes
26991803ee
GasMeter & context updates
2018-05-16 01:13:47 +02:00
Christopher Goes
46f9445f06
Add gas limit / gas consumed to context
2018-05-16 01:13:47 +02:00
Rigel
64f445ed22
Merge pull request #985 from LLLeon/master
...
modify bad syntax for struct tag value
2018-05-14 10:29:11 -04:00
LLLeon
5da41a6c88
types: modify bad syntax for struct tag value
2018-05-13 17:34:56 +08:00
Christopher Goes
2b707f6b0a
AppendTags a function of Tags
2018-05-10 17:37:12 +02:00
Christopher Goes
60b56f9b1c
Slight tags API changes (Jae comments)
2018-05-10 17:36:55 +02:00
Christopher Goes
f103cd412d
Linter fix
2018-05-10 17:36:55 +02:00
Christopher Goes
bef7e44f6d
Example tag implementation for CoinKeeper
2018-05-10 17:36:55 +02:00
rigelrozanski
677559bf6c
cwgoes comments
2018-05-09 18:24:51 -04:00
rigelrozanski
d44c7afa30
add range queries, add candidates query
2018-05-08 15:57:12 -04:00
rigelrozanski
dd9b5e78f7
cleanup stake marshalJson -> marshalBinary
2018-05-01 16:41:04 -04:00
Jae Kwon
cb2491bbb8
Use GoAmino 0.9.9 and change impl of Rational.MarshalAmino
2018-05-01 11:31:56 -07:00
Christopher Goes
2376f231c2
Rebase, update changelog & testcase
2018-05-01 14:00:23 +02:00
Christopher Goes
36e096d4bb
Update testcase after rebase
2018-05-01 13:52:49 +02:00
Christopher Goes
db3a82fc97
Update changelog, add simple testcase
2018-05-01 13:52:49 +02:00
Christopher Goes
ad6c7f0be4
Remove MemLogger, update baseapp
2018-05-01 13:52:49 +02:00
Christopher Goes
c7cd21955a
Add MemLogger
2018-05-01 13:52:49 +02:00
Christopher Goes
62fc3e2c49
Context-accessible logger field
2018-05-01 13:52:49 +02:00
Rigel
a674d75016
Merge pull request #895 from cosmos/sunny/remove-msg-get
...
Remove Get function from Msg interface
2018-04-30 22:12:19 -04:00
Christopher Goes
a6589949fb
Remove unnecessary code
2018-05-01 00:19:28 +02:00
Sunny Aggarwal
9f4f35a6db
removed Get from account
2018-05-01 00:15:27 +02:00
Sunny Aggarwal
af0e71fa0d
got rid of Get on Msg interface
2018-05-01 00:15:15 +02:00
rigelrozanski
4a834ae9c5
rational cleanup
2018-04-30 17:39:13 -04:00
rigelrozanski
ce32117399
rational embedes bigRat
2018-04-30 17:21:14 -04:00
rigelrozanski
318e924145
refactor
2018-04-27 20:36:11 -04:00
rigelrozanski
10ddd7a3d3
refactor export function, working
2018-04-27 20:06:50 -04:00
Christopher Goes
ad77affb53
Add IterateAccounts & account export
2018-04-27 20:04:29 -04:00
Christopher Goes
ff66629b68
Example WriteGenesis implementation
2018-04-27 20:00:58 -04:00
rigelrozanski
260ab69e4f
cleanup, move simplestaking to democoin
2018-04-26 22:59:30 -04:00
mossid
06d47bebed
add comments for golint
2018-04-25 14:45:22 +02:00
mossid
8ff316c99e
merge from develop
2018-04-25 14:15:34 +02:00
mossid
87edaa80d4
add comments, clarify Iterate()
2018-04-25 13:44:29 +02:00
mossid
88a11ec0bb
apply requests
2018-04-20 23:25:43 +02:00
mossid
91767fc6d3
add GenericMapper
2018-04-19 21:07:56 +02:00
mossid
e00d03aabd
in progress
2018-04-19 21:07:56 +02:00
mossid
1b72a6c40d
apply requests
2018-04-19 21:07:56 +02:00
mossid
373e408fad
expose QueueInfo
2018-04-19 21:07:56 +02:00
mossid
fbfdbd4266
stdlib -> lib
2018-04-19 21:07:56 +02:00
mossid
2c10c868f4
prefixed storekey
2018-04-19 21:07:56 +02:00
mossid
cc07dce8f2
mock store
2018-04-19 21:07:56 +02:00
mossid
36c6f72690
add comment & write test for Iterate()s
2018-04-19 21:07:56 +02:00
rigelrozanski
5c78c382f9
stdlib linting
2018-04-19 13:04:40 -04:00
rigelrozanski
d28efaac27
many renames / golint compliance
2018-04-19 00:49:24 -04:00
rigelrozanski
c63a545206
stake handler tests
2018-04-18 12:19:35 -04:00
Christopher Goes
f8e44b5b00
Error codespacing ( #809 )
...
* Initial codespacing layout (ref #766 )
* Add codespace to Router (ref #766 )
* Implement Codespacer and update modules
* Default codespaces, testcases
* Update error formatting, codespacer tests
* Add RegisterOrPanic testcase
* Update CHANGELOG
2018-04-17 19:16:21 -07:00
Christopher Goes
3bbb15f454
Add tx to feeHandler, move around in example apps
2018-04-16 14:58:19 +02:00
Christopher Goes
39ee95abe4
Refactor to use FeeHandler function
2018-04-16 14:15:03 +02:00
Christopher Goes
e870163ec0
Implement fee pool pseudo-account in sdk.AccountMapper
2018-04-16 13:59:56 +02:00
rigelrozanski
bdc7fe56ba
cachecontext comments and changelog update
2018-04-10 15:44:49 -04:00
Joon
1c8094c6bd
Update context.go
2018-04-10 17:07:54 +02:00
mossid
8ed15f7e9d
typo
2018-04-10 17:06:02 +02:00
mossid
442e677300
add CacheContext
2018-04-10 17:04:27 +02:00
Rigel
18ac0f99d1
Merge pull request #767 from cosmos/sunny/IAVLsubspace
...
KVStore Subspaces
2018-04-09 20:22:38 -04:00
Sunny Aggarwal
69448f90e5
added just FF byte
2018-04-10 01:32:04 +02:00
Sunny Aggarwal
9b40cf184f
added PrefixBytesTest
2018-04-08 00:58:03 +02:00
Jae Kwon
c4bc888375
Fix almost all tests
2018-04-07 00:02:00 -07:00
Sunny Aggarwal
4bcfcd5cc8
added comments and got rid of fixed variable
2018-04-06 11:29:25 +02:00
Sunny Aggarwal
348e28a4b5
Merge branch 'develop' into sunny/IAVLsubspace
2018-04-05 22:02:21 +02:00
Sunny Aggarwal
f10983ba06
address review
2018-04-05 21:54:30 +02:00
Ethan Buchman
9b5babba81
sort coins in genesis
2018-04-05 14:55:10 +03:00
Christopher Goes
0888096677
Replace Result.ToQuery with Error.QueryResult ( closes #765 )
2018-04-03 22:15:52 +02:00
Sunny Aggarwal
c441ccdf01
added more test
2018-04-01 18:00:28 +02:00
rigelrozanski
e5199f0c7c
fix validator keeper functionality, add testing
2018-03-28 19:01:50 +02:00
rigelrozanski
e25b78055b
dep update
...
...
...
2018-03-28 19:01:50 +02:00
rigelrozanski
4e45d7368b
rebase fixes
2018-03-28 19:01:50 +02:00
rigelrozanski
a4ab2fcf2f
staking passing, low test coverage
2018-03-28 19:01:50 +02:00
rigelrozanski
db0a275b23
rational to Exposed Fields
2018-03-28 19:01:50 +02:00
rigelrozanski
7da2789535
Rational -> Rat
2018-03-28 19:01:50 +02:00
rigelrozanski
3f0d7edb06
gettin' stakin' tests up to snuff
2018-03-28 19:01:50 +02:00
Ethan Buchman
af6c1a3f02
types/rational: use encoding/json
...
minor fixes
working on compiling
2018-03-28 19:01:50 +02:00
rigelrozanski
dc8636390c
refactor, staking uses addresses instead of pubkey
...
staking refactoring working
working
2018-03-28 19:01:50 +02:00
rigelrozanski
292e156872
werkin to compile
...
working
working refactor staking
2018-03-28 19:01:49 +02:00
rigelrozanski
c8c85dfbc8
ported over rational
2018-03-28 19:01:49 +02:00
rigelrozanski
514470b4d6
working porting rational
2018-03-28 19:01:49 +02:00
rigelrozanski
1ed7206efe
added rational to types
2018-03-28 19:01:49 +02:00
Christopher Goes
578392d4b2
Address Rigel review - also run gofmt
2018-03-28 11:24:31 +02:00
Christopher Goes
5b642062a7
Initial per-module genesis initialization
2018-03-28 11:24:31 +02:00
Sunny Aggarwal
7967c1df75
coin math
2018-03-25 19:35:45 +02:00
Ethan Buchman
723889570e
ErrTxParse->ErrTxDecode; check for empty bytes in account and tx
2018-03-21 02:44:17 +01:00
Ethan Buchman
e4b8010077
ParseAccount -> AccountDecoder
2018-03-21 02:22:15 +01:00
mossid
3105f7e18e
modify types/errors*
2018-03-19 23:31:23 +01:00
Joon
e80f7b040c
Merge branch 'develop' into joon/ibc-mvp1
2018-03-19 22:53:58 +01:00
Ethan Buchman
984aff12da
Merge pull request #642 from cosmos/sunny/errors
...
move some errors to sdk from bank
2018-03-19 22:37:30 +01:00
Adrian Brink
54b162f5c3
Merge branch 'develop' into joon/ibc-mvp1
2018-03-18 17:11:34 +01:00
Adrian Brink
6c9b62d461
Add errors to IBC module
2018-03-18 14:51:08 +01:00
Sunny Aggarwal
3e91e12a2f
moved errors to sdk from bank
2018-03-18 03:42:54 +01:00
Ethan Buchman
1491de4522
types/errors_test.go
2018-03-18 02:04:08 +01:00
Ethan Buchman
64852138b6
fix the tests. includes some hacks
2018-03-18 02:02:26 +01:00
Ethan Buchman
683663f680
fixes post rebase
2018-03-17 23:09:04 +01:00
Ethan Buchman
7c3213fa00
fixes from review
2018-03-17 22:08:19 +01:00
Ethan Buchman
a908a01fe2
types/tx_msg_test.go
2018-03-17 22:08:18 +01:00
Ethan Buchman
dd4a86b856
x/auth: crank the test coverage
2018-03-17 21:20:24 +01:00
Ethan Buchman
3babf8c2d9
fix and clean fees and x/auth
2018-03-17 19:54:18 +01:00
Ethan Buchman
45f8ccbe90
x/auth: cleanup ante handler
2018-03-17 18:34:06 +01:00
Ethan Buchman
be7cb6c96c
types: introduce StdFee
2018-03-17 18:34:06 +01:00
Ethan Buchman
eb23803833
remove tx.GetFeePayer
2018-03-17 18:34:06 +01:00
Ethan Buchman
806b4b2603
types/stdlib
2018-03-15 11:09:04 +01:00
mossid
861eb5da1c
revert & rebase; add stdlib and test
2018-03-14 19:20:15 +01:00
Ethan Buchman
2336a20f5a
fix cli to sign StdSignDoc. fixes #620
2018-03-14 13:11:19 +01:00
Ethan Buchman
661d0fd7e8
types: StdSignDoc includes sequence for each sig
2018-03-13 01:42:13 +01:00
Ethan Buchman
a05ea5fcc9
implement replay protection
2018-03-13 01:42:13 +01:00
Ethan Buchman
b906c141bd
x/bank: remove Sequence from Input
2018-03-13 01:42:13 +01:00
rigelrozanski
6dec9353be
working new cool module in basecoin
2018-03-04 17:21:37 +00:00
Ethan Buchman
62d6a5de46
crypto.Address -> sdk.Address
2018-03-02 02:49:07 -05:00
rigelrozanski
3be46395cf
restructure to remove deps on example
2018-03-01 02:36:57 +00:00
Ethan Frey
c083678cae
cleaned up basecli tx so it really works
2018-03-01 02:36:57 +00:00
Jae Kwon
7f4bcff3cf
Add GetCommitKVStore and CommitKVStore
2018-02-21 09:49:33 -05: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
Ethan Buchman
c31f871de6
finish removing TestApp and TestTx
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
1698e4e2d8
small test and some comments
2018-02-17 16:32:30 -05:00
Ethan Buchman
d9ebe34c32
fixes from review
2018-02-13 07:30:51 -05:00
rigelrozanski
ed662566eb
remove genesis of checkTx
2018-02-12 12:55:22 +00:00
rigelrozanski
7206c434d4
genesis exisiting tests pass
2018-02-09 12:48:11 +00: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
da538a8bf6
more comments cleanup
2018-02-08 10:36:37 +00:00
Ethan Frey
c73f08c845
Make GetStoreByName private, as only needed by MultiStore Query
2018-02-06 17:20:29 -05:00
Ethan Frey
bc325c4d1c
Add Query routing to rootMultiStore
2018-02-06 17:20:29 -05:00
Ethan Frey
57b28d95de
Add GetStoreByName to MultiStore to help with Query lookups
2018-02-06 17:20:29 -05:00
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