PositionDescriptor.sol
Manages the metadata of the Primitive protocol position tokens
Methods
getMetadata
Returns the metadata of a position token
Solidity
function getMetadata(address engine, uint256 tokenId) external view returns (string)
Parameters
Name | Type | Description |
---|---|---|
engine | address | Address of the PrimitiveEngine contract |
tokenId | uint256 | Id of the position token (pool id) |
Returns
Name | Type | Description |
---|---|---|
_0 | string | Metadata as a base64 encoded JSON string |
positionRenderer
Returns the address of the PositionRenderer contract
Solidity
function positionRenderer() external view returns (address)
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |