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

updated to IPFS #4

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions .project-cid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
QmYGdVFP8e8tzaXRhVmyjV9MVc32StyuAW6hTsNSYw9uca
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ version: "3"

services:
postgres:
image: postgres:12-alpine
build:
context: .
dockerfile: ./docker/pg-Dockerfile
ports:
- 5432:5432
volumes:
Expand Down Expand Up @@ -32,6 +34,7 @@ services:
command:
- -f=/app
- --db-schema=app
- --disable-historical=false
healthcheck:
test: ["CMD", "curl", "-f", "http://subquery-node:3000/ready"]
interval: 3s
Expand Down
5 changes: 5 additions & 0 deletions docker/load-extensions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<EOF
CREATE EXTENSION IF NOT EXISTS btree_gist;
EOF
9 changes: 9 additions & 0 deletions docker/pg-Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM postgres:12-alpine

# Variables needed at runtime to configure postgres and run the initdb scripts
ENV POSTGRES_DB 'postgres'
ENV POSTGRES_USER 'postgres'
ENV POSTGRES_PASSWORD 'postgres'

# Copy in the load-extensions script
COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/
7 changes: 7 additions & 0 deletions hlp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

SUBQL_ACCESS_TOKEN : MTA5MTgxMzU1WgzS5gKpSXYalo9WIIKk

export SUBQL_ACCESS_TOKEN=MTA5MTgxMzU1WgzS5gKpSXYalo9WIIKk
// Publish it from your project's root directory

subql publish
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"name": "polkaate",
"version": "1.0.0",
"name": "query_kusama",
"version": "0.0.3",
"description": "This project can be used to query kusama chain",
"main": "dist/index.js",
"scripts": {
"build": "tsc -b",
"build": "subql build",
"publish": "subql publish",
"prepack": "rm -rf dist && npm run build",
"test": "jest",
"codegen": "./node_modules/.bin/subql codegen",
"start:docker": "docker-compose pull && docker-compose up"
},
"homepage": "https://github.com/subquery/subql-starter",
"repository": "github:subquery/subql-starter",
"homepage": "https://github.com/PolkaGate/subquery-kusama",
"repository": "github:PolkaGate/subquery-kusama",
"files": [
"dist",
"schema.graphql",
Expand All @@ -20,7 +21,7 @@
"author": "Kami Ekbatanifard",
"license": "MIT",
"devDependencies": {
"@polkadot/api": "^8",
"@polkadot/api": "latest",
"@subql/cli": "latest",
"@subql/types": "latest",
"typescript": "^4.1.3"
Expand Down