-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chores: implemented UI changes and updated rpc and testnet links * added new rpcs links * chores: implemented UI changes and updated rpc and testnet links (#1) * chores: implemented UI changes and updated rpc and testnet links * added new rpcs links * Delete .DS_Store * UI customization (#2) * chores: implemented UI changes and updated rpc and testnet links * added new rpcs links * qa fixes --------- Co-authored-by: James Harrison <[email protected]> Co-authored-by: Николай Скиба <[email protected]> * UI customization (#3) * chores: implemented UI changes and updated rpc and testnet links * added new rpcs links * qa fixes * qa fixes --------- Co-authored-by: Николай Скиба <[email protected]> * chores: changed xend to assetchain in the misc/chains.ts * improving contract * frontend integration of ausdce token * added tx block check in usdc backend * chore: leaderboard link * implemented new bridge assist in frontend * switch to supported chain * fix build error * header component * removed usdc from token options * support for bitlayer wbtc * integrate wbtc in frontend * resolved builld error * resolved builld error * changes to abi * switch to old script * switch to old script * Contracts improve (#13) * changes to abi * switch to old script * switch to old script * Revert "Contracts improve (#13)" (#14) This reverts commit e597518. * btc native frontend integration * contract-improves * fix bugs * fix build error * fix frontend bug * switched to old scripts * switched to old scripts (#20) * implement new usdc from base to asset chain * resolve amount bug * worked on audit report * worked on more audit issues from last commit * worked on more audit issues from last commit * removed other tokens except RWA,USDC,BTC * working on audit * fix * added workflow * added workflow * working on circle bridge test * made some fixes * trying to add test for circle bridge assist * working on readme files * working on readmes * finish up audit fixes * worked on readme files * worked on readme files * Update README.md * Update README.md * updated socials * added smart contract audit * implemtented multiple relayers * updated workflow * updated workflow * updated workflow * updated workflow * updated workflow * updated workflow * improving frontend * preparing mainnet * add coinbase and trustwallet * set for contract deployment * set for contract deployment * added workflow * added workflow * added workflow * added workflow * added workflow * updated workflow * change * added script for deploying single bridgeAssist * added script for deploying single bridgeAssist * flatten contracts * frontend and backend implementation of mainnet * resolve build error * Update push-prod.yml --------- Co-authored-by: James Harrison <[email protected]> Co-authored-by: James Harrison Somto <[email protected]> Co-authored-by: Franklin <[email protected]> Co-authored-by: Николай Скиба <[email protected]> Co-authored-by: okorieebube <[email protected]> Co-authored-by: EBUBE <[email protected]> Co-authored-by: Ugochukwu Aronu <[email protected]> Co-authored-by: Franklin Nwanze <[email protected]>
- Loading branch information
1 parent
bca9e3a
commit 9d0ac0b
Showing
326 changed files
with
591,419 additions
and
27,609 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
name: Deploy to Server | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'backend/**' | ||
- 'backend-ausdce/**' | ||
- 'backend-dai/**' | ||
- 'backend-usdc/**' | ||
- 'backend-usdt/**' | ||
- 'backend-wbtc/**' | ||
- 'backend-weth/**' | ||
- 'backend-wnt/**' | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Filter Changed Files | ||
id: filter | ||
uses: dorny/paths-filter@v2 | ||
with: | ||
filters: | | ||
backend: | ||
- 'backend/**' | ||
backend-ausdce: | ||
- 'backend-ausdce/**' | ||
backend-dai: | ||
- 'backend-dai/**' | ||
backend-usdc: | ||
- 'backend-usdc/**' | ||
backend-usdt: | ||
- 'backend-usdt/**' | ||
backend-wbtc: | ||
- 'backend-wbtc/**' | ||
backend-weth: | ||
- 'backend-weth/**' | ||
backend-wnt: | ||
- 'backend-wnt/**' | ||
- name: Build Backend | ||
if: steps.filter.outputs.backend == 'true' | ||
run: | | ||
cd backend | ||
yarn && yarn build | ||
- name: Build Backend ausdce | ||
if: steps.filter.outputs.backend-ausdce == 'true' | ||
run: | | ||
cd backend-ausdce | ||
yarn && yarn build | ||
- name: Build Backend dai | ||
if: steps.filter.outputs.backend-dai == 'true' | ||
run: | | ||
cd backend-dai | ||
yarn && yarn build | ||
- name: Build Backend usdc | ||
if: steps.filter.outputs.backend-usdc == 'true' | ||
run: | | ||
cd backend-usdc | ||
yarn && yarn build | ||
- name: Build Backend usdt | ||
if: steps.filter.outputs.backend-usdt == 'true' | ||
run: | | ||
cd backend-usdt | ||
yarn && yarn build | ||
- name: Build Backend wbtc | ||
if: steps.filter.outputs.backend-wbtc == 'true' | ||
run: | | ||
cd backend-wbtc | ||
yarn && yarn build | ||
- name: Build Backend weth | ||
if: steps.filter.outputs.backend-weth == 'true' | ||
run: | | ||
cd backend-weth | ||
yarn && yarn build | ||
- name: Build Backend wnt | ||
if: steps.filter.outputs.backend-wnt == 'true' | ||
run: | | ||
cd backend-wnt | ||
yarn && yarn build | ||
- name: Install OpenVPN | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y openvpn | ||
- name: Configure OpenVPN | ||
run: | | ||
echo "${{ secrets.ASSETCHAIN_PROD_VPN_CONFIG }}" > ~/config.ovpn.encoded | ||
echo "${{ secrets.ASSETCHAIN_PROD_VPN_AUTH }}" > ~/auth.txt.encoded | ||
base64 -d ~/config.ovpn.encoded > config.ovpn | ||
base64 -d ~/auth.txt.encoded > auth.txt | ||
sudo mv config.ovpn /etc/openvpn/ | ||
sudo mv auth.txt /etc/openvpn/ | ||
- name: Connect to OpenVPN | ||
run: | | ||
sudo openvpn --config /etc/openvpn/config.ovpn --auth-user-pass /etc/openvpn/auth.txt & | ||
sleep 10 | ||
- name: Setup SSH | ||
run: | | ||
echo "${{ secrets.ASSETCHAIN_SSH_PRIVATE_KEY }}" > id_rsa | ||
chmod 600 id_rsa | ||
- name: Deploy Backend | ||
if: steps.filter.outputs.backend == 'true' | ||
run: | | ||
scp -i id_rsa -o StrictHostKeyChecking=no -P ${{ secrets.ONPREM_SSH_PORT }} -r backend/parse-apps.config.js backend/yarn.lock backend/package.json backend/dist ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_PROD_IP }}:/var/www/bridge.assetchain.org/backend/ | ||
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.ONPREM_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_PROD_IP }} "cd /var/www/bridge.assetchain.org/backend && yarn && pm2 restart parse-apps.config.js" | ||
- name: Deploy Backend ausdce | ||
if: steps.filter.outputs.backend-ausdce == 'true' | ||
run: | | ||
scp -i id_rsa -o StrictHostKeyChecking=no -P ${{ secrets.ONPREM_SSH_PORT }} -r backend-ausdce/parse-apps.config.js backend-ausdce/yarn.lock backend-ausdce/package.json backend-ausdce/dist ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_PROD_IP }}:/var/www/bridge.assetchain.org/backend-ausdce/ | ||
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.ONPREM_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_PROD_IP }} "cd /var/www/bridge.assetchain.org/backend-ausdce && yarn && pm2 restart parse-apps.config.js" | ||
- name: Deploy Backend dai | ||
if: steps.filter.outputs.backend-dai == 'true' | ||
run: | | ||
scp -i id_rsa -o StrictHostKeyChecking=no -P ${{ secrets.ONPREM_SSH_PORT }} -r backend-dai/parse-apps.config.js backend-dai/yarn.lock backend-dai/package.json backend-dai/dist ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_PROD_IP }}:/var/www/bridge.assetchain.org/backend-dai/ | ||
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.ONPREM_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_PROD_IP }} "cd /var/www/bridge.assetchain.org/backend-dai && yarn && pm2 restart parse-apps.config.js" | ||
|
||
- name: Deploy Backend usdt | ||
if: steps.filter.outputs.backend-usdt == 'true' | ||
run: | | ||
scp -i id_rsa -o StrictHostKeyChecking=no -P ${{ secrets.ONPREM_SSH_PORT }} -r backend-usdt/parse-apps.config.js backend-usdt/yarn.lock backend-usdt/package.json backend-usdt/dist ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_PROD_IP }}:/var/www/bridge.assetchain.org/backend-usdt/ | ||
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.ONPREM_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_PROD_IP }} "cd /var/www/bridge.assetchain.org/backend-usdt && yarn && pm2 restart parse-apps.config.js" | ||
- name: Deploy Backend usdc | ||
if: steps.filter.outputs.backend-usdc == 'true' | ||
run: | | ||
scp -i id_rsa -o StrictHostKeyChecking=no -P ${{ secrets.ONPREM_SSH_PORT }} -r backend-usdc/parse-apps.config.js backend-usdc/yarn.lock backend-usdc/package.json backend-usdc/dist ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_PROD_IP }}:/var/www/bridge.assetchain.org/backend-usdc/ | ||
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.ONPREM_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_PROD_IP }} "cd /var/www/bridge.assetchain.org/backend-usdc && yarn && pm2 restart parse-apps.config.js" | ||
- name: Deploy Backend wbtc | ||
if: steps.filter.outputs.backend-wbtc == 'true' | ||
run: | | ||
scp -i id_rsa -o StrictHostKeyChecking=no -P ${{ secrets.ONPREM_SSH_PORT }} -r backend-wbtc/parse-apps.config.js backend-wbtc/yarn.lock backend-wbtc/package.json backend-wbtc/dist ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_PROD_IP }}:/var/www/bridge.assetchain.org/backend-wbtc/ | ||
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.ONPREM_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_PROD_IP }} "cd /var/www/bridge.assetchain.org/backend-wbtc && yarn && pm2 restart parse-apps.config.js" | ||
- name: Deploy Backend weth | ||
if: steps.filter.outputs.backend-weth == 'true' | ||
run: | | ||
scp -i id_rsa -o StrictHostKeyChecking=no -P ${{ secrets.ONPREM_SSH_PORT }} -r backend-weth/parse-apps.config.js backend-weth/yarn.lock backend-weth/package.json backend-weth/dist ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_PROD_IP }}:/var/www/bridge.assetchain.org/backend-weth/ | ||
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.ONPREM_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_PROD_IP }} "cd /var/www/bridge.assetchain.org/backend-weth && yarn && pm2 restart parse-apps.config.js" | ||
- name: Deploy Backend wnt | ||
if: steps.filter.outputs.backend-wnt == 'true' | ||
run: | | ||
scp -i id_rsa -o StrictHostKeyChecking=no -P ${{ secrets.ONPREM_SSH_PORT }} -r backend-wnt/parse-apps.config.js backend-wnt/yarn.lock backend-wnt/package.json backend-wnt/dist ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_PROD_IP }}:/var/www/bridge.assetchain.org/backend-wnt/ | ||
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.ONPREM_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_PROD_IP }} "cd /var/www/bridge.assetchain.org/backend-wnt && yarn && pm2 restart parse-apps.config.js" | ||
|
||
- name: Clear Credentials | ||
if: always() | ||
run: | | ||
sudo rm -f /etc/openvpn/config.ovpn /etc/openvpn/auth.txt | ||
rm -f ~/config.ovpn.encoded ~/auth.txt.encoded id_rsa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
name: Deploy to Server | ||
|
||
on: | ||
push: | ||
branches: | ||
- staging | ||
paths: | ||
- 'backend/**' | ||
- 'backend-ausdce/**' | ||
- 'backend-dai/**' | ||
- 'backend-usdc/**' | ||
- 'backend-usdt/**' | ||
- 'backend-wbtc/**' | ||
- 'backend-weth/**' | ||
- 'backend-wnt/**' | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Filter Changed Files | ||
id: filter | ||
uses: dorny/paths-filter@v2 | ||
with: | ||
filters: | | ||
backend: | ||
- 'backend/**' | ||
backend-ausdce: | ||
- 'backend-ausdce/**' | ||
backend-dai: | ||
- 'backend-dai/**' | ||
backend-usdc: | ||
- 'backend-usdc/**' | ||
backend-usdt: | ||
- 'backend-usdt/**' | ||
backend-wbtc: | ||
- 'backend-wbtc/**' | ||
backend-weth: | ||
- 'backend-weth/**' | ||
backend-wnt: | ||
- 'backend-wnt/**' | ||
- name: Install OpenVPN | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y openvpn | ||
- name: Configure OpenVPN | ||
run: | | ||
echo "${{ secrets.ASSETCHAIN_STAGING_VPN_CONFIG }}" > ~/config.ovpn.encoded | ||
echo "${{ secrets.ASSETCHAIN_STAGING_VPN_AUTH }}" > ~/auth.txt.encoded | ||
base64 -d ~/config.ovpn.encoded > config.ovpn | ||
base64 -d ~/auth.txt.encoded > auth.txt | ||
sudo mv config.ovpn /etc/openvpn/ | ||
sudo mv auth.txt /etc/openvpn/ | ||
- name: Connect to OpenVPN | ||
run: | | ||
sudo openvpn --config /etc/openvpn/config.ovpn --auth-user-pass /etc/openvpn/auth.txt & | ||
sleep 10 | ||
- name: Setup SSH | ||
run: | | ||
echo "${{ secrets.ASSETCHAIN_SSH_PRIVATE_KEY }}" > id_rsa | ||
chmod 600 id_rsa | ||
- name: Deploy Backend | ||
if: steps.filter.outputs.backend == 'true' | ||
run: | | ||
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.STAGING_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }} "cd /var/www/bridge.assetchain.org/backend && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js" | ||
- name: Deploy Backend ausdce | ||
if: steps.filter.outputs.backend-ausdce == 'true' | ||
run: | | ||
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.STAGING_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }} "cd /var/www/bridge.assetchain.org/backend-ausdce && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js" | ||
- name: Deploy Backend dai | ||
if: steps.filter.outputs.backend-dai == 'true' | ||
run: | | ||
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.STAGING_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }}"cd /var/www/bridge.assetchain.org/backend-dai && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js" | ||
- name: Deploy Backend usdc | ||
if: steps.filter.outputs.backend-usdc == 'true' | ||
run: | | ||
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.STAGING_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }} "cd /var/www/bridge.assetchain.org/backend-usdc && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js" | ||
- name: Deploy Backend usdt | ||
if: steps.filter.outputs.backend-usdt == 'true' | ||
run: | | ||
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.STAGING_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }} "cd /var/www/bridge.assetchain.org/backend-usdt && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js" | ||
- name: Deploy Backend wbtc | ||
if: steps.filter.outputs.backend-wbtc == 'true' | ||
run: | | ||
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.STAGING_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }} "cd /var/www/bridge.assetchain.org/backend-wbtc && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js" | ||
- name: Deploy Backend weth | ||
if: steps.filter.outputs.backend-weth == 'true' | ||
run: | | ||
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.STAGING_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }} "cd /var/www/bridge.assetchain.org/backend-weth && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js" | ||
- name: Deploy Backend wnt | ||
if: steps.filter.outputs.backend-wnt == 'true' | ||
run: | | ||
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.STAGING_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }} "cd /var/www/bridge.assetchain.org/backend-wnt && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js" | ||
- name: Clear Credentials | ||
if: always() | ||
run: | | ||
sudo rm -f /etc/openvpn/config.ovpn /etc/openvpn/auth.txt | ||
rm -f ~/config.ovpn.encoded ~/auth.txt.encoded id_rsa |
Oops, something went wrong.