lighter-sdk-client 0.2.28 → 0.2.32
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 +1 -1
- package/dist/api/info-private/withdraw-history.d.cts +1 -1
- package/dist/api/info-private/withdraw-history.d.ts +1 -1
- package/dist/{chunk-KPCLHPJO.cjs → chunk-735XIF4D.cjs} +1 -1
- package/dist/{chunk-24BJYHI5.cjs → chunk-AICHR6DJ.cjs} +2 -2
- package/dist/{chunk-4XX2BB5H.cjs → chunk-FRKA4OYG.cjs} +1 -1
- package/dist/{chunk-GZRGNJYF.js → chunk-HS2DGZQJ.js} +1 -1
- package/dist/{chunk-PANGEIBE.js → chunk-QGXOOY74.js} +1 -1
- package/dist/{chunk-QILV2ZMV.js → chunk-XW7ZQ4ZG.js} +2 -2
- package/dist/client/exchange-client.cjs +2 -2
- package/dist/client/exchange-client.js +1 -1
- package/dist/client/index.cjs +3 -3
- package/dist/client/index.js +2 -2
- package/dist/client/info-private-client.cjs +2 -2
- package/dist/client/info-private-client.d.cts +1 -1
- package/dist/client/info-private-client.d.ts +1 -1
- package/dist/client/info-private-client.js +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.js +7 -7
- package/dist/signing/index.cjs +2 -2
- package/dist/signing/index.js +1 -1
- package/dist/signing/wasm-signer.cjs +2 -2
- package/dist/signing/wasm-signer.d.cts +2 -2
- package/dist/signing/wasm-signer.d.ts +2 -2
- package/dist/signing/wasm-signer.js +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -198,7 +198,7 @@ const bridges = await client.getBridges({
|
|
|
198
198
|
});
|
|
199
199
|
|
|
200
200
|
// Get withdrawal history
|
|
201
|
-
const
|
|
201
|
+
const withdraws = await client.getWithdrawHistory({
|
|
202
202
|
account_index: 0,
|
|
203
203
|
l1_address: '0x...',
|
|
204
204
|
filter: 'completed'
|
|
@@ -19,7 +19,7 @@ interface WithdrawHistoryItem {
|
|
|
19
19
|
}
|
|
20
20
|
interface WithdrawHistoryResponse {
|
|
21
21
|
code: number;
|
|
22
|
-
|
|
22
|
+
withdraws: WithdrawHistoryItem[];
|
|
23
23
|
cursor?: string;
|
|
24
24
|
}
|
|
25
25
|
declare function getWithdrawHistory(client: AxiosInstance, params: WithdrawHistoryRequest, authorization?: string): Promise<WithdrawHistoryResponse>;
|
|
@@ -19,7 +19,7 @@ interface WithdrawHistoryItem {
|
|
|
19
19
|
}
|
|
20
20
|
interface WithdrawHistoryResponse {
|
|
21
21
|
code: number;
|
|
22
|
-
|
|
22
|
+
withdraws: WithdrawHistoryItem[];
|
|
23
23
|
cursor?: string;
|
|
24
24
|
}
|
|
25
25
|
declare function getWithdrawHistory(client: AxiosInstance, params: WithdrawHistoryRequest, authorization?: string): Promise<WithdrawHistoryResponse>;
|
|
@@ -198,7 +198,7 @@ var InfoPrivateClient = class {
|
|
|
198
198
|
* @returns List of withdrawals with status and timestamps
|
|
199
199
|
* @example
|
|
200
200
|
* ```typescript
|
|
201
|
-
* const
|
|
201
|
+
* const withdraws = await client.getWithdrawHistory({
|
|
202
202
|
* account_index: 0,
|
|
203
203
|
* l1_address: "0x...",
|
|
204
204
|
* filter: "completed"
|
|
@@ -83,11 +83,11 @@ var WasmSigner = class {
|
|
|
83
83
|
}
|
|
84
84
|
return window.SignTransfer(toAccountIndex, assetIndex, fromRouterType, toRouterType, amount, usdcFee, memo, nonce, this.apiKeyIndex, this.accountIndex);
|
|
85
85
|
}
|
|
86
|
-
signWithdraw(usdcAmount, nonce) {
|
|
86
|
+
signWithdraw(assetIndex, usdcAmount, nonce) {
|
|
87
87
|
if (!window.SignWithdraw) {
|
|
88
88
|
throw new Error("WASM not initialized. Call initialize() first.");
|
|
89
89
|
}
|
|
90
|
-
return window.SignWithdraw(usdcAmount, nonce, this.apiKeyIndex, this.accountIndex);
|
|
90
|
+
return window.SignWithdraw(assetIndex, 0, usdcAmount, nonce, this.apiKeyIndex, this.accountIndex);
|
|
91
91
|
}
|
|
92
92
|
signUpdateLeverage(marketIndex, fraction, marginMode, nonce) {
|
|
93
93
|
if (!window.SignUpdateLeverage) {
|
|
@@ -193,7 +193,7 @@ var ExchangeClient = class {
|
|
|
193
193
|
if (!this.wasmSigning) {
|
|
194
194
|
throw new Error("WasmSigning not configured. Please provide wasmSigning in ExchangeClientConfig.");
|
|
195
195
|
}
|
|
196
|
-
const txResponse = this.wasmSigning.signWithdraw(params.usdcAmount, params.nonce);
|
|
196
|
+
const txResponse = this.wasmSigning.signWithdraw(3, params.usdcAmount, params.nonce);
|
|
197
197
|
if (txResponse.error) {
|
|
198
198
|
throw new Error(`Failed to sign withdraw: ${txResponse.error}`);
|
|
199
199
|
}
|
|
@@ -198,7 +198,7 @@ var InfoPrivateClient = class {
|
|
|
198
198
|
* @returns List of withdrawals with status and timestamps
|
|
199
199
|
* @example
|
|
200
200
|
* ```typescript
|
|
201
|
-
* const
|
|
201
|
+
* const withdraws = await client.getWithdrawHistory({
|
|
202
202
|
* account_index: 0,
|
|
203
203
|
* l1_address: "0x...",
|
|
204
204
|
* filter: "completed"
|
|
@@ -193,7 +193,7 @@ var ExchangeClient = class {
|
|
|
193
193
|
if (!this.wasmSigning) {
|
|
194
194
|
throw new Error("WasmSigning not configured. Please provide wasmSigning in ExchangeClientConfig.");
|
|
195
195
|
}
|
|
196
|
-
const txResponse = this.wasmSigning.signWithdraw(params.usdcAmount, params.nonce);
|
|
196
|
+
const txResponse = this.wasmSigning.signWithdraw(3, params.usdcAmount, params.nonce);
|
|
197
197
|
if (txResponse.error) {
|
|
198
198
|
throw new Error(`Failed to sign withdraw: ${txResponse.error}`);
|
|
199
199
|
}
|
|
@@ -83,11 +83,11 @@ var WasmSigner = class {
|
|
|
83
83
|
}
|
|
84
84
|
return window.SignTransfer(toAccountIndex, assetIndex, fromRouterType, toRouterType, amount, usdcFee, memo, nonce, this.apiKeyIndex, this.accountIndex);
|
|
85
85
|
}
|
|
86
|
-
signWithdraw(usdcAmount, nonce) {
|
|
86
|
+
signWithdraw(assetIndex, usdcAmount, nonce) {
|
|
87
87
|
if (!window.SignWithdraw) {
|
|
88
88
|
throw new Error("WASM not initialized. Call initialize() first.");
|
|
89
89
|
}
|
|
90
|
-
return window.SignWithdraw(usdcAmount, nonce, this.apiKeyIndex, this.accountIndex);
|
|
90
|
+
return window.SignWithdraw(assetIndex, 0, usdcAmount, nonce, this.apiKeyIndex, this.accountIndex);
|
|
91
91
|
}
|
|
92
92
|
signUpdateLeverage(marketIndex, fraction, marginMode, nonce) {
|
|
93
93
|
if (!window.SignUpdateLeverage) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkFRKA4OYGcjs = require('../chunk-FRKA4OYG.cjs');
|
|
4
4
|
require('../chunk-4JQWAMCD.cjs');
|
|
5
5
|
require('../chunk-3R4OL3TU.cjs');
|
|
6
6
|
require('../chunk-ZIMFMYT2.cjs');
|
|
@@ -12,4 +12,4 @@ require('../chunk-PF37LUXN.cjs');
|
|
|
12
12
|
require('../chunk-5JDRAN7L.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
exports.ExchangeClient =
|
|
15
|
+
exports.ExchangeClient = _chunkFRKA4OYGcjs.ExchangeClient;
|
package/dist/client/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-MAPH47LH.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkFRKA4OYGcjs = require('../chunk-FRKA4OYG.cjs');
|
|
5
5
|
require('../chunk-4JQWAMCD.cjs');
|
|
6
6
|
require('../chunk-3R4OL3TU.cjs');
|
|
7
7
|
require('../chunk-ZIMFMYT2.cjs');
|
|
@@ -37,7 +37,7 @@ require('../chunk-2R5COGAH.cjs');
|
|
|
37
37
|
require('../chunk-PP4Q2W66.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunk735XIF4Dcjs = require('../chunk-735XIF4D.cjs');
|
|
41
41
|
require('../chunk-KAD2P2GV.cjs');
|
|
42
42
|
require('../chunk-X7E6XJVQ.cjs');
|
|
43
43
|
require('../chunk-6LUEPRL7.cjs');
|
|
@@ -70,4 +70,4 @@ var _chunk6M6GRSDDcjs = require('../chunk-6M6GRSDD.cjs');
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
exports.ExchangeClient =
|
|
73
|
+
exports.ExchangeClient = _chunkFRKA4OYGcjs.ExchangeClient; exports.InfoClient = _chunkN3LABBAMcjs.InfoClient; exports.InfoPrivateClient = _chunk735XIF4Dcjs.InfoPrivateClient; exports.L1BridgeClient = _chunkL5SDFTHRcjs.L1BridgeClient; exports.WsClient = _chunk6M6GRSDDcjs.WsClient;
|
package/dist/client/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../chunk-JTP6DTDN.js";
|
|
2
2
|
import {
|
|
3
3
|
ExchangeClient
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-QGXOOY74.js";
|
|
5
5
|
import "../chunk-S4IHMH3J.js";
|
|
6
6
|
import "../chunk-FJJWUBKM.js";
|
|
7
7
|
import "../chunk-JNTYHWDJ.js";
|
|
@@ -37,7 +37,7 @@ import "../chunk-4VAZ7ZA2.js";
|
|
|
37
37
|
import "../chunk-472ULOSN.js";
|
|
38
38
|
import {
|
|
39
39
|
InfoPrivateClient
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-HS2DGZQJ.js";
|
|
41
41
|
import "../chunk-UONA2XN2.js";
|
|
42
42
|
import "../chunk-O3PA6HV2.js";
|
|
43
43
|
import "../chunk-W5VY4TWP.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk735XIF4Dcjs = require('../chunk-735XIF4D.cjs');
|
|
4
4
|
require('../chunk-KAD2P2GV.cjs');
|
|
5
5
|
require('../chunk-X7E6XJVQ.cjs');
|
|
6
6
|
require('../chunk-6LUEPRL7.cjs');
|
|
@@ -23,4 +23,4 @@ require('../chunk-ZJVQD6JD.cjs');
|
|
|
23
23
|
require('../chunk-IW5D24DG.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
exports.InfoPrivateClient =
|
|
26
|
+
exports.InfoPrivateClient = _chunk735XIF4Dcjs.InfoPrivateClient;
|
|
@@ -154,7 +154,7 @@ declare class InfoPrivateClient {
|
|
|
154
154
|
* @returns List of withdrawals with status and timestamps
|
|
155
155
|
* @example
|
|
156
156
|
* ```typescript
|
|
157
|
-
* const
|
|
157
|
+
* const withdraws = await client.getWithdrawHistory({
|
|
158
158
|
* account_index: 0,
|
|
159
159
|
* l1_address: "0x...",
|
|
160
160
|
* filter: "completed"
|
|
@@ -154,7 +154,7 @@ declare class InfoPrivateClient {
|
|
|
154
154
|
* @returns List of withdrawals with status and timestamps
|
|
155
155
|
* @example
|
|
156
156
|
* ```typescript
|
|
157
|
-
* const
|
|
157
|
+
* const withdraws = await client.getWithdrawHistory({
|
|
158
158
|
* account_index: 0,
|
|
159
159
|
* l1_address: "0x...",
|
|
160
160
|
* filter: "completed"
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-MOOGM3DW.cjs');
|
|
2
|
+
require('./chunk-VDBWTSBC.cjs');
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
|
|
@@ -74,14 +75,10 @@
|
|
|
74
75
|
|
|
75
76
|
var _chunkVWX5CLM4cjs = require('./chunk-VWX5CLM4.cjs');
|
|
76
77
|
require('./chunk-GEWTGUEG.cjs');
|
|
77
|
-
require('./chunk-W2BVNVOC.cjs');
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
var _chunk24BJYHI5cjs = require('./chunk-24BJYHI5.cjs');
|
|
81
78
|
require('./chunk-MAPH47LH.cjs');
|
|
82
79
|
|
|
83
80
|
|
|
84
|
-
var
|
|
81
|
+
var _chunkFRKA4OYGcjs = require('./chunk-FRKA4OYG.cjs');
|
|
85
82
|
require('./chunk-4JQWAMCD.cjs');
|
|
86
83
|
require('./chunk-3R4OL3TU.cjs');
|
|
87
84
|
require('./chunk-ZIMFMYT2.cjs');
|
|
@@ -117,7 +114,7 @@ require('./chunk-2R5COGAH.cjs');
|
|
|
117
114
|
require('./chunk-PP4Q2W66.cjs');
|
|
118
115
|
|
|
119
116
|
|
|
120
|
-
var
|
|
117
|
+
var _chunk735XIF4Dcjs = require('./chunk-735XIF4D.cjs');
|
|
121
118
|
require('./chunk-KAD2P2GV.cjs');
|
|
122
119
|
require('./chunk-X7E6XJVQ.cjs');
|
|
123
120
|
require('./chunk-6LUEPRL7.cjs');
|
|
@@ -144,7 +141,10 @@ var _chunkL5SDFTHRcjs = require('./chunk-L5SDFTHR.cjs');
|
|
|
144
141
|
|
|
145
142
|
|
|
146
143
|
var _chunk6M6GRSDDcjs = require('./chunk-6M6GRSDD.cjs');
|
|
147
|
-
require('./chunk-
|
|
144
|
+
require('./chunk-W2BVNVOC.cjs');
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
var _chunkAICHR6DJcjs = require('./chunk-AICHR6DJ.cjs');
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
|
|
@@ -224,4 +224,4 @@ require('./chunk-VDBWTSBC.cjs');
|
|
|
224
224
|
|
|
225
225
|
|
|
226
226
|
|
|
227
|
-
exports.ApiMaxOrderType = _chunkVWX5CLM4cjs.ApiMaxOrderType; exports.AssetMarginMode = _chunkVWX5CLM4cjs.AssetMarginMode; exports.AssetRouteType = _chunkVWX5CLM4cjs.AssetRouteType; exports.CancelAllOrdersTimeInForce = _chunkVWX5CLM4cjs.CancelAllOrdersTimeInForce; exports.ExchangeClient =
|
|
227
|
+
exports.ApiMaxOrderType = _chunkVWX5CLM4cjs.ApiMaxOrderType; exports.AssetMarginMode = _chunkVWX5CLM4cjs.AssetMarginMode; exports.AssetRouteType = _chunkVWX5CLM4cjs.AssetRouteType; exports.CancelAllOrdersTimeInForce = _chunkVWX5CLM4cjs.CancelAllOrdersTimeInForce; exports.ExchangeClient = _chunkFRKA4OYGcjs.ExchangeClient; exports.FeeTick = _chunkVWX5CLM4cjs.FeeTick; exports.GroupingType = _chunkVWX5CLM4cjs.GroupingType; exports.InfoClient = _chunkN3LABBAMcjs.InfoClient; exports.InfoPrivateClient = _chunk735XIF4Dcjs.InfoPrivateClient; exports.InitialPoolShareValue = _chunkVWX5CLM4cjs.InitialPoolShareValue; exports.L1BridgeClient = _chunkL5SDFTHRcjs.L1BridgeClient; exports.MarginFractionTick = _chunkVWX5CLM4cjs.MarginFractionTick; exports.MarginUpdateDirection = _chunkVWX5CLM4cjs.MarginUpdateDirection; exports.MaxAccountIndex = _chunkVWX5CLM4cjs.MaxAccountIndex; exports.MaxApiKeyIndex = _chunkVWX5CLM4cjs.MaxApiKeyIndex; exports.MaxAssetIndex = _chunkVWX5CLM4cjs.MaxAssetIndex; exports.MaxBurntShareUSDCValue = _chunkVWX5CLM4cjs.MaxBurntShareUSDCValue; exports.MaxClientOrderIndex = _chunkVWX5CLM4cjs.MaxClientOrderIndex; exports.MaxExchangeUSDC = _chunkVWX5CLM4cjs.MaxExchangeUSDC; exports.MaxGroupedOrderCount = _chunkVWX5CLM4cjs.MaxGroupedOrderCount; exports.MaxInitialTotalShares = _chunkVWX5CLM4cjs.MaxInitialTotalShares; exports.MaxInvestedPublicPoolCount = _chunkVWX5CLM4cjs.MaxInvestedPublicPoolCount; exports.MaxMasterAccountIndex = _chunkVWX5CLM4cjs.MaxMasterAccountIndex; exports.MaxOrderBaseAmount = _chunkVWX5CLM4cjs.MaxOrderBaseAmount; exports.MaxOrderCancelAllPeriod = _chunkVWX5CLM4cjs.MaxOrderCancelAllPeriod; exports.MaxOrderExpiry = _chunkVWX5CLM4cjs.MaxOrderExpiry; exports.MaxOrderExpiryPeriod = _chunkVWX5CLM4cjs.MaxOrderExpiryPeriod; exports.MaxOrderIndex = _chunkVWX5CLM4cjs.MaxOrderIndex; exports.MaxOrderNonce = _chunkVWX5CLM4cjs.MaxOrderNonce; exports.MaxOrderPrice = _chunkVWX5CLM4cjs.MaxOrderPrice; exports.MaxOrderTriggerPrice = _chunkVWX5CLM4cjs.MaxOrderTriggerPrice; exports.MaxPerpsMarketIndex = _chunkVWX5CLM4cjs.MaxPerpsMarketIndex; exports.MaxPoolEntryUSDC = _chunkVWX5CLM4cjs.MaxPoolEntryUSDC; exports.MaxPoolShares = _chunkVWX5CLM4cjs.MaxPoolShares; exports.MaxPoolSharesToMintOrBurn = _chunkVWX5CLM4cjs.MaxPoolSharesToMintOrBurn; exports.MaxSpotMarketIndex = _chunkVWX5CLM4cjs.MaxSpotMarketIndex; exports.MaxTimestamp = _chunkVWX5CLM4cjs.MaxTimestamp; exports.MaxTransferAmount = _chunkVWX5CLM4cjs.MaxTransferAmount; exports.MaxWithdrawalAmount = _chunkVWX5CLM4cjs.MaxWithdrawalAmount; exports.MinAccountIndex = _chunkVWX5CLM4cjs.MinAccountIndex; exports.MinApiKeyIndex = _chunkVWX5CLM4cjs.MinApiKeyIndex; exports.MinAssetIndex = _chunkVWX5CLM4cjs.MinAssetIndex; exports.MinClientOrderIndex = _chunkVWX5CLM4cjs.MinClientOrderIndex; exports.MinInitialTotalShares = _chunkVWX5CLM4cjs.MinInitialTotalShares; exports.MinMarketIndex = _chunkVWX5CLM4cjs.MinMarketIndex; exports.MinNonce = _chunkVWX5CLM4cjs.MinNonce; exports.MinOrderBaseAmount = _chunkVWX5CLM4cjs.MinOrderBaseAmount; exports.MinOrderCancelAllPeriod = _chunkVWX5CLM4cjs.MinOrderCancelAllPeriod; exports.MinOrderExpiry = _chunkVWX5CLM4cjs.MinOrderExpiry; exports.MinOrderExpiryPeriod = _chunkVWX5CLM4cjs.MinOrderExpiryPeriod; exports.MinOrderIndex = _chunkVWX5CLM4cjs.MinOrderIndex; exports.MinOrderNonce = _chunkVWX5CLM4cjs.MinOrderNonce; exports.MinOrderPrice = _chunkVWX5CLM4cjs.MinOrderPrice; exports.MinOrderTriggerPrice = _chunkVWX5CLM4cjs.MinOrderTriggerPrice; exports.MinPerpsMarketIndex = _chunkVWX5CLM4cjs.MinPerpsMarketIndex; exports.MinPoolSharesToMintOrBurn = _chunkVWX5CLM4cjs.MinPoolSharesToMintOrBurn; exports.MinSpotMarketIndex = _chunkVWX5CLM4cjs.MinSpotMarketIndex; exports.MinSubAccountIndex = _chunkVWX5CLM4cjs.MinSubAccountIndex; exports.MinTransferAmount = _chunkVWX5CLM4cjs.MinTransferAmount; exports.MinWithdrawalAmount = _chunkVWX5CLM4cjs.MinWithdrawalAmount; exports.NativeAssetIndex = _chunkVWX5CLM4cjs.NativeAssetIndex; exports.NilAssetIndex = _chunkVWX5CLM4cjs.NilAssetIndex; exports.NilClientOrderIndex = _chunkVWX5CLM4cjs.NilClientOrderIndex; exports.NilMarketIndex = _chunkVWX5CLM4cjs.NilMarketIndex; exports.NilOrderBaseAmount = _chunkVWX5CLM4cjs.NilOrderBaseAmount; exports.NilOrderExpiry = _chunkVWX5CLM4cjs.NilOrderExpiry; exports.NilOrderIndex = _chunkVWX5CLM4cjs.NilOrderIndex; exports.NilOrderPrice = _chunkVWX5CLM4cjs.NilOrderPrice; exports.NilOrderTriggerPrice = _chunkVWX5CLM4cjs.NilOrderTriggerPrice; exports.OneUSDC = _chunkVWX5CLM4cjs.OneUSDC; exports.OrderTimeInForce = _chunkVWX5CLM4cjs.OrderTimeInForce; exports.OrderType = _chunkVWX5CLM4cjs.OrderType; exports.PositionMarginMode = _chunkVWX5CLM4cjs.PositionMarginMode; exports.ShareTick = _chunkVWX5CLM4cjs.ShareTick; exports.TxType = _chunkVWX5CLM4cjs.TxType; exports.USDCAssetIndex = _chunkVWX5CLM4cjs.USDCAssetIndex; exports.WasmSigner = _chunkAICHR6DJcjs.WasmSigner; exports.WsClient = _chunk6M6GRSDDcjs.WsClient;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "./chunk-LXNCAKJZ.js";
|
|
2
|
+
import "./chunk-NSFKW27X.js";
|
|
2
3
|
import {
|
|
3
4
|
ApiMaxOrderType,
|
|
4
5
|
AssetMarginMode,
|
|
@@ -74,14 +75,10 @@ import {
|
|
|
74
75
|
USDCAssetIndex
|
|
75
76
|
} from "./chunk-4UDAN2FX.js";
|
|
76
77
|
import "./chunk-C7OTZCGC.js";
|
|
77
|
-
import "./chunk-3SKO62BC.js";
|
|
78
|
-
import {
|
|
79
|
-
WasmSigner
|
|
80
|
-
} from "./chunk-QILV2ZMV.js";
|
|
81
78
|
import "./chunk-JTP6DTDN.js";
|
|
82
79
|
import {
|
|
83
80
|
ExchangeClient
|
|
84
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-QGXOOY74.js";
|
|
85
82
|
import "./chunk-S4IHMH3J.js";
|
|
86
83
|
import "./chunk-FJJWUBKM.js";
|
|
87
84
|
import "./chunk-JNTYHWDJ.js";
|
|
@@ -117,7 +114,7 @@ import "./chunk-4VAZ7ZA2.js";
|
|
|
117
114
|
import "./chunk-472ULOSN.js";
|
|
118
115
|
import {
|
|
119
116
|
InfoPrivateClient
|
|
120
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-HS2DGZQJ.js";
|
|
121
118
|
import "./chunk-UONA2XN2.js";
|
|
122
119
|
import "./chunk-O3PA6HV2.js";
|
|
123
120
|
import "./chunk-W5VY4TWP.js";
|
|
@@ -144,7 +141,10 @@ import {
|
|
|
144
141
|
import {
|
|
145
142
|
WsClient
|
|
146
143
|
} from "./chunk-6NEX2QS6.js";
|
|
147
|
-
import "./chunk-
|
|
144
|
+
import "./chunk-3SKO62BC.js";
|
|
145
|
+
import {
|
|
146
|
+
WasmSigner
|
|
147
|
+
} from "./chunk-XW7ZQ4ZG.js";
|
|
148
148
|
export {
|
|
149
149
|
ApiMaxOrderType,
|
|
150
150
|
AssetMarginMode,
|
package/dist/signing/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-W2BVNVOC.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkAICHR6DJcjs = require('../chunk-AICHR6DJ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.WasmSigner =
|
|
7
|
+
exports.WasmSigner = _chunkAICHR6DJcjs.WasmSigner;
|
package/dist/signing/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkAICHR6DJcjs = require('../chunk-AICHR6DJ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
exports.WasmSigner =
|
|
6
|
+
exports.WasmSigner = _chunkAICHR6DJcjs.WasmSigner;
|
|
@@ -47,7 +47,7 @@ declare global {
|
|
|
47
47
|
SignCancelOrder: (marketIndex: number, orderIndex: number, nonce: number, apiKeyIndex: number, accountIndex: number) => TxResponse;
|
|
48
48
|
SignCancelAllOrders: (timeInForce: number, time: number, nonce: number, apiKeyIndex: number, accountIndex: number) => TxResponse;
|
|
49
49
|
SignTransfer: (toAccountIndex: number, assetIndex: number, fromRouterType: number, toRouterType: number, amount: number, usdcFee: number, memo: string, nonce: number, apiKeyIndex: number, accountIndex: number) => TxResponse;
|
|
50
|
-
SignWithdraw: (usdcAmount: number, nonce: number, apiKeyIndex: number, accountIndex: number) => TxResponse;
|
|
50
|
+
SignWithdraw: (assetIndex: number, routeType: number, usdcAmount: number, nonce: number, apiKeyIndex: number, accountIndex: number) => TxResponse;
|
|
51
51
|
SignUpdateLeverage: (marketIndex: number, fraction: number, marginMode: number, nonce: number, apiKeyIndex: number, accountIndex: number) => TxResponse;
|
|
52
52
|
SignModifyOrder: (marketIndex: number, index: number, baseAmount: number, price: number, triggerPrice: number, nonce: number, apiKeyIndex: number, accountIndex: number) => TxResponse;
|
|
53
53
|
SignCreateSubAccount: (nonce: number, apiKeyIndex: number, accountIndex: number) => TxResponse;
|
|
@@ -84,7 +84,7 @@ declare class WasmSigner {
|
|
|
84
84
|
signCancelOrder(marketIndex: number, orderIndex: number, nonce: number): TxResponse;
|
|
85
85
|
signCancelAllOrders(timeInForce: number, time: number, nonce: number): TxResponse;
|
|
86
86
|
signTransfer(toAccountIndex: number, assetIndex: number, fromRouterType: number, toRouterType: number, amount: number, usdcFee: number, memo: string, nonce: number): TxResponse;
|
|
87
|
-
signWithdraw(usdcAmount: number, nonce: number): TxResponse;
|
|
87
|
+
signWithdraw(assetIndex: number, usdcAmount: number, nonce: number): TxResponse;
|
|
88
88
|
signUpdateLeverage(marketIndex: number, fraction: number, marginMode: number, nonce: number): TxResponse;
|
|
89
89
|
signModifyOrder(marketIndex: number, index: number, baseAmount: number, price: number, triggerPrice: number, nonce: number): TxResponse;
|
|
90
90
|
signCreateSubAccount(nonce: number): TxResponse;
|
|
@@ -47,7 +47,7 @@ declare global {
|
|
|
47
47
|
SignCancelOrder: (marketIndex: number, orderIndex: number, nonce: number, apiKeyIndex: number, accountIndex: number) => TxResponse;
|
|
48
48
|
SignCancelAllOrders: (timeInForce: number, time: number, nonce: number, apiKeyIndex: number, accountIndex: number) => TxResponse;
|
|
49
49
|
SignTransfer: (toAccountIndex: number, assetIndex: number, fromRouterType: number, toRouterType: number, amount: number, usdcFee: number, memo: string, nonce: number, apiKeyIndex: number, accountIndex: number) => TxResponse;
|
|
50
|
-
SignWithdraw: (usdcAmount: number, nonce: number, apiKeyIndex: number, accountIndex: number) => TxResponse;
|
|
50
|
+
SignWithdraw: (assetIndex: number, routeType: number, usdcAmount: number, nonce: number, apiKeyIndex: number, accountIndex: number) => TxResponse;
|
|
51
51
|
SignUpdateLeverage: (marketIndex: number, fraction: number, marginMode: number, nonce: number, apiKeyIndex: number, accountIndex: number) => TxResponse;
|
|
52
52
|
SignModifyOrder: (marketIndex: number, index: number, baseAmount: number, price: number, triggerPrice: number, nonce: number, apiKeyIndex: number, accountIndex: number) => TxResponse;
|
|
53
53
|
SignCreateSubAccount: (nonce: number, apiKeyIndex: number, accountIndex: number) => TxResponse;
|
|
@@ -84,7 +84,7 @@ declare class WasmSigner {
|
|
|
84
84
|
signCancelOrder(marketIndex: number, orderIndex: number, nonce: number): TxResponse;
|
|
85
85
|
signCancelAllOrders(timeInForce: number, time: number, nonce: number): TxResponse;
|
|
86
86
|
signTransfer(toAccountIndex: number, assetIndex: number, fromRouterType: number, toRouterType: number, amount: number, usdcFee: number, memo: string, nonce: number): TxResponse;
|
|
87
|
-
signWithdraw(usdcAmount: number, nonce: number): TxResponse;
|
|
87
|
+
signWithdraw(assetIndex: number, usdcAmount: number, nonce: number): TxResponse;
|
|
88
88
|
signUpdateLeverage(marketIndex: number, fraction: number, marginMode: number, nonce: number): TxResponse;
|
|
89
89
|
signModifyOrder(marketIndex: number, index: number, baseAmount: number, price: number, triggerPrice: number, nonce: number): TxResponse;
|
|
90
90
|
signCreateSubAccount(nonce: number): TxResponse;
|
package/dist/types/index.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-MOOGM3DW.cjs');
|
|
2
|
+
require('../chunk-VDBWTSBC.cjs');
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
|
|
@@ -74,7 +75,6 @@
|
|
|
74
75
|
|
|
75
76
|
var _chunkVWX5CLM4cjs = require('../chunk-VWX5CLM4.cjs');
|
|
76
77
|
require('../chunk-GEWTGUEG.cjs');
|
|
77
|
-
require('../chunk-VDBWTSBC.cjs');
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
package/dist/types/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "../chunk-LXNCAKJZ.js";
|
|
2
|
+
import "../chunk-NSFKW27X.js";
|
|
2
3
|
import {
|
|
3
4
|
ApiMaxOrderType,
|
|
4
5
|
AssetMarginMode,
|
|
@@ -74,7 +75,6 @@ import {
|
|
|
74
75
|
USDCAssetIndex
|
|
75
76
|
} from "../chunk-4UDAN2FX.js";
|
|
76
77
|
import "../chunk-C7OTZCGC.js";
|
|
77
|
-
import "../chunk-NSFKW27X.js";
|
|
78
78
|
export {
|
|
79
79
|
ApiMaxOrderType,
|
|
80
80
|
AssetMarginMode,
|