API Version: v0.2.8 Not using latest version (v0.3.1)

MockFeeManager v0.2.8 API Reference

MockFeeManager

Mock verifier fee manager.

MockFeeManager

Structs

Asset

struct Asset {
  address assetAddress;
  uint256 amount;
}

Variables

i_linkAddress

address i_linkAddress

i_nativeAddress

address i_nativeAddress

i_proxyAddress

address i_proxyAddress

i_rewardManager

contract IRewardManager i_rewardManager

s_mockDiscounts

mapping(address => uint256) s_mockDiscounts

s_nativeSurcharge

uint256 s_nativeSurcharge

Errors

ExpiredReport

error ExpiredReport()

InvalidAddress

error InvalidAddress()

InvalidDeposit

error InvalidDeposit()

InvalidDiscount

error InvalidDiscount()

InvalidQuote

error InvalidQuote()

InvalidSurcharge

error InvalidSurcharge()

Unauthorized

error Unauthorized()

Functions

_processFee

function _processFee(bytes payload, bytes parameterPayload, address subscriber) internal

constructor

constructor(address linkAddress, address nativeAddress, address proxyAddress, address rewardManager) public

getFeeAndReward

function getFeeAndReward(address subscriber, bytes report, address quoteAddress) public view returns (struct Common.Asset, struct Common.Asset, uint256)

getMockDiscount

function getMockDiscount(address subscriber) external view returns (uint256)

processFee

function processFee(bytes payload, bytes parameterPayload, address subscriber) external payable

processFeeBulk

function processFeeBulk(bytes[] payloads, bytes parameterPayload, address subscriber) external payable

setMockDiscount

function setMockDiscount(address subscriber, uint256 discount) external

setNativeSurcharge

function setNativeSurcharge(uint64 surcharge) external

supportsInterface

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

_Returns true if this contract implements the interface defined by interfaceId. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created.

This function call must use less than 30 000 gas._

Get the latest Chainlink content straight to your inbox.