Documentation
    Preparing search index...

    Type Alias WhirlpoolDeployment

    Identifies a deployed whirlpool program and the config account it operates against.

    PDA derivation and instruction targeting both depend on these two values, so they are bundled together to keep them consistent. Pass a WhirlpoolDeployment (or omit it to fall back to DEFAULT_WHIRLPOOL_DEPLOYMENT, the mutable mainnet program) to the SDK functions and PDA helpers that accept it.

    Use the named constants (WhirlpoolDeployment.mainnet, WhirlpoolDeployment.devnet, WhirlpoolDeployment.mainnetImmutable) for the official deployments, or WhirlpoolDeployment.custom to point at a fork or local deployment.

    type WhirlpoolDeployment = {
        configAddress: Address;
        programId: Address;
    }
    Index

    Properties

    configAddress: Address

    The WhirlpoolsConfig account address that pairs with this program.

    programId: Address

    The program id of the targeted whirlpool program.