Skip to content

feat: draft for erc721 card #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: draft for erc721 card #149

wants to merge 1 commit into from

Conversation

iyansr
Copy link
Collaborator

@iyansr iyansr commented Apr 28, 2025

Preview

CleanShot 2025-04-28 at 10 35 54

Copy link

changeset-bot bot commented Apr 28, 2025

⚠️ No Changeset found

Latest commit: f83eb1b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

Connected to Huly®: DAPPK-147

contractAddress,
tokenId,
}: PropsWithChildren<NFTCardType>) => {
const {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in this case it's fine while generally we might prefer nanostore over context provider
https://github.com/nanostores/nanostores

@@ -0,0 +1,74 @@
export interface NFTResponse {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can put types into the api.ts

className="text-right font-semibold text-black"
>
{nftData?.owner?.ens_domain_name ??
formatAddress(nftData?.owner?.hash ?? "")}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets use existing components / utils
we do hv

contractAddress: string;
}

function ERC721CardStories({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we create 2 stories for 2 separate smart vs dumb components
(similar to TransactionTable vs TransactionTableWithDetails

end goal is we don't dictate the data source

export function NFTMedia() {
const { nftData } = useNFT();

const imageUrl = nftData?.image_url;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iyansr do you hv example data for blockscout nft url?
many NFT provide ipfs hash so we need explicit ipfs gateway control on the image to be shown

(reference getIpfsGatewayUrl)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants