Skip to content

Commit f950fe6

Browse files
feat(sdk): optimize RPC calls with Helius-specific methods (#954)
Synced from glamsystems/glam df010f3c64351850344680463ccf807c8a512c3f
1 parent 021998c commit f950fe6

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/cmds/jupiter.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
JupiterSwapPolicy,
44
QuoteParams,
55
TokenListItem,
6-
JupTokenList,
76
fromUiAmount,
87
} from "@glamsystems/glam-sdk";
98
import { Command } from "commander";

src/cmds/lst.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { BN } from "@coral-xyz/anchor";
22
import { Command } from "commander";
3-
import { LAMPORTS_PER_SOL, PublicKey } from "@solana/web3.js";
3+
import { PublicKey } from "@solana/web3.js";
44
import {
55
CliContext,
66
executeTxWithErrorHandling,

src/cmds/marinade.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import { BN } from "@coral-xyz/anchor";
21
import { Command } from "commander";
32
import { CliContext, executeTxWithErrorHandling } from "../utils";
4-
import { LAMPORTS_PER_SOL } from "@solana/web3.js";
53
import { fromUiAmount } from "@glamsystems/glam-sdk";
64

75
export function installMarinadeCommands(

src/main.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ function initialize(configPath?: string, skipSimulation = false) {
8282

8383
// If helius_api_key is not provided, return 0
8484
return helius_api_key
85-
? await getPriorityFeeEstimate(helius_api_key, tx, undefined, level)
85+
? await getPriorityFeeEstimate({
86+
heliusApiKey: helius_api_key,
87+
tx,
88+
priorityLevel: level,
89+
})
8690
: 0;
8791
},
8892
};

0 commit comments

Comments
 (0)