@virtuals-protocol/acp-node 0.1.0-beta.15 → 0.1.0-beta.17
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.d.mts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -8386,10 +8386,14 @@ declare class AcpJob {
|
|
|
8386
8386
|
get evaluatorAgent(): Promise<AcpAgent | undefined>;
|
|
8387
8387
|
pay(amount: number, reason?: string): Promise<`0x${string}`>;
|
|
8388
8388
|
respond(accept: boolean, reason?: string): Promise<`0x${string}` | undefined>;
|
|
8389
|
-
deliver(deliverable:
|
|
8389
|
+
deliver(deliverable: IDeliverable): Promise<`0x${string}`>;
|
|
8390
8390
|
evaluate(accept: boolean, reason?: string): Promise<`0x${string}`>;
|
|
8391
8391
|
}
|
|
8392
8392
|
|
|
8393
|
+
interface IDeliverable {
|
|
8394
|
+
type: string;
|
|
8395
|
+
value: string | object;
|
|
8396
|
+
}
|
|
8393
8397
|
declare enum AcpAgentSort {
|
|
8394
8398
|
SUCCESSFUL_JOB_COUNT = "successfulJobCount",
|
|
8395
8399
|
SUCCESS_RATE = "successRate",
|
|
@@ -8477,7 +8481,7 @@ declare class AcpClient {
|
|
|
8477
8481
|
initiateJob(providerAddress: Address$1, serviceRequirement: Object | string, amount: number, evaluatorAddress?: Address$1, expiredAt?: Date): Promise<number>;
|
|
8478
8482
|
respondJob(jobId: number, memoId: number, accept: boolean, reason?: string): Promise<`0x${string}` | undefined>;
|
|
8479
8483
|
payJob(jobId: number, amount: number, memoId: number, reason?: string): Promise<`0x${string}`>;
|
|
8480
|
-
deliverJob(jobId: number, deliverable:
|
|
8484
|
+
deliverJob(jobId: number, deliverable: IDeliverable): Promise<`0x${string}`>;
|
|
8481
8485
|
getActiveJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
8482
8486
|
getCompletedJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
8483
8487
|
getCancelledJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
@@ -8486,4 +8490,4 @@ declare class AcpClient {
|
|
|
8486
8490
|
getAgent(walletAddress: Address$1): Promise<AcpAgent | undefined>;
|
|
8487
8491
|
}
|
|
8488
8492
|
|
|
8489
|
-
export { ACP_ABI, AcpAgentSort, AcpContractClient, type AcpContractConfig, AcpJob, AcpJobPhases, AcpMemo, MemoType, baseAcpConfig, baseSepoliaAcpConfig, AcpClient as default };
|
|
8493
|
+
export { ACP_ABI, AcpAgentSort, AcpContractClient, type AcpContractConfig, AcpJob, AcpJobPhases, AcpMemo, type IDeliverable, MemoType, baseAcpConfig, baseSepoliaAcpConfig, AcpClient as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -8386,10 +8386,14 @@ declare class AcpJob {
|
|
|
8386
8386
|
get evaluatorAgent(): Promise<AcpAgent | undefined>;
|
|
8387
8387
|
pay(amount: number, reason?: string): Promise<`0x${string}`>;
|
|
8388
8388
|
respond(accept: boolean, reason?: string): Promise<`0x${string}` | undefined>;
|
|
8389
|
-
deliver(deliverable:
|
|
8389
|
+
deliver(deliverable: IDeliverable): Promise<`0x${string}`>;
|
|
8390
8390
|
evaluate(accept: boolean, reason?: string): Promise<`0x${string}`>;
|
|
8391
8391
|
}
|
|
8392
8392
|
|
|
8393
|
+
interface IDeliverable {
|
|
8394
|
+
type: string;
|
|
8395
|
+
value: string | object;
|
|
8396
|
+
}
|
|
8393
8397
|
declare enum AcpAgentSort {
|
|
8394
8398
|
SUCCESSFUL_JOB_COUNT = "successfulJobCount",
|
|
8395
8399
|
SUCCESS_RATE = "successRate",
|
|
@@ -8477,7 +8481,7 @@ declare class AcpClient {
|
|
|
8477
8481
|
initiateJob(providerAddress: Address$1, serviceRequirement: Object | string, amount: number, evaluatorAddress?: Address$1, expiredAt?: Date): Promise<number>;
|
|
8478
8482
|
respondJob(jobId: number, memoId: number, accept: boolean, reason?: string): Promise<`0x${string}` | undefined>;
|
|
8479
8483
|
payJob(jobId: number, amount: number, memoId: number, reason?: string): Promise<`0x${string}`>;
|
|
8480
|
-
deliverJob(jobId: number, deliverable:
|
|
8484
|
+
deliverJob(jobId: number, deliverable: IDeliverable): Promise<`0x${string}`>;
|
|
8481
8485
|
getActiveJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
8482
8486
|
getCompletedJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
8483
8487
|
getCancelledJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
|
|
@@ -8486,4 +8490,4 @@ declare class AcpClient {
|
|
|
8486
8490
|
getAgent(walletAddress: Address$1): Promise<AcpAgent | undefined>;
|
|
8487
8491
|
}
|
|
8488
8492
|
|
|
8489
|
-
export { ACP_ABI, AcpAgentSort, AcpContractClient, type AcpContractConfig, AcpJob, AcpJobPhases, AcpMemo, MemoType, baseAcpConfig, baseSepoliaAcpConfig, AcpClient as default };
|
|
8493
|
+
export { ACP_ABI, AcpAgentSort, AcpContractClient, type AcpContractConfig, AcpJob, AcpJobPhases, AcpMemo, type IDeliverable, MemoType, baseAcpConfig, baseSepoliaAcpConfig, AcpClient as default };
|
package/dist/index.js
CHANGED
|
@@ -69,7 +69,7 @@ var require_package = __commonJS({
|
|
|
69
69
|
"package.json"(exports2, module2) {
|
|
70
70
|
module2.exports = {
|
|
71
71
|
name: "@virtuals-protocol/acp-node",
|
|
72
|
-
version: "0.1.0-beta.
|
|
72
|
+
version: "0.1.0-beta.17",
|
|
73
73
|
main: "./dist/index.js",
|
|
74
74
|
module: "./dist/index.mjs",
|
|
75
75
|
types: "./dist/index.d.ts",
|
|
@@ -1402,7 +1402,7 @@ var AcpClient = class {
|
|
|
1402
1402
|
return __async(this, null, function* () {
|
|
1403
1403
|
return yield this.acpContractClient.createMemo(
|
|
1404
1404
|
jobId,
|
|
1405
|
-
deliverable,
|
|
1405
|
+
JSON.stringify(deliverable),
|
|
1406
1406
|
4 /* OBJECT_URL */,
|
|
1407
1407
|
true,
|
|
1408
1408
|
4 /* COMPLETED */
|
package/dist/index.mjs
CHANGED
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
"package.json"(exports, module) {
|
|
45
45
|
module.exports = {
|
|
46
46
|
name: "@virtuals-protocol/acp-node",
|
|
47
|
-
version: "0.1.0-beta.
|
|
47
|
+
version: "0.1.0-beta.17",
|
|
48
48
|
main: "./dist/index.js",
|
|
49
49
|
module: "./dist/index.mjs",
|
|
50
50
|
types: "./dist/index.d.ts",
|
|
@@ -1369,7 +1369,7 @@ var AcpClient = class {
|
|
|
1369
1369
|
return __async(this, null, function* () {
|
|
1370
1370
|
return yield this.acpContractClient.createMemo(
|
|
1371
1371
|
jobId,
|
|
1372
|
-
deliverable,
|
|
1372
|
+
JSON.stringify(deliverable),
|
|
1373
1373
|
4 /* OBJECT_URL */,
|
|
1374
1374
|
true,
|
|
1375
1375
|
4 /* COMPLETED */
|