@stepfinance/step-swap
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published


step logo

@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,
);

Readme

Keywords

none

Package Sidebar

Install

npm i @stepfinance/step-swap

Weekly Downloads

49

Version

1.1.1

License

MIT

Unpacked Size

130 kB

Total Files

27

Last publish

Collaborators

  • step-finance