Docs.rs
  • gfx-swap-0.1.0
    • gfx-swap 0.1.0
    • Permalink
    • Docs.rs crate page
    • MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • dovahcrow
    • Dependencies
      • anchor-lang ^0.18 normal
      • anchor-spl ^0.18 normal
      • borsh ^0.9 normal
      • enum_dispatch ^0.3 normal
      • fehler ^1 normal
      • num-derive ^0.3 normal
      • num-traits ^0.2 normal
      • solana-program ^1 normal
      • spl-associated-token-account ^1 normal
      • spl-math ^0.1 normal
      • spl-token ^3 normal
      • thiserror ^1 normal
      • anchor-client ^0.18 dev
      • anyhow ^1 dev
      • env_logger ^0.9 dev
      • gfx-solana-utils ^0.1 dev
      • once_cell ^1 dev
      • prettytable-rs ^0.8 dev
      • proptest ^1 dev
      • roots ^0.0.7 dev
      • serial_test ^0.5 dev
      • solana-client ^1 dev
      • solana-sdk ^1 dev
      • structopt ^0.3 dev
      • gfx-solana-utils ^0.1 build
      • solana-sdk ^1 build
    • Versions
    • 16.12% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

gfx_swap0.1.0

Crate Items

  • Structs
  • Enums
  • Constants
  • Statics
  • Traits
  • Functions

List of all items

Structs

  • ConfigPool
  • ConstantProductCurve
  • CreatePool
  • Deposit1
  • Deposit2
  • Fees
  • LPMint
  • MintLPTo
  • Pool
  • PoolConfig
  • StableCurve
  • Swap
  • Withdraw1
  • Withdraw2
  • WithdrawFee
  • accounts::ConfigPool
  • accounts::CreatePool
  • accounts::Deposit1
  • accounts::Deposit2
  • accounts::MintLPTo
  • accounts::Swap
  • accounts::Withdraw1
  • accounts::Withdraw2
  • accounts::WithdrawFee
  • instruction::ConfigPool
  • instruction::CreatePool
  • instruction::Deposit1
  • instruction::Deposit2
  • instruction::MintLpTo
  • instruction::Swap
  • instruction::Withdraw1
  • instruction::Withdraw2
  • instruction::WithdrawFee
  • program::Pool

Enums

  • ErrorCode
  • RoundDirection
  • SwapCurve
  • TradeDirection

Traits

  • CurveCalculator
  • DerivedAccountIdentifier

Functions

  • check_id
  • entry
  • entrypoint
  • id
  • pool::config_pool
  • pool::create_pool
  • pool::deposit1
  • pool::deposit2
  • pool::mint_lp_to
  • pool::swap
  • pool::withdraw1
  • pool::withdraw2
  • pool::withdraw_fee

Statics

  • ID

Constants

  • LP_TOKEN_DECIMALS