AttestationRegistryFactory
Inherits: Factory
Factory for deploying AttestationRegistry diamonds
Enables both global and entity-specific attestation registries
Functions
constructor
Deploy AttestationRegistryFactory
constructor(address _facetRegistry, address _globalAccessManager)
Factory("AttestationRegistryFactory", _facetRegistry, _globalAccessManager, "AttestationRegistryFactory");
Parameters
_facetRegistry
address
Address of the FacetRegistry
_globalAccessManager
address
Address of the GlobalAccessManager
deployAttestationRegistry
Deploy a new AttestationRegistry diamond
function deployAttestationRegistry(
string memory registryName,
address easAddress,
address schemaRegistryAddress,
bool isGlobal,
bytes32 salt
) external returns (address registry);
Parameters
registryName
string
Name for the registry (e.g., "GlobalRegistry", "AcmeCorpRegistry")
easAddress
address
Address of the EAS contract
schemaRegistryAddress
address
Address of the SchemaRegistry contract
isGlobal
bool
Whether this is a global registry (protocol-wide)
salt
bytes32
Salt for CREATE2 deployment
Returns
registry
address
Address of the deployed AttestationRegistry
getRegistryAddress
Get the address of a registry deployment
function getRegistryAddress(string memory registryName, address deployer, bytes32 salt)
external
view
returns (address registry);
Parameters
registryName
string
Name of the registry
deployer
address
Address of the deployer
salt
bytes32
Salt used for deployment
Returns
registry
address
Predicted address of the registry
Events
AttestationRegistryDeployed
event AttestationRegistryDeployed(
address indexed registry, address indexed deployer, bool isGlobal, string registryName
);
Last updated
Was this helpful?