-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
2,107 additions
and
616 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@guidanoli/cmioc": minor | ||
--- | ||
|
||
Converted interfaces into types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "restricted", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: "pnpm" | ||
|
||
- name: Install Node packages | ||
run: pnpm install | ||
|
||
- name: Check code format | ||
run: pnpm run check-format | ||
|
||
- name: Run tests | ||
run: pnpm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
pnpm-lock.yaml | ||
README.md | ||
src/*.js | ||
src/*.d.ts |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
A CLI tool for encoding and decoding, with ease, inputs and outputs for the upcoming Cartesi Rollups SDK v2. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"name": "@guidanoli/cmioc-cli", | ||
"version": "0.1.4", | ||
"description": "Cartesi Machine Input/Output Codec CLI", | ||
"keywords": [ | ||
"cartesi", | ||
"rollups", | ||
"solidity", | ||
"codec", | ||
"cli" | ||
], | ||
"homepage": "https://github.com/guidanoli/cmioc", | ||
"bugs": { | ||
"url": "https://github.com/guidanoli/cmioc/issues" | ||
}, | ||
"license": "GPL-v3-only", | ||
"author": { | ||
"name": "Guilherme Dantas", | ||
"e-mail": "[email protected]", | ||
"url": "https://github.com/guidanoli" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"bin": { | ||
"cmioc": "dist/src/index.js" | ||
}, | ||
"scripts": { | ||
"build": "tsc", | ||
"clean": "rimraf dist", | ||
"prepack": "run-s build" | ||
}, | ||
"dependencies": { | ||
"@commander-js/extra-typings": "^12.0.1", | ||
"@guidanoli/cmioc": "workspace:*", | ||
"commander": "^12.0.0", | ||
"ethers": "^6.11.1", | ||
"viem": "^2.9.2" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.14.10", | ||
"rimraf": "^5.0.5", | ||
"ts-node": "^10.9.2", | ||
"tsconfig": "workspace:*" | ||
}, | ||
"engines": { | ||
"node": ">=16" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"resolveJsonModule": true | ||
}, | ||
"extends": "tsconfig/base.json", | ||
"include": ["src", "package.json"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "site", | ||
"version": "0.0.0", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vocs dev", | ||
"build": "vocs build", | ||
"preview": "vocs preview" | ||
}, | ||
"devDependencies": { | ||
"@guidanoli/cmioc": "workspace:*", | ||
"vocs": "1.0.0-alpha.52" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Installation | ||
|
||
## Via package manager | ||
|
||
You can install the CLI globally on your machine with your favorite package manager. | ||
|
||
:::code-group | ||
|
||
```bash [npm] | ||
npm install -g @guidanoli/cmioc | ||
``` | ||
|
||
```bash [pnpm] | ||
pnpm add -g @guidanoli/cmioc | ||
``` | ||
|
||
```bash [yarn] | ||
yarn global add @guidanoli/cmioc | ||
``` | ||
|
||
::: | ||
|
||
Once installed, you can execute the CLI directly, like so: | ||
|
||
```sh | ||
cmioc [args...] | ||
``` | ||
|
||
## Via GitHub Container Registry | ||
|
||
Alternatively, you can also pull the CLI image from the [GitHub Container Registry]. | ||
|
||
```sh | ||
docker pull ghcr.io/guidanoli/cmioc | ||
``` | ||
|
||
Once pulled, you can execute the CLI through Docker, like so: | ||
|
||
```sh | ||
docker run ghcr.io/guidanoli/cmioc [args...] | ||
``` | ||
|
||
If you want to pipe data into the CLI through `stdin`, don't forget the `-i` option. | ||
|
||
```sh | ||
cat input.txt | docker run -i ghcr.io/guidanoli/cmioc [args...] | ||
``` | ||
|
||
[GitHub Container Registry]: https://ghcr.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Installation | ||
|
||
## Via package manager | ||
|
||
You can add the TypeScript package as a dependency to your project with your favorite package manager. | ||
|
||
:::code-group | ||
|
||
```bash [npm] | ||
npm install @guidanoli/cmioc | ||
``` | ||
|
||
```bash [pnpm] | ||
pnpm add @guidanoli/cmioc | ||
``` | ||
|
||
```bash [yarn] | ||
yarn add @guidanoli/cmioc | ||
``` | ||
|
||
::: | ||
|
||
Once installed, you can import definitions from the package like so: | ||
|
||
```ts twoslash | ||
import { decodeOutputBlob } from "@guidanoli/cmioc"; | ||
``` |
File renamed without changes.
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.