Skip to content

Commit

Permalink
Merge pull request #228 from helius-labs/sellerFeeBasisPoints
Browse files Browse the repository at this point in the history
Seller fee basis points
  • Loading branch information
solhosty authored Sep 27, 2023
2 parents b84d5af + 152825b commit 692fa6e
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/lib/components/nav.svelte
Original file line number Diff line number Diff line change
@@ -45,11 +45,14 @@

<div class="col-span-2 flex items-center justify-end">
<div class="flex justify-end pr-2">
<div class="tooltip" data-tip="Docs">
<a href="https://docs.helius.dev/welcome/what-is-helius" rel="noreferrer" target="_blank"
class="btn-ghost btn"
>
<img class="h-6 opacity-90" src="docs.svg" alt="">
</a>
</div>
<div class="tooltip" data-tip="Help">
<button
class="btn-ghost btn"
on:click={() => showModal("HELP")}
@@ -59,6 +62,8 @@
size="md"
/>
</button>
</div>
<div class="tooltip" data-tip="Menu">
<button
class="btn-ghost btn"
on:click={() => showModal("MENU")}
@@ -68,6 +73,7 @@
size="lg"
/>
</button>
</div>
</div>
</div>
</nav>
2 changes: 1 addition & 1 deletion src/lib/components/providers/token-provider.svelte
Original file line number Diff line number Diff line change
@@ -87,6 +87,7 @@
metadata.frozen = data?.frozen || false;
metadata.mutable = data?.mutable || false;
metadata.compressed = data?.compressed || false;
metadata.sellerFeeBasisPoints = data?.sellerFeeBasisPoints || 0;
metadata.dataHash = data?.dataHash || "";
metadata.creatorHash = data?.creatorHash || "";
metadata.assetHash = data?.assetHash || "";
@@ -106,7 +107,6 @@
} else {
// Kicks off the query
const data = $token?.data?.length ? $token.data[0] : {};
metadata.address = data?.account;
metadata.attributes = data?.offChainMetadata?.metadata?.attributes;
metadata.sellerFeeBasisPoints =
2 changes: 1 addition & 1 deletion src/lib/trpc/routes/asset.ts
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ export const asset = t.procedure.input(z.tuple([z.string(), z.boolean()])).query
mutable: data?.result?.mutable,
name: returnAssetData?.name || "",
owner: data?.result?.ownership?.owner || "",
sellerFeeBasisPoints: data?.result?.sellerFeeBasisPoints || 0,
sellerFeeBasisPoints: data?.result?.royalty.basis_points || 0,
seq: data?.result?.compression?.seq,
tree: data?.result?.compression?.tree,
};

1 comment on commit 692fa6e

@vercel
Copy link

@vercel vercel bot commented on 692fa6e Sep 27, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.