Skip to content

Commit

Permalink
docs(protocol): create execution section (#1086)
Browse files Browse the repository at this point in the history
creates execution section in protocol docs and sets code font size to 85
pct

task: https://app.asana.com/0/1206208509925075/1206939829246019/f
  • Loading branch information
idea404 authored May 22, 2024
1 parent f49b402 commit 60fe63d
Show file tree
Hide file tree
Showing 6 changed files with 6,070 additions and 4,622 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 6
sidebar_position: 2
---

# Client Diversity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 5
sidebar_position: 1
---

# Complete EVM Equivalence
Expand All @@ -12,12 +12,14 @@ At the heart of Omni's EVM equivalence is the fact that Omni validators execute

### Zero Changes Needed for Smart Contracts

Developers can migrate their DApps to Omni without worrying about the compatibility or operational differences often encountered on other EVM-compatible chains. The Omni EVM's adherence to Ethereum's standards ensures that smart contracts execute as intended, without requiring any adjustments or special considerations.
Developers can migrate their dApps to Omni without worrying about the compatibility or operational differences often encountered on other EVM-compatible chains. The Omni EVM's adherence to Ethereum's standards ensures that smart contracts execute as intended, without requiring any adjustments or special considerations.

### Full Support for All EVM Opcodes and Upgrades

Omni's commitment to maintaining an unmodified EVM client extends to full support for all EVM opcodes and the inclusion of the latest EVM upgrades. This dedication ensures that Omni remains in lockstep with Ethereum's evolution, providing developers with a stable and feature-rich environment for their applications.

Below, the [`pushPayload`](https://github.com/omni-network/omni/blob/0f09c724ac941afc45c5f7eb1ed1a773f51dac81/halo/evmengine/keeper/msg_server.go#L116) function showcases the execution of EVM transactions, which implement strictly the same behavior of Ethereum and ensures a frictionless experience for developers.

```go
// pushPayload creates a new payload from the given message and pushes it to the execution client.
// It returns the new forkchoice state.
Expand All @@ -27,8 +29,6 @@ func pushPayload(ctx context.Context, engineCl ethclient.EngineClient, msg *type
}
```

[`pushPayload`](https://github.com/omni-network/omni/blob/0f09c724ac941afc45c5f7eb1ed1a773f51dac81/halo/evmengine/keeper/msg_server.go#L116) showcases the execution of EVM transactions, which implement strictly the same behavior of Ethereum and ensures a frictionless experience for developers.

## Advantages of Omni's EVM Equivalence

- **Seamless Migration:** Developers can port their DApps to Omni without any modifications, significantly reducing the effort and complexity involved in accessing a new blockchain ecosystem.
Expand Down
6 changes: 3 additions & 3 deletions docs/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"dependencies": {
"@docusaurus/core": "3.2.1",
"@docusaurus/preset-classic": "3.2.1",
"@docusaurus/theme-common": "^3.2.1",
"@docusaurus/theme-common": "3.2.1",
"@mdx-js/react": "^3.0.0",
"@tanstack/react-query": "^5.35.1",
"axios": "^1.6.8",
Expand All @@ -29,8 +29,8 @@
"remark-math": "6"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.2.1",
"@docusaurus/tsconfig": "3.2.1",
"@docusaurus/module-type-aliases": "3.3.2",
"@docusaurus/tsconfig": "3.3.2",
"@docusaurus/types": "3.2.1",
"typescript": "~5.2.2"
},
Expand Down
Loading

0 comments on commit 60fe63d

Please sign in to comment.