GLAMIDL Reference

upsert_registered_position

Creates or updates a registered position configuration.

Accounts

AccountRoleDescription
glam_statewritable`glam_state` account required by the `upsert_registered_position` instruction (see program source for the full constraint).
glam_signersigner, writable`glam_signer` account required by the `upsert_registered_position` instruction (see program source for the full constraint).
glam_vaultwritable`glam_vault` account required by the `upsert_registered_position` instruction (see program source for the full constraint).
observation_statewritable`observation_state` account required by the `upsert_registered_position` instruction (see program source for the full constraint).
integration_authorityread-only`integration_authority` account required by the `upsert_registered_position` instruction (see program source for the full constraint).
glam_protocol_programread-only`glam_protocol_program` account required by the `upsert_registered_position` instruction (see program source for the full constraint).
system_programread-only`system_program` account required by the `upsert_registered_position` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
configPositionConfig

Policy & permissions

  • Signer must hold the RPI Configure ACL permission on the GLAM state and be on the position's configure allowlist.
  • Persistence is gated through GLAM Protocol's owner-only protocol-policy persistence path — so a delegate with Configure cannot complete the policy change by itself.
  • Vault registered-position coverage is also updated through cpi_proxy side effects.