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.

mapping(bytes4 => string) functionRegistry

fallback

Invoked when called function does not exist in the contract.

fallback(bytes data) external returns (bytes)

Return Values

⛔️ Access Requirements

  • Controlled by AccessControlManager.


setTrustedRemoteAddress

Sets trusted remote on particular chain.

function setTrustedRemoteAddress(uint16 remoteChainId_, bytes remoteAddress_) external

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.

function upsertSignature(string[] signatures_, bool[] active_) external

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.

function transferBridgeOwnership(address newOwner_) external

Parameters

⛔️ Access Requirements

  • Controlled by AccessControlManager.


isTrustedRemote

Returns true if remote address is trustedRemote corresponds to chainId_.

function isTrustedRemote(uint16 remoteChainId_, bytes remoteAddress_) external returns (bool)

Parameters

Return Values

❌ Errors

  • ZeroAddressNotAllowed is thrown when remoteAddress_ contract address is zero.


renounceOwnership

Empty implementation of renounce ownership to avoid any mishappening.

function renounceOwnership() public

Last updated