zkcloudworker 0.16.3 → 0.16.5
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/ts/src/mina/index.d.ts +0 -2
- package/lib/ts/src/mina/index.js +0 -2
- package/lib/ts/src/mina/token/vk.d.ts +20 -0
- package/lib/ts/src/mina/token/vk.js +20 -0
- package/lib/ts/src/mina/utils/index.d.ts +2 -0
- package/lib/ts/src/mina/utils/index.js +2 -0
- package/lib/{web/src/mina/nft/whitelist.d.ts → ts/src/mina/utils/indexed-map.d.ts} +8 -7
- package/lib/ts/src/mina/{nft/whitelist.js → utils/indexed-map.js} +14 -18
- package/lib/ts/src/mina/utils/ipfs.d.ts +5 -0
- package/lib/ts/src/mina/utils/ipfs.js +10 -0
- package/lib/ts/tsconfig.tsbuildinfo +1 -1
- package/lib/web/src/mina/index.d.ts +0 -2
- package/lib/web/src/mina/index.js +0 -2
- package/lib/web/src/mina/index.js.map +1 -1
- package/lib/web/src/mina/token/vk.d.ts +20 -0
- package/lib/web/src/mina/token/vk.js +20 -0
- package/lib/web/src/mina/token/vk.js.map +1 -1
- package/lib/web/src/mina/utils/index.d.ts +2 -0
- package/lib/web/src/mina/utils/index.js +2 -0
- package/lib/web/src/mina/utils/index.js.map +1 -1
- package/lib/{ts/src/mina/nft/whitelist.d.ts → web/src/mina/utils/indexed-map.d.ts} +8 -7
- package/lib/web/src/mina/{nft/whitelist.js → utils/indexed-map.js} +12 -14
- package/lib/web/src/mina/utils/indexed-map.js.map +1 -0
- package/lib/web/src/mina/utils/ipfs.d.ts +5 -0
- package/lib/web/src/mina/utils/ipfs.js +8 -0
- package/lib/web/src/mina/utils/ipfs.js.map +1 -0
- package/lib/web/tsconfig.web.tsbuildinfo +1 -1
- package/package.json +2 -8
- package/lib/ts/src/mina/V1/FungibleToken.d.ts +0 -338
- package/lib/ts/src/mina/V1/FungibleToken.js +0 -308
- package/lib/ts/src/mina/V1/FungibleTokenAdmin.d.ts +0 -31
- package/lib/ts/src/mina/V1/FungibleTokenAdmin.js +0 -102
- package/lib/ts/src/mina/V1/index.d.ts +0 -28
- package/lib/ts/src/mina/V1/index.js +0 -13
- package/lib/ts/src/mina/V1/vk.d.ts +0 -22
- package/lib/ts/src/mina/V1/vk.js +0 -25
- package/lib/ts/src/mina/nft/index.d.ts +0 -3
- package/lib/ts/src/mina/nft/index.js +0 -19
- package/lib/ts/src/mina/nft/types.d.ts +0 -1254
- package/lib/ts/src/mina/nft/types.js +0 -236
- package/lib/ts/src/mina/nft/whitelist-admin.d.ts +0 -23
- package/lib/ts/src/mina/nft/whitelist-admin.js +0 -139
- package/lib/web/src/mina/V1/FungibleToken.d.ts +0 -338
- package/lib/web/src/mina/V1/FungibleToken.js +0 -292
- package/lib/web/src/mina/V1/FungibleToken.js.map +0 -1
- package/lib/web/src/mina/V1/FungibleTokenAdmin.d.ts +0 -31
- package/lib/web/src/mina/V1/FungibleTokenAdmin.js +0 -91
- package/lib/web/src/mina/V1/FungibleTokenAdmin.js.map +0 -1
- package/lib/web/src/mina/V1/index.d.ts +0 -28
- package/lib/web/src/mina/V1/index.js +0 -11
- package/lib/web/src/mina/V1/index.js.map +0 -1
- package/lib/web/src/mina/V1/vk.d.ts +0 -22
- package/lib/web/src/mina/V1/vk.js +0 -23
- package/lib/web/src/mina/V1/vk.js.map +0 -1
- package/lib/web/src/mina/nft/index.d.ts +0 -3
- package/lib/web/src/mina/nft/index.js +0 -4
- package/lib/web/src/mina/nft/index.js.map +0 -1
- package/lib/web/src/mina/nft/types.d.ts +0 -1254
- package/lib/web/src/mina/nft/types.js +0 -227
- package/lib/web/src/mina/nft/types.js.map +0 -1
- package/lib/web/src/mina/nft/whitelist-admin.d.ts +0 -23
- package/lib/web/src/mina/nft/whitelist-admin.js +0 -128
- package/lib/web/src/mina/nft/whitelist-admin.js.map +0 -1
- package/lib/web/src/mina/nft/whitelist.js.map +0 -1
package/lib/ts/src/mina/index.js
CHANGED
@@ -21,5 +21,3 @@ __exportStar(require("./local/local"), exports);
|
|
21
21
|
__exportStar(require("./verification"), exports);
|
22
22
|
__exportStar(require("./token"), exports);
|
23
23
|
__exportStar(require("./transactions"), exports);
|
24
|
-
__exportStar(require("./nft"), exports);
|
25
|
-
__exportStar(require("./V1"), exports);
|
@@ -19,4 +19,24 @@ export declare const fungibleTokenVerificationKeys: {
|
|
19
19
|
data: string;
|
20
20
|
};
|
21
21
|
};
|
22
|
+
testnet_v1: {
|
23
|
+
admin: {
|
24
|
+
hash: string;
|
25
|
+
data: string;
|
26
|
+
};
|
27
|
+
token: {
|
28
|
+
hash: string;
|
29
|
+
data: string;
|
30
|
+
};
|
31
|
+
};
|
32
|
+
mainnet_v1: {
|
33
|
+
admin: {
|
34
|
+
hash: string;
|
35
|
+
data: string;
|
36
|
+
};
|
37
|
+
token: {
|
38
|
+
hash: string;
|
39
|
+
data: string;
|
40
|
+
};
|
41
|
+
};
|
22
42
|
};
|
@@ -22,4 +22,24 @@ exports.fungibleTokenVerificationKeys = {
|
|
22
22
|
data: "AABoR9W/JCk+QV7xmR0EmMunepTBYRNFuyTe3jy0YL4FPMZvsY3S7Erek8aQc6iEbg0gx8yQZuX7/I9abchc2AM3/JhaHwmIVJYlvR+hIhruFPB3wgxMNv0w0gKKcrMUjwumIsjP5rBKR/iI66NePvgPuC29OEcvCy1WA7VGa4jkJdudep82RUdWGRWK2+TESBdYTcmhDVuKl71sFjmOdRsHPuHz9tgXl+pkmjmsRFUu0NL0uf7+4UZZ3qwo5JDu+CK6Ec77HZQNWTxobryIa5NH8CwGRTykkaJMUmjbfWiFPCUHzvcqpOIDa/P0WVqqmkAksmXroqqmKGk7zQBN+Ak0GHEPqQDSJIQv98Wm/EluR3MtPMixUI0OSCdbCe++KR4gIKwvRX+AyBCIcMUEuQ7CN4TcDQmD4dsnU3Ywu2cTLCmf1z6el9AHdoTNg5kHvhrxJtV5O5sUnQEW+LPdxSMkxmO3ao9cj4Pdjpf//o1wVN9GR9uyGgj7JxOzi0e1HC2DWmTr5hsWR+J7Pz5rAY5jv5xAcpzUgdqRLr+0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fI7jkHCFb79u8QPvuqhsYWVSS8bI3rXE1kWY1ZKYoC3FtfenG9e8haWYXUyk1783IQJ4W1jkscQTU1RZrL0cWoaCxIXnXsdDJStgz8B9EQ0uUEkfXSXYEbQtIA4DVKzTO4uqxOzafqAOLnvOxi5Vn95JCOu3CEAFr0WQEOnA2X3nw31spFvLj0jykGpn1ECHhW4Ft9EOkHDr4qDA8Mi5gH9EB+g0AhObwxj7RZB2Wq5PSmZw131mkHzgYOgD3JC9tlaGMSxesjF1O3+U3wUOLrrU89s128Y0PpiEzO6Jsm1aDzbF1pkz3asy0z+Enb4BMg/Jv5j/EZkKM6Okv746/ETIs69fv3e5Iucae7lyyYVNCYBtucWrOQK2Pfi4QzRZjkC29hj8OenHSn+75qcX/v5ejhSBAb24Bp1INNVgaF3VHGz1+ULEcs73b/b0K1AQJYfdkfD4fqrj1nUIlVYv3yw1SyEKClpoiBaLiRxg/04rgb3enmxe6msVApSIlAYs+qeRAIRDCU+ZensV1x4sS4VCjQgoPlo9sV7wJDUOTsUkgux38w39sqiSfONzmyhfXqZocojTv1m3vHh8gnCFUbZ/d3WvywDE67VPRlTYX5ZR80Yyjz3byDH2/+DWOsjv2q8KUv2mtgkiOTZ1D3tAF6Vl6tSWlixMYc1tfC8KDWDOq2eg7M72MqjfiMTuBPXr2ZB/nTdtCi9lDQQESzBmgJaV/KCZOAaIKQR9hibvy4vt3wlSZ9XTK+FFZPQc=",
|
23
23
|
},
|
24
24
|
},
|
25
|
+
testnet_v1: {
|
26
|
+
admin: {
|
27
|
+
hash: "1200635497217107248831982322269320244173535715339356861513501242012238077174",
|
28
|
+
data: "AABvj1TjS95sAoY8puZRG2h4hxjs9c5enwfo4vZAQC/COWHgEjNupRIxb3LVxaRU2mkaG94By4OqrJ3M7YXNs4oiAhMdOuU5+NrHN3RCJtswX+WPvwaHJnihtSy2FcJPyghvBVTi2i7dtWIPQLVDIzC5ARu8f8H9JWjzjVVYE/rQLruuq2qUsCrqdVsdRaw+6OjIFeA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9mhpr1JPwdNFrWdgs19VsobntCpF/rWxksdrYyk=",
|
29
|
+
},
|
30
|
+
token: {
|
31
|
+
hash: "25084457276132306637089336910977939820654927814172888515895248592725736067489",
|
32
|
+
data: "AABoR9W/JCk+QV7xmR0EmMunepTBYRNFuyTe3jy0YL4FPMZvsY3S7Erek8aQc6iEbg0gx8yQZuX7/I9abchc2AM3/JhaHwmIVJYlvR+hIhruFPB3wgxMNv0w0gKKcrMUjwumIsjP5rBKR/iI66NePvgPuC29OEcvCy1WA7VGa4jkJdudep82RUdWGRWK2+TESBdYTcmhDVuKl71sFjmOdRsHPuHz9tgXl+pkmjmsRFUu0NL0uf7+4UZZ3qwo5JDu+CK6Ec77HZQNWTxobryIa5NH8CwGRTykkaJMUmjbfWiFPCUHzvcqpOIDa/P0WVqqmkAksmXroqqmKGk7zQBN+Ak0GHEPqQDSJIQv98Wm/EluR3MtPMixUI0OSCdbCe++KR4gIKwvRX+AyBCIcMUEuQ7CN4TcDQmD4dsnU3Ywu2cTLCmf1z6el9AHdoTNg5kHvhrxJtV5O5sUnQEW+LPdxSMkxmO3ao9cj4Pdjpf//o1wVN9GR9uyGgj7JxOzi0e1HC2DWmTr5hsWR+J7Pz5rAY5jv5xAcpzUgdqRLr+0Z5wQBovJXign+HwE1cLbTGjZjc2WzRyDEAUfk+VvpE9GcgUdAGxdMh8pRk2c3gIyZAR50aD7krfuev7xNcosFvHDLxoQT4kMIbvQCEm5Y1b4naLNO4venPN+UPSplqeglngyVg6hL95iMJSSJp15EYPASeiSRhU71xGX0Ga6ZJUBPmwuN43AhoCb5DcuShlhi7CwjficYrtDo1u7ZpmnWP0tbaE1u3Cmua8TUIWLHYL9CoBo2HEP5858I/xbZpseBTXbUhQOgdQSqCj0ai5ibbIEWlzyeVctufQRm6pK4OGSnZvSP+km8zpVR15SVLkkzPAtmtpJ28bSInD1sm++/MMMz30+xP+7XMk6yCnAKS7Ryh+7LqDgPK2C3fPDaPe38v1PXDUseFa60FhJTq5ztwNXh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8OenHSn+75qcX/v5ejhSBAb24Bp1INNVgaF3VHGz1+ULEcs73b/b0K1AQJYfdkfD4fqrj1nUIlVYv3yw1SyEKClpoiBaLiRxg/04rgb3enmxe6msVApSIlAYs+qeRAIRDCU+ZensV1x4sS4VCjQgoPlo9sV7wJDUOTsUkgux38w39sqiSfONzmyhfXqZocojTv1m3vHh8gnCFUbZ/d3WvywDE67VPRlTYX5ZR80Yyjz3byDH2/+DWOsjv2q8KUv2mtgkiOTZ1D3tAF6Vl6tSWlixMYc1tfC8KDWDOq2eg7M72MqjfiMTuBPXr2ZB/nTdtCi9lDQQESzBmgJaV/KCZOAaIKQR9hibvy4vt3wlSZ9XTK+FFZPQc=",
|
33
|
+
},
|
34
|
+
},
|
35
|
+
mainnet_v1: {
|
36
|
+
admin: {
|
37
|
+
hash: "16115269877914581564299853766147447229664556890591132763176560855029019233817",
|
38
|
+
data: "AABvj1TjS95sAoY8puZRG2h4hxjs9c5enwfo4vZAQC/COWHgEjNupRIxb3LVxaRU2mkaG94By4OqrJ3M7YXNs4oiAhMdOuU5+NrHN3RCJtswX+WPvwaHJnihtSy2FcJPyghvBVTi2i7dtWIPQLVDIzC5ARu8f8H9JWjzjVVYE/rQLruuq2qUsCrqdVsdRaw+6OjIFeAXS6mzvrVv5iYGslg5CV5mgLBg3xC408jZJ0pe8ua2mcIEDMGEdSR/+VuhPQaqxZTJPBVhazVc1P9gRyS26SdOohL85UmEc4duqlJOOlXOFuwOT6dvoiUcdQtzuPp1pzA/LHueqm9yQG9mlT0Df8uY/A+rwM4l/ypTP/o0+5GCM9jJf9bl/z0DpGWheCJY+LZbIGeBUOpg0Gx1+KZsD9ivWJ0vxNz8zKcAS1i3FqFhahkJHiiKgikn6Qig5+Yf3MJs0WKSNkCkgW2B48srVTR9ykLyO+68NiWLEnLXvJd+rmUHR4K92whqctZZ8zvd2+5u+b62pkvFqqZZ9r24SMQOe9Bl2ZfMew2DyFLMPzwTowHw8onMEXcVKabFs9zQVp66AMf/wlip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mXooHZhUeZAIX8ZCizhb1Gfvm02JFwxYXmiYAOp5wkGzweU2I5zo8r5yZFI1r4XibNQs7eAfKGRv3gh8/EuLkX/bdettgPvNsI8ndpQ3kL/V8W2PQN4/hjC9AKCYBeXQG42bRncYZdLe++R2KA1ZdPDxQPF3sxUIKhzmRWqbozrtv310Maorwv6eZJjldlCJwICR9QgcDwDuNj+UFJnX3RWsdIWsUbI1T4wO0sE2sBiMX/OqmiGJEAnBegioistlFyfRvm54h+duNOl/ol1Fva7NoXvsL/wThAWUly7bnc7/Al2bBQlUrmEX46UnKXzYntkZDee7Lx1u1BBkJAj/5BH1YZOPmMCh498rBUiHmc+4uQqebqNSHdOSgC39ESss4u7GNhWj3fi9XXta6UT9wapEMGq0WTg2Kry6xNP2YZ5X8eaapRQc/KzYgz9XjQL6TKpqNuGEbRlmfYvIuoFbnOkZI7RYoGp3YheMs1pQErwOxLzZa9W3Okwx16TSDwPLR0xMdAyogMrOdKN4JSMyNnmOaoVf6PkN+K9fz7RuHtvgjKpuz4vsK5Z2wRneqPrnfu6PkgHcRQrd0SxqCbN23Z/yp8qOcN6XU49iCNEBjztT00tolQ9hCPMSE/eTZ+ioez7m3pJFVks3T5Rk/e+6MeowJWIOv20x6CPS9mhpr1JPwdNFrWdgs19VsobntCpF/rWxksdrYyk=",
|
39
|
+
},
|
40
|
+
token: {
|
41
|
+
hash: "12320223354843720065815824451082596238990220882343256724550451075683722289248",
|
42
|
+
data: "AABoR9W/JCk+QV7xmR0EmMunepTBYRNFuyTe3jy0YL4FPMZvsY3S7Erek8aQc6iEbg0gx8yQZuX7/I9abchc2AM3/JhaHwmIVJYlvR+hIhruFPB3wgxMNv0w0gKKcrMUjwumIsjP5rBKR/iI66NePvgPuC29OEcvCy1WA7VGa4jkJdudep82RUdWGRWK2+TESBdYTcmhDVuKl71sFjmOdRsHPuHz9tgXl+pkmjmsRFUu0NL0uf7+4UZZ3qwo5JDu+CK6Ec77HZQNWTxobryIa5NH8CwGRTykkaJMU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|
25
45
|
};
|
@@ -19,3 +19,5 @@ __exportStar(require("./fetch"), exports);
|
|
19
19
|
__exportStar(require("./fields"), exports);
|
20
20
|
__exportStar(require("./fee"), exports);
|
21
21
|
__exportStar(require("./mina"), exports);
|
22
|
+
__exportStar(require("./ipfs"), exports);
|
23
|
+
__exportStar(require("./indexed-map"), exports);
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { Experimental } from "o1js";
|
2
2
|
declare const IndexedMerkleMap: typeof import("o1js/dist/node/lib/provable/merkle-tree-indexed").IndexedMerkleMap;
|
3
|
-
|
4
|
-
export declare
|
5
|
-
|
6
|
-
|
3
|
+
type IndexedMerkleMap = Experimental.IndexedMerkleMap;
|
4
|
+
export declare function loadIndexedMerkleMap(params: {
|
5
|
+
url: string;
|
6
|
+
type: ReturnType<typeof IndexedMerkleMap>;
|
7
|
+
}): Promise<import("o1js/dist/node/lib/provable/merkle-tree-indexed").IndexedMerkleMapBase>;
|
7
8
|
interface IndexedMapSerialized {
|
8
9
|
height: number;
|
9
10
|
root: string;
|
@@ -11,8 +12,8 @@ interface IndexedMapSerialized {
|
|
11
12
|
nodes: string;
|
12
13
|
sortedLeaves: string;
|
13
14
|
}
|
14
|
-
export declare function
|
15
|
-
export declare function
|
15
|
+
export declare function serializeIndexedMap(map: IndexedMerkleMap): string;
|
16
|
+
export declare function deserializeIndexedMerkleMap(params: {
|
16
17
|
serializedIndexedMap: string;
|
17
18
|
type?: ReturnType<typeof IndexedMerkleMap>;
|
18
19
|
}): InstanceType<ReturnType<typeof IndexedMerkleMap>> | undefined;
|
@@ -1,33 +1,29 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.
|
5
|
-
exports.
|
6
|
-
exports.deserializeWhitelist = deserializeWhitelist;
|
3
|
+
exports.loadIndexedMerkleMap = loadIndexedMerkleMap;
|
4
|
+
exports.serializeIndexedMap = serializeIndexedMap;
|
5
|
+
exports.deserializeIndexedMerkleMap = deserializeIndexedMerkleMap;
|
7
6
|
exports.parseIndexedMapSerialized = parseIndexedMapSerialized;
|
8
7
|
const o1js_1 = require("o1js");
|
9
8
|
const cloud_1 = require("../../cloud");
|
10
9
|
const { IndexedMerkleMap } = o1js_1.Experimental;
|
11
|
-
|
12
|
-
}
|
13
|
-
exports.Whitelist = Whitelist;
|
14
|
-
async function loadWhitelist(storage) {
|
15
|
-
const url = "https://gateway.pinata.cloud/ipfs/" + storage.toURL();
|
10
|
+
async function loadIndexedMerkleMap(params) {
|
11
|
+
const { url, type } = params;
|
16
12
|
const response = await fetch(url);
|
17
13
|
if (!response.ok) {
|
18
|
-
throw new Error("Failed to fetch
|
14
|
+
throw new Error("Failed to fetch IndexedMerkleMap");
|
19
15
|
}
|
20
|
-
const json = await response.json();
|
21
|
-
const map =
|
22
|
-
|
23
|
-
type
|
16
|
+
const json = (await response.json());
|
17
|
+
const map = deserializeIndexedMerkleMapInternal({
|
18
|
+
json,
|
19
|
+
type,
|
24
20
|
});
|
25
21
|
if (!map) {
|
26
22
|
throw new Error("Failed to deserialize whitelist");
|
27
23
|
}
|
28
24
|
return map;
|
29
25
|
}
|
30
|
-
function
|
26
|
+
function serializeIndexedMap(map) {
|
31
27
|
const serializedMap = JSON.stringify({
|
32
28
|
height: map.height,
|
33
29
|
root: map.root.toJSON(),
|
@@ -44,11 +40,11 @@ function serializeWhitelist(map) {
|
|
44
40
|
}, null, 2);
|
45
41
|
return serializedMap;
|
46
42
|
}
|
47
|
-
function
|
43
|
+
function deserializeIndexedMerkleMap(params) {
|
48
44
|
try {
|
49
45
|
const { serializedIndexedMap, type } = params;
|
50
46
|
const json = parseIndexedMapSerialized(serializedIndexedMap);
|
51
|
-
return
|
47
|
+
return deserializeIndexedMerkleMapInternal({
|
52
48
|
json,
|
53
49
|
type: type ?? IndexedMerkleMap(json.height),
|
54
50
|
});
|
@@ -78,7 +74,7 @@ function parseIndexedMapSerialized(serializedMap) {
|
|
78
74
|
throw new Error("wrong IndexedMerkleMap sortedLeaves format");
|
79
75
|
return json;
|
80
76
|
}
|
81
|
-
function
|
77
|
+
function deserializeIndexedMerkleMapInternal(params) {
|
82
78
|
const { json, type } = params;
|
83
79
|
const map = new type();
|
84
80
|
if (json.height !== map.height) {
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.createIpfsURL = createIpfsURL;
|
4
|
+
function createIpfsURL(params) {
|
5
|
+
let { hash, gateway, apiToken } = params;
|
6
|
+
if (!gateway) {
|
7
|
+
gateway = "https://gateway.pinata.cloud/ipfs/";
|
8
|
+
}
|
9
|
+
return gateway + hash + (apiToken ? "?pinataGatewayToken=" + apiToken : "");
|
10
|
+
}
|