diff --git a/src/lib/upload/arweave.ts b/src/lib/upload/arweave.ts index 86c54bd..63b9476 100644 --- a/src/lib/upload/arweave.ts +++ b/src/lib/upload/arweave.ts @@ -1,6 +1,5 @@ import { calculate } from '@metaplex/arweave-cost' import * as anchor from '@project-serum/anchor' -import { AnchorWallet } from '@solana/wallet-adapter-react' import { ARWEAVE_PAYMENT_WALLET, ARWEAVE_UPLOAD_ENDPOINT,JSON_EXTENSION } from '../constants' import { Manifest } from '../types' import { getFileExtension } from './helpers' @@ -61,7 +60,7 @@ function estimateManifestSize(filenames: string[]) { } export async function arweaveUpload( - walletKeyPair: AnchorWallet, + walletKeyPair: any, anchorProgram: anchor.Program, env: string, image: File, diff --git a/src/lib/upload/helpers.ts b/src/lib/upload/helpers.ts index 9a24355..e04c1a5 100644 --- a/src/lib/upload/helpers.ts +++ b/src/lib/upload/helpers.ts @@ -1,5 +1,4 @@ import * as anchor from '@project-serum/anchor' -import { AnchorWallet } from '@solana/wallet-adapter-react' import { Keypair, PublicKey, SystemProgram } from '@solana/web3.js' import { CANDY_MACHINE_PROGRAM_V2_ID, @@ -25,7 +24,7 @@ export function uuidFromConfigPubkey(configAccount: PublicKey) { export const createCandyMachineV2 = async function ( anchorProgram: anchor.Program, - payerWallet: AnchorWallet, + payerWallet: any, treasuryWallet: PublicKey, // splToken: PublicKey, candyData: ICandyMachineData diff --git a/src/lib/upload/transactions.ts b/src/lib/upload/transactions.ts index 26e153c..541f1a3 100644 --- a/src/lib/upload/transactions.ts +++ b/src/lib/upload/transactions.ts @@ -1,4 +1,3 @@ -import { AnchorWallet } from '@solana/wallet-adapter-react' import { Blockhash, Commitment, @@ -21,7 +20,7 @@ interface IBlockhashAndFeeCalculator { export const sendTransactionWithRetryWithKeypair = async ( connection: Connection, - wallet: AnchorWallet, + wallet: any, instructions: TransactionInstruction[], commitment: Commitment = 'singleGossip', block?: IBlockhashAndFeeCalculator, diff --git a/src/lib/upload/upload.ts b/src/lib/upload/upload.ts index cf9de83..8adf7a3 100644 --- a/src/lib/upload/upload.ts +++ b/src/lib/upload/upload.ts @@ -1,5 +1,4 @@ import { BN, Program, web3 } from '@project-serum/anchor' -import { AnchorWallet } from '@solana/wallet-adapter-react' import { PublicKey } from '@solana/web3.js' import { PromisePool } from '@supercharge/promise-pool' import { ICache, saveCache } from 'lib/cache' @@ -88,7 +87,7 @@ export async function uploadV2({ hash: Uint8Array } // uuid: string; - walletKeyPair: AnchorWallet + walletKeyPair: any anchorProgram: Program // arweaveJwk: string; rateLimit: number | null @@ -351,7 +350,7 @@ async function writeIndices({ cacheName: string env: string candyMachine: PublicKey - walletKeyPair: AnchorWallet + walletKeyPair: any rateLimit: number | null }) { let uploadSuccessful = true