Jae Kwon
6325441861
txBld -> txBldr
2018-09-07 10:15:49 -07:00
Jae Kwon
acd125029d
x/auth/client/context -> x/auth/client/txbuilder
2018-09-07 10:04:58 -07:00
Alessio Treglia
54b3b5c028
sed -i 's/txCtx/txBld/g'
2018-09-07 14:39:23 +01:00
Alessio Treglia
3b6da7af18
TxContext -> TxBuilder
2018-09-07 14:36:21 +01:00
Alessio Treglia
e6a8a4df55
Implement command/REST endpoint for offline tx sign off #1953
...
* Add sign CLI command to sign transactions generated with the
--generate-only flag.
* Add /sign REST endpoint for Voyager support.
Redirect password prompt to STDERR to avoid messing up cli
commands output. As a rule of thumb, program's output should
always go to STDOUT, whilst errors&diagnostics go to STDERR
as per POSIX's philosophy and specs.
2018-09-07 12:57:50 +01:00
HaoyangLiu
76469c082e
Remove responses category in swagger.json and update update_API_docs.md
2018-09-07 10:17:17 +08:00
Christopher Goes
e410a9e38a
Merge PR #1952 : Update IAVL dependency for v0.10.0
2018-09-06 11:18:16 +02:00
Alessio Treglia
8c32a8f229
Check generate_only's output is actually unsigned
2018-09-04 15:06:55 +02:00
Alessio Treglia
86395809cb
Implement generate-only option for commands that create txs
...
The new CLI flag builds an unsigned transaction and writes it to STDOUT.
Likewise, REST clients can now append generate_only=true to a request's
query arguments list and expect a JSON response carrying the unsigned
transaction.
Closes : #966
2018-09-04 02:32:05 +02:00
Jeremiah Andrews
2378e3431c
Fix linter errors
2018-09-03 07:58:57 -07:00
HaoyangLiu
b43a1a3808
Split swagger.json, currently only transaction, bank and version are supported
2018-09-03 18:41:52 +08:00
HaoyangLiu
ed935181e6
Refactor swagger.json for API docs
2018-09-03 18:32:13 +08:00
HaoyangLiu
1e97074165
Refactor key sign command and add it to gaiacli
2018-09-03 14:13:14 +08:00
HaoyangLiu
ea96d8bc2a
Add governance and slashing, implement post /txs api
2018-09-03 13:40:23 +08:00
HaoyangLiu
093c4ada5c
remove useless fmt.Sprintf and add paramCheck to recover key
2018-09-03 09:56:53 +08:00
HaoyangLiu
e496bbd6f5
Update pending and skip statik in test_lint
2018-09-02 22:30:24 +08:00
HaoyangLiu
e742b02d3b
Refactor code for key management: use cdc instead of json and remove hardcode http status
2018-09-02 22:00:40 +08:00
HaoyangLiu
9a1dac2f87
Refactor code according to code review
2018-09-02 21:42:17 +08:00
HaoyangLiu
8e032f850a
Rename rest-server to lite-server and add README to clarify how to update API docs
2018-09-02 20:30:59 +08:00
HaoyangLiu
79c0bc40c8
Add swagger-ui to gaiacli rest-server
2018-09-02 20:09:43 +08:00
Alessio Treglia
d84885ca49
No need to create a fake slice of signatures nor skip account no./sequence check
2018-08-31 19:09:39 +02:00
Alessio Treglia
122ed3a900
Don't use pointers when you need them not!
2018-08-31 19:04:45 +02:00
Alessio Treglia
1370ca611b
Set GasAdjustment in CLIContext when handling HTTP requests
...
This is to address @alexanderbez's comments
2018-08-31 19:04:42 +02:00
Alessio Treglia
599923fb99
Introduce simulate mode
...
Add a simulate only flag '--dry-run' to both CLI tx commands
and RESTful endpoints to trigger the simulation of unsigned
transactions.
* Turning --dry-run on causes the --gas flag to be ignored.
The simulation will return the estimate of the gas required
to actually run the transaction.
* Adjustment is no longer required. It now defaults to 1.0.
* In some test cases accounts retrieved from the state do not
come with a PubKey. In such cases, a fake secp256k1 key is
generated and gas consumption calculated accordingly.
Closes : #2110
2018-08-31 19:04:11 +02:00
Christopher Goes
03f79ef744
Merge PR #2192 : Split LCD implementation PR, part one
2018-08-31 18:41:24 +02:00
HaoyangLiu
67857d704b
IRISHUB-238: change wait 3 second to wait tendermint new block. use MustUnmarshalBinary instead of UnmarshalBinary
2018-08-31 23:20:06 +08:00
HaoyangLiu
cb3e729582
IRISHUB-238: fix test_lint failure in context.go
2018-08-31 15:54:15 +08:00
HaoyangLiu
de8ac6e2a9
IRISHUB-238: missing change a comment
2018-08-31 14:06:53 +08:00
HaoyangLiu
b977baec73
IRISHUB-238: move certifier creation to a function
2018-08-31 13:31:24 +08:00
Alexander Bezobchuk
2d92803b9f
Merge PR #2040 : Refactor Validator Account Types/Bech32 Prefixing
...
* Add new account bech32 prefixes with godocs
* Restructure spacing of existing account code
* Update account godocs
* More account godoc updates + new tm pub/addr helpers
* Update validator type to use new account types/bech32 prefixes
* Fix account documentation errors
* Update Bech32 prefix for consensus nodes
* Update Bech32 spec doc
* Fix account type tests
* Add missing account consensus functions, clear up godocs, and fix tests
* Add to TestRandBech32PubkeyConsistency check
* Update initialization of validator public keys
* Update query signing info command
* Implement new ConsAddress type with associated unit tests
* [WIP] Update stake and slashing parameters
* Update all calls to MustBech32ifyValPub
* [WIP] Validator operator API updates
* [WIP] Fix and update unit tests
* Fix gov logs (helping to debug failing tests)
* Fix gov tally
* Fix all broken x/ unit tests
* Update gaia app genesis address logic
* Fix linting errors
* Fix broken LCD tests
* Fix broken CLI tests
* Implement command to get validator address and pubkey from key name
* Add support for getting validator key information via REST endpoint
* Update PENDING log
* Update docs
* Revert GaiaGenTx.PubKey bech32 prefix
* Fix broken docs and cli tests
* Update genesis to use correct Bech32 (cons) prefix for pubkeys
* Update docs and unit tests to reflect new cosmos account bech32 prefix
* minor formatting
2018-08-31 00:06:44 -04:00
HaoyangLiu
6d2fb8edef
IRISHUB-238: fix test_cli failure, move certifier creation from lcd/root.go to NewCLIContext
2018-08-31 11:29:55 +08:00
HaoyangLiu
9de7650b99
IRISHUB-238: fix a bug in judge whether proof is required and refactor comment
2018-08-31 10:15:37 +08:00
HaoyangLiu
ab76fd964a
IRISHUB-238: remove todo, refactor comment and refactor multistoreproof
2018-08-31 10:03:48 +08:00
HaoyangLiu
5e85a5cdcd
IRISHUB-238: delete client manager
2018-08-30 17:14:10 +08:00
HaoyangLiu
3f83aca599
IRISHUB-238: fix test_lint failures in client/lcd/root.go and server/
2018-08-30 16:24:56 +08:00
HaoyangLiu
b878edc388
IRISHUB-238: fix failures in test_lint and test_cover
2018-08-30 15:52:17 +08:00
HaoyangLiu
5473771105
IRISHUB-238 :add trust option for rest-server command
2018-08-30 15:08:10 +08:00
HaoyangLiu
703c643fc0
IRISHUB-238: Add multiply store proof build and verification
2018-08-30 15:05:16 +08:00
Alessio Treglia
76a16ab288
Modify AnteHandler to take a simulate boolean parameter
2018-08-25 20:12:14 +01:00
Alessio Treglia
7e8feec738
Incorporating @cwgoes comments
2018-08-24 15:20:53 +01:00
Alessio Treglia
f36f749818
Incorporating @ValarDragon's comments
2018-08-24 10:16:51 +01:00
Alessio Treglia
fb5fe9914d
simplify json handling in LCD tests
2018-08-24 10:16:51 +01:00
Alessio Treglia
2dea46779c
TestCoinSend: test success case when setting gas by hand
2018-08-24 10:16:51 +01:00
Alessio Treglia
7e9ceb452d
clarifyy that adjustment is a multiplicative factor
2018-08-24 10:16:51 +01:00
Alessio Treglia
f432c0c383
Simulate transactions before actual execution
...
* Change --gas=0 semantic in order to enable gas auto estimate.
* REST clients have been modified to simulate the execution of
the tx first to then populate the context with the estimated
gas amount returned by the simulation.
* The simulation returns both an unadjusted gas estimate and an
adjusted one. The adjustment is required to ensure that the
ensuing execution doesn't fail due to state changes that might
have occurred. Gas adjustment can be controlled via the CLI's
--gas-adjustment flag.
* Tiny refactorig of REST endpoints error handling.
Closes : #1246
2018-08-24 10:16:51 +01:00
Christopher Goes
879f78cfc0
Rename revoke(d) to jail(ed)
2018-08-22 17:56:13 +02:00
Christopher Goes
29634bfd1d
Merge PR #1983 : CLI UX Updates #1
2018-08-22 12:51:31 +02:00
Sunny Aggarwal
1311117658
added to gov rest
2018-08-22 00:12:44 -07:00
Rigel
58f50c24a4
Merge branch 'develop' into cli-updates
2018-08-21 23:23:44 -04:00
Matthew Slipper
3413a2bff1
Remove --select in block command ( #2060 )
...
Closes #1968 .
2018-08-21 20:53:16 -04:00
Matthew Slipper
0c0d282a0c
Add plaintext flags to show keys; default print response to true; helptext updates
...
Closes #1970
Closes #1971
Closes #1967
Closes #1969
2018-08-21 15:36:53 -07:00
Federico Kunze
cfb5acca6e
Merge PR #2099 : Query staking Pool and Params
2018-08-21 17:32:54 +02:00
Alessio Treglia
187bc1972a
Merge PR #1950 : Validator.Owner -> .Operator
...
* Rename --address-validator flag to --validator
See #1901
* Update PENDING.md
* Rename Validator.Owner -> Validator.Operator
See #1901
2018-08-16 16:47:59 -04:00
Rigel
5fff217e9b
Merge PR #2033 : staking lcd uses owner address not pubkey address
2018-08-15 15:04:01 +02:00
Dev Ojha
4b13529f2d
Merge pull request #2029 : fix build error
2018-08-14 21:10:57 -04:00
Rigel
d9dc061b4f
Merge pull request #1819 : rational -> decimal
...
* changelog
* ...
* decimal func working
* decimal complete, untested
* fixing tests
* decimal compile errors resolved
* test compile errors
* precision multiplier test
* 1% laptop battery
* fixed TestNewDecFromStr
* equalities working
* fix bankers round chop
* ...
* working, some decimal issues resolved
* fix rounding error
* rounding works
* decimal works
* ...
* deleted rational
* rational conversion working
* revert changelog
* code compiles (not tests)
* went through all NewDec, made sure they were converted from NewRat properly
* test debugging
* all testing bugs besides the json marshalling fixed
* json unmarshal
* lint
* document update
* fix lcd test
* cli test fix
* mostly undo Dece -> Rate
* val comments
* Efficiency improvements
This now caches all of the precision multipliers (as they were all
used in non-mutative functions), and caches the precisionInt calculation.
(Now it just copies the already calculated value)
* Cache another precisionInt() call.
* Improve banker rounding efficiency
* remove defer, make negation in-place.
* chris val comments
* bez comments
* Aditya comments
* ...
* val comments
* rebasing start
* ...
* compiling
* tests pass
* cli fix
* anton, cwgoes, val comments
* val and jae comments
* type
* undo reuse quo
2018-08-14 20:15:02 -04:00
Federico Kunze
63713c9378
Merge pull request #2000 : tests for staking lcd
...
* Added tests for Delegator Validators routes
* Updated tests for undelegations
* Updated Gaia-lite docs
* Updated PENDING.md
* Updated comments
* Deleted more comments
* Add spacing
2018-08-13 18:06:48 -04:00
Dev Ojha
b2a4aecc44
Upgrade to tm version 23.0. ( #1927 )
...
* Start upgrade. Currently go test ./... hangs.
* (squash this) Fix staking tests
* wip
* note what changes need to be made to make this work on tm v0.23.0
* Fix addr -> pubkey map
* cleanup code
* Fix slashing test failures except for begin blocker
* fix all slashing tests
* fix lcd tests
* Address PR comments
* add link to changelog.
* (wip) start making addrToPubkey map persisted. Since amino can't handle maps,
we have to change from what this commit is doing.
* Use the correct method of storing a map
* (squash this) address PR comments
* Did you run 'make'?
* remove gaiadebug binary
2018-08-12 03:33:48 -04:00
Federico Kunze
1da1115a24
Merge PR #1880 : Staking Gaia-lite (ex LCD) refactor
2018-08-08 12:38:39 +02:00
Alexander Bezobchuk
12c2c236c2
Merge PR #1741 : CoreContext Refactor
2018-08-06 20:11:30 +02:00
Alexander Bezobchuk
a9805794d7
Merge pull request #1856 : gen-tx: Support User Given Key Passwords
...
* Merge pull request #1856 : gen-tx: Support User Given Key Passwords
* Fix broken CLI test(s)
2018-08-01 15:15:37 -04:00
Joe Bowman
874a6055b0
Merge PR #1889 : update signing info endpoint
...
* update /slashing/signing_info/ endpoint of lcd to take cosmosvalpub instead of cosmosvaladdr for consistency reasons
* update pending.md
* update test that calls /slashing/signing-info endpoint
2018-07-31 20:27:03 +02:00
Joon
19b0781e60
Merge PR #1811 : NewCoin takes sdk.Int
2018-07-31 02:09:50 +02:00
Aleksandr Bezobchuk
6e9226144b
Merge pull request #1850 : Fix Non-Deterministic Test Coverage
2018-07-27 18:41:50 -04:00
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
Dev Ojha
95191f5a51
Merge PR #1730 : client: On any tx that broadcasts a tx, check that acct exists
...
This subverts the really hard to decipher ABCI error message, with
a nice user friendly error message.
2018-07-18 20:25:55 +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
Fabian Weber
e400e83c43
fix key import creating random account
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
ValarDragon
fc4c563e29
keys: Keybase.Update no longer asks for newpass if oldpass is incorrect
...
Achieved by refactoring the parameter newpass as follows:
* (newpass string) -> (getNewpass func() (string, error))
Closes #1629
2018-07-10 20:00:22 -07: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
Christopher Goes
5a56c3f03d
Merge PR #1575 : ready-for-review: sdk.AccAddress natively bech32
2018-07-10 04:18:23 +02:00
ValarDragon
99e91dd276
Add nolints on remaining functions
2018-07-09 16:16:43 -07: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
Sunny Aggarwal
25d976feb4
works?
2018-07-09 01:47:38 -07: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
ValarDragon
c708c799fd
Add print-response flag
2018-07-05 22:19:50 -07:00
ValarDragon
8e20200abe
Add --json flag
2018-07-05 20:42:41 -07:00
ValarDragon
2197a9598b
Merge branch 'dev/add_async_flag' of github.com:cosmos/cosmos-sdk into dev/add_async_flag
2018-07-05 20:19:39 -07:00
ValarDragon
8857b69d02
Use async flag directly from context
2018-07-05 20:15:40 -07:00
Dev Ojha
be9ae47b0a
Merge branch 'develop' into dev/add_async_flag
2018-07-05 20:06:52 -07:00
ValarDragon
27a31cae44
add Async to context
2018-07-05 20:05:17 -07:00
Christopher Goes
0c47e6ffdf
Merge PR #1568 : cli: deprecate --name in favor of --from
2018-07-06 04:37:45 +02:00
ValarDragon
6f94dd64c0
cli: Add async flag to all broadcasting txs
...
closes #1436
2018-07-05 19:15:37 -07:00
ValarDragon
0b10430d65
gaiacli, keys: Improve error message when deleting non-existant key
2018-07-05 18:03:41 -07:00
ValarDragon
bf8cde1d3a
cli: deprecate --name in favor of --from
2018-07-05 17:24:02 -07:00
Fabian Weber
5998378773
added error check
2018-07-04 16:39:16 +02: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
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
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
fc3dd56281
Merge PR #1477 : gaiacli: Make recovery allow new keys
...
* gaiacli: Make recovery allow new keys
* Move create key to a temporary method, restore create fundraiser key
2018-06-30 00:47:09 +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
David Kajpust
64ea408b38
fixed error for blank fee string
2018-06-29 11:50:32 -04:00
David Kajpust
0a76035398
fee collection now works in gaia
2018-06-29 09:37:14 -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
David Kajpust
090aaf8137
Merge #1412 : Add async flag and functionality to gaiacli send
...
* added async functionality to gaiacli
* addressed requested changes, updated changelog
2018-06-28 21:23: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
Dev Ojha
6d9f07dfee
tools: Add go vet as a linter ( #1421 )
...
* tools: add go vet
* tools: Add go vet as a linter
2018-06-27 20:32:06 -04: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
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
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
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
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
1cd3a6255a
fix from merge
2018-06-12 23:12:55 -07: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
rigelrozanski
d84296ed37
lawl viper
2018-06-09 09:31:59 -07:00
rigelrozanski
c08a3fec04
lawl viper
2018-06-09 01:04:40 -07:00
Christopher Goes
d47b7cf5fa
Add --gas flag to specify gas limit for a transaction
2018-06-09 08:51:31 +02:00
Ethan Buchman
a277ba91c7
Merge PR #1178 : Merge master (Tendermint updates)
...
* update to tm v0.19.6
* update tm to 0.17.4
* update for tm v0.19.9
* update godep
2018-06-09 06:34:27 +02:00
Ethan Buchman
2913d14239
Merge branch 'master' into develop
2018-06-08 19:31:48 -07: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
Ethan Buchman
f3f2729b11
update for tm v0.19.9
2018-06-05 18:04:16 -07:00
Jeremiah Andrews
5a831bd0f8
additional changes
2018-06-04 18:35:07 -07:00
Christopher Goes
781975d6a0
Feedback on REST server start ( closes #973 )
2018-06-04 17:39:28 +02:00
Zaki Manian
ce850dca3b
Switch from bech32cosmos to bech32
2018-06-01 16:23:58 +02:00
Jeremiah Andrews
744f78573e
small fixes
2018-05-31 21:50:01 -07:00
Jeremiah Andrews
a032386e87
Added comments to newly exported functions
2018-05-31 21:50:01 -07:00
Jeremiah Andrews
083ca8234b
Refactored gaiacli and gaiad commands into subcommands
2018-05-31 21:50:01 -07:00
rigelrozanski
5515b60b0a
better tooling for cli, couple lsd fixes
2018-05-31 18:46:25 -07:00
rigelrozanski
a4e1e497cd
cwgoes comments
2018-05-31 15:49:18 -07:00
rigelrozanski
1f1097c4d3
cli test bugs
2018-05-31 14:57:09 -07:00
rigelrozanski
17a861da43
key utils output with cdc
2018-05-31 14:57:09 -07:00
rigelrozanski
afc2bbfe09
working through cli
2018-05-31 14:56:17 -07:00
rigelrozanski
ecf800810c
remove append usage from lcd, fix address order test issue in lcd
2018-05-30 09:00:00 -07:00
Rigel
1c462013a9
Merge branch 'develop' into matt/stake-rest
2018-05-30 10:53:12 -04:00
rigelrozanski
52cd8b8c1f
fix endPath missing bug for query
2018-05-30 07:42:59 -07:00
Matt Bell
99e5c5a18f
Restored validators query endpoint
2018-05-29 15:07:03 +09:00
Christopher Goes
5055a4af45
Tiny indentation fix
2018-05-29 04:51:11 +02:00
Ethan Buchman
f946b630a4
fixes from review
2018-05-28 22:20:30 -04: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
Matt Bell
cfa1d42292
Fixed LCD staking tests
2018-05-26 17:37:39 +09:00
rigelrozanski
57d86cc04c
fix many lcd errors, restructure lcd init
2018-05-25 10:17:49 -04:00
Matt Bell
0738de17f4
Removed candidates endpoint and addressed some comments
2018-05-25 09:32:43 +09:00
Matt Bell
6ad16e6c90
Changes to /stake/candidates REST handler
2018-05-25 09:32:37 +09:00
Matt Bell
cb107c7383
Fixed LCD tests
2018-05-25 09:32:37 +09:00
Matt Bell
2c46662141
Added LCD test for candidates query
2018-05-25 09:32:37 +09:00
Matt Bell
10056d36d1
Set generated candidate addresses in lcd tests
2018-05-25 09:32:37 +09:00
Matt Bell
98b9040c63
Use actual types for genesis doc instead of unmarshaling JSON
2018-05-25 09:32:37 +09:00
Matt Bell
39995fe065
Added (non-working) stake REST tests
2018-05-25 09:32:12 +09:00
Matt Bell
5b81938e57
Enable stake REST routes
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
Ethan Buchman
5e858129c5
Merge branch 'master' into develop
2018-05-20 17:12:14 -04:00
Ethan Buchman
33af8ee7e8
update to tm v0.19.5
2018-05-20 10:35:19 -04:00
Christopher Goes
4134bf922c
Address PR comments
2018-05-16 02:06:17 +02:00
Christopher Goes
8c1c40b89a
New store query prefixes (ref #979 )
2018-05-16 01:13:49 +02:00
rigelrozanski
677559bf6c
cwgoes comments
2018-05-09 18:24:51 -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
Christopher Goes
10540e38db
Handle case of empty (new) account
2018-05-03 23:19:56 +02:00
Christopher Goes
4911db850d
Fix auto-sequencing ( closes #950 )
2018-05-03 18:35:12 +02:00
Christopher Goes
67961476b4
Fix testsuite
2018-04-27 20:06:50 -04:00
rigelrozanski
54a5869efd
added used of cobra arg constraints
2018-04-26 17:32:20 -04:00
rigelrozanski
05c5809bae
gaia init automatic key processing
2018-04-26 14:26:39 -04:00
Ethan Buchman
d1402f4e92
move waitForXxx funcs from lcd to tests.WaitForXxx
2018-04-26 14:26:39 -04:00
rigelrozanski
556896679a
...
2018-04-26 14:26:39 -04:00
Christopher Goes
5b4fb85f7e
Fn suffix & http.HandlerFunc
2018-04-25 22:32:22 +02:00
Christopher Goes
fd40d39556
Only one CoreContext for all REST commands
2018-04-25 16:49:31 +02:00
Christopher Goes
56ac948dc6
REST folder restructure & cleanup
2018-04-25 16:18:06 +02:00
rigelrozanski
3e7481d00f
updated docs for new key work
...
updated docs for new key work
2018-04-20 13:16:03 -04:00
rigelrozanski
ca3d3be3af
better key output
2018-04-20 12:51:47 -04:00
rigelrozanski
d28efaac27
many renames / golint compliance
2018-04-19 00:49:24 -04:00
rigelrozanski
1f9184a24b
basic go-linting // moved corecontext
2018-04-18 15:39:32 -04:00
rigelrozanski
e584d5acac
ci build -> install
...
pubkey issue
...
rebase fixes
...
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
49b8978454
Swap all examples & testcases to use automatic DB namespacing
2018-04-14 17:05:50 -07:00
Jae Kwon
62112eab17
Merge branch 'develop' into jae/fixrmssubstores
2018-04-13 02:06:27 -07:00
Jae Kwon
d530ee2abc
Fix MountStoreWithDB(); Bump to 0.15.0-rc0
2018-04-13 02:04:31 -07:00
Christopher Goes
25d0fb593c
Address PR comments
2018-04-11 17:48:15 +02:00
Rigel
5212ac02e4
Merge pull request #812 from cosmos/cwgoes/misc-cli-fixes
...
Misc CLI fixes
2018-04-11 11:42:38 -04:00
Christopher Goes
24f3a3a71c
Recreate RPC client on WithNodeURI
2018-04-11 11:25:52 +02:00
rigelrozanski
c741be16ce
next sequence comment, CHANGELOG updates
2018-04-10 17:45:23 -04:00
Christopher Goes
c7b680a545
Address PR comments
2018-04-10 11:16:30 +02:00
Christopher Goes
7383c99026
Add AutoSequence to all transaction-sending commands
2018-04-10 11:16:30 +02:00
Christopher Goes
bd626ba94e
Helper function
2018-04-10 11:16:30 +02:00
Christopher Goes
ec98545a1b
Default to next sequence number ( closes #807 )
2018-04-10 11:16:30 +02:00
Christopher Goes
0be655b122
Automatically determine chainID, throw error if not provided ( closes #810 )
2018-04-10 11:16:29 +02:00
Ethan Buchman
1860f988b6
fix tests
2018-04-07 20:56:49 +03:00
Jae Kwon
413780807e
WIP
2018-04-07 02:16:41 -07:00
Jae Kwon
a06cfbeaa8
...
2018-04-07 00:19:44 -07:00
Jae Kwon
49fdf80d9d
WIP commit
2018-04-06 17:25:08 -07:00
Christopher Goes
12f4a21d03
Reuse Tendermint client instance ( closes #671 )
2018-04-03 22:16:03 +02:00
Christopher Goes
7214149f1d
Move client context initialization from viper to separate package
2018-04-03 22:16:03 +02:00
Christopher Goes
7a8e00dbb9
Change CoreContext parameters instead of using viper.Set
2018-04-03 22:15:27 +02:00
Christopher Goes
579e5d4cdc
Add CoreContext for CLI/REST options
2018-04-03 22:15:12 +02:00
Christopher Goes
720b37c6f2
Rename client/builder to client/core (ref #721 )
2018-04-03 22:14:11 +02:00
Ethan Buchman
e7e98a0644
lcd: waitForHeight instead of sleep in tests
2018-04-02 19:31:54 +03:00
Ethan Buchman
ceddb54e91
cleanup gitignore
2018-03-31 19:05:15 +03:00
Ethan Buchman
e226cb7a35
Merge branch 'develop' into cwgoes/misc-minor-fixes
2018-03-31 18:54:06 +03:00
Christopher Goes
10a22f20ba
Remove 'cool' and 'sketchy' modules from basecoind
2018-03-30 16:32:11 +02:00
Ethan Buchman
d25593afc4
Merge pull request #726 from cosmos/adrian/mountmultipledbs
...
Mount every single store with its own DB
2018-03-30 06:41:10 -04:00
Adrian Brink
0789a5eed0
NewBasecoinApp takes a map of databases
...
NewBasecoinApp takes a map[string]dbm.DB . This stabilises the API,
since it allows us to add more stores without a breaking change. The
convention is that the keys of the dbs correspond to the names of the
capKeys.
2018-03-30 12:18:12 +02:00
Christopher Goes
e13b1f2ac9
Change key DB to ~/.basecli/keys/keys.db
2018-03-29 18:23:11 +02:00
Ethan Buchman
66a1130f9d
Merge pull request #662 from cosmos/matt/ibc-rest
...
REST IBC transfer endpoint
2018-03-29 08:45:46 -04:00
Christopher Goes
0f9bd93bb1
Switch a few directories ( #644 #646 )
2018-03-29 12:10:13 +02:00
Christopher Goes
44de18e8da
Use temporary dir for lcd keybase tests ( closes #646 )
2018-03-29 12:04:52 +02:00
Christopher Goes
bb66b852ef
Move keybase DB to ~/.basecoind/data ( closes #644 )
2018-03-29 12:04:52 +02:00
rigelrozanski
5ba297089a
expose some keeper functions, tick cleanup
2018-03-28 19:01:50 +02:00
Adrian Brink
243564c233
Tests can never be proven to be non-deterministic
...
Our tests are at best probabilistic deterministic.
2018-03-28 15:08:59 +02:00
Christopher Goes
5b642062a7
Initial per-module genesis initialization
2018-03-28 11:24:31 +02:00
Ethan Buchman
742d24b7e4
Merge pull request #699 from lino-network/builder
...
Encapsulate Get Passphrase Logic in Builder
2018-03-27 20:25:48 -04:00
Rigel
f2cf779117
Merge pull request #700 from lino-network/KeyAddBug
...
Fix key add override bug
2018-03-27 22:06:47 +02:00
Ethan Buchman
4331d9c2a4
fix test
2018-03-27 11:35:58 -04:00
Yukai Tu
487424eb19
Fix key add override bug
2018-03-25 01:35:02 -07:00
Yukai Tu
96d9c55172
Encaptulate Get Passphrase Logic in Builder
2018-03-24 23:14:18 -07:00
Matt Bell
5cfad33e49
Remove duplicate check
2018-03-20 13:46:02 +01:00
Matt Bell
0eec9671b2
Fixed IBC test
2018-03-20 11:53:02 +01:00
Matt Bell
bad5228c4c
IBC transfer REST test
2018-03-19 18:13:47 +01:00
Matt Bell
ef68be2f38
Added IBC transfer REST endpoint
2018-03-19 18:13:37 +01:00
Ethan Buchman
64852138b6
fix the tests. includes some hacks
2018-03-18 02:02:26 +01:00
Ethan Buchman
d807d32f8a
client/lcd: wip use in-proc tm and lcd for tests
2018-03-17 23:12:43 +01:00
Ethan Buchman
7f3a6e0c04
Options -> AppState
2018-03-17 23:10:44 +01:00
Ethan Buchman
683663f680
fixes post rebase
2018-03-17 23:09:04 +01:00
Fabian Weber
5ea06639f9
fix tests and refactored
2018-03-17 22:17:56 +01:00