Skip to content

Commit

Permalink
Add Deploy and CI (#5)
Browse files Browse the repository at this point in the history
* feat: create ptokens and underlying tokens data

* refactor: use riskEngine market listed event for pToken creation

* feat: add market and protocol updates

* chore: add bigint math utils

* chore: add tsx dev package

* chore: add mock token abi

* feat: add set configurator parameter scripts

* chore: add script variables on env example

* feat: add script to create random positions

* chore: add and run formater

* chore: ignore ponder generated file on esint

* chore: remove API endpoint from readme

* chore: add lint and format CI

* fix: use pnpm to ci

* fix: update lockfile

* debug ci script

* debug: remove pnpm cache

* fix: lint command pattern
  • Loading branch information
yvesfracari authored Jan 8, 2025
1 parent 5bbb9ac commit cbab5da
Show file tree
Hide file tree
Showing 30 changed files with 2,955 additions and 2,825 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ponder-env.d.ts
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "ponder"
"extends": ["ponder", "plugin:prettier/recommended"]
}
35 changes: 35 additions & 0 deletions .github/workflows/lint-and-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Lint & Format

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
lint:
name: Lint & Format Check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '18'

- uses: pnpm/action-setup@v3
with:
version: 8
run_install: |
- recursive: true
args: [--no-frozen-lockfile]
- name: Run ESLint
run: pnpm lint

- name: Check Formatting
run: pnpm format:check

- name: Type Check
run: pnpm typecheck
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ yarn-error.log*
# Ponder
/generated/
/.ponder/

# VSCode
.vscode/
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ponder-env.d.ts
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"bracketSpacing": true,
"arrowParens": "avoid"
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Pike Markets Indexer

> ⚠️ **WARNING: Work in Progress**
> ⚠️ **WARNING: Work in Progress**
> This project is in active development. Features, APIs, and documentation are subject to rapid and significant changes.
> Production use is not recommended at this stage.
Expand All @@ -19,12 +19,12 @@ The indexer is currently being developed against Pike Markets contracts deployed
- Historical data tracking for APRs and token prices
- E-mode functionality support

### API Endpoints (WIP)

#### GraphQL

The primary interface following the schema defined [here](https://www.drawdb.app/editor?shareId=2b0a33e19ef0e294d2c3c7e0f8ee1947).

#### REST Endpoints

- `/balances/:user`: User balance records with USD values
- `/user/:user`: Comprehensive user metrics including:
- Total borrowed/supplied USD value
Expand Down
Loading

0 comments on commit cbab5da

Please sign in to comment.