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

Remove eth_compile* RPCs #4577

Merged
merged 2 commits into from Feb 17, 2017
Merged

Remove eth_compile* RPCs #4577

merged 2 commits into from Feb 17, 2017

Conversation

rphmeier
Copy link
Contributor

See ethereum/EIPs#209

We don't use this in the UI AFAIK, the contract editor just uses browser-solidity, right @ngotchac?

@rphmeier rphmeier added A0-pleasereview 🤓 Pull request needs code review. M6-rpcapi 📣 RPC API. labels Feb 16, 2017
@@ -642,37 +629,14 @@ impl<C, SN: ?Sized, S: ?Sized, M, EM> Eth for EthClient<C, SN, S, M, EM> where
}

fn compile_lll(&self, _: String) -> Result<Bytes, Error> {
rpc_unimplemented!()
Err(errors::deprecated("Compilation of LLL via RPC is deprecated".to_string()))
}

fn compile_serpent(&self, _: String) -> Result<Bytes, Error> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When deprecating RPC methods, marking them as @deprecated in the trait definition will help us keep the wiki in sync, since the markdown builder checks for those. Example.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, wasn't aware of this feature.

@gavofyork
Copy link
Contributor

looks like they've been more than deprecated - they've been removed...

@ngotchac
Copy link
Contributor

ngotchac commented Feb 16, 2017

Yep, those RPC calls are not used by the UI

@rphmeier
Copy link
Contributor Author

rphmeier commented Feb 16, 2017

@gavofyork

Yes, I think it makes sense to remove them. Only solidity compilation was ever supported, and then only if solc was installed on the system and in the search path.

Honestly, nobody uses these RPCs for a wide variety of reasons, and those who do would almost certainly be more productive with real development tools.

@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Feb 17, 2017
@gavofyork gavofyork merged commit 54c48d1 into master Feb 17, 2017
@gavofyork gavofyork deleted the deprecate-compile branch February 17, 2017 11:00
@gavofyork gavofyork changed the title Deprecate eth_compile* RPCs Remove eth_compile* RPCs Feb 17, 2017
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. M6-rpcapi 📣 RPC API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants