godprotocol 1.2.50 → 1.2.51

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.
Files changed (2) hide show
  1. package/Objects/Account.js +12 -2
  2. package/package.json +3 -6
@@ -23,8 +23,13 @@ class Account extends Utils {
23
23
  let chain = await this.chain.chain(phy);
24
24
 
25
25
  if (compiler) {
26
+ let adr = `.codes/${phy}.air`;
26
27
  !from_reload &&
27
- (await this.manager.oracle.write(`.codes/${phy}.air`, sequence));
28
+ (await (
29
+ await this.manager.ds.folder(`${adr}`, {
30
+ account: this.physical_address,
31
+ })
32
+ ).write({ sequence, _id }));
28
33
 
29
34
  sequence = await this.compiler.to_sequence(sequence, address);
30
35
  sequence = sequence[0];
@@ -46,8 +51,13 @@ class Account extends Utils {
46
51
  config = await folder.readone(_id ? { _id } : null);
47
52
 
48
53
  if (!config) {
49
- let code = await this.manager.oracle.read(`.codes/${phy}.air`);
54
+ let code = await (
55
+ await this.manager.ds.folder(`.codes/${phy}`, {
56
+ account: this.physical_address,
57
+ })
58
+ ).readone(_id ? { _id } : null);
50
59
  if (code) {
60
+ code = code.sequence;
51
61
  code = await this.compiler.to_sequence(code, address);
52
62
  code = code[0];
53
63
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "godprotocol",
3
- "version": "1.2.50",
3
+ "version": "1.2.51",
4
4
  "description": "A distributed computing environment for Web 4.0 — integrating AI, decentralisation, and virtual computation.",
5
5
  "main": "Index.js",
6
6
  "type": "module",
7
7
  "scripts": {
8
- "start": "nodemon Index.js",
8
+ "start": "node Index.js",
9
9
  "dev": "node Index.js",
10
10
  "test": "echo \"No test specified\" && exit 0"
11
11
  },
@@ -25,7 +25,7 @@
25
25
  "ar",
26
26
  "vr"
27
27
  ],
28
- "author": "Savvy <contact@yourdomain.com>",
28
+ "author": "Savvy <savvy@godprotocol.org>",
29
29
  "license": "ISC",
30
30
  "bugs": {
31
31
  "url": "https://github.com/immanuel-savvy/GodProtocol/issues"
@@ -35,9 +35,6 @@
35
35
  "aircode4": "latest",
36
36
  "generalised-datastore": "latest"
37
37
  },
38
- "devDependencies": {
39
- "nodemon": "^3.1.7"
40
- },
41
38
  "engines": {
42
39
  "node": ">=18"
43
40
  },