Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improved aeindexer tutorial content and improved code #365

Merged
merged 3 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/quick-start/advance-tutorials/_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ aelf.deploy is a utility tool for deploying smart contracts on the aelf blockcha
Please remember to export PATH after installing aelf.deploy.

:::info
ℹ️ Note: If you have installed aelf.deploy and your terminal says that there is no such command available, please uninstall and install aelf.deploy.
ℹ️ Note: If you have installed aelf.deploy and your terminal says that there is no such command available, please uninstall and reinstall aelf.deploy.
:::

**Install Node.js and Yarn**
Expand Down Expand Up @@ -83,7 +83,7 @@ Provide required permissions while installing aelf-command globally.
Select `Codespaces`.
5. Click on the `+` sign to create a new Codespace.
6. After some time, your workspace will load with the contents of the repository.
You can now continue your development using GitHub Codespaces.
You may now continue your development using GitHub Codespaces.

</TabItem>
</Tabs>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Step 2 - Create AeIndexer in AeFinder
- Log in to the AeFinder website.
TestNet: [https://test.aefinder.io/login](https://test.aefinder.io/login)

- Enter the AeIndexer Name and other information to create a NFT AeIndexer.
<!-- Commenting out missing image references -->
![run-app-success](/img/create-nft-indexer.png)
![create-app](/img/name-nft-indexer.png)
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Step 4 - Deploy AeIndexer
- Open the AeIndexer details page and click Deploy.
![deploy](/img/deploy-nft-indexer-template.png)
- Fill out the subscription manifest and upload the DLL file.
1. Subscription manifest:
```json
{
"subscriptionItems": [
{
"chainId": "tDVW",
"startBlockNumber": 151018963,
"onlyConfirmed": false,
"transactions": [],
"logEvents": [
{
"contractAddress": "ASh2Wt7nSEmYqnGxPPzp4pnVDU4uhj1XW9Se5VeZcX2UDdyjx",
"eventNames": [
"Issued",
"Issue"
]
}
]
}
]
}
```
2. DLL file location: src/NFTAeIndexer/bin/Release/net8.0/NFTAeIndexer.dll
![deploy-2](/img/subscription-nft-indexer.png)
- Click the deploy button to submit deployment information. When the normal processing block information appears on the Logs page at the bottom of the details page, it means that the deployment has been successful and data indexing has started.
![log](/img/logs-nft-indexer.png)
Loading
Loading