zkcloudworker 0.11.7 → 0.11.9
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/ts/src/cloud/networks.d.ts +11 -17
- package/lib/ts/src/cloud/utils/base64.js +6 -7
- package/lib/ts/src/cloud/utils/graphql.js +3 -3
- package/lib/ts/src/cloud/utils/utils.js +4 -4
- package/lib/ts/src/cloud/worker/cloud.d.ts +8 -8
- package/lib/ts/src/cloud/worker/job.d.ts +41 -39
- package/lib/ts/src/cloud/worker/task.d.ts +14 -16
- package/lib/ts/src/cloud/worker/worker.d.ts +1 -1
- package/lib/ts/src/cloud/worker/worker.js +0 -1
- package/lib/ts/src/mina/encryption/client.js +2 -3
- package/lib/ts/src/mina/encryption/messages.js +3 -4
- package/lib/ts/src/mina/local/local.d.ts +15 -12
- package/lib/ts/src/mina/local/local.js +16 -12
- package/lib/ts/src/mina/utils/base64.js +4 -5
- package/lib/ts/src/mina/utils/fee.js +1 -2
- package/lib/ts/src/mina/utils/fetch.js +3 -4
- package/lib/ts/src/mina/utils/fields.js +2 -3
- package/lib/ts/src/mina/utils/mina.d.ts +4 -4
- package/lib/ts/src/mina/utils/mina.js +8 -7
- package/lib/ts/src/mina/verification/verification.d.ts +2 -0
- package/lib/ts/tsconfig.tsbuildinfo +1 -1
- package/lib/web/src/cloud/networks.d.ts +11 -17
- package/lib/web/src/cloud/networks.js.map +1 -1
- package/lib/web/src/cloud/worker/cloud.d.ts +8 -8
- package/lib/web/src/cloud/worker/cloud.js.map +1 -1
- package/lib/web/src/cloud/worker/job.d.ts +41 -39
- package/lib/web/src/cloud/worker/task.d.ts +14 -16
- package/lib/web/src/cloud/worker/worker.d.ts +1 -1
- package/lib/web/src/cloud/worker/worker.js +0 -1
- package/lib/web/src/cloud/worker/worker.js.map +1 -1
- package/lib/web/src/mina/local/local.d.ts +15 -12
- package/lib/web/src/mina/local/local.js +16 -12
- package/lib/web/src/mina/local/local.js.map +1 -1
- package/lib/web/src/mina/utils/mina.d.ts +4 -4
- package/lib/web/src/mina/utils/mina.js +1 -0
- package/lib/web/src/mina/utils/mina.js.map +1 -1
- package/lib/web/src/mina/verification/verification.d.ts +2 -0
- package/lib/web/tsconfig.web.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -1,85 +1,87 @@
|
|
1
1
|
import { blockchain } from "../networks";
|
2
2
|
export type JobStatus = "created" | "started" | "finished" | "failed" | "used" | "restarted";
|
3
3
|
/**
|
4
|
-
* LogStream is a subset of the log stream data returned by AWS CloudWatch Logs when running the worker
|
5
|
-
* https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch-logs/command/GetLogEventsCommand/
|
6
|
-
*
|
4
|
+
* LogStream is a subset of the log stream data returned by AWS CloudWatch Logs when running the worker.
|
5
|
+
* @see {@link https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch-logs/command/GetLogEventsCommand/}
|
6
|
+
*
|
7
|
+
* Example:
|
8
|
+
* ```
|
7
9
|
* {
|
8
|
-
*
|
9
|
-
*
|
10
|
-
*
|
10
|
+
* logGroupName: '/aws/lambda/zkcloudworker-dev-test',
|
11
|
+
* logStreamName: '2024/05/09/[$LATEST]52d048f64e894d2e8ba2800df93629c5',
|
12
|
+
* awsRequestId: '581d0d45-9165-47e8-84d9-678599938811'
|
11
13
|
* }
|
12
|
-
*
|
13
|
-
* @param logStreamName the log stream name
|
14
|
-
* @param awsRequestId the AWS request ID
|
14
|
+
* ```
|
15
15
|
*/
|
16
16
|
export interface LogStream {
|
17
|
+
/** The log group name */
|
17
18
|
logGroupName: string;
|
19
|
+
/** The log stream name */
|
18
20
|
logStreamName: string;
|
21
|
+
/** The AWS request ID */
|
19
22
|
awsRequestId: string;
|
20
23
|
}
|
21
24
|
/**
|
22
|
-
* JobData is the data structure for a job, keeping track of the job status, result, logs, and metadata
|
23
|
-
* @param id the id of the user
|
24
|
-
* @param jobId the id of the job
|
25
|
-
* @param taskId the id of the task
|
26
|
-
*
|
27
|
-
* @param developer the developer of the repo executing the job
|
28
|
-
* @param repo the repo executing the job
|
29
|
-
*
|
30
|
-
* @param task the task to execute
|
31
|
-
* @param userId the id of the user
|
32
|
-
* @param args the arguments for the job
|
33
|
-
* @param metadata the metadata for the job
|
34
|
-
* @param chain the blockchain to execute the job on
|
35
|
-
* @param filename the filename where transactions data is stored
|
36
|
-
* @param txNumber the number of transactions
|
37
|
-
* @param timeCreated the time the job was created
|
38
|
-
* @param timeStarted the time the job was started
|
39
|
-
* @param timeFinished the time the job was finished
|
40
|
-
* @param timeFailed the time the job failed
|
41
|
-
* @param timeUsed the time the job result was used
|
42
|
-
* @param jobStatus the status of the job
|
43
|
-
* @param billedDuration the duration the job was billed for in ms
|
44
|
-
* @param logStreams the log streams of the job
|
45
|
-
* @param logs the logs of the job
|
46
|
-
* @param isFullLog whether the logs are full
|
25
|
+
* JobData is the data structure for a job, keeping track of the job status, result, logs, and metadata.
|
47
26
|
*/
|
48
27
|
export interface JobData {
|
28
|
+
/** The ID of the user */
|
49
29
|
id: string;
|
30
|
+
/** The ID of the job */
|
50
31
|
jobId: string;
|
32
|
+
/** The ID of the task (optional) */
|
51
33
|
taskId?: string;
|
34
|
+
/** The developer of the repo executing the job */
|
52
35
|
developer: string;
|
36
|
+
/** The repo executing the job */
|
53
37
|
repo: string;
|
38
|
+
/** The task to execute (optional) */
|
54
39
|
task?: string;
|
40
|
+
/** The ID of the user (optional) */
|
55
41
|
userId?: string;
|
42
|
+
/** The arguments for the job (optional) */
|
56
43
|
args?: string;
|
44
|
+
/** The metadata for the job (optional) */
|
57
45
|
metadata?: string;
|
46
|
+
/** The blockchain to execute the job on */
|
58
47
|
chain: blockchain;
|
48
|
+
/** The filename where transactions data is stored (optional) */
|
59
49
|
filename?: string;
|
50
|
+
/** The number of transactions */
|
60
51
|
txNumber: number;
|
52
|
+
/** The time the job was created */
|
61
53
|
timeCreated: number;
|
54
|
+
/** The time the job was started (optional) */
|
62
55
|
timeStarted?: number;
|
56
|
+
/** The time the job was finished (optional) */
|
63
57
|
timeFinished?: number;
|
58
|
+
/** The time the job failed (optional) */
|
64
59
|
timeFailed?: number;
|
60
|
+
/** The time the job result was used (optional) */
|
65
61
|
timeUsed?: number;
|
62
|
+
/** The status of the job */
|
66
63
|
jobStatus: JobStatus;
|
64
|
+
/** The duration the job was billed for in ms (optional) */
|
67
65
|
billedDuration?: number;
|
66
|
+
/** The result of the job (optional) */
|
68
67
|
result?: string;
|
68
|
+
/** The log streams of the job (optional) */
|
69
69
|
logStreams?: LogStream[];
|
70
|
+
/** The logs of the job (optional) */
|
70
71
|
logs?: string[];
|
72
|
+
/** Whether the logs are full (optional) */
|
71
73
|
isFullLog?: boolean;
|
72
74
|
}
|
73
75
|
/**
|
74
|
-
*
|
75
|
-
* @param jobId the id of the job
|
76
|
-
* @param eventTime the time the event occurred
|
77
|
-
* @param jobStatus the status of the job
|
78
|
-
* @param result the result of the job
|
76
|
+
* JobEvent is the data structure for a job events, keeping track of the job status changes.
|
79
77
|
*/
|
80
78
|
export interface JobEvent {
|
79
|
+
/** The ID of the job */
|
81
80
|
jobId: string;
|
81
|
+
/** The time the event occurred */
|
82
82
|
eventTime: number;
|
83
|
+
/** The status of the job */
|
83
84
|
jobStatus: JobStatus;
|
85
|
+
/** The result of the job (optional) */
|
84
86
|
result?: string;
|
85
87
|
}
|
@@ -1,34 +1,32 @@
|
|
1
1
|
import { blockchain } from "../networks";
|
2
2
|
/**
|
3
|
-
* TaskData is the data structure for a task, keeping track of the task status, result, logs, and metadata
|
4
|
-
* @param id the id of the user
|
5
|
-
* @param taskId the id of the task
|
6
|
-
*
|
7
|
-
* @param startTime the time the task was started
|
8
|
-
* @param timeCreated the time the task was created
|
9
|
-
* @param maxAttempts the maximum number of attempts
|
10
|
-
* @param attempts the number of attempts
|
11
|
-
*
|
12
|
-
* @param developer the developer of the repo executing the task
|
13
|
-
* @param repo the repo executing the task
|
14
|
-
* @param task the task to execute
|
15
|
-
* @param userId the id of the user
|
16
|
-
* @param args the arguments for the task
|
17
|
-
* @param metadata the metadata for the task
|
18
|
-
* @param chain the blockchain to execute the task on
|
3
|
+
* TaskData is the data structure for a task, keeping track of the task status, result, logs, and metadata.
|
19
4
|
*/
|
20
5
|
export interface TaskData {
|
6
|
+
/** The ID of the user */
|
21
7
|
id: string;
|
8
|
+
/** The ID of the task */
|
22
9
|
taskId: string;
|
10
|
+
/** The time the task was started (optional) */
|
23
11
|
startTime?: number;
|
12
|
+
/** The time the task was created */
|
24
13
|
timeCreated: number;
|
14
|
+
/** The maximum number of attempts (default is 5) (optional) */
|
25
15
|
maxAttempts?: number;
|
16
|
+
/** The number of attempts */
|
26
17
|
attempts: number;
|
18
|
+
/** The developer of the repo executing the task */
|
27
19
|
developer: string;
|
20
|
+
/** The repo executing the task */
|
28
21
|
repo: string;
|
22
|
+
/** The task to execute */
|
29
23
|
task: string;
|
24
|
+
/** The ID of the user (optional) */
|
30
25
|
userId?: string;
|
26
|
+
/** The arguments for the task (optional) */
|
31
27
|
args?: string;
|
28
|
+
/** The metadata for the task (optional) */
|
32
29
|
metadata?: string;
|
30
|
+
/** The blockchain to execute the task on */
|
33
31
|
chain: blockchain;
|
34
32
|
}
|
@@ -3,9 +3,9 @@ import { Cloud, CloudTransaction } from "./cloud";
|
|
3
3
|
* Abstract class for the zkCloudWorker
|
4
4
|
* Used to define the zkCloudWorker methods and properties
|
5
5
|
* Should be implemented for by the developer for the zkCloudWorker in the cloud
|
6
|
-
* @param cloud: the cloud
|
7
6
|
*/
|
8
7
|
export declare abstract class zkCloudWorker {
|
8
|
+
/** cloud: the cloud instance */
|
9
9
|
readonly cloud: Cloud;
|
10
10
|
/**
|
11
11
|
* Constructor for the zkCloudWorker class
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"worker.js","sourceRoot":"","sources":["../../../../../../src/cloud/worker/worker.ts"],"names":[],"mappings":"AAEA
|
1
|
+
{"version":3,"file":"worker.js","sourceRoot":"","sources":["../../../../../../src/cloud/worker/worker.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,OAAgB,aAAa;IAIjC;;;OAGG;IACH,YAAY,KAAY;QACtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,wEAAwE;IACxE;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,WAAmB;QAC9B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,KAAK,CAAC,MAAc,EAAE,MAAc;QACxC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,+EAA+E;IAC/E;;;;OAIG;IACH,KAAK,CAAC,OAAO,CAAC,YAAsB;QAClC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,mBAAmB,CAAC,YAAgC,IAAkB,CAAC;IAE7E;;;OAGG;IACH,KAAK,CAAC,IAAI;QACR,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="node" />
|
2
1
|
import { blockchain, TransactionMetadata, CloudTransaction, DeployerKeyPair, TaskData, JobData, JobEvent, Cloud, zkCloudWorker } from "../../cloud";
|
3
2
|
import { ApiCommand } from "../api/api";
|
4
3
|
/**
|
@@ -223,41 +222,45 @@ export declare class LocalCloud extends Cloud {
|
|
223
222
|
forceWorkerRestart(): Promise<void>;
|
224
223
|
}
|
225
224
|
/**
|
226
|
-
* LocalStorage is a local storage for the local cloud
|
227
|
-
* It stores jobs, tasks, transactions, and data
|
228
|
-
* It can be used to test the cloud functionality without deploying to the cloud
|
229
|
-
* @param jobs the jobs
|
230
|
-
* @param data the data
|
231
|
-
* @param transactions the transactions
|
232
|
-
* @param tasks the tasks
|
225
|
+
* LocalStorage is a local storage for the local cloud.
|
226
|
+
* It stores jobs, tasks, transactions, and data.
|
227
|
+
* It can be used to test the cloud functionality without deploying to the cloud.
|
233
228
|
*/
|
234
229
|
export declare class LocalStorage {
|
230
|
+
/** The jobs */
|
235
231
|
static jobs: {
|
236
232
|
[key: string]: JobData;
|
237
233
|
};
|
234
|
+
/** The job events */
|
238
235
|
static jobEvents: {
|
239
236
|
[key: string]: JobEvent;
|
240
237
|
};
|
238
|
+
/** The data */
|
241
239
|
static data: {
|
242
240
|
[key: string]: string;
|
243
241
|
};
|
242
|
+
/** The files */
|
244
243
|
static files: {
|
245
244
|
[key: string]: Buffer;
|
246
245
|
};
|
246
|
+
/** The transactions */
|
247
247
|
static transactions: {
|
248
248
|
[key: string]: CloudTransaction;
|
249
249
|
};
|
250
|
+
/** The tasks */
|
250
251
|
static tasks: {
|
251
252
|
[key: string]: TaskData;
|
252
253
|
};
|
253
254
|
/**
|
254
|
-
* Saves the data
|
255
|
-
* @param name
|
255
|
+
* Saves the data.
|
256
|
+
* @param name The name to save the data under.
|
257
|
+
* @throws Error Method not implemented to keep web compatibility.
|
256
258
|
*/
|
257
259
|
static saveData(name: string): Promise<void>;
|
258
260
|
/**
|
259
|
-
* Loads the data
|
260
|
-
* @param name
|
261
|
+
* Loads the data.
|
262
|
+
* @param name The name to load the data from.
|
263
|
+
* @throws Error Method not implemented to keep web compatibility.
|
261
264
|
*/
|
262
265
|
static loadData(name: string): Promise<void>;
|
263
266
|
}
|
@@ -442,18 +442,15 @@ export class LocalCloud extends Cloud {
|
|
442
442
|
}
|
443
443
|
}
|
444
444
|
/**
|
445
|
-
* LocalStorage is a local storage for the local cloud
|
446
|
-
* It stores jobs, tasks, transactions, and data
|
447
|
-
* It can be used to test the cloud functionality without deploying to the cloud
|
448
|
-
* @param jobs the jobs
|
449
|
-
* @param data the data
|
450
|
-
* @param transactions the transactions
|
451
|
-
* @param tasks the tasks
|
445
|
+
* LocalStorage is a local storage for the local cloud.
|
446
|
+
* It stores jobs, tasks, transactions, and data.
|
447
|
+
* It can be used to test the cloud functionality without deploying to the cloud.
|
452
448
|
*/
|
453
449
|
export class LocalStorage {
|
454
450
|
/**
|
455
|
-
* Saves the data
|
456
|
-
* @param name
|
451
|
+
* Saves the data.
|
452
|
+
* @param name The name to save the data under.
|
453
|
+
* @throws Error Method not implemented to keep web compatibility.
|
457
454
|
*/
|
458
455
|
static async saveData(name) {
|
459
456
|
throw new Error("Method not implemented to keep web compatibility.");
|
@@ -464,11 +461,12 @@ export class LocalStorage {
|
|
464
461
|
tasks: LocalStorage.tasks,
|
465
462
|
};
|
466
463
|
const filename = name + ".cloud";
|
467
|
-
//await saveFile({ data, filename });
|
464
|
+
// await saveFile({ data, filename });
|
468
465
|
}
|
469
466
|
/**
|
470
|
-
* Loads the data
|
471
|
-
* @param name
|
467
|
+
* Loads the data.
|
468
|
+
* @param name The name to load the data from.
|
469
|
+
* @throws Error Method not implemented to keep web compatibility.
|
472
470
|
*/
|
473
471
|
static async loadData(name) {
|
474
472
|
throw new Error("Method not implemented to keep web compatibility.");
|
@@ -483,10 +481,16 @@ export class LocalStorage {
|
|
483
481
|
*/
|
484
482
|
}
|
485
483
|
}
|
484
|
+
/** The jobs */
|
486
485
|
LocalStorage.jobs = {};
|
486
|
+
/** The job events */
|
487
487
|
LocalStorage.jobEvents = {};
|
488
|
+
/** The data */
|
488
489
|
LocalStorage.data = {};
|
490
|
+
/** The files */
|
489
491
|
LocalStorage.files = {};
|
492
|
+
/** The transactions */
|
490
493
|
LocalStorage.transactions = {};
|
494
|
+
/** The tasks */
|
491
495
|
LocalStorage.tasks = {};
|
492
496
|
//# sourceMappingURL=local.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"local.js","sourceRoot":"","sources":["../../../../../../src/mina/local/local.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAQV,KAAK,GAGN,MAAM,aAAa,CAAC;AAGrB;;;;;;GAMG;AACH,MAAM,OAAO,UAAW,SAAQ,KAAK;IAGnC;;;;;;;;OAQG;IACH,YAAY,MAMX;QACC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAE1D,MAAM,EAAE,EAAE,EAAE,KAAK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IAAI,GAAG;YACX,IAAI,EAAE,YAAY,CAAC,IAAI;YACvB,IAAI,EAAE,YAAY,CAAC,IAAI;YACvB,YAAY,EAAE,YAAY,CAAC,YAAY;YACvC,KAAK,EAAE,YAAY,CAAC,KAAK;SAC1B,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,GAAG,QAAQ,CAAC;QACjC,sCAAsC;IACxC,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAY;QAChC,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;QACrE,MAAM,QAAQ,GAAG,IAAI,GAAG,QAAQ,CAAC;QACjC;;;;;;;UAOE;IACJ,CAAC;;AArDD,eAAe;AACR,iBAAI,GAA+B,EAAE,CAAC;AAE7C,qBAAqB;AACd,sBAAS,GAAgC,EAAE,CAAC;AAEnD,eAAe;AACR,iBAAI,GAA8B,EAAE,CAAC;AAE5C,gBAAgB;AACT,kBAAK,GAA8B,EAAE,CAAC;AAE7C,uBAAuB;AAChB,yBAAY,GAEf,EAAE,CAAC;AAEP,gBAAgB;AACT,kBAAK,GAAgC,EAAE,CAAC"}
|
@@ -2,14 +2,14 @@ export { initBlockchain, accountBalance, accountBalanceMina, MinaNetworkInstance
|
|
2
2
|
import { Mina, PublicKey, UInt64, Field } from "o1js";
|
3
3
|
import { blockchain, MinaNetwork } from "../../cloud";
|
4
4
|
/**
|
5
|
-
* MinaNetworkInstance is the data structure for a Mina network instance, keeping track of the keys, network, and network
|
6
|
-
* @param keys the keys for the deployers
|
7
|
-
* @param network the network
|
8
|
-
* @param networkIdHash the network id hash
|
5
|
+
* MinaNetworkInstance is the data structure for a Mina network instance, keeping track of the keys, network, and network ID hash.
|
9
6
|
*/
|
10
7
|
interface MinaNetworkInstance {
|
8
|
+
/** The keys for the deployers */
|
11
9
|
keys: Mina.TestPublicKey[];
|
10
|
+
/** The network */
|
12
11
|
network: MinaNetwork;
|
12
|
+
/** The network ID hash */
|
13
13
|
networkIdHash: Field;
|
14
14
|
}
|
15
15
|
declare let currentNetwork: MinaNetworkInstance | undefined;
|
@@ -68,6 +68,7 @@ async function initBlockchain(instance, deployersNumber = 0) {
|
|
68
68
|
mina: network.mina,
|
69
69
|
archive: network.archive,
|
70
70
|
lightnetAccountManager: network.accountManager,
|
71
|
+
networkId: instance === "mainnet" ? "mainnet" : "testnet",
|
71
72
|
});
|
72
73
|
Mina.setActiveInstance(networkInstance);
|
73
74
|
const keys = [];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mina.js","sourceRoot":"","sources":["../../../../../../src/mina/utils/mina.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,cAAc,EACd,kBAAkB,EAElB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,GACZ,CAAC;AAEF,OAAO,EACL,IAAI,EAEJ,UAAU,EACV,MAAM,EACN,YAAY,EAEZ,QAAQ,EACR,aAAa,GACd,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,QAAQ,EAA2B,KAAK,EAAE,MAAM,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"mina.js","sourceRoot":"","sources":["../../../../../../src/mina/utils/mina.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,cAAc,EACd,kBAAkB,EAElB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,GACZ,CAAC;AAEF,OAAO,EACL,IAAI,EAEJ,UAAU,EACV,MAAM,EACN,YAAY,EAEZ,QAAQ,EACR,aAAa,GACd,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,QAAQ,EAA2B,KAAK,EAAE,MAAM,aAAa,CAAC;AAgBvE,IAAI,cAAc,GAAoC,SAAS,CAAC;AAEhE,SAAS,gBAAgB;IACvB,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;QACjC,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;IAChD,CAAC;IACD,OAAO,cAAc,CAAC,aAAa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K,KAAK;gBAClC,SAAS,CAAC,MAAM,GAAG,eAAe;gBAElC,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;YAC3C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,eAAe,EAAE,CAAC,EAAE,EAAE,CAAC;gBACzC,MAAM,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;gBACvD,MAAM,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;gBAC3C,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACjB,CAAC;QACH,CAAC;IACH,CAAC;IAED,cAAc,GAAG;QACf,IAAI;QACJ,OAAO;QACP,aAAa;KACd,CAAC;IACF,OAAO,cAAc,CAAC;AACxB,CAAC;AAED;;;;GAIG;AACH,KAAK,UAAU,cAAc,CAAC,OAAkB;IAC9C,MAAM,YAAY,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;IAC3C,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;;QACzD,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC7B,CAAC;AAED;;;;GAIG;AACH,KAAK,UAAU,kBAAkB,CAAC,OAAkB;IAClD,OAAO,MAAM,CAAC,CAAC,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,GAAG,GAAG,CAAC;AAClE,CAAC"}
|
@@ -7,6 +7,7 @@ import { SmartContract } from "o1js";
|
|
7
7
|
* programDependencies: The zk programs that need to be compiled before verification.
|
8
8
|
* address: The address of the smart contract on the blockchain.
|
9
9
|
* chain: The blockchain on which the smart contract is deployed.
|
10
|
+
* image: The logo of the smart contract (public url)
|
10
11
|
*
|
11
12
|
* Contract, contractDependencies, and programDependencies should be exported from the repo
|
12
13
|
*/
|
@@ -16,4 +17,5 @@ export interface VerificationData {
|
|
16
17
|
programDependencies?: any[];
|
17
18
|
address: string;
|
18
19
|
chain: blockchain;
|
20
|
+
image?: string;
|
19
21
|
}
|