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 2 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
68 changes: 34 additions & 34 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 Down
68 changes: 34 additions & 34 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 Down
68 changes: 34 additions & 34 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 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