@eluvio/elv-client-js 4.0.90 → 4.0.91
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 +19 -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 +3 -2
- package/dist/src/client/ContentManagement.js +5 -4
- package/dist/src/client/Contracts.js +2 -2
- package/dist/src/client/Files.js +2 -2
- package/dist/src/client/LiveConf.js +5 -3
- 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/ContentManagement.js +3 -2
- package/testScripts/BasicObjectOperations.js +93 -0
|
@@ -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 () {
|
|
@@ -73,7 +74,7 @@ var AuthorizationClient = /*#__PURE__*/function () {
|
|
|
73
74
|
this.requestIds = {};
|
|
74
75
|
this.providers = {};
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
+
_createClass(AuthorizationClient, [{
|
|
77
78
|
key: "Log",
|
|
78
79
|
value: function Log(message) {
|
|
79
80
|
var error = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
@@ -1013,6 +1014,7 @@ var AuthorizationClient = /*#__PURE__*/function () {
|
|
|
1013
1014
|
}
|
|
1014
1015
|
}
|
|
1015
1016
|
}
|
|
1017
|
+
|
|
1016
1018
|
if (isV3 && (!args || args.length === 0)) {
|
|
1017
1019
|
args = [[],
|
|
1018
1020
|
// customValues
|
|
@@ -1159,7 +1161,7 @@ var AuthorizationClient = /*#__PURE__*/function () {
|
|
|
1159
1161
|
}() /* Utility methods */
|
|
1160
1162
|
}, {
|
|
1161
1163
|
key: "ContractInfo",
|
|
1162
|
-
value:
|
|
1164
|
+
value: function () {
|
|
1163
1165
|
var _ContractInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14(_ref15) {
|
|
1164
1166
|
var id, address, isV3, contractName, accessType, v3Version, version;
|
|
1165
1167
|
return _regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
@@ -1210,7 +1212,7 @@ var AuthorizationClient = /*#__PURE__*/function () {
|
|
|
1210
1212
|
return _ContractInfo.apply(this, arguments);
|
|
1211
1213
|
}
|
|
1212
1214
|
return ContractInfo;
|
|
1213
|
-
}()
|
|
1215
|
+
}()
|
|
1214
1216
|
}, {
|
|
1215
1217
|
key: "GetAccessCharge",
|
|
1216
1218
|
value: function () {
|
|
@@ -2012,7 +2014,7 @@ var AuthorizationClient = /*#__PURE__*/function () {
|
|
|
2012
2014
|
}() /* Creation methods */
|
|
2013
2015
|
}, {
|
|
2014
2016
|
key: "CreateAccessGroup",
|
|
2015
|
-
value:
|
|
2017
|
+
value: function () {
|
|
2016
2018
|
var _CreateAccessGroup = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30() {
|
|
2017
2019
|
var _yield$this$client$et, contractAddress, transactionHash;
|
|
2018
2020
|
return _regeneratorRuntime.wrap(function _callee30$(_context30) {
|
|
@@ -2041,7 +2043,7 @@ var AuthorizationClient = /*#__PURE__*/function () {
|
|
|
2041
2043
|
return _CreateAccessGroup.apply(this, arguments);
|
|
2042
2044
|
}
|
|
2043
2045
|
return CreateAccessGroup;
|
|
2044
|
-
}()
|
|
2046
|
+
}()
|
|
2045
2047
|
}, {
|
|
2046
2048
|
key: "CreateContentType",
|
|
2047
2049
|
value: function () {
|
|
@@ -2150,5 +2152,6 @@ var AuthorizationClient = /*#__PURE__*/function () {
|
|
|
2150
2152
|
this.channelContentTokens = {};
|
|
2151
2153
|
}
|
|
2152
2154
|
}]);
|
|
2155
|
+
return AuthorizationClient;
|
|
2153
2156
|
}();
|
|
2154
2157
|
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
|
}
|
|
@@ -139,7 +139,7 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
139
139
|
* @param {string=} clientIP - IP address to use in determining the region to use
|
|
140
140
|
* @return {Promise<Object>} - Object containing content space ID and fabric and ethereum URLs
|
|
141
141
|
*/
|
|
142
|
-
|
|
142
|
+
_createClass(ElvClient, [{
|
|
143
143
|
key: "Log",
|
|
144
144
|
value: function Log(message) {
|
|
145
145
|
var error = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
@@ -334,7 +334,7 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
334
334
|
*/
|
|
335
335
|
}, {
|
|
336
336
|
key: "UseRegion",
|
|
337
|
-
value:
|
|
337
|
+
value: function () {
|
|
338
338
|
var _UseRegion = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_ref4) {
|
|
339
339
|
var region, _yield$ElvClient$Conf, fabricURIs, ethereumURIs, authServiceURIs, searchURIs;
|
|
340
340
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
@@ -392,10 +392,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
392
392
|
*
|
|
393
393
|
* @return {Promise<Object>} - An object containing the updated fabric and ethereum URLs in order of preference
|
|
394
394
|
*/
|
|
395
|
-
)
|
|
396
395
|
}, {
|
|
397
396
|
key: "ResetRegion",
|
|
398
|
-
value:
|
|
397
|
+
value: function () {
|
|
399
398
|
var _ResetRegion = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
400
399
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
401
400
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -435,10 +434,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
435
434
|
*
|
|
436
435
|
* @return {Promise<string>} - The node ID reported by the fabric
|
|
437
436
|
*/
|
|
438
|
-
)
|
|
439
437
|
}, {
|
|
440
438
|
key: "NodeId",
|
|
441
|
-
value:
|
|
439
|
+
value: function () {
|
|
442
440
|
var _NodeId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(_ref5) {
|
|
443
441
|
var region, _yield$ElvClient$Conf2, nodeId;
|
|
444
442
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
@@ -472,7 +470,6 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
472
470
|
*
|
|
473
471
|
* @return {Promise<Object>} - An object containing the lists of fabric, ethereum, auth service, and search urls in use by the client
|
|
474
472
|
*/
|
|
475
|
-
)
|
|
476
473
|
}, {
|
|
477
474
|
key: "Nodes",
|
|
478
475
|
value: function Nodes() {
|
|
@@ -534,7 +531,7 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
534
531
|
*/
|
|
535
532
|
}, {
|
|
536
533
|
key: "SpaceNodes",
|
|
537
|
-
value:
|
|
534
|
+
value: function () {
|
|
538
535
|
var _SpaceNodes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
|
|
539
536
|
var _this = this;
|
|
540
537
|
var _ref7,
|
|
@@ -621,7 +618,6 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
621
618
|
* @methodGroup Nodes
|
|
622
619
|
* @returns {Object} - The name, ID and configuration URL of the network
|
|
623
620
|
*/
|
|
624
|
-
)
|
|
625
621
|
}, {
|
|
626
622
|
key: "NetworkInfo",
|
|
627
623
|
value: function NetworkInfo() {
|
|
@@ -719,7 +715,7 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
719
715
|
*/
|
|
720
716
|
}, {
|
|
721
717
|
key: "SetRemoteSigner",
|
|
722
|
-
value:
|
|
718
|
+
value: function () {
|
|
723
719
|
var _SetRemoteSigner = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(_ref11) {
|
|
724
720
|
var idToken, authToken, tenantId, extraData, signerURIs, unsignedPublicAuth, signer;
|
|
725
721
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
@@ -774,10 +770,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
774
770
|
* @namedParams
|
|
775
771
|
* @param {object} provider - The web3 provider object
|
|
776
772
|
*/
|
|
777
|
-
)
|
|
778
773
|
}, {
|
|
779
774
|
key: "SetSignerFromWeb3Provider",
|
|
780
|
-
value:
|
|
775
|
+
value: function () {
|
|
781
776
|
var _SetSignerFromWeb3Provider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(_ref12) {
|
|
782
777
|
var provider, ethProvider;
|
|
783
778
|
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
@@ -820,10 +815,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
820
815
|
*
|
|
821
816
|
* @return {string} - The address of the user
|
|
822
817
|
*/
|
|
823
|
-
)
|
|
824
818
|
}, {
|
|
825
819
|
key: "CreateAccount",
|
|
826
|
-
value:
|
|
820
|
+
value: function () {
|
|
827
821
|
var _CreateAccount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(_ref13) {
|
|
828
822
|
var tenantId, fundingToken, _ref13$funds, funds, groupToken, wallet, signer;
|
|
829
823
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
@@ -898,10 +892,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
898
892
|
PAYLOAD 85b json-compressed
|
|
899
893
|
json 79b {"adr":"VVf4DQU357tDnZGYQeDrntRJ5rs=","spc":"ispc3ANoVSzNA3P6t7abLR69ho5YPPZU"}
|
|
900
894
|
*/
|
|
901
|
-
)
|
|
902
895
|
}, {
|
|
903
896
|
key: "PersonalSign",
|
|
904
|
-
value:
|
|
897
|
+
value: function () {
|
|
905
898
|
var _PersonalSign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11(_ref14) {
|
|
906
899
|
var _this2 = this;
|
|
907
900
|
var message, addEthereumPrefix, Sign;
|
|
@@ -956,10 +949,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
956
949
|
* @param {function=} Sign - If specified, this function will be used to produce the signature instead of the client's current signer
|
|
957
950
|
* @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)
|
|
958
951
|
*/
|
|
959
|
-
)
|
|
960
952
|
}, {
|
|
961
953
|
key: "CreateFabricToken",
|
|
962
|
-
value:
|
|
954
|
+
value: function () {
|
|
963
955
|
var _CreateFabricToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {
|
|
964
956
|
var _ref16,
|
|
965
957
|
_ref16$duration,
|
|
@@ -1041,10 +1033,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1041
1033
|
* enabling the user of this token to download encrypted content from the specified object
|
|
1042
1034
|
* @param {Object=} context - Additional JSON context
|
|
1043
1035
|
*/
|
|
1044
|
-
)
|
|
1045
1036
|
}, {
|
|
1046
1037
|
key: "CreateSignedToken",
|
|
1047
|
-
value:
|
|
1038
|
+
value: function () {
|
|
1048
1039
|
var _CreateSignedToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(_ref17) {
|
|
1049
1040
|
var libraryId, objectId, versionHash, policyId, subject, _ref17$grantType, grantType, _ref17$allowDecryptio, allowDecryption, duration, _ref17$context, context, token, cap, compressedToken, signature;
|
|
1050
1041
|
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
@@ -1157,10 +1148,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1157
1148
|
* @namedParams
|
|
1158
1149
|
* @param {string} messasge - A JSON object representing the message to sign
|
|
1159
1150
|
*/
|
|
1160
|
-
)
|
|
1161
1151
|
}, {
|
|
1162
1152
|
key: "CreateSignedMessageJSON",
|
|
1163
|
-
value:
|
|
1153
|
+
value: function () {
|
|
1164
1154
|
var _CreateSignedMessageJSON = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14(_ref18) {
|
|
1165
1155
|
var message, type, msg, signature;
|
|
1166
1156
|
return _regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
@@ -1197,10 +1187,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1197
1187
|
* @param {string} signedMessage - a signed message as created by CreateSignedMessageJSON
|
|
1198
1188
|
* @returns {Promise<Object>} - The decoded message, signer address, signature and signature type
|
|
1199
1189
|
*/
|
|
1200
|
-
)
|
|
1201
1190
|
}, {
|
|
1202
1191
|
key: "DecodeSignedMessageJSON",
|
|
1203
|
-
value:
|
|
1192
|
+
value: function () {
|
|
1204
1193
|
var _DecodeSignedMessageJSON = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(_ref19) {
|
|
1205
1194
|
var signedMessage, type, msgBytes, signature, msg, obj, prefixedMsgHash, signerAddr;
|
|
1206
1195
|
return _regeneratorRuntime.wrap(function _callee15$(_context15) {
|
|
@@ -1243,7 +1232,6 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1243
1232
|
* @methodGroup Signers
|
|
1244
1233
|
* @returns {string} - The address of the current signer
|
|
1245
1234
|
*/
|
|
1246
|
-
)
|
|
1247
1235
|
}, {
|
|
1248
1236
|
key: "CurrentAccountAddress",
|
|
1249
1237
|
value: function CurrentAccountAddress() {
|
|
@@ -1259,7 +1247,7 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1259
1247
|
*/
|
|
1260
1248
|
}, {
|
|
1261
1249
|
key: "SetOauthToken",
|
|
1262
|
-
value:
|
|
1250
|
+
value: function () {
|
|
1263
1251
|
var _SetOauthToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16(_ref20) {
|
|
1264
1252
|
var token, wallet, signer;
|
|
1265
1253
|
return _regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
@@ -1295,10 +1283,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1295
1283
|
* @namedParams
|
|
1296
1284
|
* @param {string} token - The OAuth ID
|
|
1297
1285
|
*/
|
|
1298
|
-
)
|
|
1299
1286
|
}, {
|
|
1300
1287
|
key: "SetSignerFromOauthToken",
|
|
1301
|
-
value:
|
|
1288
|
+
value: function () {
|
|
1302
1289
|
var _SetSignerFromOauthToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17(_ref21) {
|
|
1303
1290
|
var token, wallet, client, _yield$client$authCli, urls, path, httpClient, response, privateKey;
|
|
1304
1291
|
return _regeneratorRuntime.wrap(function _callee17$(_context17) {
|
|
@@ -1400,7 +1387,6 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1400
1387
|
* @namedParams
|
|
1401
1388
|
* @param {string=} token - The static token to use. If not provided, the default static token will be set.
|
|
1402
1389
|
*/
|
|
1403
|
-
)
|
|
1404
1390
|
}, {
|
|
1405
1391
|
key: "SetStaticToken",
|
|
1406
1392
|
value: function SetStaticToken() {
|
|
@@ -1434,7 +1420,7 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1434
1420
|
*/
|
|
1435
1421
|
}, {
|
|
1436
1422
|
key: "SetPolicyAuthorization",
|
|
1437
|
-
value:
|
|
1423
|
+
value: function () {
|
|
1438
1424
|
var _SetPolicyAuthorization = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18(_ref23) {
|
|
1439
1425
|
var objectId;
|
|
1440
1426
|
return _regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
@@ -1469,10 +1455,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1469
1455
|
* @param {string} string - The string to sign
|
|
1470
1456
|
* @return {Promise<string>} - The signed string
|
|
1471
1457
|
*/
|
|
1472
|
-
)
|
|
1473
1458
|
}, {
|
|
1474
1459
|
key: "Sign",
|
|
1475
|
-
value:
|
|
1460
|
+
value: function () {
|
|
1476
1461
|
var _Sign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19(string) {
|
|
1477
1462
|
var signature;
|
|
1478
1463
|
return _regeneratorRuntime.wrap(function _callee19$(_context19) {
|
|
@@ -1503,10 +1488,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1503
1488
|
*
|
|
1504
1489
|
* @return {Promise<string>} - The encrypted message
|
|
1505
1490
|
*/
|
|
1506
|
-
)
|
|
1507
1491
|
}, {
|
|
1508
1492
|
key: "EncryptECIES",
|
|
1509
|
-
value:
|
|
1493
|
+
value: function () {
|
|
1510
1494
|
var _EncryptECIES = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20(_ref24) {
|
|
1511
1495
|
var message, publicKey;
|
|
1512
1496
|
return _regeneratorRuntime.wrap(function _callee20$(_context20) {
|
|
@@ -1543,10 +1527,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1543
1527
|
*
|
|
1544
1528
|
* @return {Promise<string | Object>} - The decrypted string or object
|
|
1545
1529
|
*/
|
|
1546
|
-
)
|
|
1547
1530
|
}, {
|
|
1548
1531
|
key: "DecryptECIES",
|
|
1549
|
-
value:
|
|
1532
|
+
value: function () {
|
|
1550
1533
|
var _DecryptECIES = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21(_ref25) {
|
|
1551
1534
|
var message;
|
|
1552
1535
|
return _regeneratorRuntime.wrap(function _callee21$(_context21) {
|
|
@@ -1586,10 +1569,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1586
1569
|
*
|
|
1587
1570
|
* @return {Promise<*>} - Response in the specified format
|
|
1588
1571
|
*/
|
|
1589
|
-
)
|
|
1590
1572
|
}, {
|
|
1591
1573
|
key: "Request",
|
|
1592
|
-
value:
|
|
1574
|
+
value: function () {
|
|
1593
1575
|
var _Request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(_ref26) {
|
|
1594
1576
|
var url, _ref26$format, format, _ref26$method, method, _ref26$headers, headers, body;
|
|
1595
1577
|
return _regeneratorRuntime.wrap(function _callee22$(_context22) {
|
|
@@ -1611,7 +1593,7 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1611
1593
|
return _Request.apply(this, arguments);
|
|
1612
1594
|
}
|
|
1613
1595
|
return Request;
|
|
1614
|
-
}()
|
|
1596
|
+
}()
|
|
1615
1597
|
}, {
|
|
1616
1598
|
key: "MakeAuthServiceRequest",
|
|
1617
1599
|
value: function () {
|
|
@@ -1768,7 +1750,7 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1768
1750
|
}()
|
|
1769
1751
|
}], [{
|
|
1770
1752
|
key: "Configuration",
|
|
1771
|
-
value:
|
|
1753
|
+
value: function () {
|
|
1772
1754
|
var _Configuration = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(_ref28) {
|
|
1773
1755
|
var configUrl, _ref28$kmsUrls, kmsUrls, region, clientIP, uri, fabricInfo, filterHTTPS, fabricURIs, ethereumURIs, authServiceURIs, searchURIs, fabricVersion;
|
|
1774
1756
|
return _regeneratorRuntime.wrap(function _callee25$(_context25) {
|
|
@@ -1844,7 +1826,6 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1844
1826
|
*
|
|
1845
1827
|
* @return {Object} - An object using network names as keys and configuration URLs as values.
|
|
1846
1828
|
*/
|
|
1847
|
-
)
|
|
1848
1829
|
}, {
|
|
1849
1830
|
key: "Networks",
|
|
1850
1831
|
value: function Networks() {
|
|
@@ -1869,7 +1850,7 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1869
1850
|
*/
|
|
1870
1851
|
}, {
|
|
1871
1852
|
key: "FromNetworkName",
|
|
1872
|
-
value:
|
|
1853
|
+
value: function () {
|
|
1873
1854
|
var _FromNetworkName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(_ref29) {
|
|
1874
1855
|
var networkName, region, clientIP, trustAuthorityId, staticToken, _ref29$ethereumContra, ethereumContractTimeout, _ref29$noCache, noCache, _ref29$noAuth, noAuth, assumeV3, configUrl;
|
|
1875
1856
|
return _regeneratorRuntime.wrap(function _callee26$(_context26) {
|
|
@@ -1924,10 +1905,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1924
1905
|
*
|
|
1925
1906
|
* @return {Promise<ElvClient>} - New ElvClient connected to the specified content fabric and blockchain
|
|
1926
1907
|
*/
|
|
1927
|
-
)
|
|
1928
1908
|
}, {
|
|
1929
1909
|
key: "FromConfigurationUrl",
|
|
1930
|
-
value:
|
|
1910
|
+
value: function () {
|
|
1931
1911
|
var _FromConfigurationUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(_ref30) {
|
|
1932
1912
|
var configUrl, region, clientIP, trustAuthorityId, staticToken, _ref30$ethereumContra, ethereumContractTimeout, _ref30$noCache, noCache, _ref30$noAuth, noAuth, _ref30$assumeV, assumeV3, _yield$ElvClient$Conf3, contentSpaceId, networkId, networkName, fabricURIs, ethereumURIs, authServiceURIs, searchURIs, fabricVersion, client;
|
|
1933
1913
|
return _regeneratorRuntime.wrap(function _callee27$(_context27) {
|
|
@@ -1980,8 +1960,9 @@ var ElvClient = /*#__PURE__*/function () {
|
|
|
1980
1960
|
return _FromConfigurationUrl.apply(this, arguments);
|
|
1981
1961
|
}
|
|
1982
1962
|
return FromConfigurationUrl;
|
|
1983
|
-
}()
|
|
1963
|
+
}()
|
|
1984
1964
|
}]);
|
|
1965
|
+
return ElvClient;
|
|
1985
1966
|
}();
|
|
1986
1967
|
Object.assign(ElvClient.prototype, require("./client/AccessGroups"));
|
|
1987
1968
|
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;
|