@ethersproject/hash
Advanced tools
Comparing version 5.0.11 to 5.0.12
@@ -1,2 +0,2 @@ | ||
export declare const version = "hash/5.0.11"; | ||
export declare const version = "hash/5.0.12"; | ||
//# sourceMappingURL=_version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export const version = "hash/5.0.11"; | ||
export const version = "hash/5.0.12"; | ||
//# sourceMappingURL=_version.js.map |
@@ -12,3 +12,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { BigNumber } from "@ethersproject/bignumber"; | ||
import { arrayify, hexConcat, hexlify, hexValue, hexZeroPad, isHexString } from "@ethersproject/bytes"; | ||
import { arrayify, hexConcat, hexlify, hexZeroPad, isHexString } from "@ethersproject/bytes"; | ||
import { keccak256 } from "@ethersproject/keccak256"; | ||
@@ -424,9 +424,3 @@ import { deepCopy, defineReadOnly, shallowCopy } from "@ethersproject/properties"; | ||
if (type.match(/^u?int/)) { | ||
let prefix = ""; | ||
let v = BigNumber.from(value); | ||
if (v.isNegative()) { | ||
prefix = "-"; | ||
v = v.mul(-1); | ||
} | ||
return prefix + hexValue(v.toHexString()); | ||
return BigNumber.from(value).toString(); | ||
} | ||
@@ -433,0 +427,0 @@ switch (type) { |
@@ -1,2 +0,2 @@ | ||
export declare const version = "hash/5.0.11"; | ||
export declare const version = "hash/5.0.12"; | ||
//# sourceMappingURL=_version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = "hash/5.0.11"; | ||
exports.version = void 0; | ||
exports.version = "hash/5.0.12"; | ||
//# sourceMappingURL=_version.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.id = void 0; | ||
var keccak256_1 = require("@ethersproject/keccak256"); | ||
@@ -4,0 +5,0 @@ var strings_1 = require("@ethersproject/strings"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports._TypedDataEncoder = exports.hashMessage = exports.messagePrefix = exports.isValidName = exports.namehash = exports.id = void 0; | ||
var id_1 = require("./id"); | ||
exports.id = id_1.id; | ||
Object.defineProperty(exports, "id", { enumerable: true, get: function () { return id_1.id; } }); | ||
var namehash_1 = require("./namehash"); | ||
exports.isValidName = namehash_1.isValidName; | ||
exports.namehash = namehash_1.namehash; | ||
Object.defineProperty(exports, "isValidName", { enumerable: true, get: function () { return namehash_1.isValidName; } }); | ||
Object.defineProperty(exports, "namehash", { enumerable: true, get: function () { return namehash_1.namehash; } }); | ||
var message_1 = require("./message"); | ||
exports.hashMessage = message_1.hashMessage; | ||
exports.messagePrefix = message_1.messagePrefix; | ||
Object.defineProperty(exports, "hashMessage", { enumerable: true, get: function () { return message_1.hashMessage; } }); | ||
Object.defineProperty(exports, "messagePrefix", { enumerable: true, get: function () { return message_1.messagePrefix; } }); | ||
var typed_data_1 = require("./typed-data"); | ||
exports._TypedDataEncoder = typed_data_1.TypedDataEncoder; | ||
Object.defineProperty(exports, "_TypedDataEncoder", { enumerable: true, get: function () { return typed_data_1.TypedDataEncoder; } }); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.hashMessage = exports.messagePrefix = void 0; | ||
var bytes_1 = require("@ethersproject/bytes"); | ||
@@ -4,0 +5,0 @@ var keccak256_1 = require("@ethersproject/keccak256"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.namehash = exports.isValidName = void 0; | ||
var bytes_1 = require("@ethersproject/bytes"); | ||
@@ -4,0 +5,0 @@ var strings_1 = require("@ethersproject/strings"); |
@@ -39,2 +39,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TypedDataEncoder = void 0; | ||
var address_1 = require("@ethersproject/address"); | ||
@@ -481,9 +482,3 @@ var bignumber_1 = require("@ethersproject/bignumber"); | ||
if (type.match(/^u?int/)) { | ||
var prefix = ""; | ||
var v = bignumber_1.BigNumber.from(value); | ||
if (v.isNegative()) { | ||
prefix = "-"; | ||
v = v.mul(-1); | ||
} | ||
return prefix + bytes_1.hexValue(v.toHexString()); | ||
return bignumber_1.BigNumber.from(value).toString(); | ||
} | ||
@@ -490,0 +485,0 @@ switch (type) { |
@@ -25,3 +25,3 @@ { | ||
], | ||
"gitHead": "4f67ecdf628268724077ffbbde4b188cd48579ec", | ||
"gitHead": "6c43e20e7a68f3f5a141c74527ec63d9fe8458be", | ||
"keywords": [ | ||
@@ -47,5 +47,5 @@ "Ethereum", | ||
"sideEffects": false, | ||
"tarballHash": "0x6f10c8eec974df4039ff9dc4805770e7cb25da537d642deb4125c8d8a44dfbe0", | ||
"tarballHash": "0xfa879cfa5e74cb934b265f47f2a900f4eb969ec6e96a7519f0fda398819a4145", | ||
"types": "./lib/index.d.ts", | ||
"version": "5.0.11" | ||
"version": "5.0.12" | ||
} |
@@ -1,1 +0,1 @@ | ||
export const version = "hash/5.0.11"; | ||
export const version = "hash/5.0.12"; |
import { TypedDataDomain, TypedDataField } from "@ethersproject/abstract-signer"; | ||
import { getAddress } from "@ethersproject/address"; | ||
import { BigNumber, BigNumberish } from "@ethersproject/bignumber"; | ||
import { arrayify, BytesLike, hexConcat, hexlify, hexValue, hexZeroPad, isHexString } from "@ethersproject/bytes"; | ||
import { arrayify, BytesLike, hexConcat, hexlify, hexZeroPad, isHexString } from "@ethersproject/bytes"; | ||
import { keccak256 } from "@ethersproject/keccak256"; | ||
@@ -487,9 +487,3 @@ import { deepCopy, defineReadOnly, shallowCopy } from "@ethersproject/properties"; | ||
if (type.match(/^u?int/)) { | ||
let prefix = ""; | ||
let v = BigNumber.from(value); | ||
if (v.isNegative()) { | ||
prefix = "-"; | ||
v = v.mul(-1); | ||
} | ||
return prefix + hexValue(v.toHexString()); | ||
return BigNumber.from(value).toString(); | ||
} | ||
@@ -496,0 +490,0 @@ |
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
119037
1646