XVSBridgeAdmin
XVSBridgeAdmin
The XVSBridgeAdmin contract extends a parent contract AccessControlledV8 for access control, and it manages an external contract called XVSProxyOFT. It maintains a registry of function signatures and names, allowing for dynamic function handling i.e checking of access control of interaction with only owner functions.
Solidity API
functionRegistry
A mapping keeps track of function signature associated with function name string.
fallback
Invoked when called function does not exist in the contract.
Return Values
⛔️ Access Requirements
Controlled by AccessControlManager.
setTrustedRemoteAddress
Sets trusted remote on particular chain.
Parameters
⛔️ Access Requirements
Controlled by AccessControlManager.
❌ Errors
ZeroAddressNotAllowed is thrown when remoteAddress_ contract address is zero.
upsertSignature
A setter for the registry of functions that are allowed to be executed from proposals.
Parameters
📅 Events
Emits FunctionRegistryChanged if bool value of function changes.
⛔️ Access Requirements
Only owner.
transferBridgeOwnership
This function transfers the ownership of the bridge from this contract to new owner.
Parameters
⛔️ Access Requirements
Controlled by AccessControlManager.
isTrustedRemote
Returns true if remote address is trustedRemote corresponds to chainId_.
Parameters
Return Values
❌ Errors
ZeroAddressNotAllowed is thrown when remoteAddress_ contract address is zero.
renounceOwnership
Empty implementation of renounce ownership to avoid any mishappening.
Last updated