Skip to content

Commit 055de75

Browse files
jolestarjolestar
andauthored
V1 cleanup (#192)
* do cleanup * clean sub modules * clean pnpm-lock --------- Co-authored-by: jolestar <host-user@example.com>
1 parent dc3c321 commit 055de75

File tree

15 files changed

+19594
-40210
lines changed

15 files changed

+19594
-40210
lines changed

.gitmodules

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,9 @@
77
[submodule "lib/forge-std"]
88
path = lib/forge-std
99
url = https://github.com/foundry-rs/forge-std
10-
[submodule "deps/x402"]
11-
path = deps/x402
12-
url = https://github.com/nuwa-protocol/x402.git
13-
branch = x402x
1410
[submodule "contracts/lib/forge-std"]
1511
path = contracts/lib/forge-std
1612
url = https://github.com/foundry-rs/forge-std.git
1713
[submodule "contracts/x402x-mint/lib/prb-math"]
1814
path = contracts/x402x-mint/lib/prb-math
1915
url = https://github.com/PaulRBerg/prb-math.git
20-
[submodule "deps/x402_upstream_main"]
21-
path = deps/x402_upstream_main
22-
url = https://github.com/coinbase/x402.git

deps/x402

Lines changed: 0 additions & 1 deletion
This file was deleted.

deps/x402_upstream_main

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/showcase/client/src/hooks/usePayment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ interface PaymentRequirements {
4848
interface PaymentResponse {
4949
accepts?: PaymentRequirements[];
5050
error?: string;
51-
x402Version?: number; // v2-only: must be 2
51+
x402Version: number; // v2-only: must be 2
5252
extensions?: Record<string, any>;
5353
}
5454

facilitator/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ The facilitator automatically detects the settlement mode based on the presence
225225

226226
**Mainnet Note**: Mainnet networks are automatically supported through the SDK configuration. The facilitator will:
227227

228-
- Auto-load SettlementRouter addresses from `@x402x/core`
228+
- Auto-load SettlementRouter addresses from `@x402x/extensions`
229229
- Auto-load RPC URLs from viem chain definitions (or use environment variables if provided)
230230
- Apply mainnet security policies (only SettlementRouter mode allowed)
231231

@@ -1070,7 +1070,7 @@ The facilitator includes production-grade security features:
10701070
BASE_SEPOLIA_SETTLEMENT_ROUTER_ADDRESS=0x32431D4511e061F1133520461B07eC42afF157D6
10711071
X_LAYER_TESTNET_SETTLEMENT_ROUTER_ADDRESS=0x8FbB2f214b3b3907BB733e77fa2cAaC16ddCe82e
10721072
1073-
# Fallback: Uses addresses from @x402x/core if not specified
1073+
# Fallback: Uses addresses from @x402x/extensions if not specified
10741074
```
10751075

10761076
**How it works:**

0 commit comments

Comments
 (0)