pina_bonding_curve 0.1.0 copy "pina_bonding_curve: ^0.1.0" to clipboard
pina_bonding_curve: ^0.1.0 copied to clipboard

Dart and Flutter client for the Pina Bonding Curve launchpad on Solana: instruction builders, account decoders, PDAs, events, and errors generated from the program IDL.

pina_bonding_curve #

Dart and Flutter client for the Pina Bonding Curve, a Solana launchpad that sells a new token along a configurable price curve and then graduates it into the Pina AMM, for solana_kit. Generated from the program's IDL.

dependencies:
  pina_bonding_curve: ^0.1.0
import 'package:pina_bonding_curve/pina_bonding_curve.dart';
import 'package:solana_kit/solana_kit.dart';

final instruction = getBuyInstruction(
  programAddress: pinaBondingCurveProgramAddress,
  trader: wallet.address,
  config: launch.config,
  launch: launchAddress,
  traderBase: walletBase,
  traderQuote: walletQuote,
  baseVault: launch.baseVault,
  quoteVault: launch.quoteVault,
  baseTokenProgram: tokenProgramAddress,
  quoteTokenProgram: tokenProgramAddress,
  quoteAmountIn: BigInt.from(1000000000),
  minimumBaseOut: BigInt.from(990000000),
);

Full guide: docs/dart.md.

0
likes
145
points
0
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Dart and Flutter client for the Pina Bonding Curve launchpad on Solana: instruction builders, account decoders, PDAs, events, and errors generated from the program IDL.

Homepage
Repository (GitHub)
View/report issues

Topics

#solana #launchpad #bonding-curve #blockchain

License

Apache-2.0 (license)

Dependencies

meta, solana_kit_accounts, solana_kit_addresses, solana_kit_codecs_core, solana_kit_codecs_data_structures, solana_kit_codecs_numbers, solana_kit_codecs_strings, solana_kit_errors, solana_kit_instructions, solana_kit_rpc_types

More

Packages that depend on pina_bonding_curve