repo_id stringclasses 563
values | file_path stringlengths 40 166 | content stringlengths 1 2.94M | __index_level_0__ int64 0 0 |
|---|---|---|---|
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/testDataTypes.ts | import { ZERO } from "@orca-so/common-sdk";
import { Keypair, PublicKey } from "@solana/web3.js";
import BN from "bn.js";
import invariant from "tiny-invariant";
import type {
PositionBundleData,
TickArray,
TickArrayData,
TickData,
WhirlpoolContext,
} from "../../src";
import {
PDAUtil,
POSITION_BUNDLE_SI... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/test-consts.ts | import * as anchor from "@coral-xyz/anchor";
import { TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID } from "@solana/spl-token";
import BN from "bn.js";
export const TEST_TOKEN_PROGRAM_ID = new anchor.web3.PublicKey(
TOKEN_PROGRAM_ID.toString(),
);
export const TEST_TOKEN_2022_PROGRAM_ID = new anchor.web3.PublicKey(
TOKE... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/metaplex.ts | // To eliminate deps on @metaplex-foundation/mpl-token-metadata
// Copied from https://github.com/orca-so/orca-sdks/blob/main/packages/token-sdk/src/metadata/client/metaplex-client.ts
import { PublicKey } from "@solana/web3.js";
import invariant from "tiny-invariant";
const METADATA_PROGRAM_ID = new PublicKey(
"met... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/test-builders.ts | import type { AnchorProvider } from "@coral-xyz/anchor";
import type { PDA } from "@orca-so/common-sdk";
import { AddressUtil, MathUtil, Percentage } from "@orca-so/common-sdk";
import {
getAssociatedTokenAddressSync,
TOKEN_2022_PROGRAM_ID,
TOKEN_PROGRAM_ID,
} from "@solana/spl-token";
import type { PublicKey } f... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/utils.ts | import type { AnchorProvider } from "@coral-xyz/anchor";
import { web3 } from "@coral-xyz/anchor";
import { TransactionBuilder } from "@orca-so/common-sdk";
export function systemTransferTx(
provider: AnchorProvider,
toPubkey: web3.PublicKey,
lamports: number,
): TransactionBuilder {
return new TransactionBuil... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/pool-utils.test.ts | import { PublicKey } from "@solana/web3.js";
import { PoolUtil } from "../../src/utils/public/pool-utils";
import * as assert from "assert";
const MINTS: { [symbol: string]: PublicKey } = {
FTM: new PublicKey("EsPKhGTMf3bGoy4Qm7pCv3UCcWqAmbC1UGHBTDxRjjD4"),
SOL: new PublicKey("So11111111111111111111111111111111111... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/assert.ts | import type { BN, Program } from "@coral-xyz/anchor";
import { web3 } from "@coral-xyz/anchor";
import { ONE } from "@orca-so/common-sdk";
import {
AccountLayout,
NATIVE_MINT,
getAssociatedTokenAddressSync,
} from "@solana/spl-token";
import type { PublicKey } from "@solana/web3.js";
import * as assert from "asse... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/swap-test-utils.ts | import type * as anchor from "@coral-xyz/anchor";
import type { Percentage } from "@orca-so/common-sdk";
import { NATIVE_MINT } from "@solana/spl-token";
import type { PublicKey } from "@solana/web3.js";
import type BN from "bn.js";
import type { TickSpacing } from ".";
import type { Whirlpool, WhirlpoolClient, Whirlpo... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/graph-test-data.ts | import type { Address } from "@coral-xyz/anchor";
import type { PoolTokenPair } from "../../src";
export const solConnectedPools: PoolTokenPair[] = [
{
address: "7qbRF6YsyGuLUVs6Y1q64bdVrfe4ZcUUz1JRdoVNUJnm",
tokenMintA: "So11111111111111111111111111111111111111112",
tokenMintB: "RLBxxFkseAZ4RgJH3Sqn8jXx... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/index.ts | export * from "./test-consts";
export * from "./token";
export * from "./utils";
export * from "./assert";
export enum TickSpacing {
One = 1,
Stable = 8,
ThirtyTwo = 32,
SixtyFour = 64,
Standard = 128,
FullRangeOnly = 32768,
}
| 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/token.ts | import type { AnchorProvider } from "@coral-xyz/anchor";
import { BN, web3 } from "@coral-xyz/anchor";
import { TokenUtil, TransactionBuilder } from "@orca-so/common-sdk";
import type { AuthorityType } from "@solana/spl-token";
import {
AccountLayout,
NATIVE_MINT,
TOKEN_PROGRAM_ID,
createApproveInstruction,
c... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/whirlpools-test-utils.ts | import BN from "bn.js";
import type { WhirlpoolContext, WhirlpoolData } from "../../src";
import { getTokenBalance } from "./token";
export type VaultAmounts = {
tokenA: BN;
tokenB: BN;
};
export async function getVaultAmounts(
ctx: WhirlpoolContext,
whirlpoolData: WhirlpoolData,
) {
return {
tokenA: ne... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/init-utils.ts | import * as anchor from "@coral-xyz/anchor";
import type { PDA } from "@orca-so/common-sdk";
import { AddressUtil, MathUtil } from "@orca-so/common-sdk";
import {
NATIVE_MINT,
TOKEN_2022_PROGRAM_ID,
TOKEN_PROGRAM_ID,
getAssociatedTokenAddressSync,
} from "@solana/spl-token";
import type { PublicKey } from "@sol... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/fixture.ts | import type { BN } from "@coral-xyz/anchor";
import { NATIVE_MINT } from "@solana/spl-token";
import { Keypair, PublicKey } from "@solana/web3.js";
import { TickSpacing, ZERO_BN } from ".";
import type {
InitConfigParams,
InitPoolParams,
WhirlpoolContext,
} from "../../src";
import { TickUtil } from "../../src";
... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/v2/transfer-fee.ts | // [Mar 12, 2024] SetTransferFee instruction is not supported in @solana/spl-token, so we need to build instructions manually...
import {
TOKEN_2022_PROGRAM_ID,
TokenInstruction,
TokenUnsupportedInstructionError,
TransferFeeInstruction,
programSupportsExtensions,
} from "@solana/spl-token";
import type { Pub... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/v2/test-transfer-hook-program.ts | import type { AnchorProvider } from "@coral-xyz/anchor";
import { web3 } from "@coral-xyz/anchor";
import type { AccountMeta } from "@solana/web3.js";
import { getExtraAccountMetasForHookProgram } from "./token-2022";
import {
TEST_TOKEN_2022_PROGRAM_ID,
TEST_TRANSFER_HOOK_PROGRAM_ID,
} from "../test-consts";
impor... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/v2/confidential-transfer.ts | // [Mar 6, 2024] ConfidentialTransfer is not supported in @solana/spl-token, so we need to build instructions manually...
import {
ExtensionType,
TOKEN_2022_PROGRAM_ID,
TokenInstruction,
TokenUnsupportedInstructionError,
getExtensionTypes,
getMint,
programSupportsExtensions,
} from "@solana/spl-token";
i... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/v2/token-2022.ts | import type { AnchorProvider } from "@coral-xyz/anchor";
import { BN, web3 } from "@coral-xyz/anchor";
import {
AddressUtil,
TokenUtil,
TransactionBuilder,
U64_MAX,
} from "@orca-so/common-sdk";
import type { Mint, TransferFee } from "@solana/spl-token";
import {
AccountLayout,
AccountState,
ExtensionType... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/v2/aquarium-v2.ts | import * as anchor from "@coral-xyz/anchor";
import type { PDA } from "@orca-so/common-sdk";
import { AddressUtil, MathUtil } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import { Keypair } from "@solana/web3.js";
import Decimal from "decimal.js";
import { TickSpacing } from "..";
impor... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/v2/fixture-v2.ts | import type { BN } from "@coral-xyz/anchor";
import { Keypair, PublicKey } from "@solana/web3.js";
import { TickSpacing, ZERO_BN } from "..";
import type {
InitConfigParams,
InitPoolV2Params,
WhirlpoolContext,
} from "../../../src";
import { TickUtil } from "../../../src";
import { initTickArray } from "../init-u... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/v2/init-utils-v2.ts | import * as anchor from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import { MathUtil } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import { ComputeBudgetProgram, Keypair } from "@solana/web3.js";
import type BN from "bn.js";
import Decimal from "decima... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/utils/v2/swap-test-utils-v2.ts | import type * as anchor from "@coral-xyz/anchor";
import type { Percentage } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import type BN from "bn.js";
import type { TickSpacing } from "..";
import type {
Whirlpool,
WhirlpoolClient,
WhirlpoolContext,
} from "../../../src";
import {... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/types/anchor-types.test.ts | import * as assert from "assert";
import { AccountName, getAccountSize } from "../../../src";
describe("anchor-types", () => {
it("all whirlpool account names exist in IDL", async () => {
type ExpectedSize = { [a in AccountName]: number };
const expectedSizes: ExpectedSize = {
[AccountName.WhirlpoolsCo... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/whirlpool-impl-closePosition.test.ts | import * as anchor from "@coral-xyz/anchor";
import { MathUtil, Percentage } from "@orca-so/common-sdk";
import type { Account } from "@solana/spl-token";
import { getAssociatedTokenAddressSync } from "@solana/spl-token";
import * as assert from "assert";
import BN from "bn.js";
import Decimal from "decimal.js";
import... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/position-impl.test.ts | import * as anchor from "@coral-xyz/anchor";
import { Percentage } from "@orca-so/common-sdk";
import {
getAssociatedTokenAddressSync,
TOKEN_2022_PROGRAM_ID,
} from "@solana/spl-token";
import * as assert from "assert";
import Decimal from "decimal.js";
import {
buildWhirlpoolClient,
decreaseLiquidityQuoteByLiq... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/position-impl-collectRewards.test.ts | import * as anchor from "@coral-xyz/anchor";
import { MathUtil } from "@orca-so/common-sdk";
import {
getAssociatedTokenAddressSync,
TOKEN_2022_PROGRAM_ID,
} from "@solana/spl-token";
import * as assert from "assert";
import BN from "bn.js";
import Decimal from "decimal.js";
import type { Whirlpool, WhirlpoolClient... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/whirlpool-impl-collectFeesAndRewardsForPositions.test.ts | import * as anchor from "@coral-xyz/anchor";
import type { SendTxRequest } from "@orca-so/common-sdk";
import {
MathUtil,
TransactionBuilder,
TransactionProcessor,
ZERO,
} from "@orca-so/common-sdk";
import {
NATIVE_MINT,
TOKEN_2022_PROGRAM_ID,
TOKEN_PROGRAM_ID,
createAssociatedTokenAccountInstruction,
... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/position-impl-collectFees.test.ts | import * as anchor from "@coral-xyz/anchor";
import { BN } from "@coral-xyz/anchor";
import { MathUtil } from "@orca-so/common-sdk";
import {
getAssociatedTokenAddressSync,
TOKEN_2022_PROGRAM_ID,
} from "@solana/spl-token";
import * as assert from "assert";
import Decimal from "decimal.js";
import type { Whirlpool,... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/whirlpool-client-impl.test.ts | import * as anchor from "@coral-xyz/anchor";
import * as assert from "assert";
import Decimal from "decimal.js";
import {
buildWhirlpoolClient,
PDAUtil,
PriceMath,
SPLASH_POOL_TICK_SPACING,
TickUtil,
WhirlpoolContext,
} from "../../../src";
import { IGNORE_CACHE } from "../../../src/network/public/fetcher";... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/whirlpool-impl.test.ts | import * as anchor from "@coral-xyz/anchor";
import { MathUtil, Percentage } from "@orca-so/common-sdk";
import {
createBurnInstruction,
createCloseAccountInstruction,
getAssociatedTokenAddressSync,
TOKEN_2022_PROGRAM_ID,
} from "@solana/spl-token";
import * as assert from "assert";
import BN from "bn.js";
impo... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/quote/decrease-liquidity-quote.test.ts | import { Percentage } from "@orca-so/common-sdk";
import * as assert from "assert";
import BN from "bn.js";
import type { DecreaseLiquidityQuoteParam } from "../../../../src";
import {
MAX_SQRT_PRICE_BN,
MAX_TICK_INDEX,
MIN_SQRT_PRICE_BN,
MIN_TICK_INDEX,
PriceMath,
decreaseLiquidityQuoteByLiquidityWithParam... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/quote/increase-liquidity-quote-by-input-token.test.ts | import { Percentage, ZERO } from "@orca-so/common-sdk";
import { PublicKey } from "@solana/web3.js";
import * as assert from "assert";
import BN from "bn.js";
import {
PriceMath,
increaseLiquidityQuoteByInputTokenWithParams,
increaseLiquidityQuoteByInputTokenWithParamsUsingPriceSlippage,
increaseLiquidityQuoteB... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/quote/increase-liquidity-quote-by-liq.test.ts | import { Percentage, ZERO } from "@orca-so/common-sdk";
import assert from "assert";
import BN from "bn.js";
import {
PriceMath,
increaseLiquidityQuoteByLiquidityWithParams,
} from "../../../../src";
import {
getTokenAFromLiquidity,
getTokenBFromLiquidity,
} from "../../../../src/utils/position-util";
import { ... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/swap/swap-array.test.ts | import * as anchor from "@coral-xyz/anchor";
import { AddressUtil, Percentage, ZERO } from "@orca-so/common-sdk";
import * as assert from "assert";
import BN from "bn.js";
import {
PriceMath,
SwapUtils,
TICK_ARRAY_SIZE,
WhirlpoolContext,
buildWhirlpoolClient,
swapQuoteByInputToken,
swapQuoteWithParams,
} ... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/swap/swap-traverse.test.ts | import * as anchor from "@coral-xyz/anchor";
import { Percentage } from "@orca-so/common-sdk";
import * as assert from "assert";
import BN from "bn.js";
import {
buildWhirlpoolClient,
MAX_SQRT_PRICE,
MAX_TICK_INDEX,
MIN_SQRT_PRICE,
MIN_TICK_INDEX,
PriceMath,
swapQuoteByInputToken,
swapQuoteByOutputToken... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/swap/swap-dev-fee.test.ts | import * as anchor from "@coral-xyz/anchor";
import type { Address } from "@coral-xyz/anchor";
import { Percentage } from "@orca-so/common-sdk";
import { Keypair } from "@solana/web3.js";
import * as assert from "assert";
import BN from "bn.js";
import type { Whirlpool } from "../../../../src";
import {
buildWhirlpoo... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/swap/swap-with-fallback.test.ts | import * as anchor from "@coral-xyz/anchor";
import { Percentage } from "@orca-so/common-sdk";
import * as assert from "assert";
import BN from "bn.js";
import type { TwoHopSwapV2Params } from "../../../../src";
import {
ORCA_WHIRLPOOL_PROGRAM_ID,
PDAUtil,
PriceMath,
UseFallbackTickArray,
WhirlpoolContext,
... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/swap/swap-edge-case.test.ts | import * as anchor from "@coral-xyz/anchor";
import { Percentage } from "@orca-so/common-sdk";
import * as assert from "assert";
import BN from "bn.js";
import {
PriceMath,
WhirlpoolContext,
buildWhirlpoolClient,
swapQuoteByInputToken,
swapQuoteByOutputToken,
} from "../../../../src";
import { IGNORE_CACHE } ... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/swap | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/swap/v2/swap-array.test.ts | import * as anchor from "@coral-xyz/anchor";
import { AddressUtil, Percentage, ZERO } from "@orca-so/common-sdk";
import * as assert from "assert";
import BN from "bn.js";
import {
PriceMath,
SwapUtils,
TICK_ARRAY_SIZE,
WhirlpoolContext,
buildWhirlpoolClient,
swapQuoteByInputToken,
swapQuoteWithParams,
} ... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/swap | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/swap/v2/swap-traverse.test.ts | import * as anchor from "@coral-xyz/anchor";
import { Percentage } from "@orca-so/common-sdk";
import * as assert from "assert";
import BN from "bn.js";
import {
buildWhirlpoolClient,
MAX_SQRT_PRICE,
MAX_TICK_INDEX,
MIN_SQRT_PRICE,
MIN_TICK_INDEX,
PriceMath,
swapQuoteByInputToken,
swapQuoteByOutputToken... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/utils/position-util.test.ts | import * as assert from "assert";
import { PriceMath } from "../../../../src";
import {
PositionStatus,
PositionUtil,
} from "../../../../src/utils/position-util";
describe("PositionUtil tests", () => {
const tickLowerIndex = 64;
const tickUpperIndex = 128;
describe("getPositionStatus", () => {
it("tick... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/utils/position-bundle-util.test.ts | import * as assert from "assert";
import { PositionBundleUtil, POSITION_BUNDLE_SIZE } from "../../../../src";
import { buildPositionBundleData } from "../../../utils/testDataTypes";
describe("PositionBundleUtil tests", () => {
const occupiedEmpty: number[] = [];
const occupiedPartial: number[] = [0, 1, 5, 49, 128,... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/utils/price-math.test.ts | import { MathUtil, Percentage } from "@orca-so/common-sdk";
import assert from "assert";
import BN from "bn.js";
import Decimal from "decimal.js";
import {
MAX_SQRT_PRICE_BN,
MAX_TICK_INDEX,
MIN_SQRT_PRICE_BN,
MIN_TICK_INDEX,
PriceMath,
} from "../../../../src";
function toSqrtPrice(n: number) {
return Pri... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/utils/pool-graph.test.ts | import type { Address } from "@coral-xyz/anchor";
import { AddressUtil } from "@orca-so/common-sdk";
import * as assert from "assert";
import type { Path, PathSearchEntries, PoolTokenPair } from "../../../../src";
import { PoolGraphBuilder, PoolGraphUtils } from "../../../../src";
import {
feeTierPoolsGraphData,
so... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/utils/token-extension-util.test.ts | import * as anchor from "@coral-xyz/anchor";
import { BN } from "@coral-xyz/anchor";
import type { MintWithTokenProgram } from "@orca-so/common-sdk";
import { MathUtil } from "@orca-so/common-sdk";
import * as assert from "assert";
import Decimal from "decimal.js";
import {
IGNORE_CACHE,
TokenExtensionUtil,
Whirl... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/utils/fetcher-util.test.ts | import * as anchor from "@coral-xyz/anchor";
import { BN } from "@coral-xyz/anchor";
import * as assert from "assert";
import {
getAllPositionAccountsByOwner,
IGNORE_CACHE,
toTx,
WhirlpoolContext,
} from "../../../../src";
import { systemTransferTx, TickSpacing } from "../../../utils";
import { defaultConfirmOp... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/utils/tick-utils.test.ts | import * as assert from "assert";
import { TickUtil, MIN_TICK_INDEX, MAX_TICK_INDEX } from "../../../../src";
describe("TickUtil tests", () => {
describe("getFullRangeTickIndex", () => {
function checkGetFullRangeTickIndex(
tickSpacing: number,
minMaxAbs: number,
) {
const [min, max] = Tick... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/utils/pool-utils.test.ts | import * as assert from "assert";
import { TokenType, PoolUtil } from "../../../../src";
import { testWhirlpoolData } from "../../../utils/testDataTypes";
import { Keypair } from "@solana/web3.js";
describe("PoolUtils tests", () => {
describe("getTokenType", () => {
it("Token is tokenA", async () => {
cons... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/utils/tick-array-sequence.test.ts | import { TICK_ARRAY_SIZE } from "../../../../src";
import * as assert from "assert";
import { TickArraySequence } from "../../../../src/quotes/swap/tick-array-sequence";
import { buildTickArrayData } from "../../../utils/testDataTypes";
import { TickArrayIndex } from "../../../../src/quotes/swap/tick-array-index";
impo... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/whirlpools/utils/swap-utils.test.ts | import * as anchor from "@coral-xyz/anchor";
import { Keypair } from "@solana/web3.js";
import * as assert from "assert";
import type { TickArray, TickArrayData, TickData } from "../../../../src";
import {
ORCA_WHIRLPOOL_PROGRAM_ID,
PDAUtil,
SwapDirection,
SwapUtils,
TICK_ARRAY_SIZE,
} from "../../../../src";... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/tests/sdk/router/router-util-priceImpact.test.ts | import { Percentage } from "@orca-so/common-sdk";
import { PublicKey } from "@solana/web3.js";
import * as assert from "assert";
import BN from "bn.js";
import Decimal from "decimal.js";
import { PriceMath, RouterUtils } from "../../../src";
import { U64 } from "../../../src/utils/math/constants";
const maxDecimalAccu... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/context.ts | import type { Idl } from "@coral-xyz/anchor";
import { AnchorProvider, Program } from "@coral-xyz/anchor";
import type {
BuildOptions,
LookupTableFetcher,
TransactionBuilderOptions,
Wallet,
WrappedSolAccountCreateMethod,
} from "@orca-so/common-sdk";
import type {
Commitment,
Connection,
PublicKey,
Se... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/whirlpool-client.ts | import type { Address } from "@coral-xyz/anchor";
import type { Percentage, TransactionBuilder } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import type { WhirlpoolContext } from "./context";
import { WhirlpoolClientImpl } from "./impl/whirlpool-client-impl";
import type { DevFeeSwapIn... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/index.ts | import Decimal from "decimal.js";
export * from "./context";
export * from "./impl/position-impl";
export * from "./ix";
export * from "./network/public";
export * from "./prices";
export * from "./quotes/public";
export * from "./router/public";
export * from "./types/public";
export * from "./types/public/anchor-typ... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { PDA } from "@orca-so/common-sdk";
import type { Whirlpool } from "./artifacts/whirlpool";
import * as ix from "./instructions";
/**
* Instruction builders for the Whirlpools program.
*
* @category Core
*/
export class WhirlpoolIx {
/**
* Initiali... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/impl/whirlpool-impl.ts | import type { Address } from "@coral-xyz/anchor";
import { BN, translateAddress } from "@coral-xyz/anchor";
import type { Percentage } from "@orca-so/common-sdk";
import {
AddressUtil,
TokenUtil,
TransactionBuilder,
ZERO,
resolveOrCreateATAs,
} from "@orca-so/common-sdk";
import {
getAssociatedTokenAddressS... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/impl/position-impl.ts | import type { Address } from "@coral-xyz/anchor";
import type {
Instruction,
ResolvedTokenAddressInstruction,
} from "@orca-so/common-sdk";
import {
AddressUtil,
TokenUtil,
TransactionBuilder,
ZERO,
resolveOrCreateATAs,
} from "@orca-so/common-sdk";
import { NATIVE_MINT, getAssociatedTokenAddressSync } fr... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/impl/util.ts | import BN from "bn.js";
import type { TokenInfo } from "..";
import { PoolUtil } from "..";
import type {
WhirlpoolAccountFetchOptions,
WhirlpoolAccountFetcherInterface,
} from "../network/public/fetcher";
import type {
TokenAccountInfo,
WhirlpoolData,
WhirlpoolRewardInfo,
WhirlpoolRewardInfoData,
} from ".... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/impl/whirlpool-client-impl.ts | import type { Address } from "@coral-xyz/anchor";
import { AddressUtil, TransactionBuilder } from "@orca-so/common-sdk";
import { Keypair, PublicKey } from "@solana/web3.js";
import invariant from "tiny-invariant";
import type { WhirlpoolContext } from "../context";
import { initTickArrayIx } from "../instructions";
im... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/update-fees-and-rewards-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
import type { Instruction } from "@orca-so/common-sdk";
/**
* Parameters to update fees and reward values for a position.
*
* @category Instruction Types
* @... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/set-reward-authority-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Parameters to update the reward authority at a particular rewardIndex on a Whirlpool.
*
* @catego... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/swap-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import { TOKEN_PROGRAM_ID } from "@solana/spl-token";
import type { PublicKey } from "@solana/web3.js";
import type BN from "bn.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Raw parameters a... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/open-bundled-position-ix.ts | import * as anchor from "@coral-xyz/anchor";
import type { Program } from "@coral-xyz/anchor";
import type { Instruction, PDA } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import { SystemProgram } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* ... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/set-collect-protocol-fees-authority-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Parameters to set the collect fee authority in a WhirlpoolsConfig
*
* @category Instruction Types... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/set-reward-authority-by-super-authority-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Parameters to update the reward authority at a particular rewardIndex on a Whirlpool.
*
* @catego... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/decrease-liquidity-ix.ts | import type { BN, Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import { TOKEN_PROGRAM_ID } from "@solana/spl-token";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Parameters to remove liquidity from a pos... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/collect-reward-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import { TOKEN_PROGRAM_ID } from "@solana/spl-token";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Parameters to collect rewards from a reward i... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/set-protocol-fee-rate-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Parameters to set fee rate for a Whirlpool.
*
* @category Instruction Types
* @param whirlpool -... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/initialize-position-bundle-ix.ts | import * as anchor from "@coral-xyz/anchor";
import type { Program } from "@coral-xyz/anchor";
import type { Instruction, PDA } from "@orca-so/common-sdk";
import {
ASSOCIATED_TOKEN_PROGRAM_ID,
TOKEN_PROGRAM_ID,
} from "@solana/spl-token";
import type { Keypair, PublicKey } from "@solana/web3.js";
import { SystemPr... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/two-hop-swap-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import { TOKEN_PROGRAM_ID } from "@solana/spl-token";
import type { PublicKey } from "@solana/web3.js";
import type BN from "bn.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Parameters to ex... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/close-bundled-position-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Parameters to close a bundled position in a Whirlpool.
*
* @category Instruction Types
* @param ... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/delete-position-bundle-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import { TOKEN_PROGRAM_ID } from "@solana/spl-token";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Parameters to delete a PositionBundle account... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/set-fee-rate-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Parameters to set fee rate for a Whirlpool.
*
* @category Instruction Types
* @param whirlpool -... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/initialize-tick-array-ix.ts | import * as anchor from "@coral-xyz/anchor";
import type { Program } from "@coral-xyz/anchor";
import type { Instruction, PDA } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Parameters to initialize a TickArray account.
*
... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/set-default-fee-rate-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
import { PDAUtil } from "../utils/public";
/**
* Parameters to set the default fee rate for a FeeTier.
... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/initialize-reward-ix.ts | import * as anchor from "@coral-xyz/anchor";
import type { Program } from "@coral-xyz/anchor";
import { TOKEN_PROGRAM_ID } from "@solana/spl-token";
import type { Keypair, PublicKey } from "@solana/web3.js";
import { SystemProgram } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
impor... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/initialize-config-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Keypair, PublicKey } from "@solana/web3.js";
import { SystemProgram } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
import type { Instruction } from "@orca-so/common-sdk";
/**
* Parameters to initialize a WhirlpoolsCon... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/close-position-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import { TOKEN_PROGRAM_ID } from "@solana/spl-token";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Parameters to close a position in a Whirlpool... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/set-reward-emissions-super-authority-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Parameters to set rewards emissions for a reward in a Whirlpool
*
* @category Instruction Types
... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/collect-protocol-fees-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import { TOKEN_PROGRAM_ID } from "@solana/spl-token";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Parameters to collect protocol fees for a Whi... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/set-fee-authority-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Parameters to set the fee authority in a WhirlpoolsConfig
*
* @category Instruction Types
* @par... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/set-default-protocol-fee-rate-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Parameters to set the default fee rate for a FeeTier.
*
* @category Instruction Types
* @param w... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/open-position-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction, PDA } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import { METADATA_PROGRAM_ADDRESS, WHIRLPOOL_NFT_UPDATE_AUTH } from "..";
import type { Whirlpool } from "../artifacts/whirlpool";
import type {
OpenPosition... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/initialize-fee-tier-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { PDA } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import { SystemProgram } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
import type { Instruction } from "@orca-so/common-sdk";
/**
* P... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/index.ts | export * from "./close-bundled-position-ix";
export * from "./close-position-ix";
export * from "./close-position-with-token-extensions-ix";
export * from "./collect-fees-ix";
export * from "./collect-protocol-fees-ix";
export * from "./collect-reward-ix";
export * from "./composites";
export * from "./decrease-liquidi... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/collect-fees-ix.ts | import type { Program } from "@coral-xyz/anchor";
import { TOKEN_PROGRAM_ID } from "@solana/spl-token";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
import type { Instruction } from "@orca-so/common-sdk";
/**
* Parameters to collect fees from a position.
... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/open-position-with-token-extensions-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction, PDA } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import { WHIRLPOOL_NFT_UPDATE_AUTH } from "..";
import type { Whirlpool } from "../artifacts/whirlpool";
import { openPositionWithTokenExtensionsAccounts } fro... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/initialize-pool-ix.ts | import type { BN, Program } from "@coral-xyz/anchor";
import type { Instruction, PDA } from "@orca-so/common-sdk";
import { TOKEN_PROGRAM_ID } from "@solana/spl-token";
import type { Keypair, PublicKey } from "@solana/web3.js";
import { SystemProgram, SYSVAR_RENT_PUBKEY } from "@solana/web3.js";
import type { Whirlpool... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/set-reward-emissions-ix.ts | import type { BN, Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Parameters to set rewards emissions for a reward in a Whirlpool
*
* @category Instruction Typ... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/increase-liquidity-ix.ts | import type { Program } from "@coral-xyz/anchor";
import { TOKEN_PROGRAM_ID } from "@solana/spl-token";
import type { PublicKey } from "@solana/web3.js";
import type BN from "bn.js";
import type { Whirlpool } from "../artifacts/whirlpool";
import type { Instruction } from "@orca-so/common-sdk";
/**
* Parameters to i... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/close-position-with-token-extensions-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import { TOKEN_2022_PROGRAM_ID } from "@solana/spl-token";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../artifacts/whirlpool";
/**
* Parameters to close a position (based on... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/composites/swap-with-route.ts | import type {
Percentage,
ResolvedTokenAddressInstruction,
} from "@orca-so/common-sdk";
import {
AddressUtil,
EMPTY_INSTRUCTION,
TokenUtil,
TransactionBuilder,
ZERO,
} from "@orca-so/common-sdk";
import type { Account } from "@solana/spl-token";
import {
NATIVE_MINT,
TOKEN_PROGRAM_ID,
createAssocia... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/composites/collect-all-txn.ts | import type { Address } from "@coral-xyz/anchor";
import type {
Instruction,
ResolvedTokenAddressInstruction,
} from "@orca-so/common-sdk";
import {
TokenUtil,
TransactionBuilder,
ZERO,
resolveOrCreateATAs,
} from "@orca-so/common-sdk";
import { NATIVE_MINT, getAssociatedTokenAddressSync } from "@solana/spl... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/composites/index.ts | export * from "./collect-all-txn";
export * from "./collect-protocol-fees";
export * from "./swap-async";
| 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/composites/collect-protocol-fees.ts | import type { Address } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import {
AddressUtil,
TokenUtil,
TransactionBuilder,
} from "@orca-so/common-sdk";
import { NATIVE_MINT } from "@solana/spl-token";
import { PACKET_DATA_SIZE } from "@solana/web3.js";
import type { WhirlpoolC... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/composites/swap-async.ts | import {
resolveOrCreateATAs,
TransactionBuilder,
U64_MAX,
ZERO,
} from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool, WhirlpoolContext } from "../..";
import { SwapUtils } from "../..";
import type { WhirlpoolAccountFetchOptions } from "../../network/public/fe... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/v2/set-config-extension-authority-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../../artifacts/whirlpool";
/**
* Parameters to set the token badge authority in a WhirlpoolsConfigExtension
*
* @category Instr... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/v2/swap-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import type { AccountMeta, PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../../artifacts/whirlpool";
import type { SwapInput } from "../../types/public";
import { MEMO_PROGRAM_ADDRESS } from "... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/v2/delete-token-badge-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import type { PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../../artifacts/whirlpool";
/**
* Parameters to delete a TokenBadge account.
*
* @category Instruction Types
* @param whirlpool... | 0 |
solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions | solana_public_repos/orca-so/whirlpools/legacy-sdk/whirlpool/src/instructions/v2/decrease-liquidity-ix.ts | import type { Program } from "@coral-xyz/anchor";
import type { Instruction } from "@orca-so/common-sdk";
import type { AccountMeta, PublicKey } from "@solana/web3.js";
import type { Whirlpool } from "../../artifacts/whirlpool";
import type { DecreaseLiquidityInput } from "../..";
import { MEMO_PROGRAM_ADDRESS } from "... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.