@gangfun/cli 0.10.1 → 0.12.0

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/src/gangpad.js CHANGED
@@ -57,16 +57,6 @@ export function padNets(kind) {
57
57
  }
58
58
  }
59
59
 
60
- const NOTE_FLAGS = ['note', 'follow', 'conf', 'reveal-after']
61
- /**
62
- * The refusal for the first note / follow flag given (`flag` = the CLI's flag reader), or null when none: gang.fun only
63
- * matches notes to V2 / Soft txs, so `gang v3` / `gang fair` take none. `where` names the command, `tx` the kind of tx.
64
- */
65
- export function noteFlagError(flag, where, tx) {
66
- const f = NOTE_FLAGS.find((x) => flag(x))
67
- return f && `--${f}: notes and follows (--note / --conf / --reveal-after / --follow) are not supported on ${where} yet: the server cannot match them to ${tx}; leave them out`
68
- }
69
-
70
60
  export const NOT_ON_MAINNET = 'no gang launchpad address for this network — set GANG_PAD (and GANG_ROUTER for BNB buys / mints and pool trades), or add --testnet to use the BSC testnet deployment'
71
61
 
72
62
  /**
@@ -79,7 +69,7 @@ export const MERGED_ERRORS_ABI = parseAbi([
79
69
  ])
80
70
  export const MERGED_HINTS = {
81
71
  Untaxed: 'this token is untaxed (0% / 0%): it never gets a pool tax, a tax route or dividends; nothing to release or claim on it',
82
- NotReclaimable: 'only a 打新 (fair-mint) token can be sold back to the pad; a V3 token is sold on its curve (gang v3 sell)',
72
+ NotReclaimable: 'only a 打新 (fair-mint) token can be sold back to the pad; a V3 token is sold on its curve (gang sell)',
83
73
  NotLocked: 'the sale already launched (the token is unlocked): sell-back is over, trade the token on PancakeSwap',
84
74
  WrongKind: 'this token is the other kind on the merged pad: V3 tokens use `gang v3 …`, 打新 tokens use `gang fair …`',
85
75
  BadKind: 'the tax handler refused the token kind (a pad / handler wiring problem): report it to gang',
@@ -109,10 +99,10 @@ export async function notThisKind(ctx, token, want, net = '') {
109
99
  const kind = await kindOf(ctx, token)
110
100
  const ask = want === 'v3' ? 'a LaunchpadV3 (tax) token' : 'a 打新 (fair-mint) sale'
111
101
  if (kind === 'fair' && want === 'v3') {
112
- return { error: `this is a 打新 (fair-mint) token, not a V3 token: use gang fair (e.g. gang fair info --token ${token}${net})`, kind }
102
+ return { error: `this is a 打新 (fair-mint) token, not a V3 token: gang info / buy / sell / mint / withdraw --token ${token}${net} pick the right pad code`, kind }
113
103
  }
114
104
  if (kind === 'v3' && want === 'fair') {
115
- return { error: `this is a V3 (bonding-curve) token, not a 打新 sale: use gang v3 (e.g. gang v3 info --token ${token}${net})`, kind }
105
+ return { error: `this is a V3 (bonding-curve) token, not a 打新 sale: gang info / buy / sell --token ${token}${net} pick the right pad code`, kind }
116
106
  }
117
107
  return { error: `not ${ask} on this pad`, kind }
118
108
  }