@audius/sdk 0.0.1 → 0.0.2
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/browser.js +11 -13
- package/dist/browser.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +24 -79
- package/dist/index.js.map +1 -1
- package/dist/legacy.d.ts +3 -3
- package/dist/legacy.js +24 -79
- package/dist/legacy.js.map +1 -1
- package/dist/types.d.ts +3 -3
- package/examples/initAudiusLibs.js +3 -4
- package/examples/initializeVersions.js +21 -9
- package/initScripts/mainnet.js +37 -14
- package/package.json +1 -1
- package/src/libs.js +20 -71
- package/src/sdk/oauth/Oauth.ts +3 -3
- package/src/sdk/sdk.ts +2 -2
- package/src/services/ethWeb3Manager/EthWeb3Manager.ts +7 -9
- package/tests/governanceTest.js +1 -1
- package/tests/helpers.js +1 -1
- package/tests/providerSelectionTest.js +3 -3
- package/tests/stakingTest.js +1 -1
package/dist/browser.js
CHANGED
|
@@ -89171,17 +89171,16 @@ var EthWeb3Manager = /*#__PURE__*/function () {
|
|
|
89171
89171
|
this.web3Config = web3Config;
|
|
89172
89172
|
this.web3 = new web3(provider);
|
|
89173
89173
|
this.identityService = identityService;
|
|
89174
|
-
this.hedgehog = hedgehog;
|
|
89174
|
+
this.hedgehog = hedgehog;
|
|
89175
89175
|
|
|
89176
|
-
if (this.
|
|
89177
|
-
|
|
89178
|
-
|
|
89179
|
-
|
|
89180
|
-
|
|
89176
|
+
if (this.web3Config.ownerWallet) {
|
|
89177
|
+
this.ownerWallet = this.web3Config.ownerWallet;
|
|
89178
|
+
} else if (this.hedgehog) {
|
|
89179
|
+
// Hedgehog might not exist (in the case of @audius/sdk)
|
|
89180
|
+
var storedWallet = this.hedgehog.getWallet();
|
|
89181
89181
|
|
|
89182
|
-
|
|
89183
|
-
|
|
89184
|
-
}
|
|
89182
|
+
if (storedWallet) {
|
|
89183
|
+
this.ownerWallet = storedWallet;
|
|
89185
89184
|
}
|
|
89186
89185
|
}
|
|
89187
89186
|
}
|
|
@@ -90933,7 +90932,7 @@ var Oauth = /*#__PURE__*/function () {
|
|
|
90933
90932
|
}
|
|
90934
90933
|
|
|
90935
90934
|
this.discoveryProvider = discoveryProvider;
|
|
90936
|
-
this.appName = appName
|
|
90935
|
+
this.appName = appName;
|
|
90937
90936
|
this.activePopupWindow = null;
|
|
90938
90937
|
this.loginSuccessCallback = null;
|
|
90939
90938
|
this.loginErrorCallback = null;
|
|
@@ -91165,13 +91164,12 @@ var sdk = /*#__PURE__*/function () {
|
|
|
91165
91164
|
var _ref = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee(config) {
|
|
91166
91165
|
var _ethWeb3Config$provid;
|
|
91167
91166
|
|
|
91168
|
-
var
|
|
91169
|
-
|
|
91167
|
+
var appName, discoveryNodeConfig, ethContractsConfig, ethWeb3Config, identityServiceConfig, userStateManager, identityService, ethWeb3Manager, ethContracts, discoveryNode, oauth;
|
|
91170
91168
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
91171
91169
|
while (1) {
|
|
91172
91170
|
switch (_context.prev = _context.next) {
|
|
91173
91171
|
case 0:
|
|
91174
|
-
|
|
91172
|
+
appName = config.appName, discoveryNodeConfig = config.discoveryNodeConfig, ethContractsConfig = config.ethContractsConfig, ethWeb3Config = config.ethWeb3Config, identityServiceConfig = config.identityServiceConfig;
|
|
91175
91173
|
/** Initialize services */
|
|
91176
91174
|
|
|
91177
91175
|
userStateManager = new UserStateManager();
|