Sync workspace: config, docs, scripts, CI, operator rules, and submodule pointers.

- Update dbis_core, cross-chain-pmm-lps, explorer-monorepo, metamask-integration, pr-workspace/chains
- Omit embedded publish git dirs and empty placeholders from index

Made-with: Cursor
This commit is contained in:
defiQUG
2026-04-12 06:12:20 -07:00
parent 6fb6bd3993
commit dbd517b279
2935 changed files with 327972 additions and 5533 deletions

View File

@@ -0,0 +1,55 @@
# Gateway rails unit + HTTP integration tests (dbis_core submodule)
name: dbis-core-gateway-ci
on:
push:
paths:
- 'dbis_core/package.json'
- 'dbis_core/package-lock.json'
- 'dbis_core/jest.config.js'
- 'dbis_core/jest.gateway-http.config.js'
- 'dbis_core/src/core/gateway/**'
- 'dbis_core/src/workers/gateway-outbox.worker.ts'
- 'dbis_core/src/workers/run-gateway-outbox-worker.ts'
- 'dbis_core/src/__tests__/unit/core/gateway/**'
- 'dbis_core/src/__tests__/integration/api/gateway-rails-http.integration.test.ts'
- 'dbis_core/src/__tests__/gateway-http-env-setup.ts'
- 'dbis_core/src/__tests__/utils/gateway-http-test-app.ts'
- '.github/workflows/dbis-core-gateway-ci.yml'
pull_request:
paths:
- 'dbis_core/package.json'
- 'dbis_core/package-lock.json'
- 'dbis_core/jest.config.js'
- 'dbis_core/jest.gateway-http.config.js'
- 'dbis_core/src/core/gateway/**'
- 'dbis_core/src/workers/gateway-outbox.worker.ts'
- 'dbis_core/src/workers/run-gateway-outbox-worker.ts'
- 'dbis_core/src/__tests__/unit/core/gateway/**'
- 'dbis_core/src/__tests__/integration/api/gateway-rails-http.integration.test.ts'
- 'dbis_core/src/__tests__/gateway-http-env-setup.ts'
- 'dbis_core/src/__tests__/utils/gateway-http-test-app.ts'
- '.github/workflows/dbis-core-gateway-ci.yml'
defaults:
run:
working-directory: dbis_core
jobs:
test-gateway:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: dbis_core/package-lock.json
- name: Install dependencies
run: npm ci
- name: Gateway tests (unit + integration)
run: npm run test:gateway

42
.github/workflows/economics-toolkit.yml vendored Normal file
View File

@@ -0,0 +1,42 @@
# Unit tests for packages/economics-toolkit (no live RPC required).
name: economics-toolkit
on:
push:
paths:
- "packages/economics-toolkit/**"
- "pnpm-workspace.yaml"
- "package.json"
- "scripts/economics/**"
- "scripts/validation/validate-economics-strategy-json.sh"
- "AGENTS.md"
- ".github/workflows/economics-toolkit.yml"
pull_request:
paths:
- "packages/economics-toolkit/**"
- "pnpm-workspace.yaml"
- "package.json"
- "scripts/economics/**"
- "scripts/validation/validate-economics-strategy-json.sh"
- "AGENTS.md"
- ".github/workflows/economics-toolkit.yml"
workflow_dispatch: {}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
- name: Install
run: pnpm install
- name: Test economics-toolkit
run: pnpm run economics:test
- name: Validate strategy JSON (smoke + template)
run: pnpm run economics:validate

View File

@@ -0,0 +1,43 @@
# Build Chain 138 info hub SPA when its package or workspace lockfile changes.
name: info-defi-oracle-138
on:
pull_request:
paths:
- 'info-defi-oracle-138/**'
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- '.github/workflows/info-defi-oracle-138.yml'
push:
branches: [main, master]
paths:
- 'info-defi-oracle-138/**'
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- '.github/workflows/info-defi-oracle-138.yml'
jobs:
build:
name: Typecheck & Vite build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build info-defi-oracle-138
run: pnpm --filter info-defi-oracle-138 build

View File

@@ -0,0 +1,46 @@
# Dry-run PMM soak helpers: export, fund-grid plan, grid + single-wallet quote ticks (read-only RPC).
name: PMM soak grid smoke
on:
pull_request:
paths:
- 'scripts/deployment/pmm-soak*.sh'
- 'scripts/deployment/chain138-pmm*.sh'
- 'scripts/deployment/pmm-soak-grid-smoke-check.sh'
- 'scripts/lib/pmm-soak*.sh'
- 'scripts/lib/pmm-soak-dotenv-override.sh'
- 'scripts/deployment/pmm-soak-export-wallet-grid.py'
- 'config/pmm-soak-pools-stable.txt'
- 'config/pmm-soak-wallet-grid.example.json'
- '.github/workflows/pmm-soak-grid-smoke.yml'
push:
branches: [main, master]
paths:
- 'scripts/deployment/pmm-soak*.sh'
- 'scripts/deployment/chain138-pmm*.sh'
- 'scripts/deployment/pmm-soak-grid-smoke-check.sh'
- 'scripts/lib/pmm-soak*.sh'
- 'scripts/lib/pmm-soak-dotenv-override.sh'
- 'scripts/deployment/pmm-soak-export-wallet-grid.py'
- 'config/pmm-soak-pools-stable.txt'
- 'config/pmm-soak-wallet-grid.example.json'
- '.github/workflows/pmm-soak-grid-smoke.yml'
jobs:
smoke:
name: Grid smoke (dry-run, public RPC)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Foundry (cast)
uses: foundry-rs/foundry-toolchain@v1
- name: Install bc
run: sudo apt-get update -qq && sudo apt-get install -y bc
- name: PMM soak grid smoke
env:
CI: "true"
run: bash scripts/deployment/pmm-soak-grid-smoke-check.sh

View File

@@ -0,0 +1,44 @@
# Smoke-test the public Chain 138 info hub (HTTPS + agent files + same-origin token-aggregation JSON).
# No secrets. May fail if the public edge or origin is down — inspect logs and runbook.
name: Verify info.defi-oracle.io (public)
on:
pull_request:
paths:
- 'scripts/verify/check-info-defi-oracle-public.sh'
- 'scripts/verify/playwright-audit-info-defi-oracle.mjs'
- 'info-defi-oracle-138/**'
- '.github/workflows/verify-info-defi-oracle-public.yml'
workflow_dispatch:
inputs:
info_site_base:
description: 'Optional INFO_SITE_BASE (staging). Leave empty to use repo variable or default https://info.defi-oracle.io'
required: false
type: string
default: ''
schedule:
- cron: '35 14 * * 1' # Mondays 14:35 UTC (~ weekly)
jobs:
verify:
name: check-info-defi-oracle-public.sh
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install jq
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq jq
- name: Public info site + token-aggregation
shell: bash
env:
INPUT_BASE: ${{ github.event.inputs.info_site_base }}
VAR_BASE: ${{ vars.INFO_SITE_BASE }}
run: |
set -euo pipefail
if [ -n "${INPUT_BASE}" ]; then export INFO_SITE_BASE="${INPUT_BASE}"; fi
if [ -z "${INFO_SITE_BASE:-}" ] && [ -n "${VAR_BASE}" ]; then export INFO_SITE_BASE="${VAR_BASE}"; fi
bash scripts/verify/check-info-defi-oracle-public.sh