-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: add pr check * fix: pr check * fix: pr check * Update Doc “index” * Quick Start Hello World (#95) * Updated hello world content * Updated hello world structure * Updated hello world title * fix: build * fix: build * fix homepage order * Hello world Tutorial (#97) * Updated hello world content * Updated hello world structure * Updated hello world title * fix: updated instructions for correct flow * fix: merge fail * feat: sidebar * Update Doc “quick-start/hello-world/index” * Update Doc “quick-start/explore-running-aelf-side-chain/index” * Update Doc “quick-start/hello-world/index” * Update Doc “quick-start/hello-world/index” * doc: modify doc for aelf-web-login (#99) * doc: modify doc for aelf-web-login * fix: formatting --------- Co-authored-by: yongen.loong <[email protected]> * Update Doc “quick-start/hello-world/index” * Update Doc “quick-start/hello-world/index” * Update index.md * Pushing Lottery smart contract (#100) * Pushing Lottery smart contract * Fixing the structure * Adding the tabs for setup Enviornment * Worked on Vote Smart contract page (#102) * Worked on Vote Smart contract page * Resolved conflict --------- Co-authored-by: Rutvik <[email protected]> * Update Doc “quick-start/lottery-game/index” * Update Doc “quick-start/hello-world/index” * Update Doc “quick-start/lottery-game/index” * Update Doc “quick-start/hello-world/index” * Update Doc “quick-start/vote-contract/index” * Update index.md * Update Doc “quick-start/hello-world/index” * Update Doc “quick-start/overview/index” * Update Doc “quick-start/intro-to-aelf-development/index” * Update Doc “quick-start/intro-to-aelf-development/index” * Update Doc “learn/overview/index” * Delete Doc “quick-start/start-and-run-a-node-on-aelf-locally-or-on-cloud/index” * Update Doc “tutorials/operate-a-node/run-aelf-on-cloud/index” * Delete Doc “quick-start/run-a-side-chain/index” * Create Doc “quick-start/run-a-mainnet-node/index” * Update Doc “tutorials/smart-contract-development/lottery-game/index” * Update Doc “tutorials/smart-contract-development/vote-contract/index” * Update Doc “tutorials/dapp-development/lottery-game/index” * Update Doc “tutorials/dapp-development/vote-contract/index” * Update Doc “quick-start/explore-running-aelf-side-chain/index” * Create Doc “tutorials/operate-a-node/run-a-side-chain/index” * Update Doc “quick-start/explore-running-aelf-side-chain/index” * Update Doc “tutorials/operate-a-node/run-a-side-chain/index” * Update Doc “tutorials/operate-a-node/run-a-mainnet-node/index” * Update Doc “tutorials/operate-a-node/run-aelf-on-cloud/index” * Update Doc “tutorials/operate-a-node/run-a-testnet-node/index” * Update Doc “quick-start/intro-to-aelf-development/index” * fixed side bar (#106) * fixed side bar * fixed all issues with indexing and wrong mdx format --------- Co-authored-by: zhifenglee-portkey <[email protected]> * Changing folder for Lottery Game (#105) * Changing folder for lotterybank * Restucturing the lottery and vote contracts * Changes for build command --------- Co-authored-by: Rutvik <[email protected]> * Creating a new file for interacting with smart contract (#107) * feat: playground (#108) * Update Doc “tutorials/dapp-development/lottery-game/index” * Update Doc “tutorials/dapp-development/lottery-game-smart-contract/index” * Update Doc “quick-start/lottery-game-smart-contract/index” * fix: sidebar for lottery (#110) Co-authored-by: zhifenglee-portkey <[email protected]> * Update Doc “quick-start/vote-contract/index” * Update Doc “quick-start/lottery-game-smart-contract/index” * fix: sidebar for vote (#111) Co-authored-by: zhifenglee-portkey <[email protected]> * Update Doc “quick-start/intro-to-aelf-development/index” * Update Doc “quick-start/lottery-game-smart-contract/index” * Update Doc “quick-start/vote-contract/index” * Update Doc “quick-start/lottery-game-smart-contract/index” * Feature/lottery amendments (#112) * feat: acs12 correct path * feat: added export contract path simplification * feat: added exporting of contract address * fix: spending contract address explicit --------- Co-authored-by: zhifenglee-portkey <[email protected]> * Update Doc “quick-start/vote-contract/index” * Fix/acs12 removal (#113) * fix: removed acs12 installation since it is already baked in * feat:removed --install and use install instead --------- Co-authored-by: zhifenglee-portkey <[email protected]> * feat: refactor sidebar with category json * fix: sequence in quick start * fix: title * update homepage links --------- Co-authored-by: zenan-aelf <[email protected]> Co-authored-by: vasmohi <[email protected]> Co-authored-by: aelf-lxy <[email protected]> Co-authored-by: AelfHarsh <[email protected]> Co-authored-by: RutvikGhaskataEalf <[email protected]> Co-authored-by: Rutvik <[email protected]> Co-authored-by: zhifenglee-aelf <[email protected]> Co-authored-by: zhifenglee-portkey <[email protected]>
- Loading branch information
1 parent
7d99d53
commit d7aceae
Showing
118 changed files
with
4,112 additions
and
1,160 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
To send transactions on the aelf blockchain, you must have a wallet. | ||
|
||
Run this command to create aelf wallet. | ||
|
||
```bash title="Terminal" | ||
aelf-command create | ||
``` | ||
|
||
![result](/img/create_wallet_output.png) |
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,18 @@ | ||
The smart contract needs to be deployed on the chain before users can interact with it. | ||
|
||
Run the following command to deploy a contract. | ||
|
||
```bash title="Terminal" | ||
export CONTRACT_PATH=$(find ~+ . -path "*patched*" | head -n 1) | ||
aelf-deploy -a $WALLET_ADDRESS -p $WALLET_PASSWORD -c $CONTRACT_PATH -e https://tdvw-test-node.aelf.io/ | ||
``` | ||
|
||
Please wait for approximately 1 to 2 minutes. If the deployment is successful, it will provide you with the contract address. | ||
|
||
![result](/img/deploy-result.png) | ||
|
||
Export your smart contract address: | ||
|
||
```bash | ||
export CONTRACT_ADDRESS="YOUR_SMART_CONTRACT_ADDRESS e.g. 2LUmicHyH4RXrMjG4beDwuDsiWJESyLkgkwPdGTR8kahRzq5XS" | ||
``` |
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,37 @@ | ||
To deploy smart contracts or execute on-chain transactions on aelf, you'll require testnet ELF tokens. | ||
|
||
**Get ELF Tokens** | ||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
<Tabs> | ||
<TabItem value="cli" label="CLI" default> | ||
|
||
Run the following command to get testnet ELF tokens from faucet. Remember to either export your wallet address or replace $WALLET_ADDRESS with your wallet address. | ||
|
||
```bash title="Terminal" | ||
curl -X POST "https://faucet.aelf.dev/api/claim?walletAddress=$WALLET_ADDRESS" -H "accept: application/json" -d "" | ||
``` | ||
To check your wallet's current ELF balance: | ||
```bash title="Terminal" | ||
aelf-command call ASh2Wt7nSEmYqnGxPPzp4pnVDU4uhj1XW9Se5VeZcX2UDdyjx -a $WALLET_ADDRESS -p $WALLET_PASSWORD -e https://tdvw-test-node.aelf.io GetBalance | ||
``` | ||
You will be prompted for the following: | ||
|
||
```sh | ||
Enter the required param <symbol>: **ELF** | ||
Enter the required param <owner>: **$WALLET_ADDRESS** | ||
``` | ||
|
||
You should see the Result displaying your wallet's ELF balance. | ||
|
||
</TabItem> | ||
<TabItem value="web" label="Web" default> | ||
|
||
Go to this url [https://faucet-ui.aelf.dev](https://faucet-ui.aelf.dev). Enter your address and click `Get Tokens`. | ||
|
||
![result](/img/get-token-ui.png) | ||
|
||
</TabItem> | ||
</Tabs> |
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,14 @@ | ||
{ | ||
"position": 1, | ||
"label": "Smart Contract API", | ||
"collapsible": true, | ||
"collapsed": true, | ||
"link": { | ||
"type": "generated-index", | ||
"title": "Smart Contract API", | ||
"slug": "docs/smart-contract-api" | ||
}, | ||
"customProps": { | ||
"description": "Useful references for smart contract." | ||
} | ||
} |
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,7 +1,7 @@ | ||
--- | ||
sidebar_position: 9 | ||
title: Cross Chain Contract | ||
|
||
description: ACS1 and ACS7 | ||
--- | ||
|
||
|
||
|
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
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"position": 2, | ||
"label": "Web API", | ||
"collapsible": true, | ||
"collapsed": true, | ||
"link": { | ||
"type": "generated-index", | ||
"title": "Web API", | ||
"slug": "docs/web-api" | ||
}, | ||
"customProps": { | ||
"description": "Useful references for web." | ||
} | ||
} |
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,6 +1,7 @@ | ||
--- | ||
sidebar_position: 1 | ||
title: Chain API | ||
description: aelf blockchain API Reference | ||
--- | ||
|
||
# Chain API | ||
|
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,6 +1,7 @@ | ||
--- | ||
sidebar_position: 2 | ||
title: Net API | ||
description: aelf network API Reference | ||
--- | ||
|
||
# Net API | ||
|
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,14 @@ | ||
{ | ||
"position": 9, | ||
"label": "ACS", | ||
"collapsible": true, | ||
"collapsed": true, | ||
"link": { | ||
"type": "generated-index", | ||
"title": "aelf Contract Standards", | ||
"slug": "learn/acs-introduction" | ||
}, | ||
"customProps": { | ||
"description": "aelf Contract Standards" | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
docs/learn/acs-introduction/acs0-contract-deployment-standard/index.md
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
4 changes: 2 additions & 2 deletions
4
docs/learn/acs-introduction/acs1-transaction-fee-standard/index.md
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
4 changes: 2 additions & 2 deletions
4
docs/learn/acs-introduction/acs10-dividend-pool-standard/index.md
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
4 changes: 2 additions & 2 deletions
4
docs/learn/acs-introduction/acs11-cross-chain-consensus-standard/index.md
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
4 changes: 2 additions & 2 deletions
4
docs/learn/acs-introduction/acs12-user-contract-standard/index.md
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
Oops, something went wrong.