Skip to main content

App

App

Addresses

ChainAddress

Functions

constructor

constructor() internal

app

function app() internal view returns (struct StorageInstance)

appStorage

function appStorage() public view returns (contract IAppStorage)

contractName

function contractName() public view returns (ContractName)

version

function version() public view returns (uint256)

_authorizeUpgrade

function _authorizeUpgrade(address) internal view

__App_ctor

function __App_ctor(struct StorageInstance app_, ContractName name_, uint256 version_) internal

__App_init

function __App_init(struct StorageInstance app_, ContractName name_, uint256 version_) internal

__App_init_setup

function __App_init_setup(struct StorageInstance app_, ContractName name_, uint256 version_) internal

roles

function roles() internal view returns (contract IRoles)

owner

function owner() internal view returns (address)

governor

function governor() internal view returns (address)

guardian

function guardian() internal view returns (address)

Modifiers

onlyApp

modifier onlyApp()

onlyLatestContract

modifier onlyLatestContract(ContractName name, address sender)

onlyLatestContractOrSelf

modifier onlyLatestContractOrSelf(ContractName name, address sender)

onlyOwner

modifier onlyOwner()

onlyGovernor

modifier onlyGovernor()

onlyGuardian

modifier onlyGuardian()

onlyManager

modifier onlyManager(address account)

Errors

UnauthorizedUpgrade

error UnauthorizedUpgrade()

UnauthorizedContract

error UnauthorizedContract()

AccountManagerOnly

This action is limited only to the recipient and its managers delegated with DomFiPerp.setAccountManager

error AccountManagerOnly()

Types

AppSlot

Fields

NameTypeDescription
appStoragecontract IAppStorage
contractNameContractName
versionuint256
struct AppSlot {
contract IAppStorage appStorage;
ContractName contractName;
uint256 version;
}