This repo contains packages for integration with DefiTuna Backend
- TunaApiClient: The
@crypticdot/defituna-apipackage includes a client for DefiTuna's public API. This allows to fetch the latest data from DefiTuna's on-chain program in a fast and efficient way without using Solana's RPC.
# NPM
npm install @crypticdot/defituna-api
# Yarn
yarn add @crypticdot/defituna-api
# PNPM
pnpm add @crypticdot/defituna-apiHere are some basic examples of how to use the package.
import { TunaApiClient } from "@crypticdot/defituna-api";
export const ApiClient = new TunaApiClient("https://api.defituna.com/api");const userTunaPositions = await ApiClient.getUserTunaPositions(
"CYCf8sBj4zLZheRovh37rWLe7pK8Yn5G7nb4SeBmgfMG",
);- Make changes first
- Before commiting run
pnpm changesetand complete steps - Commit to a new branch and create a PR
- When pipeline succeeds - merge a PR and wait until the packages are published