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

typechain

Package Overview
Dependencies
Maintainers
2
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 4.0.1 to 4.0.2

7

CHANGELOG.md
# typechain
## 4.0.2
### Patch Changes
- d07ae43: Fix signature of overloaded methods with struct in arguments
## 4.0.1
### Patch Changes
- 82633bb: Do not ship tests and original source files with the npm package

4

dist/index.js

@@ -10,4 +10,4 @@ "use strict";

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (!exports.hasOwnProperty(p)) __createBinding(exports, m, p);
}
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -14,0 +14,0 @@ __exportStar(require("./parser/abiParser"), exports);

@@ -1,5 +0,6 @@

import { EventDeclaration, FunctionDeclaration } from '../parser/abiParser';
import { AbiParameter, EventDeclaration, FunctionDeclaration } from '../parser/abiParser';
export declare function getFullSignatureAsSymbolForEvent(event: EventDeclaration): string;
export declare function getFullSignatureForEvent(event: EventDeclaration): string;
export declare function getIndexedSignatureForEvent(event: EventDeclaration): string;
export declare function getArgumentForSignature(argument: AbiParameter): string;
export declare function getSignatureForFn(fn: FunctionDeclaration): string;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSignatureForFn = exports.getIndexedSignatureForEvent = exports.getFullSignatureForEvent = exports.getFullSignatureAsSymbolForEvent = void 0;
exports.getSignatureForFn = exports.getArgumentForSignature = exports.getIndexedSignatureForEvent = exports.getFullSignatureForEvent = exports.getFullSignatureAsSymbolForEvent = void 0;
function getFullSignatureAsSymbolForEvent(event) {

@@ -17,6 +17,12 @@ return `${event.name}_${event.inputs.map((e) => e.type.originalType).join('_')}`;

exports.getIndexedSignatureForEvent = getIndexedSignatureForEvent;
function getArgumentForSignature(argument) {
if (argument.type.originalType !== 'tuple')
return argument.type.originalType;
return `(${argument.type.components.map((i) => getArgumentForSignature(i)).join(',')})`;
}
exports.getArgumentForSignature = getArgumentForSignature;
function getSignatureForFn(fn) {
return `${fn.name}(${fn.inputs.map((i) => i.type.originalType).join(',')})`;
return `${fn.name}(${fn.inputs.map((i) => getArgumentForSignature(i)).join(',')})`;
}
exports.getSignatureForFn = getSignatureForFn;
//# sourceMappingURL=signatures.js.map

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

],
"version": "4.0.1",
"version": "4.0.2",
"license": "MIT",

@@ -51,19 +51,9 @@ "repository": "https://github.com/ethereum-ts/Typechain",

"@types/lodash": "^4.14.139",
"@types/mocha": "^5.2.7",
"@types/node": "^8.0.25",
"@types/prettier": "^1.13.2",
"@typescript-eslint/eslint-plugin": "^2.25.0",
"@typescript-eslint/parser": "^2.12.0",
"bignumber.js": "^5.0.0",
"bluebird": "^3.5.1",
"coveralls": "^3.0.2",
"eslint": "^6.8.0",
"eslint-config-typestrict": "^1.0.0",
"eslint-plugin-no-only-tests": "^2.4.0",
"eslint-plugin-sonarjs": "^0.5.0",
"glob": "^7.1.2",
"mocha": "^8.2.0",
"ts-node": "^8.5.4",
"typescript": "3.9.0-beta"
"glob": "^7.1.2"
}
}

@@ -44,3 +44,3 @@ <p align="center">

| [`typechain`](/packages/typechain) | [![npm](https://img.shields.io/npm/v/typechain.svg)](https://www.npmjs.com/package/typechain) | Core package | - |
| [`@typechain/ethers-v5`](/packages/target-ethers-v5) | [![npm](https://img.shields.io/npm/v/@typechain/ethers-v5.svg)](https://www.npmjs.com/package/@typechain/ethers-v5) | Ethers ver 5 support (⚠️ requires TS 3.8 >=) | [example](./examples/ethers-v5) |
| [`@typechain/ethers-v5`](/packages/target-ethers-v5) | [![npm](https://img.shields.io/npm/v/@typechain/ethers-v5.svg)](https://www.npmjs.com/package/@typechain/ethers-v5) | Ethers ver 5 support (⚠️ requires TS 4.0 >=) | [example](./examples/ethers-v5) |
| [`@typechain/ethers-v4`](/packages/target-ethers-v4) | [![npm](https://img.shields.io/npm/v/@typechain/ethers-v4.svg)](https://www.npmjs.com/package/@typechain/ethers-v4) | Ethers ver 4 support | [example](./examples/ethers-v4) |

@@ -47,0 +47,0 @@ | [`@typechain/truffle-v5`](/packages/target-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) |

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