@audius/sdk 1.0.11 → 1.0.12
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/NativeAudiusLibs.d.ts +6 -3
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/legacy.js +3 -3
- package/dist/legacy.js.map +1 -1
- package/dist/native-libs.js +181 -13
- package/dist/native-libs.js.map +1 -1
- package/dist/services/wormhole/ProxyWormhole.d.ts +31 -0
- package/dist/services/wormhole/Wormhole.d.ts +1 -1
- package/dist/services/wormhole/index.d.ts +1 -0
- package/package.json +2 -2
- package/src/NativeAudiusLibs.ts +27 -4
- package/src/services/wormhole/ProxyWormhole.ts +118 -0
- package/src/services/wormhole/Wormhole.ts +1 -1
- package/src/services/wormhole/index.ts +1 -0
|
@@ -25,6 +25,7 @@ import { File } from './api/File';
|
|
|
25
25
|
import { ServiceProvider } from './api/ServiceProvider';
|
|
26
26
|
import type { MonitoringCallbacks } from './services/types';
|
|
27
27
|
import { EntityManager } from './api/entityManager';
|
|
28
|
+
import { ProxyWormhole, ProxyWormholeConfig } from './services/wormhole/ProxyWormhole';
|
|
28
29
|
declare type LibsIdentityServiceConfig = {
|
|
29
30
|
url: string;
|
|
30
31
|
useHedgehogLocalStorage: boolean;
|
|
@@ -45,6 +46,7 @@ declare type AudiusLibsConfig = {
|
|
|
45
46
|
discoveryProviderConfig: LibsDiscoveryProviderConfig;
|
|
46
47
|
creatorNodeConfig: CreatorNodeConfig;
|
|
47
48
|
comstockConfig: LibsComstockConfig;
|
|
49
|
+
wormholeConfig: ProxyWormholeConfig;
|
|
48
50
|
captchaConfig: CaptchaConfig;
|
|
49
51
|
hedgehogConfig: LibsHedgehogConfig;
|
|
50
52
|
isServer: boolean;
|
|
@@ -112,8 +114,7 @@ export declare class AudiusLibs {
|
|
|
112
114
|
wormholeContractAddress: string | undefined;
|
|
113
115
|
};
|
|
114
116
|
/**
|
|
115
|
-
* Configures wormhole
|
|
116
|
-
* This is a stubbed version for native
|
|
117
|
+
* Configures proxy-only wormhole
|
|
117
118
|
*/
|
|
118
119
|
static configWormhole(): {};
|
|
119
120
|
/**
|
|
@@ -133,6 +134,7 @@ export declare class AudiusLibs {
|
|
|
133
134
|
creatorNodeConfig: CreatorNodeConfig;
|
|
134
135
|
discoveryProviderConfig: LibsDiscoveryProviderConfig;
|
|
135
136
|
comstockConfig: LibsComstockConfig;
|
|
137
|
+
wormholeConfig: ProxyWormholeConfig;
|
|
136
138
|
captchaConfig: CaptchaConfig;
|
|
137
139
|
hedgehogConfig: LibsHedgehogConfig;
|
|
138
140
|
isServer: boolean;
|
|
@@ -147,6 +149,7 @@ export declare class AudiusLibs {
|
|
|
147
149
|
web3Manager: Nullable<Web3Manager>;
|
|
148
150
|
solanaWeb3Manager: Nullable<SolanaWeb3Manager>;
|
|
149
151
|
contracts: Nullable<AudiusContracts>;
|
|
152
|
+
wormholeClient: Nullable<ProxyWormhole>;
|
|
150
153
|
creatorNode: Nullable<CreatorNode>;
|
|
151
154
|
captcha: Nullable<Captcha>;
|
|
152
155
|
schemas?: Schemas;
|
|
@@ -173,7 +176,7 @@ export declare class AudiusLibs {
|
|
|
173
176
|
* })
|
|
174
177
|
* await audius.init()
|
|
175
178
|
*/
|
|
176
|
-
constructor({ web3Config, ethWeb3Config, solanaWeb3Config, identityServiceConfig, discoveryProviderConfig, creatorNodeConfig, comstockConfig, captchaConfig, hedgehogConfig, isServer, logger, isDebug, preferHigherPatchForPrimary, preferHigherPatchForSecondaries, localStorage }: AudiusLibsConfig);
|
|
179
|
+
constructor({ web3Config, ethWeb3Config, solanaWeb3Config, identityServiceConfig, discoveryProviderConfig, creatorNodeConfig, comstockConfig, wormholeConfig, captchaConfig, hedgehogConfig, isServer, logger, isDebug, preferHigherPatchForPrimary, preferHigherPatchForSecondaries, localStorage }: AudiusLibsConfig);
|
|
177
180
|
/** Init services based on presence of a relevant config. */
|
|
178
181
|
init(): Promise<void>;
|
|
179
182
|
}
|
package/dist/index.cjs.js
CHANGED
|
@@ -34008,9 +34008,9 @@ var formatProviders = function formatProviders(providers) {
|
|
|
34008
34008
|
};
|
|
34009
34009
|
|
|
34010
34010
|
var name = "@audius/sdk";
|
|
34011
|
-
var version = "1.0.
|
|
34011
|
+
var version = "1.0.12";
|
|
34012
34012
|
var audius = {
|
|
34013
|
-
releaseSHA: "
|
|
34013
|
+
releaseSHA: "78388a5771c4a3dca52d6805824b8710b17bb280"
|
|
34014
34014
|
};
|
|
34015
34015
|
var description = "";
|
|
34016
34016
|
var main = "dist/index.cjs.js";
|
|
@@ -50548,7 +50548,7 @@ var CreatorNodeSelection = /*#__PURE__*/function (_ServiceSelection) {
|
|
|
50548
50548
|
return CreatorNodeSelection;
|
|
50549
50549
|
}(ServiceSelection);
|
|
50550
50550
|
|
|
50551
|
-
/** Singleton state-manager for
|
|
50551
|
+
/** Singleton state-manager for audius wormhole interaction */
|
|
50552
50552
|
|
|
50553
50553
|
var Wormhole = /*#__PURE__*/function () {
|
|
50554
50554
|
function Wormhole(hedgehog, ethWeb3Manager, ethContracts, identityService, solanaWeb3Manager, rpcHosts, solBridgeAddress, solTokenBridgeAddress, ethBridgeAddress, ethTokenBridgeAddress) {
|