Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Cleaning up polluted namespaces #3143

Merged
merged 44 commits into from
Nov 6, 2016
Merged

Cleaning up polluted namespaces #3143

merged 44 commits into from
Nov 6, 2016

Conversation

tomusdrw
Copy link
Collaborator

@tomusdrw tomusdrw commented Nov 3, 2016

Closes: #2969

Summary of changes:

  1. ethcore_* -> parity_*
  2. parity_hashContent moved to ethcore_set (unsafe method)
  3. personal_* -> parity_* (except for methods present in Geth: listAccounts,newAccount,unlockAccount,signAndSendTransaction...)
  4. Separate namespace for Trusted Signer signer_ (confirmRequest, rejectRequest, requestsToConfirm...)
  5. Exposing personal over IPC (Mist compatibility)
  6. Splitting EthSigning - exposing methods only when correct CLI flags are supplied.

Missing:

  • JSApi updates
  • Signer extension update - signer now deprecated; all RPC portions can be entirely removed and it should only do the proxy configuration going forward. (will leave for another PR)
  • Disable personal_ RPCs (except when running with --geth and over IPC)
  • Move any JS over to using parity_ RPCs instead of personal_
  • Move parity_hashContent back to being part of parity RPCs. (worked around for now. will reconsider.)

@tomusdrw tomusdrw added A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. M4-core ⛓ Core client code / Rust. labels Nov 3, 2016
@jacogr jacogr added M5-binaries 📦 External binaries (ethkey, ethstore, ethvm, etc.) M6-rpcapi 📣 RPC API. and removed M4-core ⛓ Core client code / Rust. labels Nov 3, 2016
@jacogr
Copy link
Contributor

jacogr commented Nov 5, 2016

Tracking comment for the JSAPI & UI fixes -

  • Move ethcore.* to parity.*
    • api
    • ui
  • Move affected personal.* to parity.*
    • api
    • ui
  • Add signer namespace
    • api
    • ui
  • update jsapi subscriptions
  • remove all personal.* calls
    • personal_listAccounts -> eth_accounts
  • ... TEST!

@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. labels Nov 6, 2016
@gavofyork gavofyork merged commit 9c49796 into master Nov 6, 2016
@gavofyork gavofyork deleted the rpc-rename branch November 6, 2016 11:51
arkpar pushed a commit that referenced this pull request Nov 7, 2016
* 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
arkpar added a commit that referenced this pull request Nov 7, 2016
* Use ethcore_dappsPort when constructing URLs (#3139)

* Upon connect, retrieve the available api ports

* Update dapps to load from dappsPort

* Update dapps summary with dappsPort

* Allow proxy to use dappsPort

* Replace /api/ping with HEAD /

* Dynamic port for available apps

* Retrieve content images with dappsPort

* Fix /

* Transfer token dropdown image fix

* IdentityIcon loads images via contentHash

* Update apps fetch to cater for dev & prod

* DRY up 127.0.0.1:${dappsPort} with ${dappsUrl}

* 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
@gavofyork gavofyork added M6-rpcapi 📣 RPC API. and removed M6-rpcapi 📣 RPC API. labels Nov 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M5-binaries 📦 External binaries (ethkey, ethstore, ethvm, etc.) M6-rpcapi 📣 RPC API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants