@nightlylabs/dex-sdk 0.1.80 → 0.2.0
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.cjs +4 -12
- package/dist/index.d.cts +3 -6
- package/dist/index.d.ts +3 -6
- package/dist/index.js +4 -12
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2235,8 +2235,7 @@ var Client = class _Client {
|
|
|
2235
2235
|
typeArguments: [],
|
|
2236
2236
|
functionArguments: [
|
|
2237
2237
|
params.userId,
|
|
2238
|
-
params.orderData.
|
|
2239
|
-
params.orderData.quoteToken,
|
|
2238
|
+
params.orderData.marketName,
|
|
2240
2239
|
params.orderData.isBid,
|
|
2241
2240
|
params.orderData.price,
|
|
2242
2241
|
params.orderData.size,
|
|
@@ -2258,8 +2257,7 @@ var Client = class _Client {
|
|
|
2258
2257
|
typeArguments: [],
|
|
2259
2258
|
functionArguments: [
|
|
2260
2259
|
params.userId,
|
|
2261
|
-
params.orderData.
|
|
2262
|
-
params.orderData.quoteToken,
|
|
2260
|
+
params.orderData.marketName,
|
|
2263
2261
|
params.orderData.isBid,
|
|
2264
2262
|
// ABI order: size, price
|
|
2265
2263
|
params.orderData.size,
|
|
@@ -2281,8 +2279,7 @@ var Client = class _Client {
|
|
|
2281
2279
|
typeArguments: [],
|
|
2282
2280
|
functionArguments: [
|
|
2283
2281
|
params.userId,
|
|
2284
|
-
params.
|
|
2285
|
-
params.quoteToken,
|
|
2282
|
+
params.marketName,
|
|
2286
2283
|
params.orderId,
|
|
2287
2284
|
params.newPrice,
|
|
2288
2285
|
params.postOnly
|
|
@@ -2301,12 +2298,7 @@ var Client = class _Client {
|
|
|
2301
2298
|
}),
|
|
2302
2299
|
function: `${cancelSpotOrders_default.address}::${cancelSpotOrders_default.name}::cancel_spot_orders`,
|
|
2303
2300
|
typeArguments: [],
|
|
2304
|
-
functionArguments: [
|
|
2305
|
-
params.userId,
|
|
2306
|
-
params.baseTokens,
|
|
2307
|
-
params.quoteTokens,
|
|
2308
|
-
params.orderIds
|
|
2309
|
-
]
|
|
2301
|
+
functionArguments: [params.userId, params.marketNames, params.orderIds]
|
|
2310
2302
|
});
|
|
2311
2303
|
return await this.createAndSubmitTransaction(aptosPayload);
|
|
2312
2304
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1649,15 +1649,13 @@ interface ChangePerpOrderPriceParams {
|
|
|
1649
1649
|
}
|
|
1650
1650
|
interface ChangeSpotOrderPriceParams {
|
|
1651
1651
|
userId: string;
|
|
1652
|
-
|
|
1653
|
-
quoteToken: Address;
|
|
1652
|
+
marketName: string;
|
|
1654
1653
|
orderId: string;
|
|
1655
1654
|
newPrice: string;
|
|
1656
1655
|
postOnly: boolean;
|
|
1657
1656
|
}
|
|
1658
1657
|
interface SpotOrderData {
|
|
1659
|
-
|
|
1660
|
-
quoteToken: Address;
|
|
1658
|
+
marketName: string;
|
|
1661
1659
|
isBid: boolean;
|
|
1662
1660
|
price: string;
|
|
1663
1661
|
size: string;
|
|
@@ -1669,8 +1667,7 @@ interface PlaceSpotOrderParams {
|
|
|
1669
1667
|
}
|
|
1670
1668
|
interface CancelSpotOrdersParams {
|
|
1671
1669
|
userId: string;
|
|
1672
|
-
|
|
1673
|
-
quoteTokens: Address[];
|
|
1670
|
+
marketNames: string[];
|
|
1674
1671
|
orderIds: string[][];
|
|
1675
1672
|
}
|
|
1676
1673
|
interface PlacePerpOrderParams {
|
package/dist/index.d.ts
CHANGED
|
@@ -1649,15 +1649,13 @@ interface ChangePerpOrderPriceParams {
|
|
|
1649
1649
|
}
|
|
1650
1650
|
interface ChangeSpotOrderPriceParams {
|
|
1651
1651
|
userId: string;
|
|
1652
|
-
|
|
1653
|
-
quoteToken: Address;
|
|
1652
|
+
marketName: string;
|
|
1654
1653
|
orderId: string;
|
|
1655
1654
|
newPrice: string;
|
|
1656
1655
|
postOnly: boolean;
|
|
1657
1656
|
}
|
|
1658
1657
|
interface SpotOrderData {
|
|
1659
|
-
|
|
1660
|
-
quoteToken: Address;
|
|
1658
|
+
marketName: string;
|
|
1661
1659
|
isBid: boolean;
|
|
1662
1660
|
price: string;
|
|
1663
1661
|
size: string;
|
|
@@ -1669,8 +1667,7 @@ interface PlaceSpotOrderParams {
|
|
|
1669
1667
|
}
|
|
1670
1668
|
interface CancelSpotOrdersParams {
|
|
1671
1669
|
userId: string;
|
|
1672
|
-
|
|
1673
|
-
quoteTokens: Address[];
|
|
1670
|
+
marketNames: string[];
|
|
1674
1671
|
orderIds: string[][];
|
|
1675
1672
|
}
|
|
1676
1673
|
interface PlacePerpOrderParams {
|
package/dist/index.js
CHANGED
|
@@ -2185,8 +2185,7 @@ var Client = class _Client {
|
|
|
2185
2185
|
typeArguments: [],
|
|
2186
2186
|
functionArguments: [
|
|
2187
2187
|
params.userId,
|
|
2188
|
-
params.orderData.
|
|
2189
|
-
params.orderData.quoteToken,
|
|
2188
|
+
params.orderData.marketName,
|
|
2190
2189
|
params.orderData.isBid,
|
|
2191
2190
|
params.orderData.price,
|
|
2192
2191
|
params.orderData.size,
|
|
@@ -2208,8 +2207,7 @@ var Client = class _Client {
|
|
|
2208
2207
|
typeArguments: [],
|
|
2209
2208
|
functionArguments: [
|
|
2210
2209
|
params.userId,
|
|
2211
|
-
params.orderData.
|
|
2212
|
-
params.orderData.quoteToken,
|
|
2210
|
+
params.orderData.marketName,
|
|
2213
2211
|
params.orderData.isBid,
|
|
2214
2212
|
// ABI order: size, price
|
|
2215
2213
|
params.orderData.size,
|
|
@@ -2231,8 +2229,7 @@ var Client = class _Client {
|
|
|
2231
2229
|
typeArguments: [],
|
|
2232
2230
|
functionArguments: [
|
|
2233
2231
|
params.userId,
|
|
2234
|
-
params.
|
|
2235
|
-
params.quoteToken,
|
|
2232
|
+
params.marketName,
|
|
2236
2233
|
params.orderId,
|
|
2237
2234
|
params.newPrice,
|
|
2238
2235
|
params.postOnly
|
|
@@ -2251,12 +2248,7 @@ var Client = class _Client {
|
|
|
2251
2248
|
}),
|
|
2252
2249
|
function: `${cancelSpotOrders_default.address}::${cancelSpotOrders_default.name}::cancel_spot_orders`,
|
|
2253
2250
|
typeArguments: [],
|
|
2254
|
-
functionArguments: [
|
|
2255
|
-
params.userId,
|
|
2256
|
-
params.baseTokens,
|
|
2257
|
-
params.quoteTokens,
|
|
2258
|
-
params.orderIds
|
|
2259
|
-
]
|
|
2251
|
+
functionArguments: [params.userId, params.marketNames, params.orderIds]
|
|
2260
2252
|
});
|
|
2261
2253
|
return await this.createAndSubmitTransaction(aptosPayload);
|
|
2262
2254
|
}
|