v0.10.1
Summary
loaders.defaultsWithApiKeys
is nowloaders.defaultsWithEnv
, supporting more overrides:SOURCIFY_CHAIN_ID
,ETHERSCAN_BASE_URL
,ETHERSCAN_API_KEY
(thanks @SonOfMosiah).
Example:
const result = await whatsabi.autoload(address, {
provider: provider,
... whatsabi.loaders.defaultsWithEnv({
SOURCIFY_CHAIN_ID: 42161,
ETHERSCAN_BASE_URL: "https://api.arbiscan.io/api",
ETHERSCAN_API_KEY: "MYSECRETAPIKEY",
}),
});
What's Changed
- Add a baseURL param to defaultsWithAPIKeys by @SonOfMosiah in #73
- loaders.defaultsWithEnv by @shazow in #74
- Switch to tsx, pnpm update by @shazow in #75
New Contributors
- @SonOfMosiah made their first contribution in #73
Full Changelog: v0.10.0...v0.10.1