@gangfun/cli 0.16.0 → 0.16.2
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 +7 -5
- 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.2` · 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.2` · [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.2",
|
|
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
|
@@ -18,9 +18,10 @@ import { bawAddress } from './baw.js'
|
|
|
18
18
|
// script/DeployGangBond.s.sol. Testnet: 2026-10-29, block 139463214, over the set-10 pad — the audited version (two-step
|
|
19
19
|
// settle, one buy-back chunk per 4 minutes; earlier testnet versions: 0x587f…5d7E after the pair only, 0x5a99…d716
|
|
20
20
|
// without the refund notice, 0xB034…EBE3 before the audit; docs/TESTNET-GANG-BOND-2026-10-28.md). Mainnet: 2026-10-29,
|
|
21
|
-
// block
|
|
22
|
-
//
|
|
23
|
-
|
|
21
|
+
// block 130407146, over the live pad 0x15CF…4365, with the re-review L-1 fix (a buy-back chunk is priced on what the
|
|
22
|
+
// pair received); it replaces 0xf26F…C817 (block 130335965, never used; CLI 0.15.1–0.16.1)
|
|
23
|
+
// (docs/MAINNET-GANG-BOND-2026-10-29.md). GANG_BOND / GANG_TESTNET_BOND override either
|
|
24
|
+
export const MAINNET_BOND = '0xe92dC940CB23Dc328639A7334e69F9CCdf3a14E4'
|
|
24
25
|
export const TESTNET_BOND = '0xd6a8dd5d1E6641a34A255f25Db2B3ED397CB1086'
|
|
25
26
|
|
|
26
27
|
export const BOND_ABI = parseAbi([
|
|
@@ -156,9 +157,10 @@ const tokens = (x) => formatUnits(x, 18)
|
|
|
156
157
|
const same = (a, b) => String(a).toLowerCase() === String(b).toLowerCase()
|
|
157
158
|
const ceilDiv = (a, b) => (a + b - 1n) / b
|
|
158
159
|
|
|
159
|
-
/**
|
|
160
|
+
/** Coverage tier (bps): ≥ 100% full cover, 50–100% bond, below 50% none. gang.fun colours a tier only for an
|
|
161
|
+
* allow-listed quote and an X of at least half the creator's balance; every other active bond gets a gray badge. */
|
|
160
162
|
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:
|
|
163
|
+
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
164
|
|
|
163
165
|
async function nowOf(ctx) {
|
|
164
166
|
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)
|