From b79876aa96f6075fbc4679ce50a1124730c75f6a Mon Sep 17 00:00:00 2001 From: yugure <98769788+everlastingsong@users.noreply.github.com> Date: Sat, 20 Jan 2024 13:22:11 +0900 Subject: [PATCH] Delete orca/whirlpool/whirlpools_sdk/00c_base_with_anchor_v024.ts --- .../00c_base_with_anchor_v024.ts | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 orca/whirlpool/whirlpools_sdk/00c_base_with_anchor_v024.ts diff --git a/orca/whirlpool/whirlpools_sdk/00c_base_with_anchor_v024.ts b/orca/whirlpool/whirlpools_sdk/00c_base_with_anchor_v024.ts deleted file mode 100644 index b7c1af4..0000000 --- a/orca/whirlpool/whirlpools_sdk/00c_base_with_anchor_v024.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { WhirlpoolContext, AccountFetcher, ORCA_WHIRLPOOL_PROGRAM_ID, buildWhirlpoolClient } from "@orca-so/whirlpools-sdk"; - -// Provider was renamed to AnchorProvider at 0.24.0 -// https://github.com/coral-xyz/anchor/blob/master/CHANGELOG.md -// [0.24.0] - 2022-04-12 -// Breaking -// ts: Make Provider an interface and adjust its signatures and add AnchorProvider implementor class (#1707). -import { AnchorProvider } from "@project-serum/anchor"; - -// bash$ export ANCHOR_PROVIDER_URL=https://ssc-dao.genesysgo.net -// bash$ export ANCHOR_WALLET=~/.config/solana/id.json -// bash$ ts-node this_script.ts -const provider = AnchorProvider.env(); -console.log("connection endpoint", provider.connection.rpcEndpoint); -console.log("wallet", provider.wallet.publicKey.toBase58()); - -// to avoid type mismatch, from is used instead of withProvider -const ctx = WhirlpoolContext.from(provider.connection, provider.wallet, ORCA_WHIRLPOOL_PROGRAM_ID, AnchorProvider.defaultOptions()); -const fetcher = new AccountFetcher(ctx.connection); -const client = buildWhirlpoolClient(ctx, fetcher);