@orderly.network/core 0.1.24-alpha.8 → 0.1.24
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/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -70,12 +70,12 @@ declare class MockKeyStore implements OrderlyKeyStore {
|
|
|
70
70
|
cleanKey(key: string): void;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
type MessageFactor = {
|
|
73
|
+
declare type MessageFactor = {
|
|
74
74
|
url: string;
|
|
75
75
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
76
76
|
data?: any;
|
|
77
77
|
};
|
|
78
|
-
type SignedMessagePayload = {
|
|
78
|
+
declare type SignedMessagePayload = {
|
|
79
79
|
"orderly-key": string;
|
|
80
80
|
"orderly-timestamp": string;
|
|
81
81
|
"orderly-signature": string;
|
|
@@ -113,7 +113,7 @@ declare class BaseSigner implements Signer {
|
|
|
113
113
|
}>;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
type ConfigKey = "apiBaseUrl" | "klineDataUrl" | "privateWsUrl" | "publicWsUrl" | "operatorUrl" | "swapSupportApiUrl" | "domain" | "brokerId" | "networkId" | "env" | "PROD_URL";
|
|
116
|
+
declare type ConfigKey = "apiBaseUrl" | "klineDataUrl" | "privateWsUrl" | "publicWsUrl" | "operatorUrl" | "swapSupportApiUrl" | "domain" | "brokerId" | "networkId" | "env" | "PROD_URL";
|
|
117
117
|
interface ConfigStore {
|
|
118
118
|
get<T>(key: ConfigKey): T;
|
|
119
119
|
getOr<T>(key: ConfigKey, defaultValue: T): T;
|
|
@@ -137,7 +137,7 @@ declare class BaseConfigStore extends MemoryConfigStore {
|
|
|
137
137
|
constructor(configMap: Record<string, any>);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
type SignatureDomain = {
|
|
140
|
+
declare type SignatureDomain = {
|
|
141
141
|
name: string;
|
|
142
142
|
version: string;
|
|
143
143
|
chainId: number;
|
|
@@ -171,14 +171,14 @@ declare namespace utils {
|
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
declare const getMockSigner: (secretKey?: string) => BaseSigner;
|
|
174
|
+
declare const getMockSigner: (secretKey?: string | undefined) => BaseSigner;
|
|
175
175
|
declare const getDefaultSigner: () => BaseSigner;
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
178
|
* Orderly contracts information
|
|
179
179
|
* https://wootraders.atlassian.net/wiki/spaces/ORDER/pages/343441906/Orderly+V2+Contract+Information+Board
|
|
180
180
|
*/
|
|
181
|
-
type OrderlyContracts = {
|
|
181
|
+
declare type OrderlyContracts = {
|
|
182
182
|
usdcAddress: string;
|
|
183
183
|
usdcAbi: any;
|
|
184
184
|
erc20Abi: any;
|
|
@@ -380,14 +380,14 @@ interface IWalletAdapter {
|
|
|
380
380
|
on(eventName: any, listener: any): void;
|
|
381
381
|
off(eventName: any, listener: any): void;
|
|
382
382
|
}
|
|
383
|
-
type WalletAdapterOptions = {
|
|
383
|
+
declare type WalletAdapterOptions = {
|
|
384
384
|
provider: any;
|
|
385
385
|
address: string;
|
|
386
386
|
chain: {
|
|
387
387
|
id: string;
|
|
388
388
|
};
|
|
389
389
|
};
|
|
390
|
-
type getWalletAdapterFunc = (options: WalletAdapterOptions) => IWalletAdapter;
|
|
390
|
+
declare type getWalletAdapterFunc = (options: WalletAdapterOptions) => IWalletAdapter;
|
|
391
391
|
|
|
392
392
|
declare class Assets {
|
|
393
393
|
private readonly configStore;
|
package/dist/index.d.ts
CHANGED
|
@@ -70,12 +70,12 @@ declare class MockKeyStore implements OrderlyKeyStore {
|
|
|
70
70
|
cleanKey(key: string): void;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
type MessageFactor = {
|
|
73
|
+
declare type MessageFactor = {
|
|
74
74
|
url: string;
|
|
75
75
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
76
76
|
data?: any;
|
|
77
77
|
};
|
|
78
|
-
type SignedMessagePayload = {
|
|
78
|
+
declare type SignedMessagePayload = {
|
|
79
79
|
"orderly-key": string;
|
|
80
80
|
"orderly-timestamp": string;
|
|
81
81
|
"orderly-signature": string;
|
|
@@ -113,7 +113,7 @@ declare class BaseSigner implements Signer {
|
|
|
113
113
|
}>;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
type ConfigKey = "apiBaseUrl" | "klineDataUrl" | "privateWsUrl" | "publicWsUrl" | "operatorUrl" | "swapSupportApiUrl" | "domain" | "brokerId" | "networkId" | "env" | "PROD_URL";
|
|
116
|
+
declare type ConfigKey = "apiBaseUrl" | "klineDataUrl" | "privateWsUrl" | "publicWsUrl" | "operatorUrl" | "swapSupportApiUrl" | "domain" | "brokerId" | "networkId" | "env" | "PROD_URL";
|
|
117
117
|
interface ConfigStore {
|
|
118
118
|
get<T>(key: ConfigKey): T;
|
|
119
119
|
getOr<T>(key: ConfigKey, defaultValue: T): T;
|
|
@@ -137,7 +137,7 @@ declare class BaseConfigStore extends MemoryConfigStore {
|
|
|
137
137
|
constructor(configMap: Record<string, any>);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
type SignatureDomain = {
|
|
140
|
+
declare type SignatureDomain = {
|
|
141
141
|
name: string;
|
|
142
142
|
version: string;
|
|
143
143
|
chainId: number;
|
|
@@ -171,14 +171,14 @@ declare namespace utils {
|
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
declare const getMockSigner: (secretKey?: string) => BaseSigner;
|
|
174
|
+
declare const getMockSigner: (secretKey?: string | undefined) => BaseSigner;
|
|
175
175
|
declare const getDefaultSigner: () => BaseSigner;
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
178
|
* Orderly contracts information
|
|
179
179
|
* https://wootraders.atlassian.net/wiki/spaces/ORDER/pages/343441906/Orderly+V2+Contract+Information+Board
|
|
180
180
|
*/
|
|
181
|
-
type OrderlyContracts = {
|
|
181
|
+
declare type OrderlyContracts = {
|
|
182
182
|
usdcAddress: string;
|
|
183
183
|
usdcAbi: any;
|
|
184
184
|
erc20Abi: any;
|
|
@@ -380,14 +380,14 @@ interface IWalletAdapter {
|
|
|
380
380
|
on(eventName: any, listener: any): void;
|
|
381
381
|
off(eventName: any, listener: any): void;
|
|
382
382
|
}
|
|
383
|
-
type WalletAdapterOptions = {
|
|
383
|
+
declare type WalletAdapterOptions = {
|
|
384
384
|
provider: any;
|
|
385
385
|
address: string;
|
|
386
386
|
chain: {
|
|
387
387
|
id: string;
|
|
388
388
|
};
|
|
389
389
|
};
|
|
390
|
-
type getWalletAdapterFunc = (options: WalletAdapterOptions) => IWalletAdapter;
|
|
390
|
+
declare type getWalletAdapterFunc = (options: WalletAdapterOptions) => IWalletAdapter;
|
|
391
391
|
|
|
392
392
|
declare class Assets {
|
|
393
393
|
private readonly configStore;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orderly.network/core",
|
|
3
|
-
"version": "0.1.24
|
|
3
|
+
"version": "0.1.24",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"eventemitter3": "^5.0.1",
|
|
17
17
|
"lodash.merge": "^4.6.2",
|
|
18
18
|
"typescript": "^5.1.6",
|
|
19
|
-
"@orderly.network/types": "0.1.24
|
|
19
|
+
"@orderly.network/types": "0.1.24"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@babel/core": "^7.22.9",
|