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) #132

Open
wants to merge 490 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
490 commits
Select commit Hold shift + click to select a range
ff49f37
ci(publish): make github step faster
Rubilmax Oct 17, 2024
56be5ff
ci(publish): re-enable workflow
Rubilmax Oct 17, 2024
644cf5a
ci(publish): invert publish & releases
Rubilmax Oct 17, 2024
9b4accb
ci(publish): fix github token
Rubilmax Oct 17, 2024
8b040ee
ci(publish): fix concurrency
Rubilmax Oct 17, 2024
089c64a
ci(publish): fix release
Rubilmax Oct 17, 2024
fdd49ce
ci(publish): fix cmd
Rubilmax Oct 17, 2024
948cac8
fix(package): update description
Rubilmax Oct 17, 2024
0e0402c
fix(package): update description
Rubilmax Oct 17, 2024
bb19131
fix(package): update fields
Rubilmax Oct 17, 2024
4a4b0ed
fix(package): update fields
Rubilmax Oct 17, 2024
0b76568
feat(liquidation-sdk-viem): add logic to get extra liquidity when liq…
0x666c6f Oct 18, 2024
f9e851f
fix(publish): move to independent js script
Rubilmax Oct 18, 2024
77aac17
fix(release): import Bumper
Rubilmax Oct 18, 2024
485e922
fix(release): use fetch instead of gh cli
Rubilmax Oct 18, 2024
b8845ca
fix(publish): debug cd
Rubilmax Oct 18, 2024
5208ac1
fix(publish): debug via dry run
Rubilmax Oct 18, 2024
a92f878
fix(publish): checkout all
Rubilmax Oct 18, 2024
a5fd011
fix(publish): add prefix to versionFromTags
Rubilmax Oct 18, 2024
130a827
fix(publish): add debug
Rubilmax Oct 18, 2024
9761ba2
fix(publish): improve debug
Rubilmax Oct 18, 2024
d5f7955
ci(publish): test with @morpho-org/test
Rubilmax Oct 18, 2024
d035c13
ci(publish): improve release
Rubilmax Oct 18, 2024
bc359f8
ci(publish): release all
Rubilmax Oct 18, 2024
2a3ac25
ci(publish): improve release
Rubilmax Oct 18, 2024
a4ff73a
feat(test-viem): add anvil estimateGas tracing
Rubilmax Oct 18, 2024
403e7aa
ci(publish): split script
Rubilmax Oct 18, 2024
6b0ce8f
ci(publish): fix imports
Rubilmax Oct 18, 2024
f0d403f
feat(liquidation-sdk-viem): start setting up test
0x666c6f Oct 18, 2024
0531679
Merge branch 'next' of https://github.com/morpho-org/sdks into feat/s…
0x666c6f Oct 18, 2024
a7c1272
ci(publish): update release template
Rubilmax Oct 18, 2024
b666f8e
feat(Time): add fromPeriod util
oumar-fall Oct 18, 2024
3af477e
Merge branch 'next' into feat/time-from-period
oumar-fall Oct 18, 2024
3ea9cf9
fix(Time): fix test name
oumar-fall Oct 18, 2024
97a1cfd
Merge branch 'next' into feat/time-from-period
oumar-fall Oct 18, 2024
4836247
ci(publish): update debug
Rubilmax Oct 18, 2024
c83c798
Merge branch 'next' into feat/time-from-period
oumar-fall Oct 18, 2024
12b36c3
ci(publish): update debug
Rubilmax Oct 18, 2024
e2b3c88
Merge branch 'next' into feat/time-from-period
oumar-fall Oct 18, 2024
8f9f313
ci(publish): use npm version
Rubilmax Oct 18, 2024
37c7bed
Merge branch 'next' into feat/time-from-period
oumar-fall Oct 18, 2024
7ed9388
ci(publish): divide & conquer
Rubilmax Oct 18, 2024
f8ac4af
ci(publish): add debug
Rubilmax Oct 18, 2024
cabc1a2
ci(publish): finally fix publish?
Rubilmax Oct 18, 2024
abe5231
ci(publish): update versioning
Rubilmax Oct 18, 2024
0a2c5cf
Merge branch 'next' of https://github.com/morpho-org/sdks into feat/s…
0x666c6f Oct 18, 2024
c8efa91
ci(publish): update versioning
Rubilmax Oct 18, 2024
7b88e31
feat(liquidation-sdk-viem): push updated test
0x666c6f Oct 18, 2024
af17f57
ci(publish): mom i did it
Rubilmax Oct 18, 2024
9a347cc
Merge branch 'next' of github.com:morpho-org/sdks into feat/time-from…
Rubilmax Oct 18, 2024
c1de6b5
Merge pull request #133 from morpho-org/feat/time-from-period
Rubilmax Oct 18, 2024
8040b05
fix(morpho-ts): test update version
Rubilmax Oct 18, 2024
aa4004c
ci(publish): tag on correct branch
Rubilmax Oct 18, 2024
0e14640
fix(publish): remove logs
Rubilmax Oct 18, 2024
b77cfd2
style(package): bump version
Rubilmax Oct 18, 2024
dadc64e
style(package): bump version
Rubilmax Oct 18, 2024
dabf506
refactor(market-config)!: rename to MarketParams
Rubilmax Oct 18, 2024
9ac19db
ci(test): use updated foundry action
Rubilmax Oct 18, 2024
6185068
fix(test): update market params
Rubilmax Oct 18, 2024
16259f8
Merge pull request #134 from morpho-org/refactor/market-config
Rubilmax Oct 21, 2024
7d137fb
refactor(market): make market price possibly undefined
Rubilmax Oct 21, 2024
c048141
build(deps): bump dev dependencies
Rubilmax Oct 21, 2024
f63912a
Merge branch 'next' of github.com:morpho-org/sdks into refactor/marke…
Rubilmax Oct 21, 2024
16aa56d
refactor(simulation): adapt errors
Rubilmax Oct 21, 2024
8ccfa22
test(blue-sdk): fix market params types
Rubilmax Oct 21, 2024
6fe0925
Merge branch 'next' into refactor/market-price
Rubilmax Oct 21, 2024
b468055
fix(liquidation): update example typings
Rubilmax Oct 21, 2024
0f285ed
refactor(token): merge price into Token
Rubilmax Oct 21, 2024
fa72cfa
test(blue-sdk): no need for asArg
Rubilmax Oct 21, 2024
a3713dc
fix(blue-sdk): do not default price to zero via deployless
Rubilmax Oct 21, 2024
d5fcc16
test(blue-sdk): no need for asArg
Rubilmax Oct 21, 2024
8502e8c
test(blue-sdk): remove asArg
Rubilmax Oct 21, 2024
29cdf29
Merge branch 'next' of github.com:morpho-org/sdks into refactor/marke…
Rubilmax Oct 21, 2024
a98c96b
Merge branch 'refactor/market-price' of github.com:morpho-org/sdks in…
Rubilmax Oct 21, 2024
3a2a980
test(blue-sdk): add invalid Token test
Rubilmax Oct 21, 2024
4a21aad
test(blue-sdk-ethers): add invalid oracle Market test
Rubilmax Oct 21, 2024
0107f6e
Merge branch 'refactor/market-price' of github.com:morpho-org/sdks in…
Rubilmax Oct 21, 2024
93cee0d
docs(README): add img
Rubilmax Oct 21, 2024
e0cc8ee
fix(blue-sdk): make domain name possibly undefined
Rubilmax Oct 21, 2024
2f75bd7
docs(blue-sdk): quote undefined
Rubilmax Oct 21, 2024
55026f3
Merge branch 'next' into refactor/market-price
Rubilmax Oct 21, 2024
962e513
Merge pull request #135 from morpho-org/refactor/market-price
Rubilmax Oct 21, 2024
7244791
Merge branch 'next' into refactor/token
Rubilmax Oct 21, 2024
f36182f
build(deps): bump dev dependencies
Rubilmax Oct 22, 2024
04f5acf
build(blue-sdk): replace keccak256 with noble hashes
Rubilmax Oct 22, 2024
b502adf
ci(blue-sdk): fix gh release comd
Rubilmax Oct 22, 2024
71f1cfd
build: update secp256k1
Rubilmax Oct 22, 2024
30fa804
Merge pull request #142 from morpho-org/refactor/keccak256-noble
Rubilmax Oct 22, 2024
fa12005
Merge pull request #136 from morpho-org/refactor/token
Rubilmax Oct 22, 2024
f021fd4
test(viem): add viem-tracer
Rubilmax Oct 22, 2024
39a2c08
Merge branch 'next' of github.com:morpho-org/sdks into next
Rubilmax Oct 22, 2024
fd24898
feat(blue-api-sdk): add graphql error codes
oumar-fall Oct 23, 2024
f2d42b1
feat(blue-api-sdk): add internal server error code
oumar-fall Oct 23, 2024
bdb087c
feat(blue-api-sdk): rename errors file
oumar-fall Oct 23, 2024
7c03c59
feat(blue-api-sdk): export error codes from index
oumar-fall Oct 23, 2024
ceedea5
fix(liquidation-sdk-viem): start fixing test setup
0x666c6f Oct 24, 2024
003aa8f
fix(liquidation-sdk-viem): fix test
0x666c6f Oct 24, 2024
65bed1a
Merge branch 'next' of https://github.com/morpho-org/sdks into feat/s…
0x666c6f Oct 24, 2024
f46dede
fix(liquidation-sdk-viem): fix test after merge
0x666c6f Oct 24, 2024
1316684
fix(liquidation-sdk-viem): fix imports
0x666c6f Oct 24, 2024
6bd252b
chore(liquidation-sdk-viem): clean 1inch and paraswap mocks
0x666c6f Oct 24, 2024
ac12b8b
fix(liquidation-sdk-viem): fix test setup
0x666c6f Oct 24, 2024
b3bcad5
fix(liquidation-sdk-viem): fix test setup
0x666c6f Oct 24, 2024
3fa1e04
test(blue-sdk): bump viem-tracer
Rubilmax Oct 24, 2024
5edcec0
test(blue-sdk): bump anvil
Rubilmax Oct 24, 2024
67fbc6b
Merge branch 'next' of https://github.com/morpho-org/sdks into feat/r…
0x666c6f Oct 24, 2024
e823380
docs(format): fix readme
oumar-fall Oct 24, 2024
6696d5a
build(test): bump viem-tracer
Rubilmax Oct 24, 2024
a76b052
feat(format): allow to crate formatters with default options
oumar-fall Oct 24, 2024
869f72e
fix(liquidation-sdk-viem): fix test values
0x666c6f Oct 24, 2024
2a474b8
docs(format): update readme
oumar-fall Oct 24, 2024
0cb3217
test(anvil): fix block mining interval
Rubilmax Oct 24, 2024
163b99e
fix(errors): add bad input
Rubilmax Oct 24, 2024
05bd401
Merge branch 'next' into feat/add-graphql-errors-codes
Rubilmax Oct 24, 2024
8c1d15c
Merge pull request #143 from morpho-org/feat/add-graphql-errors-codes
Rubilmax Oct 24, 2024
3f70d84
Merge branch 'next' of github.com:morpho-org/sdks into feat/sky-addit…
Rubilmax Oct 24, 2024
83c28e1
Merge branch 'next' into fix/format-default-locale
Rubilmax Oct 24, 2024
fd2817d
docs(format): fix readme
oumar-fall Oct 25, 2024
058d865
Merge pull request #145 from morpho-org/fix/format-default-locale
Rubilmax Oct 25, 2024
6e8581d
fix(liquidation-sdk-viem): apply review feedbacks
0x666c6f Oct 25, 2024
bbe7595
Merge branch 'feat/sky-additional-liquidity' of https://github.com/mo…
0x666c6f Oct 25, 2024
421a9ee
Merge branch 'next' into feat/sky-additional-liquidity
0x666c6f Oct 25, 2024
8924abd
refactor(liquidation-encoder): add handle sky swap
Rubilmax Oct 25, 2024
2ab36fb
Merge pull request #146 from morpho-org/refactor/encoder
Rubilmax Oct 25, 2024
28f4b4a
Update packages/liquidation-sdk-viem/test/examples/whitelisted-erc462…
0x666c6f Oct 25, 2024
0848b4f
Update packages/liquidation-sdk-viem/examples/whitelisted-erc4626-1in…
0x666c6f Oct 25, 2024
be9e8f7
chore(liquidation-sdk-viem): remove unused var
0x666c6f Oct 25, 2024
c4c4a7e
chore(lint): add address checksum check
Rubilmax Oct 25, 2024
710d255
feat(playwright): add test sdk
Rubilmax Oct 25, 2024
3d90a86
test(viem): fix imports
Rubilmax Oct 25, 2024
dba05ee
refactor(test): simplify test packages
Rubilmax Oct 25, 2024
4085658
fix(test): make test packages cjs as possible
Rubilmax Oct 25, 2024
2c546d5
build(lock): bump lockfile
Rubilmax Oct 25, 2024
2f67c21
refactor(test): merge test packages
Rubilmax Oct 25, 2024
82a1ead
fix(package): convert to commonjs
Rubilmax Oct 25, 2024
3ded418
fix(test): remove global augmentation
Rubilmax Oct 25, 2024
0faf01a
fix(liquidation-sdk-viem): rollback to bigger tolerance
0x666c6f Oct 28, 2024
e1c7b4e
Merge branch 'next' of https://github.com/morpho-org/sdks into feat/s…
0x666c6f Oct 28, 2024
3a6e766
test(type): remove global augmentation
Rubilmax Oct 29, 2024
be3ed9f
Merge pull request #144 from morpho-org/feat/sky-additional-liquidity
0x666c6f Nov 4, 2024
4150b29
build(package): bump dependencies
Rubilmax Nov 4, 2024
d4b3c83
feat(formatters): allow custom formatters creation
oumar-fall Nov 4, 2024
1d7fb05
fix(formatters): fix formatters conflicts
oumar-fall Nov 4, 2024
1c352ad
docs(formatters): update readme
oumar-fall Nov 4, 2024
43817c8
Merge pull request #152 from morpho-org/fix/formatters
oumar-fall Nov 4, 2024
383742a
docs(morpho-ts): fix readme
oumar-fall Nov 4, 2024
76c4343
Merge pull request #153 from morpho-org/fix/readme
oumar-fall Nov 4, 2024
39b3c6e
feat(bundler): add ethers package
Rubilmax Nov 5, 2024
e2cb9dc
Merge branch 'next' of github.com:morpho-org/sdks into next
Rubilmax Nov 5, 2024
c55a22a
build(package): bump dependencies
Rubilmax Nov 5, 2024
7b21bfd
build(package): bump happy-dom
Rubilmax Nov 5, 2024
7d1a1d9
fix(package): move dev dependency
Rubilmax Nov 5, 2024
818e7ad
refactor(package): remove type module when unnecessary
Rubilmax Nov 8, 2024
2b89a49
fix(release): handle undefined package
Rubilmax Nov 8, 2024
dac84e5
test(wagmi): fix types and timeout
Rubilmax Nov 8, 2024
cde0043
chore(package): bump dependencies
Rubilmax Nov 12, 2024
35bee3b
fix(package): downgrade fetch-mock
Rubilmax Nov 12, 2024
a5a8014
feat(simulation-state): allow simulating with unlimited balances
oumar-fall Nov 14, 2024
0486bf0
feat(planet): save the planet
oumar-fall Nov 14, 2024
5d0e889
Merge pull request #164 from morpho-org/feat/simulate-unlimited-balances
oumar-fall Nov 14, 2024
0eb4783
feat(simulation-state): clean up unlimited balance result
oumar-fall Nov 14, 2024
0de4fe3
Merge branch 'next' into feat/simulate-unlimited-balances
oumar-fall Nov 14, 2024
0db203c
Merge pull request #165 from morpho-org/feat/simulate-unlimited-balances
oumar-fall Nov 14, 2024
91e2fa9
refactor(simulation-state): extract simulateRequiredTokenAmounts
Rubilmax Nov 15, 2024
72d2da0
Merge pull request #166 from morpho-org/refactor/simulate-required-to…
Rubilmax Nov 15, 2024
24e516a
refactor(Vault)!: rename avgApy to apy
Rubilmax Nov 18, 2024
78af62c
fix(liquidation-bot): disable pendle calls on base
0x666c6f Nov 18, 2024
2fa0c5d
Update packages/liquidation-sdk-viem/examples/whitelisted-erc4626-1in…
0x666c6f Nov 18, 2024
6213254
Merge branch 'next' into fix/remove-pendle-on-base
0x666c6f Nov 18, 2024
48a0939
Merge pull request #168 from morpho-org/fix/remove-pendle-on-base
Rubilmax Nov 18, 2024
b969e69
build(deps): bump dependencies
Rubilmax Nov 19, 2024
d38250e
Merge branch 'next' of github.com:morpho-org/sdks into refactor/vault…
Rubilmax Nov 19, 2024
24f7309
docs(Vault): clarify apy defs
Rubilmax Nov 19, 2024
fd86c39
build(deps): bump @wagmi/core
Rubilmax Nov 19, 2024
f6c47a2
Merge branch 'next' of github.com:morpho-org/sdks into refactor/vault…
Rubilmax Nov 19, 2024
2d99927
fix(paraswap): update types
Rubilmax Nov 19, 2024
149a7ba
Merge branch 'next' of github.com:morpho-org/sdks into refactor/vault…
Rubilmax Nov 19, 2024
9369b6b
Merge pull request #167 from morpho-org/refactor/vault-apy
Rubilmax Nov 19, 2024
9c78daa
docs(README): add apy fetch example
Rubilmax Nov 19, 2024
776b49f
fix(bundler)!: disable public allocator by default
Rubilmax Nov 20, 2024
73d52ec
feat(format): allow undefined options
oumar-fall Nov 20, 2024
c7c2e98
Merge branch 'next' into feat/improve-format-devexp
oumar-fall Nov 20, 2024
613e244
feat(format): add tests and doc
oumar-fall Nov 20, 2024
6cefa84
feat: handle bad debt
Jean-Grimal Nov 20, 2024
ca58255
test(format): add missing test
oumar-fall Nov 20, 2024
8a2110f
fix: collateral amount
Jean-Grimal Nov 20, 2024
146e610
docs(format): add jsdoc
oumar-fall Nov 20, 2024
444fc3c
fix: bad debt check
Jean-Grimal Nov 20, 2024
1373734
Update packages/liquidation-sdk-viem/examples/whitelisted-erc4626-1in…
Jean-Grimal Nov 20, 2024
c32fdac
Merge pull request #174 from morpho-org/feat/improve-format-devexp
oumar-fall Nov 20, 2024
9dddb4b
test: unprofitable bad debt realisation
Jean-Grimal Nov 21, 2024
a3630f1
fix: stop accruing fees
Jean-Grimal Nov 21, 2024
0dfc46c
test: remove useless acruals
Jean-Grimal Nov 25, 2024
1e42bba
build(package): bump dependencies
Rubilmax Nov 26, 2024
47f786f
Merge branch 'next' of github.com:morpho-org/sdks into next
Rubilmax Nov 26, 2024
cafcc06
fix: tests
Jean-Grimal Nov 26, 2024
3d4a940
Merge branch 'next' into feature/integ-274-handle-bad-debt-events
Jean-Grimal Nov 26, 2024
f647328
fix: revert sync timestamp changes
Jean-Grimal Nov 27, 2024
5cfda83
fix(blue-api-sdk): fix market apys computation
oumar-fall Nov 29, 2024
b930a74
Merge pull request #182 from morpho-org/fix/apy-computation
julien-devatom Nov 29, 2024
9f272df
Merge pull request #175 from morpho-org/feature/integ-274-handle-bad-…
Rubilmax Dec 2, 2024
e3429ae
feat(vault-config): force decimals 18
Rubilmax Dec 2, 2024
a05ff33
Merge branch 'next' of github.com:morpho-org/sdks into next
Rubilmax Dec 2, 2024
0d1b086
Merge branch 'main' of github.com:morpho-org/sdks into next
Rubilmax Dec 2, 2024
01647de
fix(converter): remove decimals input
Rubilmax Dec 2, 2024
23ee38a
fix(ethers-viem): remove decimals input
Rubilmax Dec 2, 2024
c5d534a
build(deps): bump dev dependencies
Rubilmax Dec 3, 2024
6d2bc14
Merge branch 'main' of github.com:morpho-org/sdks into next
Rubilmax Dec 3, 2024
8f4de79
Merge branch 'main' of github.com:morpho-org/sdks into next
Rubilmax Dec 3, 2024
cb8bb02
fix(blue-api-sdk): update type policies
Rubilmax Dec 3, 2024
ed16254
fix(blue-api-sdk): update type policies
Rubilmax Dec 4, 2024
0102306
Merge pull request #191 from morpho-org/fix/type-policy
Rubilmax Dec 4, 2024
14145e9
feat(_try): adapt function to promises
oumar-fall Dec 5, 2024
b2c763f
Merge pull request #192 from morpho-org/fix/try-async
oumar-fall Dec 5, 2024
7e6f383
feat(test): add bigint approx equal
Rubilmax Dec 5, 2024
cd07c4e
Merge branch 'main' of github.com:morpho-org/sdks into next
Rubilmax Dec 5, 2024
d389691
fix(shared-liquidity): simulate maxIn
Rubilmax Dec 6, 2024
27dbd9f
Revert "fix(shared-liquidity): simulate maxIn"
Rubilmax Dec 6, 2024
dc6a145
docs(examples): add examples package
Rubilmax Dec 9, 2024
3b8f7f6
fix(examples): make it build
Rubilmax Dec 9, 2024
0cc5919
feat(liquidity-sdk): first release
Rubilmax Dec 9, 2024
3153240
fix(liquidity-sdk): fetch from rpc or api
Rubilmax Dec 9, 2024
d85b427
test(liquidity-sdk): rename mocks
Rubilmax Dec 9, 2024
7d9433a
fix(liquidity-sdk): remove block parameters
Rubilmax Dec 10, 2024
d3230a0
feat(liquidity-sdk): add ethers
Rubilmax Dec 10, 2024
aa2b5e6
docs(liquidity-sdk): add ethers provider
Rubilmax Dec 10, 2024
122101e
build(package): bump dependencies
Rubilmax Dec 10, 2024
d9a9457
test(simulation): fix tests
Rubilmax Dec 10, 2024
a361c84
build(simulation-sdk): move mutative as dependency
Rubilmax Dec 10, 2024
417f840
feat(blue-sdk-viem): add MetaMorphoAction
Rubilmax Dec 10, 2024
def7ba6
docs(README): group by client api
Rubilmax Dec 10, 2024
f2edae9
fix(liquidity-sdk): filter isDefined
Rubilmax Dec 10, 2024
77c0e16
fix(simulation-sdk): dont simulate delay in srcPosition
Rubilmax Dec 10, 2024
e47bfc3
feat(morpho-test): add gDAI
Rubilmax Dec 10, 2024
6e947cd
test(liquidity-sdk): update tests
Rubilmax Dec 10, 2024
6344372
fix(test): update client type
Rubilmax Dec 10, 2024
0b95d96
refactor(liquidity-sdk): only fetch from rpc
Rubilmax Dec 10, 2024
57d4797
refactor(liquidation-sdk-viem): export market position fragment
crisog Dec 10, 2024
d8063c4
docs(rates): improve docs
Rubilmax Dec 11, 2024
47cfa4f
build(package): bump viem-tracer
Rubilmax Dec 11, 2024
b003d56
Merge branch 'next' into export-market-position
Rubilmax Dec 11, 2024
d9f0faa
Merge pull request #199 from crisog/export-market-position
Rubilmax Dec 11, 2024
8df8846
fix(package): include gql files in biome check
Rubilmax Dec 11, 2024
d3736c0
fix(bundler-sdk): update dai name
Rubilmax Dec 11, 2024
7892cc1
fix(liquidity-sdk): always fetch all entities at same block
Rubilmax Dec 11, 2024
7c2c3a3
ci(release): add job summary
Rubilmax Dec 11, 2024
8698a6a
refactor(imports): remove .js extensions
Rubilmax Dec 11, 2024
cc82f8a
fix(asset-balances): add 0 balances
Rubilmax Dec 12, 2024
72dbb8d
feat(blue-api-sdk): add asset tags enum
oumar-fall Dec 13, 2024
1491b92
Merge pull request #201 from morpho-org/feat/api-tags-in-enum
oumar-fall Dec 13, 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
  •  
  •  
  •  
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build

on:
workflow_call:

jobs:
build:
strategy:
fail-fast: false
matrix:
package:
- test
- test-wagmi

- morpho-ts
- morpho-test

- blue-api-sdk
- blue-sdk
- blue-sdk-ethers
- blue-sdk-viem
- blue-sdk-wagmi

- simulation-sdk
- simulation-sdk-wagmi

- bundler-sdk-ethers
- bundler-sdk-viem

- liquidation-sdk-viem
- liquidity-sdk-ethers
- liquidity-sdk-viem

name: "@morpho-org/${{ matrix.package }}"
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 --filter @morpho-org/${{ matrix.package }} 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.

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

on:
workflow_call:
secrets:
NPM_TOKEN:
required: true

jobs:
publish:
strategy:
fail-fast: false
matrix:
package:
- test
- test-wagmi

- morpho-ts
- morpho-test

- blue-api-sdk
- blue-sdk
- blue-sdk-ethers
- blue-sdk-viem
- blue-sdk-wagmi

- simulation-sdk
- simulation-sdk-wagmi

- bundler-sdk-ethers
- bundler-sdk-viem

- liquidation-sdk-viem
- liquidity-sdk-ethers
- liquidity-sdk-viem

name: "@morpho-org/${{ matrix.package }}"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
# Fetch all history so that we can determine the version to release.
fetch-depth: 0

- uses: pnpm/action-setup@v4

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

- run: pnpm install

- id: release
run: node ../../scripts/release/release.js
working-directory: packages/${{ matrix.package }}

# Set version of each package to the most recent so they are referenced correctly in dependencies.
- run: |
pnpm -r -c exec 'node ../../scripts/release/version.js'
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
echo "${{ steps.release.outputs.changelog }}" > CHANGELOG.md
if: steps.release.outputs.version

- run: pnpm publish --no-git-checks --access public --tag ${{ steps.release.outputs.channel }}
working-directory: packages/${{ matrix.package }}
if: steps.release.outputs.version

- run: gh release create ${{ steps.release.outputs.tag }} --target ${{ steps.release.outputs.branch }} --notes-file CHANGELOG.md --title '${{ steps.release.outputs.tag }}' ${{ steps.release.outputs.channel == 'latest' && '--latest' || '--prerelease' }}
if: steps.release.outputs.version
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: echo "- [RELEASE] ${{ steps.release.outputs.version }}" >> $GITHUB_STEP_SUMMARY
if: steps.release.outputs.version

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

on:
push:
branches:
- '**'
tags-ignore:
- '**'

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:
if: github.ref_name == 'main' || github.ref_name == 'next'

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/[email protected]

- 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
Loading
Loading