@sun-protocol/wallet-cli-sunpump-plugin 0.0.0-stage → 0.1.0-next.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 sun-protocol
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,62 @@
1
- # Temporary Holding Version
1
+ # @sun-protocol/wallet-cli-sunpump-plugin
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ `sunpump` is a plugin for [wallet-cli](https://github.com/tronprotocol/wallet-cli). SunPump is a token launchpad on TRON: a new
4
+ token trades against a bonding curve contract until it launches to SunSwap, a decentralized exchange. The
5
+ plugin buys and sells tokens on the curve, launches new tokens, and looks tokens up.
6
+
7
+ It needs wallet-cli with plugin support ([Requirements](#requirements)) and a TRON network: TRON mainnet
8
+ with the built-in configuration, which a network's settings change. No credentials; the settings are in
9
+ [Credentials and settings](#credentials-and-settings).
10
+
11
+ ## Requirements
12
+
13
+ - wallet-cli with plugin support and a plugin SDK of version 1.1 or a later 1.x (this package declares
14
+ `sdkVersion` `^1.1.0`). Plugin support is on wallet-cli's `feat/plugin-architecture` branch and not
15
+ yet in a release.
16
+ - Node.js 22.23.4+, 24.22.1+ or 26.12.1+.
17
+
18
+ ## Install
19
+
20
+ wallet-cli installs a plugin only by its npm package name. This package is not on npm yet; until it is,
21
+ publish it to a private or local npm registry and set `pluginRegistry` to it, as the
22
+ [wallet-cli plugins guide](https://github.com/tronprotocol/wallet-cli/blob/develop/ts/docs/guide/plugins.md) describes.
23
+
24
+ ```bash
25
+ wallet-cli plugin install @sun-protocol/wallet-cli-sunpump-plugin
26
+ wallet-cli plugin list
27
+ ```
28
+
29
+ ## Commands
30
+
31
+ | Command | What it does |
32
+ |---|---|
33
+ | [`sunpump buy`](https://github.com/sun-protocol/wallet-cli-plugins/blob/main/packages/sunpump/docs/commands/buy.md) | Buy a token on the SunPump bonding curve |
34
+ | [`sunpump token-list`](https://github.com/sun-protocol/wallet-cli-plugins/blob/main/packages/sunpump/docs/commands/token-list.md) | List tokens on the SunPump launchpad |
35
+ | [`sunpump token-info`](https://github.com/sun-protocol/wallet-cli-plugins/blob/main/packages/sunpump/docs/commands/token-info.md) | Show full details of one SunPump token |
36
+ | [`sunpump token-search`](https://github.com/sun-protocol/wallet-cli-plugins/blob/main/packages/sunpump/docs/commands/token-search.md) | Search SunPump tokens by symbol or name |
37
+ | [`sunpump sell`](https://github.com/sun-protocol/wallet-cli-plugins/blob/main/packages/sunpump/docs/commands/sell.md) | Sell a token on the SunPump bonding curve |
38
+ | [`sunpump launch`](https://github.com/sun-protocol/wallet-cli-plugins/blob/main/packages/sunpump/docs/commands/launch.md) | Create a new token on the bonding curve |
39
+
40
+ `wallet-cli sunpump <command> --help` shows the options of each command. What the plugin adds to wallet-cli's
41
+ JSON output and error codes is in [machine-interface.md](https://github.com/sun-protocol/wallet-cli-plugins/blob/main/packages/sunpump/docs/machine-interface.md).
42
+
43
+ ## Credentials and settings
44
+
45
+ No credentials. The plugin reads the `sunpump` block of a network in wallet-cli's `config.yaml`, merged
46
+ over the builtin defaults field by field, so an explicit `false` turns a default off:
47
+
48
+ ```yaml
49
+ networks:
50
+ tron:
51
+ sunpump:
52
+ apiBaseUrl: https://example.test # http(s) URL; the SunPump API
53
+ curve: true # bonding-curve trades
54
+ ```
55
+
56
+ Mainnet has every service by default. An invalid `sunpump` block, or an invalid `sunswap` block (the
57
+ settings of the separate `sunswap` plugin), fails the commands with `invalid_value`.
58
+
59
+ ## License
60
+
61
+ [MIT](https://github.com/sun-protocol/wallet-cli-plugins/blob/main/LICENSE). The licences of the third-party packages bundled into `dist/index.mjs` are in
62
+ `dist/THIRD_PARTY_LICENSES.txt`.