Build & register a mandate
1. Author a permission
forge build2. Simulate before authorizing
sailor mandate simulate --address MyPermission --sma 0xYourSMA \
--target 0xRouter --calldata 0x... --expect pass3. Deploy and register
# deploy a compiled permission and register it in one flow (owner signs in the browser):
sailor mandate deploy --contract MyPermission --attach --sma 0xYourSMA \
--args '["0xPermissionSigner", ["0xTarget"]]'
# or register an already-deployed permission:
sailor mandate attach --address 0xPermission --sma 0xYourSMA4. Confirm and sign the mandate
Critical: ERC-20 approvals need explicit coverage
Changing the mandate later
Last updated

