Skip to content

super-call/supercall-contract

Repository files navigation

SuperCall Contract

A project for cross chain communication contract. It offers multicall functionality for interacting with many chains in one transaction.

Setup

  1. Copy .env.example to .env
cp .env.example .env
  1. Fill in PRIVATE_KEY value in .env file
  2. Install dependencies
npm i
  1. Compile contracts
npm run compile
  1. Deploy an LzSuperCall contract
npx hardhat run script/deployLzSuperCall.ts --network <network>
  1. Deploy a Logger contract
npx hardhat run script/deployLogger.ts --network <network>
  1. Send cross chain transaction
npx hardhat run script/callLogger.ts --network <network>

Examples

  1. Deploy supercall npx hardhat run scripts/deployLzSuperCall.ts --network fuji npx hardhat run scripts/deployLzSuperCall.ts --network fantom-testnet
  2. Set trusted remote npx hardhat run scripts/setTrustedRemote.ts --network fuji npx hardhat run scripts/setTrustedRemote.ts --network fantom-testnet
  3. Call logger from on chain to another chain npx hardhat run scripts/callLogger.ts --network fuji
  4. Check log value on the destination chain px hardhat run scripts/getLogValue.ts --network fantom-testnet

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published