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

@solana/addresses

Package Overview
Dependencies
Maintainers
13
Versions
1329
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/addresses - npm Package Compare versions

Comparing version 2.0.0-experimental.03edc6f to 2.0.0-experimental.0556eb2

4

dist/index.browser.js

@@ -210,3 +210,3 @@ import { base58, string } from '@metaplex-foundation/umi-serializers';

}
async function getBase58EncodedAddressFromPublicKey(publicKey) {
async function getAddressFromPublicKey(publicKey) {
await assertKeyExporterIsAvailable();

@@ -221,4 +221,4 @@ if (publicKey.type !== "public" || publicKey.algorithm.name !== "Ed25519") {

export { assertIsBase58EncodedAddress, getBase58EncodedAddressCodec, getBase58EncodedAddressComparator, getBase58EncodedAddressFromPublicKey, getProgramDerivedAddress };
export { assertIsBase58EncodedAddress, getAddressFromPublicKey, getBase58EncodedAddressCodec, getBase58EncodedAddressComparator, getProgramDerivedAddress };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=index.browser.js.map

@@ -497,3 +497,3 @@ this.globalThis = this.globalThis || {};

// src/public-key.ts
async function getBase58EncodedAddressFromPublicKey(publicKey) {
async function getAddressFromPublicKey(publicKey) {
await assertKeyExporterIsAvailable();

@@ -509,5 +509,5 @@ if (publicKey.type !== "public" || publicKey.algorithm.name !== "Ed25519") {

exports.assertIsBase58EncodedAddress = assertIsBase58EncodedAddress;
exports.getAddressFromPublicKey = getAddressFromPublicKey;
exports.getBase58EncodedAddressCodec = getBase58EncodedAddressCodec;
exports.getBase58EncodedAddressComparator = getBase58EncodedAddressComparator;
exports.getBase58EncodedAddressFromPublicKey = getBase58EncodedAddressFromPublicKey;
exports.getProgramDerivedAddress = getProgramDerivedAddress;

@@ -514,0 +514,0 @@

@@ -210,3 +210,3 @@ import { base58, string } from '@metaplex-foundation/umi-serializers';

}
async function getBase58EncodedAddressFromPublicKey(publicKey) {
async function getAddressFromPublicKey(publicKey) {
await assertKeyExporterIsAvailable();

@@ -221,4 +221,4 @@ if (publicKey.type !== "public" || publicKey.algorithm.name !== "Ed25519") {

export { assertIsBase58EncodedAddress, getBase58EncodedAddressCodec, getBase58EncodedAddressComparator, getBase58EncodedAddressFromPublicKey, getProgramDerivedAddress };
export { assertIsBase58EncodedAddress, getAddressFromPublicKey, getBase58EncodedAddressCodec, getBase58EncodedAddressComparator, getProgramDerivedAddress };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=index.native.js.map

@@ -210,3 +210,3 @@ import { base58, string } from '@metaplex-foundation/umi-serializers';

}
async function getBase58EncodedAddressFromPublicKey(publicKey) {
async function getAddressFromPublicKey(publicKey) {
await assertKeyExporterIsAvailable();

@@ -221,4 +221,4 @@ if (publicKey.type !== "public" || publicKey.algorithm.name !== "Ed25519") {

export { assertIsBase58EncodedAddress, getBase58EncodedAddressCodec, getBase58EncodedAddressComparator, getBase58EncodedAddressFromPublicKey, getProgramDerivedAddress };
export { assertIsBase58EncodedAddress, getAddressFromPublicKey, getBase58EncodedAddressCodec, getBase58EncodedAddressComparator, getProgramDerivedAddress };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=index.node.js.map

@@ -8,5 +8,5 @@ this.globalThis = this.globalThis || {};

exports.assertIsBase58EncodedAddress = xr;
exports.getAddressFromPublicKey = Lr;
exports.getBase58EncodedAddressCodec = A;
exports.getBase58EncodedAddressComparator = br;
exports.getBase58EncodedAddressFromPublicKey = Lr;
exports.getProgramDerivedAddress = $r;

@@ -13,0 +13,0 @@

import { Base58EncodedAddress } from './base58';
export declare function getBase58EncodedAddressFromPublicKey(publicKey: CryptoKey): Promise<Base58EncodedAddress>;
export declare function getAddressFromPublicKey(publicKey: CryptoKey): Promise<Base58EncodedAddress>;
//# sourceMappingURL=public-key.d.ts.map
{
"name": "@solana/addresses",
"version": "2.0.0-experimental.03edc6f",
"version": "2.0.0-experimental.0556eb2",
"description": "Helpers for generating account addresses",

@@ -53,3 +53,3 @@ "exports": {

"@metaplex-foundation/umi-serializers": "^0.8.5",
"@solana/assertions": "2.0.0-experimental.03edc6f"
"@solana/assertions": "2.0.0-experimental.0556eb2"
},

@@ -67,6 +67,6 @@ "devDependencies": {

"jest": "^29.6.1",
"jest-environment-jsdom": "^29.6.2",
"jest-environment-jsdom": "^29.6.4",
"jest-runner-eslint": "^2.1.0",
"jest-runner-prettier": "^1.0.0",
"prettier": "^3.0.1",
"prettier": "^2.8",
"tsup": "7.2.0",

@@ -73,0 +73,0 @@ "typescript": "^5.1.6",

@@ -54,3 +54,3 @@ [![npm][npm-image]][npm-url]

### `getBase58EncodedAddressFromPublicKey()`
### `getAddressFromPublicKey()`

@@ -60,5 +60,5 @@ Given a public `CryptoKey`, this method will return its associated `Base58EncodedAddress`.

```ts
import { getBase58EncodedAddressFromPublicKey } from '@solana/addresses';
import { getAddressFromPublicKey } from '@solana/addresses';
const address = await getBase58EncodedAddressFromPublicKey(publicKey);
const address = await getAddressFromPublicKey(publicKey);
```

@@ -65,0 +65,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

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