zkcloudworker 0.3.5 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,10 +15,11 @@ export class zkCloudWorkerClient {
15
15
  * @param jwt The jwt token for authentication, get it at https://t.me/minanft_bot?start=auth
16
16
  */
17
17
  constructor(params) {
18
- const { jwt, zkcloudworker, chain } = params;
18
+ const { jwt, zkcloudworker, chain, webhook } = params;
19
19
  this.jwt = jwt;
20
20
  this.endpoint = ZKCLOUDWORKER_API;
21
- this.chain = chain !== null && chain !== void 0 ? chain : "berkeley";
21
+ this.chain = chain !== null && chain !== void 0 ? chain : "devnet";
22
+ this.webhook = webhook;
22
23
  if (jwt === "local") {
23
24
  if (zkcloudworker === undefined)
24
25
  throw new Error("worker is required for local mode");
@@ -333,6 +334,7 @@ export class zkCloudWorkerClient {
333
334
  jwtToken: this.jwt,
334
335
  data: data,
335
336
  chain: this.chain,
337
+ webhook: this.webhook, // TODO: implement webhook code on AWS
336
338
  };
337
339
  try {
338
340
  const response = yield axios.post(this.endpoint, apiData);
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../../src/api/api.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,MAAM,MAAM,WAAW,CAAC;AAG/B,MAAM,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,GAAG,MAAM,CAAC;AASzD;;;;GAIG;AACH,MAAM,OAAO,mBAAmB;IAM9B;;;OAGG;IACH,YAAY,MAIX;QACC,MAAM,EAAE,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;QAC7C,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,QAAQ,GAAG,iBAAiB,CAAC;QAClC,IAAI,CAAC,KAAK,GAAG,KAAK,aAAL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,CAAC;QAC9C,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC;YACpE,OAAO,IAAI,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
@@ -1,3 +1,4 @@
1
+ import { blockchain } from "../networks";
1
2
  export type JobStatus = "created" | "started" | "finished" | "failed" | "used";
2
3
  export interface JobData {
3
4
  id: string;
@@ -9,6 +10,7 @@ export interface JobData {
9
10
  userId?: string;
10
11
  args?: string;
11
12
  metadata?: string;
13
+ chain: blockchain;
12
14
  webhook?: string;
13
15
  filename?: string;
14
16
  txNumber: number;
@@ -196,7 +196,7 @@ export class LocalCloud extends Cloud {
196
196
  addTask(data) {
197
197
  return __awaiter(this, void 0, void 0, function* () {
198
198
  const taskId = LocalCloud.generateId();
199
- LocalStorage.tasks[taskId] = Object.assign(Object.assign({}, data), { id: "local", taskId, timeCreated: Date.now(), developer: this.developer, repo: this.repo });
199
+ LocalStorage.tasks[taskId] = Object.assign(Object.assign({}, data), { id: "local", taskId, timeCreated: Date.now(), developer: this.developer, repo: this.repo, chain: this.chain });
200
200
  return taskId;
201
201
  });
202
202
  }
@@ -1 +1 @@
1
- {"version":3,"file":"local.js","sourceRoot":"","sources":["../../../../../src/cloud/local.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAc,MAAM,MAAM,CAAC;AACzC,OAAO,EAAE,KAAK,EAAiB,MAAM,SAAS,CAAC;AAG/C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAI7E,MAAM,OAAO,UAAW,SAAQ,KAAK;IAEnC,YAAY,MAMX;QACC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QA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IAED,MAAM,CAAO,QAAQ,CAAC,IAAY;;YAChC,MAAM,QAAQ,GAAG,IAAI,GAAG,QAAQ,CAAC;YACjC,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC,CAAC;YACtC,IAAI,IAAI,KAAK,SAAS;gBAAE,OAAO;YAC/B,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;YAC9B,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;YAC9B,YAAY,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;YAC9C,YAAY,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAClC,CAAC;KAAA;;AA1BM,iBAAI,GAA+B,EAAE,CAAC;AACtC,iBAAI,GAA8B,EAAE,CAAC;AACrC,yBAAY,GAEf,EAAE,CAAC;AACA,kBAAK,GAAgC,EAAE,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { blockchain } from "../networks";
1
2
  export interface TaskData {
2
3
  id: string;
3
4
  taskId: string;
@@ -8,4 +9,6 @@ export interface TaskData {
8
9
  userId?: string;
9
10
  args?: string;
10
11
  metadata?: string;
12
+ chain: blockchain;
13
+ webhook?: string;
11
14
  }
@@ -1,4 +1,4 @@
1
- export { initBlockchain, Memory, makeString, sleep, accountBalance, accountBalanceMina, formatTime, MinaNetworkInstance, currentNetwork, getNetworkIdHash, getDeployer, };
1
+ export { initBlockchain, Memory, makeString, sleep, accountBalance, accountBalanceMina, formatTime, MinaNetworkInstance, currentNetwork, getNetworkIdHash, getCurrentNetwork, getDeployer, };
2
2
  import { PublicKey, PrivateKey, UInt64, Field } from "o1js";
3
3
  import { blockchain, MinaNetwork } from "./networks";
4
4
  interface MinaNetworkInstance {
@@ -11,8 +11,9 @@ interface MinaNetworkInstance {
11
11
  }
12
12
  declare let currentNetwork: MinaNetworkInstance | undefined;
13
13
  declare function getNetworkIdHash(): Field;
14
+ declare function getCurrentNetwork(): MinaNetworkInstance;
14
15
  declare function getDeployer(): PrivateKey | undefined;
15
- declare function initBlockchain(instance: blockchain, deployersNumber?: number): MinaNetworkInstance;
16
+ declare function initBlockchain(instance: blockchain, deployersNumber?: number): Promise<MinaNetworkInstance>;
16
17
  declare function accountBalance(address: PublicKey): Promise<UInt64>;
17
18
  declare function accountBalanceMina(address: PublicKey): Promise<number>;
18
19
  declare function sleep(ms: number): Promise<unknown>;
@@ -1,6 +1,6 @@
1
1
  import { __awaiter } from "tslib";
2
- export { initBlockchain, Memory, makeString, sleep, accountBalance, accountBalanceMina, formatTime, currentNetwork, getNetworkIdHash, getDeployer, };
3
- import { Mina, PrivateKey, UInt64, fetchAccount, CircuitString, } from "o1js";
2
+ export { initBlockchain, Memory, makeString, sleep, accountBalance, accountBalanceMina, formatTime, currentNetwork, getNetworkIdHash, getCurrentNetwork, getDeployer, };
3
+ import { Mina, PrivateKey, UInt64, fetchAccount, Encoding, Poseidon, } from "o1js";
4
4
  import { networks, Local } from "./networks";
5
5
  let currentNetwork = undefined;
6
6
  function getNetworkIdHash() {
@@ -9,6 +9,12 @@ function getNetworkIdHash() {
9
9
  }
10
10
  return currentNetwork.networkIdHash;
11
11
  }
12
+ function getCurrentNetwork() {
13
+ if (currentNetwork === undefined) {
14
+ throw new Error("Network is not initialized");
15
+ }
16
+ return currentNetwork;
17
+ }
12
18
  function getDeployer() {
13
19
  var _a;
14
20
  if (currentNetwork === undefined) {
@@ -16,87 +22,60 @@ function getDeployer() {
16
22
  }
17
23
  return (_a = currentNetwork.keys[0]) === null || _a === void 0 ? void 0 : _a.privateKey;
18
24
  }
19
- /*function getNetworkIdHash(params: {
20
- chainId?: blockchain;
21
- verbose?: boolean;
22
- }): Field {
23
- const { chainId, verbose } = params;
24
- if (chainId !== undefined) {
25
- if (verbose) console.log(`Chain ID: ${chainId}`);
26
- return CircuitString.fromString(chainId).hash();
27
- }
28
- const networkId = Mina.getNetworkId();
29
- if (verbose) console.log(`Network ID: ${networkId}`);
30
- if (networkId === "testnet")
31
- throw new Error(
32
- "Network ID is not set, please call initBlockchain() first"
33
- );
34
-
35
- if (networkId === "mainnet")
36
- return CircuitString.fromString("mainnet").hash();
37
- else {
38
- if (
39
- networkId.custom === undefined ||
40
- typeof networkId.custom !== "string"
41
- ) {
42
- throw new Error(
43
- "Network ID is not set, please call initBlockchain() first"
44
- );
45
- }
46
- return CircuitString.fromString(networkId.custom).hash();
47
- }
48
- }
49
- */
50
- function initBlockchain(instance, deployersNumber = 0) {
51
- if (instance === "mainnet") {
52
- throw new Error("Mainnet is not supported yet by zkApps");
53
- }
54
- if (instance === "local") {
55
- const local = Mina.LocalBlockchain({
56
- proofsEnabled: true,
25
+ function initBlockchain(instance_1) {
26
+ return __awaiter(this, arguments, void 0, function* (instance, deployersNumber = 0) {
27
+ if (instance === "mainnet") {
28
+ throw new Error("Mainnet is not supported yet by zkApps");
29
+ }
30
+ const networkIdHash = Poseidon.hash(Encoding.stringToFields(instance));
31
+ // await used for compatibility with future versions of o1js
32
+ if (instance === "local") {
33
+ const local = yield Mina.LocalBlockchain({
34
+ proofsEnabled: true,
35
+ });
36
+ yield Mina.setActiveInstance(local);
37
+ currentNetwork = {
38
+ keys: local.testAccounts,
39
+ network: Local,
40
+ networkIdHash,
41
+ };
42
+ return currentNetwork;
43
+ }
44
+ const network = networks.find((n) => n.chainId === instance);
45
+ if (network === undefined) {
46
+ throw new Error("Unknown network");
47
+ }
48
+ const networkInstance = Mina.Network({
49
+ mina: network.mina,
50
+ archive: network.archive,
51
+ lightnetAccountManager: network.accountManager,
57
52
  });
58
- Mina.setActiveInstance(local);
53
+ yield Mina.setActiveInstance(networkInstance);
54
+ const keys = [];
55
+ if (deployersNumber > 0) {
56
+ if (instance === "lighnet") {
57
+ throw new Error("Use await Lightnet.acquireKeyPair() to get keys for Lightnet");
58
+ }
59
+ else {
60
+ const deployers = process.env.DEPLOYERS;
61
+ if (deployers === undefined ||
62
+ Array.isArray(deployers) === false ||
63
+ deployers.length < deployersNumber)
64
+ throw new Error("Deployers are not set");
65
+ for (let i = 0; i < deployersNumber; i++) {
66
+ const privateKey = PrivateKey.fromBase58(deployers[i]);
67
+ const publicKey = privateKey.toPublicKey();
68
+ keys.push({ publicKey, privateKey });
69
+ }
70
+ }
71
+ }
59
72
  currentNetwork = {
60
- keys: local.testAccounts,
61
- network: Local,
62
- networkIdHash: CircuitString.fromString("local").hash(),
73
+ keys,
74
+ network,
75
+ networkIdHash,
63
76
  };
64
77
  return currentNetwork;
65
- }
66
- const network = networks.find((n) => n.chainId === instance);
67
- if (network === undefined) {
68
- throw new Error("Unknown network");
69
- }
70
- const networkInstance = Mina.Network({
71
- mina: network.mina,
72
- archive: network.archive,
73
- lightnetAccountManager: network.accountManager,
74
78
  });
75
- Mina.setActiveInstance(networkInstance);
76
- const keys = [];
77
- if (deployersNumber > 0) {
78
- if (instance === "lighnet") {
79
- throw new Error("Use await Lightnet.acquireKeyPair() to get keys for Lightnet");
80
- }
81
- else {
82
- const deployers = process.env.DEPLOYERS;
83
- if (deployers === undefined ||
84
- Array.isArray(deployers) === false ||
85
- deployers.length < deployersNumber)
86
- throw new Error("Deployers are not set");
87
- for (let i = 0; i < deployersNumber; i++) {
88
- const privateKey = PrivateKey.fromBase58(deployers[i]);
89
- const publicKey = privateKey.toPublicKey();
90
- keys.push({ publicKey, privateKey });
91
- }
92
- }
93
- }
94
- currentNetwork = {
95
- keys,
96
- network,
97
- networkIdHash: CircuitString.fromString(instance).hash(),
98
- };
99
- return currentNetwork;
100
79
  }
101
80
  function accountBalance(address) {
102
81
  return __awaiter(this, void 0, void 0, function* () {
@@ -1 +1 @@
1
- {"version":3,"file":"mina.js","sourceRoot":"","sources":["../../../../src/mina.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,cAAc,EACd,MAAM,EACN,UAAU,EACV,KAAK,EACL,cAAc,EACd,kBAAkB,EAClB,UAAU,EAEV,cAAc,EACd,gBAAgB,EAChB,WAAW,GACZ,CAAC;AAEF,OAAO,EACL,IAAI,EAEJ,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AAG,CAAC,GAC7D,MAAM,KAAK,CAAC;gBACV,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,eAAe,GAAG,CAAC,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC,CAAC,QAAQ,EAAE,GAAG,KAC3D,EAAE,CAAC;QAEP,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC3B,CAAC;;AAzCD,kEAAkE;AAC3D,UAAG,GAAW,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
- export { blockchain, MinaNetwork, networks, Mainnet, Berkeley, Devnet, Zeko, TestWorld2, Lightnet, Local, };
2
- type blockchain = "local" | "berkeley" | "devnet" | "lighnet" | "mainnet" | "testworld2" | "zeko";
1
+ export { blockchain, MinaNetwork, networks, Mainnet, Devnet, Zeko, Lightnet, Local, };
2
+ type blockchain = "local" | "devnet" | "lighnet" | "mainnet" | "zeko" | "mainnet";
3
3
  interface MinaNetwork {
4
4
  mina: string[];
5
5
  archive: string[];
@@ -11,9 +11,7 @@ interface MinaNetwork {
11
11
  }
12
12
  declare const Mainnet: MinaNetwork;
13
13
  declare const Local: MinaNetwork;
14
- declare const Berkeley: MinaNetwork;
15
14
  declare const Devnet: MinaNetwork;
16
15
  declare const Zeko: MinaNetwork;
17
- declare const TestWorld2: MinaNetwork;
18
16
  declare const Lightnet: MinaNetwork;
19
17
  declare const networks: MinaNetwork[];
@@ -1,4 +1,4 @@
1
- export { networks, Mainnet, Berkeley, Devnet, Zeko, TestWorld2, Lightnet, Local, };
1
+ export { networks, Mainnet, Devnet, Zeko, Lightnet, Local, };
2
2
  const Mainnet = {
3
3
  mina: [],
4
4
  archive: [],
@@ -9,20 +9,6 @@ const Local = {
9
9
  archive: [],
10
10
  chainId: "local",
11
11
  };
12
- const Berkeley = {
13
- mina: [
14
- "https://api.minascan.io/node/berkeley/v1/graphql",
15
- "https://proxy.berkeley.minaexplorer.com/graphql",
16
- ],
17
- archive: [
18
- "https://api.minascan.io/archive/berkeley/v1/graphql",
19
- "https://archive.berkeley.minaexplorer.com",
20
- ],
21
- explorerAccountUrl: "https://minascan.io/berkeley/account/",
22
- explorerTransactionUrl: "https://minascan.io/berkeley/tx/",
23
- chainId: "berkeley",
24
- name: "Berkeley",
25
- };
26
12
  const Devnet = {
27
13
  mina: [
28
14
  "https://api.minascan.io/node/devnet/v1/graphql",
@@ -42,14 +28,6 @@ const Zeko = {
42
28
  archive: [],
43
29
  chainId: "zeko",
44
30
  };
45
- const TestWorld2 = {
46
- mina: ["https://api.minascan.io/node/testworld/v1/graphql"],
47
- archive: ["https://archive.testworld.minaexplorer.com"],
48
- explorerAccountUrl: "https://minascan.io/testworld/account/",
49
- explorerTransactionUrl: "https://minascan.io/testworld/tx/",
50
- chainId: "testworld2",
51
- name: "TestWorld2",
52
- };
53
31
  const Lightnet = {
54
32
  mina: ["http://localhost:8080/graphql"],
55
33
  archive: ["http://localhost:8282"],
@@ -57,13 +35,34 @@ const Lightnet = {
57
35
  chainId: "lighnet",
58
36
  name: "Lightnet",
59
37
  };
60
- const networks = [
61
- Mainnet,
62
- Local,
63
- Berkeley,
64
- Devnet,
65
- Zeko,
66
- TestWorld2,
67
- Lightnet,
68
- ];
38
+ const networks = [Mainnet, Local, Devnet, Zeko, Lightnet];
39
+ /*
40
+
41
+ // not supported by o1js 0.18.0
42
+
43
+ const Berkeley: MinaNetwork = {
44
+ mina: [
45
+ "https://api.minascan.io/node/berkeley/v1/graphql",
46
+ "https://proxy.berkeley.minaexplorer.com/graphql",
47
+ ],
48
+ archive: [
49
+ "https://api.minascan.io/archive/berkeley/v1/graphql",
50
+ "https://archive.berkeley.minaexplorer.com",
51
+ ],
52
+ explorerAccountUrl: "https://minascan.io/berkeley/account/",
53
+ explorerTransactionUrl: "https://minascan.io/berkeley/tx/",
54
+ chainId: "berkeley",
55
+ name: "Berkeley",
56
+ };
57
+
58
+ const TestWorld2: MinaNetwork = {
59
+ mina: ["https://api.minascan.io/node/testworld/v1/graphql"],
60
+ archive: ["https://archive.testworld.minaexplorer.com"],
61
+ explorerAccountUrl: "https://minascan.io/testworld/account/",
62
+ explorerTransactionUrl: "https://minascan.io/testworld/tx/",
63
+ chainId: "testworld2",
64
+ name: "TestWorld2",
65
+ };
66
+
67
+ */
69
68
  //# sourceMappingURL=networks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"networks.js","sourceRoot":"","sources":["../../../../src/networks.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,KAAK,GACN,CAAC;AAqBF,MAAM,OAAO,GAAgB;IAC3B,IAAI,EAAE,EAAE;IACR,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,SAAS;CACnB,CAAC;AAEF,MAAM,KAAK,GAAgB;IACzB,IAAI,EAAE,EAAE;IACR,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,OAAO;CACjB,CAAC;AAEF,MAAM,QAAQ,GAAgB;IAC5B,IAAI,EAAE;QACJ,kDAAkD;QAClD,iDAAiD;KAClD;IACD,OAAO,EAAE;QACP,qDAAqD;QACrD,2CAA2C;KAC5C;IACD,kBAAkB,EAAE,uCAAuC;IAC3D,sBAAsB,EAAE,kCAAkC;IAC1D,OAAO,EAAE,UAAU;IACnB,IAAI,EAAE,UAAU;CACjB,CAAC;AAEF,MAAM,MAAM,GAAgB;IAC1B,IAAI,EAAE;QACJ,gDAAgD;QAChD,+CAA+C;KAChD;IACD,OAAO,EAAE;QACP,mDAAmD;QACnD,yCAAyC;KAC1C;IACD,kBAAkB,EAAE,qCAAqC;IACzD,sBAAsB,EAAE,gCAAgC;IACxD,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,QAAQ;CACf,CAAC;AAEF,MAAM,IAAI,GAAgB;IACxB,IAAI,EAAE,CAAC,8CAA8C,CAAC;IACtD,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,MAAM;CAChB,CAAC;AAEF,MAAM,UAAU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