@inco/js 0.1.33 → 0.1.34

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.
@@ -1,87 +0,0 @@
1
- var __create = Object.create;
2
- var __getProtoOf = Object.getPrototypeOf;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __toESM = (mod, isNodeMode, target) => {
8
- target = mod != null ? __create(__getProtoOf(mod)) : {};
9
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
10
- for (let key of __getOwnPropNames(mod))
11
- if (!__hasOwnProp.call(to, key))
12
- __defProp(to, key, {
13
- get: () => mod[key],
14
- enumerable: true
15
- });
16
- return to;
17
- };
18
- var __moduleCache = /* @__PURE__ */ new WeakMap;
19
- var __toCommonJS = (from) => {
20
- var entry = __moduleCache.get(from), desc;
21
- if (entry)
22
- return entry;
23
- entry = __defProp({}, "__esModule", { value: true });
24
- if (from && typeof from === "object" || typeof from === "function")
25
- __getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
26
- get: () => from[key],
27
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
28
- }));
29
- __moduleCache.set(from, entry);
30
- return entry;
31
- };
32
- var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
33
- var __export = (target, all) => {
34
- for (var name in all)
35
- __defProp(target, name, {
36
- get: all[name],
37
- enumerable: true,
38
- configurable: true,
39
- set: (newValue) => all[name] = () => newValue
40
- });
41
- };
42
- var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
43
-
44
- // src/fhevm/index.ts
45
- var exports_fhevm = {};
46
- __export(exports_fhevm, {
47
- getFheEnvironment: () => getFheEnvironment
48
- });
49
- module.exports = __toCommonJS(exports_fhevm);
50
-
51
- // src/chain.ts
52
- var supportedChains = {
53
- baseSepolia: 84532,
54
- sepolia: 11155111,
55
- monadTestnet: 10143
56
- };
57
- var fheSupportedChains = { baseSepolia: 84532, sepolia: 11155111 };
58
- function getSupportedChain(chainish) {
59
- const found = typeof chainish === "number" || typeof chainish === "bigint" ? Object.entries(supportedChains).find(([, id2]) => id2 === Number(chainish)) : typeof chainish === "object" ? Object.entries(supportedChains).find(([, id2]) => id2 === Number(chainish.id)) : Object.entries(supportedChains).find(([shortName]) => shortName === chainish);
60
- if (!found) {
61
- throw new Error(`Supported chain ${JSON.stringify(chainish)} not found`);
62
- }
63
- const [name, id] = found;
64
- return { name, id };
65
- }
66
-
67
- // src/generated/fhe-environments.ts
68
- var FHEEnvironments = {
69
- baseSepolia: {
70
- aclAddress: "0xdc8da2854e5275180b9cccb31e498fd5f9ef2b88",
71
- thfeExecutorAddress: "0x79602c1771081338a0521faf5234037ee41032e5",
72
- gatewayAddress: "0x28d8d247116c8546d3fe00623c04236b2e35e012",
73
- kmsVerifierAddress: "0xc3fb9779fbdfa6948429b492111fce4905e6378e"
74
- },
75
- sepolia: {
76
- aclAddress: "0x0e2123e6e99b4bc2eb54b63d2d8edca0566ba49b",
77
- thfeExecutorAddress: "0xa3e0a77cd87c46ac868138623255011555885c09",
78
- gatewayAddress: "0x141dbff036daf7ba1ed9c2f04b9096101436100a",
79
- kmsVerifierAddress: "0x723c2be5e61e7bbec4684defeae63656ad3eaa10"
80
- }
81
- };
82
-
83
- // src/fhevm/fhe-environment.ts
84
- function getFheEnvironment(chainId) {
85
- const supportedChain = getSupportedChain(chainId);
86
- return FHEEnvironments[supportedChain.name];
87
- }
@@ -1,90 +0,0 @@
1
- var __create = Object.create;
2
- var __getProtoOf = Object.getPrototypeOf;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __toESM = (mod, isNodeMode, target) => {
8
- target = mod != null ? __create(__getProtoOf(mod)) : {};
9
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
10
- for (let key of __getOwnPropNames(mod))
11
- if (!__hasOwnProp.call(to, key))
12
- __defProp(to, key, {
13
- get: () => mod[key],
14
- enumerable: true
15
- });
16
- return to;
17
- };
18
- var __moduleCache = /* @__PURE__ */ new WeakMap;
19
- var __toCommonJS = (from) => {
20
- var entry = __moduleCache.get(from), desc;
21
- if (entry)
22
- return entry;
23
- entry = __defProp({}, "__esModule", { value: true });
24
- if (from && typeof from === "object" || typeof from === "function")
25
- __getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
26
- get: () => from[key],
27
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
28
- }));
29
- __moduleCache.set(from, entry);
30
- return entry;
31
- };
32
- var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
33
- var __export = (target, all) => {
34
- for (var name in all)
35
- __defProp(target, name, {
36
- get: all[name],
37
- enumerable: true,
38
- configurable: true,
39
- set: (newValue) => all[name] = () => newValue
40
- });
41
- };
42
- var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
43
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
44
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
45
- }) : x)(function(x) {
46
- if (typeof require !== "undefined")
47
- return require.apply(this, arguments);
48
- throw Error('Dynamic require of "' + x + '" is not supported');
49
- });
50
-
51
- // src/chain.ts
52
- var supportedChains = {
53
- baseSepolia: 84532,
54
- sepolia: 11155111,
55
- monadTestnet: 10143
56
- };
57
- var fheSupportedChains = { baseSepolia: 84532, sepolia: 11155111 };
58
- function getSupportedChain(chainish) {
59
- const found = typeof chainish === "number" || typeof chainish === "bigint" ? Object.entries(supportedChains).find(([, id2]) => id2 === Number(chainish)) : typeof chainish === "object" ? Object.entries(supportedChains).find(([, id2]) => id2 === Number(chainish.id)) : Object.entries(supportedChains).find(([shortName]) => shortName === chainish);
60
- if (!found) {
61
- throw new Error(`Supported chain ${JSON.stringify(chainish)} not found`);
62
- }
63
- const [name, id] = found;
64
- return { name, id };
65
- }
66
-
67
- // src/generated/fhe-environments.ts
68
- var FHEEnvironments = {
69
- baseSepolia: {
70
- aclAddress: "0xdc8da2854e5275180b9cccb31e498fd5f9ef2b88",
71
- thfeExecutorAddress: "0x79602c1771081338a0521faf5234037ee41032e5",
72
- gatewayAddress: "0x28d8d247116c8546d3fe00623c04236b2e35e012",
73
- kmsVerifierAddress: "0xc3fb9779fbdfa6948429b492111fce4905e6378e"
74
- },
75
- sepolia: {
76
- aclAddress: "0x0e2123e6e99b4bc2eb54b63d2d8edca0566ba49b",
77
- thfeExecutorAddress: "0xa3e0a77cd87c46ac868138623255011555885c09",
78
- gatewayAddress: "0x141dbff036daf7ba1ed9c2f04b9096101436100a",
79
- kmsVerifierAddress: "0x723c2be5e61e7bbec4684defeae63656ad3eaa10"
80
- }
81
- };
82
-
83
- // src/fhevm/fhe-environment.ts
84
- function getFheEnvironment(chainId) {
85
- const supportedChain = getSupportedChain(chainId);
86
- return FHEEnvironments[supportedChain.name];
87
- }
88
- export {
89
- getFheEnvironment
90
- };