Skip to content

Commit b2175c2

Browse files
committed
Initial public release of Moolah Lending SDK, including core types, calculations, and transaction step builders for supply, borrow, repay, and vault operations on BNB Chain and Ethereum. Added CI/CD workflows for testing and publishing, along with comprehensive documentation.
1 parent d1c042f commit b2175c2

84 files changed

Lines changed: 13544 additions & 90 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@lista-dao/moolah-sdk-core": major
3+
"@lista-dao/moolah-lending-sdk": major
4+
---
5+
6+
Initial public release of Moolah Lending SDK. Core package provides types, calculations, contract ABIs, and API client; lending-sdk provides transaction step builders for supply, borrow, repay, vault, and smart market operations on BNB Chain and Ethereum. Publish will be handled by CI.

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: pnpm/action-setup@v4
16+
with:
17+
version: 10
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: pnpm
23+
24+
- run: pnpm install --frozen-lockfile
25+
- run: pnpm build
26+
- run: pnpm test
27+
- run: pnpm lint

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: pnpm/action-setup@v4
20+
with:
21+
version: 10
22+
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 20
26+
cache: pnpm
27+
registry-url: https://registry.npmjs.org
28+
29+
- run: pnpm install --frozen-lockfile
30+
- run: pnpm build
31+
- run: pnpm test
32+
33+
- name: Create Release PR or Publish
34+
uses: changesets/action@v1
35+
with:
36+
version: pnpm changeset version
37+
publish: pnpm changeset publish
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
node_modules/
22
dist/
3+
coverage/
34
*.log
45
.DS_Store
56
.env
67
.env.local
78
.npmrc
9+
tsconfig.tsbuildinfo

0 commit comments

Comments
 (0)