@bankofai/wallet-cli-erc8004-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 +21 -0
- package/README.md +51 -2
- package/dist/THIRD_PARTY_LICENSES.txt +1776 -0
- package/dist/index.mjs +121071 -0
- package/package.json +50 -4
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,52 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @bankofai/wallet-cli-erc8004-plugin
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`erc8004` is a plugin for [wallet-cli](https://github.com/tronprotocol/wallet-cli). An ERC-8004 Identity Registry is an NFT
|
|
4
|
+
contract: each Agent is a token whose id is its Agent ID and whose URI points to a registration document
|
|
5
|
+
you host yourself. The plugin shows, registers, updates and transfers Agents, and manages their operators.
|
|
6
|
+
|
|
7
|
+
It needs wallet-cli with plugin support ([Requirements](#requirements)) and a network where the registry is
|
|
8
|
+
deployed: `tron`, `nile`, `shasta`, `bsc`, `bsc-testnet`, `base` or `base-sepolia`. No credentials and no
|
|
9
|
+
settings.
|
|
10
|
+
|
|
11
|
+
## Requirements
|
|
12
|
+
|
|
13
|
+
- wallet-cli with plugin support and a plugin SDK of version 1.0 or a later 1.x (this package declares
|
|
14
|
+
`sdkVersion` `^1.0.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 @bankofai/wallet-cli-erc8004-plugin
|
|
26
|
+
wallet-cli plugin list
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Commands
|
|
30
|
+
|
|
31
|
+
| Command | What it does |
|
|
32
|
+
|---|---|
|
|
33
|
+
| [`erc8004 show`](https://github.com/BofAI/wallet-cli-plugins/blob/main/packages/erc8004/docs/commands/show.md) | Load one ERC-8004 Agent directly from the Identity Registry |
|
|
34
|
+
| [`erc8004 register`](https://github.com/BofAI/wallet-cli-plugins/blob/main/packages/erc8004/docs/commands/register.md) | Register an externally hosted Agent URI |
|
|
35
|
+
| [`erc8004 update`](https://github.com/BofAI/wallet-cli-plugins/blob/main/packages/erc8004/docs/commands/update.md) | Update an Agent registration URI |
|
|
36
|
+
| [`erc8004 transfer`](https://github.com/BofAI/wallet-cli-plugins/blob/main/packages/erc8004/docs/commands/transfer.md) | Transfer Agent ownership |
|
|
37
|
+
| [`erc8004 approve`](https://github.com/BofAI/wallet-cli-plugins/blob/main/packages/erc8004/docs/commands/approve.md) | Approve or revoke an operator for one Agent |
|
|
38
|
+
| [`erc8004 add-operator`](https://github.com/BofAI/wallet-cli-plugins/blob/main/packages/erc8004/docs/commands/add-operator.md) | Give an operator access to all Agents owned by this account |
|
|
39
|
+
| [`erc8004 remove-operator`](https://github.com/BofAI/wallet-cli-plugins/blob/main/packages/erc8004/docs/commands/remove-operator.md) | Remove an owner-wide Agent operator |
|
|
40
|
+
| [`erc8004 operator-check`](https://github.com/BofAI/wallet-cli-plugins/blob/main/packages/erc8004/docs/commands/operator-check.md) | Check an owner-wide Agent operator approval |
|
|
41
|
+
|
|
42
|
+
`wallet-cli erc8004 <command> --help` shows the options of each command. What the plugin adds to wallet-cli's
|
|
43
|
+
JSON output and error codes is in [machine-interface.md](https://github.com/BofAI/wallet-cli-plugins/blob/main/packages/erc8004/docs/machine-interface.md).
|
|
44
|
+
|
|
45
|
+
## Credentials and settings
|
|
46
|
+
|
|
47
|
+
No credentials and no settings.
|
|
48
|
+
|
|
49
|
+
## License
|
|
50
|
+
|
|
51
|
+
[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
|
|
52
|
+
`dist/THIRD_PARTY_LICENSES.txt`.
|