GLAM ConfigProduction
upsert_asset_meta
Creates or updates asset/oracle metadata in GLAM config.
Required conditions
- Creation-style flows require the target account or PDA to be uninitialized or intentionally updatable, the fee payer to be writable, and the System Program to be present when rent or allocation is needed.
Accounts
| Account | Role | Description |
|---|---|---|
| global_config | writable | Global Config PDA storing protocol-wide admin authority, fee settings, referrers, and asset/oracle metadata. |
| admin | signer, writable | Current GLAM Config admin authority that signs protocol configuration changes. |
| system_program | read-only | Solana System Program. Used to pay rent and reallocate the config account when adding new asset metadata. |
Arguments
| Argument | Type | Notes |
|---|---|---|
| asset_meta | AssetMeta |
Policy & permissions
- Signer must be the stored global config admin.
- The instruction inserts or updates an asset-meta record keyed by the asset and oracle pubkeys carried in the argument; existing records with the same pair are overwritten in place. The config account may be reallocated to fit a new record.
- GLAM state owner/delegate authority is not used.