@orderly.network/core 0.1.27-alpha.13 → 0.1.27-alpha.15
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
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
|
-
|
|
73
|
+
type MessageFactor = {
|
|
74
74
|
url: string;
|
|
75
75
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
76
76
|
data?: any;
|
|
77
77
|
};
|
|
78
|
-
|
|
78
|
+
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
|
-
|
|
116
|
+
type ConfigKey = "apiBaseUrl" | "klineDataUrl" | "privateWsUrl" | "publicWsUrl" | "operatorUrl" | "swapSupportApiUrl" | "domain" | "brokerId" | "networkId" | "env" | "PROD_URL" | "markets";
|
|
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
|
-
|
|
140
|
+
type SignatureDomain = {
|
|
141
141
|
name: string;
|
|
142
142
|
version: string;
|
|
143
143
|
chainId: number;
|
|
@@ -177,14 +177,14 @@ declare namespace utils {
|
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
declare const getMockSigner: (secretKey?: string
|
|
180
|
+
declare const getMockSigner: (secretKey?: string) => BaseSigner;
|
|
181
181
|
declare const getDefaultSigner: () => BaseSigner;
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
184
|
* Orderly contracts information
|
|
185
185
|
* https://wootraders.atlassian.net/wiki/spaces/ORDER/pages/343441906/Orderly+V2+Contract+Information+Board
|
|
186
186
|
*/
|
|
187
|
-
|
|
187
|
+
type OrderlyContracts = {
|
|
188
188
|
usdcAddress: string;
|
|
189
189
|
usdcAbi: any;
|
|
190
190
|
erc20Abi: any;
|
|
@@ -378,14 +378,14 @@ interface IWalletAdapter {
|
|
|
378
378
|
on(eventName: any, listener: any): void;
|
|
379
379
|
off(eventName: any, listener: any): void;
|
|
380
380
|
}
|
|
381
|
-
|
|
381
|
+
type WalletAdapterOptions = {
|
|
382
382
|
provider: any;
|
|
383
383
|
address: string;
|
|
384
384
|
chain: {
|
|
385
385
|
id: number;
|
|
386
386
|
};
|
|
387
387
|
};
|
|
388
|
-
|
|
388
|
+
type getWalletAdapterFunc = (options: WalletAdapterOptions) => IWalletAdapter;
|
|
389
389
|
|
|
390
390
|
declare class Assets {
|
|
391
391
|
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
|
-
|
|
73
|
+
type MessageFactor = {
|
|
74
74
|
url: string;
|
|
75
75
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
76
76
|
data?: any;
|
|
77
77
|
};
|
|
78
|
-
|
|
78
|
+
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
|
-
|
|
116
|
+
type ConfigKey = "apiBaseUrl" | "klineDataUrl" | "privateWsUrl" | "publicWsUrl" | "operatorUrl" | "swapSupportApiUrl" | "domain" | "brokerId" | "networkId" | "env" | "PROD_URL" | "markets";
|
|
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
|
-
|
|
140
|
+
type SignatureDomain = {
|
|
141
141
|
name: string;
|
|
142
142
|
version: string;
|
|
143
143
|
chainId: number;
|
|
@@ -177,14 +177,14 @@ declare namespace utils {
|
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
declare const getMockSigner: (secretKey?: string
|
|
180
|
+
declare const getMockSigner: (secretKey?: string) => BaseSigner;
|
|
181
181
|
declare const getDefaultSigner: () => BaseSigner;
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
184
|
* Orderly contracts information
|
|
185
185
|
* https://wootraders.atlassian.net/wiki/spaces/ORDER/pages/343441906/Orderly+V2+Contract+Information+Board
|
|
186
186
|
*/
|
|
187
|
-
|
|
187
|
+
type OrderlyContracts = {
|
|
188
188
|
usdcAddress: string;
|
|
189
189
|
usdcAbi: any;
|
|
190
190
|
erc20Abi: any;
|
|
@@ -378,14 +378,14 @@ interface IWalletAdapter {
|
|
|
378
378
|
on(eventName: any, listener: any): void;
|
|
379
379
|
off(eventName: any, listener: any): void;
|
|
380
380
|
}
|
|
381
|
-
|
|
381
|
+
type WalletAdapterOptions = {
|
|
382
382
|
provider: any;
|
|
383
383
|
address: string;
|
|
384
384
|
chain: {
|
|
385
385
|
id: number;
|
|
386
386
|
};
|
|
387
387
|
};
|
|
388
|
-
|
|
388
|
+
type getWalletAdapterFunc = (options: WalletAdapterOptions) => IWalletAdapter;
|
|
389
389
|
|
|
390
390
|
declare class Assets {
|
|
391
391
|
private readonly configStore;
|