@tari-project/tarijs 0.14.3 → 0.14.5

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.
@@ -16,7 +16,7 @@ jobs:
16
16
  runs-on: ubuntu-latest
17
17
 
18
18
  steps:
19
- - uses: actions/checkout@v5
19
+ - uses: actions/checkout@v6
20
20
 
21
21
  - name: Check package.json versions
22
22
  run: ./scripts/check_versions.sh
@@ -17,7 +17,7 @@ jobs:
17
17
  build:
18
18
  runs-on: ubuntu-latest
19
19
  steps:
20
- - uses: actions/checkout@v5
20
+ - uses: actions/checkout@v6
21
21
  - uses: 'moonrepo/setup-toolchain@v0'
22
22
  with:
23
23
  auto-install: true
@@ -10,7 +10,7 @@ jobs:
10
10
  name: Build Docusaurus
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
- - uses: actions/checkout@v5
13
+ - uses: actions/checkout@v6
14
14
  with:
15
15
  fetch-depth: 0
16
16
  - uses: 'moonrepo/setup-toolchain@v0'
@@ -19,7 +19,7 @@ jobs:
19
19
  - run: pnpm install
20
20
  - run: moon tari-docs:build
21
21
  - name: Upload Build Artifact
22
- uses: actions/upload-pages-artifact@v3
22
+ uses: actions/upload-pages-artifact@v4
23
23
  with:
24
24
  path: docusaurus/tari-docs/build
25
25
 
@@ -10,7 +10,7 @@ jobs:
10
10
  name: Test documentation deployment
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
- - uses: actions/checkout@v5
13
+ - uses: actions/checkout@v6
14
14
  with:
15
15
  fetch-depth: 0
16
16
  - uses: 'moonrepo/setup-toolchain@v0'
@@ -9,7 +9,7 @@ jobs:
9
9
  name: Run linters
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
- - uses: actions/checkout@v5
12
+ - uses: actions/checkout@v6
13
13
  with:
14
14
  fetch-depth: 0
15
15
  - uses: "moonrepo/setup-toolchain@v0"
@@ -7,20 +7,51 @@ on:
7
7
  push:
8
8
  branches: main
9
9
 
10
+ permissions:
11
+ id-token: write
12
+ contents: read
13
+
10
14
  jobs:
11
15
  publish:
12
16
  runs-on: ubuntu-latest
13
17
  steps:
14
- - uses: actions/checkout@v5
18
+ - uses: actions/checkout@v6
15
19
  - uses: 'moonrepo/setup-toolchain@v0'
16
20
  with:
17
21
  auto-install: true
22
+ - name: Install pnpm
23
+ uses: pnpm/action-setup@v4
24
+ - uses: actions/setup-node@v6
25
+ with:
26
+ node-version: '24'
27
+ registry-url: 'https://registry.npmjs.org'
28
+ cache: 'pnpm'
18
29
  - run: pnpm install --frozen-lockfile
19
30
  - run: moon :build
20
- - name: Publish
31
+ - name: Publish all modules to NPM
21
32
  run: |
22
- pnpm config set git-checks false
23
- pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
24
- pnpm publish --access public --no-git-checks -r
25
- env:
26
- NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33
+ #set -euo pipefail
34
+
35
+ echo "== Local package.json =="
36
+ node -e "const p=require('./package.json'); console.log({name:p.name, version:p.version})"
37
+
38
+ LOCAL_VERSION=$(node -p "require('./package.json').version")
39
+ PACKAGE_NAME=$(node -p "require('./package.json').name")
40
+
41
+ echo "Local version: $LOCAL_VERSION"
42
+ echo "Package name: $PACKAGE_NAME"
43
+
44
+ echo "== Registry check =="
45
+ echo "Running: pnpm info $PACKAGE_NAME version"
46
+
47
+ REMOTE_VERSION=$(pnpm info "$PACKAGE_NAME" version 2>/dev/null || echo "NOT_FOUND")
48
+ echo "Remote version: $REMOTE_VERSION"
49
+
50
+ if [ "$REMOTE_VERSION" = "$LOCAL_VERSION" ]; then
51
+ echo "Version $LOCAL_VERSION already published, skipping."
52
+ exit 0
53
+ fi
54
+
55
+ echo "== Publishing =="
56
+ pnpm publish --provenance -r --no-git-checks
57
+
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tari-docs",
3
- "version": "0.14.3",
3
+ "version": "0.14.4",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "docusaurus": "docusaurus",
package/package.json CHANGED
@@ -1,7 +1,19 @@
1
1
  {
2
2
  "name": "@tari-project/tarijs",
3
- "version": "0.14.3",
3
+ "version": "0.14.5",
4
4
  "description": "",
5
+ "homepage": "https://github.com/tari-project/tari.js#readme",
6
+ "bugs": {
7
+ "url": "https://github.com/tari-project/tari.js/issues"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/tari-project/tari.js.git"
12
+ },
13
+ "private": false,
14
+ "publishConfig": {
15
+ "access": "public"
16
+ },
5
17
  "type": "module",
6
18
  "keywords": [],
7
19
  "author": "The Tari Community",
@@ -19,7 +31,7 @@
19
31
  "typescript-eslint": "^8.35.0"
20
32
  },
21
33
  "dependencies": {
22
- "@tari-project/tarijs-types": "^0.14.3"
34
+ "@tari-project/tarijs-types": "^0.14.5"
23
35
  },
24
36
  "scripts": {
25
37
  "docs": "typedoc",
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@tari-project/tarijs-builders",
3
- "version": "0.14.3",
3
+ "version": "0.14.5",
4
4
  "description": "",
5
5
  "type": "module",
6
+ "homepage": "https://github.com/tari-project/tari.js#readme",
7
+ "bugs": {
8
+ "url": "https://github.com/tari-project/tari.js/issues"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/tari-project/tari.js.git"
13
+ },
14
+ "private": false,
6
15
  "publishConfig": {
7
16
  "access": "public"
8
17
  },
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@tari-project/indexer-provider",
3
- "version": "0.14.3",
3
+ "version": "0.14.5",
4
4
  "description": "",
5
5
  "type": "module",
6
+ "homepage": "https://github.com/tari-project/tari.js#readme",
7
+ "bugs": {
8
+ "url": "https://github.com/tari-project/tari.js/issues"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/tari-project/tari.js.git"
13
+ },
14
+ "private": false,
6
15
  "publishConfig": {
7
16
  "access": "public"
8
17
  },
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@tari-project/metamask-signer",
3
- "version": "0.14.3",
3
+ "version": "0.14.5",
4
4
  "description": "",
5
5
  "type": "module",
6
+ "homepage": "https://github.com/tari-project/tari.js#readme",
7
+ "bugs": {
8
+ "url": "https://github.com/tari-project/tari.js/issues"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/tari-project/tari.js.git"
13
+ },
14
+ "private": false,
6
15
  "publishConfig": {
7
16
  "access": "public"
8
17
  },
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@tari-project/tari-permissions",
3
- "version": "0.14.3",
3
+ "version": "0.14.5",
4
4
  "description": "",
5
5
  "type": "module",
6
+ "homepage": "https://github.com/tari-project/tari.js#readme",
7
+ "bugs": {
8
+ "url": "https://github.com/tari-project/tari.js/issues"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/tari-project/tari.js.git"
13
+ },
14
+ "private": false,
6
15
  "publishConfig": {
7
16
  "access": "public"
8
17
  },
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@tari-project/react-mui-connect-button",
3
- "version": "0.14.3",
3
+ "version": "0.14.5",
4
4
  "description": "React component to connect your website to the Tari Ootle Wallet",
5
5
  "type": "module",
6
+ "homepage": "https://github.com/tari-project/tari.js#readme",
7
+ "bugs": {
8
+ "url": "https://github.com/tari-project/tari.js/issues"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/tari-project/tari.js.git"
13
+ },
14
+ "private": false,
6
15
  "publishConfig": {
7
16
  "access": "public"
8
17
  },
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@tari-project/tari-provider",
3
- "version": "0.14.3",
3
+ "version": "0.14.5",
4
4
  "description": "",
5
5
  "type": "module",
6
+ "homepage": "https://github.com/tari-project/tari.js#readme",
7
+ "bugs": {
8
+ "url": "https://github.com/tari-project/tari.js/issues"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/tari-project/tari.js.git"
13
+ },
14
+ "private": false,
6
15
  "publishConfig": {
7
16
  "access": "public"
8
17
  },
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@tari-project/tari-signer",
3
- "version": "0.14.3",
3
+ "version": "0.14.5",
4
4
  "description": "",
5
5
  "type": "module",
6
+ "homepage": "https://github.com/tari-project/tari.js#readme",
7
+ "bugs": {
8
+ "url": "https://github.com/tari-project/tari.js/issues"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/tari-project/tari.js.git"
13
+ },
14
+ "private": false,
6
15
  "publishConfig": {
7
16
  "access": "public"
8
17
  },
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@tari-project/tari-universe-signer",
3
- "version": "0.14.3",
3
+ "version": "0.14.5",
4
4
  "description": "",
5
5
  "type": "module",
6
+ "homepage": "https://github.com/tari-project/tari.js#readme",
7
+ "bugs": {
8
+ "url": "https://github.com/tari-project/tari.js/issues"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/tari-project/tari.js.git"
13
+ },
14
+ "private": false,
6
15
  "publishConfig": {
7
16
  "access": "public"
8
17
  },
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@tari-project/tarijs-all",
3
- "version": "0.14.3",
3
+ "version": "0.14.5",
4
4
  "description": "",
5
5
  "type": "module",
6
+ "homepage": "https://github.com/tari-project/tari.js#readme",
7
+ "bugs": {
8
+ "url": "https://github.com/tari-project/tari.js/issues"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/tari-project/tari.js.git"
13
+ },
14
+ "private": false,
6
15
  "publishConfig": {
7
16
  "access": "public"
8
17
  },
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@tari-project/tarijs-types",
3
- "version": "0.14.3",
3
+ "version": "0.14.5",
4
4
  "description": "",
5
5
  "type": "module",
6
+ "homepage": "https://github.com/tari-project/tari.js#readme",
7
+ "bugs": {
8
+ "url": "https://github.com/tari-project/tari.js/issues"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/tari-project/tari.js.git"
13
+ },
14
+ "private": false,
6
15
  "publishConfig": {
7
16
  "access": "public"
8
17
  },
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@tari-project/wallet-daemon-signer",
3
- "version": "0.14.3",
3
+ "version": "0.14.5",
4
4
  "description": "",
5
5
  "type": "module",
6
+ "homepage": "https://github.com/tari-project/tari.js#readme",
7
+ "bugs": {
8
+ "url": "https://github.com/tari-project/tari.js/issues"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/tari-project/tari.js.git"
13
+ },
14
+ "private": false,
6
15
  "publishConfig": {
7
16
  "access": "public"
8
17
  },
@@ -24,12 +24,10 @@ import {
24
24
  ConfidentialViewVaultBalanceRequest,
25
25
  KeyBranch,
26
26
  substateIdToString,
27
- SubstatesListRequest, UtxoId,
27
+ SubstatesListRequest, UtxoAddress, UtxoId,
28
28
  WalletGetInfoResponse,
29
29
  } from "@tari-project/typescript-bindings";
30
30
 
31
- export const WalletDaemonNotConnected = "WALLET_DAEMON_NOT_CONNECTED";
32
- export const Unsupported = "UNSUPPORTED";
33
31
 
34
32
  export interface WalletDaemonBaseParameters {
35
33
  permissions: TariPermissions;
@@ -245,13 +243,14 @@ export class WalletDaemonTariSigner implements TariSigner {
245
243
  return { balances: res.balances as unknown as Map<string, bigint | null> };
246
244
  }
247
245
  public async decryptUtxoValue(
248
- utxoId: UtxoId,
246
+ utxoAddress: UtxoAddress,
249
247
  viewKeyId: number,
250
248
  maximum_expected_value = null,
251
249
  minimum_expected_value = null,
252
250
  ): Promise<RevealedBalances> {
253
251
  const res = await this.client.stealthUtxosDecryptValue({
254
- utxo_id: utxoId,
252
+ resource_address: utxoAddress.resource_address,
253
+ utxo_id: utxoAddress.id,
255
254
  view_key_id: viewKeyId,
256
255
  minimum_expected_value,
257
256
  maximum_expected_value,
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@tari-project/wallet-connect-signer",
3
- "version": "0.14.3",
3
+ "version": "0.14.5",
4
4
  "description": "",
5
5
  "type": "module",
6
+ "homepage": "https://github.com/tari-project/tari.js#readme",
7
+ "bugs": {
8
+ "url": "https://github.com/tari-project/tari.js/issues"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/tari-project/tari.js.git"
13
+ },
14
+ "private": false,
6
15
  "publishConfig": {
7
16
  "access": "public"
8
17
  },