-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add github workflow for nestjs-indexer * chore: temporary disabled typo check * feat: cleanup and fix prisma config * feat: check data-backend build * chore: fix format * chore: fix backend build * feat: fix path
- Loading branch information
Showing
59 changed files
with
764 additions
and
960 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: NestJS Indexer App | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
check-app: | ||
runs-on: ubuntu-latest | ||
|
||
defaults: | ||
run: | ||
working-directory: ./apps/nestjs-indexer | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
- name: Setup pnpm cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install Dependencies | ||
run: | | ||
if [ -f "pnpm-lock.yaml" ]; then | ||
pnpm install --frozen-lockfile | ||
else | ||
pnpm install | ||
fi | ||
- name: Build Prisma client | ||
run: pnpm generate | ||
working-directory: ./packages/indexer-prisma | ||
|
||
- name: Prettier Format Check | ||
run: pnpm format:check | ||
|
||
- name: TypeScript Check | ||
run: pnpm ts:check | ||
|
||
- name: Build | ||
run: pnpm build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
export const FUNKIT_STARKNET_CHAIN_ID = "23448594291968334"; | ||
export const SOURCE_OF_FUND_KEY = "card|stripe"; | ||
export const FUNKIT_STRIPE_SOURCE_CURRENCY = "usd"; | ||
export const FUNKIT_STARKNET_CHAIN_ID = '23448594291968334'; | ||
export const SOURCE_OF_FUND_KEY = 'card|stripe'; | ||
export const FUNKIT_STRIPE_SOURCE_CURRENCY = 'usd'; | ||
|
||
export const TOKEN_INFO = { | ||
STARKNET_USDC: { | ||
address: | ||
"0x053c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", | ||
address: '0x053c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8', | ||
decimals: 6, | ||
symbol: "usdc", | ||
network: "starknet", | ||
symbol: 'usdc', | ||
network: 'starknet', | ||
networkId: FUNKIT_STARKNET_CHAIN_ID, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.