GLAMIDL Reference

extend_state

Extends or reallocates GLAM state capacity for additional configuration data.

Handler narrative

  1. Load the GLAM state or program account required by the instruction and verify the signer.
  2. Apply the requested state, policy, pricing, or system action after enforcing owner/delegate checks.

Required conditions

  • The submitted accounts must match the declared account list, signer requirements, writable requirements, fixed program addresses, and account relationships shown below.
  • The GLAM state account is the source of truth for owner, enabled integrations, delegate permissions, policies, assets, borrowable assets, timelock settings, mint linkage, and pricing records.
  • Owner-level actions must be signed by the state owner unless the instruction is explicitly an integration callback, mint-authority callback, delegate action, or emergency access update.

Accounts

AccountRoleDescription
glam_statewritableState account owned by the GLAM Protocol program; it records vault configuration, policies, and pricing records.
glam_signersigner, writableCalling authority. It must be the owner or a delegate with the explicit permission required by this instruction.
system_programread-onlyStandard Solana program account required by the instruction.

Arguments

ArgumentTypeNotes
bytesu32Number of additional bytes to allocate to the state account so it can store more configuration, ACL, policy, asset, or pricing data.

Policy & permissions

  • No external integration enablement is required beyond the program-level functionality involved in this instruction.
  • Caller must be the owner or a delegate with the explicit protocol permission required by this instruction.

Cross-instruction constraints

  • No additional cross-instruction constraint is documented beyond account initialization, authority checks, and policy validation.