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

Feature: 409 Swap USDC CCTP for Connect CCTP version #425

Merged
merged 5 commits into from
Sep 20, 2023
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
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
Loading