@gangfun/cli 0.16.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/package.json +1 -1
- package/src/bond.js +3 -2
- package/src/index.js +3 -3
package/README.md
CHANGED
|
@@ -227,4 +227,4 @@ gang agents --window 30d --sort follow
|
|
|
227
227
|
|
|
228
228
|
## Version
|
|
229
229
|
|
|
230
|
-
`0.16.
|
|
230
|
+
`0.16.1` · repo [gangfun/cli](https://github.com/gangfun/cli) · published to [npm](https://www.npmjs.com/package/@gangfun/cli) on push to `main`
|
package/README.zh-CN.md
CHANGED
|
@@ -200,4 +200,4 @@ gang agents --window 30d --sort follow
|
|
|
200
200
|
|
|
201
201
|
## 版本
|
|
202
202
|
|
|
203
|
-
`0.16.
|
|
203
|
+
`0.16.1` · [gangfun/cli](https://github.com/gangfun/cli) · push 到 `main` 自动发布到 [npm](https://www.npmjs.com/package/@gangfun/cli)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gangfun/cli",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "Gang launchpad CLI for Binance Agentic Wallet agents: create on GangLaunchpad (untaxed or tax tokens), 打新 fair mint, PancakeSwap pool trades, LaunchpadV2 and legacy Soft/U/S trade.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/bond.js
CHANGED
|
@@ -156,9 +156,10 @@ const tokens = (x) => formatUnits(x, 18)
|
|
|
156
156
|
const same = (a, b) => String(a).toLowerCase() === String(b).toLowerCase()
|
|
157
157
|
const ceilDiv = (a, b) => (a + b - 1n) / b
|
|
158
158
|
|
|
159
|
-
/**
|
|
159
|
+
/** Coverage tier (bps): ≥ 100% full cover, 50–100% bond, below 50% none. gang.fun colours a tier only for an
|
|
160
|
+
* allow-listed quote and an X of at least half the creator's balance; every other active bond gets a gray badge. */
|
|
160
161
|
const tierOf = (bps) => (bps >= BPS ? 'full' : bps >= 5_000n ? 'bond' : 'none')
|
|
161
|
-
const TIER_NOTE = { full: '押金全覆盖: dumping X now loses money (bond ≥ what the sale fetches)', bond: '押金: bond covers 50–100% of what dumping X fetches', none: 'below 50% coverage:
|
|
162
|
+
const TIER_NOTE = { full: '押金全覆盖: dumping X now loses money (bond ≥ what the sale fetches)', bond: '押金: bond covers 50–100% of what dumping X fetches', none: 'below 50% coverage: a plain gray 押金 badge on gang.fun (bond and coverage still shown)' }
|
|
162
163
|
|
|
163
164
|
async function nowOf(ctx) {
|
|
164
165
|
return Number((await ctx.client.getBlock()).timestamp)
|
package/src/index.js
CHANGED
|
@@ -295,7 +295,7 @@ graduated tokens only).
|
|
|
295
295
|
chain (a token this wallet created with this symbol since the plan); a run that finds
|
|
296
296
|
none never creates again by itself (the first may still be landing): --restart does.
|
|
297
297
|
Done stays done: running it again only reports. --note goes on the create only;
|
|
298
|
-
--bond needs GangBond on the network (
|
|
298
|
+
--bond needs GangBond on the network (mainnet and testnet), checked before the create
|
|
299
299
|
NOTES: gang create / buy / sell, and gang mint / withdraw on a 打新 sale, take [--note "<why>" [--conf 0-100]
|
|
300
300
|
[--reveal-after 1-72h]] (a create's note is its launch manifesto); gang buy also
|
|
301
301
|
--follow <note tx>. Mainnet only; pool trades (graduated / launched) carry no note
|
|
@@ -331,8 +331,8 @@ BOND (押金承诺, GangBond; any GangLaunchpad token, from create on; GANG_BOND
|
|
|
331
331
|
creator only: the bond only grows, X only rises, the commitment only gets longer (90
|
|
332
332
|
days in all before the pair; a deadline ≤ 90 days from now after it)
|
|
333
333
|
gang bond status --token <addr> state, phase (pending: waiting for the pair / running), X and the creator's balance /
|
|
334
|
-
headroom, coverage + tier once on the pair (≥100% full cover, 50–100% bond, <50%
|
|
335
|
-
badge), toFullCover, time left, buy-back progress, the creator's record
|
|
334
|
+
headroom, coverage + tier once on the pair (≥100% full cover, 50–100% bond, <50% plain
|
|
335
|
+
gray badge), toFullCover, time left, buy-back progress, the creator's record
|
|
336
336
|
gang bond start --token <addr> anyone, once the token graduated / launched: start the clock (deadline = now + days)
|
|
337
337
|
gang bond report --token <addr> anyone, when the creator holds less than X: 1% of the bond to you, the rest buys
|
|
338
338
|
back and burns the token (simulated first; nothing is sent when not violated)
|