Skip to content

Commit ca5178e

Browse files
committed
feat: add uplc decoder tool
1 parent 2e29d9a commit ca5178e

File tree

6 files changed

+399
-2
lines changed

6 files changed

+399
-2
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { UplcDecoder } from "./uplc-decoder"
2+
import type { Metadata } from 'next'
3+
4+
export const metadata: Metadata = {
5+
title: 'UPLC Decoder | Evolution SDK',
6+
description: 'Decode UPLC (Untyped Plutus Core) programs from CBOR hex format',
7+
}
8+
9+
export default function UplcDecoderPage() {
10+
return (
11+
<div className="container mx-auto px-4 py-8 max-w-6xl">
12+
<div className="mb-8">
13+
<h1 className="text-4xl font-bold mb-4">UPLC Decoder</h1>
14+
<p className="text-muted-foreground text-lg">
15+
Decode UPLC (Untyped Plutus Core) programs from CBOR hex format. Automatically handles single or double CBOR encoding.
16+
</p>
17+
</div>
18+
<UplcDecoder />
19+
</div>
20+
)
21+
}

docs/app/tools/uplc-decoder/uplc-decoder.tsx

Lines changed: 350 additions & 0 deletions
Large diffs are not rendered by default.

docs/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/types/routes.d.ts";
3+
import "./out/dev/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"next-themes": "^0.4.6",
2626
"react": "^19.2.0",
2727
"react-dom": "^19.2.0",
28+
"react18-json-view": "^0.2.9",
2829
"twoslash": "^0.3.4"
2930
},
3031
"devDependencies": {

packages/evolution/src/core/uplc/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
* @since 2.0.0
55
* @module
66
*/
7-
export * as UPLC from "./UPLC.js"
7+
export * from "./UPLC.js"

pnpm-lock.yaml

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)