@xoxno/sdk-js 1.0.39 → 1.0.40
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/README.md +2 -4
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/interactor.cjs.js +1 -1
- package/dist/interactor.esm.js +1 -1
- package/dist/utils/api.d.ts +3 -8
- package/package.json +1 -1
package/dist/utils/api.d.ts
CHANGED
|
@@ -4,9 +4,7 @@ export declare enum Chain {
|
|
|
4
4
|
DEVNET = "D"
|
|
5
5
|
}
|
|
6
6
|
export declare class XOXNOClient {
|
|
7
|
-
private static instance;
|
|
8
7
|
apiUrl: string;
|
|
9
|
-
private apiKey;
|
|
10
8
|
chain: IChainID;
|
|
11
9
|
config: {
|
|
12
10
|
mediaUrl: string;
|
|
@@ -19,13 +17,10 @@ export declare class XOXNOClient {
|
|
|
19
17
|
Manager_SC: string;
|
|
20
18
|
P2P_SC: string;
|
|
21
19
|
};
|
|
22
|
-
|
|
23
|
-
static init({ apiUrl, apiKey, chain, }?: Partial<{
|
|
24
|
-
apiUrl?: string;
|
|
25
|
-
apiKey?: string;
|
|
20
|
+
constructor({ chain, apiUrl, }?: {
|
|
26
21
|
chain?: Chain;
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
apiUrl?: string;
|
|
23
|
+
});
|
|
29
24
|
fetchWithTimeout: <T>(path: string, { params, ...options }?: RequestInit & {
|
|
30
25
|
params?: Record<string, any>;
|
|
31
26
|
}) => Promise<T>;
|