Aldrin Farming Pool v1 IDL

aldrinv1.1.0DEX / AMM
IDL Identifier
aldrin-farming-pool-v1

Aldrin Market Making Farming Pool v1 enables liquidity providers to stake LP tokens and earn farming rewards. Provides yield incentives for market makers on the Aldrin DEX.

16
Instructions
5
Accounts
0
Events
4
Types

Instructions

initializegetCreationBasketgetRedemptionBasketcreateBasketredeemBasketswapinitializeFarmingstartFarminginitializeFarmingCalccloseFarmingCalccalculateFarmedwithdrawFarmed+4 more

Account Types

PoolFarmingStateFarmingTicketSnapshotQueueFarmingCalc

Integration Examples

Use the Aldrin Farming Pool v1 IDL in your application with these code examples for TypeScript, Rust, and Python.

import { Connection, PublicKey } from "@solana/web3.js";
import { Program, AnchorProvider, Idl } from "@coral-xyz/anchor";

// Load the Aldrin Farming Pool v1 IDL
import idl from "./aldrin farming pool v1.json";

const PROGRAM_ID = new PublicKey("<Aldrin Farming Pool v1_PROGRAM_ID>");

// Set up the provider and program
const connection = new Connection("https://api.mainnet-beta.solana.com");
const provider = new AnchorProvider(connection, wallet, {
  commitment: "confirmed",
});
const program = new Program(idl as Idl, provider);

// Fetch and decode an account
const accountData = await program.account.aldrin_Farming_Pool_v1
  .fetch(accountPublicKey);
console.log("Account data:", accountData);

// Build and send an instruction
const tx = await program.methods
  .initialize(/* ...args */)
  .accounts({
    /* ...required accounts */
  })
  .rpc();
console.log("Transaction signature:", tx);

IDL JSON Preview

aldrin farming pool v1.json
{
  "version": "1.1.0",
  "name": "mm_farming_pool_v1",
  "instructions": [
    {
      "name": "initialize",
      "accounts": [
        {
          "name": "pool",
          "isMut": true,
          "isSigner": false
        },
        {
          "name": "poolMint",
          "isMut": false,
          "isSigner": false
        },
        {
          "name": "lpTokenFreezeVault",
          "isMut": false,
          "isSigner": false
        },
        {
          "name": "baseTokenVault",
          "isMut": false,
          "isSigner": false
        },
        {
          "name": "quoteTokenVault",
          "isMut": false,
...

Frequently Asked Questions

What is the Aldrin Farming Pool v1 IDL?

The Aldrin Farming Pool v1 IDL (Interface Definition Language) is a JSON schema that defines the on-chain program interface for the Aldrin Farming Pool v1 smart contract on Solana. It describes all available instructions, account structures, events, and custom types that developers need to interact with the Aldrin Farming Pool v1 program. This IDL contains 16 instructions, 5 account types, 0 events, and 4 type definitions.

How do I use the Aldrin Farming Pool v1 IDL in my project?

Download the JSON file and import it in your project. With TypeScript, use the @coral-xyz/anchor package to create a Program instance. In Rust, use anchor-client. For Python, use anchorpy. See the integration examples above for complete code snippets in all three languages.

What is the Aldrin Farming Pool v1 program address on Solana?

The Aldrin Farming Pool v1 program identifier is aldrin-farming-pool-v1. Refer to the official aldrin documentation for the latest deployed program address.

What version of the Aldrin Farming Pool v1 IDL is this?

This is version 1.1.0 of the Aldrin Farming Pool v1 IDL. IDL versions correspond to specific program deployments and may be updated as the protocol evolves. Always verify compatibility with the on-chain program version before integrating.