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 5.1.1 to 5.1.2

6

CHANGELOG.md
# typechain
## 5.1.2
### Patch Changes
- a3feb27: Support extracting library references in hardhat style artifacts
## 5.1.1

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

6

dist/cli/cli.js

@@ -23,7 +23,7 @@ #!/usr/bin/env node

Object.defineProperty(exports, "__esModule", { value: true });
const parseArgs_1 = require("./parseArgs");
const prettier = __importStar(require("prettier"));
const runTypeChain_1 = require("../typechain/runTypeChain");
const glob_1 = require("../utils/glob");
const logger_1 = require("../utils/logger");
const glob_1 = require("../utils/glob");
const prettier = __importStar(require("prettier"));
const parseArgs_1 = require("./parseArgs");
async function main() {

@@ -30,0 +30,0 @@ ;

export * from './parser/abiParser';
export { normalizeName } from './parser/normalizeName';
export * from './parser/parseEvmType';
export * from './typechain/runTypeChain';
export * from './typechain/types';
export * from './typechain/types';
export * from './utils/files';
export * from './utils/glob';
export * from './utils/signatures';
export * from './typechain/types';
export * from './typechain/runTypeChain';
export * from './utils/glob';
export * from './typechain/types';
export { normalizeName } from './parser/normalizeName';

@@ -15,11 +15,11 @@ "use strict";

__exportStar(require("./parser/abiParser"), exports);
var normalizeName_1 = require("./parser/normalizeName");
Object.defineProperty(exports, "normalizeName", { enumerable: true, get: function () { return normalizeName_1.normalizeName; } });
__exportStar(require("./parser/parseEvmType"), exports);
__exportStar(require("./typechain/runTypeChain"), exports);
__exportStar(require("./typechain/types"), exports);
__exportStar(require("./typechain/types"), exports);
__exportStar(require("./utils/files"), exports);
__exportStar(require("./utils/glob"), exports);
__exportStar(require("./utils/signatures"), exports);
__exportStar(require("./typechain/types"), exports);
__exportStar(require("./typechain/runTypeChain"), exports);
__exportStar(require("./utils/glob"), exports);
__exportStar(require("./typechain/types"), exports);
var normalizeName_1 = require("./parser/normalizeName");
Object.defineProperty(exports, "normalizeName", { enumerable: true, get: function () { return normalizeName_1.normalizeName; } });
//# sourceMappingURL=index.js.map

@@ -78,3 +78,3 @@ import { Dictionary } from 'ts-essentials';

type: 'event';
anonymous: boolean;
anonymous?: boolean;
name: string;

@@ -81,0 +81,0 @@ inputs: RawEventArgAbiDefinition[];

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

const errors_1 = require("../utils/errors");
const normalizeName_1 = require("./normalizeName");
const parseEvmType_1 = require("./parseEvmType");
const normalizeName_1 = require("./normalizeName");
function parse(abi, rawName, documentation) {

@@ -162,2 +162,3 @@ const constructors = [];

function extractBytecode(rawContents) {
var _a, _b, _c, _d, _e, _f, _g, _h;
// When there are some unlinked libraries, the compiler replaces their addresses in calls with

@@ -180,3 +181,3 @@ // "link references". There are many different kinds of those, depending on compiler version and usage.

}
catch (_a) {
catch (_j) {
return undefined;

@@ -187,15 +188,11 @@ }

// `json.evm.bytecode` often has more information than `json.bytecode`, needs to be checked first
if (json.evm && json.evm.bytecode && json.evm.bytecode.object && json.evm.bytecode.object.match(bytecodeRegex)) {
if ((_c = (_b = (_a = json.evm) === null || _a === void 0 ? void 0 : _a.bytecode) === null || _b === void 0 ? void 0 : _b.object) === null || _c === void 0 ? void 0 : _c.match(bytecodeRegex)) {
return extractLinkReferences(json.evm.bytecode.object, json.evm.bytecode.linkReferences);
}
// handle json schema of @0x/sol-compiler
if (json.compilerOutput &&
json.compilerOutput.evm &&
json.compilerOutput.evm.bytecode &&
json.compilerOutput.evm.bytecode.object &&
json.compilerOutput.evm.bytecode.object.match(bytecodeRegex)) {
if ((_g = (_f = (_e = (_d = json.compilerOutput) === null || _d === void 0 ? void 0 : _d.evm) === null || _e === void 0 ? void 0 : _e.bytecode) === null || _f === void 0 ? void 0 : _f.object) === null || _g === void 0 ? void 0 : _g.match(bytecodeRegex)) {
return extractLinkReferences(json.compilerOutput.evm.bytecode.object, json.compilerOutput.evm.bytecode.linkReferences);
}
if (json.bytecode && json.bytecode.match(bytecodeRegex)) {
return extractLinkReferences(json.bytecode);
if ((_h = json.bytecode) === null || _h === void 0 ? void 0 : _h.match(bytecodeRegex)) {
return extractLinkReferences(json.bytecode, json.linkReferences);
}

@@ -202,0 +199,0 @@ return undefined;

@@ -24,5 +24,5 @@ "use strict";

const lodash_1 = __importStar(require("lodash"));
const debug_1 = require("../utils/debug");
const files_1 = require("../utils/files");
const modules_1 = require("../utils/modules");
const debug_1 = require("../utils/debug");
function findTarget(config) {

@@ -29,0 +29,0 @@ const target = config.target;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.skipEmptyAbis = exports.loadFileDescriptions = exports.processOutput = void 0;
const debug_1 = require("../utils/debug");
const fs_1 = require("fs");
const lodash_1 = require("lodash");
const path_1 = require("path");
const __1 = require("..");
const outputTransformers_1 = require("../codegen/outputTransformers");
const fs_1 = require("fs");
const __1 = require("..");
const debug_1 = require("../utils/debug");
function processOutput(services, cfg, output) {

@@ -11,0 +11,0 @@ const { fs, mkdirp } = services;

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

exports.runTypeChain = void 0;
const fs = __importStar(require("fs"));
const mkdirp_1 = require("mkdirp");
const path_1 = require("path");
const prettier = __importStar(require("prettier"));
const debug_1 = require("../utils/debug");
const path_1 = require("path");
const findTarget_1 = require("./findTarget");
const io_1 = require("./io");
const fs = __importStar(require("fs"));
const prettier = __importStar(require("prettier"));
const mkdirp_1 = require("mkdirp");
async function runTypeChain(publicConfig) {

@@ -32,0 +32,0 @@ const _config = { ...{ flags: { alwaysGenerateOverloads: false, environment: undefined } }, ...publicConfig };

/// <reference types="node" />
import * as fs from 'fs';
import { sync as mkdirp } from 'mkdirp';
import * as prettier from 'prettier';
import { sync as mkdirp } from 'mkdirp';
import { MarkOptional } from 'ts-essentials';

@@ -6,0 +6,0 @@ export interface Config {

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

],
"version": "5.1.1",
"version": "5.1.2",
"license": "MIT",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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