Skip to content

Commit

Permalink
Version Packages (#32)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Nov 13, 2021
1 parent 663a484 commit ec9e79a
Show file tree
Hide file tree
Showing 11 changed files with 74 additions and 80 deletions.
6 changes: 0 additions & 6 deletions .changeset/blue-feet-eat.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dirty-birds-impress.md

This file was deleted.

44 changes: 0 additions & 44 deletions .changeset/heavy-buses-impress.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/moody-garlics-talk.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sweet-adults-confess.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/ten-humans-flash.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/violet-cobras-appear.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# @dethcrypto/eth-sdk-client

## 0.1.5
### Patch Changes

- 6c0ae88: Emit ESModules alongside CommonJS
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dethcrypto/eth-sdk-client",
"version": "0.1.4",
"version": "0.1.5",
"license": "MIT",
"description": "This package is required if you want `eth-sdk` to generate SDK directly to `node_modules`.",
"repository": {
Expand Down
66 changes: 66 additions & 0 deletions packages/eth-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,72 @@
# @dethcrypto/eth-sdk

## 0.2.0

### 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`.

```ts
import { defineConfig } from '@dethcrypto/eth-sdk'

export default defineConfig({
contracts: {
mainnet: {
dai: '0x6b175474e89094c44da98b954eedeac495271d0f',
},
},
outputPath: './eth-sdk/client',
})
```

2. `--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:

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

After:

```json
{
"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.

## 0.1.6

### Patch Changes

- be9cdba: Fix bug in exported `MainnetSdk` type
2 changes: 1 addition & 1 deletion packages/eth-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dethcrypto/eth-sdk",
"version": "0.1.6",
"version": "0.2.0",
"license": "MIT",
"description": "🛠 Generate type-safe, lightweight SDK for your Ethereum smart contracts",
"repository": {
Expand Down

0 comments on commit ec9e79a

Please sign in to comment.