Releases: dethcrypto/eth-sdk
Releases · dethcrypto/eth-sdk
@dethcrypto/[email protected]
Minor Changes
-
e68c2c9: Add support for all well known networks
-
3e32900: Breaking Changes:
- Config files can now be named
config
oreth-sdk.config
instead ofcontracts
. Supported extensions are.js
,
.ts
,.cjs
and.json
.
import { defineConfig } from '@dethcrypto/eth-sdk' export default defineConfig({ contracts: { mainnet: { dai: '0x6b175474e89094c44da98b954eedeac495271d0f', }, }, outputPath: './eth-sdk/client', })
--out
flag in CLI is no longer supported in favor ofconfig.outputPath
.
How to migrate?
Rename your
contracts.json
file toconfig.json
and paste it's contents under "contracts" property.Before:
{ "mainnet": { /* your contracts */ } }
After:
{ "contracts": { "mainnet": { /* your contracts */ } } }
- Config files can now be named
-
d00cfeb: Read custom Etherscan URLs from
"etherscanURLs"
property in config file -
d92585b: Given an address to a proxy, eth-sdk now generates ethers Contract for implementation contract
As we need to call the chain to get the implementation contract address, two new config options are introduced. You
can specify Ethereum JSON-RPC endpoints inconfig.rpc
and opt out from proxy following with
config.noFollowProxies
.
Patch Changes
@dethcrypto/[email protected]
Patch Changes
- 6c0ae88: Emit ESModules alongside CommonJS
@dethcrypto/[email protected]
Patch Changes
- be9cdba: Fix bug in exported
MainnetSdk
type