Periphery

Git Source

Inherits: Initializable

State Variables

web3Entry

address public web3Entry;
address public linklist;

Functions

initialize

function initialize(address web3Entry_, address linklist_) external initializer;

linkCharactersInBatch

function linkCharactersInBatch(DataTypes.linkCharactersInBatchData calldata vars) external;

sync

function sync(
    address account,
    string calldata handle,
    string calldata uri,
    address[] calldata toAddresses,
    bytes32 linkType
) external;

migrate

function migrate(DataTypes.MigrateData calldata vars) external;

getNotesByCharacterId

function getNotesByCharacterId(uint256 characterId, uint256 offset, uint256 limit)
    external
    view
    returns (DataTypes.Note[] memory results);

getLinkingCharacterIds

function getLinkingCharacterIds(uint256 fromCharacterId, bytes32 linkType)
    external
    view
    returns (uint256[] memory results);

getLinkingNotes

function getLinkingNotes(uint256 fromCharacterId, bytes32 linkType)
    external
    view
    returns (DataTypes.Note[] memory results);

getLinkingNote

function getLinkingNote(bytes32 linkKey) external view returns (DataTypes.NoteStruct memory);

getLinkingERC721s

function getLinkingERC721s(uint256 fromCharacterId, bytes32 linkType)
    external
    view
    returns (DataTypes.ERC721Struct[] memory results);

getLinkingERC721

function getLinkingERC721(bytes32 linkKey) external view returns (DataTypes.ERC721Struct memory);

getLinkingAnyUris

function getLinkingAnyUris(uint256 fromCharacterId, bytes32 linkType) external view returns (string[] memory results);

getLinkingAnyUri

function getLinkingAnyUri(bytes32 linkKey) external view returns (string memory);

getLinkingAddresses

function getLinkingAddresses(uint256 fromCharacterId, bytes32 linkType) external view returns (address[] memory);

getLinkingLinklistIds

function getLinkingLinklistIds(uint256 fromCharacterId, bytes32 linkType)
    external
    view
    returns (uint256[] memory linklistIds);

getLinkingLinklistId

function getLinkingLinklistId(bytes32 linkKey) external pure returns (uint256 linklistId);

getLinkingAddress

function getLinkingAddress(bytes32 linkKey) external pure returns (address);

getLinkingCharacterId

function getLinkingCharacterId(bytes32 linkKey) external pure returns (uint256 characterId);

_migrate

_migrate will not update handle if the target character already exists

function _migrate(
    address account,
    string memory handle,
    string memory uri,
    address[] memory toAddresses,
    bytes32 linkType
) internal;

_exists

function _exists(uint256 characterId) internal view returns (bool);