Documentation Index
Fetch the complete documentation index at: https://mintlify.com/rhinestonewtf/warp-router/llms.txt
Use this file to discover all available pages before exploring further.
Overview
RouterManager manages adapter installations, upgrades, and access control for the routing system. It supports both fill and claim adapters with semantic version validation for safe upgrades. Key Features:- Role-based access control for adapter management
- Semantic version validation for adapter upgrades
- Separate storage for fill and claim adapters
- Hotfix support with patch-only upgrade validation
- Atomic fill signer management with pause functionality
Roles
ADD_ROLE
RM_ROLE
State Variables
$atomicFillSigner
address(0), atomic fills are effectively paused.
initialized
Functions
initialize
Initializes the contract when used with a proxy.The address to set as the atomic fill signer.
The address to be granted the ADD_ROLE.
The address to be granted the RM_ROLE.
pauseRouter
Pauses atomic fills by setting the atomic fill signer to the zero address.setAtomicFillSigner
Sets a new atomic fill signer address.The new address to set as the atomic fill signer.
installFillAdapter
Installs a new fill adapter for a specific version and selector.The semantic version of the adapter (2 bytes).
The function selector that the adapter implements.
The address of the adapter contract to install.
- Caller must have ADD_ROLE
- No adapter must be currently installed for this version/selector
- Adapter must have the same major version as the specified version parameter
- Adapter must implement the required interface and pass validation
hotfixFillAdapter
Applies a hotfix to an existing fill adapter.The semantic version of the adapter (2 bytes).
The function selector that the adapter implements.
The address of the new adapter contract for the hotfix.
- Caller must have ADD_ROLE
- An adapter must already be installed for this version/selector
- New adapter version must be only a patch upgrade (no major/minor changes)
- New adapter must implement the required interface and pass validation
forceHotfixFillAdapter
Forces a hotfix to an existing fill adapter without semantic versioning restrictions.The semantic version of the adapter (2 bytes).
The function selector that the adapter implements.
The address of the new adapter contract for the hotfix.
installClaimAdapter
Installs a new claim adapter for a specific version and selector.The semantic version of the adapter (2 bytes).
The function selector that the adapter implements.
The address of the adapter contract to install.
- Caller must have ADD_ROLE
- No adapter must be currently installed for this version/selector
- Adapter must have the same major version as the specified version parameter
- Adapter must implement the required interface and pass validation
hotfixClaimAdapter
Applies a hotfix to an existing claim adapter.The semantic version of the adapter (2 bytes).
The function selector that the adapter implements.
The address of the new adapter contract for the hotfix.
- Caller must have ADD_ROLE
- An adapter must already be installed for this version/selector
- New adapter version must be only a patch upgrade (no major/minor changes)
- New adapter must implement the required interface and pass validation
forceHotfixClaimAdapter
Forces a hotfix to an existing claim adapter without semantic versioning restrictions.The semantic version of the adapter (2 bytes).
The function selector that the adapter implements.
The address of the new adapter contract for the hotfix.
getFillAdapter
Retrieves the fill adapter configuration for a specific version and selector.The semantic version of the adapter (2 bytes).
The function selector that the adapter implements.
adapter(address): The address of the installed fill adapter (address(0) if none)adapterTag(bytes12): The metadata tag associated with the adapter
getClaimAdapter
Retrieves the claim adapter configuration for a specific version and selector.The semantic version of the adapter (2 bytes).
The function selector that the adapter implements.
adapter(address): The address of the installed claim adapter (address(0) if none)adapterTag(bytes12): The metadata tag associated with the adapter
retireFillAdapter
Retires (removes) an existing fill adapter.The semantic version of the adapter to retire (2 bytes).
The function selector of the adapter to retire.
- Caller must have RM_ROLE
- An adapter must be installed for this version/selector combination
retireClaimAdapter
Retires (removes) an existing claim adapter.The semantic version of the adapter to retire (2 bytes).
The function selector of the adapter to retire.
- Caller must have RM_ROLE
- An adapter must be installed for this version/selector combination
setTokenApproval
Sets token approval for an adapter’s settlement layer spender.The adapter contract address.
The token address to approve.
The approval amount.
- Caller must have ADD_ROLE
- Adapter must have a valid settlement layer spender
- Token address must be non-zero