Skip to content

Commit

Permalink
Merge pull request #4 from DeveloperInProgress/rebase
Browse files Browse the repository at this point in the history
Rebase
  • Loading branch information
stwiname authored Sep 5, 2022
2 parents 36d1d9f + e5d3973 commit 5f0db76
Show file tree
Hide file tree
Showing 80 changed files with 511 additions and 4,206 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/gh-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ jobs:
package-path: packages/common-substrate
repo-token: ${{ secrets.REPO_TOKEN }}


- uses: ./.github/actions/create-release
with:
package-path: packages/node-core
repo-token: ${{ secrets.REPO_TOKEN }}

- uses: ./.github/actions/create-release
with:
package-path: packages/node
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ jobs:
with:
paths: packages/cli

- uses: marceloprado/has-changed-path@v1
id: changed-node-core
with:
paths: packages/node-core

- uses: marceloprado/has-changed-path@v1
id: changed-node
with:
Expand Down Expand Up @@ -109,6 +114,13 @@ jobs:
package-path: packages/common-substrate
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Bump node-core & deploy
if: steps.changed-node-core.outputs.changed == 'true'
uses: ./.github/actions/create-prerelease
with:
package-path: packages/node-core
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Bump node & deploy
if: steps.changed-node.outputs.changed == 'true'
uses: ./.github/actions/create-prerelease
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ jobs:
with:
paths: packages/cli

- uses: marceloprado/has-changed-path@v1
id: changed-node-core
with:
paths: packages/node-core

- uses: marceloprado/has-changed-path@v1
id: changed-node
with:
Expand Down Expand Up @@ -114,6 +119,14 @@ jobs:
repo-token: ${{ secrets.REPO_TOKEN }}
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Publish Node Core
if: steps.changed-node-core.outputs.changed == 'true'
uses: ./.github/actions/create-release
with:
package-path: packages/node-core
repo-token: ${{ secrets.REPO_TOKEN }}
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Publish Node
if: steps.changed-node.outputs.changed == 'true'
uses: ./.github/actions/create-release
Expand Down
8 changes: 8 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
# and commit this file to your remote git repository to share the goodness with others.

tasks:
- init: yarn install && yarn run build


2 changes: 2 additions & 0 deletions .yarn/versions/20fa4362.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
undecided:
- "@subql/node-core"
3 changes: 0 additions & 3 deletions .yarn/versions/4d90adc1.yml

This file was deleted.

Empty file removed .yarn/versions/5244c1df.yml
Empty file.
2 changes: 0 additions & 2 deletions .yarn/versions/66796676.yml

This file was deleted.

48 changes: 27 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,43 @@
# Welcome to SubQuery!
![open grant logo](https://raw.githubusercontent.com/w3f/General-Grants-Program/master/src/badge_black.svg)

**SubQuery enables better dApps by making decentralised data more accessible**
**Flexible, reliable, and decentralised APIs for your web3 project**

SubQuery is an Open, Flexible, Fast and Universal data indexing framework for web3. Our mission is to help developers create the decentralised products of the future.

SubQuery allows every Substrate/Polkadot team to process and query their data. The project is inspired by the growth of data protocols serving the application layer and its aim is to help Polkadot/Substrate projects build better dApps by allowing anyone to reliably find and consume data faster. Today, anyone can query and extract Polkadot network data in only minutes and at no cost.

SubQuery aims to support all Substrate-compatible networks. For SubQuery support on other networks, please visit:
* [SubQuery Algorand](https://github.com/subquery/subql-algorand)
* [SubQuery Cosmos](https://github.com/subquery/subql-cosmos)
The future is multi-chain - SubQuery is no different. SubQuery is well on our way to support all leading blockchain networks with support for the following:

## Get Started
#### Installation
```shell
# Yarn
yarn global add @subql/cli @subql/node @subql/query
- [Polkadot (and all Substrate networks)](https://academy.subquery.network/quickstart/quickstart_chains/polkadot.html)
- [Cosmos (and all CosmWasm and Ethermint networks)](https://academy.subquery.network/quickstart/quickstart_chains/cosmos.html)
- [Avalanche (and all Avalanche Subnets)](https://academy.subquery.network/quickstart/quickstart_chains/avalanche.html)
- [Algorand](https://academy.subquery.network/quickstart/quickstart_chains/algorand.html)
- [Terra](https://academy.subquery.network/quickstart/quickstart_chains/terra.html)

# NPM
npm install -g @subql/cli @subql/node @subql/query
```
## Get Started

#### Create a SubQuery project
You can follow our [Quick Start Guide](https://doc.subquery.network/quickstart/quickstart.html) to learn how to create, initialize, build, and publish a new SubQuery Project using the `@subql/cli` tool.

You'll need [Typescript](https://www.typescriptlang.org/) and [Node](https://nodejs.org/en/).
You can follow our [Quick Start Guide](https://academy.subquery.network/quickstart/quickstart.html) to learn how to create, initialize, build, and publish a new SubQuery Project using the `@subql/cli` tool.

#### Learn and improve with our comprehensive documentation

Dig into every term, usecases, and best-practices that help you build a dApp which your users love. Take a look at our [detailed technical documentation](https://academy.subquery.network/build/introduction.html).

#### Publish your SubQuery Project to our Managed Service
Don't want to worry about running your own SubQuery nodes? SubQuery provides a [managed hosted service](https://explorer.subquery.network) to the community for free. Follow our publishing guide to see how you can upload your project to [SubQuery Projects](https://project.subquery.network).

Don't want to worry about running your own indexing infrastructure? SubQuery provides a [managed Service](https://explorer.subquery.network) with industry leading hosting so you can sleep easy. Trused by hundreds of projects with millions of daily requests, follow our publishing guide to see how you can upload your project to [SubQuery Projects](https://academy.subquery.network/run_publish/publish.html).

#### Run your own Indexer and Query Service
[Follow our guide](https://doc.subquery.network/run/run.html) to run your own SubQuery local node that you can use to debug, test, and run you own GraphQL server

[Follow our guide](https://academy.subquery.network/run_publish/run.html) to run your own SubQuery local node that you can use to debug, test, and run you own GraphQL server

You're going to need to a Postgres database, a node to extract chain data, and a moderately powerful computer to run the indexer in the background.

You'll also use our custom-built GraphQL query service [`@subql/query`](https://www.npmjs.com/package/@subql/query) to interact with your SubQuery project.

#### Components

* [`@subql/cli`](packages/cli)
* [`@subql/node`](packages/node)
* [`@subql/query`](packages/query)
Expand All @@ -43,9 +46,12 @@ You'll also use our custom-built GraphQL query service [`@subql/query`](https://
* [`@subql/types`](packages/types)
* [`@subql/validator`](packages/validator)

## More Documentation
For more documentation, visit [doc.subquery.network](https://doc.subquery.network/)
## Contribute

We love contributions and feedback from the community. To contribute the code, we suggest starting by creating an issue in our main repository so we can give you support.

## Copyright
SubQuery is a project built with love from the team at [OnFinality](https://onfinality.io)
Copyright © 2021 [OnFinality Limited](https://onfinality.io) authors & contributors

SubQuery is a project built with love from the team at [SubQuery](https://subquery.network) all the way from New Zealand

Copyright © 2022 [SubQuery Pte Ltd](https://subquery.network) authors & contributors
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@
},
"packageManager": "[email protected]",
"dependencies": {
"@subql/utils": "^1.1.0"
"@subql/node-core": "^0.1.1",
"@subql/utils": "^1.1.0",
"fetch-h2": "^3.0.2"
}
}
1 change: 0 additions & 1 deletion packages/common-avalanche/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ All logs must start with the format: [x.y.z] - yyyy-mm-dd
## [0.1.1] - 2022-06-27
### Added
- init commit

48 changes: 0 additions & 48 deletions packages/common-avalanche/test/project.yaml

This file was deleted.

31 changes: 0 additions & 31 deletions packages/common-avalanche/test/project_0.2.0.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions packages/common-avalanche/test/project_0.2.0_custom_ds.yaml

This file was deleted.

This file was deleted.

84 changes: 0 additions & 84 deletions packages/common-avalanche/test/project_0.2.1.yaml

This file was deleted.

Loading

0 comments on commit 5f0db76

Please sign in to comment.