@bountyagents/bountyagents-task 2026.2.278 → 2026.2.279

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/dist/index.js CHANGED
@@ -55096,7 +55096,6 @@ var createTaskPayloadSchema = exports_external.object({
55096
55096
  });
55097
55097
  var fundTaskPayloadSchema = exports_external.object({
55098
55098
  taskId: exports_external.string().uuid(),
55099
- price: priceStringSchema,
55100
55099
  token: tokenSchema
55101
55100
  });
55102
55101
  var submitResponsePayloadSchema = exports_external.object({
@@ -55175,7 +55174,6 @@ var taskSignaturePayload = (input) => canonicalStringify({
55175
55174
  var taskFundSignaturePayload = (input) => canonicalStringify({
55176
55175
  kind: "task:fund",
55177
55176
  taskId: input.taskId,
55178
- price: input.price,
55179
55177
  token: input.token
55180
55178
  });
55181
55179
  var decisionSignaturePayload = (input) => canonicalStringify({
@@ -55492,7 +55490,6 @@ async function fundBountyTask(params) {
55492
55490
  });
55493
55491
  const task = await plugin.executeTool("bountyagents.publisher.task.fund", {
55494
55492
  taskId: params.taskId,
55495
- price: params.price,
55496
55493
  token: params.token
55497
55494
  });
55498
55495
  return task;
@@ -55576,9 +55573,10 @@ function registerPublisherTools(api3) {
55576
55573
  });
55577
55574
  api3.registerTool({
55578
55575
  name: "deposit_token",
55579
- description: "Deposit test tokens into the AgentEscrow contract for a specific task.",
55576
+ description: "Deposit tokens into the AgentEscrow contract for a specific task. The token must be in the format 'network:address'.",
55580
55577
  parameters: Type.Object({
55581
55578
  taskId: Type.String(),
55579
+ token: Type.String(),
55582
55580
  amount: Type.Optional(Type.String())
55583
55581
  }),
55584
55582
  async execute(_id, params) {
@@ -55594,10 +55592,9 @@ function registerPublisherTools(api3) {
55594
55592
  });
55595
55593
  api3.registerTool({
55596
55594
  name: "fund_bounty_task",
55597
- description: "Fund a draft bounty task, attaching price and token metadata to it. The token must be in the format 'network:address'.",
55595
+ description: "Fund a draft bounty task, attaching token metadata to it. The token must be in the format 'network:address'.",
55598
55596
  parameters: Type.Object({
55599
55597
  taskId: Type.String(),
55600
- price: Type.String(),
55601
55598
  token: Type.String()
55602
55599
  }),
55603
55600
  async execute(_id, params) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bountyagents/bountyagents-task",
3
- "version": "2026.2.278",
3
+ "version": "2026.2.279",
4
4
  "description": "BountyAgents Task Plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/publisher.ts CHANGED
@@ -85,7 +85,6 @@ export async function createBountyTask(params: {
85
85
 
86
86
  export async function fundBountyTask(params: {
87
87
  taskId: string;
88
- price: string;
89
88
  token: string;
90
89
  }) {
91
90
  const signer = new PrivateKeySigner(PRIVATE_KEY);
@@ -96,7 +95,6 @@ export async function fundBountyTask(params: {
96
95
 
97
96
  const task = (await plugin.executeTool("bountyagents.publisher.task.fund", {
98
97
  taskId: params.taskId,
99
- price: params.price,
100
98
  token: params.token,
101
99
  })) as any;
102
100
  return task;
@@ -201,9 +199,10 @@ export function registerPublisherTools(api: any) {
201
199
  api.registerTool({
202
200
  name: "deposit_token",
203
201
  description:
204
- "Deposit test tokens into the AgentEscrow contract for a specific task.",
202
+ "Deposit tokens into the AgentEscrow contract for a specific task. The token must be in the format 'network:address'.",
205
203
  parameters: Type.Object({
206
204
  taskId: Type.String(),
205
+ token: Type.String(),
207
206
  amount: Type.Optional(Type.String()),
208
207
  }),
209
208
  async execute(_id: string, params: any) {
@@ -221,10 +220,9 @@ export function registerPublisherTools(api: any) {
221
220
  api.registerTool({
222
221
  name: "fund_bounty_task",
223
222
  description:
224
- "Fund a draft bounty task, attaching price and token metadata to it. The token must be in the format 'network:address'.",
223
+ "Fund a draft bounty task, attaching token metadata to it. The token must be in the format 'network:address'.",
225
224
  parameters: Type.Object({
226
225
  taskId: Type.String(),
227
- price: Type.String(),
228
226
  token: Type.String(),
229
227
  }),
230
228
  async execute(_id: string, params: any) {
package/src/signing.ts CHANGED
@@ -51,7 +51,6 @@ export const taskFundSignaturePayload = (input: FundTaskPayload): string =>
51
51
  canonicalStringify({
52
52
  kind: 'task:fund',
53
53
  taskId: input.taskId,
54
- price: input.price,
55
54
  token: input.token
56
55
  });
57
56
 
package/src/types.ts CHANGED
@@ -25,7 +25,6 @@ export const createTaskPayloadSchema = z.object({
25
25
 
26
26
  export const fundTaskPayloadSchema = z.object({
27
27
  taskId: z.string().uuid(),
28
- price: priceStringSchema,
29
28
  token: tokenSchema
30
29
  });
31
30
 
package/test-plugin.ts CHANGED
@@ -17,7 +17,7 @@ async function testCreateAndDeposit() {
17
17
 
18
18
  const depositResult = await depositToken({
19
19
  taskId: createdTaskId,
20
- amount: "100"
20
+ amount: "100"
21
21
  });
22
22
  console.log("Deposit successful!");
23
23
  console.log(JSON.stringify(depositResult, null, 2));
@@ -25,7 +25,6 @@ async function testCreateAndDeposit() {
25
25
  console.log(`\n--- Testing fundBountyTask with taskId: ${createdTaskId} ---`);
26
26
  const fundResult = await fundBountyTask({
27
27
  taskId: createdTaskId,
28
- price: depositResult.rawLockedAmount,
29
28
  token: "bsc-testnet:0x56DA32693A4e6dDd0eDC932b295cb00372f37f8b"
30
29
  });
31
30
  console.log("Fund task successful!");