Tomasz Drwięga
f7fa9f6e9d
Drop jsonrpc_core::Error
2017-11-14 12:17:48 +01:00
Tomasz Drwięga
b861ad37a4
Reserve nonces for signing ( #6834 )
...
* Nonce future - reserve and dispatch
* Single thread nonce tests
* Track status of reserved nonces.
* Initialization of nonce reservations.
* Prospective Signer
* Fix cli tests.
2017-11-01 11:23:18 +01:00
Tomasz Drwięga
1d9542fe88
Fix RPC compilation warnings.
2017-10-17 15:41:32 +02:00
Kirill Pimenov
86c2633280
Migrate to Futures in SigningQueue ( #6689 )
...
* oneshot channels instead of custom promises
* Future instead of handle_dispatch
* Even less copying
* Those explicit waits were a mistake, thanks, @tomusdrw
* No more unsafe polling
* Test for the new `is_done()` method
* Mark Futures as `#[must_use]`
* Solve most compilation warnings
* `try_ready!` is more ideomatic
* Turn spaces into tabs
* Documentation and visibility improvements
* Minor code style improvements
* Make Futures run on an explisit reactor
* Another round of code style issues
* Simplify ConfirmationReceiver type
* Flatten ConfirmationOutcome into a plain Result type
* Get rid of a separate `pending` set, it was a stupid idea
* Clarify `add_request` docs
* No need to reduce the scope of the mutex here
2017-10-17 14:50:53 +02:00
Tomasz Drwięga
e8b418ca03
Update jsonrpc dependencies and rewrite dapps to futures. ( #6522 )
...
* Bump version.
* Fix RPC crate.
* Fix BoxFuture in crates.
* Compiles and passes tests!
* Get rid of .boxed()
* Fixing issues with the UI.
* Remove minihttp. Support threads.
* Reimplement files serving to do it in chunks.
* Increase chunk size.
* Remove some unecessary copying.
* Fix tests.
* Fix stratum warning and ipfs todo.
* Switch to proper branch of jsonrpc.
* Update Cargo.lock.
* Update docs.
* Include dapps-glue in workspace.
* fixed merge artifacts
* Fix test compilation.
2017-10-05 12:35:01 +02:00
Fredrik
e54784bfeb
Merge branch 'master' into fo-6418-dont-export-bigint
...
# Conflicts:
# dapps/src/tests/helpers/registrar.rs
# ethcore/evm/src/interpreter/shared_cache.rs
# ethcore/light/src/client/header_chain.rs
# ethcore/light/src/client/mod.rs
# ethcore/light/src/net/mod.rs
# ethcore/light/src/on_demand/request.rs
# ethcore/light/src/on_demand/tests.rs
# ethcore/light/src/provider.rs
# ethcore/node_filter/src/lib.rs
# ethcore/src/block.rs
# ethcore/src/blockchain/blockchain.rs
# ethcore/src/client/test_client.rs
# ethcore/src/engines/authority_round/mod.rs
# ethcore/src/engines/basic_authority.rs
# ethcore/src/engines/mod.rs
# ethcore/src/engines/tendermint/mod.rs
# ethcore/src/engines/validator_set/contract.rs
# ethcore/src/engines/validator_set/multi.rs
# ethcore/src/engines/validator_set/safe_contract.rs
# ethcore/src/engines/vote_collector.rs
# ethcore/src/miner/external.rs
# ethcore/src/miner/miner.rs
# ethcore/src/miner/service_transaction_checker.rs
# ethcore/src/miner/work_notify.rs
# ethcore/src/pod_account.rs
# ethcore/src/pod_state.rs
# ethcore/src/snapshot/block.rs
# ethcore/src/snapshot/consensus/work.rs
# ethcore/src/snapshot/mod.rs
# ethcore/src/snapshot/service.rs
# ethcore/src/spec/spec.rs
# ethcore/src/state/backend.rs
# ethcore/src/trace/db.rs
# ethcore/src/verification/queue/mod.rs
# ethcore/src/verification/verification.rs
# parity/informant.rs
# rpc/src/v1/helpers/dispatch.rs
# rpc/src/v1/helpers/light_fetch.rs
# rpc/src/v1/helpers/signing_queue.rs
# rpc/src/v1/impls/eth.rs
# rpc/src/v1/impls/eth_filter.rs
# rpc/src/v1/impls/eth_pubsub.rs
# rpc/src/v1/impls/light/eth.rs
# rpc/src/v1/impls/signing.rs
# rpc/src/v1/tests/helpers/miner_service.rs
# rpc/src/v1/tests/helpers/snapshot_service.rs
# rpc/src/v1/tests/helpers/sync_provider.rs
# rpc/src/v1/tests/mocked/eth.rs
# stratum/src/lib.rs
# sync/src/blocks.rs
# sync/src/chain.rs
# sync/src/light_sync/mod.rs
# sync/src/tests/helpers.rs
# sync/src/tests/snapshot.rs
# updater/src/updater.rs
# util/src/lib.rs
# util/triehash/src/lib.rs
2017-09-04 18:32:55 +02:00
Fredrik
308f36a532
Don't reexport bigint from util
2017-09-04 16:36:49 +02:00
Hawstein
7b8af30590
remove re-export of parking_lot in util ( #6435 )
2017-09-02 20:09:13 +02:00
Craig O'Connor
3991178b8d
rpc -> weak to arc ( #5688 )
...
* helpers-1
* helpers2-impls1
* small adjustments1
* cleanup-2
* small changes
* helper-impl-cleanup-finished
* test-update
* merge fix
* merge fix
* merge fix2
* fix tests
* fix tests2
* fix tests3
2017-05-28 08:40:36 -04:00
Tomasz Drwięga
c39da9643e
Compose transaction RPC. ( #5524 )
2017-05-02 11:39:48 +02:00
keorn
52eae66c72
Add raw hash signing ( #5423 )
...
* add sign any
* Add RPC signMessage call to JS API
* Add signMessage to JSON RPC docs
* PostSignTransaction -> EthSignMessage
* fix doc typo
* revert incorect naming
2017-04-12 12:15:13 +02:00
maciejhirsz
9bd3f10f41
Squashed: Public Node
2017-03-29 17:07:58 +02:00
Tomasz Drwięga
7e87e9e8ad
Updating JSON-RPC crates ( #4934 )
...
* New version of jsonrpc.
* Better invalid encoding messages
* Fixing deprecated methods of tokio_core
* Using dedicated branch for jsonrpc
* Bump
2017-03-22 07:02:14 +01:00
Tomasz Drwięga
badb3729c9
Changing Mutex into RwLock for transaction queue ( #4951 )
...
* Changing Mutex into RwLock for transaction queue
* Fixing merge
* little fix
2017-03-20 19:15:02 +01:00
Tomasz Drwięga
930c8b63db
Don't remove confirmed requests to early.
2017-03-16 13:15:56 +01:00
Tomasz Drwięga
72998d3ce3
Proper default accounts RPCs ( #4580 )
...
* Default accounts setting - account provider
* RPC support for default accounts
* Updating JS code
* Rename whitelist to addresses
2017-02-20 16:33:12 +01:00
Robert Habermeier
36ea5550ba
Merge pull request #4501 from ethcore/light-txq
...
Light Client transaction queue, initial LightDispatcher
2017-02-15 14:06:31 +01:00
Tomasz Drwięga
5369a129ae
Signer provenance ( #4477 )
...
* Signer - Tracking Request Provenance
* Basic UI
* Changing messages
* VecDeque::from
* Fix dapps tests
* Addressing UI grumbles
2017-02-14 22:45:43 +01:00
Robert Habermeier
e53d023a8a
implement light dispatcher
2017-02-09 21:12:28 +01:00
Robert Habermeier
c83d27420c
address grumbles
2017-02-09 15:10:14 +01:00
Robert Habermeier
bce6bf92d9
simplify code
2017-02-09 15:01:15 +01:00
Robert Habermeier
3669d17390
fix tests with loop hack
2017-02-08 17:57:18 +01:00
Robert Habermeier
2ca61151ac
squash some warnings
2017-02-08 16:59:04 +01:00
Robert Habermeier
5223e25aa6
use generic dispatcher everywhere, squash errors
2017-02-08 16:55:06 +01:00
Robert Habermeier
e73ea80954
dispatcher abstraction, port most things to it
2017-02-08 15:36:53 +01:00
Tomasz Drwięga
248cd5e036
RPC middleware: Informant & Client.keep_alive ( #4384 )
...
* Adding RPC informant structs
* RPC informant
* Middleware counting RPC requests
* Moving client keep_alive to middleware
2017-02-04 22:18:19 +01:00
Tomasz Drwięga
9fb2be8f2b
Optional from field in Transaction Requests ( #4332 )
...
* Infering default account when sending transactions if not provided
* Fixing test
* Fixing tests code
* Fixes.
* More fixes.
* Final fix.
2017-01-30 21:08:36 +01:00
Gav Wood
ca196d683e
Fix postsign ( #4347 )
...
* Fix whitespace.
* Fix post sign.
* Fix message.
* Fix tests.
* Rest of the problems.
* All hail the linter and its omniscience.
* ...and its divine omniscience.
* Grumbles and wording.
2017-01-30 15:08:02 +01:00
Gav Wood
8404edb656
Fix whitespace ( #4299 )
...
* Fix whitespace.
* Update copyright years/owner.
* Push release only for tags.
2017-01-25 18:51:41 +01:00
Tomasz Drwięga
41da1a0a79
New jsonrpc-core with futures and metadata support ( #3859 )
...
* Bumping serde & serde_json
* Super-initial usage of new jsonrpc
* Single event loop for jsonrpc
* Metadata
* Supporting metadata extraction for eth_accounts
* Fixing Cargo.lock
* Removing uneccessary clones
* Fixing unused import
* Unused import
* Fixing test
2017-01-11 20:02:27 +01:00
Robert Habermeier
8125b5690c
Port try
macro to new ?
operator. ( #3962 )
...
* initial untry sweep
* restore try in ipc codegen, fix inference
* change a few missed try instances
2016-12-27 12:53:56 +01:00
Tomasz Drwięga
7eb9112613
Merge branch 'master' into rotating-key
...
Conflicts:
rpc/src/v1/traits/signer.rs
2016-12-14 14:10:44 +01:00
Tomasz Drwięga
f47be50843
Using jsonrpc-macros
2016-12-13 14:40:35 +01:00
Gav Wood
2844a4e85e
Merge pull request #3800 from ethcore/eth-sign
...
eth_sign RPC now hashes given data instead of getting the hash
2016-12-12 04:12:27 +01:00
Gav Wood
17cc2be4b5
Rename ethcore -> parity in license.
2016-12-11 19:30:54 +01:00
Tomasz Drwięga
76a93d4eff
eth_sign RPC now hashes given data
2016-12-10 20:01:04 +01:00
Tomasz Drwięga
c028f106b1
RPC for confirming with token
2016-11-30 16:11:41 +01:00
Tomasz Drwięga
5897e01dbd
Correct format of eth_signTransaction
2016-11-18 11:03:29 +01:00
Tomasz Drwięga
b33b237f76
Refactoring Signer to auto_args + eth_signTransaction ( #3261 )
...
* Sign transaction initial
* Refactoring signer to auto_args
2016-11-09 13:13:35 +01:00
Tomasz Drwięga
9c4979681c
Cleaning up polluted namespaces ( #3143 )
...
* Renaming ethcore_ to parity_
* Renaming files
* Renaming poluted EthSigning
* Tidy up the namespaces
* Renaming files to match new structure
* Splitting EthSigning into separate traits
* jsapi move ethcore.* -> parity.*
* Move jsonrpc parity definitions
* Update UI API calls for parity interfaces
* Move jsapi signer interfaces from personal to signer
* Update UI to use signer.* where applicable
* Updsate jsapi subscriptions for signer
* Fix dodgy merge.
* Update README.
* Fix some tests.
* Move parity-only personal.* to parity.*
* Update UI for personal -> parity API moves
* Update subscription APIs after personal -> parity move
* personal. generateAuthorizationToken -> parity. generateAuthorizationToken (UI)
* enode, dappsPort & signerPort (UI)
* Update subscription tests (accountsInfo)
* subscription update
* personal -> parity
* Additional error logging on method failures
* move postTransaction to parity
* Additional debug info with method failures
* Fix personal tests.
* Console wrning shows parameters, error object does not
* Include parity_ signing methods.
* Console log http transport info
* Fix failing tests
* Add RPC stubs for parity_accounts.
* Allow some secure built-in dapps
* Use parity_accounts in place of accountsInfo
* Improve error reporting
* Cleanup GHH error handling
2016-11-06 12:51:53 +01:00