Skip to content

Commit d646e1a

Browse files
committed
Merge branch 'master' into mainnet-beta
2 parents 6b4fb3c + eb100ce commit d646e1a

File tree

6 files changed

+32
-18
lines changed

6 files changed

+32
-18
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"main": "lib/index.js",
66
"license": "Apache-2.0",
77
"dependencies": {
8-
"@drift-labs/jit-proxy": "0.21.116",
9-
"@drift-labs/sdk": "2.150.0-beta.3",
8+
"@drift-labs/jit-proxy": "0.21.118",
9+
"@drift-labs/sdk": "2.150.0-beta.5",
1010
"@drift/common": "file:./drift-common/common-ts",
1111
"@opentelemetry/api": "1.7.0",
1212
"@opentelemetry/auto-instrumentations-node": "^0.62.1",

src/bots/common/threads/txSender.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ export class TxSender {
486486
simResult.cuEstimate
487487
} simError: ${JSON.stringify(
488488
simResult.simError
489-
)}, sim tx logs:\n${JSON.stringify(simResult.simTxLogs, null, 2)}`
489+
)}, sim logs:\n${JSON.stringify(simResult.simTxLogs, null, 2)}`
490490
);
491491
}
492492
this.metrics.txAttempted++;

src/bots/filler.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1842,7 +1842,9 @@ export class FillerBot extends TxThreaded implements Bot {
18421842
logger.error(
18431843
`simError: ${JSON.stringify(
18441844
simResult.simError
1845-
)} (fillTxId: ${fillTxId})`
1845+
)} (fillTxId: ${fillTxId}), sim logs:\n${
1846+
simResult.simTxLogs ? simResult.simTxLogs.join('\n') : 'none'
1847+
}`
18461848
);
18471849
handleSimResultError(
18481850
simResult,
@@ -2094,7 +2096,7 @@ export class FillerBot extends TxThreaded implements Bot {
20942096
logger.error(
20952097
`executeTriggerablePerpNodesForMarket simError: (simError: ${JSON.stringify(
20962098
simResult.simError
2097-
)}, logs: ${JSON.stringify(simResult.simTxLogs)})`
2099+
)}, sim logs: ${JSON.stringify(simResult.simTxLogs)})`
20982100
);
20992101
handleSimResultError(
21002102
simResult,
@@ -2246,7 +2248,11 @@ export class FillerBot extends TxThreaded implements Bot {
22462248

22472249
if (this.simulateTxForCUEstimate && simResult.simError) {
22482250
logger.info(
2249-
`settlePnls simError: ${JSON.stringify(simResult.simError)}`
2251+
`settlePnls simError: ${JSON.stringify(
2252+
simResult.simError
2253+
)}, sim logs:\n${
2254+
simResult.simTxLogs ? simResult.simTxLogs.join('\n') : 'none'
2255+
}`
22502256
);
22512257
handleSimResultError(
22522258
simResult,

src/experimental-bots/filler/fillerMultithreaded.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1944,7 +1944,9 @@ export class FillerMultithreaded {
19441944
logger.error(
19451945
`simError: ${JSON.stringify(
19461946
simResult.simError
1947-
)} (fillTxId: ${fillTxId})`
1947+
)} (fillTxId: ${fillTxId}), sim logs:\n${
1948+
simResult.simTxLogs ? simResult.simTxLogs.join('\n') : 'none'
1949+
}`
19481950
);
19491951
} else {
19501952
if (this.hasEnoughSolToFill) {
@@ -2158,7 +2160,11 @@ export class FillerMultithreaded {
21582160

21592161
if (this.simulateTxForCUEstimate && simResult.simError) {
21602162
logger.info(
2161-
`settlePnls simError: ${JSON.stringify(simResult.simError)}`
2163+
`settlePnls simError: ${JSON.stringify(
2164+
simResult.simError
2165+
)}, sim logs:\n${
2166+
simResult.simTxLogs ? simResult.simTxLogs.join('\n') : 'none'
2167+
}`
21622168
);
21632169
handleSimResultError(
21642170
simResult,

src/experimental-bots/spotFiller/spotFillerMultithreaded.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,9 @@ export class SpotFillerMultithreaded {
10291029
logger.error(
10301030
`simError: ${JSON.stringify(
10311031
simResult.simError
1032-
)} (fillTxId: ${fillTxId})`
1032+
)} (fillTxId: ${fillTxId}), sim logs:\n${
1033+
simResult.simTxLogs ? simResult.simTxLogs.join('\n') : 'none'
1034+
}`
10331035
);
10341036
handleSimResultError(
10351037
simResult,

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,21 +112,21 @@
112112
enabled "2.0.x"
113113
kuler "^2.0.0"
114114

115-
"@drift-labs/[email protected].116":
116-
version "0.21.116"
117-
resolved "https://registry.yarnpkg.com/@drift-labs/jit-proxy/-/jit-proxy-0.21.116.tgz#991b5265a7fee45f7c072df0b4a712ef09802104"
118-
integrity sha512-m5l0hv8+B2rj7YHOq3sW1fhNaLbwmqq/eZvWfjzkxgw5rfAJnlc3inena0bP9VqRWnLJzPkk8liAd60LD7Bb4w==
115+
"@drift-labs/[email protected].118":
116+
version "0.21.118"
117+
resolved "https://registry.yarnpkg.com/@drift-labs/jit-proxy/-/jit-proxy-0.21.118.tgz#e581aed5598cc75884968f5c229b47f7441d192f"
118+
integrity sha512-h6HxaIWfQ92Oz2p9Vd+t+83tzlohQGpttgChb5n6sbTM3O13U1U8Z8eUMa5m1twSQjG4LpLsBvrOlbBal4l+Wg==
119119
dependencies:
120120
"@coral-xyz/anchor" "0.29.0"
121-
"@drift-labs/sdk" "2.150.0-beta.3"
121+
"@drift-labs/sdk" "2.150.0-beta.5"
122122
"@solana/web3.js" "1.98.0"
123123
tweetnacl-util "^0.15.1"
124124
typescript "5.4.5"
125125

126-
"@drift-labs/[email protected].3":
127-
version "2.150.0-beta.3"
128-
resolved "https://registry.yarnpkg.com/@drift-labs/sdk/-/sdk-2.150.0-beta.3.tgz#c8522eb71fcf6aef3b6148c51d54c893c62168db"
129-
integrity sha512-jA+y+lKH/6kHbXwFGGmuhs26Va3UK427TH8Jrzx+C6vRQieJkNwwWJq/H0NS6HfjBFt7ExdZTVtv9yDeMQ8TGg==
126+
"@drift-labs/[email protected].5":
127+
version "2.150.0-beta.5"
128+
resolved "https://registry.yarnpkg.com/@drift-labs/sdk/-/sdk-2.150.0-beta.5.tgz#61530f73ab9c60f392dcf6f09119f3ca91120df5"
129+
integrity sha512-4Tx9OOiLQW29XKm9j/8gKZGm4Oq2cDz/x5DEtRUyg6GJHy1wm6s+kwOpJ+4d498QqgBISoTJGRhieYWe9mLQdw==
130130
dependencies:
131131
"@coral-xyz/anchor" "0.29.0"
132132
"@coral-xyz/anchor-30" "npm:@coral-xyz/[email protected]"

0 commit comments

Comments
 (0)