@ethereumjs/util
Advanced tools
Comparing version 8.0.2 to 8.0.3
/// <reference types="node" /> | ||
/** | ||
* Handling and generating Ethereum addresses | ||
*/ | ||
export declare class Address { | ||
@@ -3,0 +6,0 @@ readonly buf: Buffer; |
@@ -6,2 +6,5 @@ "use strict"; | ||
const bytes_1 = require("./bytes"); | ||
/** | ||
* Handling and generating Ethereum addresses | ||
*/ | ||
class Address { | ||
@@ -8,0 +11,0 @@ constructor(buf) { |
@@ -166,2 +166,3 @@ /// <reference types="node" /> | ||
export declare function bigIntToUnpaddedBuffer(value: bigint): Buffer; | ||
export declare function intToUnpaddedBuffer(value: number): Buffer; | ||
//# sourceMappingURL=bytes.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.bigIntToUnpaddedBuffer = exports.bigIntToHex = exports.bufArrToArr = exports.arrToBufArr = exports.validateNoLeadingZeroes = exports.baToJSON = exports.toUtf8 = exports.short = exports.addHexPrefix = exports.toUnsigned = exports.fromSigned = exports.bufferToInt = exports.bigIntToBuffer = exports.bufferToBigInt = exports.bufferToHex = exports.toBuffer = exports.unpadHexString = exports.unpadArray = exports.unpadBuffer = exports.setLengthRight = exports.setLengthLeft = exports.zeros = exports.intToBuffer = exports.intToHex = void 0; | ||
exports.intToUnpaddedBuffer = exports.bigIntToUnpaddedBuffer = exports.bigIntToHex = exports.bufArrToArr = exports.arrToBufArr = exports.validateNoLeadingZeroes = exports.baToJSON = exports.toUtf8 = exports.short = exports.addHexPrefix = exports.toUnsigned = exports.fromSigned = exports.bufferToInt = exports.bigIntToBuffer = exports.bufferToBigInt = exports.bufferToHex = exports.toBuffer = exports.unpadHexString = exports.unpadArray = exports.unpadBuffer = exports.setLengthRight = exports.setLengthLeft = exports.zeros = exports.intToBuffer = exports.intToHex = void 0; | ||
const helpers_1 = require("./helpers"); | ||
@@ -350,2 +350,6 @@ const internal_1 = require("./internal"); | ||
exports.bigIntToUnpaddedBuffer = bigIntToUnpaddedBuffer; | ||
function intToUnpaddedBuffer(value) { | ||
return (0, exports.unpadBuffer)((0, exports.intToBuffer)(value)); | ||
} | ||
exports.intToUnpaddedBuffer = intToUnpaddedBuffer; | ||
//# sourceMappingURL=bytes.js.map |
@@ -14,2 +14,6 @@ /** | ||
/** | ||
* Withdrawal type | ||
*/ | ||
export * from './withdrawal'; | ||
/** | ||
* ECDSA signature | ||
@@ -16,0 +20,0 @@ */ |
@@ -31,2 +31,6 @@ "use strict"; | ||
/** | ||
* Withdrawal type | ||
*/ | ||
__exportStar(require("./withdrawal"), exports); | ||
/** | ||
* ECDSA signature | ||
@@ -33,0 +37,0 @@ */ |
{ | ||
"name": "@ethereumjs/util", | ||
"version": "8.0.2", | ||
"version": "8.0.3", | ||
"description": "A collection of utility functions for Ethereum", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -10,2 +10,5 @@ import { | ||
/** | ||
* Handling and generating Ethereum addresses | ||
*/ | ||
export class Address { | ||
@@ -12,0 +15,0 @@ public readonly buf: Buffer |
@@ -389,1 +389,5 @@ import { assertIsArray, assertIsBuffer, assertIsHexString } from './helpers' | ||
} | ||
export function intToUnpaddedBuffer(value: number): Buffer { | ||
return unpadBuffer(intToBuffer(value)) | ||
} |
@@ -17,2 +17,7 @@ /** | ||
/** | ||
* Withdrawal type | ||
*/ | ||
export * from './withdrawal' | ||
/** | ||
* ECDSA signature | ||
@@ -19,0 +24,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
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
215690
63
4023
5