@solflare-wallet/pfp
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -65,2 +65,3 @@ "use strict"; | ||
var index_1 = require("./index"); | ||
var buffer_1 = require("buffer"); | ||
var PROFILE_PICTURE_PREFIX = 'nft_profile'; | ||
@@ -80,3 +81,3 @@ function decodeProfilePictureAccount(account) { | ||
case 0: return [4 /*yield*/, web3_js_1.PublicKey.findProgramAddress([ | ||
Buffer.from(PROFILE_PICTURE_PREFIX), | ||
buffer_1.Buffer.from(PROFILE_PICTURE_PREFIX), | ||
publicKey.toBuffer() | ||
@@ -83,0 +84,0 @@ ], index_1.PROFILE_PICTURE_PROGRAM)]; |
@@ -59,2 +59,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { PROFILE_PICTURE_PROGRAM } from './index'; | ||
import { Buffer } from 'buffer'; | ||
var PROFILE_PICTURE_PREFIX = 'nft_profile'; | ||
@@ -61,0 +62,0 @@ export function decodeProfilePictureAccount(account) { |
{ | ||
"name": "@solflare-wallet/pfp", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Solflare Developers <developers@solflare.com>", |
# @solflare-wallet/pfp | ||
## Description | ||
The Solana Profile Picture Protocol allows Solana users to set a single Metaplex-standard NFT as a universal PFP for the Solana blockchain. | ||
Individual Solana protocols can use the documentation below both to show PFPs in their FE, and to provide functionality within their own FE to allow users to set a new PFP. | ||
## Example | ||
@@ -4,0 +10,0 @@ |
@@ -8,2 +8,3 @@ import { AccountInfo, PublicKey } from '@solana/web3.js'; | ||
import { PROFILE_PICTURE_PROGRAM } from './index'; | ||
import { Buffer } from 'buffer'; | ||
@@ -10,0 +11,0 @@ const PROFILE_PICTURE_PREFIX = 'nft_profile'; |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
51808
871
65
1