Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 4.66 KB

cip-1820.md

File metadata and controls

57 lines (41 loc) · 4.66 KB
CIP No. Title Author Status Type Created
1820
Migrate ERC1820 to Conflux
Fan Wang(@posaggen)
Draft
Backward Compatible
2020-11-02

Simple Summary

Migrate ERC1820 to Conflux chain.

Abstract

Use Create2Factory contract in CIP-31 to deploy a ERC1820Registry contract with a fixed and distinguishable address 0x88887eD889e776bCBe2f0f9932EcFaBcDfCd1820.

Motivation

Migrate ERC1820 from Ethereum to Conflux for pseudo-introspection. This CIP also provides a way to deploy the ERC1820Registry contract with same address for different Conflux chains.

Specification

ERC1820Registry

See Conflux-ERC1820 for smart contract code and compiled bytecode. The difference between it and ERC1820Registry on Ethereum is that, in contract constructor, the admin is removed so that nobody can destory it.

Create2 Salt

The salt for ERC1820Registry deployment is 300028585979. The deployed contract address is 0x88887eD889e776bCBe2f0f9932EcFaBcDfCd1820.

Rationale

None.

Backwards Compatibility

This CIP is backward compatible.

Test Cases

TBD

Implementation

ERC1820Registry is deployed on Conflux mainnet already. The deployment transaction hash is 0x6db23d253a7d400f29d947781152af21f612bc91156331e031ae892c09a7237f.

Security Considerations

None.

Copyright

Copyright and related rights waived via CC0.