Skip to content

Commit

Permalink
Merge branch 'main' into seiv2
Browse files Browse the repository at this point in the history
- Also fixes issue with gas prices and improves messaging on other dev intro pages.
  • Loading branch information
codebycarson committed Jun 3, 2024
1 parent 2dea03d commit 56f205a
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 56 deletions.
6 changes: 3 additions & 3 deletions pages/dev-gas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ The maximum gas limit for a transaction ensures that complex transactions do not
Sei enforces minimum gas prices to prevent spam transactions. These prices are set per chain and are detailed in the [chain registry](https://github.com/sei-protocol/chain-registry/blob/main/gas.json).

#### Current values
- Mainnet (pacific-1): `0.025usei`
- Testnet (atlantic-2): `0.01usei`
- Devnet (arctic-1): `0.005usei`
- Mainnet (pacific-1): 0.02usei
- Testnet (atlantic-2): 0.08usei
- Devnet (arctic-1): 0.02usei

## Sending Gas in Transactions
When submitting a TX to be broadcast, users specify the gas price and the gas limit to create the fee.
Expand Down
28 changes: 7 additions & 21 deletions pages/dev-interoperability/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,28 @@ import {ImageWithCaption} from "../../components/ImageWithCaption";

import interoperability from '../../public/assets/interoperability.png';

# EVM \<\> Wasm Interoperability
EVM and Cosmos based applications co-exist on Sei, but live in different execution environments.
# Virtual Machine Interoperability
EVM and CosmWasm based smart contracts co-exist on Sei, but live in different execution environments.
This creates a challenge for users, who use wallets that typically only support a single execution environment.
Likewise for devlelopers, existing tooling and libraries can only interact with either EVM or Wasm (Think EthersJS vs CosmJS).

To bridge the gap between EVM and Wasm, Sei has introduced novel interoperability features, allowing for smooth and easy interactions between both environments.
These features will enable all contracts deployed to Sei to be accessible by tools and wallets from both environments.
To bridge the gap between EVM and Wasm, Sei has introduced two interoperability features, allowing for smooth and easy interactions between both environments.
Precompiled EVM contracts and Pointer Contracts enable all contracts to be accessible from both VM environments.

<ImageWithCaption img={interoperability} alt="Interoperability" caption="Enabling seamless access to all tokens and contracts on Sei"/>

## Precompiled Contracts

Sei precompiles are smart contracts embedded directly within the Sei blockchain. They provide a gateway for users and developers to access native Sei functionalities through the EVM RPC interface.

### Sei Precompiles

The following is a list of precompiled contracts available on Sei:

- [Addr](./precompiles/addr.mdx)
- [Bank](./precompiles/bank.mdx)
- [CosmWasm](./precompiles/cosmwasm.mdx)
- [Staking](./precompiles/staking.mdx)
- [Distribution](./precompiles/distribution.mdx)
- [IBC](./precompiles/ibc.mdx)
- [JSON](./precompiles/json.mdx)
- [Oracle](./precompiles/oracle.mdx)
- [Pointer](./precompiles/pointer.mdx)
- [PointerView](./precompiles/pointerview.mdx)
- [Governance](./precompiles/governance.mdx)

For instructions on utilizing these precompiles, refer to the [Example Usage](./precompiles/example-usage.mdx) section.
For instructions on utilizing EVM precompiles, refer to the [Example Usage](./precompiles/example-usage.mdx) section.

## Pointer Contracts

Pointer Contracts are a unique feature introduced on Sei, designed to enhance interoperability between EVM and CosmWasm environments.
These contracts facilitate the creation of links between tokens across both EVM and CosmWasm.
This enables tokens to move smoothly and be used seamlessly in both environments.

Pointer contracts can be deployed for any Token Factory, Smart Contract (ERC20, ERC721, etc.), and any IBC denom.

Learn more about Pointer Contracts and how to deploy them [here](../../dev-tutorials/pointer-contracts.mdx ).
2 changes: 1 addition & 1 deletion pages/dev-intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Sei is a high-performance, low-fee, delegated proof-of-stake blockchain designed
- **Parallel Execution**: The ability to process multiple transactions and smart contracts concurrently, significantly boosting performance for both the EVM and CosmWasm VM's.
- **Twin Turbo Consensus**: A consensus mechanism that accelerates transaction processing and finality, ensuring fast block times and finality.
- **SeiDB**: A highly efficient and scalable database designed to support the high throughput of the Sei blockchain, ensuring rapid state updates.
- **EVM and Cosmos Interoperability**: Native support for interactions between the EVM side and the Cosmos side within the same chain, making it seamless to integrate functionalities from both ecosystems natively.
- **Virtual Machine Interoperability**: Native support for interactions between the EVM and the CosmWasm VM's within the same chain, making it seamless to integrate functionalities from both ecosystems.

## EVM/CosmWasm Interoperability

Expand Down
4 changes: 2 additions & 2 deletions pages/dev-smart-contracts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ When developing smart contracts on Sei, developers have the option to choose bet
### EVM
The EVM is a decentralized computation engine that allows the execution of smart contracts on Ethereum and EVM-compatible blockchains. EVM contracts are typically written in Solidity, a language designed for Ethereum.

<Paper shadow="xs" p="md" mt="xl">
<Paper shadow="lg" p="md" mt="xl" withBorder radius="md">

**Benefits**:

Expand Down Expand Up @@ -47,7 +47,7 @@ The EVM is a decentralized computation engine that allows the execution of smart

CosmWasm is a smart contract platform built for the Cosmos ecosystem, enabling contracts to be written in WebAssembly (Wasm) languages, with Rust being the most commonly used.

<Paper shadow="xs" p="md" mt="xl">
<Paper shadow="lg" p="md" mt="xl" withBorder radius="md">
**Benefits**:

- **Language Flexibility**: Supports multiple programming languages that compile to Wasm, though Rust is preferred for its performance and safety features.
Expand Down
43 changes: 14 additions & 29 deletions pages/dev-token-standards.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ import {Tabs, Blockquote, Title} from '@mantine/core';

# Token Standards

In this section, we delve into the various token standards supported on Sei. 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.
In this section, we delve into the various token standards supported on Sei. Understanding these standards is crucial for developers as they form the foundation of many decentralized applications.

Sei offers support for four main token types:
- [Sei Token](#sei-token)
- [Token Factory Tokens](#tokenfactory)
- [Smart Contract Tokens](#smart-contract-tokens)
- [IBC Tokens](#ibc-tokens)

## **Sei Token**

Expand All @@ -12,34 +18,15 @@ The Sei token is the native token of the Sei blockchain, serving multiple roles
- **Governance Token**: Used to participate in governance decisions affecting the network.


<Tabs defaultValue="evm">
<Tabs.List>
<Tabs.Tab value="evm">
EVM
</Tabs.Tab>
<Tabs.Tab value="cosmos">
Cosmos
</Tabs.Tab>
</Tabs.List>

<Tabs.Panel value="evm" p="md">
Sei EVM uses the same decimal system as Ethereum, with the base unit being `wei`. Existing contracts and tools can be used without modification.
**EVM**

`1sei = 1000000000000000000wei`
`1sei = 1000000000000000000wei`

`1sei = 1000000000gwei`
</Tabs.Panel>
`1sei = 1000000000gwei`

<Tabs.Panel value="cosmos" p="md">
Sei uses the same decimal system as most Cosmos, with the base unit being `usei` and one million usei being one sei.
**Cosmos**

`1sei = 1000000usei`
</Tabs.Panel>

<Tabs.Panel value="settings">
Settings tab content
</Tabs.Panel>
</Tabs>
`1sei = 1000000usei`

## **Fungible Tokens**

Expand Down Expand Up @@ -82,8 +69,6 @@ Non-fungible tokens (NFTs) represent unique digital assets. Sei supports both ER
- **Interoperability**: Similar to fungible tokens, NFTs can interact across different standards using pointer contracts.
- **Pointer Contract Registry**: A registry for tracking pointer contracts specific to NFTs.

### **Inter-Blockchain Communication (IBC)**

IBC is a protocol that enables communication and asset transfers between different Cosmos chains, enhancing interoperability and enabling cross-chain applications and liquidity.
## **IBC Tokens**

- **Channel Info List**: Channels are used to establish communication paths between blockchains. Each channel has a unique identifier and specific configurations. View the [IBC Channel](https://github.com/sei-protocol/chain-registry/blob/main/ibc_info.json) section of the Sei chain registry for channel information.
Inter-Blockchain Communication (IBC) is a protocol that enables communication between different Cosmos chains. IBC tokens are tokens bridged from one Cosmos chain to another using the IBC protocol. Channels are set up to establish communication between the chains. Each channel has a unique identifier and specific configurations. View the [IBC Channel](https://github.com/sei-protocol/chain-registry/blob/main/ibc_info.json) section of the Sei chain registry for channel information.

0 comments on commit 56f205a

Please sign in to comment.