ISecurityTokenFactory.sol
ISecurityTokenFactory
Interface for the SecurityTokenFactory contract
Defines the structure for deploying and managing SecurityToken instances
Functions
initialize
Initializes the SecurityTokenFactory
Sets up initial roles and deploys the UpgradeableBeacon
Parameters
initialAuthority
address
Address of the initial admin
initialImplementation
address
Address of the initial SecurityToken implementation contract
getDeploymentAddress
Returns the deterministic deployment address for a given id
Parameters
id
bytes32
Unique identifier for the deployment
Returns
<none>
address
The computed address where the SecurityToken would be deployed
deploy
Deploys a new SecurityToken instance
Uses Create2 for deterministic address generation
Parameters
id
bytes32
Unique identifier for the deployment
initData
bytes
Initialization data for the new SecurityToken instance
Returns
deployment
address
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
newImplementation
address
Address of the new implementation contract
beacon
Returns the address of the SecurityTokenBeacon
Returns
<none>
address
Address of the SecurityTokenBeacon
implementation
Returns the address of the current SecurityToken implementation
Returns
<none>
address
Address of the current implementation
Events
SecurityTokenDeployed
Emitted when a new SecurityToken is deployed
Parameters
token
address
Address of the newly deployed SecurityToken
ImplementationUpgraded
Emitted when the implementation is upgraded
Parameters
oldImplementation
address
Address of the previous implementation
newImplementation
address
Address of the new implementation
Last updated