Skip to content

Commit bdbaba5

Browse files
imports
1 parent 8eed22d commit bdbaba5

File tree

5 files changed

+186
-138
lines changed

5 files changed

+186
-138
lines changed

core/src/actions/pumpfun.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AnchorProvider } from "@coral-xyz/anchor";
2-
import NodeWallet from "@coral-xyz/anchor/dist/cjs/nodewallet";
2+
import { Wallet } from "@coral-xyz/anchor";
33
import { Connection, Keypair, PublicKey } from "@solana/web3.js";
44
import {
55
CreateTokenMetadata,
@@ -247,7 +247,7 @@ export default {
247247
} = content;
248248

249249
const privateKey = runtime.getSetting("WALLET_PRIVATE_KEY")!;
250-
const wallet = new NodeWallet(
250+
const wallet = new Wallet(
251251
Keypair.fromSecretKey(new Uint8Array(JSON.parse(privateKey)))
252252
);
253253
const connection = new Connection(settings.RPC_URL!);

core/src/clients/direct/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,4 +267,4 @@ class DirectClient {
267267
}
268268
}
269269

270-
export default DirectClient;
270+
export { DirectClient };

core/src/clients/index.ts

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
import DirectClient from "./direct";
2-
31
export {
42
TwitterGenerationClient,
53
TwitterInteractionClient,
64
TwitterSearchClient,
7-
} from "./twitter";
8-
export { TelegramClient } from "./telegram";
9-
export { DiscordClient } from "./discord";
10-
export { DirectClient };
5+
} from "./twitter/index.ts";
6+
export { TelegramClient } from "./telegram/index.ts";
7+
export { DiscordClient } from "./discord/index.ts";
8+
export { DirectClient } from "./direct/index.ts";

core/src/providers/balances.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// TokenBalanceProvider.ts
22
import { Connection, PublicKey } from "@solana/web3.js";
3-
import { getTokenBalances, getTokenPriceInSol } from "../services/tokenUtils";
3+
import {
4+
getTokenBalances,
5+
getTokenPriceInSol,
6+
} from "../services/tokenUtils.ts";
47
import fetch from "cross-fetch";
58

69
interface Item {

0 commit comments

Comments
 (0)