Skip to content

Commit

Permalink
Merge branch 'dev' into chore/deploy-v6-arbitrum
Browse files Browse the repository at this point in the history
  • Loading branch information
0xEillo authored Nov 27, 2023
2 parents def707c + 24ff48f commit 5455042
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/smart-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,24 +126,36 @@ jobs:
with:
submodules: recursive

- id: check-changes
run: |
if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^contracts/'; then
echo "::set-output name=changed::true"
else
echo "::set-output name=changed::false"
fi
- name: Install Pnpm
if: steps.check-changes.outputs.changed == 'true'
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Install Node.js
if: steps.check-changes.outputs.changed == 'true'
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm

- name: Get pnpm store directory
if: steps.check-changes.outputs.changed == 'true'
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
if: steps.check-changes.outputs.changed == 'true'
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
Expand All @@ -152,50 +164,68 @@ jobs:
${{ runner.os }}-pnpm-store-
- name: Install dependencies
if: steps.check-changes.outputs.changed == 'true'
run: pnpm install --frozen-lockfile

- name: Install Foundry
if: steps.check-changes.outputs.changed == 'true'
uses: foundry-rs/foundry-toolchain@v1

- name: Check contracts implementations
if: steps.check-changes.outputs.changed == 'true'
run: pnpm run check:implementations

- name: Create Linea testnet env file
if: steps.check-changes.outputs.changed == 'true'
run: |
cp ./env/.env.linea-goerli .env
echo INFURA_KEY=${{ secrets.INFURA_KEY }} >> .env
- name: Check contracts upgradeability on Linea testnet
if: steps.check-changes.outputs.changed == 'true'
run: pnpm run check:upgradeability linea-goerli

- name: Create Linea mainnet env file
if: steps.check-changes.outputs.changed == 'true'
run: |
rm .env
cp ./env/.env.linea .env
echo INFURA_KEY=${{ secrets.INFURA_KEY }} >> .env
- name: Check contracts upgradeability on Linea mainnet
if: steps.check-changes.outputs.changed == 'true'
run: pnpm run check:upgradeability linea

- name: Create Arbitrum testnet env file
if: steps.check-changes.outputs.changed == 'true'
run: |
rm .env
cp ./env/.env.arbitrum-goerli .env
echo INFURA_KEY=${{ secrets.INFURA_KEY }} >> .env
- name: Check contracts upgradeability on Arbitrum testnet
if: steps.check-changes.outputs.changed == 'true'
run: pnpm run check:upgradeability arbitrum-goerli

- name: Create Arbitrum mainnet env file
if: steps.check-changes.outputs.changed == 'true'
run: |
rm .env
cp ./env/.env.arbitrum .env
echo INFURA_KEY=${{ secrets.INFURA_KEY }} >> .env
- name: Check contracts upgradeability on Arbitrum mainnet
if: steps.check-changes.outputs.changed == 'true'
run: pnpm run check:upgradeability arbitrum

- name: Add upgradeability summary
if: steps.check-changes.outputs.changed == 'true'
run: |
echo "## Upgradeability check result" >> $GITHUB_STEP_SUMMARY
echo "✅ Contracts are upgradeable" >> $GITHUB_STEP_SUMMARY
- name: Add upgradeability summary
if: steps.check-changes.outputs.changed == 'false'
run: |
echo "## Upgradeability check result" >> $GITHUB_STEP_SUMMARY
echo "✅ No change detected in the contracts" >> $GITHUB_STEP_SUMMARY
9 changes: 1 addition & 8 deletions website/src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "./Footer.css";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faDiscord, faDiscourse, faGithub, faTelegram } from "@fortawesome/free-brands-svg-icons";
import { faDiscord, faGithub, faTelegram } from "@fortawesome/free-brands-svg-icons";
import { Link } from "react-router-dom";
import { faBook, faLeaf } from "@fortawesome/free-solid-svg-icons";

Expand Down Expand Up @@ -30,13 +30,6 @@ function Navbar() {
</Link>
</li>

<li className="social-icon__item">
<Link className="social-icon__link" to={"https://community.ver.ax"}
target={"_blank"}>
<FontAwesomeIcon icon={faDiscourse} />
</Link>
</li>

<li className="social-icon__item">
<Link className="social-icon__link" to={"https://hey.xyz/u/verax"}
target={"_blank"}>
Expand Down

0 comments on commit 5455042

Please sign in to comment.