Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mPaella committed Dec 9, 2024
1 parent c29d8e6 commit 9288b86
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type Connection, PublicKey } from "@solana/web3.js";
import { getAssociatedTokenAddressSync } from "@solana/spl-token";
import { type Connection, PublicKey } from "@solana/web3.js";
import type { NetworkSpecificToken } from "../tokens";

export async function balanceOf(connection: Connection, walletAddress: string, token: NetworkSpecificToken) {
Expand Down
4 changes: 2 additions & 2 deletions typescript/packages/plugins/spl-token/src/methods/transfer.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { SolanaWalletClient } from "@goat-sdk/core";
import type { NetworkSpecificToken } from "../tokens";
import { type Connection, PublicKey, type TransactionInstruction } from "@solana/web3.js";
import {
createAssociatedTokenAccountInstruction,
createTransferCheckedInstruction,
createTransferInstruction,
getAssociatedTokenAddressSync,
} from "@solana/spl-token";
import { type Connection, PublicKey, type TransactionInstruction } from "@solana/web3.js";
import type { NetworkSpecificToken } from "../tokens";
import { doesAccountExist } from "../utils/doesAccountExist";

export async function transfer(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PublicKey, Connection } from "@solana/web3.js";
import type { Connection, PublicKey } from "@solana/web3.js";

export async function doesAccountExist(connection: Connection, address: PublicKey) {
const account = await connection.getAccountInfo(address);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { SolanaNetwork, Token, NetworkSpecificToken } from "../tokens";
import type { NetworkSpecificToken, SolanaNetwork, Token } from "../tokens";

export function getTokensForNetwork(network: SolanaNetwork, tokens: Token[]) {
const result: NetworkSpecificToken[] = [];
Expand Down
6 changes: 3 additions & 3 deletions typescript/packages/plugins/spl-token/src/utils/getTools.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { DeferredTool, SolanaWalletClient } from "@goat-sdk/core";
import type { NetworkSpecificToken } from "../tokens";
import { getBalanceParametersSchema, transferParametersSchema } from "../parameters";
import type { Connection } from "@solana/web3.js";
import type { z } from "zod";
import { transfer } from "../methods/transfer";
import { balanceOf } from "../methods/balance";
import { transfer } from "../methods/transfer";
import { getBalanceParametersSchema, transferParametersSchema } from "../parameters";
import type { NetworkSpecificToken } from "../tokens";

export function getTools(
tokenList: NetworkSpecificToken[],
Expand Down

0 comments on commit 9288b86

Please sign in to comment.