-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update to imperative prompts, remove connection inputs from pl…
…ugins (#93) * Update to imperative prompts, remove connection inputs from plugins * Add changeset * Re-create lockfile
- Loading branch information
1 parent
5b04a13
commit 608f9f1
Showing
15 changed files
with
66 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
"@goat-sdk/plugin-solana-magiceden": patch | ||
"@goat-sdk/plugin-solana-nfts": patch | ||
"@goat-sdk/plugin-polymarket": patch | ||
"@goat-sdk/plugin-spl-token": patch | ||
"goat-examples-vercel-ai-solana": patch | ||
"@goat-sdk/plugin-jupiter": patch | ||
"@goat-sdk/plugin-meteora": patch | ||
"@goat-sdk/plugin-uniswap": patch | ||
"@goat-sdk/plugin-tensor": patch | ||
"@goat-sdk/wallet-solana": patch | ||
"@goat-sdk/plugin-erc20": patch | ||
--- | ||
|
||
Move to imperative prompts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
typescript/packages/plugins/solana-nfts/src/solana-nfts.plugin.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
import { type Chain, PluginBase } from "@goat-sdk/core"; | ||
import type { Connection } from "@solana/web3.js"; | ||
import { SolanaNftsService } from "./solana-nfts.service"; | ||
|
||
export class SolanaNftsPlugin extends PluginBase { | ||
constructor(connection: Connection) { | ||
super("solana-nfts", [new SolanaNftsService(connection)]); | ||
constructor() { | ||
super("solana-nfts", [new SolanaNftsService()]); | ||
} | ||
|
||
supportsChain = (chain: Chain) => chain.type === "solana"; | ||
} | ||
|
||
export const nfts = (connection: Connection) => new SolanaNftsPlugin(connection); | ||
export const nfts = () => new SolanaNftsPlugin(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
typescript/packages/plugins/spl-token/src/types/SplTokenPluginCtorParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import { Connection } from "@solana/web3.js"; | ||
import { SolanaNetwork, Token } from "../tokens"; | ||
|
||
export interface SplTokenPluginCtorParams { | ||
connection: Connection; | ||
network: SolanaNetwork; | ||
network?: SolanaNetwork; | ||
tokens?: Token[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.