@virtuals-protocol/acp-node 0.2.0-beta.1 → 0.2.0-beta.3
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 +12 -5
- package/dist/index.d.ts +12 -5
- package/dist/index.js +51 -12
- package/dist/index.mjs +50 -12
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -8400,9 +8400,11 @@ declare class AcpMemo {
|
|
|
8400
8400
|
type: MemoType;
|
|
8401
8401
|
content: string;
|
|
8402
8402
|
nextPhase: AcpJobPhases;
|
|
8403
|
-
|
|
8403
|
+
status: AcpMemoStatus;
|
|
8404
|
+
signedReason?: string | undefined;
|
|
8405
|
+
expiry?: Date | undefined;
|
|
8404
8406
|
structuredContent: GenericPayload | undefined;
|
|
8405
|
-
constructor(acpClient: AcpClient, id: number, type: MemoType, content: string, nextPhase: AcpJobPhases,
|
|
8407
|
+
constructor(acpClient: AcpClient, id: number, type: MemoType, content: string, nextPhase: AcpJobPhases, status: AcpMemoStatus, signedReason?: string | undefined, expiry?: Date | undefined);
|
|
8406
8408
|
get payloadType(): PayloadType | undefined;
|
|
8407
8409
|
getStructuredContent<T>(): GenericPayload<T> | undefined;
|
|
8408
8410
|
create(jobId: number, isSecured?: boolean): Promise<`0x${string}`>;
|
|
@@ -8413,6 +8415,11 @@ interface IDeliverable {
|
|
|
8413
8415
|
type: string;
|
|
8414
8416
|
value: string | object;
|
|
8415
8417
|
}
|
|
8418
|
+
declare enum AcpMemoStatus {
|
|
8419
|
+
PENDING = "PENDING",
|
|
8420
|
+
APPROVED = "APPROVED",
|
|
8421
|
+
REJECTED = "REJECTED"
|
|
8422
|
+
}
|
|
8416
8423
|
declare enum AcpAgentSort {
|
|
8417
8424
|
SUCCESSFUL_JOB_COUNT = "successfulJobCount",
|
|
8418
8425
|
SUCCESS_RATE = "successRate",
|
|
@@ -8559,11 +8566,11 @@ declare class AcpJob {
|
|
|
8559
8566
|
declare class AcpJobOffering {
|
|
8560
8567
|
private readonly acpClient;
|
|
8561
8568
|
providerAddress: Address$1;
|
|
8562
|
-
|
|
8569
|
+
name: string;
|
|
8563
8570
|
price: number;
|
|
8564
8571
|
requirementSchema?: Object | undefined;
|
|
8565
8572
|
private ajv;
|
|
8566
|
-
constructor(acpClient: AcpClient, providerAddress: Address$1,
|
|
8573
|
+
constructor(acpClient: AcpClient, providerAddress: Address$1, name: string, price: number, requirementSchema?: Object | undefined);
|
|
8567
8574
|
initiateJob(serviceRequirement: Object | string, evaluatorAddress?: Address$1, expiredAt?: Date): Promise<number>;
|
|
8568
8575
|
}
|
|
8569
8576
|
|
|
@@ -8614,4 +8621,4 @@ declare class AcpClient {
|
|
|
8614
8621
|
getAgent(walletAddress: Address$1): Promise<AcpAgent | undefined>;
|
|
8615
8622
|
}
|
|
8616
8623
|
|
|
8617
|
-
export { ACP_ABI, AcpAgentSort, AcpContractClient, type AcpContractConfig, AcpGraduationStatus, AcpJob, AcpJobPhases, AcpMemo, AcpOnlineStatus, type FundResponsePayload, type IDeliverable, MemoType, PayloadType, baseAcpConfig, baseSepoliaAcpConfig, AcpClient as default };
|
|
8624
|
+
export { ACP_ABI, AcpAgentSort, AcpContractClient, type AcpContractConfig, AcpGraduationStatus, AcpJob, AcpJobPhases, AcpMemo, AcpMemoStatus, AcpOnlineStatus, type ClosePositionPayload, type FundResponsePayload, type IDeliverable, MemoType, type OpenPositionPayload, PayloadType, type RequestClosePositionPayload, baseAcpConfig, baseSepoliaAcpConfig, AcpClient as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -8400,9 +8400,11 @@ declare class AcpMemo {
|
|
|
8400
8400
|
type: MemoType;
|
|
8401
8401
|
content: string;
|
|
8402
8402
|
nextPhase: AcpJobPhases;
|
|
8403
|
-
|
|
8403
|
+
status: AcpMemoStatus;
|
|
8404
|
+
signedReason?: string | undefined;
|
|
8405
|
+
expiry?: Date | undefined;
|
|
8404
8406
|
structuredContent: GenericPayload | undefined;
|
|
8405
|
-
constructor(acpClient: AcpClient, id: number, type: MemoType, content: string, nextPhase: AcpJobPhases,
|
|
8407
|
+
constructor(acpClient: AcpClient, id: number, type: MemoType, content: string, nextPhase: AcpJobPhases, status: AcpMemoStatus, signedReason?: string | undefined, expiry?: Date | undefined);
|
|
8406
8408
|
get payloadType(): PayloadType | undefined;
|
|
8407
8409
|
getStructuredContent<T>(): GenericPayload<T> | undefined;
|
|
8408
8410
|
create(jobId: number, isSecured?: boolean): Promise<`0x${string}`>;
|
|
@@ -8413,6 +8415,11 @@ interface IDeliverable {
|
|
|
8413
8415
|
type: string;
|
|
8414
8416
|
value: string | object;
|
|
8415
8417
|
}
|
|
8418
|
+
declare enum AcpMemoStatus {
|
|
8419
|
+
PENDING = "PENDING",
|
|
8420
|
+
APPROVED = "APPROVED",
|
|
8421
|
+
REJECTED = "REJECTED"
|
|
8422
|
+
}
|
|
8416
8423
|
declare enum AcpAgentSort {
|
|
8417
8424
|
SUCCESSFUL_JOB_COUNT = "successfulJobCount",
|
|
8418
8425
|
SUCCESS_RATE = "successRate",
|
|
@@ -8559,11 +8566,11 @@ declare class AcpJob {
|
|
|
8559
8566
|
declare class AcpJobOffering {
|
|
8560
8567
|
private readonly acpClient;
|
|
8561
8568
|
providerAddress: Address$1;
|
|
8562
|
-
|
|
8569
|
+
name: string;
|
|
8563
8570
|
price: number;
|
|
8564
8571
|
requirementSchema?: Object | undefined;
|
|
8565
8572
|
private ajv;
|
|
8566
|
-
constructor(acpClient: AcpClient, providerAddress: Address$1,
|
|
8573
|
+
constructor(acpClient: AcpClient, providerAddress: Address$1, name: string, price: number, requirementSchema?: Object | undefined);
|
|
8567
8574
|
initiateJob(serviceRequirement: Object | string, evaluatorAddress?: Address$1, expiredAt?: Date): Promise<number>;
|
|
8568
8575
|
}
|
|
8569
8576
|
|
|
@@ -8614,4 +8621,4 @@ declare class AcpClient {
|
|
|
8614
8621
|
getAgent(walletAddress: Address$1): Promise<AcpAgent | undefined>;
|
|
8615
8622
|
}
|
|
8616
8623
|
|
|
8617
|
-
export { ACP_ABI, AcpAgentSort, AcpContractClient, type AcpContractConfig, AcpGraduationStatus, AcpJob, AcpJobPhases, AcpMemo, AcpOnlineStatus, type FundResponsePayload, type IDeliverable, MemoType, PayloadType, baseAcpConfig, baseSepoliaAcpConfig, AcpClient as default };
|
|
8624
|
+
export { ACP_ABI, AcpAgentSort, AcpContractClient, type AcpContractConfig, AcpGraduationStatus, AcpJob, AcpJobPhases, AcpMemo, AcpMemoStatus, AcpOnlineStatus, type ClosePositionPayload, type FundResponsePayload, type IDeliverable, MemoType, type OpenPositionPayload, PayloadType, type RequestClosePositionPayload, baseAcpConfig, baseSepoliaAcpConfig, AcpClient as default };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
8
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
9
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -19,6 +21,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
21
|
}
|
|
20
22
|
return a;
|
|
21
23
|
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
25
|
var __commonJS = (cb, mod) => function __require() {
|
|
23
26
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
24
27
|
};
|
|
@@ -69,7 +72,7 @@ var require_package = __commonJS({
|
|
|
69
72
|
"package.json"(exports2, module2) {
|
|
70
73
|
module2.exports = {
|
|
71
74
|
name: "@virtuals-protocol/acp-node",
|
|
72
|
-
version: "0.2.0-beta.
|
|
75
|
+
version: "0.2.0-beta.3",
|
|
73
76
|
main: "./dist/index.js",
|
|
74
77
|
module: "./dist/index.mjs",
|
|
75
78
|
types: "./dist/index.d.ts",
|
|
@@ -109,6 +112,7 @@ __export(index_exports, {
|
|
|
109
112
|
AcpJob: () => acpJob_default,
|
|
110
113
|
AcpJobPhases: () => AcpJobPhases,
|
|
111
114
|
AcpMemo: () => acpMemo_default,
|
|
115
|
+
AcpMemoStatus: () => AcpMemoStatus,
|
|
112
116
|
AcpOnlineStatus: () => AcpOnlineStatus,
|
|
113
117
|
MemoType: () => MemoType,
|
|
114
118
|
PayloadType: () => PayloadType,
|
|
@@ -1441,6 +1445,12 @@ var AcpContractClient = class _AcpContractClient {
|
|
|
1441
1445
|
var acpContractClient_default = AcpContractClient;
|
|
1442
1446
|
|
|
1443
1447
|
// src/interfaces.ts
|
|
1448
|
+
var AcpMemoStatus = /* @__PURE__ */ ((AcpMemoStatus2) => {
|
|
1449
|
+
AcpMemoStatus2["PENDING"] = "PENDING";
|
|
1450
|
+
AcpMemoStatus2["APPROVED"] = "APPROVED";
|
|
1451
|
+
AcpMemoStatus2["REJECTED"] = "REJECTED";
|
|
1452
|
+
return AcpMemoStatus2;
|
|
1453
|
+
})(AcpMemoStatus || {});
|
|
1444
1454
|
var AcpAgentSort = /* @__PURE__ */ ((AcpAgentSort2) => {
|
|
1445
1455
|
AcpAgentSort2["SUCCESSFUL_JOB_COUNT"] = "successfulJobCount";
|
|
1446
1456
|
AcpAgentSort2["SUCCESS_RATE"] = "successRate";
|
|
@@ -1826,12 +1836,14 @@ var acpJob_default = AcpJob;
|
|
|
1826
1836
|
|
|
1827
1837
|
// src/acpMemo.ts
|
|
1828
1838
|
var AcpMemo = class {
|
|
1829
|
-
constructor(acpClient, id, type, content, nextPhase, expiry) {
|
|
1839
|
+
constructor(acpClient, id, type, content, nextPhase, status, signedReason, expiry) {
|
|
1830
1840
|
this.acpClient = acpClient;
|
|
1831
1841
|
this.id = id;
|
|
1832
1842
|
this.type = type;
|
|
1833
1843
|
this.content = content;
|
|
1834
1844
|
this.nextPhase = nextPhase;
|
|
1845
|
+
this.status = status;
|
|
1846
|
+
this.signedReason = signedReason;
|
|
1835
1847
|
this.expiry = expiry;
|
|
1836
1848
|
this.structuredContent = tryParseJson(this.content) || void 0;
|
|
1837
1849
|
}
|
|
@@ -1868,10 +1880,10 @@ var acpMemo_default = AcpMemo;
|
|
|
1868
1880
|
// src/acpJobOffering.ts
|
|
1869
1881
|
var import_ajv = __toESM(require("ajv"));
|
|
1870
1882
|
var AcpJobOffering = class {
|
|
1871
|
-
constructor(acpClient, providerAddress,
|
|
1883
|
+
constructor(acpClient, providerAddress, name, price, requirementSchema) {
|
|
1872
1884
|
this.acpClient = acpClient;
|
|
1873
1885
|
this.providerAddress = providerAddress;
|
|
1874
|
-
this.
|
|
1886
|
+
this.name = name;
|
|
1875
1887
|
this.price = price;
|
|
1876
1888
|
this.requirementSchema = requirementSchema;
|
|
1877
1889
|
this.ajv = new import_ajv.default({ allErrors: true });
|
|
@@ -1885,9 +1897,21 @@ var AcpJobOffering = class {
|
|
|
1885
1897
|
throw new Error(this.ajv.errorsText(validator.errors));
|
|
1886
1898
|
}
|
|
1887
1899
|
}
|
|
1900
|
+
let finalServiceRequirement = {
|
|
1901
|
+
serviceName: this.name
|
|
1902
|
+
};
|
|
1903
|
+
if (typeof serviceRequirement === "string") {
|
|
1904
|
+
finalServiceRequirement = __spreadProps(__spreadValues({}, finalServiceRequirement), {
|
|
1905
|
+
message: serviceRequirement
|
|
1906
|
+
});
|
|
1907
|
+
} else {
|
|
1908
|
+
finalServiceRequirement = __spreadProps(__spreadValues({}, finalServiceRequirement), {
|
|
1909
|
+
serviceRequirement
|
|
1910
|
+
});
|
|
1911
|
+
}
|
|
1888
1912
|
return yield this.acpClient.initiateJob(
|
|
1889
1913
|
this.providerAddress,
|
|
1890
|
-
|
|
1914
|
+
finalServiceRequirement,
|
|
1891
1915
|
this.price,
|
|
1892
1916
|
evaluatorAddress,
|
|
1893
1917
|
expiredAt
|
|
@@ -1949,7 +1973,9 @@ var AcpClient = class {
|
|
|
1949
1973
|
memo.memoType,
|
|
1950
1974
|
memo.content,
|
|
1951
1975
|
memo.nextPhase,
|
|
1952
|
-
memo.
|
|
1976
|
+
memo.status,
|
|
1977
|
+
memo.signedReason,
|
|
1978
|
+
memo.expiry ? new Date(parseInt(memo.expiry)) : void 0
|
|
1953
1979
|
);
|
|
1954
1980
|
}),
|
|
1955
1981
|
data.phase,
|
|
@@ -1978,7 +2004,9 @@ var AcpClient = class {
|
|
|
1978
2004
|
memo.memoType,
|
|
1979
2005
|
memo.content,
|
|
1980
2006
|
memo.nextPhase,
|
|
1981
|
-
memo.
|
|
2007
|
+
memo.status,
|
|
2008
|
+
memo.signedReason,
|
|
2009
|
+
memo.expiry ? new Date(parseInt(memo.expiry)) : void 0
|
|
1982
2010
|
);
|
|
1983
2011
|
}),
|
|
1984
2012
|
data.phase,
|
|
@@ -2205,7 +2233,9 @@ var AcpClient = class {
|
|
|
2205
2233
|
memo.memoType,
|
|
2206
2234
|
memo.content,
|
|
2207
2235
|
memo.nextPhase,
|
|
2208
|
-
memo.
|
|
2236
|
+
memo.status,
|
|
2237
|
+
memo.signedReason,
|
|
2238
|
+
memo.expiry ? new Date(parseInt(memo.expiry)) : void 0
|
|
2209
2239
|
);
|
|
2210
2240
|
}),
|
|
2211
2241
|
job.phase,
|
|
@@ -2245,7 +2275,9 @@ var AcpClient = class {
|
|
|
2245
2275
|
memo.memoType,
|
|
2246
2276
|
memo.content,
|
|
2247
2277
|
memo.nextPhase,
|
|
2248
|
-
memo.
|
|
2278
|
+
memo.status,
|
|
2279
|
+
memo.signedReason,
|
|
2280
|
+
memo.expiry ? new Date(parseInt(memo.expiry)) : void 0
|
|
2249
2281
|
);
|
|
2250
2282
|
}),
|
|
2251
2283
|
job.phase,
|
|
@@ -2285,7 +2317,9 @@ var AcpClient = class {
|
|
|
2285
2317
|
memo.memoType,
|
|
2286
2318
|
memo.content,
|
|
2287
2319
|
memo.nextPhase,
|
|
2288
|
-
memo.
|
|
2320
|
+
memo.status,
|
|
2321
|
+
memo.signedReason,
|
|
2322
|
+
memo.expiry ? new Date(parseInt(memo.expiry)) : void 0
|
|
2289
2323
|
);
|
|
2290
2324
|
}),
|
|
2291
2325
|
job.phase,
|
|
@@ -2328,7 +2362,9 @@ var AcpClient = class {
|
|
|
2328
2362
|
memo.memoType,
|
|
2329
2363
|
memo.content,
|
|
2330
2364
|
memo.nextPhase,
|
|
2331
|
-
memo.
|
|
2365
|
+
memo.status,
|
|
2366
|
+
memo.signedReason,
|
|
2367
|
+
memo.expiry ? new Date(parseInt(memo.expiry)) : void 0
|
|
2332
2368
|
);
|
|
2333
2369
|
}),
|
|
2334
2370
|
job.phase,
|
|
@@ -2362,7 +2398,9 @@ var AcpClient = class {
|
|
|
2362
2398
|
memo.memoType,
|
|
2363
2399
|
memo.content,
|
|
2364
2400
|
memo.nextPhase,
|
|
2365
|
-
memo.
|
|
2401
|
+
memo.status,
|
|
2402
|
+
memo.signedReason,
|
|
2403
|
+
memo.expiry ? new Date(parseInt(memo.expiry)) : void 0
|
|
2366
2404
|
);
|
|
2367
2405
|
} catch (error) {
|
|
2368
2406
|
throw error;
|
|
@@ -2395,6 +2433,7 @@ var index_default = acpClient_default;
|
|
|
2395
2433
|
AcpJob,
|
|
2396
2434
|
AcpJobPhases,
|
|
2397
2435
|
AcpMemo,
|
|
2436
|
+
AcpMemoStatus,
|
|
2398
2437
|
AcpOnlineStatus,
|
|
2399
2438
|
MemoType,
|
|
2400
2439
|
PayloadType,
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -15,6 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
15
17
|
}
|
|
16
18
|
return a;
|
|
17
19
|
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
18
21
|
var __commonJS = (cb, mod) => function __require() {
|
|
19
22
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
20
23
|
};
|
|
@@ -44,7 +47,7 @@ var require_package = __commonJS({
|
|
|
44
47
|
"package.json"(exports, module) {
|
|
45
48
|
module.exports = {
|
|
46
49
|
name: "@virtuals-protocol/acp-node",
|
|
47
|
-
version: "0.2.0-beta.
|
|
50
|
+
version: "0.2.0-beta.3",
|
|
48
51
|
main: "./dist/index.js",
|
|
49
52
|
module: "./dist/index.mjs",
|
|
50
53
|
types: "./dist/index.d.ts",
|
|
@@ -1406,6 +1409,12 @@ var AcpContractClient = class _AcpContractClient {
|
|
|
1406
1409
|
var acpContractClient_default = AcpContractClient;
|
|
1407
1410
|
|
|
1408
1411
|
// src/interfaces.ts
|
|
1412
|
+
var AcpMemoStatus = /* @__PURE__ */ ((AcpMemoStatus2) => {
|
|
1413
|
+
AcpMemoStatus2["PENDING"] = "PENDING";
|
|
1414
|
+
AcpMemoStatus2["APPROVED"] = "APPROVED";
|
|
1415
|
+
AcpMemoStatus2["REJECTED"] = "REJECTED";
|
|
1416
|
+
return AcpMemoStatus2;
|
|
1417
|
+
})(AcpMemoStatus || {});
|
|
1409
1418
|
var AcpAgentSort = /* @__PURE__ */ ((AcpAgentSort2) => {
|
|
1410
1419
|
AcpAgentSort2["SUCCESSFUL_JOB_COUNT"] = "successfulJobCount";
|
|
1411
1420
|
AcpAgentSort2["SUCCESS_RATE"] = "successRate";
|
|
@@ -1791,12 +1800,14 @@ var acpJob_default = AcpJob;
|
|
|
1791
1800
|
|
|
1792
1801
|
// src/acpMemo.ts
|
|
1793
1802
|
var AcpMemo = class {
|
|
1794
|
-
constructor(acpClient, id, type, content, nextPhase, expiry) {
|
|
1803
|
+
constructor(acpClient, id, type, content, nextPhase, status, signedReason, expiry) {
|
|
1795
1804
|
this.acpClient = acpClient;
|
|
1796
1805
|
this.id = id;
|
|
1797
1806
|
this.type = type;
|
|
1798
1807
|
this.content = content;
|
|
1799
1808
|
this.nextPhase = nextPhase;
|
|
1809
|
+
this.status = status;
|
|
1810
|
+
this.signedReason = signedReason;
|
|
1800
1811
|
this.expiry = expiry;
|
|
1801
1812
|
this.structuredContent = tryParseJson(this.content) || void 0;
|
|
1802
1813
|
}
|
|
@@ -1833,10 +1844,10 @@ var acpMemo_default = AcpMemo;
|
|
|
1833
1844
|
// src/acpJobOffering.ts
|
|
1834
1845
|
import Ajv from "ajv";
|
|
1835
1846
|
var AcpJobOffering = class {
|
|
1836
|
-
constructor(acpClient, providerAddress,
|
|
1847
|
+
constructor(acpClient, providerAddress, name, price, requirementSchema) {
|
|
1837
1848
|
this.acpClient = acpClient;
|
|
1838
1849
|
this.providerAddress = providerAddress;
|
|
1839
|
-
this.
|
|
1850
|
+
this.name = name;
|
|
1840
1851
|
this.price = price;
|
|
1841
1852
|
this.requirementSchema = requirementSchema;
|
|
1842
1853
|
this.ajv = new Ajv({ allErrors: true });
|
|
@@ -1850,9 +1861,21 @@ var AcpJobOffering = class {
|
|
|
1850
1861
|
throw new Error(this.ajv.errorsText(validator.errors));
|
|
1851
1862
|
}
|
|
1852
1863
|
}
|
|
1864
|
+
let finalServiceRequirement = {
|
|
1865
|
+
serviceName: this.name
|
|
1866
|
+
};
|
|
1867
|
+
if (typeof serviceRequirement === "string") {
|
|
1868
|
+
finalServiceRequirement = __spreadProps(__spreadValues({}, finalServiceRequirement), {
|
|
1869
|
+
message: serviceRequirement
|
|
1870
|
+
});
|
|
1871
|
+
} else {
|
|
1872
|
+
finalServiceRequirement = __spreadProps(__spreadValues({}, finalServiceRequirement), {
|
|
1873
|
+
serviceRequirement
|
|
1874
|
+
});
|
|
1875
|
+
}
|
|
1853
1876
|
return yield this.acpClient.initiateJob(
|
|
1854
1877
|
this.providerAddress,
|
|
1855
|
-
|
|
1878
|
+
finalServiceRequirement,
|
|
1856
1879
|
this.price,
|
|
1857
1880
|
evaluatorAddress,
|
|
1858
1881
|
expiredAt
|
|
@@ -1914,7 +1937,9 @@ var AcpClient = class {
|
|
|
1914
1937
|
memo.memoType,
|
|
1915
1938
|
memo.content,
|
|
1916
1939
|
memo.nextPhase,
|
|
1917
|
-
memo.
|
|
1940
|
+
memo.status,
|
|
1941
|
+
memo.signedReason,
|
|
1942
|
+
memo.expiry ? new Date(parseInt(memo.expiry)) : void 0
|
|
1918
1943
|
);
|
|
1919
1944
|
}),
|
|
1920
1945
|
data.phase,
|
|
@@ -1943,7 +1968,9 @@ var AcpClient = class {
|
|
|
1943
1968
|
memo.memoType,
|
|
1944
1969
|
memo.content,
|
|
1945
1970
|
memo.nextPhase,
|
|
1946
|
-
memo.
|
|
1971
|
+
memo.status,
|
|
1972
|
+
memo.signedReason,
|
|
1973
|
+
memo.expiry ? new Date(parseInt(memo.expiry)) : void 0
|
|
1947
1974
|
);
|
|
1948
1975
|
}),
|
|
1949
1976
|
data.phase,
|
|
@@ -2170,7 +2197,9 @@ var AcpClient = class {
|
|
|
2170
2197
|
memo.memoType,
|
|
2171
2198
|
memo.content,
|
|
2172
2199
|
memo.nextPhase,
|
|
2173
|
-
memo.
|
|
2200
|
+
memo.status,
|
|
2201
|
+
memo.signedReason,
|
|
2202
|
+
memo.expiry ? new Date(parseInt(memo.expiry)) : void 0
|
|
2174
2203
|
);
|
|
2175
2204
|
}),
|
|
2176
2205
|
job.phase,
|
|
@@ -2210,7 +2239,9 @@ var AcpClient = class {
|
|
|
2210
2239
|
memo.memoType,
|
|
2211
2240
|
memo.content,
|
|
2212
2241
|
memo.nextPhase,
|
|
2213
|
-
memo.
|
|
2242
|
+
memo.status,
|
|
2243
|
+
memo.signedReason,
|
|
2244
|
+
memo.expiry ? new Date(parseInt(memo.expiry)) : void 0
|
|
2214
2245
|
);
|
|
2215
2246
|
}),
|
|
2216
2247
|
job.phase,
|
|
@@ -2250,7 +2281,9 @@ var AcpClient = class {
|
|
|
2250
2281
|
memo.memoType,
|
|
2251
2282
|
memo.content,
|
|
2252
2283
|
memo.nextPhase,
|
|
2253
|
-
memo.
|
|
2284
|
+
memo.status,
|
|
2285
|
+
memo.signedReason,
|
|
2286
|
+
memo.expiry ? new Date(parseInt(memo.expiry)) : void 0
|
|
2254
2287
|
);
|
|
2255
2288
|
}),
|
|
2256
2289
|
job.phase,
|
|
@@ -2293,7 +2326,9 @@ var AcpClient = class {
|
|
|
2293
2326
|
memo.memoType,
|
|
2294
2327
|
memo.content,
|
|
2295
2328
|
memo.nextPhase,
|
|
2296
|
-
memo.
|
|
2329
|
+
memo.status,
|
|
2330
|
+
memo.signedReason,
|
|
2331
|
+
memo.expiry ? new Date(parseInt(memo.expiry)) : void 0
|
|
2297
2332
|
);
|
|
2298
2333
|
}),
|
|
2299
2334
|
job.phase,
|
|
@@ -2327,7 +2362,9 @@ var AcpClient = class {
|
|
|
2327
2362
|
memo.memoType,
|
|
2328
2363
|
memo.content,
|
|
2329
2364
|
memo.nextPhase,
|
|
2330
|
-
memo.
|
|
2365
|
+
memo.status,
|
|
2366
|
+
memo.signedReason,
|
|
2367
|
+
memo.expiry ? new Date(parseInt(memo.expiry)) : void 0
|
|
2331
2368
|
);
|
|
2332
2369
|
} catch (error) {
|
|
2333
2370
|
throw error;
|
|
@@ -2359,6 +2396,7 @@ export {
|
|
|
2359
2396
|
acpJob_default as AcpJob,
|
|
2360
2397
|
AcpJobPhases,
|
|
2361
2398
|
acpMemo_default as AcpMemo,
|
|
2399
|
+
AcpMemoStatus,
|
|
2362
2400
|
AcpOnlineStatus,
|
|
2363
2401
|
MemoType,
|
|
2364
2402
|
PayloadType,
|