Repository navigation
Major Changes
-
010a83b: Build the package with Hardhat 3, keeping the exported addresses, ABIs, bytecode and chain data unchanged:
- Publish the package as both an ES module and CommonJS
- Drop
import api3 from '@api3/contracts'in ES modules in favor of named imports orimport * as api3 from '@api3/contracts' - Add an
exportsmap that limits imports to the package root,package.jsonand the Solidity directories, so deep imports intodistno longer resolve - Move the
api3-contractsCLI fromdist/bin/cli.jstodist/cjs/bin/cli.js - Stop shipping
dist/data/*.jsonanddist/deployments/addresses.json, whose data stays exported asauctioneerMetadata,dapiManagementMetadataanddeploymentAddresses - Type
auctioneerMetadata,dapiManagementMetadataanddeploymentAddressesfor consumers withoutresolveJsonModule, who used to getany - Add
hardhatConfig.v3, whosenetworks(),chainDescriptors()andverify()return the Hardhat 3 config shapes, and keephardhatConfig.networks(),etherscan()andblockscout()on the Hardhat 2 shapes - Add
hardhatConfig.networkHttpRpcUrl()