GLAMIDL Reference

commit_oft_transfer

Verifies the OFT send completed and records the resulting transfer.

Required conditions

  • The vault integration ACL must enable this integration before the instruction is accepted; that enablement is defined on the GLAM state account.
  • If the signer is not the owner, the delegate ACL on the GLAM state must contain the exact protocol permission required by this instruction; registering a delegate alone is insufficient.
  • Instruction-specific destination accounts must satisfy the external protocol's own account model; GLAM validates the accounts it needs for authorization and policy enforcement, then passes the remaining protocol accounts through CPI.
  • Asset, amount, and destination restrictions must satisfy the configured transfer or destination policy when that policy is present.

Accounts

AccountRoleDescription
glam_statewritableGLAM state account that stores vault configuration, integration ACLs, delegate permissions, policies, assets, mint linkage, and pricing records.
glam_vaultwritableVault PDA associated with the GLAM state and used as the vault authority.
glam_signersigner, writableCalling authority or fee payer.
cpi_programread-onlyDownstream program invoked by this instruction.
glam_protocol_programread-onlyGLAM Protocol program account used for authorization or CPI.
instructionsread-onlySolana sysvar account.
bridge_registrywritableBridge route, session, registry, or managed-transfer account.
bridge_sessionwritableBridge route, session, registry, or managed-transfer account.
source_token_accountwritableToken account read or written by this instruction.
source_mintread-onlyToken mint account used or validated by this instruction.
auxiliary_token_accountwritableToken account read or written by this instruction.
integration_authorityread-onlyProgram-derived authority used by the integration for downstream invocation.
system_programread-onlySolana System Program.

Arguments

ArgumentTypeNotes
argsCommitOftTransferArgs

Policy & permissions

  • Signer must hold Bridge Send.
  • A matching prepare_oft_transfer instruction must be present in the same transaction.
  • OFT route and transfer policy checks are enforced before the LayerZero OFT send CPI.

Cross-instruction constraints

  • Run after the OFT transfer has been prepared and sent by the bridge flow.