Skip to main content

DictionaryLib

Git Source

Functions

assignName

📛 Assign Name
🚀 Deploy Dictionary
📩 Load Dictionary
🔂 Duplicate Dictionary
🧩 Set Function or Bundle
🪟 Upgrade Facade
🤖 Create Dictionary Mock

📛 Assign Name

function assignName(Dictionary_1 memory dictionary, string memory name) internal returns (Dictionary_1 memory);

deploy


🚀 Deploy Dictionary

  • Verifiable
  • Immutable
  • Beacon

function deploy(address owner) internal returns (Dictionary_1 memory dictionary);

deployImmutable

function deployImmutable(Function[] storage functions, address facade)
internal
returns (Dictionary_1 memory dictionary);

deployBeacon

function deployBeacon(address implementation, address owner) internal returns (Dictionary_1 memory dictionary);

load


📩 Load Dictionary

function load(string memory name, address dictionaryAddr) internal returns (Dictionary_1 memory dictionary);

duplicate


🔂 Duplicate Dictionary

function duplicate(Dictionary_1 storage dictionary, address owner)
internal
returns (Dictionary_1 memory duplicatedDictionary);

set


🧩 Set Function or Bundle

function set(Dictionary_1 memory dictionary, bytes4 selector, address implementation)
internal
returns (Dictionary_1 memory);

set

function set(Dictionary_1 memory dictionary, Function memory func) internal returns (Dictionary_1 memory);

set

function set(Dictionary_1 memory dictionary, Bundle storage bundle) internal returns (Dictionary_1 memory);

upgradeFacade


🪟 Upgrade Facade

function upgradeFacade(Dictionary_1 memory dictionary, address newFacade) internal returns (Dictionary_1 memory);

createMock


🤖 Create Dictionary Mock

function createMock(Bundle storage bundle, address owner) internal returns (Dictionary_1 memory dictionary);