Skip to content

fix: privy sign v & tuple no start with #54

fix: privy sign v & tuple no start with

fix: privy sign v & tuple no start with #54

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
python:
name: Python (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
defaults:
run:
working-directory: packages/python
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: packages/python/pyproject.toml
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build hatchling ruff
python -m pip install -e ".[dev]"
- name: Lint
run: ruff check src tests examples
- name: Test
run: pytest tests
- name: Build
run: python -m build --no-isolation
- name: Smoke test CLI
env:
AGENT_WALLET_DIR: ${{ runner.temp }}/agent-wallet-python-smoke
run: |
agent-wallet init -p "Abc12345!"
agent-wallet add local_secure -w wallet_1 -g -p "Abc12345!"
agent-wallet sign msg "hello world" -n tron -p "Abc12345!"
python -c "from pathlib import Path; import os; d = Path(os.environ['AGENT_WALLET_DIR']); expected = ['master.json', 'wallets_config.json', 'secret_wallet_1.json']; missing = [name for name in expected if not (d / name).exists()]; assert not missing, f'Missing files in {d}: {missing}'; print(sorted(p.name for p in d.iterdir()))"
typescript:
name: TypeScript (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
defaults:
run:
working-directory: packages/typescript
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
cache-dependency-path: packages/typescript/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test:coverage
- name: Build
run: pnpm build
- name: Smoke test CLI
env:
AGENT_WALLET_DIR: ${{ runner.temp }}/agent-wallet-typescript-smoke
run: |
node dist/delivery/bin.js init -p "Abc12345!"
node dist/delivery/bin.js add local_secure -w wallet_1 -g -p "Abc12345!"
node dist/delivery/bin.js sign msg "hello world" -n tron -p "Abc12345!"
node -e "const fs = require('node:fs'); const path = require('node:path'); const dir = process.env.AGENT_WALLET_DIR; const expected = ['master.json', 'wallets_config.json', 'secret_wallet_1.json']; const missing = expected.filter((name) => !fs.existsSync(path.join(dir, name))); if (missing.length) { throw new Error('Missing files in ' + dir + ': ' + missing.join(', ')) } console.log(fs.readdirSync(dir).sort())"