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

nft-staking

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nft-staking - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

8

dist/src/helpers.d.ts

@@ -1,4 +0,4 @@

import { KeypairSigner, PublicKey, Umi } from "@metaplex-foundation/umi";
export declare function createStakeIx(umi: Umi, user: KeypairSigner, nftMint: PublicKey, nftStake?: KeypairSigner): Promise<import("@metaplex-foundation/umi").TransactionBuilder>;
export declare function createUnstakeIx(umi: Umi, user: KeypairSigner, nftStake: PublicKey, nftMint: PublicKey): import("@metaplex-foundation/umi").TransactionBuilder;
export declare function createClaimRewardIx(umi: Umi, user: KeypairSigner, nftStake: PublicKey, mint: PublicKey, rewardVaultAuthority: KeypairSigner): Promise<import("@metaplex-foundation/umi").TransactionBuilder>;
import { KeypairSigner, PublicKey, Signer, Umi } from "@metaplex-foundation/umi";
export declare function createStakeIx(umi: Umi, user: Signer, nftMint: PublicKey, nftStake?: KeypairSigner): Promise<import("@metaplex-foundation/umi").TransactionBuilder>;
export declare function createUnstakeIx(umi: Umi, user: Signer, nftStake: PublicKey, nftMint: PublicKey): import("@metaplex-foundation/umi").TransactionBuilder;
export declare function createClaimRewardIx(umi: Umi, user: Signer, nftStake: PublicKey, mint: PublicKey, rewardVaultAuthority: KeypairSigner): Promise<import("@metaplex-foundation/umi").TransactionBuilder>;
{
"name": "nft-staking",
"version": "1.0.0",
"version": "1.0.1",
"description": "Stake nfts on whitestache",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

import { findMasterEditionPda, findMetadataPda, findTokenRecordPda } from "@metaplex-foundation/mpl-token-metadata";
import { createTokenIfMissing, findAssociatedTokenPda } from "@metaplex-foundation/mpl-toolbox";
import { KeypairSigner, PublicKey, Umi, generateSigner, publicKey, transactionBuilder } from "@metaplex-foundation/umi";
import { KeypairSigner, PublicKey, Signer, Umi, generateSigner, publicKey, transactionBuilder } from "@metaplex-foundation/umi";
import { publicKey as pk, string } from "@metaplex-foundation/umi/serializers";

@@ -8,3 +8,3 @@ import { NFT_STAKING_PROGRAM_ID, claimReward, stake, unstake } from "../src";

export async function createStakeIx(umi: Umi, user: KeypairSigner, nftMint: PublicKey, nftStake?: KeypairSigner) {
export async function createStakeIx(umi: Umi, user: Signer, nftMint: PublicKey, nftStake?: KeypairSigner) {
if (!nftStake) nftStake = generateSigner(umi);

@@ -48,3 +48,3 @@

export function createUnstakeIx(umi: Umi, user: KeypairSigner, nftStake: PublicKey, nftMint: PublicKey) {
export function createUnstakeIx(umi: Umi, user: Signer, nftStake: PublicKey, nftMint: PublicKey) {
const [delegate] = umi.eddsa.findPda(NFT_STAKING_PROGRAM_ID, [

@@ -85,3 +85,3 @@ string({ size: "variable" }).serialize(SEED_DELEGATE),

export async function createClaimRewardIx(umi: Umi, user: KeypairSigner, nftStake: PublicKey, mint: PublicKey, rewardVaultAuthority: KeypairSigner) {
export async function createClaimRewardIx(umi: Umi, user: Signer, nftStake: PublicKey, mint: PublicKey, rewardVaultAuthority: KeypairSigner) {
const [config] = umi.eddsa.findPda(NFT_STAKING_PROGRAM_ID, [string({ size: "variable" }).serialize(SEED_CONFIG)]);

@@ -88,0 +88,0 @@

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