IUsdnProtocol

Git Source

Inherits: IUsdnProtocolImpl, IUsdnProtocolFallback, IUsdnProtocolErrors, IUsdnProtocolEvents

Interface for the USDN protocol and fallback.

Functions

upgradeToAndCall

Upgrades the protocol to a new implementation (check UUPSUpgradeable).

This function should be called by the role with the PROXY_UPGRADE_ROLE.

function upgradeToAndCall(address newImplementation, bytes calldata data) external payable;

Parameters

NameTypeDescription
newImplementationaddressThe address of the new implementation.
databytesThe data to call when upgrading to the new implementation. Passing in empty data skips the delegatecall to newImplementation.