forked from subquery/cosmos-subql-starter
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bump version & update README (#51)
- Loading branch information
1 parent
218be7d
commit a7fddd7
Showing
2 changed files
with
42 additions
and
11 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 |
---|---|---|
@@ -1,29 +1,60 @@ | ||
# SubQuery Starter Project for Juno | ||
# Ledger SubQuery | ||
|
||
This is a starter project for Indexing Juno. It includes a simple blockhandler and an event handler. This project indexes all transfer events in juno-1. | ||
This is the Fetch ledger SubQuery project, an indexer for the Fetch network. | ||
|
||
# Getting Started | ||
|
||
### 1. Install dependencies | ||
# Developing | ||
|
||
## Getting Started | ||
|
||
### 1. Ensure submodules are updated | ||
|
||
```shell | ||
git submodule update --init --recursive | ||
``` | ||
|
||
### 2. Install dependencies | ||
|
||
```shell | ||
yarn | ||
|
||
# install submodule dependencies | ||
(cd ./subql && yarn) | ||
``` | ||
|
||
### 2. Generate types | ||
### 3. Generate types | ||
|
||
```shell | ||
yarn codegen | ||
``` | ||
|
||
### 3. Build | ||
### 4. Build | ||
|
||
```shell | ||
yarn build | ||
|
||
# build submodule | ||
(cd ./subql && yarn build) | ||
``` | ||
|
||
### 4. Run locally | ||
### 5. Run locally | ||
|
||
```shell | ||
yarn start:docker | ||
``` | ||
|
||
## End-to-end Testing | ||
|
||
### 1. Install dependencies | ||
|
||
```shell | ||
pipenv install | ||
``` | ||
|
||
### 2. Run all e2e tests | ||
|
||
_Note: end-to-end tests will truncate tables in the DB and interact with the configured fetchd node._ | ||
|
||
```shell | ||
pipenv run python -m unittest discover -s ./test | ||
``` |
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