@eluvio/elv-client-js 4.0.117 → 4.0.118
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/dist/ElvClient-min.js +14 -15
- package/dist/ElvClient-node-min.js +13 -14
- package/dist/ElvFrameClient-min.js +10 -10
- package/dist/ElvPermissionsClient-min.js +9 -9
- package/dist/ElvWalletClient-min.js +14 -15
- package/dist/ElvWalletClient-node-min.js +13 -14
- package/dist/src/AuthorizationClient.js +12 -9
- package/dist/src/ContentObjectAudit.js +3 -3
- package/dist/src/ContentObjectVerification.js +3 -3
- package/dist/src/Crypto.js +2 -2
- package/dist/src/ElvClient.js +28 -47
- package/dist/src/ElvWallet.js +5 -7
- package/dist/src/EthClient.js +9 -8
- package/dist/src/FrameClient.js +9 -8
- package/dist/src/HttpClient.js +2 -1
- package/dist/src/Id.js +2 -1
- package/dist/src/PermissionsClient.js +19 -31
- package/dist/src/RemoteSigner.js +8 -6
- package/dist/src/UserProfileClient.js +20 -35
- package/dist/src/Utils.js +3 -2
- package/dist/src/client/ABRPublishing.js +2 -2
- package/dist/src/client/AccessGroups.js +2 -2
- package/dist/src/client/ContentAccess.js +32 -39
- package/dist/src/client/ContentManagement.js +3 -3
- package/dist/src/client/Contracts.js +2 -2
- package/dist/src/client/Files.js +2 -2
- package/dist/src/client/LiveConf.js +6 -4
- package/dist/src/client/LiveStream.js +2 -0
- package/dist/src/client/NFT.js +2 -2
- package/dist/src/walletClient/ClientMethods.js +2 -2
- package/dist/src/walletClient/Profile.js +2 -2
- package/dist/src/walletClient/Utils.js +2 -2
- package/dist/src/walletClient/index.js +14 -17
- package/package.json +1 -1
- package/src/client/ContentAccess.js +1 -1
- package/src/walletClient/index.js +23 -123
|
@@ -3,8 +3,9 @@ var _asyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator");
|
|
|
3
3
|
var _classCallCheck = require("@babel/runtime/helpers/classCallCheck");
|
|
4
4
|
var _createClass = require("@babel/runtime/helpers/createClass");
|
|
5
5
|
var _defineProperty = require("@babel/runtime/helpers/defineProperty");
|
|
6
|
-
|
|
7
|
-
function
|
|
6
|
+
var _v, _v2;
|
|
7
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
9
|
var HttpClient = require("./HttpClient");
|
|
9
10
|
var Ethers = require("ethers");
|
|
10
11
|
var Utils = require("./Utils");
|
|
@@ -37,8 +38,8 @@ var ACCESS_TYPES = {
|
|
|
37
38
|
OTHER: "other"
|
|
38
39
|
};
|
|
39
40
|
var CONTRACTS = {
|
|
40
|
-
v2:
|
|
41
|
-
v3:
|
|
41
|
+
v2: (_v = {}, _defineProperty(_v, ACCESS_TYPES.SPACE, require("./contracts/v2/BaseContentSpace")), _defineProperty(_v, ACCESS_TYPES.LIBRARY, require("./contracts/v2/BaseLibrary")), _defineProperty(_v, ACCESS_TYPES.TYPE, require("./contracts/v2/BaseContentType")), _defineProperty(_v, ACCESS_TYPES.OBJECT, require("./contracts/v2/BaseContent")), _defineProperty(_v, ACCESS_TYPES.WALLET, require("./contracts/v2/BaseAccessWallet")), _defineProperty(_v, ACCESS_TYPES.GROUP, require("./contracts/v2/BaseAccessControlGroup")), _defineProperty(_v, ACCESS_TYPES.ACCESSIBLE, require("./contracts/v2/Accessible")), _defineProperty(_v, ACCESS_TYPES.EDITABLE, require("./contracts/v2/Editable")), _v),
|
|
42
|
+
v3: (_v2 = {}, _defineProperty(_v2, ACCESS_TYPES.SPACE, require("./contracts/v3/BaseContentSpace")), _defineProperty(_v2, ACCESS_TYPES.LIBRARY, require("./contracts/v3/BaseLibrary")), _defineProperty(_v2, ACCESS_TYPES.TYPE, require("./contracts/v3/BaseContentType")), _defineProperty(_v2, ACCESS_TYPES.OBJECT, require("./contracts/v3/BaseContent")), _defineProperty(_v2, ACCESS_TYPES.WALLET, require("./contracts/v3/BaseAccessWallet")), _defineProperty(_v2, ACCESS_TYPES.GROUP, require("./contracts/v3/BaseAccessControlGroup")), _defineProperty(_v2, ACCESS_TYPES.ACCESSIBLE, require("./contracts/v3/Accessible")), _defineProperty(_v2, ACCESS_TYPES.EDITABLE, require("./contracts/v3/Editable")), _defineProperty(_v2, ACCESS_TYPES.TENANT, require("./contracts/v3/BaseTenantSpace")), _v2),
|
|
42
43
|
v3b: _defineProperty({}, ACCESS_TYPES.GROUP, require("./contracts/v3b/BaseAccessControlGroup"))
|
|
43
44
|
};
|
|
44
45
|
var AuthorizationClient = /*#__PURE__*/function () {
|
|
@@ -76,7 +77,7 @@ var AuthorizationClient = /*#__PURE__*/function () {
|
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
// Return authorization token in appropriate headers
|
|
79
|
-
|
|
80
|
+
_createClass(AuthorizationClient, [{
|
|
80
81
|
key: "Log",
|
|
81
82
|
value: function Log(message) {
|
|
82
83
|
var error = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
@@ -1025,6 +1026,7 @@ var AuthorizationClient = /*#__PURE__*/function () {
|
|
|
1025
1026
|
}
|
|
1026
1027
|
}
|
|
1027
1028
|
}
|
|
1029
|
+
|
|
1028
1030
|
if (isV3 && (!args || args.length === 0)) {
|
|
1029
1031
|
args = [[],
|
|
1030
1032
|
// customValues
|
|
@@ -1171,7 +1173,7 @@ var AuthorizationClient = /*#__PURE__*/function () {
|
|
|
1171
1173
|
}() /* Utility methods */
|
|
1172
1174
|
}, {
|
|
1173
1175
|
key: "ContractInfo",
|
|
1174
|
-
value:
|
|
1176
|
+
value: function () {
|
|
1175
1177
|
var _ContractInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14(_ref14) {
|
|
1176
1178
|
var id, address, isV3, contractName, accessType, v3Version, version;
|
|
1177
1179
|
return _regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
@@ -1222,7 +1224,7 @@ var AuthorizationClient = /*#__PURE__*/function () {
|
|
|
1222
1224
|
return _ContractInfo.apply(this, arguments);
|
|
1223
1225
|
}
|
|
1224
1226
|
return ContractInfo;
|
|
1225
|
-
}()
|
|
1227
|
+
}()
|
|
1226
1228
|
}, {
|
|
1227
1229
|
key: "GetAccessCharge",
|
|
1228
1230
|
value: function () {
|
|
@@ -2024,7 +2026,7 @@ var AuthorizationClient = /*#__PURE__*/function () {
|
|
|
2024
2026
|
}() /* Creation methods */
|
|
2025
2027
|
}, {
|
|
2026
2028
|
key: "CreateAccessGroup",
|
|
2027
|
-
value:
|
|
2029
|
+
value: function () {
|
|
2028
2030
|
var _CreateAccessGroup = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30() {
|
|
2029
2031
|
var _yield$this$client$et, contractAddress, transactionHash;
|
|
2030
2032
|
return _regeneratorRuntime.wrap(function _callee30$(_context30) {
|
|
@@ -2053,7 +2055,7 @@ var AuthorizationClient = /*#__PURE__*/function () {
|
|
|
2053
2055
|
return _CreateAccessGroup.apply(this, arguments);
|
|
2054
2056
|
}
|
|
2055
2057
|
return CreateAccessGroup;
|
|
2056
|
-
}()
|
|
2058
|
+
}()
|
|
2057
2059
|
}, {
|
|
2058
2060
|
key: "CreateContentType",
|
|
2059
2061
|
value: function () {
|
|
@@ -2162,5 +2164,6 @@ var AuthorizationClient = /*#__PURE__*/function () {
|
|
|
2162
2164
|
this.channelContentTokens = {};
|
|
2163
2165
|
}
|
|
2164
2166
|
}]);
|
|
2167
|
+
return AuthorizationClient;
|
|
2165
2168
|
}();
|
|
2166
2169
|
module.exports = AuthorizationClient;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var _regeneratorRuntime = require("@babel/runtime/regenerator");
|
|
2
2
|
var _toConsumableArray = require("@babel/runtime/helpers/toConsumableArray");
|
|
3
3
|
var _asyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator");
|
|
4
|
-
function _createForOfIteratorHelper(
|
|
5
|
-
function _unsupportedIterableToArray(
|
|
6
|
-
function _arrayLikeToArray(
|
|
4
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
7
|
var UrlJoin = require("url-join");
|
|
8
8
|
var HttpClient = require("./HttpClient");
|
|
9
9
|
var UUID = require("uuid").v4;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _regeneratorRuntime = require("@babel/runtime/regenerator");
|
|
2
2
|
var _asyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator");
|
|
3
|
-
function _createForOfIteratorHelper(
|
|
4
|
-
function _unsupportedIterableToArray(
|
|
5
|
-
function _arrayLikeToArray(
|
|
3
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
6
|
var CBOR = require("cbor");
|
|
7
7
|
var SJCL = require("sjcl");
|
|
8
8
|
var MultiHash = require("multihashes");
|
package/dist/src/Crypto.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
2
2
|
var _regeneratorRuntime = require("@babel/runtime/regenerator");
|
|
3
3
|
var _asyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator");
|
|
4
|
-
function _getRequireWildcardCache(
|
|
5
|
-
function _interopRequireWildcard(
|
|
4
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
5
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
6
6
|
if (typeof globalThis.Buffer === "undefined") {
|
|
7
7
|
globalThis.Buffer = require("buffer/").Buffer;
|
|
8
8
|
}
|
package/dist/src/ElvClient.js
CHANGED
|
@@ -5,8 +5,8 @@ var _regeneratorRuntime = require("@babel/runtime/regenerator");
|
|
|
5
5
|
var _asyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator");
|
|
6
6
|
var _classCallCheck = require("@babel/runtime/helpers/classCallCheck");
|
|
7
7
|
var _createClass = require("@babel/runtime/helpers/createClass");
|
|
8
|
-
function ownKeys(
|
|
9
|
-
function _objectSpread(
|
|
8
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10
10
|
if (typeof globalThis.Buffer === "undefined") {
|
|
11
11
|
globalThis.Buffer = require("buffer/").Buffer;
|
|
12
12
|
}
|
|
@@ -142,7 +142,7 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
142
142
|
* @param {string=} clientIP - IP address to use in determining the region to use
|
|
143
143
|
* @return {Promise<Object>} - Object containing content space ID and fabric and ethereum URLs
|
|
144
144
|
*/
|
|
145
|
-
|
|
145
|
+
_createClass(ElvClient, [{
|
|
146
146
|
key: "Log",
|
|
147
147
|
value: function Log(message) {
|
|
148
148
|
var error = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
@@ -341,7 +341,7 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
341
341
|
*/
|
|
342
342
|
}, {
|
|
343
343
|
key: "UseRegion",
|
|
344
|
-
value:
|
|
344
|
+
value: function () {
|
|
345
345
|
var _UseRegion = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_ref4) {
|
|
346
346
|
var region, _yield$ElvClient$Conf, fabricURIs, ethereumURIs, authServiceURIs, fileServiceURIs, searchURIs;
|
|
347
347
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
@@ -401,10 +401,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
401
401
|
*
|
|
402
402
|
* @return {Promise<Object>} - An object containing the updated fabric and ethereum URLs in order of preference
|
|
403
403
|
*/
|
|
404
|
-
)
|
|
405
404
|
}, {
|
|
406
405
|
key: "ResetRegion",
|
|
407
|
-
value:
|
|
406
|
+
value: function () {
|
|
408
407
|
var _ResetRegion = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
409
408
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
410
409
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -444,10 +443,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
444
443
|
*
|
|
445
444
|
* @return {Promise<string>} - The node ID reported by the fabric
|
|
446
445
|
*/
|
|
447
|
-
)
|
|
448
446
|
}, {
|
|
449
447
|
key: "NodeId",
|
|
450
|
-
value:
|
|
448
|
+
value: function () {
|
|
451
449
|
var _NodeId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(_ref5) {
|
|
452
450
|
var region, _yield$ElvClient$Conf2, nodeId;
|
|
453
451
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
@@ -481,7 +479,6 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
481
479
|
*
|
|
482
480
|
* @return {Promise<Object>} - An object containing the lists of fabric, ethereum, auth service, and search urls in use by the client
|
|
483
481
|
*/
|
|
484
|
-
)
|
|
485
482
|
}, {
|
|
486
483
|
key: "Nodes",
|
|
487
484
|
value: function Nodes() {
|
|
@@ -553,7 +550,7 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
553
550
|
*/
|
|
554
551
|
}, {
|
|
555
552
|
key: "SpaceNodes",
|
|
556
|
-
value:
|
|
553
|
+
value: function () {
|
|
557
554
|
var _SpaceNodes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
|
|
558
555
|
var _this = this;
|
|
559
556
|
var _ref7,
|
|
@@ -640,7 +637,6 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
640
637
|
* @methodGroup Nodes
|
|
641
638
|
* @returns {Object} - The name, ID and configuration URL of the network
|
|
642
639
|
*/
|
|
643
|
-
)
|
|
644
640
|
}, {
|
|
645
641
|
key: "NetworkInfo",
|
|
646
642
|
value: function NetworkInfo() {
|
|
@@ -738,7 +734,7 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
738
734
|
*/
|
|
739
735
|
}, {
|
|
740
736
|
key: "SetRemoteSigner",
|
|
741
|
-
value:
|
|
737
|
+
value: function () {
|
|
742
738
|
var _SetRemoteSigner = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(_ref11) {
|
|
743
739
|
var idToken, authToken, tenantId, extraData, signerURIs, unsignedPublicAuth, signer;
|
|
744
740
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
@@ -793,10 +789,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
793
789
|
* @namedParams
|
|
794
790
|
* @param {object} provider - The web3 provider object
|
|
795
791
|
*/
|
|
796
|
-
)
|
|
797
792
|
}, {
|
|
798
793
|
key: "SetSignerFromWeb3Provider",
|
|
799
|
-
value:
|
|
794
|
+
value: function () {
|
|
800
795
|
var _SetSignerFromWeb3Provider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(_ref12) {
|
|
801
796
|
var provider, ethProvider;
|
|
802
797
|
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
@@ -839,10 +834,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
839
834
|
*
|
|
840
835
|
* @return {string} - The address of the user
|
|
841
836
|
*/
|
|
842
|
-
)
|
|
843
837
|
}, {
|
|
844
838
|
key: "CreateAccount",
|
|
845
|
-
value:
|
|
839
|
+
value: function () {
|
|
846
840
|
var _CreateAccount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(_ref13) {
|
|
847
841
|
var tenantId, fundingToken, _ref13$funds, funds, groupToken, wallet, signer;
|
|
848
842
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
@@ -917,10 +911,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
917
911
|
PAYLOAD 85b json-compressed
|
|
918
912
|
json 79b {"adr":"VVf4DQU357tDnZGYQeDrntRJ5rs=","spc":"ispc3ANoVSzNA3P6t7abLR69ho5YPPZU"}
|
|
919
913
|
*/
|
|
920
|
-
)
|
|
921
914
|
}, {
|
|
922
915
|
key: "PersonalSign",
|
|
923
|
-
value:
|
|
916
|
+
value: function () {
|
|
924
917
|
var _PersonalSign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11(_ref14) {
|
|
925
918
|
var _this2 = this;
|
|
926
919
|
var message, addEthereumPrefix, Sign;
|
|
@@ -994,10 +987,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
994
987
|
* @param {function=} Sign - If specified, this function will be used to produce the signature instead of the client's current signer
|
|
995
988
|
* @param {boolean=} addEthereumPrefix=true - If specified, the 'Ethereum Signed Message' prefixed hash format will be performed. Disable this if the provided Sign method already does this (e.g. Metamask)
|
|
996
989
|
*/
|
|
997
|
-
)
|
|
998
990
|
}, {
|
|
999
991
|
key: "CreateFabricToken",
|
|
1000
|
-
value:
|
|
992
|
+
value: function () {
|
|
1001
993
|
var _CreateFabricToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {
|
|
1002
994
|
var _ref16,
|
|
1003
995
|
_ref16$duration,
|
|
@@ -1079,10 +1071,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1079
1071
|
* enabling the user of this token to download encrypted content from the specified object
|
|
1080
1072
|
* @param {Object=} context - Additional JSON context
|
|
1081
1073
|
*/
|
|
1082
|
-
)
|
|
1083
1074
|
}, {
|
|
1084
1075
|
key: "CreateSignedToken",
|
|
1085
|
-
value:
|
|
1076
|
+
value: function () {
|
|
1086
1077
|
var _CreateSignedToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(_ref17) {
|
|
1087
1078
|
var libraryId, objectId, versionHash, policyId, subject, _ref17$grantType, grantType, _ref17$allowDecryptio, allowDecryption, duration, _ref17$context, context, token, cap, compressedToken, signature;
|
|
1088
1079
|
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
@@ -1195,10 +1186,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1195
1186
|
* @namedParams
|
|
1196
1187
|
* @param {string} messasge - A JSON object representing the message to sign
|
|
1197
1188
|
*/
|
|
1198
|
-
)
|
|
1199
1189
|
}, {
|
|
1200
1190
|
key: "CreateSignedMessageJSON",
|
|
1201
|
-
value:
|
|
1191
|
+
value: function () {
|
|
1202
1192
|
var _CreateSignedMessageJSON = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14(_ref18) {
|
|
1203
1193
|
var message, type, msg, signature;
|
|
1204
1194
|
return _regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
@@ -1235,10 +1225,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1235
1225
|
* @param {string} signedMessage - a signed message as created by CreateSignedMessageJSON
|
|
1236
1226
|
* @returns {Promise<Object>} - The decoded message, signer address, signature and signature type
|
|
1237
1227
|
*/
|
|
1238
|
-
)
|
|
1239
1228
|
}, {
|
|
1240
1229
|
key: "DecodeSignedMessageJSON",
|
|
1241
|
-
value:
|
|
1230
|
+
value: function () {
|
|
1242
1231
|
var _DecodeSignedMessageJSON = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(_ref19) {
|
|
1243
1232
|
var signedMessage, type, msgBytes, signature, msg, obj, prefixedMsgHash, signerAddr;
|
|
1244
1233
|
return _regeneratorRuntime.wrap(function _callee15$(_context15) {
|
|
@@ -1281,7 +1270,6 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1281
1270
|
* @methodGroup Signers
|
|
1282
1271
|
* @returns {string} - The address of the current signer
|
|
1283
1272
|
*/
|
|
1284
|
-
)
|
|
1285
1273
|
}, {
|
|
1286
1274
|
key: "CurrentAccountAddress",
|
|
1287
1275
|
value: function CurrentAccountAddress() {
|
|
@@ -1297,7 +1285,7 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1297
1285
|
*/
|
|
1298
1286
|
}, {
|
|
1299
1287
|
key: "SetOauthToken",
|
|
1300
|
-
value:
|
|
1288
|
+
value: function () {
|
|
1301
1289
|
var _SetOauthToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16(_ref20) {
|
|
1302
1290
|
var token, wallet, signer;
|
|
1303
1291
|
return _regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
@@ -1333,10 +1321,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1333
1321
|
* @namedParams
|
|
1334
1322
|
* @param {string} token - The OAuth ID
|
|
1335
1323
|
*/
|
|
1336
|
-
)
|
|
1337
1324
|
}, {
|
|
1338
1325
|
key: "SetSignerFromOauthToken",
|
|
1339
|
-
value:
|
|
1326
|
+
value: function () {
|
|
1340
1327
|
var _SetSignerFromOauthToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17(_ref21) {
|
|
1341
1328
|
var token, wallet, client, _yield$client$authCli, urls, path, httpClient, response, privateKey;
|
|
1342
1329
|
return _regeneratorRuntime.wrap(function _callee17$(_context17) {
|
|
@@ -1440,7 +1427,6 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1440
1427
|
*
|
|
1441
1428
|
* @return {string} - The created static token
|
|
1442
1429
|
*/
|
|
1443
|
-
)
|
|
1444
1430
|
}, {
|
|
1445
1431
|
key: "CreateStaticToken",
|
|
1446
1432
|
value: function CreateStaticToken(_ref22) {
|
|
@@ -1495,7 +1481,7 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1495
1481
|
*/
|
|
1496
1482
|
}, {
|
|
1497
1483
|
key: "SetPolicyAuthorization",
|
|
1498
|
-
value:
|
|
1484
|
+
value: function () {
|
|
1499
1485
|
var _SetPolicyAuthorization = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18(_ref24) {
|
|
1500
1486
|
var objectId;
|
|
1501
1487
|
return _regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
@@ -1530,10 +1516,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1530
1516
|
* @param {string} string - The string to sign
|
|
1531
1517
|
* @return {Promise<string>} - The signed string
|
|
1532
1518
|
*/
|
|
1533
|
-
)
|
|
1534
1519
|
}, {
|
|
1535
1520
|
key: "Sign",
|
|
1536
|
-
value:
|
|
1521
|
+
value: function () {
|
|
1537
1522
|
var _Sign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19(string) {
|
|
1538
1523
|
var signature;
|
|
1539
1524
|
return _regeneratorRuntime.wrap(function _callee19$(_context19) {
|
|
@@ -1564,10 +1549,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1564
1549
|
*
|
|
1565
1550
|
* @return {Promise<string>} - The encrypted message
|
|
1566
1551
|
*/
|
|
1567
|
-
)
|
|
1568
1552
|
}, {
|
|
1569
1553
|
key: "EncryptECIES",
|
|
1570
|
-
value:
|
|
1554
|
+
value: function () {
|
|
1571
1555
|
var _EncryptECIES = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20(_ref25) {
|
|
1572
1556
|
var message, publicKey;
|
|
1573
1557
|
return _regeneratorRuntime.wrap(function _callee20$(_context20) {
|
|
@@ -1604,10 +1588,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1604
1588
|
*
|
|
1605
1589
|
* @return {Promise<string | Object>} - The decrypted string or object
|
|
1606
1590
|
*/
|
|
1607
|
-
)
|
|
1608
1591
|
}, {
|
|
1609
1592
|
key: "DecryptECIES",
|
|
1610
|
-
value:
|
|
1593
|
+
value: function () {
|
|
1611
1594
|
var _DecryptECIES = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21(_ref26) {
|
|
1612
1595
|
var message;
|
|
1613
1596
|
return _regeneratorRuntime.wrap(function _callee21$(_context21) {
|
|
@@ -1647,10 +1630,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1647
1630
|
*
|
|
1648
1631
|
* @return {Promise<*>} - Response in the specified format
|
|
1649
1632
|
*/
|
|
1650
|
-
)
|
|
1651
1633
|
}, {
|
|
1652
1634
|
key: "Request",
|
|
1653
|
-
value:
|
|
1635
|
+
value: function () {
|
|
1654
1636
|
var _Request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(_ref27) {
|
|
1655
1637
|
var url, _ref27$format, format, _ref27$method, method, _ref27$headers, headers, body;
|
|
1656
1638
|
return _regeneratorRuntime.wrap(function _callee22$(_context22) {
|
|
@@ -1672,7 +1654,7 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1672
1654
|
return _Request.apply(this, arguments);
|
|
1673
1655
|
}
|
|
1674
1656
|
return Request;
|
|
1675
|
-
}()
|
|
1657
|
+
}()
|
|
1676
1658
|
}, {
|
|
1677
1659
|
key: "MakeAuthServiceRequest",
|
|
1678
1660
|
value: function () {
|
|
@@ -1829,7 +1811,7 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1829
1811
|
}()
|
|
1830
1812
|
}], [{
|
|
1831
1813
|
key: "Configuration",
|
|
1832
|
-
value:
|
|
1814
|
+
value: function () {
|
|
1833
1815
|
var _Configuration = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(_ref29) {
|
|
1834
1816
|
var configUrl, _ref29$kmsUrls, kmsUrls, region, clientIP, uri, fabricInfo, filterHTTPS, fabricURIs, ethereumURIs, authServiceURIs, fileServiceURIs, searchURIs, fabricVersion;
|
|
1835
1817
|
return _regeneratorRuntime.wrap(function _callee25$(_context25) {
|
|
@@ -1910,7 +1892,6 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1910
1892
|
*
|
|
1911
1893
|
* @return {Object} - An object using network names as keys and configuration URLs as values.
|
|
1912
1894
|
*/
|
|
1913
|
-
)
|
|
1914
1895
|
}, {
|
|
1915
1896
|
key: "Networks",
|
|
1916
1897
|
value: function Networks() {
|
|
@@ -1935,7 +1916,7 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1935
1916
|
*/
|
|
1936
1917
|
}, {
|
|
1937
1918
|
key: "FromNetworkName",
|
|
1938
|
-
value:
|
|
1919
|
+
value: function () {
|
|
1939
1920
|
var _FromNetworkName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(_ref30) {
|
|
1940
1921
|
var networkName, region, clientIP, trustAuthorityId, staticToken, _ref30$ethereumContra, ethereumContractTimeout, _ref30$noCache, noCache, _ref30$noAuth, noAuth, assumeV3, configUrl;
|
|
1941
1922
|
return _regeneratorRuntime.wrap(function _callee26$(_context26) {
|
|
@@ -1990,10 +1971,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1990
1971
|
*
|
|
1991
1972
|
* @return {Promise<ElvClient>} - New ElvClient connected to the specified content fabric and blockchain
|
|
1992
1973
|
*/
|
|
1993
|
-
)
|
|
1994
1974
|
}, {
|
|
1995
1975
|
key: "FromConfigurationUrl",
|
|
1996
|
-
value:
|
|
1976
|
+
value: function () {
|
|
1997
1977
|
var _FromConfigurationUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(_ref31) {
|
|
1998
1978
|
var configUrl, region, clientIP, trustAuthorityId, staticToken, _ref31$ethereumContra, ethereumContractTimeout, _ref31$noCache, noCache, _ref31$noAuth, noAuth, _ref31$assumeV, assumeV3, _yield$ElvClient$Conf3, contentSpaceId, networkId, networkName, fabricURIs, ethereumURIs, authServiceURIs, fileServiceURIs, searchURIs, fabricVersion, client;
|
|
1999
1979
|
return _regeneratorRuntime.wrap(function _callee27$(_context27) {
|
|
@@ -2048,8 +2028,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
2048
2028
|
return _FromConfigurationUrl.apply(this, arguments);
|
|
2049
2029
|
}
|
|
2050
2030
|
return FromConfigurationUrl;
|
|
2051
|
-
}()
|
|
2031
|
+
}()
|
|
2052
2032
|
}]);
|
|
2033
|
+
return ElvClient;
|
|
2053
2034
|
}();
|
|
2054
2035
|
Object.assign(ElvClient.prototype, require("./client/AccessGroups"));
|
|
2055
2036
|
Object.assign(ElvClient.prototype, require("./client/ContentAccess"));
|
package/dist/src/ElvWallet.js
CHANGED
|
@@ -25,7 +25,7 @@ var ElvWallet = /*#__PURE__*/function () {
|
|
|
25
25
|
*
|
|
26
26
|
* @returns {string} - Space-separated list of random words
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
_createClass(ElvWallet, [{
|
|
29
29
|
key: "GenerateMnemonic",
|
|
30
30
|
value: function GenerateMnemonic() {
|
|
31
31
|
return Ethers.Wallet.createRandom().mnemonic.phrase;
|
|
@@ -64,7 +64,7 @@ var ElvWallet = /*#__PURE__*/function () {
|
|
|
64
64
|
*/
|
|
65
65
|
}, {
|
|
66
66
|
key: "AddAccountFromEncryptedPK",
|
|
67
|
-
value:
|
|
67
|
+
value: function () {
|
|
68
68
|
var _AddAccountFromEncryptedPK = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref2) {
|
|
69
69
|
var accountName, encryptedPrivateKey, password, signer;
|
|
70
70
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -102,7 +102,6 @@ var ElvWallet = /*#__PURE__*/function () {
|
|
|
102
102
|
*
|
|
103
103
|
* @returns {Signer} - Signer with the private key, connected to the provider
|
|
104
104
|
*/
|
|
105
|
-
)
|
|
106
105
|
}, {
|
|
107
106
|
key: "AddAccount",
|
|
108
107
|
value: function AddAccount(_ref3) {
|
|
@@ -134,7 +133,7 @@ var ElvWallet = /*#__PURE__*/function () {
|
|
|
134
133
|
*/
|
|
135
134
|
}, {
|
|
136
135
|
key: "GetAccountBalance",
|
|
137
|
-
value:
|
|
136
|
+
value: function () {
|
|
138
137
|
var _GetAccountBalance = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(_ref4) {
|
|
139
138
|
var accountName, signer, accountSigner;
|
|
140
139
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
@@ -181,10 +180,9 @@ var ElvWallet = /*#__PURE__*/function () {
|
|
|
181
180
|
*
|
|
182
181
|
* @returns {Promise<string>} - The encrypted private key (in Ethereum keystore format)
|
|
183
182
|
*/
|
|
184
|
-
)
|
|
185
183
|
}, {
|
|
186
184
|
key: "GenerateEncryptedPrivateKey",
|
|
187
|
-
value:
|
|
185
|
+
value: function () {
|
|
188
186
|
var _GenerateEncryptedPrivateKey = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_ref5) {
|
|
189
187
|
var accountName, signer, password, options, accountSigner;
|
|
190
188
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
@@ -222,7 +220,6 @@ var ElvWallet = /*#__PURE__*/function () {
|
|
|
222
220
|
* @param {string} accountName - Name of the account
|
|
223
221
|
* @returns {(Signer|undefined)} - Signer of the saved account, if it exists
|
|
224
222
|
*/
|
|
225
|
-
)
|
|
226
223
|
}, {
|
|
227
224
|
key: "GetAccount",
|
|
228
225
|
value: function GetAccount(_ref6) {
|
|
@@ -243,5 +240,6 @@ var ElvWallet = /*#__PURE__*/function () {
|
|
|
243
240
|
delete this.signers[accountName];
|
|
244
241
|
}
|
|
245
242
|
}]);
|
|
243
|
+
return ElvWallet;
|
|
246
244
|
}();
|
|
247
245
|
module.exports = ElvWallet;
|
package/dist/src/EthClient.js
CHANGED
|
@@ -5,11 +5,11 @@ var _regeneratorRuntime = require("@babel/runtime/regenerator");
|
|
|
5
5
|
var _asyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator");
|
|
6
6
|
var _classCallCheck = require("@babel/runtime/helpers/classCallCheck");
|
|
7
7
|
var _createClass = require("@babel/runtime/helpers/createClass");
|
|
8
|
-
function _createForOfIteratorHelper(
|
|
9
|
-
function _unsupportedIterableToArray(
|
|
10
|
-
function _arrayLikeToArray(
|
|
11
|
-
function ownKeys(
|
|
12
|
-
function _objectSpread(
|
|
8
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
13
|
// NOTE: Querying Ethereum requires CORS enabled
|
|
14
14
|
// Use --rpccorsdomain "http[s]://hostname:port" or set up proxy
|
|
15
15
|
var Ethers = require("ethers");
|
|
@@ -57,7 +57,7 @@ var EthClient = /*#__PURE__*/function () {
|
|
|
57
57
|
|
|
58
58
|
//Ethers.errors.setLogLevel("error");
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
_createClass(EthClient, [{
|
|
61
61
|
key: "Log",
|
|
62
62
|
value: function Log(message) {
|
|
63
63
|
var error = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
@@ -701,7 +701,7 @@ var EthClient = /*#__PURE__*/function () {
|
|
|
701
701
|
}() /* Specific contract management */
|
|
702
702
|
}, {
|
|
703
703
|
key: "DeployAccessGroupContract",
|
|
704
|
-
value:
|
|
704
|
+
value: function () {
|
|
705
705
|
var _DeployAccessGroupContract = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(_ref14) {
|
|
706
706
|
var contentSpaceAddress;
|
|
707
707
|
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
@@ -725,7 +725,7 @@ var EthClient = /*#__PURE__*/function () {
|
|
|
725
725
|
return _DeployAccessGroupContract.apply(this, arguments);
|
|
726
726
|
}
|
|
727
727
|
return DeployAccessGroupContract;
|
|
728
|
-
}()
|
|
728
|
+
}()
|
|
729
729
|
}, {
|
|
730
730
|
key: "DeployTypeContract",
|
|
731
731
|
value: function () {
|
|
@@ -1149,5 +1149,6 @@ var EthClient = /*#__PURE__*/function () {
|
|
|
1149
1149
|
return Events;
|
|
1150
1150
|
}()
|
|
1151
1151
|
}]);
|
|
1152
|
+
return EthClient;
|
|
1152
1153
|
}();
|
|
1153
1154
|
module.exports = EthClient;
|