zkcloudworker 0.1.17 → 0.1.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. package/LICENSE +201 -0
  2. package/dist/README.md +79 -0
  3. package/dist/lib/ts/src/cloud/cloud.d.ts +12 -0
  4. package/dist/lib/ts/src/cloud/local.d.ts +13 -0
  5. package/dist/lib/ts/src/cloud/local.js +29 -0
  6. package/{lib → dist/lib}/ts/src/mina.js +10 -3
  7. package/dist/lib/ts/tsconfig.tsbuildinfo +1 -0
  8. package/dist/lib/web/src/cloud/cloud.d.ts +12 -0
  9. package/{lib → dist/lib}/web/src/cloud/cloud.js.map +1 -1
  10. package/dist/lib/web/src/cloud/local.d.ts +13 -0
  11. package/dist/lib/web/src/cloud/local.js +39 -0
  12. package/dist/lib/web/src/cloud/local.js.map +1 -0
  13. package/{lib → dist/lib}/web/src/mina.js +10 -3
  14. package/{lib → dist/lib}/web/src/mina.js.map +1 -1
  15. package/dist/lib/web/tsconfig.web.tsbuildinfo +1 -0
  16. package/dist/package.json +49 -0
  17. package/dist/yarn.lock +94 -0
  18. package/jest-config.ts +32 -0
  19. package/package.json +50 -40
  20. package/src/api/api.ts +250 -0
  21. package/src/api/client-api.ts +186 -0
  22. package/src/cloud/cloud.ts +22 -0
  23. package/src/cloud/local.ts +34 -0
  24. package/src/config.ts +9 -0
  25. package/src/custom/backend.ts +30 -0
  26. package/src/fee.ts +7 -0
  27. package/src/index.ts +38 -0
  28. package/src/mina.ts +230 -0
  29. package/src/networks.ts +88 -0
  30. package/tsconfig.json +41 -0
  31. package/tsconfig.web.json +29 -0
  32. package/lib/ts/src/cloud/cloud.d.ts +0 -7
  33. package/lib/ts/tsconfig.tsbuildinfo +0 -1
  34. package/lib/web/src/cloud/cloud.d.ts +0 -7
  35. package/lib/web/tsconfig.web.tsbuildinfo +0 -1
  36. /package/{lib → dist/lib}/ts/src/api/api.d.ts +0 -0
  37. /package/{lib → dist/lib}/ts/src/api/api.js +0 -0
  38. /package/{lib → dist/lib}/ts/src/api/client-api.d.ts +0 -0
  39. /package/{lib → dist/lib}/ts/src/api/client-api.js +0 -0
  40. /package/{lib → dist/lib}/ts/src/cloud/cloud.js +0 -0
  41. /package/{lib → dist/lib}/ts/src/config.d.ts +0 -0
  42. /package/{lib → dist/lib}/ts/src/config.js +0 -0
  43. /package/{lib → dist/lib}/ts/src/custom/backend.d.ts +0 -0
  44. /package/{lib → dist/lib}/ts/src/custom/backend.js +0 -0
  45. /package/{lib → dist/lib}/ts/src/fee.d.ts +0 -0
  46. /package/{lib → dist/lib}/ts/src/fee.js +0 -0
  47. /package/{lib → dist/lib}/ts/src/index.d.ts +0 -0
  48. /package/{lib → dist/lib}/ts/src/index.js +0 -0
  49. /package/{lib → dist/lib}/ts/src/mina.d.ts +0 -0
  50. /package/{lib → dist/lib}/ts/src/networks.d.ts +0 -0
  51. /package/{lib → dist/lib}/ts/src/networks.js +0 -0
  52. /package/{lib → dist/lib}/web/src/api/api.d.ts +0 -0
  53. /package/{lib → dist/lib}/web/src/api/api.js +0 -0
  54. /package/{lib → dist/lib}/web/src/api/api.js.map +0 -0
  55. /package/{lib → dist/lib}/web/src/api/client-api.d.ts +0 -0
  56. /package/{lib → dist/lib}/web/src/api/client-api.js +0 -0
  57. /package/{lib → dist/lib}/web/src/api/client-api.js.map +0 -0
  58. /package/{lib → dist/lib}/web/src/cloud/cloud.js +0 -0
  59. /package/{lib → dist/lib}/web/src/config.d.ts +0 -0
  60. /package/{lib → dist/lib}/web/src/config.js +0 -0
  61. /package/{lib → dist/lib}/web/src/config.js.map +0 -0
  62. /package/{lib → dist/lib}/web/src/custom/backend.d.ts +0 -0
  63. /package/{lib → dist/lib}/web/src/custom/backend.js +0 -0
  64. /package/{lib → dist/lib}/web/src/custom/backend.js.map +0 -0
  65. /package/{lib → dist/lib}/web/src/fee.d.ts +0 -0
  66. /package/{lib → dist/lib}/web/src/fee.js +0 -0
  67. /package/{lib → dist/lib}/web/src/fee.js.map +0 -0
  68. /package/{lib → dist/lib}/web/src/index.d.ts +0 -0
  69. /package/{lib → dist/lib}/web/src/index.js +0 -0
  70. /package/{lib → dist/lib}/web/src/index.js.map +0 -0
  71. /package/{lib → dist/lib}/web/src/mina.d.ts +0 -0
  72. /package/{lib → dist/lib}/web/src/networks.d.ts +0 -0
  73. /package/{lib → dist/lib}/web/src/networks.js +0 -0
  74. /package/{lib → dist/lib}/web/src/networks.js.map +0 -0
@@ -0,0 +1 @@
1
+ {"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/tslib/tslib.d.ts","../../../src/config.ts","../../../node_modules/o1js/dist/node/bindings/mina-transaction/transaction-leaves-json.d.ts","../../../node_modules/o1js/dist/node/bindings/mina-transaction/gen/transaction-json.d.ts","../../../node_modules/o1js/dist/node/bindings/crypto/non-negative.d.ts","../../../node_modules/o1js/dist/node/bindings/lib/binable.d.ts","../../../node_modules/o1js/dist/node/bindings/lib/generic.d.ts","../../../node_modules/o1js/dist/node/bindings/lib/provable-generic.d.ts","../../../node_modules/o1js/dist/node/bindings/lib/provable-bigint.d.ts","../../../node_modules/o1js/dist/node/provable/field-bigint.d.ts","../../../node_modules/o1js/dist/node/lib/bool.d.ts","../../../node_modules/o1js/dist/node/lib/field.d.ts","../../../node_modules/o1js/dist/node/bindings/crypto/elliptic-curve.d.ts","../../../node_modules/o1js/dist/node/bindings/crypto/poseidon.d.ts","../../../node_modules/o1js/dist/node/bindings/crypto/constants.d.ts","../../../node_modules/o1js/dist/node/provable/poseidon-bigint.d.ts","../../../node_modules/o1js/dist/node/provable/curve-bigint.d.ts","../../../node_modules/o1js/dist/node/lib/ml/base.d.ts","../../../node_modules/o1js/dist/node/lib/scalar.d.ts","../../../node_modules/reflect-metadata/index.d.ts","../../../node_modules/o1js/dist/node/lib/group.d.ts","../../../node_modules/o1js/dist/node/lib/core.d.ts","../../../node_modules/o1js/dist/node/lib/util/types.d.ts","../../../node_modules/o1js/dist/node/bindings/lib/provable-snarky.d.ts","../../../node_modules/o1js/dist/node/lib/global-context.d.ts","../../../node_modules/o1js/dist/node/lib/provable-context.d.ts","../../../node_modules/o1js/dist/node/lib/provable.d.ts","../../../node_modules/o1js/dist/node/lib/circuit-value.d.ts","../../../node_modules/o1js/dist/node/lib/signature.d.ts","../../../node_modules/o1js/dist/node/lib/ml/conversion.d.ts","../../../node_modules/o1js/dist/node/bindings/compiled/node_bindings/plonk_wasm.d.cts","../../../node_modules/o1js/dist/node/bindings/crypto/bindings/lookup.d.ts","../../../node_modules/o1js/dist/node/bindings/crypto/bindings/bigint256.d.ts","../../../node_modules/o1js/dist/node/bindings/crypto/bindings/field.d.ts","../../../node_modules/o1js/dist/node/bindings/crypto/bindings/curve.d.ts","../../../node_modules/o1js/dist/node/bindings/crypto/bindings/kimchi-types.d.ts","../../../node_modules/o1js/dist/node/lib/proof-system/cache.d.ts","../../../node_modules/o1js/dist/node/lib/proof-system.d.ts","../../../node_modules/o1js/dist/node/lib/proof-system/prover-keys.d.ts","../../../node_modules/o1js/dist/node/bindings/js/node/node-backend.d.ts","../../../node_modules/o1js/dist/node/bindings/js/wrapper.d.ts","../../../node_modules/o1js/dist/node/lib/gates.d.ts","../../../node_modules/o1js/dist/node/snarky.d.ts","../../../node_modules/o1js/dist/node/bindings/crypto/finite-field.d.ts","../../../node_modules/o1js/dist/node/lib/gadgets/foreign-field.d.ts","../../../node_modules/o1js/dist/node/lib/foreign-field.d.ts","../../../node_modules/o1js/dist/node/lib/gadgets/elliptic-curve.d.ts","../../../node_modules/o1js/dist/node/lib/foreign-curve.d.ts","../../../node_modules/o1js/dist/node/bindings/mina-transaction/transaction-leaves.d.ts","../../../node_modules/o1js/dist/node/bindings/lib/from-layout.d.ts","../../../node_modules/o1js/dist/node/bindings/mina-transaction/gen/transaction.d.ts","../../../node_modules/o1js/dist/node/bindings/mina-transaction/transaction-leaves-bigint.d.ts","../../../node_modules/o1js/dist/node/bindings/mina-transaction/gen/transaction-bigint.d.ts","../../../node_modules/o1js/dist/node/bindings/mina-transaction/types.d.ts","../../../node_modules/o1js/dist/node/lib/hash.d.ts","../../../node_modules/o1js/dist/node/lib/int.d.ts","../../../node_modules/o1js/dist/node/lib/provable-types/bytes.d.ts","../../../node_modules/o1js/dist/node/lib/provable-types/provable-types.d.ts","../../../node_modules/o1js/dist/node/lib/foreign-ecdsa.d.ts","../../../node_modules/o1js/dist/node/lib/keccak.d.ts","../../../node_modules/o1js/dist/node/lib/hashes-combined.d.ts","../../../node_modules/o1js/dist/node/lib/gadgets/common.d.ts","../../../node_modules/o1js/dist/node/lib/circuit.d.ts","../../../node_modules/o1js/dist/node/lib/provable-types/packed.d.ts","../../../node_modules/o1js/dist/node/lib/gadgets/arithmetic.d.ts","../../../node_modules/o1js/dist/node/lib/gadgets/gadgets.d.ts","../../../node_modules/o1js/dist/node/lib/provable-types/merkle-list.d.ts","../../../node_modules/o1js/dist/node/lib/mina/smart-contract-base.d.ts","../../../node_modules/o1js/dist/node/lib/precondition.d.ts","../../../node_modules/o1js/dist/node/lib/zkapp.d.ts","../../../node_modules/o1js/dist/node/mina-signer/src/signature.d.ts","../../../node_modules/o1js/dist/node/mina-signer/src/types.d.ts","../../../node_modules/o1js/dist/node/mina-signer/src/sign-zkapp-command.d.ts","../../../node_modules/o1js/dist/node/lib/account-update.d.ts","../../../node_modules/o1js/dist/node/lib/mina/transaction-context.d.ts","../../../node_modules/o1js/dist/node/lib/mina/account.d.ts","../../../node_modules/o1js/dist/node/lib/fetch.d.ts","../../../node_modules/o1js/dist/node/lib/mina/graphql.d.ts","../../../node_modules/o1js/dist/node/lib/mina/mina-instance.d.ts","../../../node_modules/o1js/dist/node/lib/mina/transaction.d.ts","../../../node_modules/o1js/dist/node/lib/mina/transaction-validation.d.ts","../../../node_modules/o1js/dist/node/lib/mina/local-blockchain.d.ts","../../../node_modules/o1js/dist/node/lib/mina.d.ts","../../../node_modules/o1js/dist/node/lib/state.d.ts","../../../node_modules/o1js/dist/node/lib/mina/token/forest-iterator.d.ts","../../../node_modules/o1js/dist/node/lib/mina/token/token-contract.d.ts","../../../node_modules/o1js/dist/node/lib/encryption.d.ts","../../../node_modules/o1js/dist/node/bindings/lib/encoding.d.ts","../../../node_modules/o1js/dist/node/lib/string.d.ts","../../../node_modules/o1js/dist/node/lib/merkle-tree.d.ts","../../../node_modules/o1js/dist/node/lib/merkle-map.d.ts","../../../node_modules/o1js/dist/node/lib/nullifier.d.ts","../../../node_modules/o1js/dist/node/bindings/crypto/elliptic-curve-examples.d.ts","../../../node_modules/o1js/dist/node/lib/crypto.d.ts","../../../node_modules/o1js/dist/node/mina-signer/mina-signer.d.ts","../../../node_modules/o1js/dist/node/lib/proof-system/workers.d.ts","../../../node_modules/o1js/dist/node/index.d.ts","../../../src/fee.ts","../../../node_modules/axios/index.d.ts","../../../src/networks.ts","../../../src/mina.ts","../../../src/api/api.ts","../../../src/cloud/cloud.ts","../../../src/api/client-api.ts","../../../src/custom/backend.ts","../../../src/index.ts","../../../src/cloud/local.ts","../../../node_modules/@babel/types/lib/index.d.ts","../../../node_modules/@types/babel__generator/index.d.ts","../../../node_modules/@babel/parser/typings/babel-parser.d.ts","../../../node_modules/@types/babel__template/index.d.ts","../../../node_modules/@types/babel__traverse/index.d.ts","../../../node_modules/@types/babel__core/index.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/file.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/filereader.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/graceful-fs/index.d.ts","../../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../node_modules/@types/istanbul-lib-report/index.d.ts","../../../node_modules/@types/istanbul-reports/index.d.ts","../../../node_modules/@jest/expect-utils/build/index.d.ts","../../../node_modules/chalk/index.d.ts","../../../node_modules/@sinclair/typebox/typebox.d.ts","../../../node_modules/@jest/schemas/build/index.d.ts","../../../node_modules/pretty-format/build/index.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/jest-matcher-utils/build/index.d.ts","../../../node_modules/expect/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts","../../../node_modules/@types/stack-utils/index.d.ts","../../../node_modules/@types/yargs-parser/index.d.ts","../../../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"824cb491a40f7e8fdeb56f1df5edf91b23f3e3ee6b4cde84d4a99be32338faee","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569",{"version":"87d693a4920d794a73384b3c779cadcb8548ac6945aa7a925832fe2418c9527a","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"b20fe0eca9a4e405f1a5ae24a2b3290b37cf7f21eba6cbe4fc3fab979237d4f3","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"8073890e29d2f46fdbc19b8d6d2eb9ea58db9a2052f8640af20baff9afbc8640","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"7a1971efcba559ea9002ada4c4e3c925004fb67a755300d53b5edf9399354900",{"version":"1ef0b30be2c6e7da9d464f306a11c8b8f33905674ce55793f9603d517f62b0a4","signature":"1cdd8928789092ef707f3ef85eb3f0c6775fa1814f62ea061858ae1d8c5fc0b4"},"a72629c8ed67cd5d8ecb5fd60e1c64b07e11b246894aaf8a17e29a676f4be041","5240a5f0bf490d199ebf97f36a50e1e3b7844c3144dd90f45b93a7b0f3e404c2","9a9d48f04dca9bb787522b012092ac36dd6ea22748f9f721d13dc4d84e42387d","8a0f60fc69219ca8e4e811e5f4dd0d4db28981dabff325389cd795764bf2d4ba","6f56a44f1c01c8b7e76858716e8fd6916c47c47914c9962c728639fe98e4aa65","0fffff27f34e30d1834e40444ecb11ec6746455d05122544bd65d81190ef39b5","64525d7b6142bb43990dbfcb43a59464a5bc2bc009fec13d44699be93bc1671a","2f9b1fbc47ba4fb8d716e7fe116a05b29fdbbf4771096986f7fdcf1433ab9815","5f066b3122065d60d12cdc393abd6d27782a7b81f0e3cda50bc3f7a57d3cbaca","e5789fe78bfeb6bda67681f5034efab1c498b9f0529b2ef2c7f3d442b06cdc20","aff0a27c6aa131c3c530cf9bf7d3e645c85cf56b8d55eb625877e5270b8d18de","27b8ee19b88720fd803d79ffde5ca3e2c0da214877afea84140534c6d86b6284","d10b29f03ae567c00309921159e2f9ae5657cc937d9387bf89ec820888f32427","c2c81a70825725fa23781026b633683a47aa3e3d194f4fdd58ca841f97027a28","03e2980227ad52b7faeff5e010cb511a748c19be77c9d11f2dc1a45b59f9d8ec","e84650b5d440d8b7c1d1249414e0e39291a0c3a306ca04ae2f5fd084b5669005","5eaa39c9d2cdb36a21020091bba6bc02bb0d98d31966201d19a5ed9dfe9ac390",{"version":"8d6d51a5118d000ed3bfe6e1dd1335bebfff3fef23cd2af2f84a24d30f90cc90","affectsGlobalScope":true},"8d643766d2fc6a3df2201b37737a45e8ca3baee79f57bcb51db58b196d600a5e","61a3334c0c7c9c56c60e19239e92d6edb350071dc5556c877711fb49c6060cbc","ab557c40fb8521c229448329d2e17451921dab9559ec38ed8737e718bf305e2b","d6a4cdd73bf9f39d24428bc8f258a6204f503c4a4ac736dc32a41a0b3e0df926","21ddd09adb35e88374ad316a30bdfb811326eaae550be488c52db212f29f500f","15b3fa94618f7d36ea6252a035c513baf668f76fe8658a881a0309e2dd514acb","a9150a6863f229c4b099ffd0577eae9fec1e984594dbaedd35bea58985f178bb","a3f1f7b32bdf90587297ee4b663ee826bbe85b344e6b3428d809ea19cbb8e551","7d207bc6d39cd5e30107c52f194f1a89003f902c251dc7693daa4e8159ee2775","eb7d59e9b4f0c584be1a233f95a4722879e5078ca573b1772ff5ce8a17314626","6d3158d33650a34f7ca56e13f998fcca2d052d37682c2b124adaf163a36237ac","249a8fae114d1f1209a12ecc2a8d31ff7b7b822f8da0ff22093a8fd8cbf72018","c132bf7e51370bc34639ce847f464ef709be92110bf5c6ff4825a2ca9dcb6b04","70fa1179eac0abc1067862fd6b274a3284e75c1b5ee6a2bb0c20cbf53b56e75d","654314571fd5534ad6278b31f749c58def7f0143e38b4e24a0fd1d34891581b9","99e0d5f516b317f62d215bf9a6ee4e2207313bd218efba8887ccecebc306f84f","eb0938d65fb4fa32d2506e4064e00f0e5715f7b9c0e87c06ebed4602868bf823","a5620e02429ee5dd180b22aa277598d137ff16497eab3e3c3eacc800baf61e6f","9ea2002164abc8ba46240d48e57bea55a2d1802b906ac47cffe339719490e3a1","bfc1c019eff602af54233dac1e61efd4a7a46780d83444c69bce36e7a830255a","e725f2688f1c49a61f4e903b509e641375e228e3b1711b17faa2f4a8847d0db2","526abed7f1d4b8a54d8f00815eebb62f68e24ca0b95e5396052324ae600fd5a1","e8d09352d27f72a689a3c050e22f3364eeccd54a1be8809ec05935f4a4aa54a8","a3987faae6ca116a29967e87f7909a4aca1ca9c46aa78e5c4b5abc62cb253e9e","67090120e4743fc0c81d1c1fc862d4c893e62cdbc441d487a85f230fd0864f88","c608cd8a7f796768a681763636f404c11d521b17213b17a029fe6f1624d02b70","e309a2be479be1b98a1e38eb4ed1eb485eb58d9d04eea5c0453d696c825cf37e","4577986f80ec2eda5ddbd5e27f9671bf1ff1003b731d61794ba0597305ad07a5","18f06f576299af5041098805134ce1dc33b39c694226921ddafaf1ddf9d34aa9","fdd1c43cfa2cf952e79b16307f3bab1bc4545933dc4f821f932661554d102cc8","2ae27a86a0ec125496986e92a08eb5cf3438e91f4255e7c8764f8030cd8730a5","6714087a4eaf38df715caaf77a3e3242ea2fc30f241d34440a91d141adca2984","2ba7674b8bedd99b4d290cb738c2ed1bfa729a970b1c38e5e8986ba915a82ab0","5f2b91b05147c42aecb704e53b724b958de2adc503c17236199c9ba251c79d02","c8ac771318d0eb069f417277d22be582fa4ac2f41690df28ad39e9b89b80f800","fc3867ad062670d55325b92efcf744a08e2ecbda1bf0fe27022dd10a291674ab","20c9cb5d3265b24305f4e0bdf413a67dc6fadaeac799740882ebfd57568ce403","a44554abb5d268058f91e5b834f4c71751959a6ec395ef56c94b8c69d8c4e244","fad1290ebccd7f7e49e7bc01fe4e486fca9b866779e452e5aaa7277003f681b4","d6f5e172303410c70b36fdc880f953c30836a78245951138fa6c05b7a6d8ef3a","bf9b366411e8f509a486a4f0ad34459e07a25deab60ab8125a2adf3221be33b8","13ada393158913e064b520977e1dbde647e84fa7490eacb466a3bf4966baa844","d9c8e62e92b8d5bf5f36aa4f8f24ddfe44321c756e0426ca7a59a19729c40c79","96b539b40ad7a53ee691e12d239802ac102f1c7eb7e30af3ebe95841603a7f1b","8821af77c1626fe94a3b59f655b26da0e560c26408a5a3f2e6133a57a20bc1f1","cae107fa4933b95e614a8089108a8cccee9e087dfdfb1055bde6a4127e682c13","e54256500e7113fc03b04144522b6d8f736ff517a9f0dd3a389a536a8fa0139f","cb2fb12f015b35b4fcbe8eb9ce327fa27daebd963ed2ca5ae0972c30f7a53b6e","91c4a991c508b1bdb6002fa74cc44cf3cef8416227f1e8bdc6c774c6f94e32e7","a95931010a36e774a5e8edbe23193f0ebd2acd33a61d74eaf9a229664b6843ba","6d5e3dd5e80f7b32d290c51cbdbd4bc4cd72eccbcb6994692753236a853bb546","0759eee370651b4eaaf81ad04a56987714bd588d040325377bbddf9b23c0326b","3b16135caa4bdd7dbeb6b476f0e227b4a2449501aaa6a7f66f5cb3c1ef88a40e","7ddb659a9d2add9534a73b81e559b7e4661a57393e1ba197bc500a40d86a0c21","a9afb59c9b414e4168596cff7d9a58fde1672c4b8d128cb10876f113b484d467","e9b76c2806a8381353aeadc68469dafee7603f62426619e4f8fe79da6a8ac16f","596a61f2103d8980bb8b703fd3fc3eb8adc94b722c25e875364a083dbba52f8d","4534d19cd132f2058cd96f712df018ab441f3a75a5386d38d0fe3d1c11ad1678","786ccb410677f67902a80b3a82466baf9f744ec713d9a4b6b447188481139826","8c33b86654e1e7358f3e00236b9d5daaa621b02460952bb92dcd8ceb19476513","5a94cff7bcfdb527803c6100268e73ad79afbcb95b25107d1fcf3a012e3e3525","edb0eb017b782a42549fa34e2b637e9017da1580ccdad9bad8fd3a90fa1bd884","26b3b022b23caee3dcc128de5a4766d39febd529b833b0789c5b395b4efe93a7","d71438ac36f30413867a5606dff86255f30e42fbbce19aeb36b89e62d96c44c9","bf1675abe9c2637604bde160c3a36947681f42833c9694f24829fe146c3deec1","a898c94efb8df50c8ceaeb108faaeaa474bcfa2c3fdccd9f393ea99d3270cba3","cf5db3db7aa0fcc110575ee88d37025b94e21d77de3d527fbfbec48b2145a83f","2e533f877291ef5af360404dfc1520fbbc5f1b3783778013ea00afdcd57ae61e","b78541f0347c40f56f1429b9cb635c9a49433067ed5330878edc1217a32d38f9","6ff46cf691afd94c4b9a08761de062873acc2ad74a38ec6611c727f6b3b8ea2e","1469468500cd56f2e3710dd3f3339542a3edc97ab5e39cb94c42b6260bcc123a","f16fd4314fa028fa3b2f27e74b53485df66e510efcb799ffc207cfa6afd3a04f","67c965aff094b69e4d8ab243749697ed9cabffd8d5def86ff01de88d808ffdb7","b42a23678049c0e3a2b360d863246a751b3cf8218f1222ca07058587b112468b","ee01cb28021b7e9575e959b36693ffe148904283e9037b04981579c6d7a784b4","7ba86c896b6ffb46aa5802a457a760e752793bb7733b2029acbd1ff0b4719037","7241e6ccda1bd8503b91a44e11782fb6bf684a169ade273f24470fffc7a59b5e",{"version":"296ae274470305af59d5f653e74ec71fb2c1766b2cfc5901358e19484f4f5a60","signature":"53f72ce210624fc9353db31ef3c0d7ea6a90aeb70716a8069706ef368dc31d5a"},"f64487e06875cfbe0cc854328920403df337dc6c1925070995653ac71c266c0e",{"version":"70c76a7518ef3820033dec8b0514e4b768ca611ae473365970535e2115fdc564","signature":"dea2cd80edc0b513e2b158ed011fb24db3a3e27ecbee0393623952d007310bbc"},{"version":"ab020afa67d335eb7ebf9228de3faaa24d038f3f75c0aa0e5e3f9e8f2b5105db","signature":"af48f14b25c48fd1081d07551ce4811165dd27b3dea5bc2150f3a251703cce8b"},{"version":"ed2f0a5c9a1fc5446335b7edff2d3569cdfbdba927074067021828cf80bce283","signature":"0bb6c38b28fbf9fdd14cf120e3d101f1c2abb6433552d0d3c4e67dfdf697f42f"},{"version":"f59fcf7d1b060c781ce8e621927fc6bfb520d6e680ae8dacb3f6b3c220797b40","signature":"fa380ef5b84d326fb9373fc266769b0e214970b28222f8f55040eeeaf72b907d"},{"version":"39fe4d47cbb597835422addd6301010a4aae2c9fac0bc5dd38e80a625839b3e0","signature":"079f1a7dcfd27afdc0b502ba3e37cbd52f98ac976708268a094bf80ae8b79a9f"},{"version":"46a6b69b43917fe3f74a69432d9616efe11fbfb2e9375fb730237c269f2dbf50","signature":"149ed82591b5302aaaaac2472a7e9a35837c8a3625cf8282701092f594acdbfc"},{"version":"ebc47d904715c27d8a336cf58bf1efb7476cfef5eb8f4b6c3cb51f29619f46ff","signature":"97d52a4097b6468b2c1e07fc1987a6f6123bbca74a0d41e14ba9def4fd76b629"},{"version":"1746377fa1580dd98292a87c264e8fa5d8e0dbb3d4bc182f3a829a4068490849","signature":"745ec660a57ee298f5add507ce291de740e5cabf3a0f5d95aa85ce58ffd49f22"},"4489c6a9fde8934733aa7df6f7911461ee6e9e4ad092736bd416f6b2cc20b2c6","2c8e55457aaf4902941dfdba4061935922e8ee6e120539c9801cd7b400fae050","8041cfce439ff29d339742389de04c136e3029d6b1817f07b2d7fcbfb7534990","670a76db379b27c8ff42f1ba927828a22862e2ab0b0908e38b671f0e912cc5ed","9d38964b57191567a14b396422c87488cecd48f405c642daa734159875ee81d9","069bebfee29864e3955378107e243508b163e77ab10de6a5ee03ae06939f0bb9","efc7d584a33fe3422847783d228f315c4cd1afe74bd7cf8e3f0e4c1125129fef","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"a14ed46fa3f5ffc7a8336b497cd07b45c2084213aaca933a22443fcb2eef0d07","affectsGlobalScope":true},"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c",{"version":"7fd7fcbf021a5845bdd9397d4649fcf2fe17152d2098140fc723099a215d19ad","affectsGlobalScope":true},"df3389f71a71a38bc931aaf1ef97a65fada98f0a27f19dd12f8b8de2b0f4e461","7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba",{"version":"41fb2a1c108fbf46609ce5a451b7ec78eb9b5ada95fd5b94643e4b26397de0b3","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb",{"version":"8b809082dfeffc8cc4f3b9c59f55c0ff52ba12f5ae0766cb5c35deee83b8552e","affectsGlobalScope":true},"bd3f5d05b6b5e4bfcea7739a45f3ffb4a7f4a3442ba7baf93e0200799285b8f1","4c775c2fccabf49483c03cd5e3673f87c1ffb6079d98e7b81089c3def79e29c6","d4f9d3ae2fe1ae199e1c832cca2c44f45e0b305dfa2808afdd51249b6f4a5163","7525257b4aa35efc7a1bbc00f205a9a96c4e4ab791da90db41b77938c4e0c18e","b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e",{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true},{"version":"674168aa3db414ea0a19b2a31d901b2d49705c7a495e43ffdc96928543010f8c","affectsGlobalScope":true},"fe1fd6afdfe77976d4c702f3746c05fb05a7e566845c890e0e970fe9376d6a90","313a0b063f5188037db113509de1b934a0e286f14e9479af24fada241435e707","afb1701fd4be413a8a5a88df6befdd4510c30a31372c07a4138facf61594c66d","87ef1a23caa071b07157c72077fa42b86d30568f9dc9e31eed24d5d14fc30ba8","396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","21773f5ac69ddf5a05636ba1f50b5239f4f2d27e4420db147fc2f76a5ae598ac",{"version":"ea455cc68871b049bcecd9f56d4cf27b852d6dafd5e3b54468ca87cc11604e4d","affectsGlobalScope":true},"c07146dbbbd8b347241b5df250a51e48f2d7bef19b1e187b1a3f20c849988ff1","45b1053e691c5af9bfe85060a3e1542835f8d84a7e6e2e77ca305251eda0cb3c","0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7",{"version":"ae5507fc333d637dec9f37c6b3f4d423105421ea2820a64818de55db85214d66","affectsGlobalScope":true},{"version":"0666f4c99b8688c7be5956df8fecf5d1779d3b22f8f2a88258ae7072c7b6026f","affectsGlobalScope":true},"8abd0566d2854c4bd1c5e48e05df5c74927187f1541e6770001d9637ac41542e","54e854615c4eafbdd3fd7688bd02a3aafd0ccf0e87c98f79d3e9109f047ce6b8","d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","8221b00f271cf7f535a8eeec03b0f80f0929c7a16116e2d2df089b41066de69b","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","7fa32887f8a97909fca35ebba3740f8caf8df146618d8fff957a3f89f67a2f6a","9a9634296cca836c3308923ba7aa094fa6ed76bb1e366d8ddcf5c65888ab1024",{"version":"bddce945d552a963c9733db106b17a25474eefcab7fc990157a2134ef55d4954","affectsGlobalScope":true},{"version":"7052b7b0c3829df3b4985bab2fd74531074b4835d5a7b263b75c82f0916ad62f","affectsGlobalScope":true},"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","4b55240c2a03b2c71e98a7fc528b16136faa762211c92e781a01c37821915ea6","7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df",{"version":"94c086dff8dbc5998749326bc69b520e8e4273fb5b7b58b50e0210e0885dfcde","affectsGlobalScope":true},{"version":"f5b5dc128973498b75f52b1b8c2d5f8629869104899733ae485100c2309b4c12","affectsGlobalScope":true},"ebe5facd12fd7745cda5f4bc3319f91fb29dc1f96e57e9c6f8b260a7cc5b67ee","79bad8541d5779c85e82a9fb119c1fe06af77a71cc40f869d62ad379473d4b75","21c56c6e8eeacef15f63f373a29fab6a2b36e4705be7a528aae8c51469e2737b",{"version":"629d20681ca284d9e38c0a019f647108f5fe02f9c59ac164d56f5694fc3faf4d","affectsGlobalScope":true},"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","afe73051ff6a03a9565cbd8ebb0e956ee3df5e913ad5c1ded64218aabfa3dcb5","035a5df183489c2e22f3cf59fc1ed2b043d27f357eecc0eb8d8e840059d44245","a4809f4d92317535e6b22b01019437030077a76fec1d93b9881c9ed4738fcc54","5f53fa0bd22096d2a78533f94e02c899143b8f0f9891a46965294ee8b91a9434","cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec",{"version":"5ab630d466ac55baa6d32820378098404fc18ba9da6f7bc5df30c5dbb1cffae8","affectsGlobalScope":true},"ab82804a14454734010dcdcd43f564ff7b0389bee4c5692eec76ff5b30d4cf66","bae8d023ef6b23df7da26f51cea44321f95817c190342a36882e93b80d07a960","5d30d04a14ed8527ac5d654dc345a4db11b593334c11a65efb6e4facc5484a0e"],"root":[53,149,[151,158]],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"composite":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"importHelpers":true,"noEmitOnError":false,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"strictPropertyInitialization":false,"target":2,"useDefineForClassFields":false},"fileIdsList":[[159],[257],[159,160,161,162,163],[159,161],[214,250],[252],[253],[259,262],[165],[200],[201,206,234],[202,213,214,221,231,242],[202,203,213,221],[204,243],[205,206,214,222],[206,231,239],[207,209,213,221],[200,208],[209,210],[213],[211,213],[200,213],[213,214,215,231,242],[213,214,215,228,231,234],[198,201,247],[209,213,216,221,231,242],[213,214,216,217,221,231,239,242],[216,218,231,239,242],[165,166,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249],[213,219],[220,242,247],[209,213,221,231],[222],[223],[200,224],[225,241,247],[226],[227],[213,228,229],[228,230,243,245],[201,213,231,232,233,234],[201,231,233],[231,232],[234],[235],[200,231],[213,237,238],[237,238],[206,221,231,239],[240],[221,241],[201,216,227,242],[206,243],[231,244],[220,245],[246],[201,206,213,215,224,231,242,245,247],[231,248],[265],[255,261],[259],[256,260],[69],[64,85],[69,84],[69,82,83,85,86],[64],[82],[82,91],[56,58],[63,73],[58],[57],[57,58,59],[58,59,63,73,74,94],[55,58,101,103],[54],[55,58,63,100,101],[54,56,58,60,61,68],[54,58,62,63,73,80,107],[102,104],[73,78,79,80,88,89,94,97,99,105,106,107,109,110,111,112,113,114,115,117,118,121,125,128,129,131,134,135,136,137,138,139,140,141,142,143,145,146,147],[62,63,73,78,79,80,89,94,100,105,106,107,115,118,120,121,124],[56,63],[62,71,73,75,78,94],[62,63,71,75,77,79,94],[62,63,70,72],[64,144],[63,72,73,80],[63,73,80,105,107,127,129,134],[56,61,62],[64,79,96,97,98],[62,64,79,96,97,99,109],[62,63,74,79,95,96],[62,63,74],[58,62,63,64,96],[58,62,63,74],[58,62,63,73,74,96,108,116],[63,74],[62,63,70],[63,73,78,79],[63,75,108,109],[62,63,73,79,94,105,106],[108],[63,73,79,141],[73,79],[80,105,123,125,126,130,131,132,133],[63,73,80,105,129],[105,107,125,128],[63,73,80,107,123,127,130,131],[63,73,80,107,120,123,127,128,129,134],[121],[62,63,73,78,94,115,118,125],[63,73,80,107,121,125],[76,80,125],[120,123,125,127],[73,80,89,125,126,127,129,130],[63,69,70,73,79,80,94],[62,63,72,73,80,94,123,142],[73,80,105,107,125],[59,62,63,73,78,79,88,89,94],[69,82,87,88,89],[76,94],[63,79,107],[62,63,73,79,106],[63,79,106],[63,73,75,76,77,79,94],[62,63,68,69],[62,68,72,73,79],[73,79,121],[62,63,73,78,79,80,88,89,94,107,119,120,125],[55,123],[104,123],[56,61,67,68,123],[55,122],[56,61,64,67],[56,60],[58,61,65,66],[55,62,63,69,70,81,82,90,92,93],[258],[175,179,242],[175,231,242],[170],[172,175,239,242],[221,239],[250],[170,250],[172,175,221,242],[167,168,171,174,201,213,231,242],[167,173],[171,175,201,234,242,250],[201,250],[191,201,250],[169,170,250],[175],[169,170,171,172,173,174,175,176,177,179,180,181,182,183,184,185,186,187,188,189,190,192,193,194,195,196,197],[175,182,183],[173,175,183,184],[174],[167,170,175],[175,179,183,184],[179],[173,175,178,242],[167,172,173,175,179,182],[201,231],[170,175,191,201,247,250],[52,53,150,152],[52],[52,148],[52,148,154],[52,53,148],[52,149,151,152,153,154,155,156],[52,148,151],[148],[149,151,152,153,154,155,156],[148,151]],"referencedMap":[[161,1],[258,2],[164,3],[160,1],[162,4],[163,1],[251,5],[253,6],[254,7],[263,8],[165,9],[166,9],[200,10],[201,11],[202,12],[203,13],[204,14],[205,15],[206,16],[207,17],[208,18],[209,19],[210,19],[212,20],[211,21],[213,22],[214,23],[215,24],[199,25],[216,26],[217,27],[218,28],[250,29],[219,30],[220,31],[221,32],[222,33],[223,34],[224,35],[225,36],[226,37],[227,38],[228,39],[229,39],[230,40],[231,41],[233,42],[232,43],[234,44],[235,45],[236,46],[237,47],[238,48],[239,49],[240,50],[241,51],[242,52],[243,53],[244,54],[245,55],[246,56],[247,57],[248,58],[266,59],[262,60],[260,61],[261,62],[84,63],[86,64],[85,65],[87,66],[83,63],[144,67],[91,68],[92,69],[57,70],[139,71],[101,72],[58,73],[60,74],[59,72],[75,75],[104,76],[55,77],[102,78],[103,79],[100,80],[105,81],[148,82],[125,83],[62,84],[79,85],[114,86],[73,87],[145,88],[138,89],[128,90],[63,91],[99,92],[110,93],[97,94],[116,71],[113,95],[98,96],[96,97],[117,98],[93,99],[72,100],[106,101],[112,102],[107,103],[111,104],[142,105],[141,106],[134,107],[127,108],[129,109],[133,110],[130,111],[119,112],[136,113],[137,114],[126,115],[132,116],[131,117],[81,118],[143,119],[120,120],[89,121],[90,122],[77,123],[108,124],[118,125],[115,126],[109,104],[78,127],[70,128],[80,129],[135,130],[140,106],[121,131],[146,132],[124,133],[122,134],[123,135],[68,136],[61,137],[67,138],[94,139],[259,140],[182,141],[189,142],[181,141],[196,143],[173,144],[172,145],[195,146],[190,147],[193,148],[175,149],[174,150],[170,151],[169,152],[192,153],[171,154],[176,155],[180,155],[198,156],[197,155],[184,157],[185,158],[187,159],[183,160],[186,161],[191,146],[178,162],[179,163],[188,164],[168,165],[194,166],[153,167],[155,168],[154,169],[158,170],[53,168],[156,169],[149,171],[157,172],[152,173],[151,168]],"exportedModulesMap":[[161,1],[258,2],[164,3],[160,1],[162,4],[163,1],[251,5],[253,6],[254,7],[263,8],[165,9],[166,9],[200,10],[201,11],[202,12],[203,13],[204,14],[205,15],[206,16],[207,17],[208,18],[209,19],[210,19],[212,20],[211,21],[213,22],[214,23],[215,24],[199,25],[216,26],[217,27],[218,28],[250,29],[219,30],[220,31],[221,32],[222,33],[223,34],[224,35],[225,36],[226,37],[227,38],[228,39],[229,39],[230,40],[231,41],[233,42],[232,43],[234,44],[235,45],[236,46],[237,47],[238,48],[239,49],[240,50],[241,51],[242,52],[243,53],[244,54],[245,55],[246,56],[247,57],[248,58],[266,59],[262,60],[260,61],[261,62],[84,63],[86,64],[85,65],[87,66],[83,63],[144,67],[91,68],[92,69],[57,70],[139,71],[101,72],[58,73],[60,74],[59,72],[75,75],[104,76],[55,77],[102,78],[103,79],[100,80],[105,81],[148,82],[125,83],[62,84],[79,85],[114,86],[73,87],[145,88],[138,89],[128,90],[63,91],[99,92],[110,93],[97,94],[116,71],[113,95],[98,96],[96,97],[117,98],[93,99],[72,100],[106,101],[112,102],[107,103],[111,104],[142,105],[141,106],[134,107],[127,108],[129,109],[133,110],[130,111],[119,112],[136,113],[137,114],[126,115],[132,116],[131,117],[81,118],[143,119],[120,120],[89,121],[90,122],[77,123],[108,124],[118,125],[115,126],[109,104],[78,127],[70,128],[80,129],[135,130],[140,106],[121,131],[146,132],[124,133],[122,134],[123,135],[68,136],[61,137],[67,138],[94,139],[259,140],[182,141],[189,142],[181,141],[196,143],[173,144],[172,145],[195,146],[190,147],[193,148],[175,149],[174,150],[170,151],[169,152],[192,153],[171,154],[176,155],[180,155],[198,156],[197,155],[184,157],[185,158],[187,159],[183,160],[186,161],[191,146],[178,162],[179,163],[188,164],[168,165],[194,166],[154,174],[158,174],[156,174],[149,174],[157,175],[152,176]],"semanticDiagnosticsPerFile":[161,159,255,258,257,164,160,162,163,251,252,253,254,263,165,166,200,201,202,203,204,205,206,207,208,209,210,212,211,213,214,215,199,249,216,217,218,250,219,220,221,222,223,224,225,226,227,228,229,230,231,233,232,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,264,265,266,150,256,262,260,261,82,84,86,85,87,83,66,144,64,95,56,65,91,92,57,139,101,58,60,59,75,104,55,102,103,54,100,105,148,125,62,79,114,73,145,138,128,63,99,110,97,116,113,98,96,117,93,76,72,106,112,107,111,142,141,134,127,129,133,130,119,136,137,126,132,131,69,81,143,120,89,88,90,147,77,108,118,115,109,78,70,80,135,140,74,121,146,124,122,123,68,61,67,94,259,71,52,50,51,9,11,10,2,12,13,14,15,16,17,18,19,3,20,4,21,25,22,23,24,26,27,28,5,29,30,31,32,6,36,33,34,35,37,7,38,43,44,39,40,41,42,8,48,45,46,47,1,49,182,189,181,196,173,172,195,190,193,175,174,170,169,192,171,176,177,180,167,198,197,184,185,187,183,186,191,178,179,188,168,194,153,155,154,158,53,156,149,157,152,151],"latestChangedDtsFile":"./src/cloud/local.d.ts"},"version":"5.4.3"}
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "zkcloudworker",
3
+ "version": "0.1.19",
4
+ "description": "zkCloudWorker library",
5
+ "author": "DFST & Mario",
6
+ "license": "Apache-2.0",
7
+ "homepage": "https://docs.zkcloudworker.com",
8
+ "bugs": {
9
+ "url": "https://github.com/zkcloudworker/zkcloudworker-lib/issues"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/zkcloudworker/zkcloudworker-lib.git"
14
+ },
15
+ "main": "lib/web/src/index.js",
16
+ "exports": {
17
+ "types": "./lib/ts/src/index.d.ts",
18
+ "browser": "./lib/web/src/index.js",
19
+ "node": {
20
+ "import": "./lib/ts/src/index.js",
21
+ "require": "./lib/ts/src/index.js"
22
+ },
23
+ "default": "./lib/ts/src/index.js"
24
+ },
25
+ "types": "lib/web/src/index.d.ts",
26
+ "files": [
27
+ "lib",
28
+ "package.json",
29
+ "README.md"
30
+ ],
31
+ "engines": {
32
+ "node": ">=16.4.0"
33
+ },
34
+ "keywords": [
35
+ "javascript",
36
+ "typescript",
37
+ "mina-protocol",
38
+ "zkcloudworker",
39
+ "cloudworker",
40
+ "cloud",
41
+ "proving"
42
+ ],
43
+ "dependencies": {
44
+ "axios": "^1.6.7"
45
+ },
46
+ "peerDependencies": {
47
+ "o1js": "^0.17.0"
48
+ }
49
+ }
package/dist/yarn.lock ADDED
@@ -0,0 +1,94 @@
1
+ # This file is generated by running "yarn install" inside your project.
2
+ # Manual changes might be lost - proceed with caution!
3
+
4
+ __metadata:
5
+ version: 8
6
+ cacheKey: 10c0
7
+
8
+ "asynckit@npm:^0.4.0":
9
+ version: 0.4.0
10
+ resolution: "asynckit@npm:0.4.0"
11
+ checksum: 10c0/d73e2ddf20c4eb9337e1b3df1a0f6159481050a5de457c55b14ea2e5cb6d90bb69e004c9af54737a5ee0917fcf2c9e25de67777bbe58261847846066ba75bc9d
12
+ languageName: node
13
+ linkType: hard
14
+
15
+ "axios@npm:^1.6.7":
16
+ version: 1.6.7
17
+ resolution: "axios@npm:1.6.7"
18
+ dependencies:
19
+ follow-redirects: "npm:^1.15.4"
20
+ form-data: "npm:^4.0.0"
21
+ proxy-from-env: "npm:^1.1.0"
22
+ checksum: 10c0/131bf8e62eee48ca4bd84e6101f211961bf6a21a33b95e5dfb3983d5a2fe50d9fffde0b57668d7ce6f65063d3dc10f2212cbcb554f75cfca99da1c73b210358d
23
+ languageName: node
24
+ linkType: hard
25
+
26
+ "combined-stream@npm:^1.0.8":
27
+ version: 1.0.8
28
+ resolution: "combined-stream@npm:1.0.8"
29
+ dependencies:
30
+ delayed-stream: "npm:~1.0.0"
31
+ checksum: 10c0/0dbb829577e1b1e839fa82b40c07ffaf7de8a09b935cadd355a73652ae70a88b4320db322f6634a4ad93424292fa80973ac6480986247f1734a1137debf271d5
32
+ languageName: node
33
+ linkType: hard
34
+
35
+ "delayed-stream@npm:~1.0.0":
36
+ version: 1.0.0
37
+ resolution: "delayed-stream@npm:1.0.0"
38
+ checksum: 10c0/d758899da03392e6712f042bec80aa293bbe9e9ff1b2634baae6a360113e708b91326594c8a486d475c69d6259afb7efacdc3537bfcda1c6c648e390ce601b19
39
+ languageName: node
40
+ linkType: hard
41
+
42
+ "follow-redirects@npm:^1.15.4":
43
+ version: 1.15.5
44
+ resolution: "follow-redirects@npm:1.15.5"
45
+ peerDependenciesMeta:
46
+ debug:
47
+ optional: true
48
+ checksum: 10c0/418d71688ceaf109dfd6f85f747a0c75de30afe43a294caa211def77f02ef19865b547dfb73fde82b751e1cc507c06c754120b848fe5a7400b0a669766df7615
49
+ languageName: node
50
+ linkType: hard
51
+
52
+ "form-data@npm:^4.0.0":
53
+ version: 4.0.0
54
+ resolution: "form-data@npm:4.0.0"
55
+ dependencies:
56
+ asynckit: "npm:^0.4.0"
57
+ combined-stream: "npm:^1.0.8"
58
+ mime-types: "npm:^2.1.12"
59
+ checksum: 10c0/cb6f3ac49180be03ff07ba3ff125f9eba2ff0b277fb33c7fc47569fc5e616882c5b1c69b9904c4c4187e97dd0419dd03b134174756f296dec62041e6527e2c6e
60
+ languageName: node
61
+ linkType: hard
62
+
63
+ "mime-db@npm:1.52.0":
64
+ version: 1.52.0
65
+ resolution: "mime-db@npm:1.52.0"
66
+ checksum: 10c0/0557a01deebf45ac5f5777fe7740b2a5c309c6d62d40ceab4e23da9f821899ce7a900b7ac8157d4548ddbb7beffe9abc621250e6d182b0397ec7f10c7b91a5aa
67
+ languageName: node
68
+ linkType: hard
69
+
70
+ "mime-types@npm:^2.1.12":
71
+ version: 2.1.35
72
+ resolution: "mime-types@npm:2.1.35"
73
+ dependencies:
74
+ mime-db: "npm:1.52.0"
75
+ checksum: 10c0/82fb07ec56d8ff1fc999a84f2f217aa46cb6ed1033fefaabd5785b9a974ed225c90dc72fff460259e66b95b73648596dbcc50d51ed69cdf464af2d237d3149b2
76
+ languageName: node
77
+ linkType: hard
78
+
79
+ "proxy-from-env@npm:^1.1.0":
80
+ version: 1.1.0
81
+ resolution: "proxy-from-env@npm:1.1.0"
82
+ checksum: 10c0/fe7dd8b1bdbbbea18d1459107729c3e4a2243ca870d26d34c2c1bcd3e4425b7bcc5112362df2d93cc7fb9746f6142b5e272fd1cc5c86ddf8580175186f6ad42b
83
+ languageName: node
84
+ linkType: hard
85
+
86
+ "zkcloudworker@workspace:.":
87
+ version: 0.0.0-use.local
88
+ resolution: "zkcloudworker@workspace:."
89
+ dependencies:
90
+ axios: "npm:^1.6.7"
91
+ peerDependencies:
92
+ o1js: ^0.16.2
93
+ languageName: unknown
94
+ linkType: soft
package/jest-config.ts ADDED
@@ -0,0 +1,32 @@
1
+ import console from "console";
2
+ global.console = console;
3
+
4
+ const logCopy = console.log.bind(console);
5
+
6
+ console.log = function () {
7
+ // Timestamp to prepend
8
+ const timestamp = "[" + new Date().toLocaleTimeString() + "] ";
9
+
10
+ if (arguments.length) {
11
+ // True array copy so we can call .splice()
12
+ const args = Array.prototype.slice.call(arguments, 0);
13
+
14
+ // If there is a format string then... it must
15
+ // be a string
16
+ if (typeof arguments[0] === "string") {
17
+ // Prepend timestamp to the (possibly format) string
18
+ args[0] = "%s" + arguments[0];
19
+
20
+ // Insert the timestamp where it has to be
21
+ args.splice(1, 0, timestamp);
22
+
23
+ // Log the whole array
24
+ logCopy.apply(this, args);
25
+ } else {
26
+ // "Normal" log
27
+ logCopy(timestamp, args);
28
+ }
29
+ }
30
+ };
31
+
32
+
package/package.json CHANGED
@@ -1,49 +1,59 @@
1
1
  {
2
2
  "name": "zkcloudworker",
3
- "version": "0.1.17",
4
3
  "description": "zkCloudWorker library",
5
- "author": "DFST & Mario",
6
- "license": "Apache-2.0",
7
- "homepage": "https://docs.zkcloudworker.com",
8
- "bugs": {
9
- "url": "https://github.com/zkcloudworker/zkcloudworker-lib/issues"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/zkcloudworker/zkcloudworker-lib.git"
14
- },
15
- "main": "lib/web/src/index.js",
16
- "exports": {
17
- "types": "./lib/ts/src/index.d.ts",
18
- "browser": "./lib/web/src/index.js",
19
- "node": {
20
- "import": "./lib/ts/src/index.js",
21
- "require": "./lib/ts/src/index.js"
22
- },
23
- "default": "./lib/ts/src/index.js"
24
- },
25
- "types": "lib/web/src/index.d.ts",
26
- "files": [
27
- "lib",
28
- "package.json",
29
- "README.md"
30
- ],
31
- "engines": {
32
- "node": ">=16.4.0"
33
- },
34
4
  "keywords": [
35
- "javascript",
36
- "typescript",
37
- "mina-protocol",
38
- "zkcloudworker",
39
- "cloudworker",
40
5
  "cloud",
41
- "proving"
6
+ "proofs",
7
+ "proving",
8
+ "minanft",
9
+ "socialcap",
10
+ "library",
11
+ "TypeScript",
12
+ "mina",
13
+ "zkapp",
14
+ "zk",
15
+ "blockchain",
16
+ "web3",
17
+ "zero knowledge"
42
18
  ],
43
- "dependencies": {
44
- "axios": "^1.6.7"
19
+ "version": "0.1.19",
20
+ "homepage": "https://docs.zkcloudworker.com",
21
+ "repository": "git@zkcloudworker.github.com:zkcloudworker/zkcloudworker-lib.git",
22
+ "main": "src/index.ts",
23
+ "author": "dfst.io",
24
+ "license": "Apache-2.0",
25
+ "type": "module",
26
+ "scripts": {
27
+ "compile": "rm -rf dist/lib && tsc && tsc --build tsconfig.web.json",
28
+ "test": "jest",
29
+ "coverage": "jest --coverage",
30
+ "login": "yarn npm login",
31
+ "publish": "cd dist && yarn npm publish --access public"
45
32
  },
46
- "peerDependencies": {
33
+ "dependencies": {
34
+ "axios": "^1.6.8",
47
35
  "o1js": "^0.17.0"
48
- }
36
+ },
37
+ "devDependencies": {
38
+ "@jest/globals": "^29.7.0",
39
+ "@types/jest": "^29.5.12",
40
+ "@types/node": "^20.11.30",
41
+ "jest": "^29.7.0",
42
+ "ts-jest": "^29.1.2",
43
+ "typescript": "5.4.3"
44
+ },
45
+ "jest": {
46
+ "preset": "ts-jest",
47
+ "testEnvironment": "node",
48
+ "slowTestThreshold": 1500,
49
+ "testTimeout": 10800000,
50
+ "verbose": true,
51
+ "roots": [
52
+ "tests"
53
+ ],
54
+ "setupFilesAfterEnv": [
55
+ "./jest-config.ts"
56
+ ]
57
+ },
58
+ "packageManager": "yarn@4.1.1"
49
59
  }
package/src/api/api.ts ADDED
@@ -0,0 +1,250 @@
1
+ import axios from "axios";
2
+ import { sleep } from "../mina";
3
+ import config from "../config";
4
+ const { ZKCLOUDWORKER_AUTH, ZKCLOUDWORKER_API } = config;
5
+
6
+ /**
7
+ * API class for interacting with the zkCloudWorker
8
+ * @property jwt The jwt token for authentication, get it at https://t.me/minanft_bot?start=auth
9
+ * @property endpoint The endpoint of the serverless api
10
+ */
11
+ export class zkCloudWorker {
12
+ jwt: string;
13
+ endpoint: string;
14
+
15
+ /**
16
+ * Constructor for the API class
17
+ * @param jwt The jwt token for authentication, get it at https://t.me/minanft_bot?start=auth
18
+ */
19
+ constructor(jwt: string) {
20
+ this.jwt = jwt;
21
+ this.endpoint = ZKCLOUDWORKER_API;
22
+ }
23
+
24
+ /**
25
+ * Starts a new job for the proof calculation using serverless api call
26
+ * The developer and name should correspond to the BackupPlugin of the API
27
+ * All other parameters should correspond to the parameters of the BackupPlugin
28
+ * @param data the data for the proof call
29
+ * @param data.transactions the transactions
30
+ * @param data.developer the developer
31
+ * @param data.name the name of the job
32
+ * @param data.task the task of the job
33
+ * @param data.args the arguments of the job
34
+ * @returns { success: boolean, error?: string, jobId?: string }
35
+ * where jonId is the jobId of the job
36
+ */
37
+ public async createJob(data: {
38
+ transactions: string[];
39
+ developer: string;
40
+ name: string;
41
+ task: string;
42
+ args: string[];
43
+ metadata?: string;
44
+ }): Promise<{
45
+ success: boolean;
46
+ error?: string;
47
+ jobId?: string;
48
+ }> {
49
+ const result = await this.apiHub("createJob", data);
50
+ if (result.data === "error")
51
+ return {
52
+ success: false,
53
+ error: result.error,
54
+ };
55
+ else
56
+ return {
57
+ success: result.success,
58
+ jobId: result.data,
59
+ error: result.error,
60
+ };
61
+ }
62
+
63
+ /**
64
+ * Gets the result of the job using serverless api call
65
+ * @param data the data for the jobResult call
66
+ * @param data.jobId the jobId of the job
67
+ * @returns { success: boolean, error?: string, result?: any }
68
+ * where result is the result of the job
69
+ * if the job is not finished yet, the result will be undefined
70
+ * if the job failed, the result will be undefined and error will be set
71
+ * if the job is finished, the result will be set and error will be undefined
72
+ * if the job is not found, the result will be undefined and error will be set
73
+ */
74
+ public async jobResult(data: { jobId: string }): Promise<{
75
+ success: boolean;
76
+ error?: string;
77
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
78
+ result?: any;
79
+ }> {
80
+ const result = await this.apiHub("jobResult", data);
81
+ if (this.isError(result.data))
82
+ return {
83
+ success: false,
84
+ error: result.error,
85
+ result: result.data,
86
+ };
87
+ else
88
+ return {
89
+ success: result.success,
90
+ error: result.error,
91
+ result: result.data,
92
+ };
93
+ }
94
+
95
+ /**
96
+ * Gets the result of the job using serverless api call
97
+ * @param data the data for the deploy call
98
+ * @param data.packageName the name of the zip file with the code to be deployed
99
+ * @returns { success: boolean, error?: string, result?: any }
100
+ * where result is the result of the job
101
+ * if the job is not finished yet, the result will be undefined
102
+ * if the job failed, the result will be undefined and error will be set
103
+ * if the job is finished, the result will be set and error will be undefined
104
+ * if the job is not found, the result will be undefined and error will be set
105
+ */
106
+ public async deploy(data: { packageName: string }): Promise<{
107
+ success: boolean;
108
+ error?: string;
109
+ jobId?: string;
110
+ }> {
111
+ const result = await this.apiHub("deploy", data);
112
+ if (result.data === "error")
113
+ return {
114
+ success: false,
115
+ error: result.error,
116
+ };
117
+ else
118
+ return {
119
+ success: result.success,
120
+ jobId: result.data,
121
+ error: result.error,
122
+ };
123
+ }
124
+
125
+ /**
126
+ * Gets the billing report for the jobs sent using JWT
127
+ * @returns { success: boolean, error?: string, result?: any }
128
+ * where result is the billing report
129
+ */
130
+ public async queryBilling(): Promise<{
131
+ success: boolean;
132
+ error?: string;
133
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
134
+ result?: any;
135
+ }> {
136
+ const result = await this.apiHub("queryBilling", {});
137
+ if (this.isError(result.data))
138
+ return {
139
+ success: false,
140
+ error: result.error,
141
+ result: result.data,
142
+ };
143
+ else
144
+ return {
145
+ success: result.success,
146
+ error: result.error,
147
+ result: result.data,
148
+ };
149
+ }
150
+
151
+ /**
152
+ * Waits for the job to finish
153
+ * @param data the data for the waitForJobResult call
154
+ * @param data.jobId the jobId of the job
155
+ * @param data.maxAttempts the maximum number of attempts, default is 360 (2 hours)
156
+ * @param data.interval the interval between attempts, default is 20000 (20 seconds)
157
+ * @param data.maxErrors the maximum number of network errors, default is 10
158
+ * @returns { success: boolean, error?: string, result?: any }
159
+ * where result is the result of the job
160
+ */
161
+ public async waitForJobResult(data: {
162
+ jobId: string;
163
+ maxAttempts?: number;
164
+ interval?: number;
165
+ maxErrors?: number;
166
+ }): Promise<{
167
+ success: boolean;
168
+ error?: string;
169
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
170
+ result?: any;
171
+ }> {
172
+ const maxAttempts = data?.maxAttempts ?? 360; // 2 hours
173
+ const interval = data?.interval ?? 20000;
174
+ const maxErrors = data?.maxErrors ?? 10;
175
+ const errorDelay = 30000; // 30 seconds
176
+ let attempts = 0;
177
+ let errors = 0;
178
+ while (attempts < maxAttempts) {
179
+ const result = await this.apiHub("jobResult", data);
180
+ if (result.success === false) {
181
+ errors++;
182
+ if (errors > maxErrors) {
183
+ return {
184
+ success: false,
185
+ error: "Too many network errors",
186
+ result: undefined,
187
+ };
188
+ }
189
+ await sleep(errorDelay * errors);
190
+ } else {
191
+ if (this.isError(result.data))
192
+ return {
193
+ success: false,
194
+ error: result.error,
195
+ result: result.data,
196
+ };
197
+ else if (result.data?.result !== undefined) {
198
+ return {
199
+ success: result.success,
200
+ error: result.error,
201
+ result: result.data,
202
+ };
203
+ }
204
+ await sleep(interval);
205
+ }
206
+ attempts++;
207
+ }
208
+ return {
209
+ success: false,
210
+ error: "Timeout",
211
+ result: undefined,
212
+ };
213
+ }
214
+
215
+ /**
216
+ * Calls the serverless API
217
+ * @param command the command of the API
218
+ * @param data the data of the API
219
+ * */
220
+ private async apiHub(
221
+ command: string,
222
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
223
+ data: any
224
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
225
+ ): Promise<{ success: boolean; data?: any; error?: any }> {
226
+ const apiData = {
227
+ auth: ZKCLOUDWORKER_AUTH,
228
+ command: command,
229
+ jwtToken: this.jwt,
230
+ data: data,
231
+ };
232
+
233
+ try {
234
+ const response = await axios.post(this.endpoint, apiData);
235
+ return { success: true, data: response.data };
236
+ } catch (error: any) {
237
+ console.error("apiHub error:", error.message ?? error);
238
+ return { success: false, error: error };
239
+ }
240
+ }
241
+
242
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
243
+ private isError(data: any): boolean {
244
+ if (data === "error") return true;
245
+ if (data?.jobStatus === "failed") return true;
246
+ if (typeof data === "string" && data.toLowerCase().startsWith("error"))
247
+ return true;
248
+ return false;
249
+ }
250
+ }