@deroll/cmio 0.2.0-alpha.0 → 0.2.0-alpha.2
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
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
# @
|
|
2
|
-
|
|
3
|
-
> Temporarily published as `@tuler/node-libcmt` while it is not an official Cartesi package.
|
|
1
|
+
# @deroll/cmio
|
|
4
2
|
|
|
5
3
|
Node.js bindings for [libcmt](https://github.com/cartesi/machine-guest-tools/tree/main/sys-utils/libcmt), the Cartesi Machine guest rollup library. It lets Node.js applications running inside a Cartesi Machine process rollup inputs (advances and inspects) and emit vouchers, notices, reports and exceptions — without going through the rollup HTTP server.
|
|
6
4
|
|
|
@@ -16,7 +14,7 @@ The API is **fully synchronous** on purpose: calls that wait on the emulator (`f
|
|
|
16
14
|
## Usage
|
|
17
15
|
|
|
18
16
|
```js
|
|
19
|
-
import { Rollup } from '@
|
|
17
|
+
import { Rollup } from '@deroll/cmio';
|
|
20
18
|
|
|
21
19
|
const rollup = new Rollup();
|
|
22
20
|
await rollup.run({
|
|
@@ -50,7 +48,7 @@ for (;;) {
|
|
|
50
48
|
|
|
51
49
|
Byte arguments accept `Buffer`, `Uint8Array` or 0x-prefixed hex strings. Addresses are returned as 0x-hex strings, payloads as `Buffer`, and numeric fields as `bigint`.
|
|
52
50
|
|
|
53
|
-
The package is dual ESM + CommonJS — `const { Rollup } = require('@
|
|
51
|
+
The package is dual ESM + CommonJS — `const { Rollup } = require('@deroll/cmio')` works too, and both entry points share the same native addon instance.
|
|
54
52
|
|
|
55
53
|
### API
|
|
56
54
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deroll/cmio",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.2",
|
|
4
4
|
"description": "Node.js bindings for libcmt, the Cartesi Machine guest rollup library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cartesi",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@arethetypeswrong/cli": "^0.18.3",
|
|
57
|
-
"@types/node": "^
|
|
58
|
-
"node-gyp": "^
|
|
57
|
+
"@types/node": "^26",
|
|
58
|
+
"node-gyp": "^13.0.0",
|
|
59
59
|
"prebuildify": "^6.0.1",
|
|
60
60
|
"typescript": "^6.0.3"
|
|
61
61
|
},
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|