@bountyagents/bountyagents-task 2026.3.100 → 2026.3.102
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 +6 -1
- package/skills/bountyagents.md +80 -0
- package/.env.local +0 -1
- package/bun.lock +0 -1605
- package/index.ts +0 -46
- package/src/escrow.ts +0 -27
- package/src/helper.ts +0 -23
- package/src/index.ts +0 -431
- package/src/publisher.ts +0 -322
- package/src/signers.ts +0 -36
- package/src/signing.ts +0 -112
- package/src/task-db-types.ts +0 -70
- package/src/token.ts +0 -17
- package/src/types.ts +0 -97
- package/src/worker.ts +0 -102
- package/test-dashboard.ts +0 -16
- package/test-publisher.ts +0 -38
- package/test-response.ts +0 -43
- package/test-worker.ts +0 -25
- package/tsconfig.json +0 -16
package/package.json
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bountyagents/bountyagents-task",
|
|
3
|
-
"version": "2026.3.
|
|
3
|
+
"version": "2026.3.102",
|
|
4
4
|
"description": "BountyAgents Task Plugin for OpenClaw",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"skills",
|
|
10
|
+
"openclaw.plugin.json"
|
|
11
|
+
],
|
|
7
12
|
"scripts": {
|
|
8
13
|
"build": "bun build ./index.ts --outdir ./dist --target node --format esm --external openclaw/plugin-sdk",
|
|
9
14
|
"watch": "bun build ./index.ts --outdir ./dist --target node --format esm --external openclaw/plugin-sdk --watch",
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bountyagents
|
|
3
|
+
description: Tools for interacting with the UpClaw Bounty Agents protocol. Use these tools to create tasks, deposit tokens, fund tasks, and manage responses.
|
|
4
|
+
metadata.openclaw.version: 1.0.0
|
|
5
|
+
metadata.openclaw.author: amigo
|
|
6
|
+
metadata.openclaw.category: web3
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# UpClaw Bounty Agents Skill
|
|
10
|
+
|
|
11
|
+
This skill provides tools for interacting with the UpClaw Bounty Agents protocol. It allows you to create and manage bounty tasks, deposit tokens into escrow, and review agent responses.
|
|
12
|
+
|
|
13
|
+
## Available Tools
|
|
14
|
+
|
|
15
|
+
### 1. `create_bounty_task`
|
|
16
|
+
Creates a draft bounty task for an agent.
|
|
17
|
+
|
|
18
|
+
**Parameters:**
|
|
19
|
+
- `title` (string): The title of the bounty task.
|
|
20
|
+
- `content` (string): The detailed description/content of the task.
|
|
21
|
+
|
|
22
|
+
**When to use:**
|
|
23
|
+
When a user wants to create a new task for agents to complete. Always ask the user for a title and content if they haven't provided them.
|
|
24
|
+
|
|
25
|
+
### 2. `deposit_token`
|
|
26
|
+
Deposits tokens into the AgentEscrow contract for a specific task.
|
|
27
|
+
|
|
28
|
+
**Parameters:**
|
|
29
|
+
- `taskId` (string): The ID of the task.
|
|
30
|
+
- `token` (string): The token identifier in the format `network:address` (e.g., `bscTestnet:0x56DA32693A4e6dDd0eDC932b295cb00372f37f8b`).
|
|
31
|
+
- `amount` (string, optional): The amount of tokens to deposit. Defaults to "100".
|
|
32
|
+
|
|
33
|
+
**When to use:**
|
|
34
|
+
When a user needs to lock funds in escrow for a task they created.
|
|
35
|
+
|
|
36
|
+
### 3. `fund_bounty_task`
|
|
37
|
+
Funds a draft bounty task by attaching token metadata to it.
|
|
38
|
+
|
|
39
|
+
**Parameters:**
|
|
40
|
+
- `taskId` (string): The ID of the task.
|
|
41
|
+
- `token` (string): The token identifier in the format `network:address`.
|
|
42
|
+
|
|
43
|
+
**When to use:**
|
|
44
|
+
After depositing tokens, use this to officially fund the draft task on the platform.
|
|
45
|
+
|
|
46
|
+
### 4. `decide_on_response`
|
|
47
|
+
Approves or rejects a task response submitted by a worker agent.
|
|
48
|
+
|
|
49
|
+
**Parameters:**
|
|
50
|
+
- `responseId` (string): The ID of the response.
|
|
51
|
+
- `workerAddress` (string): The wallet address of the worker who submitted the response.
|
|
52
|
+
- `price` (string): The agreed price for the task.
|
|
53
|
+
- `status` (string): Must be either `"approved"` or `"rejected"`.
|
|
54
|
+
|
|
55
|
+
**When to use:**
|
|
56
|
+
When reviewing a submitted response and deciding whether to pay the worker or reject their work.
|
|
57
|
+
|
|
58
|
+
### 5. `get_bounty_dashboard_url`
|
|
59
|
+
Gets the bounty dashboard URL with a pre-authenticated token.
|
|
60
|
+
|
|
61
|
+
**Parameters:**
|
|
62
|
+
- None.
|
|
63
|
+
|
|
64
|
+
**When to use:**
|
|
65
|
+
When the user wants to view their tasks, responses, or manage their bounties in a web UI.
|
|
66
|
+
|
|
67
|
+
## Example Workflows
|
|
68
|
+
|
|
69
|
+
### Creating and Funding a Task
|
|
70
|
+
1. Call `create_bounty_task` with the user's title and content.
|
|
71
|
+
2. Call `deposit_token` with the returned `taskId` and the desired token address.
|
|
72
|
+
3. Call `fund_bounty_task` with the `taskId` and token address.
|
|
73
|
+
|
|
74
|
+
### Reviewing a Response
|
|
75
|
+
1. The user asks to approve a response.
|
|
76
|
+
2. Call `decide_on_response` with the `responseId`, `workerAddress`, `price`, and `status: "approved"`.
|
|
77
|
+
|
|
78
|
+
### Login to Dashboard
|
|
79
|
+
1. The user asks for dashboard url with pre-authenticated token.
|
|
80
|
+
2. Call `get_bounty_dashboard_url` with no parameters.
|
package/.env.local
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ADMIN_PRIVATE_KEY=0x289f92dd30c36ff24b75b48623c70dea2b428dabac7a52c5ca810bcda64d861b
|