MockRewardManager v0.3.1 API Reference
MockRewardManager
A mock implementation of the Data Streams reward manager for local testing.
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
| Parameter | Type | Description |
|---|---|---|
| linkAddress | address | The 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
| Parameter | Type | Description |
|---|---|---|
| payments | FeePayment[] | The fee payments (pool ID and amount each) |
| payer | address | The 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)