Commit Graph

91 Commits

Author SHA1 Message Date
Jeremiah Andrews b3e4faec74 addressing comments 2018-07-02 15:30:09 -07:00
Jeremiah Andrews 1632b7de18 testing pruning 2018-07-02 15:30:09 -07:00
Jeremiah Andrews 60a8a63e62 base variabls / logic, need tests 2018-07-02 15:30:09 -07:00
Ethan Buchman f78f30c67a update for tm v0.22.0. tmlibs->tendermint/libs 2018-07-02 16:34:06 -04: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 097dd8a164 tools: Add unparam linter (#1443)
* tools: Add unparam linter

unparam detects unused parameters in functions, and a parameter to
a function which only ever takes on one value. The latter is an
indication that more tests are required.

There are many nolints in this PR, as I believe that writing tests
to fix alot of these situations is out of scope for this PR / it
will be changed in future commits. There are some nolints for
when we have to comply to normal api's.

* crypto/keys no longer used by x/gov/client/rest/rest.go
2018-06-29 18:22:24 -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
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 3e14868bd6 Merge PR #1429: tools: Add ineffassign linter
* tools: Add ineffassign linter

This errors on assignments that don't actually do anything. i.e.

x, err := myFunc(1)
y, err = myFunc(2)

This will call out that the first function's call error was never
used.

* Fix makefile, add misspell to makefile
2018-06-28 19:12:02 +02:00
Joon 6018e719d2 Merge PR #1069: Oracle Module
fix prefixstore iterator
in progress
fix mock validator
fix NewContext
add to changelog
apply requests
fix mock
2018-06-27 19:21:12 +02: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 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
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
sunnya97 caf8c77dce works 2018-05-26 18:00:39 -07:00
Christopher Goes ce38d8f423
Minor fix, testcases 2018-05-16 01:14:31 +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 9dfccb1cfd
Update iterator gas pricing model 2018-05-16 01:13:48 +02:00
Christopher Goes ef1923f660
Add GasIterator 2018-05-16 01:13:48 +02:00
Christopher Goes c410ceb155
GasKVStore WIP 2018-05-16 01:13:48 +02:00
rigelrozanski 677559bf6c cwgoes comments 2018-05-09 18:24:51 -04:00
rigelrozanski 8dd3052017 fix subspace query tests 2018-05-08 16:32:41 -04:00
rigelrozanski 1d82cdbbbc subspace query tests, changelog 2018-05-08 16:15:35 -04:00
rigelrozanski d464779d34 iter->substore, enable delegator bonds query 2018-05-08 15:57:12 -04:00
rigelrozanski d44c7afa30 add range queries, add candidates query 2018-05-08 15:57:12 -04:00
rigelrozanski d28efaac27 many renames / golint compliance 2018-04-19 00:49:24 -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
Jae Kwon d530ee2abc Fix MountStoreWithDB(); Bump to 0.15.0-rc0 2018-04-13 02:04:31 -07:00
Jae Kwon 186ee72c0c Update documentation 2018-04-12 16:22:44 -07:00
Jae Kwon 5883c0e942 Support namespacing within RMS db 2018-04-12 15:56:41 -07: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
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
Sunny Aggarwal d98ea3764f it works 2018-04-01 00:26:00 +02:00
Sunny Aggarwal 3f1362f838 why u no work 2018-04-01 00:02:29 +02:00
Sunny Aggarwal 271d240897 trying to figure it out 2018-03-31 19:30:25 +02:00
Sunny Aggarwal 56f28145dd working on it 2018-03-30 22:36:04 +02:00
Ethan Buchman f81b6ec51d update dep 2018-03-23 00:32:57 -04:00
Ethan Buchman 723889570e ErrTxParse->ErrTxDecode; check for empty bytes in account and tx 2018-03-21 02:44:17 +01:00
Sunny Aggarwal 7e8c1e3394 added Substore 2018-03-19 22:46:35 +01:00
Ethan Buchman 630a5fe579 revert to old go-wire 2018-03-02 04:24:07 -05:00
Jae Kwon 7f4bcff3cf Add GetCommitKVStore and CommitKVStore 2018-02-21 09:49:33 -05:00
Adrian Brink b457a4363f
Add directive to Sprintf call to pass make test on go1.10 2018-02-18 14:09:22 +01:00
Ethan Buchman f6cea66e2e test and fix InitChain 2018-02-17 16:32:30 -05:00
Ethan Buchman d48c819207 minor things 2018-02-06 17:20:29 -05:00
Ethan Frey b21081c83a Test query routing in rootMultiStore 2018-02-06 17:20:29 -05:00
Ethan Frey c73f08c845 Make GetStoreByName private, as only needed by MultiStore Query 2018-02-06 17:20:29 -05:00
Ethan Frey 44c39043f1 Test iavlStore query 2018-02-06 17:20:29 -05:00
Ethan Frey 31f00742e5 Add query to iavl store 2018-02-06 17:20:29 -05:00