Skip to content

IETSRelayer

Overview

License: MIT

interface IETSRelayer

Events info

RelayerPauseToggledByOwner

event RelayerPauseToggledByOwner(address relayerAddress)

Emitted when an IETSRelayer contract is paused/unpaused by owner.

Parameters:

NameTypeDescription
relayerAddressaddressAddress of relayer contract.

RelayerOwnerChanged

event RelayerOwnerChanged(address relayerAddress)

Emitted when an IETSRelayer contract has changed owners.

Parameters:

NameTypeDescription
relayerAddressaddressAddress of relayer contract.

Functions info

pause (0x8456cb59)

function pause() external

Pause this relayer contract.

This function can only be called by the owner when the contract is unpaused.

unpause (0x3f4ba83a)

function unpause() external

Unpause this relayer contract.

This function can only be called by the owner when the contract is paused.

changeOwner (0xa6f9dae1)

function changeOwner(address newOwner) external

Transfer this contract to a new owner.

This function can only be called by the owner when the contract is paused.

Parameters:

NameTypeDescription
newOwneraddressAddress of the new contract owner.

supportsInterface (0x01ffc9a7)

function supportsInterface(bytes4 interfaceId) external view returns (bool)

Broadcast support for IETSRelayer interface to external contracts.

ETSCore will only add relayer contracts that implement IETSRelayer interface. Your implementation should broadcast that it implements IETSRelayer interface.

Return values:

NameTypeDescription
[0]boolboolean: true if this contract implements the interface defined by interfaceId

isPaused (0xb187bd26)

function isPaused() external view returns (bool)

Check whether this contract has been pasued by the owner.

Pause functionality should be provided by OpenZeppelin Pausable utility.

Return values:

NameTypeDescription
[0]boolboolean: true for paused; false for not paused.

getOwner (0x893d20e8)

function getOwner() external view returns (address payable)

Returns address of an IETSRelayer contract owner.

Return values:

NameTypeDescription
[0]address payableaddress of contract owner.

getRelayerName (0x613facdd)

function getRelayerName() external view returns (string memory)

Returns human readable name for this IETSRelayer contract.

Return values:

NameTypeDescription
[0]stringname of the Relayer contract as a string.

getCreator (0x0ee2cb10)

function getCreator() external view returns (address payable)

Returns address of an IETSRelayer contract creator.

Return values:

NameTypeDescription
[0]address payableaddress of the creator of the Relayer contract.

applyTags (0x42a7bfa5)

function applyTags(
    IETS.TaggingRecordRawInput[] calldata _rawInput
) external payable

Apply one or more tags to a targetURI using tagging record raw client input data.

Parameters:

NameTypeDescription
_rawInputstruct IETS.TaggingRecordRawInput[]Raw client input data formed as TaggingRecordRawInput struct.

replaceTags (0x0f9becab)

function replaceTags(
    IETS.TaggingRecordRawInput[] calldata _rawInput
) external payable

Replace entire tag set in tagging record using raw data for record lookup.

If supplied tag strings don't have CTAGs, new ones are minted.

Parameters:

NameTypeDescription
_rawInputstruct IETS.TaggingRecordRawInput[]Raw client input data formed as TaggingRecordRawInput struct.

removeTags (0x1002bc83)

function removeTags(
    IETS.TaggingRecordRawInput[] calldata _rawInput
) external payable

Remove one or more tags from a tagging record using raw data for record lookup.

Parameters:

NameTypeDescription
_rawInputstruct IETS.TaggingRecordRawInput[]Raw client input data formed as TaggingRecordRawInput struct.

getOrCreateTagIds (0x5edab3ed)

function getOrCreateTagIds(
    string[] calldata _tags
) external payable returns (uint256[] memory _tagIds)

Get or create CTAG tokens from tag strings.

Combo function that accepts a tag strings and returns corresponding CTAG token Id if it exists, or if it doesn't exist, creates a new CTAG and then returns corresponding Id.

Only ETS Publisher contracts may call this function.

Parameters:

NameTypeDescription
_tagsstring[]Array of tag strings.

Return values:

NameTypeDescription
_tagIdsuint256[]Array of Id of CTAG Ids.

computeTaggingFee (0xf8c8ef09)

function computeTaggingFee(
    IETS.TaggingRecordRawInput calldata _rawInput,
    IETS.TaggingAction _action
) external view returns (uint256 fee, uint256 tagCount)

Compute tagging fee for raw input and desired action.

Parameters:

NameTypeDescription
_rawInputstruct IETS.TaggingRecordRawInputRaw client input data formed as TaggingRecordRawInput struct.
_actionenum IETS.TaggingActionInteger representing action to be performed according to enum TaggingAction.

Return values:

NameTypeDescription
feeuint256Calculated tagging fee in ETH/Matic
tagCountuint256Number of new tags being added to tagging record.