0.2.0 • Published 12 months ago

hexlink-contract v0.2.0

Weekly downloads
-
License
-
Repository
-
Last release
12 months ago

Hexlink Contracts

This is the repo to hold all evm smart contracts for Hexlink, including:

  1. The account contract implementation
  2. The Hexlink name registry implementation
  3. The Hexlink implementation

Hexlink Contract Design

The design(outdated) could be found at:

  1. Hexlink Contract Design
  2. Hexlink Account Contract Design

Commands

# clean and compile contracts
npx hardhat clean; npx hardhat compile

# run tests
npx hardhat test

# deploy to local
doppler run -- npx hardhat deploy --tags PROD

# deploy to goerli testnet
doppler run -- npx hardhat deploy --network goerli --tags PROD

Etherscan verification

doppler run -- npx hardhat verify --network ropsten DEPLOYED_CONTRACT_ADDRESS $CONSTRUCTOR_PARAMS

Deployed Contracts

Development Env

ContractAddress
ContractFactory0xF4CCB60BeAb96E801A2c3598e15b4d1Ed72ECa53
AccountProxy0x4c552dC72756A690883f9e8955B231c43c4E598e
HexlinkProxy0x4c552dC72756A690883f9e8955B231c43c4E598e

To ensure all derived accounts share same addresses across different chains, we need to fix the addresses of ContractFactory , HexlinkProxy and AccountProxy. HexlinkProxy and AccountProxy share the same proxy implementation as "HexlinkERC1967Proxy". The contract factory is deployed with 0x9Afa9fcf35E2486cF3E6775FC9eD93EA14de2926.

Prod

TBD