zkcloudworker 0.17.7 → 0.18.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/ts/cloud/config.js.map +1 -0
- package/lib/ts/cloud/index.d.ts +4 -0
- package/lib/ts/cloud/index.js +5 -0
- package/lib/ts/cloud/index.js.map +1 -0
- package/lib/ts/cloud/networks.js.map +1 -0
- package/lib/ts/cloud/utils/base64.js.map +1 -0
- package/lib/ts/cloud/utils/graphql.js.map +1 -0
- package/lib/ts/cloud/utils/index.d.ts +3 -0
- package/lib/ts/cloud/utils/index.js +4 -0
- package/lib/ts/cloud/utils/index.js.map +1 -0
- package/lib/ts/cloud/utils/utils.js.map +1 -0
- package/lib/{web/src → ts}/cloud/worker/cloud.d.ts +3 -3
- package/lib/ts/cloud/worker/cloud.js.map +1 -0
- package/lib/ts/cloud/worker/index.d.ts +5 -0
- package/lib/ts/cloud/worker/index.js +6 -0
- package/lib/ts/cloud/worker/index.js.map +1 -0
- package/lib/{web/src → ts}/cloud/worker/job.d.ts +1 -1
- package/lib/{web/src → ts}/cloud/worker/job.js.map +1 -1
- package/lib/{web/src → ts}/cloud/worker/task.d.ts +1 -1
- package/lib/{web/src → ts}/cloud/worker/task.js.map +1 -1
- package/lib/ts/cloud/worker/transaction.js.map +1 -0
- package/lib/{web/src → ts}/cloud/worker/worker.d.ts +1 -1
- package/lib/ts/cloud/worker/worker.js.map +1 -0
- package/lib/ts/index.d.ts +2 -0
- package/lib/ts/index.js +3 -0
- package/lib/ts/index.js.map +1 -0
- package/lib/ts/{src/mina → mina}/api/api.d.ts +2 -2
- package/lib/{web/src → ts}/mina/api/api.js +3 -3
- package/lib/ts/mina/api/api.js.map +1 -0
- package/lib/ts/mina/index.d.ts +7 -0
- package/lib/ts/mina/index.js +9 -0
- package/lib/ts/mina/index.js.map +1 -0
- package/lib/ts/{src/mina → mina}/local/local.d.ts +2 -2
- package/lib/{web/src → ts}/mina/local/local.js +1 -1
- package/lib/ts/mina/local/local.js.map +1 -0
- package/lib/ts/mina/storage/index.d.ts +3 -0
- package/lib/ts/mina/storage/index.js +4 -0
- package/lib/ts/mina/storage/index.js.map +1 -0
- package/lib/ts/mina/storage/ipfs.js.map +1 -0
- package/lib/ts/mina/storage/pinata.js.map +1 -0
- package/lib/{web/src → ts}/mina/storage/storage.d.ts +12 -12
- package/lib/ts/mina/storage/storage.js.map +1 -0
- package/lib/ts/{src/mina → mina}/token/FungibleToken.d.ts +21 -21
- package/lib/ts/mina/token/FungibleToken.js.map +1 -0
- package/lib/ts/{src/mina → mina}/token/FungibleTokenAdmin.d.ts +2 -2
- package/lib/ts/mina/token/FungibleTokenAdmin.js.map +1 -0
- package/lib/{web/src → ts}/mina/token/api.d.ts +3 -3
- package/lib/{web/src → ts}/mina/token/api.js +1 -1
- package/lib/ts/mina/token/api.js.map +1 -0
- package/lib/ts/mina/token/index.d.ts +5 -0
- package/lib/ts/mina/token/index.js +6 -0
- package/lib/ts/mina/token/index.js.map +1 -0
- package/lib/ts/mina/token/vk.js.map +1 -0
- package/lib/{web/src → ts}/mina/token/whitelist.d.ts +28 -28
- package/lib/{web/src → ts}/mina/token/whitelist.js +1 -1
- package/lib/{web/src → ts}/mina/token/whitelist.js.map +1 -1
- package/lib/{web/src → ts}/mina/transactions/account.js +1 -1
- package/lib/ts/mina/transactions/account.js.map +1 -0
- package/lib/{web/src → ts}/mina/transactions/blockberry.d.ts +1 -1
- package/lib/ts/mina/transactions/blockberry.js.map +1 -0
- package/lib/ts/mina/transactions/chain.js.map +1 -0
- package/lib/ts/mina/transactions/index.d.ts +8 -0
- package/lib/ts/mina/transactions/index.js +9 -0
- package/lib/ts/mina/transactions/index.js.map +1 -0
- package/lib/ts/{src/mina → mina}/transactions/nonce.d.ts +2 -2
- package/lib/{web/src → ts}/mina/transactions/nonce.js +2 -2
- package/lib/ts/mina/transactions/nonce.js.map +1 -0
- package/lib/{web/src → ts}/mina/transactions/send.d.ts +1 -1
- package/lib/{web/src → ts}/mina/transactions/send.js +2 -2
- package/lib/ts/mina/transactions/send.js.map +1 -0
- package/lib/ts/{src/mina → mina}/transactions/tiny-contract.d.ts +1 -1
- package/lib/ts/mina/transactions/tiny-contract.js.map +1 -0
- package/lib/{web/src → ts}/mina/transactions/transaction.js +1 -1
- package/lib/ts/mina/transactions/transaction.js.map +1 -0
- package/lib/ts/{src/mina → mina}/transactions/txstatus.d.ts +1 -1
- package/lib/{web/src → ts}/mina/transactions/txstatus.js +1 -1
- package/lib/ts/mina/transactions/txstatus.js.map +1 -0
- package/lib/{web/src → ts}/mina/utils/base64.js +1 -1
- package/lib/ts/mina/utils/base64.js.map +1 -0
- package/lib/{web/src → ts}/mina/utils/fee.js +1 -1
- package/lib/ts/mina/utils/fee.js.map +1 -0
- package/lib/{web/src → ts}/mina/utils/fetch.d.ts +1 -1
- package/lib/{web/src → ts}/mina/utils/fetch.js +1 -1
- package/lib/ts/mina/utils/fetch.js.map +1 -0
- package/lib/{web/src → ts}/mina/utils/fields.js +1 -1
- package/lib/ts/mina/utils/fields.js.map +1 -0
- package/lib/ts/mina/utils/index.d.ts +6 -0
- package/lib/ts/mina/utils/index.js +7 -0
- package/lib/ts/mina/utils/index.js.map +1 -0
- package/lib/ts/{src/mina → mina}/utils/indexed-map.d.ts +2 -2
- package/lib/{web/src → ts}/mina/utils/indexed-map.js +2 -2
- package/lib/ts/mina/utils/indexed-map.js.map +1 -0
- package/lib/ts/{src/mina → mina}/utils/mina.d.ts +1 -1
- package/lib/{web/src → ts}/mina/utils/mina.js +1 -1
- package/lib/ts/mina/utils/mina.js.map +1 -0
- package/lib/ts/mina/verification/index.d.ts +1 -0
- package/lib/ts/mina/verification/index.js +2 -0
- package/lib/ts/mina/verification/index.js.map +1 -0
- package/lib/{web/src → ts}/mina/verification/verification.d.ts +1 -1
- package/lib/ts/mina/verification/verification.js.map +1 -0
- package/lib/tsconfig.web.tsbuildinfo +1 -0
- package/lib/{ts/src → web}/cloud/config.js +2 -3
- package/lib/web/cloud/config.js.map +1 -0
- package/lib/web/cloud/index.d.ts +4 -0
- package/lib/web/cloud/index.js +5 -0
- package/lib/web/cloud/index.js.map +1 -0
- package/lib/{ts/src → web}/cloud/networks.js +2 -9
- package/lib/web/cloud/networks.js.map +1 -0
- package/lib/{ts/src → web}/cloud/utils/base64.js +7 -14
- package/lib/web/cloud/utils/base64.js.map +1 -0
- package/lib/{ts/src → web}/cloud/utils/graphql.js +6 -10
- package/lib/web/cloud/utils/graphql.js.map +1 -0
- package/lib/web/cloud/utils/index.d.ts +3 -0
- package/lib/web/cloud/utils/index.js +4 -0
- package/lib/web/cloud/utils/index.js.map +1 -0
- package/lib/{ts/src → web}/cloud/utils/utils.js +5 -11
- package/lib/web/cloud/utils/utils.js.map +1 -0
- package/lib/{ts/src → web}/cloud/worker/cloud.d.ts +3 -3
- package/lib/{ts/src → web}/cloud/worker/cloud.js +2 -5
- package/lib/web/cloud/worker/cloud.js.map +1 -0
- package/lib/web/cloud/worker/index.d.ts +5 -0
- package/lib/web/cloud/worker/index.js +6 -0
- package/lib/web/cloud/worker/index.js.map +1 -0
- package/lib/{ts/src → web}/cloud/worker/job.d.ts +1 -1
- package/lib/web/cloud/worker/job.js +2 -0
- package/lib/web/cloud/worker/job.js.map +1 -0
- package/lib/{ts/src → web}/cloud/worker/task.d.ts +1 -1
- package/lib/web/cloud/worker/task.js +2 -0
- package/lib/web/cloud/worker/task.js.map +1 -0
- package/lib/{ts/src → web}/cloud/worker/transaction.js +2 -2
- package/lib/web/cloud/worker/transaction.js.map +1 -0
- package/lib/{ts/src → web}/cloud/worker/worker.d.ts +1 -1
- package/lib/{ts/src → web}/cloud/worker/worker.js +2 -5
- package/lib/web/cloud/worker/worker.js.map +1 -0
- package/lib/web/index.d.ts +2 -0
- package/lib/web/index.js +3 -0
- package/lib/web/index.js.map +1 -0
- package/lib/web/{src/mina → mina}/api/api.d.ts +2 -2
- package/lib/{ts/src → web}/mina/api/api.js +17 -23
- package/lib/web/mina/api/api.js.map +1 -0
- package/lib/web/mina/index.d.ts +7 -0
- package/lib/web/mina/index.js +9 -0
- package/lib/web/mina/index.js.map +1 -0
- package/lib/web/{src/mina → mina}/local/local.d.ts +2 -2
- package/lib/{ts/src → web}/mina/local/local.js +5 -9
- package/lib/web/mina/local/local.js.map +1 -0
- package/lib/web/mina/storage/index.d.ts +3 -0
- package/lib/web/mina/storage/index.js +4 -0
- package/lib/web/mina/storage/index.js.map +1 -0
- package/lib/{ts/src → web}/mina/storage/ipfs.js +2 -4
- package/lib/web/mina/storage/ipfs.js.map +1 -0
- package/lib/{ts/src → web}/mina/storage/pinata.js +2 -4
- package/lib/web/mina/storage/pinata.js.map +1 -0
- package/lib/{ts/src → web}/mina/storage/storage.d.ts +12 -12
- package/lib/{ts/src → web}/mina/storage/storage.js +6 -9
- package/lib/web/mina/storage/storage.js.map +1 -0
- package/lib/web/{src/mina → mina}/token/FungibleToken.d.ts +21 -21
- package/lib/{ts/src → web}/mina/token/FungibleToken.js +87 -103
- package/lib/web/mina/token/FungibleToken.js.map +1 -0
- package/lib/web/{src/mina → mina}/token/FungibleTokenAdmin.d.ts +2 -2
- package/lib/{ts/src → web}/mina/token/FungibleTokenAdmin.js +24 -35
- package/lib/web/mina/token/FungibleTokenAdmin.js.map +1 -0
- package/lib/{ts/src → web}/mina/token/api.d.ts +3 -3
- package/lib/{ts/src → web}/mina/token/api.js +4 -7
- package/lib/web/mina/token/api.js.map +1 -0
- package/lib/web/mina/token/index.d.ts +5 -0
- package/lib/web/mina/token/index.js +6 -0
- package/lib/web/mina/token/index.js.map +1 -0
- package/lib/{ts/src → web}/mina/token/vk.js +2 -4
- package/lib/web/mina/token/vk.js.map +1 -0
- package/lib/{ts/src → web}/mina/token/whitelist.d.ts +28 -28
- package/lib/{ts/src → web}/mina/token/whitelist.js +34 -41
- package/lib/web/mina/token/whitelist.js.map +1 -0
- package/lib/web/mina/transactions/account.js +44 -0
- package/lib/web/mina/transactions/account.js.map +1 -0
- package/lib/{ts/src → web}/mina/transactions/blockberry.d.ts +1 -1
- package/lib/{ts/src → web}/mina/transactions/blockberry.js +5 -10
- package/lib/web/mina/transactions/blockberry.js.map +1 -0
- package/lib/web/mina/transactions/chain.js +2 -0
- package/lib/web/mina/transactions/chain.js.map +1 -0
- package/lib/web/mina/transactions/index.d.ts +8 -0
- package/lib/web/mina/transactions/index.js +9 -0
- package/lib/web/mina/transactions/index.js.map +1 -0
- package/lib/web/{src/mina → mina}/transactions/nonce.d.ts +2 -2
- package/lib/{ts/src → web}/mina/transactions/nonce.js +15 -18
- package/lib/web/mina/transactions/nonce.js.map +1 -0
- package/lib/{ts/src → web}/mina/transactions/send.d.ts +1 -1
- package/lib/{ts/src → web}/mina/transactions/send.js +12 -15
- package/lib/web/mina/transactions/send.js.map +1 -0
- package/lib/web/{src/mina → mina}/transactions/tiny-contract.d.ts +1 -1
- package/lib/web/mina/transactions/tiny-contract.js +22 -0
- package/lib/web/mina/transactions/tiny-contract.js.map +1 -0
- package/lib/{ts/src → web}/mina/transactions/transaction.js +18 -22
- package/lib/web/mina/transactions/transaction.js.map +1 -0
- package/lib/web/{src/mina → mina}/transactions/txstatus.d.ts +1 -1
- package/lib/{ts/src → web}/mina/transactions/txstatus.js +4 -6
- package/lib/web/mina/transactions/txstatus.js.map +1 -0
- package/lib/web/mina/utils/base64.js +29 -0
- package/lib/web/mina/utils/base64.js.map +1 -0
- package/lib/web/mina/utils/fee.js +11 -0
- package/lib/web/mina/utils/fee.js.map +1 -0
- package/lib/{ts/src → web}/mina/utils/fetch.d.ts +1 -1
- package/lib/{ts/src → web}/mina/utils/fetch.js +11 -15
- package/lib/web/mina/utils/fetch.js.map +1 -0
- package/lib/{ts/src → web}/mina/utils/fields.js +11 -14
- package/lib/web/mina/utils/fields.js.map +1 -0
- package/lib/web/mina/utils/index.d.ts +6 -0
- package/lib/web/mina/utils/index.js +7 -0
- package/lib/web/mina/utils/index.js.map +1 -0
- package/lib/web/{src/mina → mina}/utils/indexed-map.d.ts +2 -2
- package/lib/{ts/src → web}/mina/utils/indexed-map.js +24 -30
- package/lib/web/mina/utils/indexed-map.js.map +1 -0
- package/lib/web/{src/mina → mina}/utils/mina.d.ts +1 -1
- package/lib/{ts/src → web}/mina/utils/mina.js +21 -29
- package/lib/web/mina/utils/mina.js.map +1 -0
- package/lib/web/mina/verification/index.d.ts +1 -0
- package/lib/web/mina/verification/index.js +2 -0
- package/lib/web/mina/verification/index.js.map +1 -0
- package/lib/{ts/src → web}/mina/verification/verification.d.ts +1 -1
- package/lib/web/mina/verification/verification.js +2 -0
- package/lib/web/mina/verification/verification.js.map +1 -0
- package/package.json +6 -2
- package/lib/ts/src/cloud/index.d.ts +0 -4
- package/lib/ts/src/cloud/index.js +0 -20
- package/lib/ts/src/cloud/utils/index.d.ts +0 -3
- package/lib/ts/src/cloud/utils/index.js +0 -19
- package/lib/ts/src/cloud/worker/index.d.ts +0 -5
- package/lib/ts/src/cloud/worker/index.js +0 -21
- package/lib/ts/src/cloud/worker/job.js +0 -2
- package/lib/ts/src/cloud/worker/task.js +0 -2
- package/lib/ts/src/index.d.ts +0 -2
- package/lib/ts/src/index.js +0 -18
- package/lib/ts/src/mina/index.d.ts +0 -7
- package/lib/ts/src/mina/index.js +0 -24
- package/lib/ts/src/mina/storage/index.d.ts +0 -3
- package/lib/ts/src/mina/storage/index.js +0 -19
- package/lib/ts/src/mina/token/index.d.ts +0 -5
- package/lib/ts/src/mina/token/index.js +0 -21
- package/lib/ts/src/mina/transactions/account.js +0 -48
- package/lib/ts/src/mina/transactions/chain.js +0 -2
- package/lib/ts/src/mina/transactions/index.d.ts +0 -8
- package/lib/ts/src/mina/transactions/index.js +0 -24
- package/lib/ts/src/mina/transactions/tiny-contract.js +0 -33
- package/lib/ts/src/mina/utils/base64.js +0 -34
- package/lib/ts/src/mina/utils/fee.js +0 -16
- package/lib/ts/src/mina/utils/index.d.ts +0 -6
- package/lib/ts/src/mina/utils/index.js +0 -22
- package/lib/ts/src/mina/verification/index.d.ts +0 -1
- package/lib/ts/src/mina/verification/index.js +0 -17
- package/lib/ts/src/mina/verification/verification.js +0 -2
- package/lib/ts/tsconfig.tsbuildinfo +0 -1
- package/lib/web/src/cloud/config.js.map +0 -1
- package/lib/web/src/cloud/index.d.ts +0 -4
- package/lib/web/src/cloud/index.js +0 -5
- package/lib/web/src/cloud/index.js.map +0 -1
- package/lib/web/src/cloud/networks.js.map +0 -1
- package/lib/web/src/cloud/utils/base64.js.map +0 -1
- package/lib/web/src/cloud/utils/graphql.js.map +0 -1
- package/lib/web/src/cloud/utils/index.d.ts +0 -3
- package/lib/web/src/cloud/utils/index.js +0 -4
- package/lib/web/src/cloud/utils/index.js.map +0 -1
- package/lib/web/src/cloud/utils/utils.js.map +0 -1
- package/lib/web/src/cloud/worker/cloud.js.map +0 -1
- package/lib/web/src/cloud/worker/index.d.ts +0 -5
- package/lib/web/src/cloud/worker/index.js +0 -6
- package/lib/web/src/cloud/worker/index.js.map +0 -1
- package/lib/web/src/cloud/worker/transaction.js.map +0 -1
- package/lib/web/src/cloud/worker/worker.js.map +0 -1
- package/lib/web/src/index.d.ts +0 -2
- package/lib/web/src/index.js +0 -3
- package/lib/web/src/index.js.map +0 -1
- package/lib/web/src/mina/api/api.js.map +0 -1
- package/lib/web/src/mina/index.d.ts +0 -7
- package/lib/web/src/mina/index.js +0 -9
- package/lib/web/src/mina/index.js.map +0 -1
- package/lib/web/src/mina/local/local.js.map +0 -1
- package/lib/web/src/mina/storage/index.d.ts +0 -3
- package/lib/web/src/mina/storage/index.js +0 -4
- package/lib/web/src/mina/storage/index.js.map +0 -1
- package/lib/web/src/mina/storage/ipfs.js.map +0 -1
- package/lib/web/src/mina/storage/pinata.js.map +0 -1
- package/lib/web/src/mina/storage/storage.js.map +0 -1
- package/lib/web/src/mina/token/FungibleToken.js.map +0 -1
- package/lib/web/src/mina/token/FungibleTokenAdmin.js.map +0 -1
- package/lib/web/src/mina/token/api.js.map +0 -1
- package/lib/web/src/mina/token/index.d.ts +0 -5
- package/lib/web/src/mina/token/index.js +0 -6
- package/lib/web/src/mina/token/index.js.map +0 -1
- package/lib/web/src/mina/token/vk.js.map +0 -1
- package/lib/web/src/mina/transactions/account.js.map +0 -1
- package/lib/web/src/mina/transactions/blockberry.js.map +0 -1
- package/lib/web/src/mina/transactions/chain.js.map +0 -1
- package/lib/web/src/mina/transactions/index.d.ts +0 -8
- package/lib/web/src/mina/transactions/index.js +0 -9
- package/lib/web/src/mina/transactions/index.js.map +0 -1
- package/lib/web/src/mina/transactions/nonce.js.map +0 -1
- package/lib/web/src/mina/transactions/send.js.map +0 -1
- package/lib/web/src/mina/transactions/tiny-contract.js.map +0 -1
- package/lib/web/src/mina/transactions/transaction.js.map +0 -1
- package/lib/web/src/mina/transactions/txstatus.js.map +0 -1
- package/lib/web/src/mina/utils/base64.js.map +0 -1
- package/lib/web/src/mina/utils/fee.js.map +0 -1
- package/lib/web/src/mina/utils/fetch.js.map +0 -1
- package/lib/web/src/mina/utils/fields.js.map +0 -1
- package/lib/web/src/mina/utils/index.d.ts +0 -6
- package/lib/web/src/mina/utils/index.js +0 -7
- package/lib/web/src/mina/utils/index.js.map +0 -1
- package/lib/web/src/mina/utils/indexed-map.js.map +0 -1
- package/lib/web/src/mina/utils/mina.js.map +0 -1
- package/lib/web/src/mina/verification/index.d.ts +0 -1
- package/lib/web/src/mina/verification/index.js +0 -2
- package/lib/web/src/mina/verification/index.js.map +0 -1
- package/lib/web/src/mina/verification/verification.js.map +0 -1
- package/lib/web/tsconfig.web.tsbuildinfo +0 -1
- /package/lib/ts/{src/cloud → cloud}/config.d.ts +0 -0
- /package/lib/{web/src → ts}/cloud/config.js +0 -0
- /package/lib/ts/{src/cloud → cloud}/networks.d.ts +0 -0
- /package/lib/{web/src → ts}/cloud/networks.js +0 -0
- /package/lib/ts/{src/cloud → cloud}/utils/base64.d.ts +0 -0
- /package/lib/{web/src → ts}/cloud/utils/base64.js +0 -0
- /package/lib/ts/{src/cloud → cloud}/utils/graphql.d.ts +0 -0
- /package/lib/{web/src → ts}/cloud/utils/graphql.js +0 -0
- /package/lib/ts/{src/cloud → cloud}/utils/utils.d.ts +0 -0
- /package/lib/{web/src → ts}/cloud/utils/utils.js +0 -0
- /package/lib/{web/src → ts}/cloud/worker/cloud.js +0 -0
- /package/lib/{web/src → ts}/cloud/worker/job.js +0 -0
- /package/lib/{web/src → ts}/cloud/worker/task.js +0 -0
- /package/lib/ts/{src/cloud → cloud}/worker/transaction.d.ts +0 -0
- /package/lib/{web/src → ts}/cloud/worker/transaction.js +0 -0
- /package/lib/{web/src → ts}/cloud/worker/worker.js +0 -0
- /package/lib/ts/{src/mina → mina}/storage/ipfs.d.ts +0 -0
- /package/lib/{web/src → ts}/mina/storage/ipfs.js +0 -0
- /package/lib/ts/{src/mina → mina}/storage/pinata.d.ts +0 -0
- /package/lib/{web/src → ts}/mina/storage/pinata.js +0 -0
- /package/lib/{web/src → ts}/mina/storage/storage.js +0 -0
- /package/lib/{web/src → ts}/mina/token/FungibleToken.js +0 -0
- /package/lib/{web/src → ts}/mina/token/FungibleTokenAdmin.js +0 -0
- /package/lib/ts/{src/mina → mina}/token/vk.d.ts +0 -0
- /package/lib/{web/src → ts}/mina/token/vk.js +0 -0
- /package/lib/ts/{src/mina → mina}/transactions/account.d.ts +0 -0
- /package/lib/{web/src → ts}/mina/transactions/blockberry.js +0 -0
- /package/lib/ts/{src/mina → mina}/transactions/chain.d.ts +0 -0
- /package/lib/{web/src → ts}/mina/transactions/chain.js +0 -0
- /package/lib/{web/src → ts}/mina/transactions/tiny-contract.js +0 -0
- /package/lib/ts/{src/mina → mina}/transactions/transaction.d.ts +0 -0
- /package/lib/ts/{src/mina → mina}/utils/base64.d.ts +0 -0
- /package/lib/ts/{src/mina → mina}/utils/fee.d.ts +0 -0
- /package/lib/ts/{src/mina → mina}/utils/fields.d.ts +0 -0
- /package/lib/{web/src → ts}/mina/verification/verification.js +0 -0
- /package/lib/web/{src/cloud → cloud}/config.d.ts +0 -0
- /package/lib/web/{src/cloud → cloud}/networks.d.ts +0 -0
- /package/lib/web/{src/cloud → cloud}/utils/base64.d.ts +0 -0
- /package/lib/web/{src/cloud → cloud}/utils/graphql.d.ts +0 -0
- /package/lib/web/{src/cloud → cloud}/utils/utils.d.ts +0 -0
- /package/lib/web/{src/cloud → cloud}/worker/transaction.d.ts +0 -0
- /package/lib/web/{src/mina → mina}/storage/ipfs.d.ts +0 -0
- /package/lib/web/{src/mina → mina}/storage/pinata.d.ts +0 -0
- /package/lib/web/{src/mina → mina}/token/vk.d.ts +0 -0
- /package/lib/web/{src/mina → mina}/transactions/account.d.ts +0 -0
- /package/lib/web/{src/mina → mina}/transactions/chain.d.ts +0 -0
- /package/lib/web/{src/mina → mina}/transactions/transaction.d.ts +0 -0
- /package/lib/web/{src/mina → mina}/utils/base64.d.ts +0 -0
- /package/lib/web/{src/mina → mina}/utils/fee.d.ts +0 -0
- /package/lib/web/{src/mina → mina}/utils/fields.d.ts +0 -0
@@ -1,10 +1,10 @@
|
|
1
1
|
import { Field, Option, PublicKey, UInt64, Bool } from "o1js";
|
2
|
-
import { Storage } from "
|
3
|
-
declare const WhitelistMap_base: typeof import("o1js/dist/node/lib/provable/merkle-tree-indexed").IndexedMerkleMapBase;
|
2
|
+
import { Storage } from "../../index.js";
|
3
|
+
declare const WhitelistMap_base: typeof import("node_modules/o1js/dist/node/lib/provable/merkle-tree-indexed.js").IndexedMerkleMapBase;
|
4
4
|
/** Represents the whitelist using an Indexed Merkle Map. */
|
5
5
|
export declare class WhitelistMap extends WhitelistMap_base {
|
6
6
|
}
|
7
|
-
declare const WhitelistMapOption_base: import("o1js/dist/node/lib/provable/types/provable-intf").Provable<Option<import("o1js/dist/node/lib/provable/merkle-tree-indexed").IndexedMerkleMapBase, {
|
7
|
+
declare const WhitelistMapOption_base: import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<Option<import("node_modules/o1js/dist/node/lib/provable/merkle-tree-indexed.js").IndexedMerkleMapBase, {
|
8
8
|
root: bigint;
|
9
9
|
length: bigint;
|
10
10
|
data: {
|
@@ -30,8 +30,8 @@ declare const WhitelistMapOption_base: import("o1js/dist/node/lib/provable/types
|
|
30
30
|
};
|
31
31
|
} | undefined> & (new (option: {
|
32
32
|
isSome: Bool;
|
33
|
-
value: import("o1js/dist/node/lib/provable/merkle-tree-indexed").IndexedMerkleMapBase;
|
34
|
-
}) => Option<import("o1js/dist/node/lib/provable/merkle-tree-indexed").IndexedMerkleMapBase, {
|
33
|
+
value: import("node_modules/o1js/dist/node/lib/provable/merkle-tree-indexed.js").IndexedMerkleMapBase;
|
34
|
+
}) => Option<import("node_modules/o1js/dist/node/lib/provable/merkle-tree-indexed.js").IndexedMerkleMapBase, {
|
35
35
|
root: bigint;
|
36
36
|
length: bigint;
|
37
37
|
data: {
|
@@ -44,7 +44,7 @@ declare const WhitelistMapOption_base: import("o1js/dist/node/lib/provable/types
|
|
44
44
|
}[];
|
45
45
|
};
|
46
46
|
}>) & {
|
47
|
-
fromValue(value: import("o1js/dist/node/lib/provable/merkle-tree-indexed").IndexedMerkleMapBase | {
|
47
|
+
fromValue(value: import("node_modules/o1js/dist/node/lib/provable/merkle-tree-indexed.js").IndexedMerkleMapBase | {
|
48
48
|
root: bigint;
|
49
49
|
length: bigint;
|
50
50
|
data: {
|
@@ -58,7 +58,7 @@ declare const WhitelistMapOption_base: import("o1js/dist/node/lib/provable/types
|
|
58
58
|
};
|
59
59
|
} | {
|
60
60
|
isSome: boolean | Bool;
|
61
|
-
value: import("o1js/dist/node/lib/provable/merkle-tree-indexed").IndexedMerkleMapBase | {
|
61
|
+
value: import("node_modules/o1js/dist/node/lib/provable/merkle-tree-indexed.js").IndexedMerkleMapBase | {
|
62
62
|
root: bigint;
|
63
63
|
length: bigint;
|
64
64
|
data: {
|
@@ -71,7 +71,7 @@ declare const WhitelistMapOption_base: import("o1js/dist/node/lib/provable/types
|
|
71
71
|
}[];
|
72
72
|
};
|
73
73
|
};
|
74
|
-
} | undefined): Option<import("o1js/dist/node/lib/provable/merkle-tree-indexed").IndexedMerkleMapBase, {
|
74
|
+
} | undefined): Option<import("node_modules/o1js/dist/node/lib/provable/merkle-tree-indexed.js").IndexedMerkleMapBase, {
|
75
75
|
root: bigint;
|
76
76
|
length: bigint;
|
77
77
|
data: {
|
@@ -84,7 +84,7 @@ declare const WhitelistMapOption_base: import("o1js/dist/node/lib/provable/types
|
|
84
84
|
}[];
|
85
85
|
};
|
86
86
|
}>;
|
87
|
-
from(value?: import("o1js/dist/node/lib/provable/merkle-tree-indexed").IndexedMerkleMapBase | {
|
87
|
+
from(value?: import("node_modules/o1js/dist/node/lib/provable/merkle-tree-indexed.js").IndexedMerkleMapBase | {
|
88
88
|
root: bigint;
|
89
89
|
length: bigint;
|
90
90
|
data: {
|
@@ -96,7 +96,7 @@ declare const WhitelistMapOption_base: import("o1js/dist/node/lib/provable/types
|
|
96
96
|
readonly index: number;
|
97
97
|
}[];
|
98
98
|
};
|
99
|
-
} | undefined): Option<import("o1js/dist/node/lib/provable/merkle-tree-indexed").IndexedMerkleMapBase, {
|
99
|
+
} | undefined): Option<import("node_modules/o1js/dist/node/lib/provable/merkle-tree-indexed.js").IndexedMerkleMapBase, {
|
100
100
|
root: bigint;
|
101
101
|
length: bigint;
|
102
102
|
data: {
|
@@ -109,7 +109,7 @@ declare const WhitelistMapOption_base: import("o1js/dist/node/lib/provable/types
|
|
109
109
|
}[];
|
110
110
|
};
|
111
111
|
}>;
|
112
|
-
none(): Option<import("o1js/dist/node/lib/provable/merkle-tree-indexed").IndexedMerkleMapBase, {
|
112
|
+
none(): Option<import("node_modules/o1js/dist/node/lib/provable/merkle-tree-indexed.js").IndexedMerkleMapBase, {
|
113
113
|
root: bigint;
|
114
114
|
length: bigint;
|
115
115
|
data: {
|
@@ -125,8 +125,8 @@ declare const WhitelistMapOption_base: import("o1js/dist/node/lib/provable/types
|
|
125
125
|
};
|
126
126
|
export declare class WhitelistMapOption extends WhitelistMapOption_base {
|
127
127
|
}
|
128
|
-
declare const UInt64Option_base: Omit<import("o1js/dist/node/lib/provable/types/provable-intf").Provable<Option<UInt64, bigint>, bigint | undefined>, "fromFields"> & {
|
129
|
-
fromFields: (fields: import("o1js/dist/node/lib/provable/field").Field[]) => Option<UInt64, bigint>;
|
128
|
+
declare const UInt64Option_base: Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<Option<UInt64, bigint>, bigint | undefined>, "fromFields"> & {
|
129
|
+
fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => Option<UInt64, bigint>;
|
130
130
|
} & (new (option: {
|
131
131
|
isSome: Bool;
|
132
132
|
value: UInt64;
|
@@ -148,7 +148,7 @@ declare const WhitelistedAddress_base: (new (value: {
|
|
148
148
|
amount: UInt64;
|
149
149
|
}) & {
|
150
150
|
_isStruct: true;
|
151
|
-
} & Omit<import("o1js/dist/node/lib/provable/types/provable-intf").Provable<{
|
151
|
+
} & Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
|
152
152
|
address: PublicKey;
|
153
153
|
amount: UInt64;
|
154
154
|
}, {
|
@@ -158,7 +158,7 @@ declare const WhitelistedAddress_base: (new (value: {
|
|
158
158
|
};
|
159
159
|
amount: bigint;
|
160
160
|
}>, "fromFields"> & {
|
161
|
-
fromFields: (fields: import("o1js/dist/node/lib/provable/field").Field[]) => {
|
161
|
+
fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
|
162
162
|
address: PublicKey;
|
163
163
|
amount: UInt64;
|
164
164
|
};
|
@@ -202,15 +202,15 @@ declare const WhitelistedAddress_base: (new (value: {
|
|
202
202
|
export declare class WhitelistedAddress extends WhitelistedAddress_base {
|
203
203
|
}
|
204
204
|
declare const Whitelist_base: (new (value: {
|
205
|
-
root: import("o1js/dist/node/lib/provable/field").Field;
|
205
|
+
root: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
206
206
|
storage: Storage;
|
207
207
|
}) => {
|
208
|
-
root: import("o1js/dist/node/lib/provable/field").Field;
|
208
|
+
root: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
209
209
|
storage: Storage;
|
210
210
|
}) & {
|
211
211
|
_isStruct: true;
|
212
|
-
} & Omit<import("o1js/dist/node/lib/provable/types/provable-intf").Provable<{
|
213
|
-
root: import("o1js/dist/node/lib/provable/field").Field;
|
212
|
+
} & Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
|
213
|
+
root: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
214
214
|
storage: Storage;
|
215
215
|
}, {
|
216
216
|
root: bigint;
|
@@ -218,29 +218,29 @@ declare const Whitelist_base: (new (value: {
|
|
218
218
|
url: bigint[];
|
219
219
|
};
|
220
220
|
}>, "fromFields"> & {
|
221
|
-
fromFields: (fields: import("o1js/dist/node/lib/provable/field").Field[]) => {
|
222
|
-
root: import("o1js/dist/node/lib/provable/field").Field;
|
221
|
+
fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
|
222
|
+
root: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
223
223
|
storage: Storage;
|
224
224
|
};
|
225
225
|
} & {
|
226
226
|
fromValue: (value: {
|
227
|
-
root: string | number | bigint | import("o1js/dist/node/lib/provable/field").Field;
|
227
|
+
root: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
228
228
|
storage: Storage | {
|
229
|
-
url: import("o1js/dist/node/lib/provable/field").Field[] | bigint[];
|
229
|
+
url: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | bigint[];
|
230
230
|
};
|
231
231
|
}) => {
|
232
|
-
root: import("o1js/dist/node/lib/provable/field").Field;
|
232
|
+
root: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
233
233
|
storage: Storage;
|
234
234
|
};
|
235
235
|
toInput: (x: {
|
236
|
-
root: import("o1js/dist/node/lib/provable/field").Field;
|
236
|
+
root: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
237
237
|
storage: Storage;
|
238
238
|
}) => {
|
239
239
|
fields?: Field[] | undefined;
|
240
240
|
packed?: [Field, number][] | undefined;
|
241
241
|
};
|
242
242
|
toJSON: (x: {
|
243
|
-
root: import("o1js/dist/node/lib/provable/field").Field;
|
243
|
+
root: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
244
244
|
storage: Storage;
|
245
245
|
}) => {
|
246
246
|
root: string;
|
@@ -254,11 +254,11 @@ declare const Whitelist_base: (new (value: {
|
|
254
254
|
url: string[];
|
255
255
|
};
|
256
256
|
}) => {
|
257
|
-
root: import("o1js/dist/node/lib/provable/field").Field;
|
257
|
+
root: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
258
258
|
storage: Storage;
|
259
259
|
};
|
260
260
|
empty: () => {
|
261
|
-
root: import("o1js/dist/node/lib/provable/field").Field;
|
261
|
+
root: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
262
262
|
storage: Storage;
|
263
263
|
};
|
264
264
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Experimental, Struct, Field, Option, Provable, PublicKey, UInt64, Poseidon, } from "o1js";
|
2
|
-
import { serializeIndexedMap, createIpfsURL, pinJSON, Storage, sleep, loadIndexedMerkleMap, } from "
|
2
|
+
import { serializeIndexedMap, createIpfsURL, pinJSON, Storage, sleep, loadIndexedMerkleMap, } from "../../index.js";
|
3
3
|
const { IndexedMerkleMap } = Experimental;
|
4
4
|
const WHITELIST_HEIGHT = 20;
|
5
5
|
/** Represents the whitelist using an Indexed Merkle Map. */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"whitelist.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"whitelist.js","sourceRoot":"","sources":["../../../../../src/mina/token/whitelist.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,MAAM,EACN,KAAK,EACL,MAAM,EACN,QAAQ,EACR,SAAS,EACT,MAAM,EACN,QAAQ,GAET,MAAM,MAAM,CAAC;AACd,OAAO,EACL,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IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;YAChB,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YACrC,OAAO,MAAM,CAAC;QAChB,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,KAAK,CAAC,oDAAoD,EAAE;gBAClE,OAAO;gBACP,KAAK;gBACL,IAAI,EAAE,QAAQ,CAAC,UAAU;gBACzB,MAAM,EAAE,QAAQ,CAAC,MAAM;aACxB,CAAC,CAAC;YACH,OAAO,SAAS,CAAC;QACnB,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CACX,4DAA4D,EAC5D,OAAO,EACP,KAAK,EACL,GAAG,CACJ,CAAC;QACF,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"chain.js","sourceRoot":"","sources":["../../../../../src/mina/transactions/chain.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export * from "./nonce.js";
|
2
|
+
export * from "./transaction.js";
|
3
|
+
export * from "./txstatus.js";
|
4
|
+
export * from "./chain.js";
|
5
|
+
export * from "./blockberry.js";
|
6
|
+
export * from "./tiny-contract.js";
|
7
|
+
export * from "./send.js";
|
8
|
+
export * from "./account.js";
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/mina/transactions/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { BlockBerryChain } from "./chain";
|
2
|
-
import { blockchain } from "../../cloud";
|
1
|
+
import { BlockBerryChain } from "./chain.js";
|
2
|
+
import { blockchain } from "../../cloud/networks.js";
|
3
3
|
export declare function getNonce(params: {
|
4
4
|
account: string;
|
5
5
|
chain: BlockBerryChain;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { getZkAppTxsFromBlockBerry, getPaymentTxsFromBlockBerry, } from "./blockberry";
|
2
|
-
import { fetchMinaAccount, getCurrentNetwork } from "
|
1
|
+
import { getZkAppTxsFromBlockBerry, getPaymentTxsFromBlockBerry, } from "./blockberry.js";
|
2
|
+
import { fetchMinaAccount, getCurrentNetwork } from "../index.js";
|
3
3
|
import { Mina, PublicKey } from "o1js";
|
4
4
|
export async function getNonce(params) {
|
5
5
|
const { account, chain, blockBerryApiKey } = params;
|
@@ -0,0 +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,EAC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AAG,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,6 +1,6 @@
|
|
1
1
|
import { checkZkappTransaction } from "o1js";
|
2
|
-
import { sleep } from "../../cloud";
|
3
|
-
import { fetchMinaAccount, getCurrentNetwork } from "
|
2
|
+
import { sleep } from "../../cloud/index.js";
|
3
|
+
import { fetchMinaAccount, getCurrentNetwork } from "../index.js";
|
4
4
|
/**
|
5
5
|
* The function `sendTx` sends a transaction, checks account updates, and waits for
|
6
6
|
* confirmation on the blockchain.
|
@@ -0,0 +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;IAC1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AC,KAAK,CAAC,CAAC;gBACrB,CAAC;gBACD,0DAA0D;gBAC1D,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 { Field, SmartContract, State } from "o1js";
|
2
2
|
export declare class TinyContract extends SmartContract {
|
3
|
-
value: State<import("o1js/dist/node/lib/provable/field").Field>;
|
3
|
+
value: State<import("node_modules/o1js/dist/node/lib/provable/field.js").Field>;
|
4
4
|
setValue(value: Field): Promise<void>;
|
5
5
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tiny-contract.js","sourceRoot":"","sources":["../../../../../src/mina/transactions/tiny-contract.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAElE,MAAM,OAAO,YAAa,SAAQ,aAAa;IAA/C;;QACgB,UAAK,GAAG,KAAK,EAAS,CAAC;IAKvC,CAAC;IAHe,AAAN,KAAK,CAAC,QAAQ,CAAC,KAAY;QACjC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;CACF;AALe;IAAb,KAAK,CAAC,KAAK,CAAC;;2CAAwB;AAEvB;IAAb,MAAM;;qCAAuB,KAAK;;4CAElC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Field, PublicKey, Mina, UInt64 } from "o1js";
|
2
|
-
import { fieldToBase64, fieldFromBase64 } from "../utils/base64";
|
2
|
+
import { fieldToBase64, fieldFromBase64 } from "../utils/base64.js";
|
3
3
|
export function transactionParams(serializedTransaction, signedJson) {
|
4
4
|
const { sender, nonce, tx } = JSON.parse(serializedTransaction);
|
5
5
|
const transaction = Mina.Transaction.fromJSON(JSON.parse(tx));
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../../../../src/mina/transactions/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAe,IAAI,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAapE,MAAM,UAAU,iBAAiB,CAC/B,qBAA6B,EAC7B,UAAe;IAOf,MAAM,EAAE,MAAM,EAAE,KAAK,EAA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AE,CAAC;YACpC,4BAA4B,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,UAAU,CAAC,CAAC;QACnE,CAAC;IACH,CAAC;AACH,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"txstatus.js","sourceRoot":"","sources":["../../../../../src/mina/transactions/txstatus.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,MAAM,OAAO,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,CAAC;AAE/B,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,MAMxC;IACC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,GAAG,MAAM,CAAC;IAEvD,MAAM,EAAE,GAAG,MAAM,wBAAwB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC,CAAC;IAC7E,IAAI,EAAE,EAAE,QAAQ;QAAE,OAAO,EAAE,EAAE,QAAQ,CAAC;IACtC,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,IAAI,OAAO,CAAC,EAAE,CAAC;QACpD,OAAO,CAAC,KAAK,CACX,qDAAqD,EACrD,KAAK,EACL,IAAI,CACL,CAAC;QACF,OAAO,UAAU,CAAC;IACpB,CAAC;SAAM,CAAC;QACN,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Field } from "o1js";
|
2
|
-
import { toBase, fromBase } from "../../cloud/utils/base64";
|
2
|
+
import { toBase, fromBase } from "../../cloud/utils/base64.js";
|
3
3
|
// URL friendly base64 encoding
|
4
4
|
const TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
|
5
5
|
export function fieldToBase56(field) {
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"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,GAAG,CAAC;AACb,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,GAAW;IACzC,MAAM,YAAY,GAAG,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACxE,MAAM,CAAC,GAAG,QAAQ,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;IACtC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fee.js","sourceRoot":"","sources":["../../../../../src/mina/utils/fee.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,GAAG;IACvB,2GAA2G;IAC3G,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACzC,CAAC"}
|
@@ -14,7 +14,7 @@ export declare function fetchMinaAccount(params: {
|
|
14
14
|
}): Promise<{
|
15
15
|
account: undefined;
|
16
16
|
} | {
|
17
|
-
account: import("o1js/dist/node/bindings/mina-transaction/gen/transaction").Account;
|
17
|
+
account: import("node_modules/o1js/dist/node/bindings/mina-transaction/gen/transaction.js").Account;
|
18
18
|
error: undefined;
|
19
19
|
}>;
|
20
20
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Mina, fetchAccount, checkZkappTransaction, } from "o1js";
|
2
|
-
import { sleep } from "../../cloud";
|
2
|
+
import { sleep } from "../../cloud/utils/index.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
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../../../../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AG,CAAC,qCAAqC,CAAC,CAAC;QAC1D,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YACpB,OAAO,CAAC,GAAG,CACT,2BAA2B,EAC3B,KAAK,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,CACnC,CAAC;QACJ,CAAC;QACD,MAAM,KAAK,CAAC,IAAI,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAC7B,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;IAC3C,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAAC,IAAY;IAC1D,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACjD,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,iCAAiC,EAAE,KAAK,CAAC,CAAC;QACxD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC;AACH,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Field, Poseidon } from "o1js";
|
2
|
-
import { fieldToBase64, fieldFromBase64 } from "./base64";
|
2
|
+
import { fieldToBase64, fieldFromBase64 } from "./base64.js";
|
3
3
|
/**
|
4
4
|
* Serialize fields to a string using base64 URL-friendly encoding
|
5
5
|
* @param fields the fields array to serialize
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../src/mina/utils/fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE7D;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,MAAe;IAC7C,MAAM,IA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@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/mina/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Experimental } from "o1js";
|
2
|
-
declare const IndexedMerkleMap: typeof import("o1js/dist/node/lib/provable/merkle-tree-indexed").IndexedMerkleMap;
|
2
|
+
declare const IndexedMerkleMap: typeof import("node_modules/o1js/dist/node/lib/provable/merkle-tree-indexed.js").IndexedMerkleMap;
|
3
3
|
type IndexedMerkleMap = Experimental.IndexedMerkleMap;
|
4
4
|
export interface IndexedMapSerialized {
|
5
5
|
height: number;
|
@@ -13,7 +13,7 @@ export declare function loadIndexedMerkleMap(params: {
|
|
13
13
|
type: ReturnType<typeof IndexedMerkleMap>;
|
14
14
|
timeout?: number;
|
15
15
|
attempts?: number;
|
16
|
-
}): Promise<import("o1js/dist/node/lib/provable/merkle-tree-indexed").IndexedMerkleMapBase>;
|
16
|
+
}): Promise<import("node_modules/o1js/dist/node/lib/provable/merkle-tree-indexed.js").IndexedMerkleMapBase>;
|
17
17
|
export declare function saveIndexedMerkleMap(params: {
|
18
18
|
map: IndexedMerkleMap;
|
19
19
|
name?: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Experimental, Field } from "o1js";
|
2
|
-
import { bigintToBase64, bigintFromBase64, sleep } from "../../cloud";
|
3
|
-
import { pinJSON } from "../storage/pinata";
|
2
|
+
import { bigintToBase64, bigintFromBase64, sleep } from "../../cloud/index.js";
|
3
|
+
import { pinJSON } from "../storage/pinata.js";
|
4
4
|
const { IndexedMerkleMap } = Experimental;
|
5
5
|
export async function loadIndexedMerkleMap(params) {
|
6
6
|
const { url, type, timeout = 60000, attempts = 5 } = params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AK,EAAE,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;SACxC,CAAC;IACJ,CAAC,CACF,CAAC;IAEF,GAAG,CAAC,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,oBAAoB,CAAC,IAAI,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"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export { initBlockchain, accountBalance, accountBalanceMina, MinaNetworkInstance, currentNetwork, getNetworkIdHash, getCurrentNetwork, getDeployer, };
|
2
2
|
import { Mina, PublicKey, UInt64, Field } from "o1js";
|
3
|
-
import { blockchain, MinaNetwork } from "../../cloud";
|
3
|
+
import { blockchain, MinaNetwork } from "../../cloud/networks.js";
|
4
4
|
/**
|
5
5
|
* MinaNetworkInstance is the data structure for a Mina network instance, keeping track of the keys, network, and network ID hash.
|
6
6
|
*/
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export { initBlockchain, accountBalance, accountBalanceMina, currentNetwork, getNetworkIdHash, getCurrentNetwork, getDeployer, };
|
2
2
|
import { Mina, PrivateKey, UInt64, fetchAccount, Lightnet, CircuitString, } from "o1js";
|
3
|
-
import { networks, Local } from "../../cloud";
|
3
|
+
import { networks, Local, } from "../../cloud/networks.js";
|
4
4
|
let currentNetwork = undefined;
|
5
5
|
function getNetworkIdHash() {
|
6
6
|
if (currentNetwork === undefined) {
|
@@ -0,0 +1 @@
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AAO,CAAC;QAAE,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;;QACzD,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC7B,CAAC;AAED;;;;GAIG;AACH,KAAK,UAAU,kBAAkB,CAAC,OAAkB;IAClD,OAAO,MAAM,CAAC,CAAC,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,GAAG,GAAG,CAAC;AAClE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./verification.js";
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/mina/verification/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { blockchain } from "../../cloud/networks";
|
1
|
+
import { blockchain } from "../../cloud/networks.js";
|
2
2
|
import { SmartContract } from "o1js";
|
3
3
|
/**
|
4
4
|
* VerificationData is a data structure that contains all the information needed to verify a smart contract on a blockchain.
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"verification.js","sourceRoot":"","sources":["../../../../../src/mina/verification/verification.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"root":["../../src/index.ts"],"version":"5.7.2"}
|
@@ -1,5 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
1
|
const config = {
|
4
2
|
MINAFEE: "200000000",
|
5
3
|
ZKCLOUDWORKER_AUTH: "M6t4jtbBAFFXhLERHQWyEB9JA9xi4cWqmYduaCXtbrFjb7yaY7TyaXDunKDJNiUTBEcyUomNXJgC",
|
@@ -7,4 +5,5 @@ const config = {
|
|
7
5
|
ZKCLOUDWORKER_NATS: "https://cloud.zkcloudworker.com:4222",
|
8
6
|
ZKCLOUDWORKER_NATS_WS: "wss://cloud.zkcloudworker.com:4223",
|
9
7
|
};
|
10
|
-
|
8
|
+
export default config;
|
9
|
+
//# sourceMappingURL=config.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../src/cloud/config.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;IACb,OAAO,EAAE,WAAW;IACpB,kBAAkB,EAChB,8EAA8E;IAChF,iBAAiB,EAAE,mCAAmC;IACtD,kBAAkB,EAAE,sCAAsC;IAC1D,qBAAqB,EAAE,oCAAoC;CAC5D,CAAC;AAEF,eAAe,MAAM,CAAC"}
|