@tari-project/tarijs 0.5.5 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/.github/PULL_REQUEST_TEMPLATE.md +2 -12
  2. package/.github/workflows/check-package-versions.yml +22 -0
  3. package/Dockerfile +2 -2
  4. package/README.md +1 -1
  5. package/docusaurus/tari-docs/docs/provider-vs-signer.md +27 -0
  6. package/docusaurus/tari-docs/docs/wallet/submit-transaction/transaction-builder/inputs.md +0 -1
  7. package/docusaurus/tari-docs/package-lock.json +17964 -0
  8. package/docusaurus/tari-docs/package.json +2 -2
  9. package/package.json +1 -1
  10. package/packages/builders/package.json +3 -2
  11. package/packages/builders/src/helpers/index.ts +1 -1
  12. package/packages/builders/src/helpers/workspace.ts +32 -22
  13. package/packages/builders/src/index.ts +1 -2
  14. package/packages/builders/src/transaction/TransactionBuilder.ts +105 -38
  15. package/packages/builders/src/transaction/TransactionRequest.ts +36 -33
  16. package/packages/indexer_provider/package.json +1 -1
  17. package/packages/metamask_signer/package.json +1 -1
  18. package/packages/metamask_signer/src/index.ts +1 -1
  19. package/packages/tari_permissions/package.json +1 -1
  20. package/packages/tari_permissions/src/tari_permissions.ts +1 -17
  21. package/packages/tari_provider/package.json +1 -1
  22. package/packages/tari_signer/package.json +1 -1
  23. package/packages/tari_universe/package.json +1 -1
  24. package/packages/tarijs/package.json +1 -1
  25. package/packages/tarijs/src/index.ts +0 -4
  26. package/packages/tarijs/test/integration-tests/wallet_daemon/json_rpc_provider.spec.ts +80 -1
  27. package/packages/tarijs_types/package.json +1 -1
  28. package/packages/tarijs_types/src/Instruction.ts +7 -3
  29. package/packages/tarijs_types/src/SubstateType.ts +1 -1
  30. package/packages/tarijs_types/src/Workspace.ts +1 -1
  31. package/packages/wallet_daemon/package.json +1 -1
  32. package/packages/wallet_daemon/src/signer.ts +1 -0
  33. package/packages/walletconnect/package.json +1 -1
  34. package/packages/walletconnect/src/index.ts +1 -0
  35. package/pnpm-workspace.yaml +2 -2
  36. package/scripts/check_versions.sh +42 -0
  37. package/scripts/set_package_versions.sh +39 -0
@@ -7,21 +7,11 @@ Motivation and Context
7
7
  How Has This Been Tested?
8
8
  ---
9
9
 
10
- What process can a PR reviewer use to test or verify this change?
11
- ---
12
-
13
- <!-- Checklist -->
14
- <!-- 1. Is the title of your PR in the form that would make nice release notes? The title, excluding the conventional commit
15
- tag, will be included exactly as is in the CHANGELOG, so please think about it carefully. -->
16
-
17
-
18
10
  Breaking Changes
19
11
  ---
20
12
 
21
13
  - [x] None
22
- - [ ] Requires data directory on base node to be deleted
23
- - [ ] Requires hard fork
24
- - [ ] Other - Please specify
14
+ - [ ] Please specify
25
15
 
26
16
  <!-- Does this include a breaking change? If so, include this line as a footer -->
27
- <!-- BREAKING CHANGE: Description what the user should do, e.g. delete a database, resync the chain -->
17
+ <!-- BREAKING CHANGE: Describe the breaking change -->
@@ -0,0 +1,22 @@
1
+ # Check package versions
2
+ name: Check Package Versions
3
+
4
+ on:
5
+ push:
6
+ branches:
7
+ - main
8
+ pull_request:
9
+ types:
10
+ - opened
11
+ - reopened
12
+ - synchronize
13
+
14
+ jobs:
15
+ check_versions:
16
+ runs-on: ubuntu-latest
17
+
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+
21
+ - name: Check package.json versions
22
+ run: ./scripts/check_versions.sh
package/Dockerfile CHANGED
@@ -19,9 +19,9 @@ RUN apt-get update && apt-get install -y \
19
19
  && /bin/bash -c "source ~/.bashrc && source ~/.profile"
20
20
 
21
21
 
22
- # Clone tari-dan repo at the same level (required for building)
22
+ # Clone tari-ootle repo at the same level (required for building)
23
23
  WORKDIR /
24
- RUN git clone https://github.com/tari-project/tari-dan.git
24
+ RUN git clone https://github.com/tari-project/tari-ootle.git
25
25
 
26
26
  # Set up project
27
27
  WORKDIR /app
package/README.md CHANGED
@@ -12,7 +12,7 @@ Please read the [TODO](TODO.md) file for upcoming features.
12
12
 
13
13
  ## Library building
14
14
 
15
- You must have the [tari-dan](https://github.com/tari-project/tari-dan) repo cloned at the same folder level as this repo.
15
+ You must have the [tari-ootle](https://github.com/tari-project/tari-ootle) repo cloned at the same folder level as this repo.
16
16
 
17
17
  ### Option 1: Local Build
18
18
 
@@ -0,0 +1,27 @@
1
+ ---
2
+ sidebar_position: 1
3
+ title: Providers vs Signers
4
+ ---
5
+
6
+ # Introduction to Providers and Signers
7
+
8
+ Tari.js provides two methods of interaction with the Ootle via built-in providers and signers.
9
+
10
+ ## What is a provider?
11
+
12
+ A provider provides a bridge of communication between the application and the Ootle network for the purpose of retrieving publically accessible information from the chain. The provider allows a developer to call information from the Ootle without necessarily requiring a wallet or performing a transaction. Likewise, this means that a developer cannot use a provider to write or commit changes to the Ootle network.
13
+
14
+ In Tari.js, the `Indexer Provider` class is provided for this purpose. You can read more about [the Provider here](./providers/indexer-provider.md).
15
+
16
+ ## What is a signer?
17
+
18
+ A signer provides for one or more methods for authenticating a transaction or action, and for accessing additional functionality for interacting with the Ootle. In this way, a signer allows the user to perform specific actions via a verifiable manner.
19
+
20
+ Tari.js provides three different signers for interacting with the Ootle, depending on the client you are using to interact with the Ootle. All of these utilise the `TariSigner` interface:
21
+
22
+ - **WalletConnect Signer**: This class is to be used to connect a wallet that is compatible with the WalletConnect protocol to your application.
23
+ - **Tari Universe Signer**: This class relies on the use of the Ootle wallet built into the [Tari Universe](https://airdrop.tari.com) application.
24
+ - **Tari Wallet Daemon Signer** this class uses the Tari Wallet Daemon service for facilitating transactions, account management and more.
25
+
26
+ You can read more about the [signers here](./category/signers)
27
+
@@ -13,7 +13,6 @@ A required substate has one of the following types:
13
13
  - Vault
14
14
  - UnclaimedConfidentialOutput
15
15
  - NonFungible
16
- - NonFungibleIndex
17
16
  - TransactionReceipt
18
17
  - Template
19
18
  - ValidatorFeePool