godprotocol 1.0.799 → 1.0.833
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.js +34 -0
- package/Loader_sequence/main.js +217 -11
- package/Objects/Account.js +113 -29
- package/Objects/Block.js +34 -2
- package/Objects/Blockweb.js +14 -0
- package/Objects/Chain.js +54 -5
- package/Objects/Filesystem.js +3 -3
- package/Objects/Manager.js +17 -28
- package/Objects/Opcodes.js +18 -6
- package/Objects/Oracle.js +114 -5
- package/Objects/Virtual_machine.js +23 -2
- package/framer.js +45 -49
- package/opcodes/add.js +0 -5
- package/opcodes/indices.js +28 -0
- package/opcodes/jmp.js +10 -11
- package/opcodes/std.js +3 -1
- package/opcodes.js +20 -4
- package/package.json +3 -2
- package/readme.md +1 -1
- package/types/Oracle.d.ts +2 -2
- package/types/index.d.ts +1 -1
- package/utils/create_server.js +8 -4
- package/.babelrc +0 -3
- package/build/Account.js +0 -162
- package/build/Block.js +0 -65
- package/build/Blockweb.js +0 -36
- package/build/Chain.js +0 -119
- package/build/Explorer.js +0 -47
- package/build/Filesystem.js +0 -127
- package/build/Frame.js +0 -52
- package/build/Index.js +0 -15
- package/build/Manager.js +0 -99
- package/build/Opcodes.js +0 -39
- package/build/Oracle.js +0 -42
- package/build/Virtual_machine.js +0 -128
- package/build/add.js +0 -41
- package/build/create_server.js +0 -119
- package/build/framer.js +0 -57
- package/build/functions.js +0 -82
- package/build/hash.js +0 -14
- package/build/jmp.js +0 -19
- package/build/main.js +0 -283
- package/build/opcodes.js +0 -42
- package/build/privacy.js +0 -27
- package/build/services.js +0 -50
- package/build/std.js +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "godprotocol",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.833",
|
|
4
4
|
"description": "A data mediator.",
|
|
5
5
|
"main": "Index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"crypto": "^1.0.1",
|
|
47
47
|
"elliptic": "^6.5.5",
|
|
48
|
-
"fs": "^0.0.1-security"
|
|
48
|
+
"fs": "^0.0.1-security",
|
|
49
|
+
"generalised-datastore": "^1.7.85"
|
|
49
50
|
},
|
|
50
51
|
"publishConfig": {
|
|
51
52
|
"ignore": [
|
package/readme.md
CHANGED
|
@@ -116,7 +116,7 @@ Type `method`
|
|
|
116
116
|
| | string | `account` | Account instance to execute the instructions in. |
|
|
117
117
|
| `cb` | function | | A function that is called with the blocks mined during the execution. |
|
|
118
118
|
|
|
119
|
-
See the [package source](https://github.com/
|
|
119
|
+
See the [package source](https://github.com/godprotocol4/GodProtocol) for more details.
|
|
120
120
|
|
|
121
121
|
[npm-url]: https://npmjs.org/package/godprotocol
|
|
122
122
|
[downloads-url]: https://npmjs.org/package/godprotocol
|
package/types/Oracle.d.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as Account } from "./Account";
|
|
2
2
|
export { default as Virtual_machine } from "./Virtual_machine";
|
|
3
3
|
export { default as Filesystem } from "./Filesystem";
|
|
4
|
-
export { default as Loader_sequence } from "
|
|
4
|
+
export { default as Loader_sequence } from "../Loader_sequence/main";
|
package/utils/create_server.js
CHANGED
|
@@ -7,7 +7,7 @@ let PORT = Number(process.env.PORT) || 1408;
|
|
|
7
7
|
const cb = (res, data) => {
|
|
8
8
|
if (typeof data !== "string") data = JSON.stringify(data);
|
|
9
9
|
|
|
10
|
-
res(data);
|
|
10
|
+
res.end(data);
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
let extensions = new Object();
|
|
@@ -41,7 +41,11 @@ const handle_routes = (req, res, app) => {
|
|
|
41
41
|
try {
|
|
42
42
|
data = JSON.parse(data);
|
|
43
43
|
} catch (e) {
|
|
44
|
-
return cb(res
|
|
44
|
+
return cb(res, {
|
|
45
|
+
error_message: "Invalid data",
|
|
46
|
+
url: req.url,
|
|
47
|
+
error: true,
|
|
48
|
+
});
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
if (req.url === "/create_account") {
|
|
@@ -50,7 +54,7 @@ const handle_routes = (req, res, app) => {
|
|
|
50
54
|
} else if (["run", "load", "parse"].includes(req.url.slice(1))) {
|
|
51
55
|
let payload = {
|
|
52
56
|
...data,
|
|
53
|
-
callback: (datagram) => cb(res
|
|
57
|
+
callback: (datagram) => cb(res, datagram),
|
|
54
58
|
};
|
|
55
59
|
initiator.endpoint(req.url.slice(1), payload);
|
|
56
60
|
} else {
|
|
@@ -64,7 +68,7 @@ const handle_routes = (req, res, app) => {
|
|
|
64
68
|
});
|
|
65
69
|
|
|
66
70
|
req.on("error", (e) => {
|
|
67
|
-
res.writeHead(500, { "Content-Type": "application/json" });
|
|
71
|
+
// res.writeHead(500, { "Content-Type": "application/json" });
|
|
68
72
|
res.end(JSON.stringify({ status: "error", message: e.message }));
|
|
69
73
|
});
|
|
70
74
|
} else {
|
package/.babelrc
DELETED
package/build/Account.js
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _main = _interopRequireDefault(require("../Loader_sequence/main"));
|
|
8
|
-
var _privacy = _interopRequireDefault(require("../utils/privacy"));
|
|
9
|
-
var _Filesystem2 = _interopRequireDefault(require("./Filesystem"));
|
|
10
|
-
var _Virtual_machine = _interopRequireDefault(require("./Virtual_machine"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
13
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
14
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
15
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
17
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
18
|
-
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
19
|
-
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
20
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
21
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
22
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
23
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
24
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
25
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
26
|
-
var Account = /*#__PURE__*/function (_Filesystem) {
|
|
27
|
-
_inherits(Account, _Filesystem);
|
|
28
|
-
var _super = _createSuper(Account);
|
|
29
|
-
function Account(_name) {
|
|
30
|
-
var _this;
|
|
31
|
-
var _meta = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
32
|
-
_classCallCheck(this, Account);
|
|
33
|
-
_this = _super.call(this);
|
|
34
|
-
_defineProperty(_assertThisInitialized(_this), "get_account", function (name) {
|
|
35
|
-
return _this.manager.get_account(name) || _assertThisInitialized(_this);
|
|
36
|
-
});
|
|
37
|
-
_defineProperty(_assertThisInitialized(_this), "manage_buffer", function (callback) {
|
|
38
|
-
var call_session = "".concat(Date.now(), "-").concat(Math.random());
|
|
39
|
-
_this.mine_buffer[call_session] = {
|
|
40
|
-
blocks: [],
|
|
41
|
-
callback: callback
|
|
42
|
-
};
|
|
43
|
-
return call_session;
|
|
44
|
-
});
|
|
45
|
-
_defineProperty(_assertThisInitialized(_this), "buff", function (block, pid) {
|
|
46
|
-
var buffer = _this.mine_buffer[pid];
|
|
47
|
-
if (!buffer) return;
|
|
48
|
-
buffer.blocks.push(block.stringify());
|
|
49
|
-
});
|
|
50
|
-
_defineProperty(_assertThisInitialized(_this), "flush_buffer", function (pid) {
|
|
51
|
-
var buff = _this.mine_buffer[pid];
|
|
52
|
-
if (!buff) return;
|
|
53
|
-
buff.callback && _this.run_callback(buff.callback, buff.blocks);
|
|
54
|
-
delete _this.mine_buffer[pid];
|
|
55
|
-
});
|
|
56
|
-
_defineProperty(_assertThisInitialized(_this), "load", function (_ref) {
|
|
57
|
-
var program = _ref.program,
|
|
58
|
-
signature = _ref.signature,
|
|
59
|
-
callback = _ref.callback;
|
|
60
|
-
var instructions = program.instructions,
|
|
61
|
-
account = program.account;
|
|
62
|
-
account = _this.get_account(account);
|
|
63
|
-
if (!account.validate(program, signature)) return;
|
|
64
|
-
var pid = account.manage_buffer(callback);
|
|
65
|
-
_this.manager.push({
|
|
66
|
-
sequence: instructions,
|
|
67
|
-
account: account,
|
|
68
|
-
pid: pid
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
_defineProperty(_assertThisInitialized(_this), "parse", function (_ref2) {
|
|
72
|
-
var payload = _ref2.payload,
|
|
73
|
-
signature = _ref2.signature,
|
|
74
|
-
callback = _ref2.callback;
|
|
75
|
-
var physical_address = payload.physical_address,
|
|
76
|
-
account = payload.account,
|
|
77
|
-
query = payload.query;
|
|
78
|
-
account = _this.get_account(account);
|
|
79
|
-
if (!account.validate(payload, signature)) return;
|
|
80
|
-
var chain = account.manager.web.get(physical_address);
|
|
81
|
-
if (!chain) return _this.run_callback(callback, {
|
|
82
|
-
error: true,
|
|
83
|
-
error_message: "Address not found"
|
|
84
|
-
});
|
|
85
|
-
var data = query ? chain.explore(query) : chain;
|
|
86
|
-
_this.run_callback(callback, data && data.stringify());
|
|
87
|
-
});
|
|
88
|
-
_defineProperty(_assertThisInitialized(_this), "run", function (request) {
|
|
89
|
-
var payload = request.payload,
|
|
90
|
-
signature = request.signature,
|
|
91
|
-
callback = request.callback;
|
|
92
|
-
var physical_address = payload.physical_address,
|
|
93
|
-
account = payload.account,
|
|
94
|
-
query = payload.query;
|
|
95
|
-
account = _this.get_account(account);
|
|
96
|
-
if (!account.validate(payload, signature)) return;
|
|
97
|
-
var pid = account.manage_buffer(callback);
|
|
98
|
-
var context = physical_address ? _this.manager.web.get(physical_address) : account.vm.get_context();
|
|
99
|
-
if (!context) return account.flush_buffer(pid);
|
|
100
|
-
var blk = query ? context.explore(query) : context.get_latest_block();
|
|
101
|
-
if (blk && blk.metadata && blk.metadata.program) {
|
|
102
|
-
var program = _this.read(blk.metadata.program);
|
|
103
|
-
account.vm.contexts.push(context);
|
|
104
|
-
program.push("pop");
|
|
105
|
-
Array.isArray(program) && program.length && _this.manager.push({
|
|
106
|
-
sequence: program,
|
|
107
|
-
account: account,
|
|
108
|
-
pid: pid
|
|
109
|
-
});
|
|
110
|
-
} else account.flush_buffer(pid);
|
|
111
|
-
});
|
|
112
|
-
_defineProperty(_assertThisInitialized(_this), "run_callback", function (callback, payload) {
|
|
113
|
-
setTimeout(function () {
|
|
114
|
-
if (!callback) return;
|
|
115
|
-
if (typeof callback === "function") return callback(payload);
|
|
116
|
-
_this.vm.stdin(payload);
|
|
117
|
-
callback.payload && callback.payload.physical_address && _this.run(callback);
|
|
118
|
-
}, 0);
|
|
119
|
-
});
|
|
120
|
-
_defineProperty(_assertThisInitialized(_this), "validate", function (payload, signature) {
|
|
121
|
-
if (!_this["private"]) return true;
|
|
122
|
-
return (0, _privacy["default"])(_this.name, JSON.stringify(payload), signature);
|
|
123
|
-
});
|
|
124
|
-
_defineProperty(_assertThisInitialized(_this), "stringify", function (str) {
|
|
125
|
-
var obj = {};
|
|
126
|
-
obj.name = _this.name;
|
|
127
|
-
obj.hash = _this.hash;
|
|
128
|
-
obj.path = _this.path;
|
|
129
|
-
obj["private"] = _this["private"];
|
|
130
|
-
obj.chain = _this.chain.stringify();
|
|
131
|
-
obj.physical_address = _this.physical_address;
|
|
132
|
-
return str ? JSON.stringify(obj) : obj;
|
|
133
|
-
});
|
|
134
|
-
_defineProperty(_assertThisInitialized(_this), "create_account", function (payload) {
|
|
135
|
-
var name = payload.name,
|
|
136
|
-
meta = payload.meta;
|
|
137
|
-
return _this.manager.add_account(name, meta);
|
|
138
|
-
});
|
|
139
|
-
_defineProperty(_assertThisInitialized(_this), "endpoint", function (endpoint, payload) {
|
|
140
|
-
var method = _this[endpoint];
|
|
141
|
-
typeof method === "function" && method(payload);
|
|
142
|
-
});
|
|
143
|
-
_meta = _meta || {};
|
|
144
|
-
_this.name = _name;
|
|
145
|
-
_this["private"] = _meta["private"];
|
|
146
|
-
_this.manager = _meta.manager;
|
|
147
|
-
_this.account = _assertThisInitialized(_this);
|
|
148
|
-
if (!_this.manager) throw new Error("Manager instance missing.");
|
|
149
|
-
_this.name_hash();
|
|
150
|
-
_this.physical_address = "".concat(_this.base_address, "/").concat(_this.name);
|
|
151
|
-
_this.set_paths(_assertThisInitialized(_this));
|
|
152
|
-
_this.compiler = new _main["default"](_assertThisInitialized(_this));
|
|
153
|
-
_this.chain = _this.account_chain(_assertThisInitialized(_this));
|
|
154
|
-
_this.vm = new _Virtual_machine["default"](_this.chain);
|
|
155
|
-
_this.mine_buffer = {};
|
|
156
|
-
console.log("Account Instance: ".concat(_this.name));
|
|
157
|
-
return _this;
|
|
158
|
-
}
|
|
159
|
-
return _createClass(Account);
|
|
160
|
-
}(_Filesystem2["default"]);
|
|
161
|
-
var _default = Account;
|
|
162
|
-
exports["default"] = _default;
|
package/build/Block.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _hash = require("../utils/hash");
|
|
8
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
9
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
10
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
11
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
12
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
13
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
|
-
var Block = /*#__PURE__*/_createClass(function Block(chain) {
|
|
16
|
-
var _this = this;
|
|
17
|
-
_classCallCheck(this, Block);
|
|
18
|
-
_defineProperty(this, "generate_hash", function () {
|
|
19
|
-
_this.previous_hash = _this.chain.get_latest_block();
|
|
20
|
-
if (_this.previous_hash) _this.previous_hash = _this.previous_hash.hash;
|
|
21
|
-
_this.hash = (0, _hash.hash)(JSON.stringify(_this.data));
|
|
22
|
-
});
|
|
23
|
-
_defineProperty(this, "store", function (no_curs) {
|
|
24
|
-
var content = _this.chain.buffs.splice(-1)[0];
|
|
25
|
-
if (!no_curs) _this.cursor = _this.chain.cursors.splice(-1)[0];
|
|
26
|
-
if (!content) return;
|
|
27
|
-
var cursors = Object.keys(content).filter(function (c) {
|
|
28
|
-
return c.startsWith("{") && c.endsWith("}");
|
|
29
|
-
});
|
|
30
|
-
for (var c = 0; c < cursors.length; c++) {
|
|
31
|
-
var curs = cursors[c];
|
|
32
|
-
_this.metadata[curs.slice(1, -1)] = content[curs];
|
|
33
|
-
delete content[curs];
|
|
34
|
-
}
|
|
35
|
-
var datapath = _this.chain.account.save(content, _this.chain);
|
|
36
|
-
_this.datapath = datapath;
|
|
37
|
-
});
|
|
38
|
-
_defineProperty(this, "stringify", function (str) {
|
|
39
|
-
var obj = {};
|
|
40
|
-
obj.metadata = _this.metadata;
|
|
41
|
-
obj.datapath = _this.datapath;
|
|
42
|
-
obj.timelapse = _this.timelapse;
|
|
43
|
-
obj.index = _this.index;
|
|
44
|
-
obj.hash = _this.hash;
|
|
45
|
-
obj.data = _this.data;
|
|
46
|
-
obj.children = _this.children.map(function (ch) {
|
|
47
|
-
return new Object({
|
|
48
|
-
hash: ch.hash,
|
|
49
|
-
chain: ch.chain.hash
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
obj.chain = {
|
|
53
|
-
hash: _this.chain.hash,
|
|
54
|
-
physical_address: _this.chain.physical_address
|
|
55
|
-
};
|
|
56
|
-
return str ? JSON.stringify(obj) : obj;
|
|
57
|
-
});
|
|
58
|
-
this.chain = chain;
|
|
59
|
-
this.data = this.chain.txs;
|
|
60
|
-
this.metadata = {};
|
|
61
|
-
this.children = new Array();
|
|
62
|
-
this.index = this.chain.blocks.length;
|
|
63
|
-
});
|
|
64
|
-
var _default = Block;
|
|
65
|
-
exports["default"] = _default;
|
package/build/Blockweb.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _Chain = _interopRequireDefault(require("./Chain"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
11
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
12
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
13
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
14
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
|
-
var Blockweb = /*#__PURE__*/_createClass(function Blockweb(mgr) {
|
|
17
|
-
var _this = this;
|
|
18
|
-
_classCallCheck(this, Blockweb);
|
|
19
|
-
_defineProperty(this, "get", function (addr) {
|
|
20
|
-
var hash = _this.physical_addresses[addr];
|
|
21
|
-
var chain = _this.chains[hash];
|
|
22
|
-
return chain;
|
|
23
|
-
});
|
|
24
|
-
_defineProperty(this, "set", function (parent, name) {
|
|
25
|
-
var chain = new _Chain["default"](parent, name);
|
|
26
|
-
_this.chains[chain.hash] = chain;
|
|
27
|
-
_this.physical_addresses[chain.physical_address] = chain.hash;
|
|
28
|
-
_this.chains[chain.hash] = chain;
|
|
29
|
-
return chain;
|
|
30
|
-
});
|
|
31
|
-
this.mgr = mgr;
|
|
32
|
-
this.physical_addresses = new Object();
|
|
33
|
-
this.chains = new Object();
|
|
34
|
-
});
|
|
35
|
-
var _default = Blockweb;
|
|
36
|
-
exports["default"] = _default;
|
package/build/Chain.js
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _hash = require("../utils/hash");
|
|
8
|
-
var _Block = _interopRequireDefault(require("./Block"));
|
|
9
|
-
var _Explorer2 = _interopRequireDefault(require("./Explorer"));
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
13
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
14
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
16
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
|
-
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
18
|
-
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
19
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
20
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
21
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
22
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
23
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
24
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
25
|
-
var Chain = /*#__PURE__*/function (_Explorer) {
|
|
26
|
-
_inherits(Chain, _Explorer);
|
|
27
|
-
var _super = _createSuper(Chain);
|
|
28
|
-
function Chain(parent, _name) {
|
|
29
|
-
var _this;
|
|
30
|
-
_classCallCheck(this, Chain);
|
|
31
|
-
_this = _super.call(this);
|
|
32
|
-
_defineProperty(_assertThisInitialized(_this), "append_buffer", function () {
|
|
33
|
-
_this.buffs.push({});
|
|
34
|
-
_this.cursors.push(_this.cursor);
|
|
35
|
-
_this.cursor = -1;
|
|
36
|
-
});
|
|
37
|
-
_defineProperty(_assertThisInitialized(_this), "set_cursor", function (cursor) {
|
|
38
|
-
_this.cursor = cursor;
|
|
39
|
-
_this.cursors.push(cursor);
|
|
40
|
-
});
|
|
41
|
-
_defineProperty(_assertThisInitialized(_this), "get_buffer", function () {
|
|
42
|
-
_this.cursor = _this.cursors.pop();
|
|
43
|
-
return _this.buffs.slice(-1)[0];
|
|
44
|
-
});
|
|
45
|
-
_defineProperty(_assertThisInitialized(_this), "generate_hash", function () {
|
|
46
|
-
_this.hash = (0, _hash.hash)(_this.physical_address);
|
|
47
|
-
});
|
|
48
|
-
_defineProperty(_assertThisInitialized(_this), "get_block", function (index) {
|
|
49
|
-
return _this.blocks[index];
|
|
50
|
-
});
|
|
51
|
-
_defineProperty(_assertThisInitialized(_this), "add_tx", function (instruction) {
|
|
52
|
-
if (!_this.txs.length) _this.start_time = Date.now();
|
|
53
|
-
_this.txs.push(instruction);
|
|
54
|
-
});
|
|
55
|
-
_defineProperty(_assertThisInitialized(_this), "mine", function (vm, no_curs) {
|
|
56
|
-
var block = new _Block["default"](_assertThisInitialized(_this));
|
|
57
|
-
block.generate_hash();
|
|
58
|
-
_this.add_block(block);
|
|
59
|
-
block.store(no_curs);
|
|
60
|
-
block.children = _this.pending_children;
|
|
61
|
-
_this.pending_children = new Array();
|
|
62
|
-
var prev_context = vm.get_context(-2);
|
|
63
|
-
if (prev_context) {
|
|
64
|
-
prev_context.pending_children.push(block);
|
|
65
|
-
prev_context.connections.push(block);
|
|
66
|
-
}
|
|
67
|
-
_this.txs = new Array();
|
|
68
|
-
block.timelapse = Date.now() - _this.start_time;
|
|
69
|
-
return block;
|
|
70
|
-
});
|
|
71
|
-
_defineProperty(_assertThisInitialized(_this), "add_block", function (block) {
|
|
72
|
-
_this.blocks.push(block);
|
|
73
|
-
_this.height = _this.blocks.length;
|
|
74
|
-
});
|
|
75
|
-
_defineProperty(_assertThisInitialized(_this), "get_latest_block", function () {
|
|
76
|
-
return _this.blocks.slice(-1)[0];
|
|
77
|
-
});
|
|
78
|
-
_defineProperty(_assertThisInitialized(_this), "stringify", function (str) {
|
|
79
|
-
var obj = {};
|
|
80
|
-
obj.physical_address = _this.physical_address;
|
|
81
|
-
obj.height = _this.blocks.length;
|
|
82
|
-
obj.parent = _this.parent.path;
|
|
83
|
-
obj.account = _this.parent.account.name;
|
|
84
|
-
obj.name = _this.name;
|
|
85
|
-
obj.connections = _this.connections.map(function (b) {
|
|
86
|
-
return new Object({
|
|
87
|
-
chain: b.chain.hash,
|
|
88
|
-
block: b.hash
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
obj.hash = _this.hash;
|
|
92
|
-
obj.blocks = _this.blocks.map(function (blk) {
|
|
93
|
-
return blk.hash;
|
|
94
|
-
});
|
|
95
|
-
return str ? JSON.stringify(obj) : obj;
|
|
96
|
-
});
|
|
97
|
-
_defineProperty(_assertThisInitialized(_this), "add_chain", function (name) {
|
|
98
|
-
return _this.account.add_chain(name, _assertThisInitialized(_this));
|
|
99
|
-
});
|
|
100
|
-
_this.parent = parent;
|
|
101
|
-
_this.account = _this.parent.account;
|
|
102
|
-
_this.name = _name || _this.parent.name;
|
|
103
|
-
_this.physical_address = _this.parent.manager || !_name ? _this.parent.physical_address : "".concat(_this.parent.physical_address, "/").concat(_this.name);
|
|
104
|
-
_this.pending_children = new Array();
|
|
105
|
-
_this.connections = new Array();
|
|
106
|
-
_this.blocks = new Array();
|
|
107
|
-
_this.txs = new Array();
|
|
108
|
-
_this.height = 0;
|
|
109
|
-
_this.cursor = -1;
|
|
110
|
-
_this.cursors = new Array();
|
|
111
|
-
_this.buffs = new Array();
|
|
112
|
-
_this.generate_hash();
|
|
113
|
-
_this.account.set_paths(_assertThisInitialized(_this));
|
|
114
|
-
return _this;
|
|
115
|
-
}
|
|
116
|
-
return _createClass(Chain);
|
|
117
|
-
}(_Explorer2["default"]);
|
|
118
|
-
var _default = Chain;
|
|
119
|
-
exports["default"] = _default;
|
package/build/Explorer.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
9
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
10
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
12
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
13
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
|
-
var Explorer = /*#__PURE__*/_createClass(function Explorer() {
|
|
15
|
-
var _this = this;
|
|
16
|
-
_classCallCheck(this, Explorer);
|
|
17
|
-
_defineProperty(this, "chain_props", ["blocks"]);
|
|
18
|
-
_defineProperty(this, "explore", function (query) {
|
|
19
|
-
if (!query) return;
|
|
20
|
-
if (query.startsWith("{")) query = query.slice(1, -1);
|
|
21
|
-
query = query.split(":");
|
|
22
|
-
query[0] = query[0].split(".");
|
|
23
|
-
var q2 = Number(query[1]),
|
|
24
|
-
prop;
|
|
25
|
-
if (_this.chain_props.includes(query[0][0])) prop = query[0][0];
|
|
26
|
-
var obj;
|
|
27
|
-
if (isNaN(q2)) {
|
|
28
|
-
obj = _this[prop || "connections"].find(function (c) {
|
|
29
|
-
return c.hash === query[1];
|
|
30
|
-
});
|
|
31
|
-
} else if (q2 >= 0) {
|
|
32
|
-
obj = _this[prop || "connections"].find(function (q) {
|
|
33
|
-
return q.index === q2;
|
|
34
|
-
});
|
|
35
|
-
} else {
|
|
36
|
-
obj = _this[prop || "connections"].slice(q2)[0];
|
|
37
|
-
}
|
|
38
|
-
if (!prop) for (var q = 0; q < query[0].length; q++) {
|
|
39
|
-
var que = query[0][q];
|
|
40
|
-
if (!obj) break;
|
|
41
|
-
obj = obj[que];
|
|
42
|
-
}
|
|
43
|
-
return obj;
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
var _default = Explorer;
|
|
47
|
-
exports["default"] = _default;
|
package/build/Filesystem.js
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _hash = require("../utils/hash");
|
|
8
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
9
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
10
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
11
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
12
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
13
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
|
-
var Filesystem = /*#__PURE__*/_createClass(function Filesystem() {
|
|
16
|
-
var _this = this;
|
|
17
|
-
_classCallCheck(this, Filesystem);
|
|
18
|
-
_defineProperty(this, "parse_path", function (path) {
|
|
19
|
-
if (!path || path && !path.includes("/")) return path;
|
|
20
|
-
return _this.read(path);
|
|
21
|
-
});
|
|
22
|
-
_defineProperty(this, "read", function (datapath) {
|
|
23
|
-
if (!datapath) return null;
|
|
24
|
-
var type_folder = _this.account.manager.oracle.get(datapath);
|
|
25
|
-
if (!type_folder) return datapath;
|
|
26
|
-
var content;
|
|
27
|
-
if (type_folder.type === "twain") {
|
|
28
|
-
content = {};
|
|
29
|
-
for (var prop in type_folder.obj) {
|
|
30
|
-
var val = type_folder.obj[prop];
|
|
31
|
-
content[_this.parse_path(prop)] = _this.parse_path(val);
|
|
32
|
-
}
|
|
33
|
-
} else if (type_folder.type === "array") {
|
|
34
|
-
content = [];
|
|
35
|
-
type_folder.obj.map(function (t) {
|
|
36
|
-
content.push(_this.parse_path(t));
|
|
37
|
-
});
|
|
38
|
-
} else content = type_folder.obj;
|
|
39
|
-
return content;
|
|
40
|
-
});
|
|
41
|
-
_defineProperty(this, "save", function (content, chain, just_obj) {
|
|
42
|
-
var addr, obj;
|
|
43
|
-
var type = _this.get_type(chain);
|
|
44
|
-
if (type === "array" || type === "string") {
|
|
45
|
-
obj = [];
|
|
46
|
-
for (var curs in content) {
|
|
47
|
-
obj.splice(Number(curs) || -1, 0, content[curs]);
|
|
48
|
-
}
|
|
49
|
-
if (type === "string") obj = obj.join(" ");
|
|
50
|
-
} else if (type === "twain") {
|
|
51
|
-
obj = {};
|
|
52
|
-
for (var _curs in content) {
|
|
53
|
-
obj[_curs] = content[_curs];
|
|
54
|
-
}
|
|
55
|
-
} else if (type === "number") {
|
|
56
|
-
obj = Number(content["-1"]);
|
|
57
|
-
if (isNaN(obj)) obj = -1;
|
|
58
|
-
} else {
|
|
59
|
-
obj = null;
|
|
60
|
-
}
|
|
61
|
-
if (just_obj) return obj;
|
|
62
|
-
addr = "".concat(chain.path, "/").concat((0, _hash.hash)(JSON.stringify(obj)));
|
|
63
|
-
_this;
|
|
64
|
-
if (obj != null) _this.manager.oracle.write(addr, obj);
|
|
65
|
-
_this.manager.oracle.set(addr, {
|
|
66
|
-
obj: obj,
|
|
67
|
-
type: type
|
|
68
|
-
});
|
|
69
|
-
return addr;
|
|
70
|
-
});
|
|
71
|
-
_defineProperty(this, "data_addr", function (type) {
|
|
72
|
-
return "".concat(_this.physical_address, "/Datatypes/").concat(type);
|
|
73
|
-
});
|
|
74
|
-
_defineProperty(this, "get_type", function (chain) {
|
|
75
|
-
switch (chain.physical_address) {
|
|
76
|
-
case _this.data_addr("Number"):
|
|
77
|
-
return "number";
|
|
78
|
-
case _this.data_addr("String"):
|
|
79
|
-
return "string";
|
|
80
|
-
case _this.data_addr("Twain"):
|
|
81
|
-
return "twain";
|
|
82
|
-
case _this.data_addr("Array"):
|
|
83
|
-
return "array";
|
|
84
|
-
case _this.data_addr("Boolean"):
|
|
85
|
-
return "boolean";
|
|
86
|
-
case _this.data_addr("Void"):
|
|
87
|
-
return "void";
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
_defineProperty(this, "write", function (arg, context) {
|
|
91
|
-
var content = context.get_buffer();
|
|
92
|
-
if (!content || !arg) return;
|
|
93
|
-
content[context.cursor] = arg;
|
|
94
|
-
// console.log(`Writing: ${arg}`);
|
|
95
|
-
});
|
|
96
|
-
_defineProperty(this, "name_hash", function () {
|
|
97
|
-
_this.hash = (0, _hash.hash)(_this.name);
|
|
98
|
-
});
|
|
99
|
-
_defineProperty(this, "set_paths", function (chain) {
|
|
100
|
-
if (chain.parent && chain.parent.manager) {
|
|
101
|
-
chain.path = chain.parent.path;
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
chain.path = "".concat(chain.parent ? chain.parent.path : _this.base_address, "/").concat(chain.hash);
|
|
105
|
-
var fs = _this.manager.oracle.fs;
|
|
106
|
-
if (!fs.existsSync(chain.path)) {
|
|
107
|
-
fs.mkdirSync(chain.path, {
|
|
108
|
-
recursive: true
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
_defineProperty(this, "add_chain", function (name, parent) {
|
|
113
|
-
var chain = _this.manager.web.get("".concat(parent.physical_address, "/").concat(name));
|
|
114
|
-
if (!chain) chain = _this.manager.web.set(parent, name);
|
|
115
|
-
return chain;
|
|
116
|
-
});
|
|
117
|
-
_defineProperty(this, "account_chain", function (account) {
|
|
118
|
-
var chain = _this.manager.web.get(account.physical_address);
|
|
119
|
-
if (!chain) {
|
|
120
|
-
chain = _this.manager.web.set(account);
|
|
121
|
-
}
|
|
122
|
-
return chain;
|
|
123
|
-
});
|
|
124
|
-
this.base_address = process.env.BASE_ADDRESS || "Accounts";
|
|
125
|
-
});
|
|
126
|
-
var _default = Filesystem;
|
|
127
|
-
exports["default"] = _default;
|