Skip to main content

Signals contract

Methods​

approve​

function approve(address to, uint256 tokenId) external nonpayable

See {IERC721-approve}.

Parameters​

NameTypeDescription
toaddressundefined
tokenIduint256undefined

balanceOf​

function balanceOf(address owner) external view returns (uint256)

See {IERC721-balanceOf}.

Parameters​

NameTypeDescription
owneraddressundefined

Returns​

NameTypeDescription
_0uint256undefined

createDataType​

function createDataType(string newDataType) external nonpayable

Parameters​

NameTypeDescription
newDataTypestringundefined

createSignal​

function createSignal(uint256 dataTypeID, bytes32 dataHash) external nonpayable

Parameters​

NameTypeDescription
dataTypeIDuint256undefined
dataHashbytes32undefined

createSignals​

function createSignals(uint256[] dataTypeID, bytes32[] dataHash) external nonpayable

Parameters​

NameTypeDescription
dataTypeIDuint256[]undefined
dataHashbytes32[]undefined

dataTypes​

function dataTypes(uint256) external view returns (string)

Parameters​

NameTypeDescription
_0uint256undefined

Returns​

NameTypeDescription
_0stringundefined

getApproved​

function getApproved(uint256 tokenId) external view returns (address)

See {IERC721-getApproved}.

Parameters​

NameTypeDescription
tokenIduint256undefined

Returns​

NameTypeDescription
_0addressundefined

getTrustedForwarder​

function getTrustedForwarder() external view returns (address)

⚠️ Warning ⚠️ The Forwarder can have a full control over your Recipient. Only trust verified Forwarder.Method is not a required method to allow Recipients to trust multiple Forwarders. Not recommended yet.

Returns​

NameTypeDescription
_0addressThe address of the Forwarder contract that is being used.

isApprovedForAll​

function isApprovedForAll(address owner, address operator) external view returns (bool)

See {IERC721-isApprovedForAll}.

Parameters​

NameTypeDescription
owneraddressundefined
operatoraddressundefined

Returns​

NameTypeDescription
_0boolundefined

isTrustedForwarder​

function isTrustedForwarder(address forwarder) external view returns (bool)

⚠️ Warning ⚠️ The Forwarder can have a full control over your Recipient. Only trust verified Forwarder.

Parameters​

NameTypeDescription
forwarderaddressThe address of the Forwarder contract that is being used.

Returns​

NameTypeDescription
_0boolisTrustedForwarder true if the Forwarder is trusted to forward relayed transactions by this Recipient.

name​

function name() external view returns (string)

See {IERC721Metadata-name}.

Returns​

NameTypeDescription
_0stringundefined

owner​

function owner() external view returns (address)

Returns the address of the current owner.

Returns​

NameTypeDescription
_0addressundefined

ownerOf​

function ownerOf(uint256 tokenId) external view returns (address)

See {IERC721-ownerOf}.

Parameters​

NameTypeDescription
tokenIduint256undefined

Returns​

NameTypeDescription
_0addressundefined

pause​

function pause() external nonpayable

paused​

function paused() external view returns (bool)

Returns true if the contract is paused, and false otherwise.

Returns​

NameTypeDescription
_0boolundefined

renounceOwnership​

function renounceOwnership() external nonpayable

Leaves the contract without owner. It will not be possible to call onlyOwner functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.

safeTransferFrom​

function safeTransferFrom(address from, address to, uint256 tokenId) external nonpayable

See {IERC721-safeTransferFrom}.

Parameters​

NameTypeDescription
fromaddressundefined
toaddressundefined
tokenIduint256undefined

safeTransferFrom​

function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) external nonpayable

See {IERC721-safeTransferFrom}.

Parameters​

NameTypeDescription
fromaddressundefined
toaddressundefined
tokenIduint256undefined
databytesundefined

setApprovalForAll​

function setApprovalForAll(address operator, bool approved) external nonpayable

See {IERC721-setApprovalForAll}.

Parameters​

NameTypeDescription
operatoraddressundefined
approvedboolundefined

setBaseURI​

function setBaseURI(string newBaseURI) external nonpayable

Parameters​

NameTypeDescription
newBaseURIstringundefined

setIssuerBaseURI​

function setIssuerBaseURI(string newBaseURI) external nonpayable

Parameters​

NameTypeDescription
newBaseURIstringundefined

setTrustedForwarder​

function setTrustedForwarder(address forwarder) external nonpayable

Parameters​

NameTypeDescription
forwarderaddressundefined

signals​

function signals(uint256) external view returns (uint256 dataTypeID, uint256 timestamp, bytes32 dataHash, address issuer)

Parameters​

NameTypeDescription
_0uint256undefined

Returns​

NameTypeDescription
dataTypeIDuint256undefined
timestampuint256undefined
dataHashbytes32undefined
issueraddressundefined

supportsInterface​

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

See {IERC165-supportsInterface}.

Parameters​

NameTypeDescription
interfaceIdbytes4undefined

Returns​

NameTypeDescription
_0boolundefined

symbol​

function symbol() external view returns (string)

See {IERC721Metadata-symbol}.

Returns​

NameTypeDescription
_0stringundefined

tokenByIndex​

function tokenByIndex(uint256 index) external pure returns (uint256)

Parameters​

NameTypeDescription
indexuint256undefined

Returns​

NameTypeDescription
_0uint256undefined

tokenOfOwnerByIndex​

function tokenOfOwnerByIndex(address) external view returns (uint256)

Parameters​

NameTypeDescription
_0addressundefined

Returns​

NameTypeDescription
_0uint256undefined

tokenURI​

function tokenURI(uint256 tokenId) external view returns (string)

See {IERC721Metadata-tokenURI}.

Parameters​

NameTypeDescription
tokenIduint256undefined

Returns​

NameTypeDescription
_0stringundefined

tokenURIs​

function tokenURIs(address) external view returns (string)

Parameters​

NameTypeDescription
_0addressundefined

Returns​

NameTypeDescription
_0stringundefined

totalSupply​

function totalSupply() external view returns (uint256)

Returns​

NameTypeDescription
_0uint256undefined

transferFrom​

function transferFrom(address from, address to, uint256 tokenId) external nonpayable

See {IERC721-transferFrom}.

Parameters​

NameTypeDescription
fromaddressundefined
toaddressundefined
tokenIduint256undefined

transferOwnership​

function transferOwnership(address newOwner) external nonpayable

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

Parameters​

NameTypeDescription
newOwneraddressundefined

unpause​

function unpause() external nonpayable

Events​

Approval​

event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)

Emitted when owner enables approved to manage the tokenId token.

Parameters​

NameTypeDescription
owner indexedaddressundefined
approved indexedaddressundefined
tokenId indexeduint256undefined

ApprovalForAll​

event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

Emitted when owner enables or disables (approved) operator to manage all of its assets.

Parameters​

NameTypeDescription
owner indexedaddressundefined
operator indexedaddressundefined
approvedboolundefined

DataTypeCreated​

event DataTypeCreated(uint256 indexed newDataTypeID, address indexed issuer)

Parameters​

NameTypeDescription
newDataTypeID indexeduint256undefined
issuer indexedaddressundefined

NewBaseURI​

event NewBaseURI(string newBaseURI)

Parameters​

NameTypeDescription
newBaseURIstringundefined

NewIssuerBaseURI​

event NewIssuerBaseURI(string newBaseURI, address indexed issuer)

Parameters​

NameTypeDescription
newBaseURIstringundefined
issuer indexedaddressundefined

OwnershipTransferred​

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters​

NameTypeDescription
previousOwner indexedaddressundefined
newOwner indexedaddressundefined

Paused​

event Paused(address account)

Emitted when the pause is triggered by account.

Parameters​

NameTypeDescription
accountaddressundefined

SignalCreated​

event SignalCreated(uint256 indexed dataTypeID, bytes32 indexed dataHash)

Parameters​

NameTypeDescription
dataTypeID indexeduint256undefined
dataHash indexedbytes32undefined

Transfer​

event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)

Emitted when tokenId token is transferred from from to to.

Parameters​

NameTypeDescription
from indexedaddressundefined
to indexedaddressundefined
tokenId indexeduint256undefined

Unpaused​

event Unpaused(address account)

Emitted when the pause is lifted by account.

Parameters​

NameTypeDescription
accountaddressundefined

Errors​

ERC721IncorrectOwner​

error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner)

Indicates an error related to the ownership over a particular token. Used in transfers.

Parameters​

NameTypeDescription
senderaddressAddress whose tokens are being transferred.
tokenIduint256Identifier number of a token.
owneraddressAddress of the current owner of a token.

ERC721InsufficientApproval​

error ERC721InsufficientApproval(address operator, uint256 tokenId)

Indicates a failure with the operator’s approval. Used in transfers.

Parameters​

NameTypeDescription
operatoraddressAddress that may be allowed to operate on tokens without being their owner.
tokenIduint256Identifier number of a token.

ERC721InvalidApprover​

error ERC721InvalidApprover(address approver)

Indicates a failure with the approver of a token to be approved. Used in approvals.

Parameters​

NameTypeDescription
approveraddressAddress initiating an approval operation.

ERC721InvalidOperator​

error ERC721InvalidOperator(address operator)

Indicates a failure with the operator to be approved. Used in approvals.

Parameters​

NameTypeDescription
operatoraddressAddress that may be allowed to operate on tokens without being their owner.

ERC721InvalidOwner​

error ERC721InvalidOwner(address owner)

Indicates that an address can't be an owner. For example, address(0) is a forbidden owner in EIP-20. Used in balance queries.

Parameters​

NameTypeDescription
owneraddressAddress of the current owner of a token.

ERC721InvalidReceiver​

error ERC721InvalidReceiver(address receiver)

Indicates a failure with the token receiver. Used in transfers.

Parameters​

NameTypeDescription
receiveraddressAddress to which tokens are being transferred.

ERC721InvalidSender​

error ERC721InvalidSender(address sender)

Indicates a failure with the token sender. Used in transfers.

Parameters​

NameTypeDescription
senderaddressAddress whose tokens are being transferred.

ERC721NonexistentToken​

error ERC721NonexistentToken(uint256 tokenId)

Indicates a tokenId whose owner is the zero address.

Parameters​

NameTypeDescription
tokenIduint256Identifier number of a token.

EnforcedPause​

error EnforcedPause()

The operation failed because the contract is paused.

ExpectedPause​

error ExpectedPause()

The operation failed because the contract is not paused.

OwnableInvalidOwner​

error OwnableInvalidOwner(address owner)

The owner is not a valid owner account. (eg. address(0))

Parameters​

NameTypeDescription
owneraddressundefined

OwnableUnauthorizedAccount​

error OwnableUnauthorizedAccount(address account)

The caller account is not authorized to perform an operation.

Parameters​

NameTypeDescription
accountaddressundefined