Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .github/dependabot.yml

This file was deleted.

10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Comment thread
grayfoxd marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
# Use the latest patches of the supported LTS release lines.
node-version: [22.x, 24.x]

steps:
- name: Checkout repository
Expand All @@ -22,6 +23,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
cache: 'npm'

- name: Install dependencies
Expand All @@ -43,11 +45,15 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
node-version: '24.x'
check-latest: true
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: TypeScript type check
run: npx tsc --noEmit

- name: Lint
run: npm run lint
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)
![Network](https://img.shields.io/badge/Network-TRON-red)
![Node.js](https://img.shields.io/badge/Node.js-20%2B-339933)
![Node.js](https://img.shields.io/badge/Node.js-22%20%7C%2024%20LTS-339933)
![TypeScript](https://img.shields.io/badge/TypeScript-5.x-3178C6)

> A CLI for AI-driven and human-operated DeFi workflows on TRON via the **SUN.IO / SUNSWAP** ecosystem.
Expand Down Expand Up @@ -57,7 +57,7 @@
npm install -g @sun-protocol/sun-cli
```

Requires Node.js **20+**.
Requires Node.js **22.23.4+ (22.x)** or **24.22.1+ (24.x)**. Use the latest patch release of either supported LTS line.

---

Expand Down Expand Up @@ -317,12 +317,17 @@ sun liquidity v3:collect --token-id 123
```bash
sun liquidity v4:mint --token0 TRX --token1 USDT --amount0 1000000
sun liquidity v4:mint --token0 TRX --token1 USDT --amount0 1000000 --create-pool
sun liquidity v4:increase --token-id 123 --token0 TRX --token1 USDT --amount0 500000
sun liquidity v4:decrease --token-id 123 --liquidity 1000 --token0 TRX --token1 USDT
sun liquidity v4:increase --token-id 123 --amount0 500000
sun liquidity v4:decrease --token-id 123 --liquidity 1000
sun liquidity v4:collect --token-id 123
sun liquidity v4:info --pm <positionManager> --token-id 123
```

For existing V4 positions, the CLI loads the authoritative pool currencies and fee from
`--token-id`. Optional `--token0/--token1` (supplied together) and `--fee` values are treated as
assertions. If the supplied token order is reversed, the CLI maps amount and minimum fields to the
position's on-chain currency order before execution.

### Protocol & History

**Protocol-wide analytics:**
Expand Down
Loading
Loading