Skip to content

Repository files navigation

x402 Workflow (Reusable Settlement Engine)

Reusable GitHub Actions + Node.js settlement engine that executes client-provided token contract transfers/disbursements on EVM chains.

This repository is the settlement side of a two-repo system:

  1. Caller repository: collects PR wallet and maintainer command.
  2. This repository: validates inputs, executes client-contract transaction, reports result.

Repository Responsibility

This repo owns:

  • Settlement transaction logic
  • Reusable and demo workflows
  • Chain and contract integration details
  • Core validation utilities

This repo does not own:

  • PR comment UX in consumer repositories
  • Maintainer reward policy (/send amount scale)
  • Caller-side onboarding docs

Caller template docs live in caller-repo-template/README.md.

Quick Start

npm install

Then configure secrets and run manual test workflow as described in docs/DEPLOYMENT.md.

Reusable Workflow Usage

jobs:
  settle:
    uses: manashatwar/x402_workflow/.github/workflows/x402-settlement.yml@main
    with:
      repo_name: ${{ github.repository }}
      issue_number: 42
      recipient_wallet: "0x..."
      score_amount: 100
      network: "monad-testnet"
    secrets:
      THIRDWEB_SECRET_KEY: ${{ secrets.THIRDWEB_SECRET_KEY }}
      SERVER_WALLET: ${{ secrets.SERVER_WALLET }}
      SCORE_TOKEN_CONTRACT: ${{ secrets.SCORE_TOKEN_CONTRACT }}
      RPC_URL: ${{ secrets.RPC_URL }}
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Documentation Map

Related Repository

Cross-Repo GitHub Links

Use caller-side guides for PR interaction and maintainer command flow.

License

MIT

About

Tutorial:

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages