Skip to content

Commit da5596a

Browse files
rafaelcrASuciuX
andauthored
feat(runes): add runes api to codebase (#449)
* new code * add ci * files * standard * Update api/runes/package.json Co-authored-by: ASuciuX <151519329+ASuciuX@users.noreply.github.com> --------- Co-authored-by: ASuciuX <151519329+ASuciuX@users.noreply.github.com>
1 parent 6815878 commit da5596a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+23657
-1676
lines changed

.github/workflows/ci.yaml

+8-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
suite: [ordinals]
23+
suite: [ordinals, runes]
2424
runs-on: ubuntu-latest
2525
defaults:
2626
run:
@@ -41,8 +41,9 @@ jobs:
4141
path: |
4242
~/.npm
4343
**/node_modules
44-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
44+
key: ${{ runner.os }}-build-${{ matrix.suite }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
4545
restore-keys: |
46+
${{ runner.os }}-build-${{ matrix.suite }}-${{ env.cache-name }}-
4647
${{ runner.os }}-build-${{ env.cache-name }}-
4748
${{ runner.os }}-build-
4849
${{ runner.os }}-
@@ -63,7 +64,7 @@ jobs:
6364
strategy:
6465
fail-fast: false
6566
matrix:
66-
suite: [ordinals]
67+
suite: [ordinals, runes]
6768
defaults:
6869
run:
6970
working-directory: ./api/${{ matrix.suite }}
@@ -86,8 +87,9 @@ jobs:
8687
path: |
8788
~/.npm
8889
**/node_modules
89-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
90+
key: ${{ runner.os }}-build-${{ matrix.suite }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
9091
restore-keys: |
92+
${{ runner.os }}-build-${{ matrix.suite }}-${{ env.cache-name }}-
9193
${{ runner.os }}-build-${{ env.cache-name }}-
9294
${{ runner.os }}-build-
9395
${{ runner.os }}-
@@ -260,7 +262,7 @@ jobs:
260262
strategy:
261263
fail-fast: false
262264
matrix:
263-
suite: [ordinals]
265+
suite: [ordinals, runes]
264266
runs-on: ubuntu-latest
265267
needs: semantic-release
266268
steps:
@@ -285,7 +287,7 @@ jobs:
285287
uses: docker/metadata-action@v5
286288
with:
287289
images: |
288-
hirosystems/${{ matrix.suite }}-api
290+
hirosystems/bitcoin-indexer-${{ matrix.suite }}-api
289291
tags: |
290292
type=ref,event=branch
291293
type=ref,event=pr

.vscode/launch.json

+21
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,26 @@
126126
"PGPASSWORD": "postgres",
127127
},
128128
},
129+
{
130+
"type": "node",
131+
"request": "launch",
132+
"name": "test: runes-api",
133+
"program": "${workspaceFolder}/api/runes/node_modules/jest/bin/jest",
134+
"cwd": "${workspaceFolder}/api/runes/",
135+
"args": [
136+
"--testTimeout=3600000",
137+
"--runInBand",
138+
"--no-cache",
139+
],
140+
"outputCapture": "std",
141+
"console": "integratedTerminal",
142+
"preLaunchTask": "npm: testenv:run",
143+
"postDebugTask": "npm: testenv:stop",
144+
"env": {
145+
"PGHOST": "localhost",
146+
"PGUSER": "postgres",
147+
"PGPASSWORD": "postgres",
148+
},
149+
},
129150
]
130151
}
File renamed without changes.
File renamed without changes.

api/ordinals/.commitlintrc.json

-3
This file was deleted.

api/ordinals/.env.example

-1
This file was deleted.

api/ordinals/.releaserc

-3
This file was deleted.

api/ordinals/CHANGELOG.md

-1,456
This file was deleted.

api/ordinals/LICENSE

-202
This file was deleted.

api/ordinals/vercel.json

-5
This file was deleted.

api/runes/.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
.eslintrc.js

api/runes/.eslintrc.js

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module.exports = {
2+
root: true,
3+
extends: ['@stacks/eslint-config', 'prettier'],
4+
overrides: [],
5+
parser: '@typescript-eslint/parser',
6+
parserOptions: {
7+
tsconfigRootDir: __dirname,
8+
project: './tsconfig.json',
9+
ecmaVersion: 2020,
10+
sourceType: 'module',
11+
},
12+
ignorePatterns: ['*.config.js', 'config/*', '*.mjs', 'tests/*.js', 'client/*'],
13+
plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc', 'prettier'],
14+
rules: {
15+
'prettier/prettier': 'error',
16+
'@typescript-eslint/no-inferrable-types': 'off',
17+
'@typescript-eslint/camelcase': 'off',
18+
'@typescript-eslint/no-empty-function': 'off',
19+
'@typescript-eslint/no-use-before-define': ['error', 'nofunc'],
20+
'@typescript-eslint/no-floating-promises': ['error', { ignoreVoid: true }],
21+
'no-warning-comments': 'warn',
22+
'tsdoc/syntax': 'error',
23+
// TODO: Remove this when `any` abi type is fixed.
24+
'@typescript-eslint/no-unsafe-assignment': 'off',
25+
'@typescript-eslint/no-unsafe-member-access': 'off',
26+
'@typescript-eslint/no-unsafe-call': 'off',
27+
'@typescript-eslint/restrict-template-expressions': 'off',
28+
},
29+
};

api/runes/.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

api/runes/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Runes API

0 commit comments

Comments
 (0)