generated from shuding/nextra-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh homepage and tokencard components
- Loading branch information
Showing
5 changed files
with
146 additions
and
101 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 |
---|---|---|
@@ -1,87 +1,96 @@ | ||
import { TokenCard } from '../../components/TokenCard'; | ||
import { Tabs, Blockquote, Title } from '@mantine/core'; | ||
import { Box, Divider } from '@mantine/core'; | ||
|
||
# Token Standards | ||
|
||
This section provides an overview of the token standards supported on Sei, each serving unique functions within the blockchain ecosystem. | ||
|
||
<br/> | ||
|
||
<TokenCard | ||
title="Sei Token" | ||
tooltip="Native token used on Sei for transaction fees and governance." | ||
details={[ | ||
{ label: 'Primary Use', content: 'Used to pay transaction fees and participate in governance decisions.' }, | ||
{ label: 'EVM Conversion', content: 'Enter an amount to convert Sei to wei.' }, | ||
{ label: 'Cosmos Conversion', content: 'Enter an amount to convert Sei to Cosmos units.' }, | ||
]} | ||
/> | ||
<Box mb="md"> | ||
<TokenCard | ||
title="Sei Token" | ||
tooltip="Native token used on Sei for transaction fees and governance." | ||
details={[ | ||
{ label: 'EVM Conversion', content: 'Enter an amount to convert Sei to wei.' }, | ||
{ label: 'Cosmos Conversion', content: 'Enter an amount to convert Sei to Cosmos units.' }, | ||
]} | ||
/> | ||
</Box> | ||
|
||
--- | ||
<Divider variant="dashed" color="#9E1F19" /> | ||
|
||
<TokenCard | ||
title="Fungible Tokens" | ||
tooltip="Interchangeable digital assets supporting ERC20 and CW20 standards." | ||
details={[ | ||
{ label: 'TokenFactory', content: 'Natively integrated with Cosmos modules for efficient queries and high performance.' }, | ||
{ label: 'ERC20 Standard', content: 'Defines transferable, interchangeable tokens for EVM-based dApps.' }, | ||
{ label: 'CW20 Standard', content: 'Cosmos equivalent of ERC20, providing compatibility with Cosmos-based dApps.' }, | ||
{ label: 'Cross-Chain Compatibility', content: 'Supports pointer contracts for seamless cross-chain interaction.' } | ||
]} | ||
referenceGuide={[ | ||
{ | ||
content: "To deploy a pointer contract for cross-chain compatibility, follow these steps using the seid CLI tool.", | ||
}, | ||
{ | ||
content: "1. Check if a pointer already exists for the token or contract using:", | ||
command: "seid q evm pointer [type] [pointee] [flags]" | ||
}, | ||
{ | ||
content: "2. Deploy a new pointer contract linking a CosmWasm contract with an EVM pointer:", | ||
command: "seid tx evm register-evm-pointer CW20 $CW20_TOKEN_ADDRESS --from=$SENDER --chain-id=pacific-1 --broadcast-mode=block --gas=200000 --fees=5000usei --node=https://rpc.sei-apis.com" | ||
}, | ||
{ | ||
content: "3. Confirm the pointer registration with:", | ||
command: "seid query evm pointer [type] [pointee] [flags]" | ||
}, | ||
{ | ||
content: "Refer to the [Pointer Contracts Documentation](/dev-interoperability/pointer-contracts) for a detailed overview." | ||
} | ||
]} | ||
/> | ||
<Box mt="md" mb="md"> | ||
<TokenCard | ||
title="Fungible Tokens" | ||
tooltip="Interchangeable digital assets supporting ERC20 and CW20 standards." | ||
details={[ | ||
{ label: 'TokenFactory', content: 'Natively integrated with Cosmos modules for efficient queries and high performance.' }, | ||
{ label: 'ERC20 Standard', content: 'Defines transferable, interchangeable tokens for EVM-based dApps.' }, | ||
{ label: 'CW20 Standard', content: 'Cosmos equivalent of ERC20, providing compatibility with Cosmos-based dApps.' }, | ||
{ label: 'Cross-Chain Compatibility', content: 'Supports pointer contracts for seamless cross-chain interaction.' } | ||
]} | ||
referenceGuide={[ | ||
{ | ||
content: "To deploy a pointer contract for cross-chain compatibility, follow these steps using the seid CLI tool.", | ||
}, | ||
{ | ||
content: "1. Check if a pointer already exists for the token or contract using:", | ||
command: "seid q evm pointer [type] [pointee] [flags]" | ||
}, | ||
{ | ||
content: "2. Deploy a new pointer contract linking a CosmWasm contract with an EVM pointer:", | ||
command: "seid tx evm register-evm-pointer CW20 $CW20_TOKEN_ADDRESS --from=$SENDER --chain-id=pacific-1 --broadcast-mode=block --gas=200000 --fees=5000usei --node=https://rpc.sei-apis.com" | ||
}, | ||
{ | ||
content: "3. Confirm the pointer registration with:", | ||
command: "seid query evm pointer [type] [pointee] [flags]" | ||
}, | ||
{ | ||
content: "Refer to the [Pointer Contracts Documentation](/dev-interoperability/pointer-contracts) for a detailed overview." | ||
} | ||
]} | ||
/> | ||
</Box> | ||
|
||
--- | ||
<Divider variant="dashed" color="#9E1F19" /> | ||
|
||
<TokenCard | ||
title="Smart Contract Tokens" | ||
tooltip="Tokens managed by smart contracts, compatible with ERC20 and CW20 standards." | ||
details={[ | ||
{ label: 'ERC20 Standard', content: 'Fungible token standard for EVM-based chains, supporting token functions.' }, | ||
{ label: 'CW20 Standard', content: 'Cosmos counterpart to ERC20, ensuring compatibility with Cosmos dApps.' }, | ||
{ label: 'Pointer Contracts', content: 'Enable interaction between CW20 and ERC20 tokens across Cosmos and EVM environments.' }, | ||
]} | ||
/> | ||
<Box mt="md" mb="md"> | ||
<TokenCard | ||
title="Smart Contract Tokens" | ||
tooltip="Tokens managed by smart contracts, compatible with ERC20 and CW20 standards." | ||
details={[ | ||
{ label: 'ERC20 Standard', content: 'Fungible token standard for EVM-based chains, supporting token functions.' }, | ||
{ label: 'CW20 Standard', content: 'Cosmos counterpart to ERC20, ensuring compatibility with Cosmos dApps.' }, | ||
{ label: 'Pointer Contracts', content: 'Enable interaction between CW20 and ERC20 tokens across Cosmos and EVM environments.' }, | ||
]} | ||
/> | ||
</Box> | ||
|
||
--- | ||
<Divider variant="dashed" color="#9E1F19" /> | ||
|
||
<TokenCard | ||
title="NFTs" | ||
tooltip="Unique digital assets following ERC721 and CW721 standards, with optional royalty features." | ||
details={[ | ||
{ label: 'ERC721 Standard', content: 'Defines unique, non-interchangeable tokens for EVM-based chains.' }, | ||
{ label: 'CW721 Standard', content: 'Cosmos equivalent of ERC721, compatible with Cosmos-based dApps.' }, | ||
{ label: 'Royalty Standards', content: 'Supports ERC2981 and CW2981, allowing creators to set royalties.' }, | ||
{ label: 'Cross-Chain Compatibility', content: 'Pointer contracts facilitate cross-standard interactions for NFTs.' }, | ||
]} | ||
/> | ||
<Box mt="md" mb="md"> | ||
<TokenCard | ||
title="NFTs" | ||
tooltip="Unique digital assets following ERC721 and CW721 standards, with optional royalty features." | ||
details={[ | ||
{ label: 'ERC721 Standard', content: 'Defines unique, non-interchangeable tokens for EVM-based chains.' }, | ||
{ label: 'CW721 Standard', content: 'Cosmos equivalent of ERC721, compatible with Cosmos-based dApps.' }, | ||
{ label: 'Royalty Standards', content: 'Supports ERC2981 and CW2981, allowing creators to set royalties.' }, | ||
{ label: 'Cross-Chain Compatibility', content: 'Pointer contracts facilitate cross-standard interactions for NFTs.' }, | ||
]} | ||
/> | ||
</Box> | ||
|
||
--- | ||
<Divider variant="dashed" color="#9E1F19" /> | ||
|
||
<TokenCard | ||
title="IBC Tokens" | ||
tooltip="Tokens bridged from other Cosmos chains via the IBC protocol." | ||
details={[ | ||
{ label: 'IBC Protocol', content: 'Facilitates token transfers between Cosmos chains.' }, | ||
{ label: 'Channel Configuration', content: 'Detailed channel information for each network is displayed below.' } | ||
]} | ||
/> | ||
<Box mt="md"> | ||
<TokenCard | ||
title="IBC Tokens" | ||
tooltip="Tokens bridged from other Cosmos chains via the IBC protocol." | ||
details={[ | ||
{ label: 'IBC Protocol', content: 'Facilitates token transfers between Cosmos chains.' }, | ||
{ label: 'Channel Configuration', content: 'Detailed channel information for each network is displayed below.' } | ||
]} | ||
/> | ||
</Box> |
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 |
---|---|---|
|
@@ -223,6 +223,14 @@ | |
resolved "https://registry.yarnpkg.com/@mantine/hooks/-/hooks-7.13.4.tgz#2e4a8aa910a1d9cfc8ad513b33d3a483a41c7f88" | ||
integrity sha512-B2QCegQyWlLdenVNaLNK8H9cTAjLW9JKJ3xWg+ShhpjZDHT2hjZz4L0Nt071Z7mPvyAaOwKGM0FyqTcTjdECfg== | ||
|
||
"@mantine/prism@^6.0.22": | ||
version "6.0.22" | ||
resolved "https://registry.yarnpkg.com/@mantine/prism/-/prism-6.0.22.tgz#06499a3f00c6b5a0440de3beb1fb59310a244f88" | ||
integrity sha512-EW3SCmRzg2MlfJPAxkHXFLYMoPdmRp2EhCxqTcgCEeKwSk4TLlLF39aAjFtk2B+rtiqWlA/7Kh7YrhOZ78TdpA== | ||
dependencies: | ||
"@mantine/utils" "6.0.22" | ||
prism-react-renderer "^1.2.1" | ||
|
||
"@mantine/styles@^6.0.22": | ||
version "6.0.22" | ||
resolved "https://registry.yarnpkg.com/@mantine/styles/-/styles-6.0.22.tgz#d883823f910e9ab8a56fd80ef667b6f56f2e2bd5" | ||
|
@@ -231,6 +239,11 @@ | |
clsx "1.1.1" | ||
csstype "3.0.9" | ||
|
||
"@mantine/[email protected]": | ||
version "6.0.22" | ||
resolved "https://registry.yarnpkg.com/@mantine/utils/-/utils-6.0.22.tgz#7eace697084e2bc5a831eb0fd7cbbc04cc1b0354" | ||
integrity sha512-RSKlNZvxhMCkOFZ6slbYvZYbWjHUM+PxDQnupIOxIdsTZQQjx/BFfrfJ7kQFOP+g7MtpOds8weAetEs5obwMOQ== | ||
|
||
"@mdx-js/mdx@^2.2.1", "@mdx-js/mdx@^2.3.0": | ||
version "2.3.0" | ||
resolved "https://registry.yarnpkg.com/@mdx-js/mdx/-/mdx-2.3.0.tgz#d65d8c3c28f3f46bb0e7cb3bf7613b39980671a9" | ||
|
@@ -4900,6 +4913,11 @@ prettier@^3.3.0: | |
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105" | ||
integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew== | ||
|
||
prism-react-renderer@^1.2.1: | ||
version "1.3.5" | ||
resolved "https://registry.yarnpkg.com/prism-react-renderer/-/prism-react-renderer-1.3.5.tgz#786bb69aa6f73c32ba1ee813fbe17a0115435085" | ||
integrity sha512-IJ+MSwBWKG+SM3b2SUfdrhC+gu01QkV2KmRQgREThBfSQRoufqRfxfHUxpG1WcaFjP+kojcFyO9Qqtpgt3qLCg== | ||
|
||
process-warning@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/process-warning/-/process-warning-1.0.0.tgz#980a0b25dc38cd6034181be4b7726d89066b4616" | ||
|