@bankofai/wallet-cli-gasfree-plugin 0.0.0-stage → 0.1.0-next.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 BANK OF AI
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,54 @@
1
- # Temporary Holding Version
1
+ # @bankofai/wallet-cli-gasfree-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
+ `gasfree` is a plugin for [wallet-cli](https://github.com/tronprotocol/wallet-cli). GasFree is a service (open.gasfree.io) that
4
+ puts a signed TRC-20 transfer on chain for you and charges its fee in the transferred token, so no TRX is
5
+ needed. The plugin shows an account's GasFree address and fees, submits gas-free transfers, and tracks them.
6
+
7
+ It needs wallet-cli with plugin support ([Requirements](#requirements)), the `tron` or `nile` network, and
8
+ a GasFree API key and secret ([Credentials and settings](#credentials-and-settings)).
9
+
10
+ ## Requirements
11
+
12
+ - wallet-cli with plugin support and a plugin SDK of version 1.0 or a later 1.x (this package declares
13
+ `sdkVersion` `^1.0.0`). Plugin support is on wallet-cli's `feat/plugin-architecture` branch and not
14
+ yet in a release.
15
+ - Node.js 22.23.4+, 24.22.1+ or 26.12.1+.
16
+
17
+ ## Install
18
+
19
+ wallet-cli installs a plugin only by its npm package name. This package is not on npm yet; until it is,
20
+ publish it to a private or local npm registry and set `pluginRegistry` to it, as the
21
+ [wallet-cli plugins guide](https://github.com/tronprotocol/wallet-cli/blob/develop/ts/docs/guide/plugins.md) describes.
22
+
23
+ ```bash
24
+ wallet-cli plugin install @bankofai/wallet-cli-gasfree-plugin
25
+ wallet-cli plugin list
26
+ ```
27
+
28
+ ## Commands
29
+
30
+ | Command | What it does |
31
+ |---|---|
32
+ | [`gasfree info`](https://github.com/BofAI/wallet-cli-plugins/blob/main/packages/gasfree/docs/commands/info.md) | Show GasFree address, activation status, nonce, balances, and fees |
33
+ | [`gasfree transfer`](https://github.com/BofAI/wallet-cli-plugins/blob/main/packages/gasfree/docs/commands/transfer.md) | Sign and submit a TIP-712 GasFree token transfer |
34
+ | [`gasfree trace`](https://github.com/BofAI/wallet-cli-plugins/blob/main/packages/gasfree/docs/commands/trace.md) | Track a GasFree transfer by provider trace id |
35
+
36
+ `wallet-cli gasfree <command> --help` shows the options of each command. What the plugin adds to wallet-cli's
37
+ JSON output and error codes is in [machine-interface.md](https://github.com/BofAI/wallet-cli-plugins/blob/main/packages/gasfree/docs/machine-interface.md).
38
+
39
+ ## Credentials and settings
40
+
41
+ The GasFree API key and secret, set with wallet-cli's [`config`](https://github.com/tronprotocol/wallet-cli/blob/develop/ts/docs/commands/config.md) from stdin:
42
+
43
+ ```bash
44
+ printf '%s\n' "$KEY" | wallet-cli config gasfreeApiKey --api-key-stdin
45
+ printf '%s\n' "$SECRET" | wallet-cli config gasfreeApiSecret --api-key-stdin
46
+ ```
47
+
48
+ The GasFree service of a network comes from the `gasfree` block of that network in wallet-cli's
49
+ `config.yaml`; mainnet and Nile have builtin defaults, which a written block replaces whole.
50
+
51
+ ## License
52
+
53
+ [MIT](https://github.com/BofAI/wallet-cli-plugins/blob/main/LICENSE). The licences of the third-party packages bundled into `dist/index.mjs` are in
54
+ `dist/THIRD_PARTY_LICENSES.txt`.
@@ -0,0 +1,73 @@
1
+ Third-party packages bundled into index.mjs (3), with their licences.
2
+
3
+ ================================================================================
4
+ @noble/curves@2.4.0
5
+ License: MIT
6
+
7
+ --- LICENSE
8
+
9
+ The MIT License (MIT)
10
+
11
+ Copyright (c) 2022 Paul Miller (https://paulmillr.com)
12
+
13
+ Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ of this software and associated documentation files (the “Software”), to deal
15
+ in the Software without restriction, including without limitation the rights
16
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ copies of the Software, and to permit persons to whom the Software is
18
+ furnished to do so, subject to the following conditions:
19
+
20
+ The above copyright notice and this permission notice shall be included in
21
+ all copies or substantial portions of the Software.
22
+
23
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
29
+ THE SOFTWARE.
30
+
31
+ ================================================================================
32
+ @noble/hashes@2.4.0
33
+ License: MIT
34
+
35
+ --- LICENSE
36
+
37
+ The MIT License (MIT)
38
+
39
+ Copyright (c) 2022 Paul Miller (https://paulmillr.com)
40
+
41
+ Permission is hereby granted, free of charge, to any person obtaining a copy
42
+ of this software and associated documentation files (the “Software”), to deal
43
+ in the Software without restriction, including without limitation the rights
44
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
45
+ copies of the Software, and to permit persons to whom the Software is
46
+ furnished to do so, subject to the following conditions:
47
+
48
+ The above copyright notice and this permission notice shall be included in
49
+ all copies or substantial portions of the Software.
50
+
51
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
52
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
53
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
54
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
55
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
56
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
57
+ THE SOFTWARE.
58
+
59
+ ================================================================================
60
+ lossless-json@4.3.1
61
+ License: MIT
62
+
63
+ --- LICENSE.md
64
+
65
+ The MIT License (MIT)
66
+
67
+ Copyright (c) 2016-2026 Jos de Jong
68
+
69
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
70
+
71
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
72
+
73
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.