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 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 - must match contract VERSION constant
15
- export const EXPECTED_CONTRACT_VERSION = "3.0.0";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epistery",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Epistery brings blockchain capabilities to mundane web tasks like engagement metrics, authentication and commerce of all sorts.",
5
5
  "author": "Rootz Corp.",
6
6
  "license": "MIT",
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