Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Use primitive-types crate to unify Parity Ethereum primitives#1187

Merged
gavofyork merged 9 commits into
masterfrom
sp-primitive-types
Jan 7, 2019
Merged

Use primitive-types crate to unify Parity Ethereum primitives#1187
gavofyork merged 9 commits into
masterfrom
sp-primitive-types

Conversation

@sorpaas
Copy link
Copy Markdown
Contributor

@sorpaas sorpaas commented Dec 2, 2018

openethereum/parity-ethereum#9994

This uses the new primitive-types crate to allow common types in Parity Ethereum and Substrate to be shared.

@sorpaas sorpaas added the A3-in_progress Pull request is in progress. No review needed at this stage. label Dec 2, 2018
@sorpaas sorpaas force-pushed the sp-primitive-types branch from 8f1f08a to 9c64247 Compare December 2, 2018 16:21
@sorpaas sorpaas force-pushed the sp-primitive-types branch from 9c64247 to ea225e0 Compare December 2, 2018 16:26
@rphmeier
Copy link
Copy Markdown
Contributor

rphmeier commented Dec 3, 2018

(i would ice this until post 1.0-beta or Polkadot's PoC-3 because it may conflict in non-trivial ways)

@gavofyork
Copy link
Copy Markdown
Member

How is Encode/Decode implemented for these types?

@sorpaas
Copy link
Copy Markdown
Contributor Author

sorpaas commented Dec 3, 2018

@gavofyork I put it in a separate crate (https://github.com/paritytech/parity-common/pull/86/files#diff-0deef092ae541af43ff5f5c8d35b262fR9). In this way, if another crate needs to implement codec support for types not defined here, they can reuse those code.

@sorpaas sorpaas removed the A3-in_progress Pull request is in progress. No review needed at this stage. label Dec 3, 2018
@gavofyork
Copy link
Copy Markdown
Member

@sorpaas happy to revisit this once conflicts are sorted

@sorpaas sorpaas added A3-in_progress Pull request is in progress. No review needed at this stage. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Dec 21, 2018
@gavofyork gavofyork added A0-please_review Pull request needs code review. A8-looksgood and removed A7-looksgoodcantmerge A0-please_review Pull request needs code review. labels Jan 7, 2019
@gavofyork gavofyork merged commit 91b6c79 into master Jan 7, 2019
@gavofyork gavofyork deleted the sp-primitive-types branch January 7, 2019 14:55
gguoss pushed a commit to chainpool/substrate that referenced this pull request Jan 11, 2019
…tech#1187)

* Unify primitive types with parity-ethereum

* Update primtive-types patch version

* Fix merge issue

* Add necessary fixed-hash features

* Fix node-primitives compile

* Reexport impl_serde::serialize as bytes to avoid path changes
MTDK1 pushed a commit to bdevux/substrate that referenced this pull request Apr 12, 2019
…tech#1187)

* Unify primitive types with parity-ethereum

* Update primtive-types patch version

* Fix merge issue

* Add necessary fixed-hash features

* Fix node-primitives compile

* Reexport impl_serde::serialize as bytes to avoid path changes
lamafab pushed a commit to lamafab/substrate that referenced this pull request Jun 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants