@solana/addresses
Advanced tools
Comparing version 2.0.0-experimental.68d1443 to 2.0.0-experimental.6a124b1
@@ -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 { Serializer } from '@metaplex-foundation/umi-serializers'; | ||
export type Base58EncodedAddress<TAddress extends string = string> = TAddress & { | ||
readonly __base58EncodedAddress: unique symbol; | ||
readonly __brand: unique symbol; | ||
}; | ||
@@ -5,0 +5,0 @@ export declare function assertIsBase58EncodedAddress(putativeBase58EncodedAddress: string): asserts putativeBase58EncodedAddress is Base58EncodedAddress<typeof putativeBase58EncodedAddress>; |
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.68d1443", | ||
"version": "2.0.0-experimental.6a124b1", | ||
"description": "Helpers for generating account addresses", | ||
@@ -53,10 +53,10 @@ "exports": { | ||
"@metaplex-foundation/umi-serializers": "^0.8.5", | ||
"@solana/assertions": "2.0.0-experimental.68d1443" | ||
"@solana/assertions": "2.0.0-experimental.6a124b1" | ||
}, | ||
"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.0.0", | ||
"@typescript-eslint/parser": "^6.0.0", | ||
"@typescript-eslint/eslint-plugin": "^6.3.0", | ||
"@typescript-eslint/parser": "^6.3.0", | ||
"agadoo": "^3.0.0", | ||
@@ -67,6 +67,6 @@ "eslint": "^8.45.0", | ||
"jest": "^29.6.1", | ||
"jest-environment-jsdom": "^29.6.0", | ||
"jest-environment-jsdom": "^29.6.4", | ||
"jest-runner-eslint": "^2.1.0", | ||
"jest-runner-prettier": "^1.0.0", | ||
"prettier": "^2.8.8", | ||
"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
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
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
203107
+ Added@solana/assertions@2.0.0-experimental.6a124b1(transitive)
- Removed@solana/assertions@2.0.0-experimental.68d1443(transitive)