You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d1ab61a
Browse filesBrowse the repository at this point in the historyBrowse files
Renames the action provider, its directory, files, identifiers, README and changeset from AgentCoin to AgentKoin. The hosted service domain and wire-level identifiers keep their current names.
This directory contains the **AgentCoinActionProvider** implementation, which lets an agent find paid agent services, pay them through an escrow that releases funds only on a staked evaluator's delivery verdict, and claim refunds.
3
+
> AgentKoin was formerly named AgentCoin. The hosted service domain and some wire-level identifiers (`agentcoinhq.com`, `/.well-known/agentcoin-claim`) keep the old name for now.
4
4
5
-
> **Testnet only.** The provider supports **Base Sepolia** (`eip155:84532`) and test USDC (`0x036CbD53842c5426634e7929541eC2318f3dCF7e`). The hosted router at https://agentcoinhq.com is an early testnet deployment; payments have no real value. Source for the AgentCoin client libraries: https://github.com/stos-technologies/agentcoin
5
+
This directory contains the **AgentKoinActionProvider** implementation, which lets an agent find paid agent services, pay them through an escrow that releases funds only on a staked evaluator's delivery verdict, and claim refunds.
6
+
7
+
> **Testnet only.** The provider supports **Base Sepolia** (`eip155:84532`) and test USDC (`0x036CbD53842c5426634e7929541eC2318f3dCF7e`). The hosted router at https://agentcoinhq.com is an early testnet deployment; payments have no real value. Source for the AgentKoin client libraries: https://github.com/stos-technologies/agentcoin
6
8
7
9
## Directory Structure
8
10
9
11
```
10
-
agentcoin/
11
-
├── agentcoinActionProvider.ts # Main provider
12
-
├── agentcoinActionProvider.test.ts # Unit tests
12
+
agentkoin/
13
+
├── agentkoinActionProvider.ts # Main provider
14
+
├── agentkoinActionProvider.test.ts # Unit tests
13
15
├── constants.ts # Router URL, contract addresses and ABIs
14
16
├── schemas.ts # Action schemas
15
17
├── index.ts # Main exports
@@ -18,7 +20,7 @@ agentcoin/
18
20
19
21
## Actions
20
22
21
-
-`find_service`: Search the AgentCoin index of paid agent services (A2A, MCP, x402, ERC-8004), or fetch one listing by id
23
+
-`find_service`: Search the AgentKoin index of paid agent services (A2A, MCP, x402, ERC-8004), or fetch one listing by id
22
24
-`route_task`: Rank candidate sellers for a task and budget (quote, request template, delivery score). No payment
23
25
-`place_order`: Place an escrowed order and fund it from the wallet
24
26
@@ -28,16 +30,16 @@ agentcoin/
28
30
29
31
-`get_order`: Read an order's status, escrow job state, deliverable hash, verdict and signed delivery record
30
32
-`claim_listing`: Seller side. Index a metadata URL and/or claim a listing with an EIP-712 signature or a `/.well-known/agentcoin-claim` file
baseUrl: "https://agentcoinhq.com", // optional, or set AGENTCOIN_URL
41
+
const provider =agentkoinActionProvider({
42
+
baseUrl: "https://agentcoinhq.com", // optional, or set AGENTKOIN_URL
41
43
maxPayment: 50000n, // optional, USDC base units per order
42
44
allowedServiceIds: ["svc_962928f654d2a8a1"], // optional allowlist for place_order
43
45
});
@@ -52,5 +54,5 @@ Base Sepolia only (`base-sepolia`).
52
54
## Notes
53
55
54
56
- Escrow flow: funds sit in JobEscrow until a staked evaluator rules. A "delivered" verdict pays the seller; "not delivered", or no verdict before the deadline, refunds the buyer. A challenged verdict that is overturned slashes the evaluator's stake.
55
-
- Delivery scores exclude orders placed by the AgentCoin operator itself.
57
+
- Delivery scores exclude orders placed by the AgentKoin operator itself.
56
58
- For direct (non-escrow) x402 payments, use the `x402` action provider.
0 commit comments