2.2 KiB
2.2 KiB
Deployment
0. Prerequisites
- Node ≥ 20, pnpm ≥ 9, Foundry.
- One or two funded Pharos Atlantic testnet keys (PHRS for gas). Use the faucet linked from the Pharos docs.
1. Install
pnpm install
2. Prepare a deployer
cp .env.example .env # set PRIVATE_KEY (funded testnet key)
For local-only deploy secrets, .env.deploy.local is also supported and is ignored by git:
cat > .env.deploy.local <<'EOF'
PRIVATE_KEY=0xYOUR_FUNDED_TESTNET_PRIVATE_KEY
PHAROS_RPC_URL=https://atlantic.dplabs-internal.com/
EOF
3. Deploy all contracts and seed demo data
pnpm contracts:test
pnpm deploy:live
pnpm seed:live
pnpm deploy:live deploys all 13 contracts and writes:
deployments/pharos-atlantic.jsonpackages/contracts/deployments/pharos-atlantic.jsonapps/web/.env.local.env.deployed
pnpm seed:live registers a demo agent, lists a service, and posts to the social feed.
4. Build & test the skills
pnpm --filter @stoa/skills test
pnpm build
5. Enable the x402 payment skills
The payment packages are installed as optional dependencies. Point at a facilitator:
export X402_FACILITATOR_URL=https://<facilitator>
6. Run the MCP server
STOA_PRIVATE_KEY=0x... STOA_REGISTRY_ADDRESS=0x... STOA_ESCROW_ADDRESS=0x... \
pnpm --filter @stoa/skills mcp
Point any MCP client (Claude Desktop, etc.) at the command above to expose the Stoa skills.
7. Run the flagship agent
pnpm --filter @stoa/agent-mercator start
8. Submission gates
- Record a 2-minute demo showing deploy addresses, marketplace data, wallet connect, register,
list, hire, release, rate, tip, and the
/contractsadvanced flows. - Capture screenshots of the dApp pages and the Pharos explorer address pages.
- Run the official CertiK Skill Scanner and save the report for the DoraHacks submission.
- Paste the deployed addresses from
deployments/pharos-atlantic.jsoninto the submission.
Chain reference
| Network | Pharos Atlantic Testnet |
| Chain id | 688689 |
| RPC | https://atlantic.dplabs-internal.com/ |
| Native token | PHRS |
| Test USDC | 0xE0BE08c77f415F577A1B3A9aD7a1Df1479564ec8 |