Skip to content

Commit

Permalink
delete unused
Browse files Browse the repository at this point in the history
  • Loading branch information
aeolianeth committed Nov 20, 2024
1 parent fd3ad80 commit f2bef13
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 454 deletions.
11 changes: 4 additions & 7 deletions src/packages/v4/contexts/V4NftRewardsProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useJBContractContext, useJBRulesetMetadata } from 'juice-sdk-react'
import { useJBRulesetMetadata } from 'juice-sdk-react'
import { JB721GovernanceType, NftRewardTier } from 'models/nftRewards'
import { NftRewardsContext } from 'packages/v2v3/contexts/NftRewards/NftRewardsContext'
import { useNftCollectionPricingContext } from 'packages/v2v3/hooks/JB721Delegate/contractReader/useNftCollectionPricingContext'
import { useEffect, useMemo, useState } from 'react'
import {
DEFAULT_NFT_FLAGS,
Expand All @@ -15,7 +14,6 @@ export const V4NftRewardsProvider: React.FC<
React.PropsWithChildren<unknown>
> = ({ children }) => {
const { data } = useJBRulesetMetadata()
const { projectId } = useJBContractContext()

const [firstLoad, setFirstLoad] = useState(true)

Expand All @@ -37,8 +35,6 @@ export const V4NftRewardsProvider: React.FC<
tierData.map(t => ({ encodedIPFSUri: t.encodedIPFSUri })),
)

const { data: pricing } = useNftCollectionPricingContext()

// // fetch NFT metadata (its image, name etc.) from ipfs
// const { data: loadedRewardTiers, isLoading: nftRewardTiersLoading } =
// useNftRewards(tierData, projectId, dataHookAddress)
Expand Down Expand Up @@ -80,7 +76,8 @@ export const V4NftRewardsProvider: React.FC<
const contextData = {
nftRewards: {
rewardTiers,
pricing: pricing ?? DEFAULT_NFT_PRICING,
// pricing: pricing ?? DEFAULT_NFT_PRICING, // TODO wip
pricing: DEFAULT_NFT_PRICING,
// TODO: Load governance type
governanceType: JB721GovernanceType.NONE,
CIDs,
Expand All @@ -93,7 +90,7 @@ export const V4NftRewardsProvider: React.FC<
postPayModal: undefined,
// postPayModal: projectMetadata?.nftPaymentSuccessModal,
// flags: flags ?? DEFAULT_NFT_FLAGS, TODO wip
flags: DEFAULT_NFT_FLAGS
flags: DEFAULT_NFT_FLAGS,
},
loading: nftsLoading,
}
Expand Down
3 changes: 1 addition & 2 deletions src/packages/v4/contexts/useV4NftTiers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
useReadJb721TiersHookStoreAddress,
useReadJb721TiersHookStoreTiersOf,
} from 'juice-sdk-react'
import { MAX_NFT_REWARD_TIERS } from 'packages/v2v3/constants/nftRewards'
import { Address } from 'viem'

export function useV4NftTiers({
Expand All @@ -26,7 +25,7 @@ export function useV4NftTiers({
[], // _categories
false, // _includeResolvedUri, return in each tier a result from a tokenUriResolver if one is included in the delegate
0n, // _startingId
BigInt(limit ?? MAX_NFT_REWARD_TIERS),
BigInt(limit ?? 69), // MAX_NFT_REWARD_TIERS
] as const)
: undefined

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit f2bef13

Please sign in to comment.