Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typechain

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typechain - npm Package Compare versions

Comparing version 2.0.0-beta2 to 2.0.0

2

package.json

@@ -11,3 +11,3 @@ {

],
"version": "2.0.0-beta2",
"version": "2.0.0",
"license": "MIT",

@@ -14,0 +14,0 @@ "repository": "https://github.com/ethereum-ts/Typechain",

@@ -48,4 +48,4 @@ <p align="center">

| [`@typechain/truffle-v4`](/packages/@typechain/truffle-v4) | [![npm](https://img.shields.io/npm/v/@typechain/truffle-v4.svg)](https://www.npmjs.com/package/@typechain/truffle-v4) | Truffle ver 4 support | [example](./examples/truffle-v4) |
| [`@typechain/truffle-v5`](/packages/@typechain/truffle-v5) | [![npm](https://img.shields.io/npm/v/@typechain/truffle-v5.svg)](https://www.npmjs.com/package/@typechain/truffle-v5) | Truffle ver 5 support | [example](./examples/truffle-v5) |
| [`@typechain/web3-v1`](/packages/@typechain/web3-v1) | [![npm](https://img.shields.io/npm/v/@typechain/web3-v1.svg)](https://www.npmjs.com/package/@typechain/web3-v1) | Web3 ver 1 support | [example](./examples/web3-v1) |
| [`@typechain/web3-v2`](/packages/@typechain/web3-v2) | [![npm](https://img.shields.io/npm/v/@typechain/web3-v2.svg)](https://www.npmjs.com/package/@typechain/web3-v2) | Web3 ver 2 support | [example](./examples/web3-v2) |

@@ -57,3 +57,3 @@ ## Usage

```
typechain --target=(ethers|truffle|web3-v1|web3-v2|path-to-custom-target) [glob]
typechain --target=(ethers|truffle|web3-v1|path-to-custom-target) [glob]
```

@@ -65,3 +65,3 @@

`typechain-target-${target}`, so make sure that desired package is installed.
- `--outDir` - put all generated files to a specific dir
- `--outDir` (optional) - put all generated files to a specific dir

@@ -104,5 +104,3 @@ TypeChain always will rewrite existing files. You should not commit them. Read more in FAQ section.

That's it! Now, just import contract bindings as any other file
`import { MyAwesomeContract } from './contracts/MyAwesomeContract'` and start interacting with it. We use named exports
because of [this](https://blog.neufund.org/why-we-have-banned-default-exports-and-you-should-do-the-same-d51fdc2cf2ad).
That's it! Now, you can simply import typings, check out our examples for more details.

@@ -130,7 +128,6 @@ ## Targets 🎯

### Web3-2.0.0
### NatSpec support
Generates typings for contracts compatible with (unstable) Web3.js 2.x.x version. Typings for library itself are now
part of `Web3 2.0.0` library so nothing additional is needed.
[Usage example](https://github.com/ethereum-ts/TypeChain/blob/master/test/integration/targets/web3-v2/DumbContract.spec.web3.ts#L12).
If you provide solidity artifacts rather than plain ABIs as an input, TypeChain can generate NatSpec comments directly
to your typings which enables simple access to docs while coding.

@@ -143,7 +140,2 @@ ### Your own target

## Migration guide
For users of 0.x.x versions: the only breaking change is extraction of targets for separate packages so now you need to
install `typechain-target-${name}` for each target.
## FAQ 🤔

@@ -150,0 +142,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc