@nightlylabs/dex-sdk 0.0.30 → 0.0.31
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 +1 -8
- package/dist/index.js +1 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1145,7 +1145,6 @@ var Client = class _Client {
|
|
|
1145
1145
|
return await this.submitSponsoredTransaction(tx, signature);
|
|
1146
1146
|
}
|
|
1147
1147
|
async placePerpLimitOrder(params) {
|
|
1148
|
-
console.log("1");
|
|
1149
1148
|
const payload = (0, import_surf.createEntryPayload)(placePerpLimitOrder_default, {
|
|
1150
1149
|
function: "place_perp_limit_order",
|
|
1151
1150
|
functionArguments: [
|
|
@@ -1158,15 +1157,13 @@ var Client = class _Client {
|
|
|
1158
1157
|
],
|
|
1159
1158
|
typeArguments: []
|
|
1160
1159
|
});
|
|
1161
|
-
console.log("2");
|
|
1162
1160
|
const sequenceNumber = await this.getApiKeySequenceNumber();
|
|
1163
|
-
console.log("3");
|
|
1164
1161
|
const aptosPayload = await (0, import_ts_sdk2.generateTransactionPayload)({
|
|
1165
1162
|
aptosConfig: this._aptos.config,
|
|
1166
1163
|
abi: parseEntryFunctionAbi({
|
|
1167
1164
|
moduleAbi: placePerpLimitOrder_default,
|
|
1168
1165
|
functionName: "place_perp_limit_order",
|
|
1169
|
-
moduleAddress:
|
|
1166
|
+
moduleAddress: placePerpLimitOrder_default.address,
|
|
1170
1167
|
moduleName: "place_perp_limit_order"
|
|
1171
1168
|
}),
|
|
1172
1169
|
function: `${placePerpLimitOrder_default.address}::${placePerpLimitOrder_default.name}::place_perp_limit_order`,
|
|
@@ -1180,7 +1177,6 @@ var Client = class _Client {
|
|
|
1180
1177
|
params.postOnly
|
|
1181
1178
|
]
|
|
1182
1179
|
});
|
|
1183
|
-
console.log("4");
|
|
1184
1180
|
const rawTx = new import_ts_sdk2.RawTransaction(
|
|
1185
1181
|
import_ts_sdk2.AccountAddress.from(this._apiKey.accountAddress),
|
|
1186
1182
|
BigInt(sequenceNumber),
|
|
@@ -1190,14 +1186,11 @@ var Client = class _Client {
|
|
|
1190
1186
|
BigInt(Date.now() + 10 * 1e3),
|
|
1191
1187
|
new import_ts_sdk2.ChainId(175)
|
|
1192
1188
|
);
|
|
1193
|
-
console.log("5");
|
|
1194
1189
|
const tx = new import_ts_sdk2.SimpleTransaction(rawTx, import_ts_sdk2.AccountAddress.ZERO);
|
|
1195
|
-
console.log("6");
|
|
1196
1190
|
const signature = this._aptos.sign({
|
|
1197
1191
|
signer: this._apiKey,
|
|
1198
1192
|
transaction: tx
|
|
1199
1193
|
});
|
|
1200
|
-
console.log("7");
|
|
1201
1194
|
return await this.submitSponsoredTransaction(tx, signature);
|
|
1202
1195
|
}
|
|
1203
1196
|
async placePerpMarketOrder(params) {
|
package/dist/index.js
CHANGED
|
@@ -1094,7 +1094,6 @@ var Client = class _Client {
|
|
|
1094
1094
|
return await this.submitSponsoredTransaction(tx, signature);
|
|
1095
1095
|
}
|
|
1096
1096
|
async placePerpLimitOrder(params) {
|
|
1097
|
-
console.log("1");
|
|
1098
1097
|
const payload = createEntryPayload(placePerpLimitOrder_default, {
|
|
1099
1098
|
function: "place_perp_limit_order",
|
|
1100
1099
|
functionArguments: [
|
|
@@ -1107,15 +1106,13 @@ var Client = class _Client {
|
|
|
1107
1106
|
],
|
|
1108
1107
|
typeArguments: []
|
|
1109
1108
|
});
|
|
1110
|
-
console.log("2");
|
|
1111
1109
|
const sequenceNumber = await this.getApiKeySequenceNumber();
|
|
1112
|
-
console.log("3");
|
|
1113
1110
|
const aptosPayload = await generateTransactionPayload({
|
|
1114
1111
|
aptosConfig: this._aptos.config,
|
|
1115
1112
|
abi: parseEntryFunctionAbi({
|
|
1116
1113
|
moduleAbi: placePerpLimitOrder_default,
|
|
1117
1114
|
functionName: "place_perp_limit_order",
|
|
1118
|
-
moduleAddress:
|
|
1115
|
+
moduleAddress: placePerpLimitOrder_default.address,
|
|
1119
1116
|
moduleName: "place_perp_limit_order"
|
|
1120
1117
|
}),
|
|
1121
1118
|
function: `${placePerpLimitOrder_default.address}::${placePerpLimitOrder_default.name}::place_perp_limit_order`,
|
|
@@ -1129,7 +1126,6 @@ var Client = class _Client {
|
|
|
1129
1126
|
params.postOnly
|
|
1130
1127
|
]
|
|
1131
1128
|
});
|
|
1132
|
-
console.log("4");
|
|
1133
1129
|
const rawTx = new RawTransaction(
|
|
1134
1130
|
AccountAddress.from(this._apiKey.accountAddress),
|
|
1135
1131
|
BigInt(sequenceNumber),
|
|
@@ -1139,14 +1135,11 @@ var Client = class _Client {
|
|
|
1139
1135
|
BigInt(Date.now() + 10 * 1e3),
|
|
1140
1136
|
new ChainId(175)
|
|
1141
1137
|
);
|
|
1142
|
-
console.log("5");
|
|
1143
1138
|
const tx = new SimpleTransaction(rawTx, AccountAddress.ZERO);
|
|
1144
|
-
console.log("6");
|
|
1145
1139
|
const signature = this._aptos.sign({
|
|
1146
1140
|
signer: this._apiKey,
|
|
1147
1141
|
transaction: tx
|
|
1148
1142
|
});
|
|
1149
|
-
console.log("7");
|
|
1150
1143
|
return await this.submitSponsoredTransaction(tx, signature);
|
|
1151
1144
|
}
|
|
1152
1145
|
async placePerpMarketOrder(params) {
|