Modules§
- accounts
- An Anchor generated module, providing a set of structs
mirroring the structs deriving
Accounts, where each field is aPubkey. This is useful for specifying accounts for a client. - gmsol_
liquidity_ provider - instruction
- An Anchor generated module containing the program’s set of
instructions, where each method handler in the
#[program]mod is associated with a struct defining the input arguments to the method. These should be used directly, when one wants to serialize Anchor instruction data, for example, when speciying instructions on a client. - program
- Module representing the program.
Structs§
- Accept
Authority - Accept
Authority Bumps - Calculate
GtReward - Accounts context for calculating GT reward from a Position
- Calculate
GtReward Bumps - ClaimGt
- Accounts context for claiming GT reward and updating Position snapshot
- Claim
GtBumps - Create
LpToken Controller - Create
LpToken Controller Bumps - Disable
LpToken Controller - Disable
LpToken Controller Bumps - Global
State - Initialize
- Initialize
Bumps - LpToken
Controller - LP Token Controller for managing specific LP token staking
- Position
- Position account to persist LP stake data and snapshot stake-time values
- SetClaim
Enabled - SetClaim
Enabled Bumps - SetPricing
Staleness - SetPricing
Staleness Bumps - Stake
Glv - Accounts context for staking GLV tokens with automatic pricing
- Stake
GlvBumps - StakeGm
- Accounts context for staking GM tokens with automatic pricing
- Stake
GmBumps - Transfer
Authority - Transfer
Authority Bumps - Unstake
Lp - Accounts context for unstaking LP; combines claim + partial/full exit
- Unstake
LpBumps - Update
ApyGradient - Accounts for APY gradient updates (used by sparse and range initializers)
- Update
ApyGradient Bumps - Update
MinStake Value - Update
MinStake Value Bumps
Enums§
Constants§
- APY_
BUCKETS_ U8 - APY_
LAST_ INDEX_ U8 - APY_MAX
- DEFAULT_
PRICING_ STALENESS_ SECONDS - GLOBAL_
STATE_ RESERVED_ LEN - GLOBAL_
STATE_ SEED - ID_
CONST - Const version of
ID - LP_
TOKEN_ CONTROLLER_ RESERVED_ LEN - LP_
TOKEN_ CONTROLLER_ SEED - POSITION_
RESERVED_ LEN - POSITION_
SEED - VAULT_
SEED
Statics§
- ID
- The static program ID
- security_
txt - Static string containing the security.txt file.
Functions§
- check_
id - Confirms that a given pubkey is equivalent to the program ID
- entry
- The Anchor codegen exposes a programming model where a user defines
a set of methods inside of a
#[program]module in a way similar to writing RPC request handlers. The macro then generates a bunch of code wrapping these user defined methods into something that can be executed on Solana. - entrypoint⚠
- Safety
- id
- Returns the program ID
- id_
const - Const version of
ID