zkcloudworker 0.18.5 → 0.18.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. package/dist/ts/mina/local/local.d.ts +6 -1
  2. package/dist/ts/mina/local/local.js +2 -1
  3. package/dist/ts/mina/local/local.js.map +1 -1
  4. package/dist/ts/mina/transactions/account.js +1 -1
  5. package/dist/ts/mina/transactions/account.js.map +1 -1
  6. package/dist/ts/mina/transactions/nonce.js +2 -1
  7. package/dist/ts/mina/transactions/nonce.js.map +1 -1
  8. package/dist/ts/mina/transactions/send.d.ts +1 -1
  9. package/dist/ts/mina/transactions/send.js +3 -2
  10. package/dist/ts/mina/transactions/send.js.map +1 -1
  11. package/dist/ts/mina/utils/fetch.js +1 -1
  12. package/dist/ts/mina/utils/indexed-map.js +2 -1
  13. package/dist/ts/mina/utils/indexed-map.js.map +1 -1
  14. package/dist/web/mina/local/local.d.ts +6 -1
  15. package/dist/web/mina/local/local.js +2 -1
  16. package/dist/web/mina/local/local.js.map +1 -1
  17. package/dist/web/mina/transactions/account.js +1 -1
  18. package/dist/web/mina/transactions/account.js.map +1 -1
  19. package/dist/web/mina/transactions/nonce.js +2 -1
  20. package/dist/web/mina/transactions/nonce.js.map +1 -1
  21. package/dist/web/mina/transactions/send.d.ts +1 -1
  22. package/dist/web/mina/transactions/send.js +3 -2
  23. package/dist/web/mina/transactions/send.js.map +1 -1
  24. package/dist/web/mina/utils/fetch.js +1 -1
  25. package/dist/web/mina/utils/indexed-map.js +2 -1
  26. package/dist/web/mina/utils/indexed-map.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/mina/local/local.ts +7 -9
  29. package/src/mina/transactions/account.ts +1 -1
  30. package/src/mina/transactions/nonce.ts +2 -1
  31. package/src/mina/transactions/send.ts +4 -2
  32. package/src/mina/utils/fetch.ts +1 -1
  33. package/src/mina/utils/indexed-map.ts +2 -1
@@ -1,4 +1,9 @@
1
- import { blockchain, TransactionMetadata, CloudTransaction, DeployerKeyPair, TaskData, JobData, JobEvent, Cloud, zkCloudWorker } from "../../cloud/index.js";
1
+ import { CloudTransaction, DeployerKeyPair, Cloud } from "../../cloud/worker/cloud.js";
2
+ import { JobData, JobEvent } from "../../cloud/worker/job.js";
3
+ import { TaskData } from "../../cloud/worker/task.js";
4
+ import { zkCloudWorker } from "../../cloud/worker/worker.js";
5
+ import { TransactionMetadata } from "../../cloud/worker/transaction.js";
6
+ import { blockchain } from "../../cloud/networks.js";
2
7
  import { ApiCommand } from "../api/api.js";
3
8
  /**
4
9
  * LocalCloud is a cloud that runs on the local machine for testing and development
@@ -1,4 +1,5 @@
1
- import { makeString, Cloud, } from "../../cloud/index.js";
1
+ import { Cloud, } from "../../cloud/worker/cloud.js";
2
+ import { makeString } from "../../cloud/utils/utils.js";
2
3
  /**
3
4
  * LocalCloud is a cloud that runs on the local machine for testing and development
4
5
  * It uses LocalStorage to store jobs, tasks, transactions, and data
@@ -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,sBAAsB,CAAC;AAG9B;;;;;;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,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,GACxE,GAAG,CAAC;QACN,KAAK,CAAC;YACJ,EAAE,EAAE,EAAE;YACN,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,MAAM,IAAI,QAAQ;YAC1B,MAAM,EAAE,MAAM,IAAI,QAAQ;YAC1B,KAAK,EAAE,KAAK,IAAI,SAAS;YACzB,SAAS,EAAE,SAAS;YACpB,I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C;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"}
@@ -1,4 +1,4 @@
1
- import { fetchMinaAccount } from "../index.js";
1
+ import { fetchMinaAccount } from "../utils/fetch.js";
2
2
  import { Mina, PublicKey } from "o1js";
3
3
  export async function accountExists(address, tokenId) {
4
4
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"account.js","sourceRoot":"","sources":["../../../../src/mina/transactions/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAS,MAAM,MAAM,CAAC;AAE9C,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,OAA2B,EAC3B,OAAe;IAEf,IAAI,CAAC;QACH,MAAM,SAAS,GACb,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;QACxE,MAAM,gBAAgB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QAC7D,OAAO,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;IAAC,OAAO,K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CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;YAChE,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,8BAA8B,EAAE,KAAK,CAAC,CAAC;QACrD,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,OAA2B;IAE3B,IAAI,CAAC,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAC5C,OAAO,CAAC,KAAK,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;QAC3D,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAChD,IAAI,OAAO,KAAK,SAAS,CAAC,QAAQ,EAAE,EAAE,CAAC;YACrC,OAAO,CAAC,GAAG,CACT,oCAAoC,EACpC,OAAO,EACP,SAAS,CAAC,QAAQ,EAAE,CACrB,CAAC;YACF,OAAO,KAAK,CAAC;QACf,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,oBAAoB,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;QACxD,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { getZkAppTxsFromBlockBerry, getPaymentTxsFromBlockBerry, } from "./blockberry.js";
2
- import { fetchMinaAccount, getCurrentNetwork } from "../index.js";
2
+ import { fetchMinaAccount } from "../utils/fetch.js";
3
+ import { getCurrentNetwork } from "../utils/mina.js";
3
4
  import { Mina, PublicKey } from "o1js";
4
5
  export async function getNonce(params) {
5
6
  const { account, chain, blockBerryApiKey } = params;
@@ -1 +1 @@
1
- {"version":3,"file":"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,CAAC,SAAS,CAAC;QACd,MAAM,SAAS,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAChD,MAAM,gBAAgB,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;QACtC,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QACxE,MAAM,eAAe,GAAG,sBAAsB;YAC5C,CAAC,CAAC,CAAC,MAAM,sBAAsB,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC;YAC5C,CAAC,CAAC,CAAC,CAAC,CAAC;QACP,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,eAAe,GAAG,CAAC,CAAC,CAAC;QACzD,IAAI,OAAO,IAAI,KAAK,GAAG,WAAW;YAChC,OAAO,CAAC,GAAG,CACT,sBAAsB,WAAW,OAAO,KAAK,QAAQ,OAAO,EAAE,CAC/D,CAAC;QACJ,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Mina } from "o1js";
2
- import { blockchain } from "../../cloud/index.js";
2
+ import { blockchain } from "../../cloud/networks.js";
3
3
  /**
4
4
  * The function `sendTx` sends a transaction, checks account updates, and waits for
5
5
  * confirmation on the blockchain.
@@ -1,6 +1,7 @@
1
1
  import { checkZkappTransaction } from "o1js";
2
- import { sleep } from "../../cloud/index.js";
3
- import { fetchMinaAccount, getCurrentNetwork } from "../index.js";
2
+ import { sleep } from "../../cloud/utils/utils.js";
3
+ import { fetchMinaAccount } from "../utils/fetch.js";
4
+ import { getCurrentNetwork } from "../utils/mina.js";
4
5
  /**
5
6
  * The function `sendTx` sends a transaction, checks account updates, and waits for
6
7
  * confirmation on the blockchain.
@@ -1 +1 @@
1
- {"version":3,"file":"send.js","sourceRoot":"","sources":["../../../../src/mina/transactions/send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAA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C1D,OAAO,CAAC,KAAK,CACX,GAAG,KAAK,uCAAuC,UAAU,CAAC,IAAI,gBAAgB,UAAU,CAAC,MAAM,EAAE,CAClG,CAAC;YACJ,CAAC;YACD,OAAO,UAAU,CAAC;QACpB,CAAC;;YAAM,OAAO,MAAM,CAAC;IACvB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,KAAK,MAAM;YAAE,OAAO,CAAC,KAAK,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,MAGrC;IACC,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,iBAAiB,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,MAAM,CAAC;IACrE,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,MAAM;QACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAEzC,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACnD,OAAO;YACL,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,QAAQ,EAAE,OAAO,IAAI,KAAK;SACnC,CAAC;IACJ,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,OAAO,CAAC,KAAK,CACX,uDAAuD,EACvD,IAAI,EACJ,KAAK,CACN,CAAC;QACF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,IAAI,sBAAsB,EAAE,CAAC;IAC7E,CAAC;AACH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Mina, fetchAccount, checkZkappTransaction, } from "o1js";
2
- import { sleep } from "../../cloud/utils/index.js";
2
+ import { sleep } from "../../cloud/utils/utils.js";
3
3
  /**
4
4
  * Fetches the Mina account for a given public key with error handling
5
5
  * @param params the parameters for fetching the account
@@ -1,5 +1,6 @@
1
1
  import { Experimental, Field } from "o1js";
2
- import { bigintToBase64, bigintFromBase64, sleep } from "../../cloud/index.js";
2
+ import { bigintToBase64, bigintFromBase64 } from "../../cloud/utils/base64.js";
3
+ import { sleep } from "../../cloud/utils/utils.js";
3
4
  import { pinJSON } from "../storage/pinata.js";
4
5
  const { IndexedMerkleMap } = Experimental;
5
6
  export async function loadIndexedMerkleMap(params) {
@@ -1 +1 @@
1
- {"version":3,"file":"indexed-map.js","sourceRoot":"","sources":["../../../../src/mina/utils/indexed-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,MAAM,EAAE,gBAAgB,EAAE,GAAG,YAAY,CAAC;AAW1C,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,MAK1C;IACC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,GAAG,KAAK,EAAE,QAAQ,GAAG,CAAC,EAAE,GAAG,MAAM,CAAC;IAC5D,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IACzB,IAAI,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC;IAChC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,OAAO,EAAE,CAAC;QAC1E,OAAO,EAAE,CAAC;QACV,MAAM,KAAK,CAAC,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,uBAAuB;QACpD,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IACD,IAAI,CAAC,QAAQ,CAAC,EAAE,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AC,CAAC,GAAG,GAAG,CAAC,CAAC;YACxC,YAAY,EAAE,CAAC,GAAG,YAAY,CAAC;SAChC,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -1,4 +1,9 @@
1
- import { blockchain, TransactionMetadata, CloudTransaction, DeployerKeyPair, TaskData, JobData, JobEvent, Cloud, zkCloudWorker } from "../../cloud/index.js";
1
+ import { CloudTransaction, DeployerKeyPair, Cloud } from "../../cloud/worker/cloud.js";
2
+ import { JobData, JobEvent } from "../../cloud/worker/job.js";
3
+ import { TaskData } from "../../cloud/worker/task.js";
4
+ import { zkCloudWorker } from "../../cloud/worker/worker.js";
5
+ import { TransactionMetadata } from "../../cloud/worker/transaction.js";
6
+ import { blockchain } from "../../cloud/networks.js";
2
7
  import { ApiCommand } from "../api/api.js";
3
8
  /**
4
9
  * LocalCloud is a cloud that runs on the local machine for testing and development
@@ -1,4 +1,5 @@
1
- import { makeString, Cloud, } from "../../cloud/index.js";
1
+ import { Cloud, } from "../../cloud/worker/cloud.js";
2
+ import { makeString } from "../../cloud/utils/utils.js";
2
3
  /**
3
4
  * LocalCloud is a cloud that runs on the local machine for testing and development
4
5
  * It uses LocalStorage to store jobs, tasks, transactions, and data
@@ -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,sBAAsB,CAAC;AAG9B;;;;;;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,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,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E,MAAM,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"}
@@ -1,4 +1,4 @@
1
- import { fetchMinaAccount } from "../index.js";
1
+ import { fetchMinaAccount } from "../utils/fetch.js";
2
2
  import { Mina, PublicKey } from "o1js";
3
3
  export async function accountExists(address, tokenId) {
4
4
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"account.js","sourceRoot":"","sources":["../../../../src/mina/transactions/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAS,MAAM,MAAM,CAAC;AAE9C,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,OAA2B,EAC3B,OAAe;IAEf,IAAI,CAAC;QACH,MAAM,SAAS,GACb,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,UA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Berry, } from "./blockberry.js";
2
- import { fetchMinaAccount, getCurrentNetwork } from "../index.js";
2
+ import { fetchMinaAccount } from "../utils/fetch.js";
3
+ import { getCurrentNetwork } from "../utils/mina.js";
3
4
  import { Mina, PublicKey } from "o1js";
4
5
  export async function getNonce(params) {
5
6
  const { account, chain, blockBerryApiKey } = params;
@@ -1 +1 @@
1
- {"version":3,"file":"nonce.js","sourceRoot":"","sources":["../../../../src/mina/transactions/nonce.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAGvC,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,MAI9B;IAKC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,GAAG,MAAM,CAAC;IACpD,IAAI,CAAC;QACH,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,EAAE,EAAE,CAAC;YAChE,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,CAAC,CAAC;gBACT,OAAO,EAAE,qBAAqB;aAC/B,CAAC;QACJ,CAAC;QAED,IACE,gBAAgB,KAAK,SAAS;YAC9B,gBAAgB,KAAK,IAAI;YACzB,gBAAgB,KAAK,EAAE,EACvB,CAAC;YACD,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,CAAC,CAAC;gBACT,OAAO,EAAE,8BAA8B;aACxC,CAAC;QACJ,CAAC;QACD,MAAM,eAAe,GAAG,yBAAyB,CAAC;YAChD,OAAO;YACP,KAAK;YACL,gBAAgB;SACjB,CAAC,CAAC;QACH,MAAM,UAAU,GAAG,2BAA2B,CAAC;YAC7C,OAAO;YACP,KAAK;YACL,gBAAgB;SACjB,CAAC,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U,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QAClE,OAAO,KAAK,CAAC;IACf,CAAC;SAAM,CAAC;QACN,MAAM,sBAAsB,GAAG,gBAAgB;YAC7C,CAAC,CAAC,QAAQ,CAAC;gBACP,OAAO;gBACP,gBAAgB;gBAChB,KAAK;aACN,CAAC;YACJ,CAAC,CAAC,SAAS,CAAC;QACd,MAAM,SAAS,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAChD,MAAM,gBAAgB,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;QACtC,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QACxE,MAAM,eAAe,GAAG,sBAAsB;YAC5C,CAAC,CAAC,CAAC,MAAM,sBAAsB,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC;YAC5C,CAAC,CAAC,CAAC,CAAC,CAAC;QACP,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,eAAe,GAAG,CAAC,CAAC,CAAC;QACzD,IAAI,OAAO,IAAI,KAAK,GAAG,WAAW;YAChC,OAAO,CAAC,GAAG,CACT,sBAAsB,WAAW,OAAO,KAAK,QAAQ,OAAO,EAAE,CAC/D,CAAC;QACJ,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Mina } from "o1js";
2
- import { blockchain } from "../../cloud/index.js";
2
+ import { blockchain } from "../../cloud/networks.js";
3
3
  /**
4
4
  * The function `sendTx` sends a transaction, checks account updates, and waits for
5
5
  * confirmation on the blockchain.
@@ -1,6 +1,7 @@
1
1
  import { checkZkappTransaction } from "o1js";
2
- import { sleep } from "../../cloud/index.js";
3
- import { fetchMinaAccount, getCurrentNetwork } from "../index.js";
2
+ import { sleep } from "../../cloud/utils/utils.js";
3
+ import { fetchMinaAccount } from "../utils/fetch.js";
4
+ import { getCurrentNetwork } from "../utils/mina.js";
4
5
  /**
5
6
  * The function `sendTx` sends a transaction, checks account updates, and waits for
6
7
  * confirmation on the blockchain.
@@ -1 +1 @@
1
- {"version":3,"file":"send.js","sourceRoot":"","sources":["../../../../src/mina/transactions/send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,MAAM,CAAC;AAE7C,OAAO,EAAE,KAAK,EAAc,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAElE;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,MAM5B;IAMC,MAAM,EACJ,EAAE,EACF,WAAW,GAAG,EAAE,EAChB,OAAO,GAAG,IAAI,EACd,IAAI,GAAG,IAAI,EACX,KAAK,GAAG,iBAAiB,EAAE,CAAC,OAAO,CAAC,OAAO,GAC5C,GAAG,MAAM,CAAC;IACX,yBAAyB;IACzB,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,cAAc,CAAC;IAC9D,MAAM,OAAO,GAIP,EAAE,CAAC;IACT,IAAI,uBAAuB,GAAG,CAAC,CAAC;IAChC,0EAA0E;IAC1E,KAAK,MAAM,EAAE,IAAI,cAAc,EAAE,CAAC;QAChC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC;QAC1D,IAAI,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;YAC3B,uBAAuB,EAAE,CAAC;YAC1B,IAAI,iBAAiB,CAAC,QAAQ,KAAK,KAAK;gBACtC,OAAO,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAC;QACtE,CAAC;aAAM,IAAI,iBAAiB,CAAC,QAAQ,KAAK,IAAI;YAC5C,OAAO,CAAC,KAAK,CAA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EAAE,CAAC;IAC7E,CAAC;AACH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Mina, fetchAccount, checkZkappTransaction, } from "o1js";
2
- import { sleep } from "../../cloud/utils/index.js";
2
+ import { sleep } from "../../cloud/utils/utils.js";
3
3
  /**
4
4
  * Fetches the Mina account for a given public key with error handling
5
5
  * @param params the parameters for fetching the account
@@ -1,5 +1,6 @@
1
1
  import { Experimental, Field } from "o1js";
2
- import { bigintToBase64, bigintFromBase64, sleep } from "../../cloud/index.js";
2
+ import { bigintToBase64, bigintFromBase64 } from "../../cloud/utils/base64.js";
3
+ import { sleep } from "../../cloud/utils/utils.js";
3
4
  import { pinJSON } from "../storage/pinata.js";
4
5
  const { IndexedMerkleMap } = Experimental;
5
6
  export async function loadIndexedMerkleMap(params) {
@@ -1 +1 @@
1
- {"version":3,"file":"indexed-map.js","sourceRoot":"","sources":["../../../../src/mina/utils/indexed-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,MAAM,EAAE,gBAAgB,EAAE,GAAG,YAAY,CAAC;AAW1C,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,MAK1C;IACC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,GAAG,KAAK,EAAE,QAAQ,GAAG,CAAC,EAAE,GAAG,MAAM,CAAC;IAC5D,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IACzB,IAAI,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC;IAChC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC,GAAG,E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I,CAAC,CAAC;IACrD,GAAG,CAAC,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;IACzD,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,EAAE;QAC3B,OAAO;YACL,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;YACxC,YAAY,EAAE,CAAC,GAAG,YAAY,CAAC;SAChC,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,OAAO,GAAG,CAAC;AACb,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zkcloudworker",
3
- "version": "0.18.5",
3
+ "version": "0.18.6",
4
4
  "type": "module",
5
5
  "description": "zkCloudWorker library",
6
6
  "author": "zkCloudWorker",
@@ -1,16 +1,14 @@
1
1
  import {
2
- makeString,
3
- blockchain,
4
- TransactionMetadata,
5
2
  CloudTransaction,
6
3
  DeployerKeyPair,
7
- TaskData,
8
- JobData,
9
- JobEvent,
10
4
  Cloud,
11
- Local,
12
- zkCloudWorker,
13
- } from "../../cloud/index.js";
5
+ } from "../../cloud/worker/cloud.js";
6
+ import { JobData, JobEvent } from "../../cloud/worker/job.js";
7
+ import { TaskData } from "../../cloud/worker/task.js";
8
+ import { zkCloudWorker } from "../../cloud/worker/worker.js";
9
+ import { TransactionMetadata } from "../../cloud/worker/transaction.js";
10
+ import { makeString } from "../../cloud/utils/utils.js";
11
+ import { blockchain, Local } from "../../cloud/networks.js";
14
12
  import { ApiCommand } from "../api/api.js";
15
13
 
16
14
  /**
@@ -1,4 +1,4 @@
1
- import { fetchMinaAccount } from "../index.js";
1
+ import { fetchMinaAccount } from "../utils/fetch.js";
2
2
  import { Mina, PublicKey, Field } from "o1js";
3
3
 
4
4
  export async function accountExists(
@@ -3,7 +3,8 @@ import {
3
3
  getZkAppTxsFromBlockBerry,
4
4
  getPaymentTxsFromBlockBerry,
5
5
  } from "./blockberry.js";
6
- import { fetchMinaAccount, getCurrentNetwork } from "../index.js";
6
+ import { fetchMinaAccount } from "../utils/fetch.js";
7
+ import { getCurrentNetwork } from "../utils/mina.js";
7
8
  import { Mina, PublicKey } from "o1js";
8
9
  import { blockchain } from "../../cloud/networks.js";
9
10
 
@@ -1,7 +1,9 @@
1
1
  import { checkZkappTransaction } from "o1js";
2
2
  import { Mina } from "o1js";
3
- import { sleep, blockchain } from "../../cloud/index.js";
4
- import { fetchMinaAccount, getCurrentNetwork } from "../index.js";
3
+ import { blockchain } from "../../cloud/networks.js";
4
+ import { sleep } from "../../cloud/utils/utils.js";
5
+ import { fetchMinaAccount } from "../utils/fetch.js";
6
+ import { getCurrentNetwork } from "../utils/mina.js";
5
7
 
6
8
  /**
7
9
  * The function `sendTx` sends a transaction, checks account updates, and waits for
@@ -5,7 +5,7 @@ import {
5
5
  fetchAccount,
6
6
  checkZkappTransaction,
7
7
  } from "o1js";
8
- import { sleep } from "../../cloud/utils/index.js";
8
+ import { sleep } from "../../cloud/utils/utils.js";
9
9
 
10
10
  /**
11
11
  * Fetches the Mina account for a given public key with error handling
@@ -1,5 +1,6 @@
1
1
  import { Experimental, Field } from "o1js";
2
- import { bigintToBase64, bigintFromBase64, sleep } from "../../cloud/index.js";
2
+ import { bigintToBase64, bigintFromBase64 } from "../../cloud/utils/base64.js";
3
+ import { sleep } from "../../cloud/utils/utils.js";
3
4
  import { pinJSON } from "../storage/pinata.js";
4
5
 
5
6
  const { IndexedMerkleMap } = Experimental;