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

@ethersproject/address

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/address - npm Package Compare versions

Comparing version 5.0.5 to 5.0.6

src.ts/_version.ts

2

lib.esm/_version.d.ts

@@ -1,1 +0,1 @@

export declare const version = "address/5.0.5";
export declare const version = "address/5.0.6";

@@ -1,2 +0,2 @@

export const version = "address/5.0.5";
export const version = "address/5.0.6";
//# sourceMappingURL=_version.js.map
"use strict";
// We use this for base 36 maths
import { BN } from "bn.js";
import { arrayify, concat, hexDataLength, hexDataSlice, isHexString, stripZeros } from "@ethersproject/bytes";
import { BigNumber } from "@ethersproject/bignumber";
import { BigNumber, _base16To36, _base36To16 } from "@ethersproject/bignumber";
import { keccak256 } from "@ethersproject/keccak256";

@@ -89,3 +87,3 @@ import { encode } from "@ethersproject/rlp";

}
result = (new BN(address.substring(4), 36)).toString(16);
result = _base36To16(address.substring(4));
while (result.length < 40) {

@@ -110,3 +108,3 @@ result = "0" + result;

export function getIcapAddress(address) {
let base36 = (new BN(getAddress(address).substring(2), 16)).toString(36).toUpperCase();
let base36 = _base16To36(getAddress(address).substring(2)).toUpperCase();
while (base36.length < 30) {

@@ -113,0 +111,0 @@ base36 = "0" + base36;

@@ -1,1 +0,1 @@

export declare const version = "address/5.0.5";
export declare const version = "address/5.0.6";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "address/5.0.5";
exports.version = "address/5.0.6";
//# sourceMappingURL=_version.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// We use this for base 36 maths
var bn_js_1 = require("bn.js");
var bytes_1 = require("@ethersproject/bytes");

@@ -90,3 +88,3 @@ var bignumber_1 = require("@ethersproject/bignumber");

}
result = (new bn_js_1.BN(address.substring(4), 36)).toString(16);
result = bignumber_1._base36To16(address.substring(4));
while (result.length < 40) {

@@ -113,3 +111,3 @@ result = "0" + result;

function getIcapAddress(address) {
var base36 = (new bn_js_1.BN(getAddress(address).substring(2), 16)).toString(36).toUpperCase();
var base36 = bignumber_1._base16To36(getAddress(address).substring(2)).toUpperCase();
while (base36.length < 30) {

@@ -116,0 +114,0 @@ base36 = "0" + base36;

@@ -8,8 +8,7 @@ {

"@ethersproject/logger": "^5.0.5",
"@ethersproject/rlp": "^5.0.3",
"bn.js": "^4.4.0"
"@ethersproject/rlp": "^5.0.3"
},
"description": "Utilities for handling Ethereum Addresses for ethers.",
"ethereum": "donations.ethers.eth",
"gitHead": "ffa4a2d0549fe2c606bda3130f4a3f3d788f8dcf",
"gitHead": "8933467c01b64ead547d7c136f22f3c05c85ca1f",
"keywords": [

@@ -33,5 +32,6 @@ "Ethereum",

},
"tarballHash": "0xd6263c8653bc6784fed703b8a30075630c544e3861f43ed5b49ab56ffb5d4808",
"sideEffects": false,
"tarballHash": "0xed9bb243991ef357503555a8f3dc3081da5c5a64ec148a34791a264d07568f99",
"types": "./lib/index.d.ts",
"version": "5.0.5"
"version": "5.0.6"
}

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