Signals contract
Methods
approve
function approve(address to, uint256 tokenId) external nonpayable
See {IERC721-approve}.
Parameters
| Name | Type | Description |
|---|
| to | address | undefined |
| tokenId | uint256 | undefined |
balanceOf
function balanceOf(address owner) external view returns (uint256)
See {IERC721-balanceOf}.
Parameters
| Name | Type | Description |
|---|
| owner | address | undefined |
Returns
| Name | Type | Description |
|---|
| _0 | uint256 | undefined |
createDataType
function createDataType(string newDataType) external nonpayable
Parameters
| Name | Type | Description |
|---|
| newDataType | string | undefined |
createSignal
function createSignal(uint256 dataTypeID, bytes32 dataHash) external nonpayable
Parameters
| Name | Type | Description |
|---|
| dataTypeID | uint256 | undefined |
| dataHash | bytes32 | undefined |
createSignals
function createSignals(uint256[] dataTypeID, bytes32[] dataHash) external nonpayable
Parameters
| Name | Type | Description |
|---|
| dataTypeID | uint256[] | undefined |
| dataHash | bytes32[] | undefined |
dataTypes
function dataTypes(uint256) external view returns (string)
Parameters
| Name | Type | Description |
|---|
| _0 | uint256 | undefined |
Returns
| Name | Type | Description |
|---|
| _0 | string | undefined |
getApproved
function getApproved(uint256 tokenId) external view returns (address)
See {IERC721-getApproved}.
Parameters
| Name | Type | Description |
|---|
| tokenId | uint256 | undefined |
Returns
| Name | Type | Description |
|---|
| _0 | address | undefined |
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
| Name | Type | Description |
|---|
| _0 | address | The address of the Forwarder contract that is being used. |
isApprovedForAll
function isApprovedForAll(address owner, address operator) external view returns (bool)
See {IERC721-isApprovedForAll}.
Parameters
| Name | Type | Description |
|---|
| owner | address | undefined |
| operator | address | undefined |
Returns
| Name | Type | Description |
|---|
| _0 | bool | undefined |
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
| Name | Type | Description |
|---|
| forwarder | address | The address of the Forwarder contract that is being used. |
Returns
| Name | Type | Description |
|---|
| _0 | bool | isTrustedForwarder true if the Forwarder is trusted to forward relayed transactions by this Recipient. |
name
function name() external view returns (string)
See {IERC721Metadata-name}.
Returns
| Name | Type | Description |
|---|
| _0 | string | undefined |
owner
function owner() external view returns (address)
Returns the address of the current owner.
Returns
| Name | Type | Description |
|---|
| _0 | address | undefined |
ownerOf
function ownerOf(uint256 tokenId) external view returns (address)
See {IERC721-ownerOf}.
Parameters
| Name | Type | Description |
|---|
| tokenId | uint256 | undefined |
Returns
| Name | Type | Description |
|---|
| _0 | address | undefined |
pause
function pause() external nonpayable
paused
function paused() external view returns (bool)
Returns true if the contract is paused, and false otherwise.
Returns
| Name | Type | Description |
|---|
| _0 | bool | undefined |
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
| Name | Type | Description |
|---|
| from | address | undefined |
| to | address | undefined |
| tokenId | uint256 | undefined |
safeTransferFrom
function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) external nonpayable
See {IERC721-safeTransferFrom}.
Parameters
| Name | Type | Description |
|---|
| from | address | undefined |
| to | address | undefined |
| tokenId | uint256 | undefined |
| data | bytes | undefined |
setApprovalForAll
function setApprovalForAll(address operator, bool approved) external nonpayable
See {IERC721-setApprovalForAll}.
Parameters
| Name | Type | Description |
|---|
| operator | address | undefined |
| approved | bool | undefined |
setBaseURI
function setBaseURI(string newBaseURI) external nonpayable
Parameters
| Name | Type | Description |
|---|
| newBaseURI | string | undefined |
setIssuerBaseURI
function setIssuerBaseURI(string newBaseURI) external nonpayable
Parameters
| Name | Type | Description |
|---|
| newBaseURI | string | undefined |
setTrustedForwarder
function setTrustedForwarder(address forwarder) external nonpayable
Parameters
| Name | Type | Description |
|---|
| forwarder | address | undefined |
signals
function signals(uint256) external view returns (uint256 dataTypeID, uint256 timestamp, bytes32 dataHash, address issuer)
Parameters
| Name | Type | Description |
|---|
| _0 | uint256 | undefined |
Returns
| Name | Type | Description |
|---|
| dataTypeID | uint256 | undefined |
| timestamp | uint256 | undefined |
| dataHash | bytes32 | undefined |
| issuer | address | undefined |
supportsInterface
function supportsInterface(bytes4 interfaceId) external view returns (bool)
See {IERC165-supportsInterface}.
Parameters
| Name | Type | Description |
|---|
| interfaceId | bytes4 | undefined |
Returns
| Name | Type | Description |
|---|
| _0 | bool | undefined |
symbol
function symbol() external view returns (string)
See {IERC721Metadata-symbol}.
Returns
| Name | Type | Description |
|---|
| _0 | string | undefined |
tokenByIndex
function tokenByIndex(uint256 index) external pure returns (uint256)
Parameters
| Name | Type | Description |
|---|
| index | uint256 | undefined |
Returns
| Name | Type | Description |
|---|
| _0 | uint256 | undefined |
tokenOfOwnerByIndex
function tokenOfOwnerByIndex(address) external view returns (uint256)
Parameters
| Name | Type | Description |
|---|
| _0 | address | undefined |
Returns
| Name | Type | Description |
|---|
| _0 | uint256 | undefined |
tokenURI
function tokenURI(uint256 tokenId) external view returns (string)
See {IERC721Metadata-tokenURI}.
Parameters
| Name | Type | Description |
|---|
| tokenId | uint256 | undefined |
Returns
| Name | Type | Description |
|---|
| _0 | string | undefined |
tokenURIs
function tokenURIs(address) external view returns (string)
Parameters
| Name | Type | Description |
|---|
| _0 | address | undefined |
Returns
| Name | Type | Description |
|---|
| _0 | string | undefined |
totalSupply
function totalSupply() external view returns (uint256)
Returns
| Name | Type | Description |
|---|
| _0 | uint256 | undefined |
transferFrom
function transferFrom(address from, address to, uint256 tokenId) external nonpayable
See {IERC721-transferFrom}.
Parameters
| Name | Type | Description |
|---|
| from | address | undefined |
| to | address | undefined |
| tokenId | uint256 | undefined |
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
| Name | Type | Description |
|---|
| newOwner | address | undefined |
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
| Name | Type | Description |
|---|
owner indexed | address | undefined |
approved indexed | address | undefined |
tokenId indexed | uint256 | undefined |
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
| Name | Type | Description |
|---|
owner indexed | address | undefined |
operator indexed | address | undefined |
| approved | bool | undefined |
DataTypeCreated
event DataTypeCreated(uint256 indexed newDataTypeID, address indexed issuer)
Parameters
| Name | Type | Description |
|---|
newDataTypeID indexed | uint256 | undefined |
issuer indexed | address | undefined |
NewBaseURI
event NewBaseURI(string newBaseURI)
Parameters
| Name | Type | Description |
|---|
| newBaseURI | string | undefined |
NewIssuerBaseURI
event NewIssuerBaseURI(string newBaseURI, address indexed issuer)
Parameters
| Name | Type | Description |
|---|
| newBaseURI | string | undefined |
issuer indexed | address | undefined |
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Parameters
| Name | Type | Description |
|---|
previousOwner indexed | address | undefined |
newOwner indexed | address | undefined |
Paused
event Paused(address account)
Emitted when the pause is triggered by account.
Parameters
| Name | Type | Description |
|---|
| account | address | undefined |
SignalCreated
event SignalCreated(uint256 indexed dataTypeID, bytes32 indexed dataHash)
Parameters
| Name | Type | Description |
|---|
dataTypeID indexed | uint256 | undefined |
dataHash indexed | bytes32 | undefined |
Transfer
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
Emitted when tokenId token is transferred from from to to.
Parameters
| Name | Type | Description |
|---|
from indexed | address | undefined |
to indexed | address | undefined |
tokenId indexed | uint256 | undefined |
Unpaused
event Unpaused(address account)
Emitted when the pause is lifted by account.
Parameters
| Name | Type | Description |
|---|
| account | address | undefined |
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
| Name | Type | Description |
|---|
| sender | address | Address whose tokens are being transferred. |
| tokenId | uint256 | Identifier number of a token. |
| owner | address | Address 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
| Name | Type | Description |
|---|
| operator | address | Address that may be allowed to operate on tokens without being their owner. |
| tokenId | uint256 | Identifier 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
| Name | Type | Description |
|---|
| approver | address | Address initiating an approval operation. |
ERC721InvalidOperator
error ERC721InvalidOperator(address operator)
Indicates a failure with the operator to be approved. Used in approvals.
Parameters
| Name | Type | Description |
|---|
| operator | address | Address 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
| Name | Type | Description |
|---|
| owner | address | Address of the current owner of a token. |
ERC721InvalidReceiver
error ERC721InvalidReceiver(address receiver)
Indicates a failure with the token receiver. Used in transfers.
Parameters
| Name | Type | Description |
|---|
| receiver | address | Address to which tokens are being transferred. |
ERC721InvalidSender
error ERC721InvalidSender(address sender)
Indicates a failure with the token sender. Used in transfers.
Parameters
| Name | Type | Description |
|---|
| sender | address | Address whose tokens are being transferred. |
ERC721NonexistentToken
error ERC721NonexistentToken(uint256 tokenId)
Indicates a tokenId whose owner is the zero address.
Parameters
| Name | Type | Description |
|---|
| tokenId | uint256 | Identifier number of a token. |
EnforcedPause
The operation failed because the contract is paused.
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
| Name | Type | Description |
|---|
| owner | address | undefined |
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
The caller account is not authorized to perform an operation.
Parameters
| Name | Type | Description |
|---|
| account | address | undefined |