You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/dev-gas.mdx
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Gas on Sei
1
+
# Gas
2
2
3
3
Gas refers to the unit of measurement representing the work done to execute a transaction on the blockchain. The amount of gas used varies based on the complexity of the transaction.
Copy file name to clipboardExpand all lines: pages/dev-token-standards.mdx
+36-5
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
In this section, we will delve into the various token standards supported on the Sei blockchain. Understanding these standards is crucial for developers as they form the foundation of many decentralized applications. Sei offers support for native TokenFactory tokens, ERC standards, CW standards, IBC and facilitates interoperability between these token types.
4
4
5
-
###Sei Token
5
+
## Sei Token
6
6
7
7
The Sei token is the native token of the Sei blockchain, serving multiple roles within the ecosystem.
8
8
@@ -15,22 +15,31 @@ The Sei token is the native token of the Sei blockchain, serving multiple roles
15
15
16
16
On the Cosmos side, the Sei token has 6 decimals, while on the EVM side, it follows the standard 18 decimals.
17
17
18
-
### TokenFactory
18
+
#### EVM:
19
+
`1sei = 1000000000000000000wei`
20
+
`1sei = 1000000000gwei`
21
+
22
+
#### Cosmos:
23
+
`1sei = 1000000usei`
24
+
25
+
## TokenFactory
19
26
20
27
TokenFactory allows for the creation of tokens that are natively integrated into the bank module of the Cosmos SDK. This integration means balances are available through native bank queries, unlike CW20 or ERC20 tokens which require querying the smart contract directly.
21
28
22
29
-**Why is it Recommended?**: It provides a more efficient way to manage tokens, leveraging the native capabilities of the Cosmos SDK for improved performance and ease of use.
23
30
-**How to Create via `seid` CLI**: Tokens can be created using the `seid` command-line interface.
24
31
25
-
### Inter-Blockchain Communication (IBC)
32
+
Learn more about creating tokens using TokenFactory in the [TokenFactory Tutorial](/dev-tutorials/tokenfactory-tutorial).
33
+
34
+
## Inter-Blockchain Communication (IBC)
26
35
27
36
IBC is a protocol that enables communication and asset transfers between different cosmos chains, enhancing interoperability and enabling cross-chain applications and liquidity.
28
37
29
38
-**Channel Info List**: Channels are used to establish communication paths between blockchains. Each channel has a unique identifier and specific configurations.
30
39
-[IBC Channel Info Registry](https://github.com/sei-protocol/chain-registry/blob/main/ibc_info.json)
31
40
-**Contributing to the IBC Registry**: IBC relayers can add new channels by making pull requests to the IBC registry.
32
41
33
-
###Fungible Tokens
42
+
## Fungible Tokens
34
43
35
44
Fungible tokens are digital assets that are interchangeable with one another and are not unique. Sei supports both ERC20 and CW20 fungible token standards.
36
45
@@ -40,7 +49,7 @@ Fungible tokens are digital assets that are interchangeable with one another and
-**Pointer Contract Registry**: A registry that keeps track of pointer contracts to facilitate interoperability.
42
51
43
-
###NFTs
52
+
## NFTs
44
53
45
54
Non-fungible tokens (NFTs) represent unique digital assets. Sei supports both ERC721 and CW721 standards as well as their counterparts with royalties (2981).
46
55
@@ -49,3 +58,25 @@ Non-fungible tokens (NFTs) represent unique digital assets. Sei supports both ER
49
58
-**Interoperability**: Similar to fungible tokens, NFTs can interact across different standards using pointer contracts.
50
59
-**Pointer Contract Registry**: A registry for tracking pointer contracts specific to NFTs.
51
60
-**CW2981 & ERC2981 (Royalties)**: These standards define royalty mechanisms for NFTs, ensuring creators receive a percentage of sales.
61
+
62
+
## Deciding Between TokenFactory vs CW20 or ERC20
63
+
64
+
When developing fungible tokens on the Sei blockchain, you have the option to create tokens using the native TokenFactory or the CW20 and ERC20 standards. Here’s a comparison to help you decide:
65
+
66
+
#### TokenFactory
67
+
Best for native Cosmos applications requiring efficient and fast access to token balances and transactions.
68
+
69
+
-**Native Integration**: Tokens created via TokenFactory are integrated into the Cosmos SDK’s bank module.
70
+
-**Efficient Queries**: Balances and transactions are available through native bank queries, making it more efficient than querying smart contracts directly.
71
+
-**Recommended Use**: Ideal for scenarios where performance and ease of access are priorities.
72
+
73
+
#### CW20 and ERC20
74
+
Suitable for applications needing standard token interactions for use with existing dApps and cross-vm interoperability.
75
+
76
+
-**Standard Compatibility**: CW20 for Cosmos and ERC20 for EVM ensure compatibility with existing dApps and ecosystems.
77
+
-**Interoperability**: Both standards support pointer contracts, enabling seamless interaction between Cosmos and EVM environments.
78
+
79
+
#### Interoperability
80
+
Regardless of the choice, both TokenFactory and CW20/ERC20 tokens can have pointer contracts deployed, facilitating seamless cross-environment interoperability.
81
+
82
+
For more detailed guidance, refer to the [Pointer Contracts Documentation](/dev-tutorials/pointer-contracts).
0 commit comments