Skip to content

ETSEnrichTarget

Overview

License: MIT

contract ETSEnrichTarget is IETSEnrichTarget, Initializable, ContextUpgradeable, UUPSUpgradeable

Constants info

NAME (0xa3f4df7e)

string constant NAME = "ETSEnrichTarget"

State variables info

etsAccessControls (0x8299f9f9)

contract IETSAccessControls etsAccessControls

ETS access controls smart contract.

etsTarget (0x56c63489)

contract IETSTarget etsTarget

ETS access controls smart contract.

Modifiers info

onlyAdmin

modifier onlyAdmin()

Functions info

constructor

constructor()

oz-upgrades-unsafe-allow: constructor

initialize (0x485cc955)

function initialize(
    IETSAccessControls _etsAccessControls,
    IETSTarget _etsTarget
) public initializer

requestEnrichTarget (0x6a34db1c)

function requestEnrichTarget(uint256 _targetId) public

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
) public

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.