@mortiseagentvault/sdk 0.1.0 → 0.1.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/README.md CHANGED
@@ -16,7 +16,18 @@ The addresses of the deployed contracts are built in; see [`deployments/4663.jso
16
16
  npm install @mortiseagentvault/sdk viem
17
17
  ```
18
18
 
19
- Requires Node.js 20 or later.
19
+ Requires Node.js 20 or later. The package is a single bundled module with no runtime dependencies: it
20
+ carries the parts of viem it uses, and its types expect the viem clients you create yourself. The
21
+ licenses of the bundled code are in `dist/THIRD_PARTY_NOTICES.txt`.
22
+
23
+ viem itself pins `ws` 8.21.0, which `npm audit` reports
24
+ ([GHSA-37g9-w4hg-h9qr](https://github.com/advisories/GHSA-37g9-w4hg-h9qr)); `ws` is only loaded by viem's
25
+ WebSocket transport. The SDK's bundle contains no `ws` code; your project loads `ws` only if you create a
26
+ viem WebSocket client yourself. To move your project to the patched release, add this to its `package.json`:
27
+
28
+ ```json
29
+ "overrides": { "ws": "^8.23.1" }
30
+ ```
20
31
 
21
32
  ## Owner: create a vault and add an agent
22
33
 
@@ -98,8 +109,11 @@ refused to install.
98
109
  The tests run against the live Mortise contracts on a local fork of Robinhood Chain mainnet. Nothing is
99
110
  mocked. They need Node.js 22.6 or later and [Foundry](https://book.getfoundry.sh)'s `anvil` on the `PATH`.
100
111
 
112
+ The tests import the built package, so build it first:
113
+
101
114
  ```sh
102
115
  npm install
116
+ npm run build
103
117
  npm test # forks the public RPC
104
118
  FORK_RPC=<url> npm test # or a private RPC
105
119
  ```
@@ -0,0 +1,79 @@
1
+ This package bundles the following third-party code. Their licenses follow.
2
+
3
+ ------------------------------------------------------------------------
4
+
5
+ @noble/hashes@1.8.0 (MIT)
6
+
7
+ The MIT License (MIT)
8
+
9
+ Copyright (c) 2022 Paul Miller (https://paulmillr.com)
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the “Software”), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in
19
+ all copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27
+ THE SOFTWARE.
28
+
29
+ ------------------------------------------------------------------------
30
+
31
+ abitype@1.2.3 (MIT)
32
+
33
+ MIT License
34
+
35
+ Copyright (c) 2022-present weth, LLC
36
+
37
+ Permission is hereby granted, free of charge, to any person obtaining a copy
38
+ of this software and associated documentation files (the "Software"), to deal
39
+ in the Software without restriction, including without limitation the rights
40
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
41
+ copies of the Software, and to permit persons to whom the Software is
42
+ furnished to do so, subject to the following conditions:
43
+
44
+ The above copyright notice and this permission notice shall be included in all
45
+ copies or substantial portions of the Software.
46
+
47
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
48
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
49
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
50
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
51
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
52
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
53
+ SOFTWARE.
54
+
55
+ ------------------------------------------------------------------------
56
+
57
+ viem@2.58.8 (MIT)
58
+
59
+ MIT License
60
+
61
+ Copyright (c) 2023-present weth, LLC
62
+
63
+ Permission is hereby granted, free of charge, to any person obtaining a copy
64
+ of this software and associated documentation files (the "Software"), to deal
65
+ in the Software without restriction, including without limitation the rights
66
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
67
+ copies of the Software, and to permit persons to whom the Software is
68
+ furnished to do so, subject to the following conditions:
69
+
70
+ The above copyright notice and this permission notice shall be included in all
71
+ copies or substantial portions of the Software.
72
+
73
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
74
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
75
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
76
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
77
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
78
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
79
+ SOFTWARE.