bump sdk fix build

This commit is contained in:
wphan
2024-01-02 10:58:34 -08:00
parent 42f8ecea7d
commit 98484cff64
4 changed files with 11 additions and 11 deletions

View File

@@ -6,7 +6,7 @@
"license": "Apache-2.0",
"dependencies": {
"@coral-xyz/anchor": "^0.29.0",
"@drift-labs/sdk": "2.53.0-beta.8",
"@drift-labs/sdk": "2.54.0-beta.2",
"@opentelemetry/api": "^1.1.0",
"@opentelemetry/auto-instrumentations-node": "^0.31.1",
"@opentelemetry/exporter-prometheus": "^0.31.0",

View File

@@ -215,7 +215,7 @@ export class GeyserOrderSubscriber {
for (const [key, { userAccount }] of this.usersAccounts.entries()) {
const userAccountPubkey = new PublicKey(key);
for (const order of userAccount.orders) {
dlob.insertOrder(order, userAccountPubkey, slot);
dlob.insertOrder(order, userAccountPubkey.toBase58(), slot);
}
}
return dlob;

View File

@@ -236,7 +236,7 @@ const initializeAllMarketSubscribers = async (driftClient: DriftClient) => {
return markets;
};
const main = async () => {
const main = async (): Promise<void> => {
const wallet = new Wallet(new Keypair());
const clearingHousePublicKey = new PublicKey(sdkConfig.DRIFT_PROGRAM_ID);
@@ -687,13 +687,13 @@ const main = async () => {
break;
}
if (side.userAccount) {
const maker = side.userAccount.toBase58();
const maker = side.userAccount;
if (topMakers.has(maker)) {
continue;
} else {
if (`${includeUserStats}`.toLowerCase() === 'true') {
const userAccount = dlobProvider.getUserAccount(
side.userAccount
new PublicKey(side.userAccount)
);
topMakers.add([
userAccount,
@@ -703,7 +703,7 @@ const main = async () => {
),
]);
} else {
topMakers.add(side.userAccount.toBase58());
topMakers.add(side.userAccount);
}
foundMakers++;
}
@@ -1217,7 +1217,7 @@ const main = async () => {
});
};
async function recursiveTryCatch(f: () => void) {
async function recursiveTryCatch(f: () => Promise<void>) {
try {
await f();
} catch (e) {

View File

@@ -115,10 +115,10 @@
enabled "2.0.x"
kuler "^2.0.0"
"@drift-labs/sdk@2.53.0-beta.8":
version "2.53.0-beta.8"
resolved "https://registry.yarnpkg.com/@drift-labs/sdk/-/sdk-2.53.0-beta.8.tgz#bc12747a8f2c4fa26b979fa6a8202a3bd3f52b2b"
integrity sha512-R2OPzgWjEVrJMeSwXa/UiquM6c72iOnFdoHbXJ4JJPd/KJDvghjOIXshF+7ttf80Uwswrox0sEhCJOYcYZOMIQ==
"@drift-labs/sdk@2.54.0-beta.2":
version "2.54.0-beta.2"
resolved "https://registry.yarnpkg.com/@drift-labs/sdk/-/sdk-2.54.0-beta.2.tgz#3b7cce3abf9f24a7e7e2af959a953ee9c7d14cdc"
integrity sha512-ilUoVtWYPw7nKzuohfgmb1CBwg5tvL/fctdOiIG1izku1jMqNL4D19zr/uNUSpCwbRVnZy0F/8AX/3UKju85iw==
dependencies:
"@coral-xyz/anchor" "0.28.1-beta.2"
"@ellipsis-labs/phoenix-sdk" "^1.4.2"