Skip to content

Commit

Permalink
Feature: 409 Swap USDC CCTP for Connect CCTP version (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuli-ferna authored Sep 20, 2023
1 parent ab3c43e commit b871734
Show file tree
Hide file tree
Showing 10 changed files with 612 additions and 128 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,39 @@ on:
types: [opened, synchronize, reopened]

jobs:
cctp:
name: "Build USDC Bridge (CCTP)"
runs-on: "ubuntu-latest"
concurrency:
group: ${{ github.ref }}-cctp-preview
cancel-in-progress: true
environment: Cloudflare-Preview
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
repository: xlabs/usdc-bridge
ref: develop
- name: Set up Node environment
uses: actions/setup-node@v3
with:
node-version: v16.19.1
- name: Install dependencies
run: npm ci
- name: Set Version
run: |
echo "_BRANCH_NAME_SHA=$(echo ${{ github.event.pull_request.head.ref }} | sha256sum | cut -c -10)" >> "${GITHUB_ENV}"
- name: Build
env:
DEPLOY: "true"
NEXT_PUBLIC_NETWORK: ${{ vars.REACT_APP_CLUSTER }}
NEXT_PUBLIC_BASE_PATH: "/${{ env._BRANCH_NAME_SHA }}/usdc-bridge"
run: npm run build
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: preview-stable-bridge-build
path: out
# cctp:
# name: "Build USDC Bridge (CCTP)"
# runs-on: "ubuntu-latest"
# concurrency:
# group: ${{ github.ref }}-cctp-preview
# cancel-in-progress: true
# environment: Cloudflare-Preview
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# with:
# repository: xlabs/usdc-bridge
# ref: develop
# - name: Set up Node environment
# uses: actions/setup-node@v3
# with:
# node-version: v16.19.1
# - name: Install dependencies
# run: npm ci
# - name: Set Version
# run: |
# echo "_BRANCH_NAME_SHA=$(echo ${{ github.event.pull_request.head.ref }} | sha256sum | cut -c -10)" >> "${GITHUB_ENV}"
# - name: Build
# env:
# DEPLOY: "true"
# NEXT_PUBLIC_NETWORK: ${{ vars.REACT_APP_CLUSTER }}
# NEXT_PUBLIC_BASE_PATH: "/${{ env._BRANCH_NAME_SHA }}/usdc-bridge"
# run: npm run build
# - name: Upload Artifact
# uses: actions/upload-artifact@v3
# with:
# name: preview-stable-bridge-build
# path: out
docs:
name: "Build Portal Bridge Documentation"
runs-on: "ubuntu-latest"
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
needs:
- portal
- docs
- cctp
# - cctp
runs-on: "ubuntu-latest"
concurrency:
group: ${{ github.ref }}-publish-preview
Expand All @@ -148,11 +148,11 @@ jobs:
with:
name: docs-preview-build
path: docs
- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: preview-stable-bridge-build
path: usdc-bridge
# - name: Download Artifact
# uses: actions/download-artifact@v3
# with:
# name: preview-stable-bridge-build
# path: usdc-bridge
- name: Set up GitHub NPM registry
uses: actions/setup-node@v3
with:
Expand Down
78 changes: 39 additions & 39 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,39 @@ on:
workflow_dispatch:

jobs:
cctp:
name: "Build USDC Bridge (CCTP)"
runs-on: "ubuntu-latest"
concurrency:
group: ${{ github.ref }}-cctp-release
cancel-in-progress: true
environment: Cloudflare-Page-Deploy
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
repository: xlabs/usdc-bridge
ref: main
- name: Set up Node environment
uses: actions/setup-node@v3
with:
node-version: v16.19.1
- name: Install dependencies
run: npm ci
- name: Set Version
run: |
echo "_BRANCH_NAME_SHA=$(echo ${{ github.event.pull_request.head.ref }} | sha256sum | cut -c -10)" >> "${GITHUB_ENV}"
- name: Build
env:
DEPLOY: "true"
NEXT_PUBLIC_NETWORK: ${{ vars.REACT_APP_CLUSTER }}
NEXT_PUBLIC_BASE_PATH: "/usdc-bridge"
run: npm run build
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: release-stable-bridge
path: out
# cctp:
# name: "Build USDC Bridge (CCTP)"
# runs-on: "ubuntu-latest"
# concurrency:
# group: ${{ github.ref }}-cctp-release
# cancel-in-progress: true
# environment: Cloudflare-Page-Deploy
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# with:
# repository: xlabs/usdc-bridge
# ref: main
# - name: Set up Node environment
# uses: actions/setup-node@v3
# with:
# node-version: v16.19.1
# - name: Install dependencies
# run: npm ci
# - name: Set Version
# run: |
# echo "_BRANCH_NAME_SHA=$(echo ${{ github.event.pull_request.head.ref }} | sha256sum | cut -c -10)" >> "${GITHUB_ENV}"
# - name: Build
# env:
# DEPLOY: "true"
# NEXT_PUBLIC_NETWORK: ${{ vars.REACT_APP_CLUSTER }}
# NEXT_PUBLIC_BASE_PATH: "/usdc-bridge"
# run: npm run build
# - name: Upload Artifact
# uses: actions/upload-artifact@v3
# with:
# name: release-stable-bridge
# path: out

docs:
name: "Build Portal Bridge Documentation"
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
name: "Publish"
needs:
- portal
- cctp
#- cctp
- docs
runs-on: "ubuntu-latest"
concurrency:
Expand All @@ -145,11 +145,11 @@ jobs:
with:
name: docs-release-build
path: docs
- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: release-stable-bridge
path: usdc-bridge
# - name: Download Artifact
# uses: actions/download-artifact@v3
# with:
# name: release-stable-bridge
# path: usdc-bridge
- name: Set up GitHub NPM registry
uses: actions/setup-node@v3
with:
Expand Down
78 changes: 39 additions & 39 deletions .github/workflows/testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,39 @@ on:
types: [opened, synchronize, reopened]

jobs:
cctp:
name: "Build USDC Bridge (CCTP)"
runs-on: "ubuntu-latest"
concurrency:
group: ${{ github.ref }}-cctp-testnet
cancel-in-progress: true
environment: Cloudflare-Testnet
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
repository: xlabs/usdc-bridge
ref: develop
- name: Set up Node environment
uses: actions/setup-node@v3
with:
node-version: v16.19.1
- name: Install dependencies
run: npm ci
- name: Set Version
run: |
echo "_BRANCH_NAME_SHA=$(echo ${{ github.event.pull_request.head.ref }} | sha256sum | cut -c -10)" >> "${GITHUB_ENV}"
- name: Build
env:
DEPLOY: "true"
NEXT_PUBLIC_NETWORK: "testnet"
NEXT_PUBLIC_BASE_PATH: "/${{ env._BRANCH_NAME_SHA }}/usdc-bridge"
run: npm run build
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: testnet-stable-bridge
path: out
# cctp:
# name: "Build USDC Bridge (CCTP)"
# runs-on: "ubuntu-latest"
# concurrency:
# group: ${{ github.ref }}-cctp-testnet
# cancel-in-progress: true
# environment: Cloudflare-Testnet
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# with:
# repository: xlabs/usdc-bridge
# ref: develop
# - name: Set up Node environment
# uses: actions/setup-node@v3
# with:
# node-version: v16.19.1
# - name: Install dependencies
# run: npm ci
# - name: Set Version
# run: |
# echo "_BRANCH_NAME_SHA=$(echo ${{ github.event.pull_request.head.ref }} | sha256sum | cut -c -10)" >> "${GITHUB_ENV}"
# - name: Build
# env:
# DEPLOY: "true"
# NEXT_PUBLIC_NETWORK: "testnet"
# NEXT_PUBLIC_BASE_PATH: "/${{ env._BRANCH_NAME_SHA }}/usdc-bridge"
# run: npm run build
# - name: Upload Artifact
# uses: actions/upload-artifact@v3
# with:
# name: testnet-stable-bridge
# path: out

portal:
name: "Build Portal Bridge"
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
name: "Publish"
needs:
- portal
- cctp
# - cctp
runs-on: "ubuntu-latest"
concurrency:
group: ${{ github.ref }}-publish-testnet
Expand All @@ -112,11 +112,11 @@ jobs:
uses: actions/download-artifact@v3
with:
name: testnet-portal-bridge
- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: testnet-stable-bridge
path: usdc-bridge
# - name: Download Artifact
# uses: actions/download-artifact@v3
# with:
# name: testnet-stable-bridge
# path: usdc-bridge
- name: Set up GitHub NPM registry
uses: actions/setup-node@v3
with:
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xlabs/portal-bridge-ui",
"version": "0.1.80",
"version": "0.1.81",
"private": true,
"dependencies": {
"@certusone/wormhole-sdk": "^0.9.22",
Expand Down Expand Up @@ -122,7 +122,7 @@
"lint-staged": "^13.2.3",
"os-browserify": "^0.3.0",
"path-browserify": "^1.0.1",
"prettier": "^3.0.2",
"prettier": "^3.0.3",
"process": "^0.11.10",
"punycode": "^2.1.1",
"querystring-es3": "^0.2.1",
Expand Down
Binary file added public/usdc-bridge/SuisseBPIntlBold.woff2
Binary file not shown.
Binary file added public/usdc-bridge/circle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b871734

Please sign in to comment.