@nihilium/client-sdk 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{browser.esm-kreqNYRZ-CV3K9CfO-Crj74K-4.js → browser.esm-kreqNYRZ-CV3K9CfO-DA35K2mr.js} +1 -1
- package/dist/{browser.esm-kreqNYRZ-7qAQ13Pg.js → browser.esm-kreqNYRZ-CVeNVlwI.js} +2 -2
- package/dist/{index-3PKMWW6b.js → index-DCjxkCyO.js} +565 -564
- package/dist/{index-DFD-0QrS-CQSN52v_.js → index-DFD-0QrS-Ctk7QymM.js} +2 -2
- package/dist/{index-DFD-0QrS-T8cg-3OU-Dqbi8PAZ.js → index-DFD-0QrS-Jw1FnMaR-D_K_-juK.js} +1 -1
- package/dist/{index-DEtC2xfH-DOqvYJY5.js → index-ToaS6unp-DgCzjWB-.js} +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +14 -13
- package/dist/{types-C-XvYweP.js → types-B5eO7zCS.js} +4 -4
- package/dist/types.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as St } from "./types-
|
|
2
|
-
import { C as tt, I as O, L as R, a as et, P as I, S as Ut, d as P, h as z, $ as nt, G as vt } from "./index-
|
|
1
|
+
import { B as St } from "./types-B5eO7zCS.js";
|
|
2
|
+
import { C as tt, I as O, L as R, a as et, P as I, S as Ut, d as P, h as z, $ as nt, G as vt } from "./index-DCjxkCyO.js";
|
|
3
3
|
/**
|
|
4
4
|
* @module @zk-kit/utils
|
|
5
5
|
* @version 1.2.1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as tt, P as O, a as R, Q as et, H as I, h as Ut, K as x, N as z, z as nt, l as St, B as vt } from "./types-
|
|
1
|
+
import { _ as tt, P as O, a as R, Q as et, H as I, h as Ut, K as x, N as z, z as nt, l as St, B as vt } from "./types-B5eO7zCS.js";
|
|
2
2
|
/**
|
|
3
3
|
* @module @zk-kit/utils
|
|
4
4
|
* @version 1.2.1
|
package/dist/index.d.ts
CHANGED
|
@@ -7028,7 +7028,7 @@ declare const index_browser_d_proofLibrary: typeof proofLibrary;
|
|
|
7028
7028
|
declare const index_browser_d_standardProofs: typeof standardProofs;
|
|
7029
7029
|
declare const index_browser_d_toAddressMap: typeof toAddressMap;
|
|
7030
7030
|
declare namespace index_browser_d {
|
|
7031
|
-
export { index_browser_d_ChainedProofWrapper as ChainedProofWrapper, index_browser_d_ClientSingleShareSealingProcess as ClientSingleShareSealingProcess, index_browser_d_ClientSingleShareUnsealingProcess as ClientSingleShareUnsealingProcess, index_browser_d_DataStream as DataStream, index_browser_d_DataStreamClient as DataStreamClient, index_browser_d_EmpheralMerkleTreeWrapper as EmpheralMerkleTreeWrapper, index_browser_d_ModuleLibraryType as ModuleLibraryType, index_browser_d_NETWORK_IDS as NETWORK_IDS, index_browser_d_NihiliumPaymentProvider as NihiliumPaymentProvider, index_browser_d_NihiliumPaymentProviderClientAPIKEY_DO_NOT_USE as NihiliumPaymentProviderClientAPIKEY_DO_NOT_USE, index_browser_d_Persistence as Persistence, index_browser_d_Processor as Processor, index_browser_d_ProofLibraryType as ProofLibraryType, index_browser_d_StandardModuleLibrary as StandardModuleLibrary, index_browser_d_StandardProofLibrary as StandardProofLibrary, index_browser_d_createRevealOnlyCollection as createRevealOnlyCollection, tools_d as cryptoTools, index_browser_d_deployedProtocolContracts as deployedProtocolContracts, index_browser_d_moduleLibrary as moduleLibrary, index_browser_d_precompute as precompute, index_browser_d_proofLibrary as proofLibrary, index_d as standardModules, index_browser_d_standardProofs as standardProofs, index_browser_d_toAddressMap as toAddressMap, public_d as types, utils_d as utils };
|
|
7031
|
+
export { index_browser_d_ChainedProofWrapper as ChainedProofWrapper, index_browser_d_ClientSingleShareSealingProcess as ClientSingleShareSealingProcess, index_browser_d_ClientSingleShareUnsealingProcess as ClientSingleShareUnsealingProcess, index_browser_d_DataStream as DataStream, index_browser_d_DataStreamClient as DataStreamClient, index_browser_d_EmpheralMerkleTreeWrapper as EmpheralMerkleTreeWrapper, index_browser_d_ModuleLibraryType as ModuleLibraryType, index_browser_d_NETWORK_IDS as NETWORK_IDS, index_browser_d_NihiliumPaymentProvider as NihiliumPaymentProvider, index_browser_d_NihiliumPaymentProviderClientAPIKEY_DO_NOT_USE as NihiliumPaymentProviderClientAPIKEY_DO_NOT_USE, index_browser_d_Persistence as Persistence, index_browser_d_Processor as Processor, index_browser_d_ProofLibraryType as ProofLibraryType, index_browser_d_StandardModuleLibrary as StandardModuleLibrary, index_browser_d_StandardProofLibrary as StandardProofLibrary, from_json as collection_from_json, index_browser_d_createRevealOnlyCollection as createRevealOnlyCollection, tools_d as cryptoTools, index_browser_d_deployedProtocolContracts as deployedProtocolContracts, index_browser_d_moduleLibrary as moduleLibrary, index_browser_d_precompute as precompute, index_browser_d_proofLibrary as proofLibrary, index_d as standardModules, index_browser_d_standardProofs as standardProofs, index_browser_d_toAddressMap as toAddressMap, public_d as types, utils_d as utils };
|
|
7032
7032
|
export type { index_browser_d_DualLatestGlobalLeafProofResult as DualLatestGlobalLeafProofResult, index_browser_d_DualProofResult as DualProofResult, index_browser_d_IDataStream as IDataStream, index_browser_d_IDualDataStream as IDualDataStream, index_browser_d_LatestGlobalLeafProofResult as LatestGlobalLeafProofResult, index_browser_d_ProofResult as ProofResult };
|
|
7033
7033
|
}
|
|
7034
7034
|
|
|
@@ -7060,5 +7060,5 @@ declare function getDefaultSealingProcess(chainId?: number): Promise<ClientSingl
|
|
|
7060
7060
|
declare function getDefaultUnsealingProcess(seal: SingleSealStoragePackage$1, chainId?: number): Promise<ClientSingleShareUnsealingProcess>;
|
|
7061
7061
|
declare function preload_circuits(): Promise<void>;
|
|
7062
7062
|
|
|
7063
|
-
export { ChainedProofWrapper, ClientSingleShareSealingProcess, ClientSingleShareUnsealingProcess, DataStream, DataStreamClient, EmpheralMerkleTreeWrapper, ModuleLibraryType, NETWORK_IDS, NihiliumPaymentProvider, NihiliumPaymentProviderClientAPIKEY_DO_NOT_USE, Persistence, Processor, ProofLibraryType, StandardModuleLibrary, StandardProofLibrary, check_if_reveal_value_is_published, createRevealOnlyCollection, cryptoTools, deployedProtocolContracts, getDefaultSealingProcess, getDefaultUnsealingProcess, getFullDatastreams, getFullProcessors, getProcessorEndpoint, moduleLibrary, index_browser_d as nhsdk, precompute, preload_circuits, proofLibrary, setApiEndpoint, index_d as standardModules, standardProofs, toAddressMap, public_d as types, utils_d as utils };
|
|
7063
|
+
export { ChainedProofWrapper, ClientSingleShareSealingProcess, ClientSingleShareUnsealingProcess, DataStream, DataStreamClient, EmpheralMerkleTreeWrapper, ModuleLibraryType, NETWORK_IDS, NihiliumPaymentProvider, NihiliumPaymentProviderClientAPIKEY_DO_NOT_USE, Persistence, Processor, ProofLibraryType, StandardModuleLibrary, StandardProofLibrary, check_if_reveal_value_is_published, from_json as collection_from_json, createRevealOnlyCollection, cryptoTools, deployedProtocolContracts, getDefaultSealingProcess, getDefaultUnsealingProcess, getFullDatastreams, getFullProcessors, getProcessorEndpoint, moduleLibrary, index_browser_d as nhsdk, precompute, preload_circuits, proofLibrary, setApiEndpoint, index_d as standardModules, standardProofs, toAddressMap, public_d as types, utils_d as utils };
|
|
7064
7064
|
export type { DualLatestGlobalLeafProofResult, DualProofResult, IDataStream, IDualDataStream, LatestGlobalLeafProofResult, ProofResult, SingleSealStoragePackage };
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { V as e, n as r, o, q as t, r as
|
|
2
|
-
import { I as K, J as R } from "./types-
|
|
1
|
+
import { V as e, n as r, o, q as t, r as l, t as i, u as n, z as d, v as p, w as c, A as P, T as u, x as y, B as m, y as f, e as S, D as _, c as g, E as h, f as D, i as b, k as C, l as E, m as L, F as T, j as v, H as M, p as k, J as A, s as N, K as O, R as x, M as F } from "./index-DCjxkCyO.js";
|
|
2
|
+
import { I as K, J as R, L as U } from "./types-B5eO7zCS.js";
|
|
3
3
|
export {
|
|
4
4
|
e as ChainedProofWrapper,
|
|
5
5
|
r as ClientSingleShareSealingProcess,
|
|
6
6
|
o as ClientSingleShareUnsealingProcess,
|
|
7
7
|
t as DataStream,
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
l as DataStreamClient,
|
|
9
|
+
i as EmpheralMerkleTreeWrapper,
|
|
10
10
|
n as ModuleLibraryType,
|
|
11
11
|
d as NETWORK_IDS,
|
|
12
12
|
p as NihiliumPaymentProvider,
|
|
@@ -15,18 +15,19 @@ export {
|
|
|
15
15
|
u as Processor,
|
|
16
16
|
y as ProofLibraryType,
|
|
17
17
|
m as StandardModuleLibrary,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
_ as
|
|
18
|
+
f as StandardProofLibrary,
|
|
19
|
+
S as check_if_reveal_value_is_published,
|
|
20
|
+
K as collection_from_json,
|
|
21
|
+
_ as createRevealOnlyCollection,
|
|
22
|
+
g as cryptoTools,
|
|
22
23
|
h as deployedProtocolContracts,
|
|
23
24
|
D as getDefaultSealingProcess,
|
|
24
25
|
b as getDefaultUnsealingProcess,
|
|
25
26
|
C as getFullDatastreams,
|
|
26
27
|
E as getFullProcessors,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
L as getProcessorEndpoint,
|
|
29
|
+
T as moduleLibrary,
|
|
30
|
+
v as nhsdk,
|
|
30
31
|
M as precompute,
|
|
31
32
|
k as preload_circuits,
|
|
32
33
|
A as proofLibrary,
|
|
@@ -34,6 +35,6 @@ export {
|
|
|
34
35
|
O as standardModules,
|
|
35
36
|
x as standardProofs,
|
|
36
37
|
F as toAddressMap,
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
R as types,
|
|
39
|
+
U as utils
|
|
39
40
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
let
|
|
1
|
+
let to, sm, d1, Ai, Bm, om, QK, vI, Xc, hK, Aq, TK, mq, N1, OK, hq, DK, NK, MK, wF, UI, xa, HK, Rr, h4, DI, KK, GK, Ry, kI, bo, um, im, no, oK, OI, FI, tK, iK, c2, h1, JK, ZS, Gy, UK, RK, CI, I3, SI, sK, ei, Ne, ta, fK, me, $S, nK, AF, dx, rK, hF, ze;
|
|
2
2
|
let __tla = (async ()=>{
|
|
3
3
|
function WC(a) {
|
|
4
4
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
@@ -56472,7 +56472,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
56472
56472
|
const A = this.config.vkeyPath.split("/ipfs/")[1];
|
|
56473
56473
|
this.resolvedVkeyPath = await v2.resolveIPFSPath(this.config.vkeyPath, `vkey_${A}`);
|
|
56474
56474
|
} else this.resolvedVkeyPath = await b(this.config.vkeyPath, this.environment);
|
|
56475
|
-
this.config.vkeyPath && this.vkey == null && (this.vkey = await r(this.resolvedVkeyPath, this.environment)), this.snarkjs || (this.snarkjs = await import("./browser.esm-kreqNYRZ-CV3K9CfO-
|
|
56475
|
+
this.config.vkeyPath && this.vkey == null && (this.vkey = await r(this.resolvedVkeyPath, this.environment)), this.snarkjs || (this.snarkjs = await import("./browser.esm-kreqNYRZ-CV3K9CfO-DA35K2mr.js"), this.snarkjs?.default?.groth16 && !this.snarkjs.groth16 && (this.snarkjs = this.snarkjs.default)), p && await Promise.all([
|
|
56476
56476
|
t(this.resolvedWasmPath),
|
|
56477
56477
|
t(this.resolvedZkeyPath)
|
|
56478
56478
|
]);
|
|
@@ -77771,7 +77771,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
77771
77771
|
};
|
|
77772
77772
|
let et = null;
|
|
77773
77773
|
async function wu() {
|
|
77774
|
-
return et || (et = await import("./index-DFD-0QrS-
|
|
77774
|
+
return et || (et = await import("./index-DFD-0QrS-Jw1FnMaR-D_K_-juK.js")), et;
|
|
77775
77775
|
}
|
|
77776
77776
|
Dy = async function(p) {
|
|
77777
77777
|
return (await wu()).deriveSecretScalar(L3(p));
|
|
@@ -78193,4 +78193,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
78193
78193
|
value: "Module"
|
|
78194
78194
|
}));
|
|
78195
78195
|
})();
|
|
78196
|
-
export {
|
|
78196
|
+
export { to as $, sm as A, d1 as B, Ai as C, Bm as D, om as E, QK as F, vI as G, Xc as H, hK as I, Aq as J, TK as K, mq as L, N1 as M, OK as N, hq as O, DK as P, NK as Q, MK as R, wF as S, UI as T, xa as U, HK as V, Rr as W, h4 as X, DI as Y, KK as Z, GK as _, Ry as a, kI as a0, bo as a1, um as a2, im as a3, no as a4, oK as a5, OI as a6, FI as a7, tK as b, iK as c, c2 as d, h1 as e, JK as f, ZS as g, Gy as h, UK as i, RK as j, CI as k, I3 as l, SI as m, sK as n, ei as o, Ne as p, ta as q, fK as r, me as s, $S as t, nK as u, AF as v, dx as w, rK as x, hF as y, ze as z, __tla };
|
package/dist/types.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as s, n as e, U as n, E as t, W as l, $ as i, a0 as d, a1 as r, x as C, G as c, u as p, t as P, g as _, a2 as g, a3 as u, m as S, j as m, c as T, b as f, a4 as A, a5 as E, A as O, k as M, I as U, a6 as R, a7 as h } from "./types-B5eO7zCS.js";
|
|
2
2
|
export {
|
|
3
3
|
s as AddressMapWithDefault,
|
|
4
4
|
e as BasicAddressMap,
|