File tree 5 files changed +186
-138
lines changed
5 files changed +186
-138
lines changed Original file line number Diff line number Diff line change 1
1
import { AnchorProvider } from "@coral-xyz/anchor" ;
2
- import NodeWallet from "@coral-xyz/anchor/dist/cjs/nodewallet " ;
2
+ import { Wallet } from "@coral-xyz/anchor" ;
3
3
import { Connection , Keypair , PublicKey } from "@solana/web3.js" ;
4
4
import {
5
5
CreateTokenMetadata ,
@@ -247,7 +247,7 @@ export default {
247
247
} = content ;
248
248
249
249
const privateKey = runtime . getSetting ( "WALLET_PRIVATE_KEY" ) ! ;
250
- const wallet = new NodeWallet (
250
+ const wallet = new Wallet (
251
251
Keypair . fromSecretKey ( new Uint8Array ( JSON . parse ( privateKey ) ) )
252
252
) ;
253
253
const connection = new Connection ( settings . RPC_URL ! ) ;
Original file line number Diff line number Diff line change @@ -267,4 +267,4 @@ class DirectClient {
267
267
}
268
268
}
269
269
270
- export default DirectClient ;
270
+ export { DirectClient } ;
Original file line number Diff line number Diff line change 1
- import DirectClient from "./direct" ;
2
-
3
1
export {
4
2
TwitterGenerationClient ,
5
3
TwitterInteractionClient ,
6
4
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" ;
Original file line number Diff line number Diff line change 1
1
// TokenBalanceProvider.ts
2
2
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" ;
4
7
import fetch from "cross-fetch" ;
5
8
6
9
interface Item {
You can’t perform that action at this time.
0 commit comments