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 0.3.16 to 0.3.17

9

dist/targets/ethers/generation.js

@@ -9,3 +9,3 @@ "use strict";

import { Listener, Provider } from 'ethers/providers';
import { BigNumber, Interface } from "ethers/utils";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import { TransactionOverrides, TypedEventDescription, TypedFunctionDescription } from ".";

@@ -128,8 +128,9 @@

}
// https://docs.ethers.io/ethers.js/html/api-contract.html#types
function generateInputType(evmType) {
switch (evmType.constructor) {
case typeParser_1.IntegerType:
return "number | string | BigNumber";
return "BigNumberish";
case typeParser_1.UnsignedIntegerType:
return "number | string | BigNumber";
return "BigNumberish";
case typeParser_1.AddressType:

@@ -139,3 +140,3 @@ return "string";

case typeParser_1.DynamicBytesType:
return "string";
return "Arrayish";
case typeParser_1.ArrayType:

@@ -142,0 +143,0 @@ return `(${generateInputType(evmType.itemType)})[]`;

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

],
"version": "0.3.16",
"version": "0.3.17",
"license": "MIT",

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

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