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
30 changes: 15 additions & 15 deletions e2e/clients/axios/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# E2E Test Client: TypeScript Axios

This client demonstrates and tests the `@x402/axios` package with EVM, SVM, and Stellar payment support.
This client demonstrates and tests the `@bankofai/x402-axios` package with EVM, SVM, and Stellar payment support.

## What It Tests

Expand All @@ -24,13 +24,13 @@ This client demonstrates and tests the `@x402/axios` package with EVM, SVM, and

```typescript
import axios from "axios";
import { wrapAxiosWithPayment } from "@x402/axios";
import { x402Client } from "@x402/core/client";
import { ExactEvmClient } from "@x402/evm";
import { ExactEvmClientV1 } from "@x402/evm/v1";
import { ExactSvmClient } from "@x402/svm";
import { ExactSvmClientV1 } from "@x402/svm/v1";
import { ExactStellarClient } from "@x402/stellar";
import { wrapAxiosWithPayment } from "@bankofai/x402-axios";
import { x402Client } from "@bankofai/x402-core/client";
import { ExactEvmClient } from "@bankofai/x402-evm";
import { ExactEvmClientV1 } from "@bankofai/x402-evm/v1";
import { ExactSvmClient } from "@bankofai/x402-svm";
import { ExactSvmClientV1 } from "@bankofai/x402-svm/v1";
import { ExactStellarClient } from "@bankofai/x402-stellar";

// Build x402 client with direct registration
const client = new x402Client()
Expand Down Expand Up @@ -117,12 +117,12 @@ pnpm start

## Package Dependencies

- `@x402/axios` - Axios wrapper with payment handling
- `@x402/core` - Core x402 client and types
- `@x402/evm` - EVM payment mechanisms (V2)
- `@x402/evm/v1` - EVM payment mechanisms (V1)
- `@x402/svm` - SVM payment mechanisms (V2)
- `@x402/svm/v1` - SVM payment mechanisms (V1)
- `@x402/stellar` - Stellar payment mechanisms (V2)
- `@bankofai/x402-axios` - Axios wrapper with payment handling
- `@bankofai/x402-core` - Core x402 client and types
- `@bankofai/x402-evm` - EVM payment mechanisms (V2)
- `@bankofai/x402-evm/v1` - EVM payment mechanisms (V1)
- `@bankofai/x402-svm` - SVM payment mechanisms (V2)
- `@bankofai/x402-svm/v1` - SVM payment mechanisms (V1)
- `@bankofai/x402-stellar` - Stellar payment mechanisms (V2)
- `viem` - Ethereum library for account creation
- `@solana/kit` - Solana keypair utilities
30 changes: 15 additions & 15 deletions e2e/clients/fetch/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# E2E Test Client: TypeScript Fetch

This client demonstrates and tests the `@x402/fetch` package with EVM, SVM, and Stellar payment support.
This client demonstrates and tests the `@bankofai/x402-fetch` package with EVM, SVM, and Stellar payment support.

## What It Tests

Expand All @@ -23,13 +23,13 @@ This client demonstrates and tests the `@x402/fetch` package with EVM, SVM, and
### Usage Pattern

```typescript
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmClient } from "@x402/evm";
import { ExactEvmClientV1 } from "@x402/evm/v1";
import { ExactSvmClient } from "@x402/svm";
import { ExactSvmClientV1 } from "@x402/svm/v1";
import { ExactStellarClient } from "@x402/stellar";
import { wrapFetchWithPayment } from "@bankofai/x402-fetch";
import { x402Client } from "@bankofai/x402-core/client";
import { ExactEvmClient } from "@bankofai/x402-evm";
import { ExactEvmClientV1 } from "@bankofai/x402-evm/v1";
import { ExactSvmClient } from "@bankofai/x402-svm";
import { ExactSvmClientV1 } from "@bankofai/x402-svm/v1";
import { ExactStellarClient } from "@bankofai/x402-stellar";

// Build x402 client with direct registration
const client = new x402Client()
Expand Down Expand Up @@ -116,12 +116,12 @@ pnpm start

## Package Dependencies

- `@x402/fetch` - HTTP wrapper with payment handling
- `@x402/core` - Core x402 client and types
- `@x402/evm` - EVM payment mechanisms (V2)
- `@x402/evm/v1` - EVM payment mechanisms (V1)
- `@x402/svm` - SVM payment mechanisms (V2)
- `@x402/svm/v1` - SVM payment mechanisms (V1)
- `@x402/stellar` - Stellar payment mechanisms (V2)
- `@bankofai/x402-fetch` - HTTP wrapper with payment handling
- `@bankofai/x402-core` - Core x402 client and types
- `@bankofai/x402-evm` - EVM payment mechanisms (V2)
- `@bankofai/x402-evm/v1` - EVM payment mechanisms (V1)
- `@bankofai/x402-svm` - SVM payment mechanisms (V2)
- `@bankofai/x402-svm/v1` - SVM payment mechanisms (V1)
- `@bankofai/x402-stellar` - Stellar payment mechanisms (V2)
- `viem` - Ethereum library for account creation
- `@solana/kit` - Solana keypair utilities
30 changes: 15 additions & 15 deletions e2e/coinbase/facilitators/typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ const facilitator = new x402Facilitator()
### Facilitator Setup

```typescript
import { x402Facilitator } from "@x402/core/facilitator";
import { ExactEvmFacilitator } from "@x402/evm";
import { ExactEvmFacilitatorV1, NETWORKS as EVM_NETWORKS } from "@x402/evm/v1";
import { ExactSvmFacilitator } from "@x402/svm";
import { ExactSvmFacilitatorV1, NETWORKS as SVM_NETWORKS } from "@x402/svm/v1";
import { ExactStellarFacilitator } from "@x402/stellar";
import { x402Facilitator } from "@bankofai/x402-core/facilitator";
import { ExactEvmFacilitator } from "@bankofai/x402-evm";
import { ExactEvmFacilitatorV1, NETWORKS as EVM_NETWORKS } from "@bankofai/x402-evm/v1";
import { ExactSvmFacilitator } from "@bankofai/x402-svm";
import { ExactSvmFacilitatorV1, NETWORKS as SVM_NETWORKS } from "@bankofai/x402-svm/v1";
import { ExactStellarFacilitator } from "@bankofai/x402-stellar";

// Create facilitator with bazaar extension
const facilitator = new x402Facilitator()
Expand Down Expand Up @@ -105,7 +105,7 @@ EVM_NETWORKS.forEach(network => {

```typescript
import express from "express";
import { createFacilitatorRouter } from "@x402/server/facilitator";
import { createFacilitatorRouter } from "@bankofai/x402-server/facilitator";

const app = express();
app.use(express.json());
Expand All @@ -123,7 +123,7 @@ app.listen(port, () => {
1. **Extension Registration** - Bazaar discovery
2. **Comprehensive Network Support** - All EVM V1 networks, all SVM V1 networks
3. **Wildcard Schemes** - Efficient V2 registration with `eip155:*`, `solana:*`, and `stellar:*`
4. **HTTP Router Integration** - `@x402/server/facilitator` for Express
4. **HTTP Router Integration** - `@bankofai/x402-server/facilitator` for Express
5. **Real Signers** - Actual blockchain transaction submission
6. **Multi-Protocol** - V1 and V2 side-by-side

Expand Down Expand Up @@ -177,13 +177,13 @@ pnpm start

## Package Dependencies

- `@x402/core` - Core facilitator
- `@x402/server` - Facilitator HTTP router
- `@x402/evm` - EVM facilitator (V2)
- `@x402/evm/v1` - EVM facilitator (V1) + NETWORKS
- `@x402/svm` - SVM facilitator (V2)
- `@x402/svm/v1` - SVM facilitator (V1) + NETWORKS
- `@x402/stellar` - Stellar facilitator (V2, SEP-41)
- `@bankofai/x402-core` - Core facilitator
- `@bankofai/x402-server` - Facilitator HTTP router
- `@bankofai/x402-evm` - EVM facilitator (V2)
- `@bankofai/x402-evm/v1` - EVM facilitator (V1) + NETWORKS
- `@bankofai/x402-svm` - SVM facilitator (V2)
- `@bankofai/x402-svm/v1` - SVM facilitator (V1) + NETWORKS
- `@bankofai/x402-stellar` - Stellar facilitator (V2, SEP-41)
- `express` - HTTP server
- `viem` - Ethereum transactions
- `@solana/web3.js` - Solana transactions
18 changes: 9 additions & 9 deletions e2e/coinbase/servers/express/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ This server demonstrates and tests the x402 Express.js middleware with EVM, SVM,

```typescript
import express from "express";
import { x402Middleware } from "@x402/server/express";
import { ExactEvmServer } from "@x402/evm";
import { ExactSvmServer } from "@x402/svm";
import { ExactStellarServer } from "@x402/stellar";
import { x402Middleware } from "@bankofai/x402-server/express";
import { ExactEvmServer } from "@bankofai/x402-evm";
import { ExactSvmServer } from "@bankofai/x402-svm";
import { ExactStellarServer } from "@bankofai/x402-stellar";

const app = express();

Expand Down Expand Up @@ -170,11 +170,11 @@ PAYMENT-RESPONSE: <base64-encoded-settlement-response>

## Package Dependencies

- `@x402/server` - Express middleware
- `@x402/evm` - EVM server
- `@x402/svm` - SVM server
- `@x402/stellar` - Stellar server
- `@x402/extensions/bazaar` - Discovery extension
- `@bankofai/x402-server` - Express middleware
- `@bankofai/x402-evm` - EVM server
- `@bankofai/x402-svm` - SVM server
- `@bankofai/x402-stellar` - Stellar server
- `@bankofai/x402-extensions/bazaar` - Discovery extension
- `express` - HTTP server framework

## Implementation Highlights
Expand Down
30 changes: 15 additions & 15 deletions e2e/facilitators/typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ const facilitator = new x402Facilitator()
### Facilitator Setup

```typescript
import { x402Facilitator } from "@x402/core/facilitator";
import { ExactEvmFacilitator } from "@x402/evm";
import { ExactEvmFacilitatorV1, NETWORKS as EVM_NETWORKS } from "@x402/evm/v1";
import { ExactSvmFacilitator } from "@x402/svm";
import { ExactSvmFacilitatorV1, NETWORKS as SVM_NETWORKS } from "@x402/svm/v1";
import { ExactStellarFacilitator } from "@x402/stellar";
import { x402Facilitator } from "@bankofai/x402-core/facilitator";
import { ExactEvmFacilitator } from "@bankofai/x402-evm";
import { ExactEvmFacilitatorV1, NETWORKS as EVM_NETWORKS } from "@bankofai/x402-evm/v1";
import { ExactSvmFacilitator } from "@bankofai/x402-svm";
import { ExactSvmFacilitatorV1, NETWORKS as SVM_NETWORKS } from "@bankofai/x402-svm/v1";
import { ExactStellarFacilitator } from "@bankofai/x402-stellar";

// Create facilitator with bazaar extension
const facilitator = new x402Facilitator()
Expand Down Expand Up @@ -105,7 +105,7 @@ EVM_NETWORKS.forEach(network => {

```typescript
import express from "express";
import { createFacilitatorRouter } from "@x402/server/facilitator";
import { createFacilitatorRouter } from "@bankofai/x402-server/facilitator";

const app = express();
app.use(express.json());
Expand All @@ -123,7 +123,7 @@ app.listen(port, () => {
1. **Extension Registration** - Bazaar discovery
2. **Comprehensive Network Support** - All EVM V1 networks, all SVM V1 networks
3. **Wildcard Schemes** - Efficient V2 registration with `eip155:*`, `solana:*`, and `stellar:*`
4. **HTTP Router Integration** - `@x402/server/facilitator` for Express
4. **HTTP Router Integration** - `@bankofai/x402-server/facilitator` for Express
5. **Real Signers** - Actual blockchain transaction submission
6. **Multi-Protocol** - V1 and V2 side-by-side

Expand Down Expand Up @@ -177,13 +177,13 @@ pnpm start

## Package Dependencies

- `@x402/core` - Core facilitator
- `@x402/server` - Facilitator HTTP router
- `@x402/evm` - EVM facilitator (V2)
- `@x402/evm/v1` - EVM facilitator (V1) + NETWORKS
- `@x402/svm` - SVM facilitator (V2)
- `@x402/svm/v1` - SVM facilitator (V1) + NETWORKS
- `@x402/stellar` - Stellar facilitator (V2, SEP-41)
- `@bankofai/x402-core` - Core facilitator
- `@bankofai/x402-server` - Facilitator HTTP router
- `@bankofai/x402-evm` - EVM facilitator (V2)
- `@bankofai/x402-evm/v1` - EVM facilitator (V1) + NETWORKS
- `@bankofai/x402-svm` - SVM facilitator (V2)
- `@bankofai/x402-svm/v1` - SVM facilitator (V1) + NETWORKS
- `@bankofai/x402-stellar` - Stellar facilitator (V2, SEP-41)
- `express` - HTTP server
- `viem` - Ethereum transactions
- `@solana/web3.js` - Solana transactions
18 changes: 9 additions & 9 deletions e2e/servers/express/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ This server demonstrates and tests the x402 Express.js middleware with EVM, SVM,

```typescript
import express from "express";
import { x402Middleware } from "@x402/server/express";
import { ExactEvmServer } from "@x402/evm";
import { ExactSvmServer } from "@x402/svm";
import { ExactStellarServer } from "@x402/stellar";
import { x402Middleware } from "@bankofai/x402-server/express";
import { ExactEvmServer } from "@bankofai/x402-evm";
import { ExactSvmServer } from "@bankofai/x402-svm";
import { ExactStellarServer } from "@bankofai/x402-stellar";

const app = express();

Expand Down Expand Up @@ -170,11 +170,11 @@ PAYMENT-RESPONSE: <base64-encoded-settlement-response>

## Package Dependencies

- `@x402/server` - Express middleware
- `@x402/evm` - EVM server
- `@x402/svm` - SVM server
- `@x402/stellar` - Stellar server
- `@x402/extensions/bazaar` - Discovery extension
- `@bankofai/x402-server` - Express middleware
- `@bankofai/x402-evm` - EVM server
- `@bankofai/x402-svm` - SVM server
- `@bankofai/x402-stellar` - Stellar server
- `@bankofai/x402-extensions/bazaar` - Discovery extension
- `express` - HTTP server framework

## Implementation Highlights
Expand Down
18 changes: 9 additions & 9 deletions e2e/servers/hono/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ This server demonstrates and tests the x402 Hono middleware with EVM, SVM, and o

```typescript
import express from "express";
import { x402Middleware } from "@x402/server/express";
import { ExactEvmServer } from "@x402/evm";
import { ExactEvmServer } from "@x402/svm";
import { ExactStellarServer } from "@x402/stellar";
import { x402Middleware } from "@bankofai/x402-server/express";
import { ExactEvmServer } from "@bankofai/x402-evm";
import { ExactEvmServer } from "@bankofai/x402-svm";
import { ExactStellarServer } from "@bankofai/x402-stellar";

const app = express();

Expand Down Expand Up @@ -170,11 +170,11 @@ PAYMENT-RESPONSE: <base64-encoded-settlement-response>

## Package Dependencies

- `@x402/server` - Express middleware
- `@x402/evm` - EVM service
- `@x402/svm` - SVM service
- `@x402/stellar` - Stellar server (optional)
- `@x402/extensions/bazaar` - Discovery extension
- `@bankofai/x402-server` - Express middleware
- `@bankofai/x402-evm` - EVM service
- `@bankofai/x402-svm` - SVM service
- `@bankofai/x402-stellar` - Stellar server (optional)
- `@bankofai/x402-extensions/bazaar` - Discovery extension
- `hono` - HTTP server framework

## Implementation Highlights
Expand Down
6 changes: 3 additions & 3 deletions examples/python/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# x402 Python Examples
# bankofai.x402 Python Examples

Examples for the x402 Python SDK.
Examples for the bankofai.x402 Python SDK.

## Quick Start

```bash
cd clients/httpx
cp .env-local .env
# Edit .env with your EVM_PRIVATE_KEY and/or SVM_PRIVATE_KEY
# Edit .env with your TRON_PRIVATE_KEY, EVM_PRIVATE_KEY and/or SVM_PRIVATE_KEY
uv sync
uv run python main.py
```
Expand Down
6 changes: 3 additions & 3 deletions examples/python/clients/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ uv run python main.py
Both examples follow the same pattern:

```python
from x402 import x402Client
from x402.mechanisms.evm.exact.register import register_exact_evm_client
from x402.mechanisms.evm.signers import EthAccountSigner
from bankofai.x402 import x402Client
from bankofai.x402.mechanisms.evm.exact.register import register_exact_evm_client
from bankofai.x402.mechanisms.evm.signers import EthAccountSigner

# 1. Create account
account = Account.from_key(private_key)
Expand Down
4 changes: 2 additions & 2 deletions examples/python/clients/custom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ uv run python main.py
### 1. Client Setup

```python
from x402 import x402Client
from x402.mechanisms.evm.exact.register import register_exact_evm_client
from bankofai.x402 import x402Client
from bankofai.x402.mechanisms.evm.exact.register import register_exact_evm_client

client = x402Client()
register_exact_evm_client(client, EthAccountSigner(account))
Expand Down
14 changes: 7 additions & 7 deletions examples/python/clients/httpx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ The example demonstrates the complete x402 payment flow:
## Code Overview

```python
from x402 import x402Client
from x402.http import x402HTTPClient
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
from x402.mechanisms.svm import KeypairSigner
from x402.mechanisms.svm.exact.register import register_exact_svm_client
from bankofai.x402 import x402Client
from bankofai.x402.http import x402HTTPClient
from bankofai.x402.http.clients import x402HttpxClient
from bankofai.x402.mechanisms.evm import EthAccountSigner
from bankofai.x402.mechanisms.evm.exact.register import register_exact_evm_client
from bankofai.x402.mechanisms.svm import KeypairSigner
from bankofai.x402.mechanisms.svm.exact.register import register_exact_svm_client

# Setup
client = x402Client()
Expand Down
6 changes: 3 additions & 3 deletions examples/python/clients/payment-identifier/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Example client demonstrating how to use the `payment-identifier` extension to en
4. Retry requests with the same payment ID return cached responses without re-processing payment

```python
from x402 import x402Client
from x402.extensions.payment_identifier import (
from bankofai.x402 import x402Client
from bankofai.x402.extensions.payment_identifier import (
append_payment_identifier_to_extensions,
generate_payment_id,
)
from x402.http.clients import x402HttpxClient
from bankofai.x402.http.clients import x402HttpxClient

client = x402Client()
# ... register schemes ...
Expand Down
Loading
Loading