Skip to content

Commit

Permalink
chore: version
Browse files Browse the repository at this point in the history
  • Loading branch information
hstove committed Dec 9, 2022
1 parent d87f533 commit abd0a2d
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 28 deletions.
21 changes: 0 additions & 21 deletions .changeset/unlucky-years-approve.md

This file was deleted.

22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# clarigen-deno

## 0.4.9

### Patch Changes

- [`cc58a0f`](https://github.com/mechanismHQ/clarigen-deno/commit/cc58a0f4483e7be314b9dcf17162a1b1791e00ff) Thanks [@hstove](https://github.com/hstove)! - Clarigen now outputs a "constants" property with each contract. This allows you to get the value for your constants from within the JS runtime.

Example:

```clarity
(define-constant my-const u1)
(define-data-var my-var uint u2)
```

Both the constant and the variable's initial value will be added to your contract's type definitions. You can access it like:

```ts
console.log(contract.constants.myConst); // 1n
console.log(contract.constants.myVar); // 2n
```

For variables, only the initial value (when the contract is deployed) is added to the contract's types.

## 0.4.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clarigen-deno",
"version": "0.4.8",
"version": "0.4.9",
"main": "index.js",
"author": "''",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/cli/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = 'v0.4.8';
export const VERSION = 'v0.4.9';
10 changes: 5 additions & 5 deletions tests/helper.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

export {
Chain,
err,
Expand All @@ -7,15 +8,14 @@ export {
tx,
txErr,
txOk,
} from 'https://deno.land/x/clarigen@v0.4.8/mod.ts';
// import { factory } from "https://deno.land/x/clarigen@v0.4.8/mod.ts";
import { factory } from '../mod.ts';
import { simnet } from './../artifacts/clarigen/index.ts';
} from "https://deno.land/x/clarigen@v0.4.9/mod.ts";
import { factory } from "https://deno.land/x/clarigen@v0.4.9/mod.ts";
import { simnet } from "./../artifacts/clarigen/index.ts";

export const { test, contracts, accounts } = factory(simnet);

export const {
counter,
ftTrait,
tester,
tester
} = contracts;

0 comments on commit abd0a2d

Please sign in to comment.