-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2481f67
commit 306d66b
Showing
13 changed files
with
114 additions
and
191 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 was deleted.
Oops, something went wrong.
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,22 @@ | ||
--- | ||
title: Properties | ||
slug: /docusaurus-plugins/props | ||
hide_title: true | ||
--- | ||
|
||
# Properties | ||
|
||
> Note: properties may change the default values and new properties will be added in the future. | ||
| Property | Type | Default Value | Description | | ||
| --- | --- | --- | --- | | ||
| width | string | 90% | Container width | | ||
| height | string | 500px | Container height | | ||
| simple | boolean | false | Is it minimal mode? | | ||
| consoleOpen | boolean | true | Display console? | | ||
| consoleTriggerControl | boolean | false | Show console trigger button? | | ||
| consoleDefaultVisible | boolean | false | Is console visible by default? | | ||
| deployOpen | boolean | true | Display deploy module? | | ||
| deployDefaultVisible | boolean | false | Is deploy module visible by default? | | ||
| fileNavOpen | boolean | true | Display file navigation bar? | | ||
| fileNavDefaultVisible | boolean | false | Is file navigation bar visible by default? | |
4 changes: 2 additions & 2 deletions
4
apps/doc/docs/expansion/index.mdx → apps/doc/docs/extension/index.mdx
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,21 +1,20 @@ | ||
--- | ||
title: 介绍 | ||
title: Introduction | ||
sidebar_position: 0 | ||
slug: /introduction | ||
hide_title: true | ||
--- | ||
|
||
## 介绍 | ||
Solive是一个灵活的在线Solidity智能合约的试验场,受到了remix-IDE和react-live的启发。 Solive可让您在一个React组件中编辑、编译、部署和交互Solidity智能合约。 您可以将solive嵌入您的网站或教程,并让用户在浏览器中运行Solidity代码。 Solive也兼容移动浏览器。 | ||
# Introduction | ||
SoLive is a lightweight and fleaxible online Solidity playground, inspired by remix-IDE and react-live. SoLive enables you to edit, compile, deploy, and interact with Solidity smart contracts within a React component. You can integrate SoLive into your website or tutorial, allowing users to execute Solidity code directly in their browsers. Moreover, SoLive is compatible with mobile browsers. | ||
|
||
### 使用场景: | ||
1. 教育:我们将在WTF Solidity教程中使用solive替换代码块,让学生能够阅读和运行代码。 | ||
2. 开发人员入门:Layer2项目可以使用Solive来招募以太坊开发人员。 | ||
## Use cases: | ||
1. Education: In the [WTF Solidity](https://github.com/AmazingAng/WTF-Solidity) tutorials, we will utilize SoLive to replace conventional code blocks, enabling students to read and run the code concurrently. | ||
2. Developer Onboarding: Layer2 projects can leverage SoLive to attract and recruit Ethereum developers. | ||
|
||
### 这是如何做的 | ||
1. 参考remix-ide:一个在线IDE,用于开发智能合约 | ||
2. 参考react-live:一个灵活的React代码实时编辑器。我们建立solive的原因是希望学生在阅读WTF Solidity教程的同时能运行示例代码。Solive的设计很轻便,只包含必要的模块以便编辑、编译、部署和与智能合约进行交互。 | ||
3. 编辑模块:我们使用代码编辑器Monaco Editor。 | ||
4. 编译模块:我们使用`solcjs`根据选定的Solidity版本进行编译智能合约。 | ||
5. 部署:我们使用`ethersjs V5`和`ethereumjs vm`两者结合,将编译后的合约部署到本地EVM上。 | ||
6. 交互:我们使用`ethersjs V5`和一个自定义的ABI-UI转换器来与部署的合约进行交互。 | ||
## How it works | ||
SoLive is lightweight and flexible by design. It includes only the essential modules needed for editing, compiling, deploying, and interacting with smart contracts. | ||
1. Edit Module: We employ the Monaco Editor as the code editor. | ||
2. Compile Module: We utilize `solcjs` to compile smart contracts based on the chosen Solidity version. | ||
3. Deploy Module: We deploy the compiled contracts to the local EVM using a combination of `ethersjs V5` and `ethereumjs vm`. | ||
4. Interact Module: To interact with the deployed contracts, we use `ethersjs V5` and a custom ABI-UI converter. |
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,5 +1,5 @@ | ||
--- | ||
title: 常见问题 | ||
title: FAQ | ||
sidebar_position: 4 | ||
hide_title: true | ||
--- |
Oops, something went wrong.
306d66b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
solive-doc – ./
solive-doc-git-main-wtfacademy.vercel.app
solive-doc.vercel.app
solive-doc-wtfacademy.vercel.app
306d66b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
solive-demo – ./
solive-demo.vercel.app
www.solive.wtf
solive.wtf
solive-demo-wtfacademy.vercel.app
solive-demo-git-main-wtfacademy.vercel.app