fix(cache): fix cache imports

This commit is contained in:
shotgunofdeath 2021-09-17 14:19:24 +03:00
parent a2ff5f9fb2
commit 4be8f7509d
4 changed files with 13 additions and 15 deletions

View File

@ -12,8 +12,8 @@ import {
MAX_AUCTION_DATA_EXTENDED_SIZE,
} from '../../actions';
import { AUCTION_ID } from '../../utils';
import { ParsedAccount } from '../accounts/types';
import { cache } from '../accounts/cache';
import { ParsedAccount } from '../accounts';
import { cache } from '../accounts';
import { CheckAccountFunc, ProcessAccountsFunc } from './types';
export const processAuctions: ProcessAccountsFunc = (

View File

@ -18,11 +18,11 @@ import {
BidRedemptionTicketV2,
decodeSafetyDepositConfig,
SafetyDepositConfig,
} from '../../models/metaplex';
} from '../../models';
import { ProcessAccountsFunc } from './types';
import { METAPLEX_ID, programIds } from '../../utils';
import { ParsedAccount } from '../accounts/types';
import { cache } from '../accounts/cache';
import { ParsedAccount } from '../accounts';
import { cache } from '../accounts';
export const processMetaplexAccounts: ProcessAccountsFunc = async (
{ account, pubkey },

View File

@ -1,10 +1,10 @@
import { MintInfo } from '@solana/spl-token';
import { Connection } from '@solana/web3.js';
import { Metadata } from '../../actions';
import { ParsedAccount } from '../accounts/types';
import { cache } from '../accounts/cache';
import { getMultipleAccounts } from '../accounts/getMultipleAccounts';
import { MintParser } from '../accounts/parsesrs';
import { ParsedAccount } from '../accounts';
import { cache } from '../accounts';
import { getMultipleAccounts } from '../accounts';
import { MintParser } from '../accounts';
export const queryExtendedMetadata = async (
connection: Connection,

View File

@ -525,16 +525,14 @@ export const AuctionCard = ({
const allowBidToPublic =
myPayingAccount &&
!auctionView.myBidderPot &&
isAuctionManagerAuthorityNotWalletOwner &&
instantSalePrice;
isAuctionManagerAuthorityNotWalletOwner;
const allowBidToAuctionOwner =
myPayingAccount &&
!isAuctionManagerAuthorityNotWalletOwner &&
isAuctionItemMaster &&
instantSalePrice;
isAuctionItemMaster;
// Placing a "bid" of the full amount results in a purchase to redeem.
if (allowBidToPublic || allowBidToAuctionOwner) {
if (instantSalePrice && (allowBidToPublic || allowBidToAuctionOwner)) {
try {
const bid = await sendPlaceBid(
connection,
@ -542,7 +540,7 @@ export const AuctionCard = ({
myPayingAccount.pubkey,
auctionView,
accountByMint,
auctionView.auctionDataExtended?.info.instantSalePrice,
instantSalePrice,
);
setLastBid(bid);
} catch (e) {