ISecurityTokenPositionManagerFactory.sol

ISecurityTokenPositionManagerFactory

Git Source

Interface for deploying and managing SecurityTokenPositionManager instances

Functions

initialize

Initializes the factory contract

function initialize(address initialAuthority, address initialImplementation) external;

Parameters

Name
Type
Description

initialAuthority

address

The address to be granted admin rights

initialImplementation

address

The address of the initial SecurityTokenPositionManager implementation

deploy

Deploys a new SecurityTokenPositionManager instance

function deploy(bytes32 id, bytes calldata initData) external returns (address deployment);

Parameters

Name
Type
Description

id

bytes32

Unique identifier for the deployment

initData

bytes

Initialization data for the new SecurityTokenPositionManager instance

Returns

Name
Type
Description

deployment

address

The address of the newly deployed SecurityTokenPositionManager

upgradeImplementation

Upgrades the implementation contract for all SecurityTokenPositionManager instances

function upgradeImplementation(address newImplementation) external;

Parameters

Name
Type
Description

newImplementation

address

The address of the new implementation contract

getDeploymentAddress

Computes the deployment address for a SecurityTokenPositionManager instance

function getDeploymentAddress(bytes32 id) external view returns (address);

Parameters

Name
Type
Description

id

bytes32

Unique identifier for the deployment

Returns

Name
Type
Description

<none>

address

The computed address where the SecurityTokenPositionManager would be deployed

beacon

Returns the address of the current beacon contract

function beacon() external view returns (address);

Returns

Name
Type
Description

<none>

address

The address of the SecurityTokenPositionManagerBeacon

implementation

Returns the address of the current implementation contract

function implementation() external view returns (address);

Returns

Name
Type
Description

<none>

address

The address of the current SecurityTokenPositionManager implementation

Events

SecurityTokenPositionManagerDeployed

Emitted when a new SecurityTokenPositionManager is deployed

event SecurityTokenPositionManagerDeployed(address indexed positionManager);

Parameters

Name
Type
Description

positionManager

address

The address of the newly deployed SecurityTokenPositionManager

ImplementationUpgraded

Emitted when the implementation contract is upgraded

event ImplementationUpgraded(address indexed oldImplementation, address indexed newImplementation);

Parameters

Name
Type
Description

oldImplementation

address

The address of the previous implementation contract

newImplementation

address

The address of the new implementation contract

Last updated