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

@ledgerhq/cryptoassets

Package Overview
Dependencies
Maintainers
8
Versions
357
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/cryptoassets - npm Package Compare versions

Comparing version 13.3.0-nightly.1 to 13.3.0-nightly.2

lib-es/data/eip712_v2-hash.json

1

lib-es/crypto-assets-importer/importers/eip712/index.d.ts
export declare const importEIP712: (outputDir: string) => Promise<void>;
export declare const importEIP712v2: (outputDir: string) => Promise<void>;
//# sourceMappingURL=index.d.ts.map

@@ -14,3 +14,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

export const importEIP712 = (outputDir) => __awaiter(void 0, void 0, void 0, function* () {
console.log("importing ERC712 tokens....");
console.log("importing EIP712....");
try {

@@ -29,3 +29,3 @@ const [eip712, hash] = yield fetchTokens("eip712.json");

fs.writeFileSync(`${filePath}.ts`, tsContent);
console.log("importing ERC712 tokens sucess");
console.log("importing EIP712 sucess");
}

@@ -37,2 +37,24 @@ }

});
export const importEIP712v2 = (outputDir) => __awaiter(void 0, void 0, void 0, function* () {
console.log("importing EIP712 V2....");
try {
const [eip712, hash] = yield fetchTokens("eip712_v2.json");
if (eip712) {
const filePath = path.join(outputDir, "eip712_v2");
fs.writeFileSync(`${filePath}.json`, JSON.stringify(eip712));
if (hash) {
fs.writeFileSync(`${filePath}-hash.json`, JSON.stringify(hash));
}
const tsContent = `import EIP712 from "./eip712_v2.json";
${hash ? `export { default as hash } from "./eip712_v2-hash.json";` : null}
export default EIP712;
`;
fs.writeFileSync(`${filePath}.ts`, tsContent);
console.log("importing EIP712 V2 sucess");
}
}
catch (err) {
console.error(err);
}
});
//# sourceMappingURL=index.js.map

3

lib-es/crypto-assets-importer/index.js

@@ -11,3 +11,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

import path from "path";
import { importEIP712 } from "./importers/eip712";
import { importEIP712, importEIP712v2 } from "./importers/eip712";
import { importERC20 } from "./importers/erc20";

@@ -33,2 +33,3 @@ import { importEVMTokens } from "./importers/evm";

importEIP712(outputFolder),
importEIP712v2(outputFolder),
importERC20(outputFolder),

@@ -35,0 +36,0 @@ importEVMTokens(outputFolder),

export declare const importEIP712: (outputDir: string) => Promise<void>;
export declare const importEIP712v2: (outputDir: string) => Promise<void>;
//# sourceMappingURL=index.d.ts.map

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.importEIP712 = void 0;
exports.importEIP712v2 = exports.importEIP712 = void 0;
const fs_1 = __importDefault(require("fs"));

@@ -21,3 +21,3 @@ const path_1 = __importDefault(require("path"));

const importEIP712 = (outputDir) => __awaiter(void 0, void 0, void 0, function* () {
console.log("importing ERC712 tokens....");
console.log("importing EIP712....");
try {

@@ -36,3 +36,3 @@ const [eip712, hash] = yield (0, fetch_1.fetchTokens)("eip712.json");

fs_1.default.writeFileSync(`${filePath}.ts`, tsContent);
console.log("importing ERC712 tokens sucess");
console.log("importing EIP712 sucess");
}

@@ -45,2 +45,25 @@ }

exports.importEIP712 = importEIP712;
const importEIP712v2 = (outputDir) => __awaiter(void 0, void 0, void 0, function* () {
console.log("importing EIP712 V2....");
try {
const [eip712, hash] = yield (0, fetch_1.fetchTokens)("eip712_v2.json");
if (eip712) {
const filePath = path_1.default.join(outputDir, "eip712_v2");
fs_1.default.writeFileSync(`${filePath}.json`, JSON.stringify(eip712));
if (hash) {
fs_1.default.writeFileSync(`${filePath}-hash.json`, JSON.stringify(hash));
}
const tsContent = `import EIP712 from "./eip712_v2.json";
${hash ? `export { default as hash } from "./eip712_v2-hash.json";` : null}
export default EIP712;
`;
fs_1.default.writeFileSync(`${filePath}.ts`, tsContent);
console.log("importing EIP712 V2 sucess");
}
}
catch (err) {
console.error(err);
}
});
exports.importEIP712v2 = importEIP712v2;
//# sourceMappingURL=index.js.map

@@ -37,2 +37,3 @@ "use strict";

(0, eip712_1.importEIP712)(outputFolder),
(0, eip712_1.importEIP712v2)(outputFolder),
(0, erc20_1.importERC20)(outputFolder),

@@ -39,0 +40,0 @@ (0, evm_1.importEVMTokens)(outputFolder),

{
"name": "@ledgerhq/cryptoassets",
"version": "13.3.0-nightly.1",
"version": "13.3.0-nightly.2",
"description": "Ledger crypto-assets list",

@@ -5,0 +5,0 @@ "keywords": [

@@ -14,3 +14,3 @@ import fs from "fs";

export const importEIP712 = async (outputDir: string) => {
console.log("importing ERC712 tokens....");
console.log("importing EIP712....");
try {

@@ -30,3 +30,3 @@ const [eip712, hash] = await fetchTokens<EIP712>("eip712.json");

fs.writeFileSync(`${filePath}.ts`, tsContent);
console.log("importing ERC712 tokens sucess");
console.log("importing EIP712 sucess");
}

@@ -37,1 +37,24 @@ } catch (err) {

};
export const importEIP712v2 = async (outputDir: string) => {
console.log("importing EIP712 V2....");
try {
const [eip712, hash] = await fetchTokens<EIP712>("eip712_v2.json");
if (eip712) {
const filePath = path.join(outputDir, "eip712_v2");
fs.writeFileSync(`${filePath}.json`, JSON.stringify(eip712));
if (hash) {
fs.writeFileSync(`${filePath}-hash.json`, JSON.stringify(hash));
}
const tsContent = `import EIP712 from "./eip712_v2.json";
${hash ? `export { default as hash } from "./eip712_v2-hash.json";` : null}
export default EIP712;
`;
fs.writeFileSync(`${filePath}.ts`, tsContent);
console.log("importing EIP712 V2 sucess");
}
} catch (err) {
console.error(err);
}
};
import path from "path";
import { importEIP712 } from "./importers/eip712";
import { importEIP712, importEIP712v2 } from "./importers/eip712";
import { importERC20 } from "./importers/erc20";

@@ -28,2 +28,3 @@ import { importEVMTokens } from "./importers/evm";

importEIP712(outputFolder),
importEIP712v2(outputFolder),
importERC20(outputFolder),

@@ -30,0 +31,0 @@ importEVMTokens(outputFolder),

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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