SecurityTokenPositionManager.sol
Last updated
Last updated
Inherits: ISecurityTokenPositionManager, ISecurityTokenPositionManagerErrors, ERC721DescribableUpgradeable, ERC721TotalSupplyUpgradeable, SecurityTokenPositionManagerStorage, ERC721RoyaltyUpgradeable, MulticallUpgradeable, AccessManagedUpgradeable
Manages positions for security tokens, allowing minting, burning, and delegation of positions
Implements ERC721 for position tokenization and includes royalty functionality
Initializes the authority for the position manager
This function should only be called once, typically during contract deployment
Parameters
Name | Type | Description |
---|---|---|
Initializes the position manager and its associated ERC721 token
Parameters
Updates the details of a security token
Parameters
Removes a security token from the position manager
Parameters
Sets the default royalty for the contract
Parameters
Sets the royalty for a specific token
Parameters
Mints a new position token representing a locked amount of security tokens
Parameters
Returns
Burns a position and releases the locked security tokens
Parameters
Returns
Sets the delegate for a position's voting power
Parameters
Retrieves the details of a security token
Parameters
Returns
Checks if the contract supports a given interface
Parameters
Returns
Returns the URI for a given token
Parameters
Returns
Retrieves the token data for a position
Parameters
Returns
Internal function to update token ownership and delegate voting power
Parameters
Returns
Internal function to retrieve and encode token and security token data
Parameters
Returns
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
initialAuthority
address
The address to be set as the initial authority
name
string
The name for the ERC721 token representing positions
symbol
string
The symbol for the ERC721 token representing positions
descriptor
address
The address of the descriptor contract
securityToken
address
The address of the security token to update
details
SecurityTokenDetails
The new details for the security token
securityToken
address
The address of the security token to remove
receiver
address
The address to receive royalties
feeNumerator
uint96
The fee numerator for calculating royalties
tokenId
uint256
The ID of the token to set royalties for
receiver
address
The address to receive royalties
feeNumerator
uint96
The fee numerator for calculating royalties
securityToken
address
The address of the security token to be locked in the position
amount
uint256
The amount of security tokens to be locked in the position
recipient
address
The address to receive the minted position token
data
bytes
Additional data for the mint operation
tokenId
uint256
The ID of the newly minted position token
tokenId
uint256
The ID of the position to burn
recipient
address
The address to receive the underlying security tokens
data
TokenData
The TokenData of the burned position
tokenId
uint256
The ID of the position token
target
address
The address of the new delegate
securityToken
address
The address of the security token
<none>
SecurityTokenDetails
The SecurityTokenDetails of the specified security token
interfaceId
bytes4
The interface identifier to check
<none>
bool
bool True if the contract supports the interface, false otherwise
tokenId
uint256
The ID of the token
<none>
string
string The URI of the token
tokenId
uint256
The ID of the position token
<none>
TokenData
The TokenData of the specified position
to
address
The address to transfer ownership to
tokenId
uint256
The ID of the token being transferred
auth
address
The address authorized to make the transfer
<none>
address
address The previous owner of the token
tokenId
uint256
The ID of the token
<none>
bytes
bytes The ABI-encoded token data and associated security token details