-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add erc20 and erc721 components
- Loading branch information
1 parent
db5d0af
commit 10fa996
Showing
65 changed files
with
1,835 additions
and
2,218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
title: ERC20 Decimals | ||
description: Display the decimals of an ERC20 token. | ||
component: true | ||
wagmi: | ||
link: https://wagmi.sh/react/hooks/useContractRead | ||
--- | ||
|
||
<ComponentPreview | ||
name="erc20-decimals-demo" | ||
className="[&_.preview>[data-orientation=vertical]]:sm:max-w-[70%]" | ||
/> | ||
|
||
## Installation | ||
|
||
<Tabs defaultValue="manual"> | ||
|
||
<TabsList> | ||
<TabsTrigger value="manual">Manual</TabsTrigger> | ||
<TabsTrigger disabled={true} value="cli"> | ||
CLI (Coming Soon) | ||
</TabsTrigger> | ||
</TabsList> | ||
|
||
<TabsContent value="cli"> | ||
|
||
<Steps> | ||
|
||
<Step>Coming soon...</Step> | ||
|
||
</Steps> | ||
|
||
</TabsContent> | ||
|
||
<TabsContent value="manual"> | ||
|
||
<Steps> | ||
|
||
<Step>Copy and paste the following code into your project.</Step> | ||
|
||
<ComponentSource name="erc20-decimals" /> | ||
|
||
</Steps> | ||
|
||
</TabsContent> | ||
|
||
</Tabs> | ||
|
||
## Usage | ||
|
||
```tsx | ||
import { Erc20Decimals } from "@/registry/default/buidl/erc20/erc20-decimals" | ||
``` | ||
|
||
```tsx | ||
<Erc20Decimals | ||
address="0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" | ||
chainId={1} | ||
/> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.