Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add CI to Axelar integration #68

Merged
merged 6 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Lint
on:
push:
branches:
- main
- '*'
pull_request:
branches:
- main
Expand Down
6 changes: 0 additions & 6 deletions packages/hardhat/deploy/00_deploy_your_contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @param hre HardhatRuntimeEnvironment object.
*/
const deploySendMessage: DeployFunction = async function (

Check warning on line 10 in packages/hardhat/deploy/00_deploy_your_contract.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, lts/*)

Replace `⏎··hre:·HardhatRuntimeEnvironment⏎` with `hre:·HardhatRuntimeEnvironment`

Check warning on line 10 in packages/hardhat/deploy/00_deploy_your_contract.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, lts/*)

Replace `⏎··hre:·HardhatRuntimeEnvironment⏎` with `hre:·HardhatRuntimeEnvironment`
hre: HardhatRuntimeEnvironment
) {
/*
Expand All @@ -28,13 +28,13 @@
const SendMessage = await deploy("SendMessage", {
from: deployer,
args: [
// 1. Uncomment to deploy on Filecoin Calibration

Check warning on line 31 in packages/hardhat/deploy/00_deploy_your_contract.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, lts/*)

Insert `··`

Check warning on line 31 in packages/hardhat/deploy/00_deploy_your_contract.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, lts/*)

Insert `··`
// "0x999117D44220F33e0441fbAb2A5aDB8FF485c54D",

Check warning on line 32 in packages/hardhat/deploy/00_deploy_your_contract.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, lts/*)

Replace `····` with `······`

Check warning on line 32 in packages/hardhat/deploy/00_deploy_your_contract.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, lts/*)

Replace `····` with `······`
// "0xbE406F0189A0B4cf3A05C286473D23791Dd44Cc6"

Check warning on line 33 in packages/hardhat/deploy/00_deploy_your_contract.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, lts/*)

Insert `··`

Check warning on line 33 in packages/hardhat/deploy/00_deploy_your_contract.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, lts/*)

Insert `··`

Check warning on line 34 in packages/hardhat/deploy/00_deploy_your_contract.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, lts/*)

Replace `⏎` with `··`

Check warning on line 34 in packages/hardhat/deploy/00_deploy_your_contract.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, lts/*)

Replace `⏎` with `··`
// 2. Uncomment to deploy on Ethereum Sepolia
// "0xe432150cce91c13a887f7D836923d5597adD8E31",

Check warning on line 36 in packages/hardhat/deploy/00_deploy_your_contract.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, lts/*)

Insert `··`

Check warning on line 36 in packages/hardhat/deploy/00_deploy_your_contract.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, lts/*)

Insert `··`
// "0xbE406F0189A0B4cf3A05C286473D23791Dd44Cc6"

Check warning on line 37 in packages/hardhat/deploy/00_deploy_your_contract.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, lts/*)

Replace `····` with `······`

Check warning on line 37 in packages/hardhat/deploy/00_deploy_your_contract.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, lts/*)

Replace `····` with `······`
],
log: true,
// autoMine: can be passed to the deploy function to make the deployment process faster on local networks by
Expand All @@ -45,21 +45,15 @@
console.log("🚀 SendMessage deployed at: ", SendMessage.address);
const SendMessageAddress = SendMessage.address;

// Get the deployed contract to interact with it after deploying.
const sendMessage = await hre.ethers.getContractAt(
"SendMessage",
SendMessageAddress
);

// Check if the --verify flag is present
const shouldVerify = process.env.VERIFY === "true";

if (shouldVerify) {
// Timeout for 10 Seconds to wait for the contract to be indexed on explorer
console.log(

Check warning on line 53 in packages/hardhat/deploy/00_deploy_your_contract.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, lts/*)

Replace `⏎······"⏳·Waiting·for·10·seconds·for·the·contract·to·be·indexed·on·the·explorer..."⏎····` with `"⏳·Waiting·for·10·seconds·for·the·contract·to·be·indexed·on·the·explorer..."`

Check warning on line 53 in packages/hardhat/deploy/00_deploy_your_contract.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, lts/*)

Replace `⏎······"⏳·Waiting·for·10·seconds·for·the·contract·to·be·indexed·on·the·explorer..."⏎····` with `"⏳·Waiting·for·10·seconds·for·the·contract·to·be·indexed·on·the·explorer..."`
"⏳ Waiting for 10 seconds for the contract to be indexed on the explorer..."
);
await new Promise((resolve) => setTimeout(resolve, 10000));

Check warning on line 56 in packages/hardhat/deploy/00_deploy_your_contract.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, lts/*)

Replace `(resolve)` with `resolve`

Check warning on line 56 in packages/hardhat/deploy/00_deploy_your_contract.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, lts/*)

Replace `(resolve)` with `resolve`

console.log("🕵️‍♂️ Verifying the contract on the explorer...");

Expand Down
23 changes: 0 additions & 23 deletions packages/hardhat/scripts/deploy.ts

This file was deleted.

32 changes: 0 additions & 32 deletions packages/hardhat/scripts/deployFactory.ts

This file was deleted.

38 changes: 0 additions & 38 deletions packages/hardhat/scripts/deployYourContract.ts

This file was deleted.

6 changes: 3 additions & 3 deletions packages/nextjs/app/axelar/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import deployedContracts from "../../contracts/deployedContracts";
import { ethers } from "ethers";
import { useWriteContract } from "wagmi";

const FIL_CONTRACT_ADDRESS = deployedContracts[314159].SendMessage.address;
const ETH_CONTRACT_ADDRESS = deployedContracts[11155111].SendMessage.address;
const ABI = deployedContracts[11155111].SendMessage.abi;
const FIL_CONTRACT_ADDRESS = (deployedContracts as any)[314159].SendMessage.address;
const ETH_CONTRACT_ADDRESS = (deployedContracts as any)[11155111].SendMessage.address;
const ABI = (deployedContracts as any)[11155111].SendMessage.abi;

const AxelarPage: React.FC = () => {
const [message, setMessage] = useState("");
Expand Down

This file was deleted.

58 changes: 0 additions & 58 deletions packages/nextjs/hooks/lighthouse/index.ts

This file was deleted.

Loading