InterfaceLightManager
Functions
updateAgentStatus
Updates agent status, using a proof against the latest known Agent Merkle Root.
Will revert if the provided proof doesn't match the latest merkle root.
function updateAgentStatus(address agent, AgentStatus memory status, bytes32[] memory proof) external;
Parameters
Name | Type | Description |
---|---|---|
agent | address | Agent address |
status | AgentStatus | Structure specifying agent status: (flag, domain, index) |
proof | bytes32[] | Merkle proof of Active status for the agent |
setAgentRoot
Updates the root of Agent Merkle Tree that the Light Manager is tracking. Could be only called by a local Destination contract, which is supposed to verify the attested Agent Merkle Roots.
function setAgentRoot(bytes32 agentRoot) external;
Parameters
Name | Type | Description |
---|---|---|
agentRoot | bytes32 | New Agent Merkle Root |
remoteWithdrawTips
Withdraws locked base message tips from local Origin to the recipient.
Could only be remote-called by BondingManager contract on Synapse Chain. Note: as an extra security check this function returns its own selector, so that Destination could verify that a "remote" function was called when executing a manager message.
function remoteWithdrawTips(uint32 msgOrigin, uint256 proofMaturity, address recipient, uint256 amount)
external
returns (bytes4 magicValue);
Parameters
Name | Type | Description |
---|---|---|
msgOrigin | uint32 | |
proofMaturity | uint256 | |
recipient | address | Address to withdraw tips to |
amount | uint256 | Tips value to withdraw |