nft-staking
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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 @@ |
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
365676