raebeatrose4 / subf-bridge-contracts

by veevaa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SUBF Bridge

Steps to run locally

  1. Clone the repo
git clone https://github.com/raebeatrose4/nexis-bridge-contracts
  1. Install Dependencies
cd nexis-bridge-contracts
yarn install
  1. Add Private Key in .env

create a file named .env in root of nexis-bridge-contracts

PRIVATE_KEY=YOUR_PRIVATE_KEY
  1. Deploy all contracts
npx hardhat --network nexis-testnet deploy

Add more networks in networks-testnet.json and in HH config

  1. Configure Networks

After deployment of new contract always configure the Bridge

npx hardhat --network nexis-testnet configure
  1. Get balance on the chain
npx hardhat --network nexis-testnet get-token-balance
  1. Send token to destination chain
npx hardhat --network fantom-testnet bridge-token --dest 2370 --amount 50

About

by veevaa


Languages

Language:TypeScript 64.3%Language:Solidity 32.8%Language:Shell 2.9%