ElektroEventEmitterRouter.sol

View Source: contracts/elektro/event-emitter/ElektroEventEmitterRouter.sol

↗ Extends: Router, Delegator

ElektroEventEmitterRouter

Router for ElektroEventEmitter group (currently 1 impl contract). Created to eliminate possibilities of changing ElektroEventEmitter address in the event of redeployment (upgrade). Since Router contracts do not get redeployed (only implementation contracts do) even when changing functionality or deploying new implementation contracts the address of ElektroEventEmitter saved in Elektro will not change and will keep being this contract's address. This will let us keep all of the events no matter how many changes will be performed to implementations. Initializes Router first then initializes ElektroEventEmitter with registry address through delegatecall(). This initialization is a substitute for constructor because Proxy Pattern is used.

Contract Members

Constants & Variables

bytes4 internal constant INIT_SIG;

Functions

  • (address _resolver, address _roleManager, address _registry)

function (address _resolver, address _roleManager, address _registry) public nonpayable

Arguments

NameTypeDescription

_resolver

address

_roleManager

address

_registry

address

Last updated