Skip to content

Commit

Permalink
Merge branch 'main' into osmosis-comments-removal
Browse files Browse the repository at this point in the history
  • Loading branch information
bgodlin authored Oct 11, 2023
2 parents 9d62b6d + 7ec0063 commit 5401be8
Show file tree
Hide file tree
Showing 111 changed files with 1,584 additions and 2,331 deletions.
File renamed without changes.
20 changes: 20 additions & 0 deletions .github/scripts/ci.tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"esModuleInterop": true,
"declaration": true,
"importHelpers": true,
"resolveJsonModule": true,
"module": "commonjs",
"outDir": "dist",
"rootDir": "src",
"target": "es2017",
"strict": true
},
"include": [
"src/**/*",
"../../node_modules/@subql/types-core/dist/global.d.ts",
"../../node_modules/@subql/types-cosmos/dist/global.d.ts"
]
}
13 changes: 13 additions & 0 deletions .github/scripts/copy-ts-config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# This file copies over a modified TS config that works with workspaces so we can build all projects

set -e

for DEST_PATH in ./*/*/; do

SRC="./.github/scripts/ci.tsconfig.json"
DEST="${DEST_PATH}tsconfig.json"

[ -f "$DEST" ] && cp "$SRC" "$DEST"
done
10 changes: 7 additions & 3 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 18
- name: setup workspace
run: cp .github/scripts/ci.package.json package.json
# Do this before yarn to avoid node_modules directory
- name: update tsconfigs for workspace
run: ./.github/scripts/copy-ts-config.sh
- run: yarn
- name: codegen
run: yarn codegen
# Need to update tsconfig inputs paths for this to work
# - name: build
# run: yarn build
- name: build
run: yarn build
2 changes: 1 addition & 1 deletion Agoric/agoric-starter/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ package-lock.json
target/
dist/
src/types
project.yaml
# project.yaml

# JetBrains IDE
.idea/
Expand Down
4 changes: 2 additions & 2 deletions Agoric/agoric-starter/docker/pg-Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM postgres:12-alpine
FROM postgres:16-alpine

# Variables needed at runtime to configure postgres and run the initdb scripts
ENV POSTGRES_DB 'postgres'
Expand All @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres'
COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/

# Convert line endings to LF
RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh
RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh
98 changes: 0 additions & 98 deletions Agoric/agoric-starter/project.ts

This file was deleted.

58 changes: 58 additions & 0 deletions Agoric/agoric-starter/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
specVersion: 1.0.0
name: agoric-starter
version: 0.0.1
runner:
node:
name: "@subql/node-cosmos"
version: "*"
query:
name: "@subql/query"
version: "*"
description: >-
This project can be use as a starting point for developing your Cosmos (%NETWORK_NAME%) based SubQuery project
repository: "https://github.com/subquery/cosmos-subql-starter"
schema:
file: ./schema.graphql
network:
chainId: agoric-3
# This endpoint must be a public non-pruned archive node
# We recommend providing more than one endpoint for improved reliability, performance, and uptime
# Public nodes may be rate limited, which can affect indexing speed
# When developing your project we suggest getting a private API key
endpoint: ["https://agoric-rpc.stakely.io"]
# Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing
dictionary: "https://api.subquery.network/sq/subquery/agoric-dictionary"
chaintypes:
cosmos.slashing.v1beta1:
file: ./proto/cosmos/slashing/v1beta1/tx.proto
messages:
- MsgUnjail
cosmos.gov.v1beta1:
file: ./proto/cosmos/gov/v1beta1/tx.proto
messages:
- MsgVoteWeighted
cosmos.gov.v1beta1.gov:
file: ./proto/cosmos/gov/v1beta1/gov.proto
messages:
- WeightedVoteOption
dataSources:
- kind: cosmos/Runtime
startBlock: 11628269
mapping:
file: ./dist/index.js
handlers:
# Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to
# - handler: handleBlock
# kind: cosmos/BlockHandler
# Using transaction handlers without filters slows your project down as they can be executed with each and every block
# - handler: handleTransaction
- handler: handleEvent
kind: cosmos/EventHandler
filter:
type: transfer
messageFilter:
type: /cosmos.bank.v1beta1.MsgSend
- handler: handleMessage
kind: cosmos/MessageHandler
filter:
type: /cosmos.bank.v1beta1.MsgSend
2 changes: 1 addition & 1 deletion Akash/akash-starter/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ package-lock.json
target/
dist/
src/types
project.yaml
# project.yaml

# JetBrains IDE
.idea/
Expand Down
4 changes: 2 additions & 2 deletions Akash/akash-starter/docker/pg-Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM postgres:12-alpine
FROM postgres:16-alpine

# Variables needed at runtime to configure postgres and run the initdb scripts
ENV POSTGRES_DB 'postgres'
Expand All @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres'
COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/

# Convert line endings to LF
RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh
RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh
79 changes: 0 additions & 79 deletions Akash/akash-starter/project.ts

This file was deleted.

Loading

0 comments on commit 5401be8

Please sign in to comment.