Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next (v2) #130

Closed
wants to merge 239 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
239 commits
Select commit Hold shift + click to select a range
bed06ff
feat(sdk): add wagmi-based package
Rubilmax Sep 9, 2024
cf2ca37
feat(blue-sdk-viem): make queries ultra fast
Rubilmax Sep 10, 2024
2896005
feat(blue-sdk): add wagmi-like hooks
Rubilmax Sep 11, 2024
f522a2f
Merge branch 'main' into feat/blue-sdk-viem-deployless-reads
Rubilmax Sep 11, 2024
45b7d1c
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Sep 11, 2024
9336c32
fix(lock): update yarn lock
Rubilmax Sep 12, 2024
d7b352b
test(Holding): update backed token tests
Rubilmax Sep 12, 2024
c58e532
feat(types): added DeploylessFetchParameters
Rubilmax Sep 12, 2024
6ce1c54
feat(hooks): add holding & vault
Rubilmax Sep 12, 2024
e983351
feat(hooks): add holdings & vaults
Rubilmax Sep 12, 2024
12acf7d
feat(token): add deployless option
Rubilmax Sep 12, 2024
3ca73b4
feat(hooks): add & refactor everything
Rubilmax Sep 12, 2024
d0e2947
feat(simulation): create sdk
Rubilmax Sep 12, 2024
af852f0
fix(blue-sdk-wagmi): update package json
Rubilmax Sep 12, 2024
e5655b9
Merge branch 'feat/blue-sdk-wagmi-2' of github.com:morpho-org/sdks in…
Rubilmax Sep 12, 2024
a11a7c9
feat(blue-sdk-simulation): added simulation state
Rubilmax Sep 12, 2024
b1883cb
fix(blue-api-sdk): adapt converters to non optional vault market publ…
Rubilmax Sep 12, 2024
d495731
feat(blue-sdk-simulation): created simulation state hook
Rubilmax Sep 15, 2024
b4372bf
feat(blue-sdk-simulation): added todo
Rubilmax Sep 15, 2024
6000359
feat(blue-sdk-viem): make canTransfer undefinedable
Rubilmax Sep 16, 2024
ee46c80
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Sep 16, 2024
8b9ca75
feat(blue-sdk-viem): make canTransfer undefinedable
Rubilmax Sep 16, 2024
52e4bfc
feat(blue-sdk): add VaultUser
Rubilmax Sep 17, 2024
89927ee
feat(wagmi): add vault user hook
Rubilmax Sep 17, 2024
84e9d9a
fix(simulation): simplify parameters types
Rubilmax Sep 17, 2024
8a1f726
Merge branch 'main' of github.com:morpho-org/sdks into feat/blue-sdk-…
Rubilmax Sep 17, 2024
4d14d9d
fix(package): update dependencies
Rubilmax Sep 17, 2024
b59d89a
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Sep 17, 2024
0678965
fix(package): update dependencies
Rubilmax Sep 17, 2024
c9709b2
Merge branch 'feat/blue-sdk-wagmi-2' of github.com:morpho-org/sdks in…
Rubilmax Sep 17, 2024
42a3acd
fix(package): update dependencies
Rubilmax Sep 17, 2024
2dc16d9
fix(root): update ts sdk
Rubilmax Sep 17, 2024
bc18d6c
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Sep 17, 2024
15ee5d4
fix(root): update biomejs
Rubilmax Sep 17, 2024
5d5f5fb
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Sep 17, 2024
1c31b44
Merge branch 'feat/blue-sdk-wagmi-2' of github.com:morpho-org/sdks in…
Rubilmax Sep 17, 2024
406a596
fix(simulation): make it compile
Rubilmax Sep 17, 2024
188724c
feat(simulation): make simulation great again
Rubilmax Sep 18, 2024
696ad0c
Merge pull request #71 from morpho-org/feat/blue-sdk-wagmi-2
Rubilmax Sep 18, 2024
b9b7433
v1.7.6
Sep 18, 2024
e9a1c44
Merge branch 'main' of github.com:morpho-org/sdks into feat/blue-sdk-…
Rubilmax Sep 20, 2024
f26f148
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Sep 20, 2024
f48da60
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Sep 20, 2024
631591f
feat(hooks): export hooks
Rubilmax Sep 20, 2024
57cfdb3
Merge branch 'feat/blue-sdk-simulation' of github.com:morpho-org/sdks…
Rubilmax Sep 20, 2024
dd3ba1a
v1.10.1-alpha.0
Sep 20, 2024
822c19f
feat(simulation-state): add query options
Rubilmax Sep 20, 2024
92be525
Merge branch 'feat/blue-sdk-simulation' of github.com:morpho-org/sdks…
Rubilmax Sep 20, 2024
6681280
v1.10.1-alpha.1
Sep 20, 2024
9cb971a
refactor(simulation-state-hook-type): merge intersections
Rubilmax Sep 20, 2024
5e60d19
Merge branch 'feat/blue-sdk-simulation' of github.com:morpho-org/sdks…
Rubilmax Sep 20, 2024
a2b5f9f
Merge branch 'main' into feat/blue-sdk-viem-deployless-reads
oumar-fall Sep 23, 2024
0de4320
clean(blue-sdk): Remove deprecated helpers
oumar-fall Sep 23, 2024
77669f1
Merge pull request #89 from morpho-org/clean/remove-deprecated-helper
Rubilmax Sep 24, 2024
0626535
Merge branch 'main' of github.com:morpho-org/sdks into feat/blue-sdk-…
Rubilmax Sep 24, 2024
ba65cd5
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Sep 24, 2024
9939b23
fix(release): remove release notes generation
Rubilmax Sep 24, 2024
8a297ab
v1.10.5-alpha.0
Sep 24, 2024
ba50bd4
feat(hooks): add default staleTime
Rubilmax Sep 25, 2024
679934b
Merge branch 'feat/blue-sdk-simulation' of github.com:morpho-org/sdks…
Rubilmax Sep 25, 2024
65ada84
v1.10.5-alpha.1
Sep 25, 2024
2d103cf
Merge pull request #80 from morpho-org/feat/blue-sdk-simulation
Rubilmax Sep 25, 2024
9d974f0
fix(simulation): extract block to consumer
Rubilmax Sep 25, 2024
03c90ee
v1.10.5-alpha.2
Sep 25, 2024
077be0e
fix(simulation): set pending when no block
Rubilmax Sep 25, 2024
08fce7e
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Sep 25, 2024
a16f3d5
v1.10.5-alpha.3
Sep 25, 2024
5f16744
fix(simulation): fetch when block defined
Rubilmax Sep 25, 2024
a02e1fa
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Sep 25, 2024
fe92244
v1.10.5-alpha.4
Sep 25, 2024
5f9ee16
fix(simulation): memoize only simulation state
Rubilmax Sep 25, 2024
17fd9aa
fix(simulation): rerender less
Rubilmax Sep 26, 2024
822aa1a
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Sep 26, 2024
8073d1f
v1.10.5-alpha.5
Sep 26, 2024
1791f09
fix(simulation): use relative imports
Rubilmax Sep 26, 2024
9d6a6e2
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Sep 26, 2024
1f8e6ca
v1.10.5-alpha.6
Sep 26, 2024
2170c27
fix(simulation): combine users
Rubilmax Sep 26, 2024
01370d7
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Sep 26, 2024
6b3887d
v1.10.5-alpha.7
Sep 26, 2024
a69af06
feat(blue-sdk): improve address type
oumar-fall Sep 26, 2024
56c5540
feat(blue-viem-sdk): Add signature utils
oumar-fall Sep 26, 2024
17ca205
fix(blue-sdk-ethers): fix types
oumar-fall Sep 26, 2024
264a595
fix(blue-api-sdk): fix types
oumar-fall Sep 26, 2024
63c500f
fix: fix types
oumar-fall Sep 26, 2024
0808671
feat(blue-sdk-viem): improve structure
oumar-fall Sep 26, 2024
02114eb
clean(blue-sdk-ethers): clean augments
oumar-fall Sep 26, 2024
73c481c
clean: clean code
oumar-fall Sep 26, 2024
5d32b98
feat(blue-api-sdk): Fix types
oumar-fall Sep 26, 2024
32ad3a1
Merge pull request #99 from morpho-org/feat/add-viem-tx-utils
Rubilmax Sep 26, 2024
e4034ac
v1.10.5-alpha.8
Sep 26, 2024
0e5dbaf
feat(blue-sdk-viem): add bundler
Rubilmax Sep 27, 2024
a609208
Merge branch 'main' of github.com:morpho-org/sdks into feat/blue-sdk-…
Rubilmax Sep 30, 2024
f73a15b
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Sep 30, 2024
3336801
fix(bundler): make package build
Rubilmax Sep 30, 2024
a8ae2fe
Merge branch 'main' of github.com:morpho-org/sdks into feat/blue-sdk-…
Rubilmax Sep 30, 2024
03abcc6
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Sep 30, 2024
6ee072c
fix(bundler): disable tests
Rubilmax Sep 30, 2024
abe56ee
test(blue-sdk): remove force casting
Rubilmax Sep 30, 2024
9d7572e
Merge pull request #101 from morpho-org/feat/blue-sdk-viem-bundler
Rubilmax Sep 30, 2024
10ca2b9
feat(simulation-state): add errors and fetching states
Rubilmax Sep 30, 2024
4586d52
Merge branch 'main' of github.com:morpho-org/sdks into feat/blue-sdk-…
Rubilmax Sep 30, 2024
d9f8313
Merge branch 'main' of github.com:morpho-org/sdks into feat/blue-sdk-…
Rubilmax Sep 30, 2024
cf788aa
v2.0.0-alpha.1
Sep 30, 2024
6b403a8
feat(simulation): add getters
Rubilmax Sep 30, 2024
5e7dcff
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Sep 30, 2024
02d6417
v2.0.0-alpha.2
Sep 30, 2024
6b57f7c
Merge branch 'main' into feat/blue-sdk-viem-deployless-reads
oumar-fall Oct 1, 2024
20ba488
v2.0.0-alpha.3
Oct 1, 2024
290369c
test: move to vitest
Rubilmax Oct 1, 2024
caae8e2
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Oct 1, 2024
d55c3b4
Merge branch 'main' of github.com:morpho-org/sdks into feat/blue-sdk-…
Rubilmax Oct 1, 2024
251b49d
test(hardhat): revert to it
Rubilmax Oct 1, 2024
ed0fef9
Merge branch 'main' of github.com:morpho-org/sdks into feat/blue-sdk-…
Rubilmax Oct 1, 2024
c6f0a54
test(liquidation): revert to it
Rubilmax Oct 1, 2024
6551f5f
v2.0.0-alpha.4
Oct 1, 2024
6c5a60e
feat(simulation): add isFetchingAny
Rubilmax Oct 1, 2024
3d81752
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Oct 1, 2024
c09c4cc
v2.0.0-alpha.5
Oct 1, 2024
422f408
build(package): bump wagmi
Rubilmax Oct 2, 2024
2a6fa81
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Oct 2, 2024
7b3285d
feat(wagmi): add mergedDeepEqual
Rubilmax Oct 2, 2024
24debc6
v2.0.0-alpha.6
Oct 2, 2024
a53c5ec
feat(test): add vitest
Rubilmax Oct 4, 2024
09d9415
feat(test): extract prool viem test to package
Rubilmax Oct 4, 2024
9e13814
Merge branch 'main' of github.com:morpho-org/sdks into feat/blue-sdk-…
Rubilmax Oct 7, 2024
83cbede
Merge branch 'feat/blue-sdk-viem-deployless-reads' of github.com:morp…
Rubilmax Oct 7, 2024
56cdcff
test(blue-sdk-viem): adapt vitest
Rubilmax Oct 7, 2024
5b27960
test(blue-sdk-viem): make test suite pass
Rubilmax Oct 7, 2024
03c0114
feat(wagmi): add hook test
Rubilmax Oct 7, 2024
3739846
feat(blue-sdk-viem-simulation): adapt tests
Rubilmax Oct 7, 2024
82e1a42
feat(blue-sdk-viem-simulation): adapt e2e tests
Rubilmax Oct 7, 2024
4ed13d4
Merge branch 'main' of github.com:morpho-org/sdks into feat/vitest
Rubilmax Oct 8, 2024
17dd903
test(simulation): make handler tests pass
Rubilmax Oct 8, 2024
dcf25a8
test(simulation): make them pass
Rubilmax Oct 8, 2024
fdcbff9
fix(lint): update format
Rubilmax Oct 8, 2024
831c663
feat(sdks): split simulation sdk
Rubilmax Oct 8, 2024
dcac764
feat(sdks): make it all compile
Rubilmax Oct 8, 2024
642240a
refactor(liquidation-sdk): rename sdk
Rubilmax Oct 9, 2024
ba2155c
fix(ethers): move to anvil tests
Rubilmax Oct 9, 2024
b59f61b
feat(blue-sdk-viem): add hardhat for compilation
Rubilmax Oct 9, 2024
eb4a801
Merge branch 'main' of github.com:morpho-org/sdks into feat/vitest
Rubilmax Oct 9, 2024
171b9cf
fix(sdk-simulation): fix max balances
oumar-fall Oct 10, 2024
f8644d4
test(liquidation): make them use vitest
Rubilmax Oct 10, 2024
1836368
Merge branch 'feat/vitest' of github.com:morpho-org/sdks into feat/vi…
Rubilmax Oct 10, 2024
060ca55
fix: checksum
oumar-fall Oct 10, 2024
d045cb6
Merge branch 'main' of github.com:morpho-org/sdks into feat/vitest
Rubilmax Oct 10, 2024
1bfa8a4
Merge branch 'feat/vitest' of github.com:morpho-org/sdks into feat/vi…
Rubilmax Oct 10, 2024
8d300f1
test(bundler): make base test pass
Rubilmax Oct 11, 2024
8d4d0fa
test(bundler): adapt some tests
Rubilmax Oct 11, 2024
14400f3
fix(morpho-test): add node types
Rubilmax Oct 11, 2024
5cd44a7
test(bundler-sdk): adapt more & more tests
Rubilmax Oct 11, 2024
f69585e
build(lint): fix format
Rubilmax Oct 11, 2024
83e8524
fix(blue-sdk): increase test timeout
Rubilmax Oct 11, 2024
6a07a1a
fix(yarn): run postinstall
Rubilmax Oct 11, 2024
e6dbabe
fix(lint): update postinstall script
Rubilmax Oct 11, 2024
f77d140
fix(lint): update postinstall script
Rubilmax Oct 11, 2024
c1b9f85
v2.0.0-alpha.10
Oct 14, 2024
b8f3182
build(viem-deal): bump deal
Rubilmax Oct 14, 2024
48521b3
Merge branch 'feat/vitest' of github.com:morpho-org/sdks into feat/vi…
Rubilmax Oct 14, 2024
ac2b792
test(bundler-sdk): adapt more & more & more tests
Rubilmax Oct 14, 2024
6707e7f
test(bundler-sdk): adapt more & more & more & more tests
Rubilmax Oct 14, 2024
f1b3dfa
test(bundler-sdk): adapt more & more & more & more & more tests
Rubilmax Oct 14, 2024
7ea6221
test(bundler-sdk): finally adapt all tests
Rubilmax Oct 15, 2024
fb13c41
build(lerna): bump version
Rubilmax Oct 15, 2024
43489ff
test(bundler): fix timeouts
Rubilmax Oct 15, 2024
d2fa194
test(bundler): fix determinism
Rubilmax Oct 15, 2024
ba0e983
test(bundler): increase timeout
Rubilmax Oct 15, 2024
5b8194d
docs(README): add base readme
Rubilmax Oct 16, 2024
6c9944c
docs(README): add tests README and LICENSE
Rubilmax Oct 16, 2024
4ad48b3
docs(README): add spaces
Rubilmax Oct 16, 2024
193e041
docs(README): add README to morpho-ts
Rubilmax Oct 16, 2024
0e47a30
docs(README): improve display
Rubilmax Oct 16, 2024
5c54dc6
docs(README): add all READMEs
Rubilmax Oct 16, 2024
d7b67ba
build(lock): bump lockfile
Rubilmax Oct 16, 2024
8f874b9
v2.0.0-stable.0
Oct 16, 2024
7b6aaee
build(package): switch to pnpm
Rubilmax Oct 16, 2024
134aac1
Merge branch 'feat/vitest' of github.com:morpho-org/sdks into feat/vi…
Rubilmax Oct 16, 2024
981d407
build(package): use semantic-release
Rubilmax Oct 16, 2024
1e32e78
ci(release): add semantic-release cd
Rubilmax Oct 16, 2024
1212fb0
ci: add pnpm setup
Rubilmax Oct 16, 2024
246146f
build: update lockfile
Rubilmax Oct 16, 2024
cf658a8
fix(test-wagmi): update type
Rubilmax Oct 16, 2024
8d604b4
ci(semantic-release): enable on feat/vitest
Rubilmax Oct 16, 2024
fec77c3
ci(semantic-release): dont recursively run semantic-release
Rubilmax Oct 16, 2024
ebd1ee9
ci(semantic-release): add github token
Rubilmax Oct 16, 2024
e0505bc
build(package): reset versions
Rubilmax Oct 16, 2024
58332af
build(package): add semantic-release config
Rubilmax Oct 16, 2024
e6246b7
ci(release): automatically trigger semantic-release
Rubilmax Oct 16, 2024
a5e3618
ci(release): remove feat/vitest branch
Rubilmax Oct 16, 2024
7f12bf5
ci(build): name jobs
Rubilmax Oct 16, 2024
99ded49
ci(release): add next branch
Rubilmax Oct 16, 2024
2d22ee2
ci(build): ignore next
Rubilmax Oct 16, 2024
33938fd
ci(build): ignore next
Rubilmax Oct 16, 2024
c670d73
ci(build): ignore next
Rubilmax Oct 16, 2024
7a01131
ci(push): simplify ci
Rubilmax Oct 16, 2024
c612fc6
ci(concurrency): fix cancel issues
Rubilmax Oct 16, 2024
af77103
ci(release): unlock next release
Rubilmax Oct 16, 2024
d36e460
build(package)!: downgrade to main version
Rubilmax Oct 16, 2024
3ebb598
ci(release): set next as prerelease
Rubilmax Oct 16, 2024
bb03251
ci(release): remove concurrency limit
Rubilmax Oct 16, 2024
c95012f
ci(release): remove dry run
Rubilmax Oct 16, 2024
8ed1815
ci(release): add concurrency limit for tags
Rubilmax Oct 16, 2024
b3cbc62
ci(release): make jobs concurrent
Rubilmax Oct 16, 2024
912924b
ci(release): rename jobs
Rubilmax Oct 16, 2024
1e91a2d
test: increase tolerance
Rubilmax Oct 17, 2024
0ef0c88
fix(publish): include files
Rubilmax Oct 17, 2024
eb5dddd
ci(publish): disable test requirement
Rubilmax Oct 17, 2024
e5f078b
ci(publish): paste to .releaserc
Rubilmax Oct 17, 2024
3de6d55
ci(publish): limit concurrency
Rubilmax Oct 17, 2024
8884978
fix(publish): make release config work
Rubilmax Oct 17, 2024
79e56b2
test(pulish): log package
Rubilmax Oct 17, 2024
d472b41
fix(publish): copy release config
Rubilmax Oct 17, 2024
07f2e07
fix(publish): update concurrency group
Rubilmax Oct 17, 2024
2f5d184
fix(publish): matrix.max-parallel = 1
Rubilmax Oct 17, 2024
0158c88
fix(publish): let semantic-release version
Rubilmax Oct 17, 2024
a618cea
fix(publish): use npm plugin without publishing
Rubilmax Oct 17, 2024
567e79d
fix(publish): paste npm token to npmrc
Rubilmax Oct 17, 2024
9884c13
ci(push): disable build on main & next
Rubilmax Oct 17, 2024
e1e0eb1
ci(push): disable build on main & next
Rubilmax Oct 17, 2024
3700073
ci: format
Rubilmax Oct 17, 2024
17a5905
test(bundler): make them all pass for once
Rubilmax Oct 17, 2024
c2885e9
ci(push): always build
Rubilmax Oct 17, 2024
397d167
ci(publish): run in parallel
Rubilmax Oct 17, 2024
242d209
fix(publish): update author
Rubilmax Oct 17, 2024
bd883ed
fix(morpho-ts): fix formatter
oumar-fall Oct 17, 2024
cb6a45f
Merge pull request #131 from morpho-org/fix/format-short-small-integers
oumar-fall Oct 17, 2024
21e6d8a
style(morpho-ts): lint test file
oumar-fall Oct 17, 2024
17f8230
ci(publish): move to lerna
Rubilmax Oct 17, 2024
c63795f
Merge branch 'next' of github.com:morpho-org/sdks into next
Rubilmax Oct 17, 2024
9720eb8
ci(publish): login via github app
Rubilmax Oct 17, 2024
24fa63e
ci(publish): skip needs
Rubilmax Oct 17, 2024
6496bb8
ci(publish): mix lerna & semantic release
Rubilmax Oct 17, 2024
b9c1b10
ci(publish): add lerna message format
Rubilmax Oct 17, 2024
62be81a
chore(release): publish %s
Oct 17, 2024
44acea1
fix(publish): revert to semantic-release
Rubilmax Oct 17, 2024
edcfa67
fix(publish): limit concurrency
Rubilmax Oct 17, 2024
d78749c
fix(publish): added comments
Rubilmax Oct 17, 2024
4473015
fix(publish): always run
Rubilmax Oct 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build

on:
workflow_call:

jobs:
packages:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm

- run: pnpm install

- run: pnpm -r --parallel --no-reporter-hide-prefix build
18 changes: 8 additions & 10 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
name: Lint code
name: Lint

on:
push:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
workflow_call:

jobs:
lint:
biome:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
cache: pnpm

- run: yarn install --immutable
- run: pnpm install

- run: yarn lint
- run: pnpm lint
56 changes: 0 additions & 56 deletions .github/workflows/npm-release.yml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/package.yml

This file was deleted.

67 changes: 67 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Publish

on:
workflow_call:
secrets:
NPM_TOKEN:
required: true

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.CD_GITHUB_APP_ID }}
private-key: ${{ secrets.CD_GITHUB_APP_PRIVATE_KEY }}

- uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm

- run: pnpm install

# First, run versioning to have the correct version referenced in each package.json.
- run: pnpm -r --parallel -c exec "jq '.release = input.release_version' package.json ../../package.json > tmp.json && mv tmp.json package.json"

# Limit concurrency to avoid semantic-release failing at pushing tags.
- run: pnpm -r --workspace-concurrency=1 --no-reporter-hide-prefix exec semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: pnpm -r --parallel -c exec "jq '.release = input.release_publish' package.json ../../package.json > tmp.json && mv tmp.json package.json"

- run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

pnpm -r --parallel --no-reporter-hide-prefix exec semantic-release

# - run: |
# git config --global user.name 'github-actions'
# git config --global user.email '[email protected]'

# - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

# - if: github.ref == 'refs/heads/main'
# run: |
# pnpm lerna publish -m "chore(release): publish %s" --no-private --conventional-commits --no-changelog --yes

# - if: github.ref == 'refs/heads/next'
# run: |
# pnpm lerna publish -m "chore(release): publish %s" --dist-tag next --exact --no-private --conventional-commits --conventional-prerelease --no-changelog --yes

# - run: pnpm -r --parallel -c exec "jq '.release = input.release' package.json ../../package.json > tmp.json && mv tmp.json package.json"

# - run: pnpm -r --parallel --no-reporter-hide-prefix exec semantic-release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

28 changes: 28 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
push:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
lint:
uses: ./.github/workflows/lint.yml

build:
uses: ./.github/workflows/build.yml

test:
uses: ./.github/workflows/test.yml
secrets: inherit

publish:
# needs:
# - lint
# - build
# - test

uses: ./.github/workflows/publish.yml
secrets: inherit
67 changes: 25 additions & 42 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,29 @@
name: Build & test packages
name: Test

on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
workflow_call:
secrets:
MAINNET_RPC_URL:
required: true

jobs:
packages:
strategy:
fail-fast: false
matrix:
package:
- name: morpho-ts
jest: true
hardhat: false
- name: morpho-test
jest: false
hardhat: false
- name: blue-api-sdk
jest: false
hardhat: false
- name: blue-sdk
jest: true
hardhat: true
- name: blue-sdk-ethers
jest: true
hardhat: true
- name: blue-sdk-viem
jest: false
hardhat: true
- name: blue-sdk-ethers-liquidation
jest: false
hardhat: true

uses: ./.github/workflows/package.yml
with:
name: ${{ matrix.package.name }}
jest: ${{ matrix.package.jest }}
hardhat: ${{ matrix.package.hardhat }}
secrets: inherit
vitest:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm

- uses: foundry-rs/foundry-toolchain@v1

- run: pnpm install

- run: pnpm run test --coverage
env:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,5 @@ local_*

# Local Netlify folder
.netlify

!.vscode
7 changes: 1 addition & 6 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
STAGED_TS_FILES=$(git diff --staged --name-only --diff-filter=d | grep '\.tsx\?$' | xargs)

if [ -n "$STAGED_TS_FILES" ]; then
yarn lint --write $STAGED_TS_FILES
git add $STAGED_TS_FILES
fi
pnpm exec lint-staged
1 change: 1 addition & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm exec commitlint --edit
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.11.0
22
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"recommendations": [
"arcanis.vscode-zipfs",
"esbenp.prettier-vscode",
"biomejs.biome"
]
}
13 changes: 2 additions & 11 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
{
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.defaultFormatter": "biomejs.biome",
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"editor.codeActionsOnSave": {
"quickfix.biome": "always",
"source.organizeImports.biome": "always"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
Loading
Loading