Skip to main content

IFdcHub

Primary interface for interacting with FDC.

Sourced from IFdcHub.sol on GitHub.

Functions

fdcInflationConfigurations

The FDC inflation configurations contract.

function fdcInflationConfigurations(
) external view returns (
contract IFdcInflationConfigurations
);

fdcRequestFeeConfigurations

The FDC request fee configurations contract.

function fdcRequestFeeConfigurations(
) external view returns (
contract IFdcRequestFeeConfigurations
);

requestAttestation

Method to request an attestation.

function requestAttestation(
bytes _data
) external payable;

Parameters

  • _data: ABI encoded attestation request

requestsOffsetSeconds

The offset (in seconds) for the requests to be processed during the current voting round.

function requestsOffsetSeconds(
) external view returns (
uint8
);

Events

AttestationRequest

event AttestationRequest(
bytes data,
uint256 fee
)

InflationRewardsOffered

Event emitted when inflation rewards are offered.

event InflationRewardsOffered(
uint24 rewardEpochId,
struct IFdcInflationConfigurations.FdcConfiguration[] fdcConfigurations,
uint256 amount
)

RequestsOffsetSet

event RequestsOffsetSet(
uint8 requestsOffsetSeconds
)