Dev Ojha
5d02a743fb
Update to tendermint v0.22.6-rc0 ( #1798 )
...
* Update to tendermint v0.22.6-rc0
This is comprised of updating the crypto imports / API
* (squash this) switch to v0.22.6
If this passes tests, I'll squash this commit and update the PR.
2018-07-25 16:43:37 -04:00
Sunny Aggarwal
f3a12909ef
Merge PR #1773 : Query the votes on a proposal
...
* added lcd endpoint to query all votes on a proposal
* added cli support
* Gopkg.lock from new dep
* Update PENDING.md
2018-07-20 02:02:46 +02:00
Joon
aa525418e1
Merge PR #1373 : Initialization of POS chain
2018-07-19 08:39:40 +02:00
Sunny Aggarwal
d6969c1d22
Merge PR #1697 : Proposal Query filter by status
2018-07-17 22:59:06 +02:00
Ethan Buchman
e35d06eb24
client/lcd: add more gas for unbonding tx
2018-07-14 19:47:45 +01:00
Ethan Buchman
f4ee940989
update to tm0.22.4-rc0 and bring back lcd test
2018-07-14 19:47:42 +01:00
Ethan Buchman
53bbe13ece
disable lcd tests until fixed
2018-07-13 23:04:55 +01:00
Rigel
3231daa4d8
remove global shares ( #1644 )
...
* wip removing pool shares
* remove PoolShares/Tokens entirely
* worked through stake/type compile error
* work through a bunch of keeper errors
* worked through compile errors
* debugging tests
* resolve compilation error
* resolved types errors
* ...
* move inflation to pool type
* ...
* stumped problem
* Calculate newly issued shares, remove unnecessary pool arg from exchange rate calculation
* Rounding changed
* Update x/slashing tests for sdk.Rat BondedTokens
* testing fixes
* resolved test fixes
* cwgoes comments, changelog, lint
* cli bugfixes
* ..
* cli fixed
* spec update
* 'make format'
* cwgoes comments
* Increase test_cover parallelism
2018-07-13 21:46:14 +01:00
Alexander Bezobchuk
5983a07fb6
Merge PR #1599 : Implementation of TraceKVStore
2018-07-13 01:58:51 +02:00
Fabian Weber
f8f46b2b8c
added test for account importing
2018-07-12 19:44:31 +02:00
Christopher Goes
432c109f06
Merge PR #1627 : ready-for-review: Gov modules enums marshalJSON to String
2018-07-12 19:39:15 +02:00
Sunny Aggarwal
cba7fd7ee8
gov enums marshal to String
2018-07-10 17:59:07 -07:00
Aditya
b195c556e2
Merge pull request #1600 : Friend can create validator and delegate on behalf of genesis validator
...
* Added msg and handling for surrogate create validator
* changelog and error fix
* fix changelog
* Remove unnecessary msg by combining into CreateValidator
* Refactor
* Appease linter
* Added onbehalfof functionality in client
* fmt
* Added gaia onbehalfof test
* Update test for onbehalfof validator creation
* fix test
* Fix flag error
* Add app test
* fmt
* Fixed signer for onbehalfof createvalidator
* Fix error msg
* Simplify test
* fmt
2018-07-10 20:16:37 -04:00
Sunny Aggarwal
eaf49a2dfb
Merge branch 'develop' into sunny/sdkAddress_bech32
2018-07-09 16:07:43 -07:00
Sunny Aggarwal
896cd333f0
address comments
2018-07-09 16:06:05 -07:00
Aleksandr Bezobchuk
7fc2363191
Merge pull request #1601 : Fix LCD rest-server Command
2018-07-09 15:56:08 -04:00
sunnya97
96bc71404e
asdf
2018-07-09 01:01:29 -07:00
sunnya97
7ac220beb6
asdf
2018-07-09 00:59:51 -07:00
Sunny Aggarwal
50ed0fa1ae
asdf
2018-07-09 00:35:28 -07:00
ValarDragon
611e4faa3a
gaiad: Genesis txs now use bech32 encoding of address and pubkey
...
* `gaiad init gen-tx` makes the outputted file use bech32, with acct prefix
* `gaiad init --gen-txs` only reads bech32 with acct prefixes
The reason for using the account prefix is that in principle you could
have genesis transactions for non-validators.
Closes #1475
2018-07-07 14:23:19 -07:00
Fabian Weber
2c697c982b
added sunnys changes
2018-07-04 10:48:47 +02:00
Fabian
a118229fcb
Fabo/Switch key creation REST output to bech32 address ( #1522 )
...
* switch new key output to bech32
* changelog
* fixed tests
* Update LCD TestKeys failure message
2018-07-03 21:31:15 +02:00
Ethan Buchman
d388036454
Merge PR #1520 : various fixes for test_cli
...
* various fixes for test_cli
* linting
2018-07-03 06:33:53 +02:00
Ethan Buchman
f78f30c67a
update for tm v0.22.0. tmlibs->tendermint/libs
2018-07-02 16:34:06 -04:00
Ethan Buchman
feb3acdbe9
Merge PR #1491 : client/lcd: fix tests
...
* client/lcd: fix tests
* circle: drop test_unit. store artifacts in test_cover
* hack fix in TestUnrevoke
2018-07-01 01:32:52 +02: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
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
Dev Ojha
337e87b228
Merge PR #1449 : crypto/keys: make bcrypt security param a var
...
This is done so that the time spent on bcrypt during test cases
can be reduced. This change reduces the amount of time lcd tests
spend on bcrypt from 76% to 40%. (We need to reduce the number of
calls to bcrypt in a seperate PR, along with fixing other sources
of slowness)
Making the bcrypt security parameter a var shouldn't be a security issue:
One can't verify an invalid key by maliciously changing the bcrypt
parameter during a runtime vulnerability. The main security
threat this then exposes would be something that changes this during
runtime before the user creates their key. This vulnerability must
succeed to update this to that same value before every subsequent call
to gaiacli keys in future startups / or the attacker must get access
to the filesystem. However, with this same threat model (changing
variables in runtime), one can cause the user to sign a different tx
than what they see, which is a significantly cheaper attack then breaking
a bcrypt hash. (Recall that the nonce still exists to break rainbow
tables)
2018-06-29 09:22:06 +02: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
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
Dev Ojha
2755c66545
Merge PR #1424 : tools: add unconvert linter
...
unconvert checks for unnecessary type conversions
2018-06-28 18:08:29 +02:00
Sunny Aggarwal
4effa6f8d4
Merge PR #1357 : RESTful governance endpoints
...
* get deposit rest endpoint
* query proposals
* changelog
* fixed commented out headers
* fixed undeterministic tests
* increase circle test timeout
* MustBech32ifyAcc
* asdf
2018-06-28 01:49:59 +02: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
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
Sunny Aggarwal
dc2c8f900b
Merge PR #1168 : Governance MVP
2018-06-22 02:19:14 +02:00
Fabian
4884747662
Merge PR #1317 : Added tx hash to query output in LCD
...
* added tx hash
* changelog
2018-06-21 19:21:58 +02:00
Christopher Goes
2a9bc2153a
Merge pull request #1310 : Fix x/bank REST handler
...
* Update sendtx.go
* Pass chain_id through in LCD tests
* Update changelog
2018-06-20 10:34:12 -07:00
Dev Ojha
1f88b0bf8f
Merge PR #1281 : Don't run defers if it would result in an NPE
...
* Don't run defers if it would result in an NPE
* Nuke CircleCI caches
2018-06-16 09:49:55 +02: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
Fabian
f68e903d06
Merge PR #1260 : Fixed url encoding issue
2018-06-15 22:24:04 +02:00
Fabian
42e72956f4
Merge PR #1252 : Query node version
...
introduce non store queries
add version query
update lcd spec
changelog
moved version query into baseapp
2018-06-14 07:49:21 +02:00
Dev Ojha
bd362ee590
Merge PR #1090 : Switch away from ephemeral ports
...
* Switch ports 4665x to be 2655x
This is done so the default ports aren't in the linux kernel's default ephemeral port range.
* Missed one doc file, change dep so gaiad works
* Update changelog, fix Gopkg.lock
2018-06-14 00:13:51 +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
Ethan Buchman
2219548d0e
fix from merge
2018-06-12 22:45:51 -07:00
Ethan Buchman
85c7702ca0
Merge branch 'master' into local/develop
2018-06-12 22:40:54 -07:00
Sunny Aggarwal
161cb474d4
Account Numbers for Replay Protection with Account Pruning ( #1077 )
...
* in progress
* passes current tests
* added tests and got working
* changelog and docs
* removed prints
* oops
* works!
* issue in test_cli
* number 9 number 9 number 9
* at least it does only the 9 issue now
* hallelujah it works!
* removed print statement
* rebased
* gah
2018-06-12 04:30:54 +02:00
Rigel
1b20adcd22
Merge PR #1191 : LCD cleanup / add LCD gas field
...
* remove global variables from lcd
* added make race, fix lcd race condition
* cleanup
* Five-character changelog update
2018-06-12 03:12:37 +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
c6796b8fba
Add --gas flag to specify gas limit for a transaction
2018-06-09 09:31:59 -07:00