AddressDictator.md 1.53 KB

AddressDictator

AddressDictator

The AddressDictator (glory to Arstotzka) is a contract that allows us to safely manipulate many different addresses in the AddressManager without transferring ownership of the AddressManager to a hot wallet or hardware wallet.

Methods

finalOwner

function finalOwner() external view returns (address)

Returns

Name Type Description
_0 address undefined

getNamedAddresses

function getNamedAddresses() external view returns (struct AddressDictator.NamedAddress[])

Returns the full namedAddresses array.

Returns

Name Type Description
_0 AddressDictator.NamedAddress[] undefined

manager

function manager() external view returns (contract Lib_AddressManager)

Returns

Name Type Description
_0 contract Lib_AddressManager undefined

returnOwnership

function returnOwnership() external nonpayable

Transfers ownership of this contract to the finalOwner. Only callable by the Final Owner, which is intended to be our multisig. This function shouldn't be necessary, but it gives a sense of reassurance that we can recover if something really surprising goes wrong.

setAddresses

function setAddresses() external nonpayable

Called to finalize the transfer, this function is callable by anyone, but will only result in an upgrade if this contract is the owner Address Manager.