Documentation · 04 / 11
Permits
Every plugin carries an 8-bit permit mask held by AccessMatrix. Registration grants the open permits a plugin asks for immediately. The three gated permits — the ones that can move value — are recorded as asked and stay ungranted until a Council motion approves the plugin.
| Bit | Permit | Class | Meaning |
|---|---|---|---|
| 0 | READ_STATE | open | Read price, tick and liquidity for the current invocation. |
| 1 | WRITE_MEMORY | open | Write to its own namespaced slots in PluginMemory. |
| 2 | EXTERNAL_CALL | gated | Call listed targets. Gated: needs Council approval. |
| 3 | MOVE_TOKENS | gated | Move tokens it holds. Gated: needs Council approval. |
| 4 | SET_FEE | open | Bid the pool's next dynamic fee. The hypervisor clamps it to the band. |
| 5 | EMIT_LOGS | open | Emit its own events. |
| 6 | SCHEDULE_JOBS | open | Enqueue deferred jobs that a later swap drains. |
| 7 | REENTER_POOL | gated | Re-enter the PoolManager. Gated: needs Council approval. |