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

chore: test github action frontend build #107

Merged
merged 8 commits into from
Apr 19, 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
57 changes: 0 additions & 57 deletions .github/workflows/docker.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@ on:
push:
branches:
- main
paths:
- "packages/ens-app-v3/**"
pull_request:
branches:
- main
paths:
- "packages/ens-app-v3/**"
release:
types:
- released

jobs:
publish:
ens-app-build-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -21,14 +25,12 @@ jobs:
- name: Set Docker Tag
id: docker-tag
if: ${{ github.event_name != 'release' }}
run: |
echo "DOCKER_TAG=${GITHUB_SHA:0:7}-$(date +%s)" >> $GITHUB_ENV
run: echo "DOCKER_TAG=${GITHUB_SHA:0:7}-$(date +%s)-ens-app" | tee $GITHUB_ENV

- name: Set Docker Tag - Release
id: docker-tag-release
if: ${{ github.event_name == 'release' }}
run: |
echo "DOCKER_TAG=${GITHUB_SHA:0:7}-$(date +%s)-${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
run: echo "DOCKER_TAG=${GITHUB_SHA:0:7}-$(date +%s)-ens-app-${GITHUB_REF#refs/tags/}" | tee $GITHUB_ENV

- name: Login to Docker Repository
uses: docker/login-action@v2
Expand All @@ -43,11 +45,12 @@ jobs:
env:
NEXT_PUBLIC_BASE_DOMAIN: ${{ secrets.NEXT_PUBLIC_BASE_DOMAIN }}
NEXT_PUBLIC_ALCHEMY_KEY: ${{ secrets.NEXT_PUBLIC_ALCHEMY_KEY }}
NEXT_PUBLIC_POH_SIGNATURE_API: "https://poh-verifier.dev.linea.build"
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
uses: docker/build-push-action@v4
with:
context: ./
file: ./Dockerfile
file: ./packages/ens-app-v3/Dockerfile
push: true
tags: consensys/linea-resolver:${{ env.DOCKER_TAG }}
build-args: BUILD_COMMAND="pnpm build"
53 changes: 53 additions & 0 deletions .github/workflows/poh-verifier-build-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: "Build and Publish PoH Verifier API"

on:
push:
branches:
- main
paths:
- "packages/poh-verifier/**"
pull_request:
branches:
- main
paths:
- "packages/poh-verifier/**"
release:
types:
- released

jobs:
poh-verifier-build-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set Docker Tag
id: docker-tag
if: ${{ github.event_name != 'release' }}
run: echo "DOCKER_TAG=${GITHUB_SHA:0:7}-$(date +%s)-poh-verifier" | tee $GITHUB_ENV

- name: Set Docker Tag - Release
id: docker-tag-release
if: ${{ github.event_name == 'release' }}
run: echo "DOCKER_TAG=${GITHUB_SHA:0:7}-$(date +%s)-poh-verifier-${GITHUB_REF#refs/tags/}" | tee $GITHUB_ENV

- name: Login to Docker Repository
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_REPO_USER }}
password: ${{ secrets.DOCKER_REPO_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Docker Image Build and Publish
uses: docker/build-push-action@v4
with:
build-args: |
ENV_FILE=.env.production
SIGNER_PRIVATE_KEY=${{ secrets.POH_VERIFIER_PRIVATE_KEY }}
context: ./packages/poh-verifier
file: ./packages/poh-verifier/Dockerfile
push: true
tags: consensys/linea-resolver:${{ env.DOCKER_TAG }}
30 changes: 0 additions & 30 deletions .github/workflows/slither.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/test.yml

This file was deleted.

6 changes: 5 additions & 1 deletion packages/ens-app-v3/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ BATCH_GATEWAY_URLS='["https://ccip-v2.ens.xyz/"]'
NEXT_PUBLIC_BASE_DOMAIN='linea-test' # To be read by the frontend dapp
BASE_DOMAIN='linea-test' # To be read by the deployment scripts in "l2-cntracts"

NEXT_PUBLIC_POH_SIGNATURE_API='http://localhost:4000'
# Local
NEXT_PUBLIC_POH_SIGNATURE_API='http://localhost:4000'

# Sepolia
# NEXT_PUBLIC_POH_SIGNATURE_API='https://poh-verifier.dev.linea.build'
File renamed without changes.
26 changes: 13 additions & 13 deletions packages/ens-app-v3/src/constants/sepoliaCustom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,44 +21,44 @@ export const sepoliaCustom = /* #__PURE__ */ defineChain({
address: '0xca11bde05977b3631167028862be2a173976ca11',
blockCreated: 751532,
},
ensRegistry: { address: '0x56c306b6d15287870B9484883335B8a929f97729' },
ensRegistry: { address: '0xCeF1e850d0207B237Ae91e64037072F93C76aE35' },
ensUniversalResolver: {
address: '0x35B37282d7f7005DE1c3F867A6C663d4a530E229',
blockCreated: 5_647_522,
address: '0x7263bA3b95Ae6177dC39D22f7eF4E277806E8aCF',
blockCreated: 5_710_989,
},
},
testnet: true,
})

export const sepoliaCustomEnsAddresses = {
ensBaseRegistrarImplementation: {
address: '0x3680EbF9a484B1250E46324328582AbcB53B6791',
address: '0x2372154B01F1071b2f2BB02e93Ab97404f1F7a76',
},
ensBulkRenewal: {
address: '0x88Cd4C93b97271AaBA45Bf74a3df5178aB2Ef874',
address: '0x05341E05dc959eF86E08a41883F5B478947B790D',
},
ensDnsRegistrar: {
address: '0x964429Cee5760eF8E10d52d7061DbD4A70d8B5F4',
address: '0x88eeA2489dCc3BeF6439E65a413b68F1a23F1DCf',
},
ensDnssecImpl: {
address: '0x541B273dE31cd631544a164C6F1679FD2995FD34',
address: '0x45FC85e99c62359d2A778d759FA36dF3D53a31D4',
},
ensEthRegistrarController: {
address: '0x65560259405ab2c6a14Aa753e47933a04C8c1b43',
address: '0x77D2a098D81580633091529FB93953dE9180c0c0',
},
ensNameWrapper: {
address: '0x3b365991034a573d54E6D10e88BfacBF2788A23e',
address: '0xB496f723a0180418b0F15e2b1af7d60BBa8Afeb1',
},
ensPublicResolver: {
address: '0xca710b440ad4457eE7a8C02355dcA985B78B7627',
address: '0xA4254Ba887ea0813A3F265A7442fAFa68E21a6bb',
},
ensRegistry: {
address: '0x56c306b6d15287870B9484883335B8a929f97729',
address: '0xCeF1e850d0207B237Ae91e64037072F93C76aE35',
},
ensReverseRegistrar: {
address: '0x8f71DD4896e0f005dC3dAF7435D75CaB8B0A721b',
address: '0xDf307b640a95E6ed82798Eb41A5f388D0eF75C38',
},
ensUniversalResolver: {
address: '0x35B37282d7f7005DE1c3F867A6C663d4a530E229',
address: '0x7263bA3b95Ae6177dC39D22f7eF4E277806E8aCF',
},
}
4 changes: 1 addition & 3 deletions packages/ens-app-v3/src/utils/query/wagmi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ const wagmiConfig_ = createConfig({
]) as unknown as FallbackTransport,
} as const),
...({
[sepolia.id]: initialiseTransports('linea-sepolia', [
infuraUrl,
]) as unknown as FallbackTransport,
[sepolia.id]: initialiseTransports('sepolia', [infuraUrl]) as unknown as FallbackTransport,
} as const),
},
})
Expand Down
28 changes: 14 additions & 14 deletions packages/ens-subgraph/networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,32 +59,32 @@
},
"sepolia": {
"ENSRegistry": {
"address": "0x9125C4f492Ca725A2EAE5d9Df5643F6f41Fe77BE",
"startBlock": 5570702
"address": "0xCeF1e850d0207B237Ae91e64037072F93C76aE35",
"startBlock": 5710905
},
"ENSRegistryOld": {
"address": "0x529a47F9d92375Ea637b56e64C7eaec266B4A575",
"startBlock": 5570741
"address": "0x4672c086d0dED53102b2cd6fC68a49f1574166a6",
"startBlock": 5710900
},
"Resolver": {
"address": "0x7161c2eEf390ef14053E13012D6E761938820127",
"startBlock": 5570761
"address": "0xA4254Ba887ea0813A3F265A7442fAFa68E21a6bb",
"startBlock": 5710986
},
"BaseRegistrar": {
"address": "0x0d5446e2050DCDc373DbB13A2e6a81D89E85FEb6",
"startBlock": 5570704
"address": "0x2372154B01F1071b2f2BB02e93Ab97404f1F7a76",
"startBlock": 5710907
},
"EthRegistrarControllerOld": {
"address": "0x34823AD0432e7BDB512556093A369539fd3cCb39",
"startBlock": 5570748
"address": "0xca23A9C1129A62584A6a656cE03130020f6eaf53",
"startBlock": 5710964
},
"EthRegistrarController": {
"address": "0xE2f076220c4e456A10398A8482d84BE1E8b82516",
"startBlock": 5570752
"address": "0x77D2a098D81580633091529FB93953dE9180c0c0",
"startBlock": 5710979
},
"NameWrapper": {
"address": "0x0Fb19ba94805a816471C84c90F167285bA888FD3",
"startBlock": 5570741
"address": "0xB496f723a0180418b0F15e2b1af7d60BBa8Afeb1",
"startBlock": 5710956
}
},
"holesky": {
Expand Down
5 changes: 2 additions & 3 deletions packages/ens-subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
"docker:remove-local": "graph remove graphprotocol/ens --node http://ens-app_graph-node_1:8020",
"build": "graph build",
"deploy": "graph deploy --network mainnet --product hosted-service ensdomains/ens",
"deploy:goerli": "graph deploy --network goerli --product hosted-service ensdomains/ensgoerli",
"deploy:sepolia": "graph deploy --network sepolia --studio enssepolia",
"deploy:holesky": "graph deploy --network holesky --studio ensholesky",
"deploy:sepolia": "graph deploy --network sepolia --studio ens-sepolia",
"deploy:holesky": "graph deploy --network holesky --studio ens-sepolia",
"watch-local": "graph deploy graphprotocol/ens --watch --debug --node http://127.0.0.1:8020/ --ipfs http://localhost:5001"
},
"devDependencies": {
Expand Down
11 changes: 11 additions & 0 deletions packages/poh-verifier/.env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Env
NODE_ENV=development
PORT=3000

# Signer
VERIFIER_CONTRACT_ADDRESS=0xa904d832aBEBb150acde3Aa520cAC39B0970AF1b

# Poh API
POH_API_URL=https://linea-xp-poh-api.linea.build

CHAIN_ID=11155111
Loading
Loading