-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
663a484
commit ec9e79a
Showing
11 changed files
with
74 additions
and
80 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters