API Version: v0.3.1

MockRewardManager v0.3.1 API Reference

MockRewardManager

A mock implementation of the Data Streams reward manager for local testing.

MockRewardManager

Errors

Unauthorized

error Unauthorized()

Events

FeePaid

event FeePaid(IRewardManager.FeePayment[] payments, address payer)

Functions

constructor

Initializes the contract with the LINK token address.

constructor(address linkAddress)

Parameters

ParameterTypeDescription
linkAddressaddressThe LINK token address

onFeePaid

Records a fee payment and pulls the LINK from the payer.

function onFeePaid(FeePayment[] calldata payments, address payer) external override onlyFeeManager

Parameters

ParameterTypeDescription
paymentsFeePayment[]The fee payments (pool ID and amount each)
payeraddressThe address that paid the fees

claimRewards

Not implemented.

function claimRewards(bytes32[] memory) external pure override

setFeeManager

Sets the fee manager address.

function setFeeManager(address newFeeManager) external override

supportsInterface

function supportsInterface(bytes4 interfaceId) external pure override returns (bool)

Get the latest Chainlink content straight to your inbox.