
@api3/contracts
@api3/contracts
is an npm package that provides three basic features for API3 data feed users:
@api3/contracts/interfaces/IApi3ReaderProxy.sol
is imported by contracts that call Api3ReaderProxyV1 contracts through IApi3ReaderProxy.@api3/contracts/mock/MockApi3ReaderProxy.sol
is used in tests.computeCommunalApi3ReaderProxyV1Address()
is used to validate adresses shown by API3 Market when "Skip OEV Rewards" is selected.computeDappSpecificApi3ReaderProxyV1Address()
is used to validate adresses shown by API3 Market when "Earn OEV Rewards" is selected.
For detailed examples of how to use these features, see the data-feed-reader-example
repository.
Additionally, @api3/contracts
provides a CLI command for printing OEV Rewards-enabled (i.e., dApp-specific) Api3ReaderProxyV1 addresses, as described here.
ℹ️ Info
AggregatorV2V3Interface is not exported from this package, since contracts using this interface must have already imported it from elsewhere.