Skip to content

helios-network/Ethereum-Bridge-Contract

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published