1.1.1 • Published 2 years ago
@stepfinance/step-swap v1.1.1
@stepfinance/step-swap
Installation
yarn add @stepfinance/step-swap
Usage
Querying Step Pool Registry
import {
TokenSwap as StepTokenSwap,
STEP_SWAP_OWNER,
STEP_SWAP_PROGRAM_ID,
} from '@stepfinance/step-swap';
const poolRegistry = await StepTokenSwap.loadPoolRegistry(
connection,
STEP_SWAP_OWNER,
STEP_SWAP_PROGRAM_ID,
);
const poolAccountAddresses = poolRegistry.accounts.slice(
0,
poolRegistry.registrySize,
);