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
1325
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.baadda0 to 2.0.0-experimental.bac4a66

6

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,2 @@ if (publicKey.type !== "public" || publicKey.algorithm.name !== "Ed25519") {

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

@@ -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.baadda0",
"version": "2.0.0-experimental.bac4a66",
"description": "Helpers for generating account addresses",

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

"@metaplex-foundation/umi-serializers": "^0.8.5",
"@solana/assertions": "2.0.0-experimental.baadda0"
"@solana/assertions": "2.0.0-experimental.bac4a66"
},
"devDependencies": {
"@solana/eslint-config-solana": "^1.0.2",
"@swc/jest": "^0.2.27",
"@swc/jest": "^0.2.28",
"@types/jest": "^29.5.3",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.0.0",
"@typescript-eslint/parser": "^6.3.0",
"agadoo": "^3.0.0",

@@ -70,3 +70,3 @@ "eslint": "^8.45.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

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