- 13 contract ABIs generated via forge inspect -> packages/contracts/abi/*.json
- apps/web: lib/wallet.ts (viem injected wallet), /connect page (connect + add Pharos network + PHRS balance), /agents page, /api/agents (registry events + demo fallback), /api/contracts (contract set + addresses)
- packages/contracts/deployments/{pharos-atlantic,localhost}.json
- web app now: 6 pages + 6 API routes
319 lines
6.0 KiB
JSON
319 lines
6.0 KiB
JSON
[
|
|
{
|
|
"type": "function",
|
|
"name": "cancel",
|
|
"inputs": [
|
|
{
|
|
"name": "streamId",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "createStream",
|
|
"inputs": [
|
|
{
|
|
"name": "recipient",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"name": "start",
|
|
"type": "uint64",
|
|
"internalType": "uint64"
|
|
},
|
|
{
|
|
"name": "stop",
|
|
"type": "uint64",
|
|
"internalType": "uint64"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "streamId",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "payable"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "createStreamErc20",
|
|
"inputs": [
|
|
{
|
|
"name": "recipient",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"name": "token",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"name": "amount",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "start",
|
|
"type": "uint64",
|
|
"internalType": "uint64"
|
|
},
|
|
{
|
|
"name": "stop",
|
|
"type": "uint64",
|
|
"internalType": "uint64"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "streamId",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "getStream",
|
|
"inputs": [
|
|
{
|
|
"name": "streamId",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "tuple",
|
|
"internalType": "struct Streaming.Stream",
|
|
"components": [
|
|
{
|
|
"name": "sender",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"name": "recipient",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"name": "token",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"name": "deposit",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "withdrawn",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "start",
|
|
"type": "uint64",
|
|
"internalType": "uint64"
|
|
},
|
|
{
|
|
"name": "stop",
|
|
"type": "uint64",
|
|
"internalType": "uint64"
|
|
},
|
|
{
|
|
"name": "cancelled",
|
|
"type": "bool",
|
|
"internalType": "bool"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "nextStreamId",
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "streamedAmount",
|
|
"inputs": [
|
|
{
|
|
"name": "streamId",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "withdraw",
|
|
"inputs": [
|
|
{
|
|
"name": "streamId",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "amount",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "withdrawable",
|
|
"inputs": [
|
|
{
|
|
"name": "streamId",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "event",
|
|
"name": "Cancelled",
|
|
"inputs": [
|
|
{
|
|
"name": "streamId",
|
|
"type": "uint256",
|
|
"indexed": true,
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "toRecipient",
|
|
"type": "uint256",
|
|
"indexed": false,
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "toSender",
|
|
"type": "uint256",
|
|
"indexed": false,
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"anonymous": false
|
|
},
|
|
{
|
|
"type": "event",
|
|
"name": "StreamCreated",
|
|
"inputs": [
|
|
{
|
|
"name": "streamId",
|
|
"type": "uint256",
|
|
"indexed": true,
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "sender",
|
|
"type": "address",
|
|
"indexed": true,
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"name": "recipient",
|
|
"type": "address",
|
|
"indexed": true,
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"name": "deposit",
|
|
"type": "uint256",
|
|
"indexed": false,
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"anonymous": false
|
|
},
|
|
{
|
|
"type": "event",
|
|
"name": "Withdrawn",
|
|
"inputs": [
|
|
{
|
|
"name": "streamId",
|
|
"type": "uint256",
|
|
"indexed": true,
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "amount",
|
|
"type": "uint256",
|
|
"indexed": false,
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"anonymous": false
|
|
},
|
|
{
|
|
"type": "error",
|
|
"name": "AlreadyCancelled",
|
|
"inputs": []
|
|
},
|
|
{
|
|
"type": "error",
|
|
"name": "BadParams",
|
|
"inputs": []
|
|
},
|
|
{
|
|
"type": "error",
|
|
"name": "BadValue",
|
|
"inputs": []
|
|
},
|
|
{
|
|
"type": "error",
|
|
"name": "NotAuthorized",
|
|
"inputs": []
|
|
},
|
|
{
|
|
"type": "error",
|
|
"name": "TooMuch",
|
|
"inputs": []
|
|
},
|
|
{
|
|
"type": "error",
|
|
"name": "TransferFailed",
|
|
"inputs": []
|
|
}
|
|
]
|