GLAMIDL Reference
GLAM ConfigProduction

update_referrer

Updates protocol referrer configuration.

Handler narrative

  1. Load the GLAM state or program account required by the instruction and verify the signer.
  2. Verify global config authority, then create, update, or remove protocol-wide fee/referrer/asset metadata.

Required conditions

  • The submitted accounts must match the declared account list, signer requirements, writable requirements, fixed program addresses, and account relationships shown below.
  • Configuration changes must pass owner or authorized-manager checks and, when the state or mint timelock is active, must follow the propose/apply timing model instead of taking effect immediately.

Accounts

AccountRoleDescription
global_configwritableProgram-derived account used by this instruction; clients should prefer SDK helpers when available.
fee_authoritysignerInstruction-specific account supplied by the caller or SDK.

Arguments

ArgumentTypeNotes
referrerpubkeyReplacement protocol referrer account.

Policy & permissions

  • No external integration enablement is required beyond the program-level functionality involved in this instruction.
  • Only the owner is expected. Delegates do not receive this capability by being added; it must be granted explicitly if supported.

Cross-instruction constraints

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