Skip to content

Commit

Permalink
fix(tari-universe): list substates and export templates (#35)
Browse files Browse the repository at this point in the history
Description
---
This PR contains refactored code with two main cases:
1. export Template Factory template
2. ~fix Tari Universe provider `listSubstates` function~ this one was
fixed in [this PR from Tari
Universe](tari-project/tari-universe#131)

Motivation and Context
---
This refactor was done to support [Tari Template
Web](https://github.com/tari-project/tari-template-web) and allow to use
it within Tari Universe.

How Has This Been Tested?
---
The package was built locally and tested with [Tari Template
Web](https://github.com/tari-project/tari-template-web) and Tari
Universe.

What process can a PR reviewer use to test or verify this change?
---
Pull this branch, build and use locally e.g. with Tari Template Web.

<!-- Checklist -->
<!-- 1. Is the title of your PR in the form that would make nice release
notes? The title, excluding the conventional commit
tag, will be included exactly as is in the CHANGELOG, so please think
about it carefully. -->


Breaking Changes
---

- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify

<!-- Does this include a breaking change? If so, include this line as a
footer -->
<!-- BREAKING CHANGE: Description what the user should do, e.g. delete a
database, resync the chain -->
  • Loading branch information
karczuRF authored Aug 14, 2024
1 parent 3bd36c3 commit 35ef9bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tari-project/tarijs",
"version": "0.1.23",
"version": "0.1.24",
"description": "",
"type": "module",
"publishConfig": {
Expand Down
7 changes: 2 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
fromWorkspace,
toWorkspace,
} from "./builders";
import { TariswapTemplate, AccountTemplate, PoolTemplate, TestFaucet } from "./templates";
import * as templates from "./templates";

export * from "./builders/types";
export {
Expand All @@ -53,14 +53,11 @@ export {
permissions,
WalletConnectTariProvider,
TransactionBuilder,
AccountTemplate,
TariswapTemplate,
PoolTemplate,
TestFaucet,
TransactionRequest,
buildTransactionRequest,
submitAndWaitForTransaction,
waitForTransactionResult,
fromWorkspace,
toWorkspace,
templates,
};
1 change: 1 addition & 0 deletions src/templates/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { TemplateFactory } from "./TemplateFactory";
export { AccountTemplate } from "./Account";
export { TariswapTemplate } from "./Tariswap";
export { PoolTemplate } from "./Pool";
Expand Down

0 comments on commit 35ef9bf

Please sign in to comment.