Skip to content
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
44 changes: 0 additions & 44 deletions .addresses

This file was deleted.

35 changes: 0 additions & 35 deletions .env

This file was deleted.

49 changes: 49 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# .env.example をコピーして .env を作成してください (.env は git 管理外)
# cp .env.example .env
# Bun は実行時にカレントディレクトリの .env を自動で読み込みます。

# 利用する DEX プリセット (env/<DEX>.env を読み込む): pancake | bakery | pangolin
DEX=pancake

# swap 元トークン (買い: これで払う / 売り: これを受け取る)
# BUSD: 0xe9e7cea3dedca5984780bafc599bd69add087d56
# USDT(BUSD-T): 0x55d398326f99059ff775485246999027b3197955
# WBNB: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c
ADDRESS_FROM=""
# swap 先トークン (狙うトークン)
ADDRESS_TO=""

# 1 回の購入で使う ADDRESS_FROM の数量 (小数可)
AMOUNT="50"
# buy:multiple で 1 回あたりに使う数量 (購入上限があるトークン向け)
MULTIPLE_AMOUNT="1"

# 取引期限 (分)
DEADLINE_MIN=25

# 売買のガス設定 (price は gwei)
# veryhigh: limit 10000000 / price 100~300
# high: limit 10000000 / price 50
# mid: limit 10000000 / price 10
# low: limit 10000000 / price 5
# test: limit 170000 / price 5
TRADE_GAS_LIMIT=10000000
TRADE_GAS_PRICE="5"

# approve のガス設定 (price は gwei)
# high: 500000 / 50, mid: 300000 / 25, low: 250000 / 5
APPROVE_GAS_LIMIT=250000
APPROVE_GAS_PRICE="10"

# subscribe:pair-created で検出したいシンボル (カンマ区切り, 正規表現可)
WATCH_SYMBOLS=""

# 約定通知用の Slack 互換 Webhook (任意)
WEBHOOK_URL=""

# 1 にするとトランザクションを送信せず内容だけ表示する
DRY_RUN=0

# ウォレットの秘密鍵 (必須)
# ⚠️ bot 専用の新規ウォレットを使い、必要最小限の資金だけ入れてください
PRIVATE_KEY=""
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:
- package-ecosystem: bun
directory: /
schedule:
interval: weekly
# 公開直後のバージョンは提案しない (乗っ取り版が削除されるまでの猶予)
cooldown:
default-days: 7
open-pull-requests-limit: 5

- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
cooldown:
default-days: 7
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches: [main, master]
pull_request:

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
steps:
# サードパーティ Action もサプライチェーンの一部なので、タグではなくコミット SHA で固定することを推奨
# (Dependabot / Renovate で SHA の更新 PR を受け取れる)
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest

# lockfile どおりに入れる。lifecycle script は Bun の既定で実行されない
- run: bun ci

- name: Audit dependencies
run: bun audit

- name: Typecheck
run: bun run typecheck

- name: Bundle check (import / syntax errors)
run: bun build src/commands/**/*.ts --target=bun --outdir=/tmp/bun-build-check
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
node_modules
.history
.DS_Store

# secrets
.env
.env.*
!.env.example
env/*.local.env

# survey outputs (contains wallet addresses)
data/survey/outputs/
2 changes: 0 additions & 2 deletions .node-version

This file was deleted.

Loading
Loading