Skip to content

Latest commit

 

History

History
61 lines (37 loc) · 1.33 KB

File metadata and controls

61 lines (37 loc) · 1.33 KB

Ethereum Bridge Contract

Required

  • Docker : Install docker Official Docker.
  • Node.js : Node v18.16.0 Use nvm node version manager.

Install

npm install

Also setup your secret key in secret.js file like this:

module.exports = {
    MMENOMIC: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    API_KEY: "XXXXXXX"
};

Build

npm run compile

Deploy

don't forget to change the network in the script hardhat.config.js to the network you want to deploy to.

npx hardhat run --network amoy scripts/deploy.js

Build wrappers for hyperion

make gen

Export wrappers to hyperion folder

Required ../hyperion repository

make exportwrappers

verify contract

npx hardhat verify --network amoy 0x0000000000000000000000000000000000000000

if you want to verify contract deployed from hyperion program with the wrappers

npx hardhat run --network amoy scripts/extract-input.js
# then you will get the input data in the verify-input.json file
# then utilise this file in the explorer of the network you deployed to verify the contract

Audit

Credit

Thanks for the works of Injective projet, this project is inspired by them.