@celo/utils
Advanced tools
Comparing version 6.0.0 to 6.0.1-beta.0
@@ -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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
117502
23
2
+ Added@ethereumjs/util@8.1.0(transitive)
+ Added@noble/curves@1.4.2(transitive)
+ Added@noble/hashes@1.4.0(transitive)
+ Added@scure/bip32@1.4.0(transitive)
+ Added@scure/bip39@1.3.0(transitive)
+ Addedethereum-cryptography@2.2.1(transitive)
+ Addedmicro-ftch@0.3.1(transitive)
+ Addedweb3-eth-abi@1.10.4(transitive)
+ Addedweb3-utils@1.10.4(transitive)
- Removed@types/pbkdf2@3.1.2(transitive)
- Removed@types/secp256k1@4.0.6(transitive)
- Removedbase-x@3.0.10(transitive)
- Removedblakejs@1.2.1(transitive)
- Removedbrowserify-aes@1.2.0(transitive)
- Removedbs58@4.0.1(transitive)
- Removedbs58check@2.1.2(transitive)
- Removedbuffer-xor@1.0.3(transitive)
- Removedcipher-base@1.0.4(transitive)
- Removedcreate-hash@1.2.0(transitive)
- Removedcreate-hmac@1.1.7(transitive)
- Removedethereum-cryptography@0.1.3(transitive)
- Removedethereumjs-util@7.1.5(transitive)
- Removedevp_bytestokey@1.0.3(transitive)
- Removedhash-base@3.1.0(transitive)
- Removedkeccak@3.0.4(transitive)
- Removedmd5.js@1.3.5(transitive)
- Removednode-addon-api@2.0.2(transitive)
- Removednode-gyp-build@4.8.2(transitive)
- Removedpbkdf2@3.1.2(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedripemd160@2.0.2(transitive)
- Removedscrypt-js@3.0.1(transitive)
- Removedsecp256k1@4.0.3(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedsha.js@2.4.11(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedweb3-eth-abi@1.10.0(transitive)
- Removedweb3-utils@1.10.0(transitive)
Updated@celo/base@^6.0.1-beta.0
Updatedweb3-eth-abi@1.10.4
Updatedweb3-utils@1.10.4