@nightlylabs/dex-sdk 0.0.26 → 0.0.27
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 +0 -5
- package/dist/index.js +0 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1142,7 +1142,6 @@ var Client = class _Client {
|
|
|
1142
1142
|
return await this.submitSponsoredTransaction(tx, signature);
|
|
1143
1143
|
}
|
|
1144
1144
|
async placePerpLimitOrder(params) {
|
|
1145
|
-
console.log("start");
|
|
1146
1145
|
const payload = (0, import_surf.createEntryPayload)(placePerpLimitOrder_default, {
|
|
1147
1146
|
function: "place_perp_limit_order",
|
|
1148
1147
|
functionArguments: [
|
|
@@ -1155,9 +1154,7 @@ var Client = class _Client {
|
|
|
1155
1154
|
],
|
|
1156
1155
|
typeArguments: []
|
|
1157
1156
|
});
|
|
1158
|
-
console.log("get sequence number");
|
|
1159
1157
|
const sequenceNumber = await this.getApiKeySequenceNumber();
|
|
1160
|
-
console.log("sequence number", sequenceNumber);
|
|
1161
1158
|
const tx = await this._aptos.transaction.build.simple({
|
|
1162
1159
|
sender: this._apiKey.accountAddress,
|
|
1163
1160
|
data: {
|
|
@@ -1178,12 +1175,10 @@ var Client = class _Client {
|
|
|
1178
1175
|
maxGasAmount: 1e4
|
|
1179
1176
|
}
|
|
1180
1177
|
});
|
|
1181
|
-
console.log("after build");
|
|
1182
1178
|
const signature = this._aptos.sign({
|
|
1183
1179
|
signer: this._apiKey,
|
|
1184
1180
|
transaction: tx
|
|
1185
1181
|
});
|
|
1186
|
-
console.log("after sign");
|
|
1187
1182
|
return await this.submitSponsoredTransaction(tx, signature);
|
|
1188
1183
|
}
|
|
1189
1184
|
async placePerpMarketOrder(params) {
|
package/dist/index.js
CHANGED
|
@@ -1086,7 +1086,6 @@ var Client = class _Client {
|
|
|
1086
1086
|
return await this.submitSponsoredTransaction(tx, signature);
|
|
1087
1087
|
}
|
|
1088
1088
|
async placePerpLimitOrder(params) {
|
|
1089
|
-
console.log("start");
|
|
1090
1089
|
const payload = createEntryPayload(placePerpLimitOrder_default, {
|
|
1091
1090
|
function: "place_perp_limit_order",
|
|
1092
1091
|
functionArguments: [
|
|
@@ -1099,9 +1098,7 @@ var Client = class _Client {
|
|
|
1099
1098
|
],
|
|
1100
1099
|
typeArguments: []
|
|
1101
1100
|
});
|
|
1102
|
-
console.log("get sequence number");
|
|
1103
1101
|
const sequenceNumber = await this.getApiKeySequenceNumber();
|
|
1104
|
-
console.log("sequence number", sequenceNumber);
|
|
1105
1102
|
const tx = await this._aptos.transaction.build.simple({
|
|
1106
1103
|
sender: this._apiKey.accountAddress,
|
|
1107
1104
|
data: {
|
|
@@ -1122,12 +1119,10 @@ var Client = class _Client {
|
|
|
1122
1119
|
maxGasAmount: 1e4
|
|
1123
1120
|
}
|
|
1124
1121
|
});
|
|
1125
|
-
console.log("after build");
|
|
1126
1122
|
const signature = this._aptos.sign({
|
|
1127
1123
|
signer: this._apiKey,
|
|
1128
1124
|
transaction: tx
|
|
1129
1125
|
});
|
|
1130
|
-
console.log("after sign");
|
|
1131
1126
|
return await this.submitSponsoredTransaction(tx, signature);
|
|
1132
1127
|
}
|
|
1133
1128
|
async placePerpMarketOrder(params) {
|