Skip to content

Commit 988efd9

Browse files
committed
0.1.0 release
1 parent 598349c commit 988efd9

File tree

8 files changed

+27
-20
lines changed

8 files changed

+27
-20
lines changed

docfx/index.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@ _layout: landing
44

55
# Welcome to **chia-dotnet-clvm**
66

7-
A (very much WIP) port of [node-clvm-lib](https://github.com/Chia-Network/node-clvm-lib).
8-
9-
## Status
10-
11-
- All of the code is ported including units tests.
12-
- 752/848 unit tests are passing (88%)
7+
A direct port of [Rigidity](https://github.com/Rigidity)'s [node-clvm-lib](https://github.com/Chia-Network/node-clvm-lib).
138

149
## See Also
1510

@@ -18,6 +13,16 @@ A (very much WIP) port of [node-clvm-lib](https://github.com/Chia-Network/node-c
1813
- [chia-dotnet-bls](https://www.nuget.org/packages/chia-dotnet-bls/)
1914
- [chia-blockchain](https://chia.net)
2015

16+
## Hello World
17+
18+
```csharp
19+
var puzzleProgram = Program.FromSource("(q . \"hello world\")");
20+
var result = puzzleProgram.Compile();
21+
22+
Console.WriteLine(result.Value);
23+
Console.WriteLine(result.Cost);
24+
```
25+
2126
___
2227

2328
_chia and its logo are the registered trademark or trademark of Chia Network, Inc. in the United States and worldwide._

docs/api/toc.pdf

0 Bytes
Binary file not shown.

docs/docs/toc.pdf

0 Bytes
Binary file not shown.

docs/index.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,21 @@ <h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
8787
<article data-uid="">
8888
<h1 id="welcome-to-chia-dotnet-clvm">Welcome to <strong>chia-dotnet-clvm</strong></h1>
8989

90-
<p>A (very much WIP) port of <a href="https://github.com/Chia-Network/node-clvm-lib">node-clvm-lib</a>.</p>
91-
<h2 id="status">Status</h2>
92-
<ul>
93-
<li>All of the code is ported including units tests.</li>
94-
<li>752/848 unit tests are passing (88%)</li>
95-
</ul>
90+
<p>A direct port of <a href="https://github.com/Rigidity">Rigidity</a>'s <a href="https://github.com/Chia-Network/node-clvm-lib">node-clvm-lib</a>.</p>
9691
<h2 id="see-also">See Also</h2>
9792
<ul>
9893
<li><a href="https://dkackman.github.io/chia-dotnet-clvm/">Documentation</a></li>
9994
<li><a href="https://www.nuget.org/packages/chia-dotnet/">chia-dotnet</a></li>
10095
<li><a href="https://www.nuget.org/packages/chia-dotnet-bls/">chia-dotnet-bls</a></li>
10196
<li><a href="https://chia.net">chia-blockchain</a></li>
10297
</ul>
98+
<h2 id="hello-world">Hello World</h2>
99+
<pre><code class="lang-csharp">var puzzleProgram = Program.FromSource(&quot;(q . \&quot;hello world\&quot;)&quot;);
100+
var result = puzzleProgram.Compile();
101+
102+
Console.WriteLine(result.Value);
103+
Console.WriteLine(result.Cost);
104+
</code></pre>
103105
<hr>
104106
<p><em>chia and its logo are the registered trademark or trademark of Chia Network, Inc. in the United States and worldwide.</em></p>
105107

docs/index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,6 @@
167167
"index.html": {
168168
"href": "index.html",
169169
"title": "Welcome to chia-dotnet-clvm | chia-dotnet-clvm",
170-
"keywords": "Welcome to chia-dotnet-clvm A (very much WIP) port of node-clvm-lib. Status All of the code is ported including units tests. 752/848 unit tests are passing (88%) See Also Documentation chia-dotnet chia-dotnet-bls chia-blockchain chia and its logo are the registered trademark or trademark of Chia Network, Inc. in the United States and worldwide."
170+
"keywords": "Welcome to chia-dotnet-clvm A direct port of Rigidity's node-clvm-lib. See Also Documentation chia-dotnet chia-dotnet-bls chia-blockchain Hello World var puzzleProgram = Program.FromSource(\"(q . \\\"hello world\\\")\"); var result = puzzleProgram.Compile(); Console.WriteLine(result.Value); Console.WriteLine(result.Cost); chia and its logo are the registered trademark or trademark of Chia Network, Inc. in the United States and worldwide."
171171
}
172172
}

docs/toc.pdf

0 Bytes
Binary file not shown.

src/clvm.testharness/Program.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ public static void Main(string[] args)
55
{
66
try
77
{
8-
var puzzleProgram = chia.dotnet.clvm.Program.FromSource("()");
9-
var result = puzzleProgram.Compile(new CompileOptions { MaxCost = null, Strict = false });
8+
var puzzleProgram = chia.dotnet.clvm.Program.FromSource("(q . \"hello world\")");
9+
var result = puzzleProgram.Compile();
1010

11-
Console.WriteLine(result.Value.ToSource());
12-
Console.WriteLine(result.Value.HashHex());
11+
Console.WriteLine(result.Value);
12+
Console.WriteLine(result.Cost);
1313
}
1414
catch (Exception e)
1515
{
1616
Console.WriteLine(e);
1717
}
1818
}
19-
}
19+
}

src/clvm/clvm.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
<Title>C# chia CLVM</Title>
1010
<Description>A dotnet native Chia CLVM implementation</Description>
1111
<PackageIcon>chia-leaf-logo-384x384.png</PackageIcon>
12-
<PackageTags>chia; xch; clvm</PackageTags>
12+
<PackageTags>chia; xch; clvm; chialisp</PackageTags>
1313
<PackageLicenseFile>LICENSE</PackageLicenseFile>
1414
<IncludeSymbols>True</IncludeSymbols>
1515
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
1616
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1717
<Authors>dkackman</Authors>
18-
<Version>0.1.0-alpha-01</Version>
18+
<Version>0.1.0</Version>
1919
<Copyright>2024 dkackman</Copyright>
2020
<PackageProjectUrl>https://dkackman.github.io/chia-dotnet-clvm/</PackageProjectUrl>
2121
<PackageReadmeFile>README.md</PackageReadmeFile>

0 commit comments

Comments
 (0)