create-mantle-facilitator 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/README.md +7 -4
- package/template/.env.example +0 -25
package/package.json
CHANGED
package/template/README.md
CHANGED
|
@@ -16,12 +16,15 @@ This facilitator:
|
|
|
16
16
|
|
|
17
17
|
## Quickstart
|
|
18
18
|
|
|
19
|
+
This template is generated by `create-mantle-facilitator`. The CLI automatically creates a `.env` file with all configuration.
|
|
20
|
+
|
|
21
|
+
If you need to modify configuration:
|
|
22
|
+
1. Edit `.env` file
|
|
23
|
+
2. Set `FACILITATOR_PRIVATE_KEY` if not already set
|
|
24
|
+
3. Adjust `RPC_URL` if using a custom RPC endpoint
|
|
25
|
+
|
|
19
26
|
```bash
|
|
20
|
-
git clone <this-repo>
|
|
21
|
-
cd mantle-x402-facilitator-template
|
|
22
27
|
npm install
|
|
23
|
-
cp .env.example .env
|
|
24
|
-
# Fill RPC_URL and FACILITATOR_PRIVATE_KEY
|
|
25
28
|
npm start
|
|
26
29
|
```
|
|
27
30
|
|
package/template/.env.example
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# Server
|
|
2
|
-
PORT=8080
|
|
3
|
-
|
|
4
|
-
# Network
|
|
5
|
-
NETWORK_ID=mantle-mainnet
|
|
6
|
-
CHAIN_ID=5000
|
|
7
|
-
RPC_URL=https://rpc.mantle.xyz
|
|
8
|
-
|
|
9
|
-
# Asset (USDC on Mantle)
|
|
10
|
-
USDC_ADDRESS=0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9
|
|
11
|
-
USDC_DECIMALS=6
|
|
12
|
-
|
|
13
|
-
# Facilitator signer (pays gas for transferWithAuthorization)
|
|
14
|
-
FACILITATOR_PRIVATE_KEY=0xYOUR_PRIVATE_KEY
|
|
15
|
-
|
|
16
|
-
# Optional: enable verbose logs
|
|
17
|
-
LOG_LEVEL=debug
|
|
18
|
-
|
|
19
|
-
# =============================================================================
|
|
20
|
-
# Optional: Analytics & Telemetry
|
|
21
|
-
# =============================================================================
|
|
22
|
-
# Uncomment to send usage metrics to analytics backend
|
|
23
|
-
# This helps improve the x402 ecosystem and provides you with payment analytics
|
|
24
|
-
|
|
25
|
-
# TELEMETRY_PROJECT_KEY=your_project_key_here
|