Skip to content

Releases: dethcrypto/eth-sdk

@dethcrypto/[email protected]

13 Nov 12:10
ec9e79a
Compare
Choose a tag to compare

Minor Changes

  • e68c2c9: Add support for all well known networks

  • 3e32900: Breaking Changes:

    1. Config files can now be named config or eth-sdk.config instead of contracts. 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',
    })
    1. --out flag in CLI is no longer supported in favor of config.outputPath.

    How to migrate?

    Rename your contracts.json file to config.json and paste it's contents under "contracts" property.

    Before:

    {
      "mainnet": {
        /* your contracts */
      }
    }

    After:

    {
      "contracts": {
        "mainnet": {
          /* your contracts */
        }
      }
    }
  • 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 in config.rpc and opt out from proxy following with
    config.noFollowProxies.

Patch Changes

  • 6c0ae88: Emit ESModules alongside CommonJS
  • 420987e: Updated dependencies. TypeChain upgrade causes change in emitted contract event types.
  • bc0229a: We now read etherscanKey from the config file. eth-sdk's own key is still used when user doesn't pass their
    own.

@dethcrypto/[email protected]

13 Nov 12:10
ec9e79a
Compare
Choose a tag to compare

Patch Changes

  • 6c0ae88: Emit ESModules alongside CommonJS

@dethcrypto/[email protected]

12 Oct 22:00
62e9fda
Compare
Choose a tag to compare

Patch Changes

  • be9cdba: Fix bug in exported MainnetSdk type