Skip to content

Commit 7760710

Browse files
committed
feat: typescript package with deployment data
Massive refactor See #21
1 parent d56069d commit 7760710

File tree

800 files changed

+6690
-88010
lines changed

Some content is hidden

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

800 files changed

+6690
-88010
lines changed

.cursor/rules/suggest-lodash.mdc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
description:
3+
globs: *.ts
4+
alwaysApply: false
5+
---
6+
When you suggest code changes that need to use utility functions such as Object.values, Object.entries, etc., please default to using lodash (_) instead of the Object. syntax. Do this unless I tell you otherwise.

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# EditorConfig http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# All files
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
indent_size = 2
11+
indent_style = space
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_ETHERSCAN_API_KEY="YOUR_ETHERSCAN_API_KEY"

.github/workflows/ci.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: "CI"
22

3+
concurrency:
4+
cancel-in-progress: true
5+
group: ${{github.workflow}}-${{github.ref}}
6+
37
on:
48
pull_request:
59
push:
@@ -14,14 +18,26 @@ jobs:
1418

1519
- name: "Install Bun"
1620
uses: "oven-sh/setup-bun@v2"
21+
with:
22+
bun-version: "latest"
1723

1824
- name: "Install the Node.js dependencies"
19-
run: "bun install"
25+
run: "bun install --frozen-lockfile"
26+
27+
- name: "Install Just"
28+
uses: "extractions/setup-just@v3"
29+
with:
30+
just-version: "1"
31+
32+
- name: "Check the code"
33+
run: "just full-check"
2034

21-
- name: "Lint the code"
22-
run: "bun run prettier:check"
35+
- name: "Run the tests"
36+
env:
37+
VITE_ETHERSCAN_API_KEY: ${{ secrets.VITE_ETHERSCAN_API_KEY }}
38+
run: "just test"
2339

2440
- name: "Add summary"
25-
run: |
41+
run: | # shell
2642
echo "## CI result" >> $GITHUB_STEP_SUMMARY
2743
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY

.github/workflows/cron-tests.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "Cron: Tests"
2+
3+
on:
4+
schedule:
5+
# Runs at 02:00 UTC every day
6+
- cron: "0 2 * * *"
7+
workflow_dispatch:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: "Check out the repo"
14+
uses: "actions/checkout@v4"
15+
16+
- name: "Install Bun"
17+
uses: "oven-sh/setup-bun@v2"
18+
with:
19+
bun-version: "latest"
20+
21+
- name: "Install the Node.js dependencies"
22+
run: "bun install --frozen-lockfile"
23+
24+
- name: "Install Just"
25+
uses: "extractions/setup-just@v3"
26+
with:
27+
just-version: "1"
28+
29+
- name: "Check the code"
30+
run: "just full-check"
31+
32+
- name: "Run the tests"
33+
env:
34+
TEST_ONLY_CHAINS: true
35+
TEST_ONLY_CONTRACTS: true
36+
run: "just test"
37+
38+
- name: "Add summary"
39+
run: | # shell
40+
echo "## Cron Tests result" >> $GITHUB_STEP_SUMMARY
41+
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# directories
2+
dist
3+
logs
24
node_modules
35

46
# files
57
*.env
68
*.log
7-
.DS_Store
8-
.pnp.*
9+
*.tsbuildinfo
910
bun.lockb
1011
lcov.info
1112
package-lock.json

.lintstagedrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* @type {import("lint-staged").Configuration}
3+
*/
4+
module.exports = {
5+
"*.{json,jsonc,ts}": "bun biome check --write",
6+
"*.{md,yml}": "bun prettier --cache --write",
7+
"*.ts": "bun biome lint --write --only correctness/noUnusedImports",
8+
};

.lintstagedrc.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/*.ts

.prettierrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const baseConfig = require("@sablier/devkit/prettier");
2+
3+
/**
4+
* @see https://prettier.io/docs/configuration
5+
* @type {import("prettier").Config}
6+
*/
7+
const config = baseConfig;
8+
9+
module.exports = config;

0 commit comments

Comments
 (0)