epistery 1.5.0 → 1.5.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/index.mjs +15 -2
- package/package.json +1 -1
- package/img.png +0 -0
- package/img_1.png +0 -0
- package/img_2.png +0 -0
- package/img_3.png +0 -0
package/index.mjs
CHANGED
|
@@ -11,8 +11,21 @@ import createRoutes from "./routes/index.mjs";
|
|
|
11
11
|
const __filename = fileURLToPath(import.meta.url);
|
|
12
12
|
const __dirname = path.dirname(__filename);
|
|
13
13
|
|
|
14
|
-
// Expected Agent contract version
|
|
15
|
-
|
|
14
|
+
// Expected Agent contract version — read directly from the source file
|
|
15
|
+
// shipped in this package, so it tracks whatever this build was compiled
|
|
16
|
+
// from. No separate constant to keep in sync.
|
|
17
|
+
export const EXPECTED_CONTRACT_VERSION = (() => {
|
|
18
|
+
try {
|
|
19
|
+
const source = fs.readFileSync(
|
|
20
|
+
path.join(__dirname, "contracts/agent.sol"),
|
|
21
|
+
"utf8",
|
|
22
|
+
);
|
|
23
|
+
const match = source.match(/VERSION\s*=\s*"([^"]+)"/);
|
|
24
|
+
return match ? match[1] : null;
|
|
25
|
+
} catch {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
})();
|
|
16
29
|
|
|
17
30
|
// Helper function to get or create domain configurations src/utils/Config.ts system
|
|
18
31
|
function getDomainConfig(domain) {
|
package/package.json
CHANGED
package/img.png
DELETED
|
Binary file
|
package/img_1.png
DELETED
|
Binary file
|
package/img_2.png
DELETED
|
Binary file
|
package/img_3.png
DELETED
|
Binary file
|