dApps → Integration
@api3/contracts
@api3/contracts
is an npm package that provides three basic features that will be useful to API3 data feed users:
@api3/contracts/interfaces/IApi3ReaderProxy.sol
is imported by contracts that call Api3ReaderProxyV1 contracts using IApi3ReaderProxy.@api3/contracts/mock/MockApi3ReaderProxy.sol
is used in tests.computeApi3ReaderProxyV1Address()
is used to validate the Api3ReaderProxyV1 addresses.
You can refer to data-feed-reader-example
for a demonstration of how each can be used.
ℹ️ Info
Note that we do not export AggregatorV2V3Interface, as contracts that are built to use it are expected to have imported it.