Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
9764b8b
feat: easy update
Raymondwry Jan 7, 2026
05c1fbb
feat: update border
Raymondwry Jan 7, 2026
c89db36
feat: support hsk
Raymondwry Jan 12, 2026
a1bde4f
feat : udpate wallet
Raymondwry Jan 12, 2026
2f98ec6
feat: upddate chain
Raymondwry Jan 13, 2026
1f36914
feat: update hashkey config
leo-shi-dacheng Jan 13, 2026
0f8a8f6
feat: udpate tools
Raymondwry Jan 14, 2026
8e5e63f
fix: update rpc url
Raymondwry Jan 14, 2026
be1497e
feat: udpate for quote
Raymondwry Jan 15, 2026
492d30c
feat: update icon
Raymondwry Jan 16, 2026
ea8822b
feat: change language and hide get app
Raymondwry Jan 16, 2026
e043f1f
feat: udpate sdk
Raymondwry Jan 20, 2026
e1a3e06
feat: no execute and swap work
Raymondwry Jan 21, 2026
4ed0655
feat: update quote
Raymondwry Jan 21, 2026
42f5be2
feat: update inner net
Raymondwry Jan 22, 2026
75ea0d3
fix : review fix
Raymondwry Jan 22, 2026
32e40f2
feat: remove consoles
Raymondwry Jan 22, 2026
eca7419
fix: csp
Raymondwry Jan 22, 2026
fa04a58
feat: update on chain approval check
Raymondwry Jan 22, 2026
ee33e8e
feat: fix review
Raymondwry Jan 23, 2026
a3d92e1
feat: update gaslimit
Raymondwry Jan 23, 2026
20771f7
feat: udpate quote
Raymondwry Jan 23, 2026
7db5ca1
feat: remove useless api
Raymondwry Jan 24, 2026
ed30ffb
feat: remove most errors
Raymondwry Jan 24, 2026
4a11a3a
fix: more console error
Raymondwry Jan 24, 2026
f186d42
feat: update details
Raymondwry Jan 25, 2026
8932051
feat: udpate for settings icon
Raymondwry Jan 26, 2026
bac34b7
feat: more gas limit
Raymondwry Jan 26, 2026
a2ca565
feat: create pool feature
leo-shi-dacheng Jan 26, 2026
a09bdb5
feat: hide token chain
Raymondwry Jan 26, 2026
642b143
chore: temporarily remove workflow file for initial push
Raymondwry Jan 26, 2026
e227938
chore: restore workflow file
Raymondwry Jan 26, 2026
9fbcd04
feat: docker
Raymondwry Jan 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
88 changes: 88 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Git
.git
.gitignore
.github

# Documentation
*.md
!README.md
docs/

# Dependencies
node_modules
.pnp
.pnp.js

# Testing
coverage
.nyc_output
*.test.ts
*.test.tsx
*.spec.ts
*.spec.tsx
**/__tests__/**
**/__test__/**
**/*.test.*
**/*.spec.*
**/test-utils/**
**/e2e/**
**/playwright/**
**/*.stories.ts
**/*.stories.tsx
**/*.stories.js
**/*.stories.jsx

# Build outputs
dist
build
.next
out
.nx

# Environment files
.env
.env.local
.env.development
.env.test
.env.production
.env*.local

# IDE
.vscode
.idea
*.swp
*.swo
*~

# OS
.DS_Store
Thumbs.db

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Misc
.cache
.temp
tmp
*.tmp

# Docker
Dockerfile*
docker-compose*.yml
.dockerignore

# CI/CD
.github/workflows

# Mobile specific (not needed for web build)
apps/mobile/
apps/extension/

# Scripts
scripts/
92 changes: 92 additions & 0 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Build and Push Docker Image

on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main
workflow_dispatch:
inputs:
tag:
description: 'Docker image tag'
required: false
default: 'latest'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: 🔒 Checkout code
uses: actions/checkout@v4

- name: 🏗️ Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: |
image=moby/buildkit:latest
network=host

- name: 🔐 Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: 🏷️ Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha,prefix={{branch}}-
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=${{ github.event.inputs.tag }},enable=${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag != '' }}

- name: 🧷 Get version
id: version
uses: juliangruber/read-file-action@v1
with:
path: VERSION
default: 'dev'

- name: 🏗️ Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
NODE_ENV=production
BUILD_NUM=${{ github.run_number }}
CLOUDFLARE_ENV=production
platforms: linux/amd64,linux/arm64

- name: 📝 Output image info
if: github.event_name != 'pull_request'
run: |
echo "✅ Docker image built and pushed successfully!"
echo "📦 Image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
echo "🏷️ Tags: ${{ steps.meta.outputs.tags }}"
echo "📌 Version: ${{ steps.version.outputs.content }}"
74 changes: 74 additions & 0 deletions .github/workflows/docker-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Deploy Docker Image

on:
workflow_run:
workflows: ["Build and Push Docker Image"]
types:
- completed
workflow_dispatch:
inputs:
image_tag:
description: 'Docker image tag to deploy'
required: true
default: 'latest'
environment:
description: 'Deployment environment'
required: true
type: choice
options:
- staging
- production
default: 'staging'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
environment: ${{ github.event.inputs.environment || 'staging' }}
permissions:
contents: read
packages: read

steps:
- name: 🔒 Checkout code
uses: actions/checkout@v4

- name: 🔐 Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: 🏷️ Set image tag
id: image
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
echo "tag=${{ github.event.inputs.image_tag }}" >> $GITHUB_OUTPUT
else
echo "tag=latest" >> $GITHUB_OUTPUT
fi

- name: 🚀 Deploy to server
run: |
echo "🚀 Deploying ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.image.outputs.tag }}"
echo "📦 Environment: ${{ github.event.inputs.environment || 'staging' }}"
# TODO: 添加实际的部署脚本
# 例如:
# - SSH 到服务器
# - 拉取新镜像
# - 重启容器
#
# 示例命令:
# ssh user@server "docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.image.outputs.tag }}"
# ssh user@server "docker-compose -f /path/to/docker-compose.yml up -d"

- name: ✅ Deployment notification
run: |
echo "✅ Deployment completed successfully!"
echo "📦 Image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.image.outputs.tag }}"
echo "🌍 Environment: ${{ github.event.inputs.environment || 'staging' }}"
Loading