Socket
Socket
Sign inDemoInstall

@celo/utils

Package Overview
Dependencies
Maintainers
8
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@celo/utils - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1-beta.0

8

lib/address.d.ts

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

export { Address, bufferToHex, ensureLeading0x, eqAddress, findAddressIndex, getAddressChunks, hexToBuffer, isHexString, mapAddressListDataOnto, mapAddressListOnto, normalizeAddress, normalizeAddressWith0x, NULL_ADDRESS, trimLeading0x, } from '@celo/base/lib/address';
export { Address, NULL_ADDRESS, bufferToHex, ensureLeading0x, eqAddress, findAddressIndex, getAddressChunks, hexToBuffer, isHexString, mapAddressListDataOnto, mapAddressListOnto, normalizeAddress, normalizeAddressWith0x, trimLeading0x, } from '@celo/base/lib/address';
export { isValidChecksumAddress, toChecksumAddress } from '@ethereumjs/util';
export declare const privateKeyToAddress: (privateKey: string) => string;
export declare const privateKeyToAddress: (privateKey: string) => `0x${string}`;
export declare const privateKeyToPublicKey: (privateKey: string) => string;
export declare const publicKeyToAddress: (publicKey: string) => string;
export declare const publicKeyToAddress: (publicKey: string) => `0x${string}`;
export declare const isValidPrivateKey: (privateKey: string) => boolean;
export declare const isValidAddress: (input: string) => boolean;
export declare const isValidAddress: (input: string) => input is `0x${string}`;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isValidAddress = exports.isValidPrivateKey = exports.publicKeyToAddress = exports.privateKeyToPublicKey = exports.privateKeyToAddress = exports.toChecksumAddress = exports.isValidChecksumAddress = exports.trimLeading0x = exports.NULL_ADDRESS = exports.normalizeAddressWith0x = exports.normalizeAddress = exports.mapAddressListOnto = exports.mapAddressListDataOnto = exports.isHexString = exports.hexToBuffer = exports.getAddressChunks = exports.findAddressIndex = exports.eqAddress = exports.ensureLeading0x = exports.bufferToHex = void 0;
exports.isValidAddress = exports.isValidPrivateKey = exports.publicKeyToAddress = exports.privateKeyToPublicKey = exports.privateKeyToAddress = exports.toChecksumAddress = exports.isValidChecksumAddress = exports.trimLeading0x = exports.normalizeAddressWith0x = exports.normalizeAddress = exports.mapAddressListOnto = exports.mapAddressListDataOnto = exports.isHexString = exports.hexToBuffer = exports.getAddressChunks = exports.findAddressIndex = exports.eqAddress = exports.ensureLeading0x = exports.bufferToHex = exports.NULL_ADDRESS = void 0;
const address_1 = require("@celo/base/lib/address");

@@ -9,2 +9,3 @@ const util_1 = require("@ethereumjs/util");

var address_2 = require("@celo/base/lib/address");
Object.defineProperty(exports, "NULL_ADDRESS", { enumerable: true, get: function () { return address_2.NULL_ADDRESS; } });
Object.defineProperty(exports, "bufferToHex", { enumerable: true, get: function () { return address_2.bufferToHex; } });

@@ -21,3 +22,2 @@ Object.defineProperty(exports, "ensureLeading0x", { enumerable: true, get: function () { return address_2.ensureLeading0x; } });

Object.defineProperty(exports, "normalizeAddressWith0x", { enumerable: true, get: function () { return address_2.normalizeAddressWith0x; } });
Object.defineProperty(exports, "NULL_ADDRESS", { enumerable: true, get: function () { return address_2.NULL_ADDRESS; } });
Object.defineProperty(exports, "trimLeading0x", { enumerable: true, get: function () { return address_2.trimLeading0x; } });

@@ -24,0 +24,0 @@ var util_2 = require("@ethereumjs/util");

{
"name": "@celo/utils",
"version": "6.0.0",
"version": "6.0.1-beta.0",
"description": "Celo common utils",

@@ -14,4 +14,4 @@ "author": "Celo",

"prepublishOnly": "yarn build",
"build": "tsc -b .",
"clean": "tsc -b . --clean",
"build": "yarn run --top-level tsc -b .",
"clean": "yarn run --top-level tsc -b . --clean",
"docs": "yarn run --top-level typedoc",

@@ -26,3 +26,3 @@ "test": "yarn run --top-level jest --runInBand --ci",

"dependencies": {
"@celo/base": "^6.0.0",
"@celo/base": "^6.0.1-beta.0",
"@ethereumjs/util": "8.0.5",

@@ -37,4 +37,4 @@ "@types/elliptic": "^6.4.9",

"rlp": "^2.2.4",
"web3-eth-abi": "1.10.0",
"web3-utils": "1.10.0"
"web3-eth-abi": "1.10.4",
"web3-utils": "1.10.4"
},

@@ -41,0 +41,0 @@ "devDependencies": {

@@ -0,5 +1,23 @@

# @celo/utils
Various utility functions used across Celo SDKs.
# @celo/utils
## How we work
Various utility functions used across celo sdks
We are a GitHub-first team, which means we have a strong preference for communicating via GitHub.
Please use GitHub to:
🐞 [File a bug report](https://github.com/celo-org/developer-tooling/issues/new/choose)
💬 [Ask a question](https://github.com/celo-org/developer-tooling/discussions)
✨ [Suggest a feature](httpsi//github.com/celo-org/developer-tooling/issues/new/choose)
🧑‍💻 [Contribute!](/CONTRIBUTING.md)
🚔 [Report a security vulnerability](https://github.com/celo-org/developer-tooling/issues/new/choose)
> [!TIP]
>
> Please avoid messaging us via Slack, Telegram, or email. We are more likely to respond to you on
> GitHub than if you message us anywhere else. We actively monitor GitHub, and will get back to you shortly 🌟

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