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 6.0.0 to 6.0.1

6

CHANGELOG.md
# typechain
## 6.0.1
### Patch Changes
- 44a04c0: Fix bug in parsing names of free floating structs
## 6.0.0

@@ -4,0 +10,0 @@

2

dist/parser/parseEvmType.d.ts

@@ -63,1 +63,3 @@ export declare type EvmType = BooleanType | IntegerType | UnsignedIntegerType | StringType | BytesType | DynamicBytesType | AddressType | ArrayType | TupleType | UnknownType;

export declare function parseEvmType(rawType: string, components?: EvmSymbol[], internalType?: string): EvmType;
/** @internal */
export declare function extractStructNameIfAvailable(internalType: string | undefined): string | undefined;

11

dist/parser/parseEvmType.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseEvmType = void 0;
exports.extractStructNameIfAvailable = exports.parseEvmType = void 0;
const logger_1 = require("../utils/logger");

@@ -77,3 +77,5 @@ const normalizeName_1 = require("./normalizeName");

exports.parseEvmType = parseEvmType;
/** @internal */
function extractStructNameIfAvailable(internalType) {
console.log('internalType', internalType);
if (internalType === null || internalType === void 0 ? void 0 : internalType.startsWith('struct ')) {

@@ -86,7 +88,10 @@ // get rid of "struct " in the beginning

}
// get rid of contract name
nameStr = nameStr.split('.')[1];
// get rid of contract name if exists
if (nameStr.indexOf('.') !== -1) {
nameStr = nameStr.split('.')[1];
}
return (0, normalizeName_1.normalizeName)(nameStr);
}
}
exports.extractStructNameIfAvailable = extractStructNameIfAvailable;
//# sourceMappingURL=parseEvmType.js.map

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

],
"version": "6.0.0",
"version": "6.0.1",
"license": "MIT",

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

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