Skip to content

IETSEnrichTarget

Overview

License: MIT

interface IETSEnrichTarget

Events info

RequestEnrichTarget

event RequestEnrichTarget(uint256 targetId)

emitted when Target enrichment is requested via requestEnrichTarget().

Parameters:

NameTypeDescription
targetIduint256Target record to enrich.

Functions info

requestEnrichTarget (0x6a34db1c)

function requestEnrichTarget(uint256 _targetId) external

Request enrichment for a Target using the hybrid ETS Enrich Target API.

Parameters:

NameTypeDescription
_targetIduint256Id of Target being enriched.

fulfillEnrichTarget (0x5b6411ab)

function fulfillEnrichTarget(
    uint256 _targetId,
    string calldata _ipfsHash,
    uint256 _httpStatus
) external

Updates Target record with additional metadata stored behind IPFS hash.

Parameters:

NameTypeDescription
_targetIduint256Id of Target being enriched & updated.
_ipfsHashstringIPFS hash with metadata related to the Target.
_httpStatusuint256HTTP response code from off-chain ETS Enrich Target API.