clarigen-deno
0.4.4
Patch Changes
0.4.3
Patch Changes
Added a new
docs
command to the CLI! This will parse your contracts and automatically generate documentation for each of your contracts. Included in the docs are comments and rich type information.daaf0b5
Thanks @hstove! - Internally updated to Clarinet v1!
daaf0b5
Thanks @hstove! - Updated the types forrovOk
androvErr
to properly throw type errors if the function doesn’t return aresponse
0.4.2
Patch Changes
0.4.1
Patch Changes
0.4.0
Minor Changes
52d697e
Thanks @hstove! - Clarigen now comes with a fully-featured CLI, powered by Deno and Clarinet
Patch Changes
0.3.7
Patch Changes
- Updated type stubs to remove unnecessary code
0.3.6
Patch Changes
17abcf1
Thanks @hstove! - Big DX updates:- Contract calls support an “object” syntax
- Tuples are properly “camel-cased”
- Integer types are
number | bigint
now in all arguments
Object vs spread:
Updates the contract call syntax to support function arguments either as an object or an array. Previously, the only supported syntax was to “spread”.
For example, given the function:
(define-read-only (add (a uint) (b uint)))
The “spread” syntax is:
contract.add(1, 2);
Now you can also do:
contract.add({ a: 1, b: 2 });
Tuples are camel-ized
Previously, tuples (either as arguments or as results) were not properly camel-cased. Now, they are, which makes writing JS much easier.
Example function:
(define-read-only (merge-tuple (i { min-height: uint })) (merge i { max-height: u100000 }) )
Previously, the tuples in both arguments and results were not camel-case:
// old const result = contract.mergeTuple({ "min-height": 1n }); const max = result["max-height"];
Now it’s much cleaner:
const result = contract.mergeTuple({ minHeight: 1n }); const max = result.maxHeight;
Integer types for arguments
Previously, if a function had a
uint
orint
argument, you could already pass the argument asnumber | bigint
. However, if you had a type where the integer was within a type (like(list uint)
), you could only usebigint
.Now, you can use
number | bigint
within any argument type that has an integer.
0.3.5
Patch Changes
0.3.4
Patch Changes
0.3.3
Patch Changes
0.3.2
Patch Changes
0.3.1
Patch Changes
- b66cb90: Fixed - removed accounts from index file
0.3.0
Minor Changes
- 7cf0c8f: Updates generated files for Clarinet unit test environments
0.2.4
Patch Changes
- 4dd63d4: Fixed code not included in version
0.2.3
Patch Changes
- 8b4467e: Fixed camelCasing, adds variables to abi
0.2.2
Patch Changes
- c7273ce: Version bump to trigger deno push
0.2.1
Patch Changes
- 0acb708: Changed the outputted file from CLI from ‘single.ts’ to ‘index.ts’
0.2.0
Minor Changes
185f6db: First version:
- CLI to generate types
- Type-friendly test runner