TypeChain

🔌 TypeScript bindings for Ethereum smart contracts

MIT License

Stars
2.7K
Committers
73

Bot releases are hidden (Show)

TypeChain -

Published by krzkaczor almost 4 years ago

@typechain/[email protected]

Major Changes

  • 0d4b293: Changed return type of functions from a object with number indexes, to an array merged with object containing named
    outputs.

    Before, solidity function like this:

    function x() public pure returns (uint256)
    

    Generated such method signature:

    x(overrides?: CallOverrides): Promise<{0: BigNumber}>;
    

    New output is:

    x(overrides?: CallOverrides): Promise<[BigNumber]>;
    

    The difference is that now you can use standard array destructuring while working with output types.

Patch Changes

  • db5baa5: Do not generate typings in contract type itself for reserved keywords that would collide with ethers internals

@typechain/[email protected]

Major Changes

  • 0d4b293: Changed return type of functions from a object with number indexes, to an array merged with object containing named
    outputs.

    Before, solidity function like this:

    function x() public pure returns (uint256)
    

    Generated such method signature:

    x(overrides?: CallOverrides): Promise<{0: BigNumber}>;
    

    New output is:

    x(overrides?: CallOverrides): Promise<[BigNumber]>;
    

    The difference is that now you can use standard array destructuring while working with output types.

Patch Changes

  • db5baa5: Do not generate typings in contract type itself for reserved keywords that would collide with ethers internals

@typechain/[email protected]

Major Changes

  • f8711eb: Changed return type of functions from an array to a object. This represents better runtime types.

    Before, solidity function like this:

    function x() public pure returns (uint256)
    

    Generated such method signature:

    x(txDetails?: Truffle.TransactionDetails): Promise<[BigNumber]>;
    

    New output is:

    x(txDetails?: Truffle.TransactionDetails): Promise<{0: BigNumber}>;
    

    The difference is that now you can use standard object destructuring while working with output types.

[email protected]

Patch Changes

  • 82633bb: Do not ship tests and original source files with the npm package
TypeChain -

Published by krzkaczor almost 4 years ago

@typechain/ethers-v4

Fix broken import paths in generated factories. https://github.com/ethereum-ts/TypeChain/issues/304

TypeChain -

Published by krzkaczor almost 4 years ago

Changes:

TypeChain - @typechain/[email protected]

Published by krzkaczor almost 4 years ago

Changes:

TypeChain - TypeChain 4

Published by krzkaczor almost 4 years ago

TypeChain 4:

All targets were bumped to a new major version to support the new unknown type

target-ethers-v5

  • remove not needed dependency on ethers (only peer-dep is needed)
TypeChain - TypeChain 3

Published by krzkaczor about 4 years ago

  • BREAKING - bump ts-generator which results in a slightly different preamble for generated files and different formatting

target-ethers-v5

TypeChain - [email protected]

Published by krzkaczor about 4 years ago

  • Fix decoding of enums in libs
  • Add --show-stack-traces CLI option for printout full stack trace on errors
TypeChain - @typechain/ethers v4/v5

Published by krzkaczor about 4 years ago

  • New target ethers-v5
  • Better handling for overloads for ethers-v4
TypeChain -

Published by krzkaczor over 4 years ago

  • Fix reliance on Web3 and BN instead of BigNumber.js [Truffle-v4]
TypeChain -

Published by krzkaczor over 4 years ago

  • Add link method to contract constructor by @petejkim
TypeChain - @typechain/truffle-v4/[email protected]

Published by krzkaczor over 4 years ago

  • fix at typings for truffle v4/v5 by @petejkim
TypeChain - @typechain/truffle-v4/[email protected]

Published by krzkaczor over 4 years ago

  • Use raw names for artifacts.require BREAKING by @JamesLefrere
  • Export contract types in artifact headers by @JamesLefrere
TypeChain - Version 2.0

Published by krzkaczor over 4 years ago

TypeChain Ver 2 is finally out! 🎉 🎉 🎉

Packages:

[email protected]
@typechain/[email protected]
@typechain/[email protected]
@typechain/[email protected]
@typechain/[email protected]

Breaking changes:

  • changed target naming schema. All officially supported targets are released as @typechain/X-vY Check out the readme for more details
  • name mangling - we will change generated contract names to obey TypeScript naming rules
  • Web3-v1
    • fixed bug in struct handling
    • type check payable calls
    • support for overloaded functions which can result in a slightly different code if you relied on using the first overload
  • All targets:
    • support for overloaded functions which can result in a slightly different code if you relied on using the first overload
  • Support events with no parameters names (API breaking change)
  • We don't require truffle-typings package anymore - it's generated on the fly.

All changes

  • Truffle-v5 support with events, function overloads etc
  • NatSpec support by @chmanie
  • Brand new testing pipeline which should help us ensure high quality of generated code
TypeChain -

Published by krzkaczor over 5 years ago

  • [ethers] fix argument types for bytes & numbers by @quezak
TypeChain -

Published by krzkaczor over 5 years ago

  • [ethers] named arguments for function args encoding methods by @quezak
Package Rankings
Top 6.62% on Proxy.golang.org
Badges
Extracted from project README
npm npm npm npm npm npm npm npm npm
Related Projects