ISecurityTokenFactory.sol
ISecurityTokenFactory
Git Source
Interface for the SecurityTokenFactory contract
Defines the structure for deploying and managing SecurityToken instances
Initializes the SecurityTokenFactory
Sets up initial roles and deploys the UpgradeableBeacon
function initialize(address initialAuthority, address initialImplementation) external;
Parameters
Address of the initial admin
Address of the initial SecurityToken implementation contract
getDeploymentAddress
Returns the deterministic deployment address for a given id
function getDeploymentAddress(bytes32 id) external view returns (address);
Parameters
Unique identifier for the deployment
Returns
The computed address where the SecurityToken would be deployed
Deploys a new SecurityToken instance
Uses Create2 for deterministic address generation
Parameters
Unique identifier for the deployment
Initialization data for the new SecurityToken instance
Returns
Address of the newly deployed SecurityToken instance
upgradeImplementation
Upgrades the implementation of all deployed SecurityToken instances
Can only be called by addresses with the UPGRADE_ROLE
Parameters
Address of the new implementation contract
Returns the address of the SecurityTokenBeacon
Returns
Address of the SecurityTokenBeacon
Returns the address of the current SecurityToken implementation
Returns
Address of the current implementation
SecurityTokenDeployed
Emitted when a new SecurityToken is deployed
Parameters
Address of the newly deployed SecurityToken
ImplementationUpgraded
Emitted when the implementation is upgraded
Parameters
Address of the previous implementation
Address of the new implementation