Skip to content

Commit

Permalink
Update for Classic Core v2.x (#1)
Browse files Browse the repository at this point in the history
* feat: support classic core v2.x

* fix(collector): validator detection

* refactor and fix
  • Loading branch information
inon-man authored Jun 28, 2023
1 parent 8e2c501 commit 2ce230d
Show file tree
Hide file tree
Showing 106 changed files with 3,364 additions and 13,804 deletions.
13 changes: 5 additions & 8 deletions .envrc_sample
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@ export TYPEORM_HOST=localhost
export TYPEORM_USERNAME=terra
export TYPEORM_PASSWORD=terra
export TYPEORM_DATABASE=terra_fcd
export TYPEORM_PORT=5432
export TYPEORM_PORT=5432
export TYPEORM_SYNCHRONIZE=false
export TYPEORM_LOGGING=false
export TYPEORM_ENTITIES=src/orm/*Entity.ts
export TYPEORM_MIGRATIONS=src/orm/migration/*.ts

export SERVER_PORT=3060
export CHAIN_ID=tequila-0004
export LCD_URI=https://tequila-lcd.terra.dev
export FCD_URI=https://tequila-fcd.terra.dev
export RPC_URI=
export BYPASS_URI=https://tequila-fcd.terra.dev
export MIRROR_GRAPH_URI=https://tequila-graph.mirror.finance/graphql
export STATION_STATUS_JSON=https://terra.money/station/version-web.json
export CHAIN_ID=localterra
export LCD_URI=http://localhost:1317
export FCD_URI=http://localhost:3060
export RPC_URI=http://localhost:26657
export SENTRY_DSN=
#export USE_LOG_FILE=true
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -54,7 +54,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -68,4 +68,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,8 @@

## Prerequisites

1. `Node.js` version 14 or later
1. `PostgreSQL` version 12 or later

### Terra Core

1. Setup a LCD
1. Configure firewall ([Reference](https://docs.terra.money/How-to/Run-a-full-Terra-node/Set-up-production-environment.html#configure-the-firewall))
1. `Node.js` v16.x or later
1. `PostgreSQL` v12.x or later

## Project setup

Expand All @@ -44,7 +39,7 @@ FCD requires PostgreSQL as a backend database and [TypeORM](https://github.com/t
#### Create a new database for FCD

```psql
postgres=> CREATE DATABASED fcd OWNER terra;
postgres=> CREATE DATABASE fcd OWNER terra;
```

#### Synchronize Database Scheme
Expand Down
2 changes: 2 additions & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
const matchers = require('jest-extended')
expect.extend(matchers)
jest.setTimeout(60000)
Loading

0 comments on commit 2ce230d

Please sign in to comment.