@tari-project/wallet-daemon-signer 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.
package/dist/signer.d.ts CHANGED
@@ -2,9 +2,7 @@ import { TariPermissions } from "@tari-project/tari-permissions";
2
2
  import { TariSigner } from "@tari-project/tari-signer";
3
3
  import { WalletDaemonClient } from "@tari-project/wallet_jrpc_client";
4
4
  import { AccountData, GetTransactionResultResponse, SubmitTransactionRequest, SubmitTransactionResponse, RevealedBalances, TemplateDefinition, Substate, ListSubstatesResponse, ListSubstatesRequest, ListNftsResponse, ListNftsRequest } from "@tari-project/tarijs-types";
5
- import { AccountGetResponse, AccountsListRequest, AccountsListResponse, ConfidentialViewVaultBalanceRequest, UtxoId, WalletGetInfoResponse } from "@tari-project/typescript-bindings";
6
- export declare const WalletDaemonNotConnected = "WALLET_DAEMON_NOT_CONNECTED";
7
- export declare const Unsupported = "UNSUPPORTED";
5
+ import { AccountGetResponse, AccountsListRequest, AccountsListResponse, ConfidentialViewVaultBalanceRequest, UtxoAddress, WalletGetInfoResponse } from "@tari-project/typescript-bindings";
8
6
  export interface WalletDaemonBaseParameters {
9
7
  permissions: TariPermissions;
10
8
  optionalPermissions?: TariPermissions;
@@ -42,7 +40,7 @@ export declare class WalletDaemonTariSigner implements TariSigner {
42
40
  getPublicKey(branch: string, index: number): Promise<string>;
43
41
  getTemplateDefinition(template_address: string): Promise<TemplateDefinition>;
44
42
  getConfidentialVaultBalances({ vault_id, view_key_id, maximum_expected_value, minimum_expected_value, }: ConfidentialViewVaultBalanceRequest): Promise<RevealedBalances>;
45
- decryptUtxoValue(utxoId: UtxoId, viewKeyId: number, maximum_expected_value?: null, minimum_expected_value?: null): Promise<RevealedBalances>;
43
+ decryptUtxoValue(utxoAddress: UtxoAddress, viewKeyId: number, maximum_expected_value?: null, minimum_expected_value?: null): Promise<RevealedBalances>;
46
44
  listSubstates({ filter_by_template, filter_by_type, limit, offset, }: ListSubstatesRequest): Promise<ListSubstatesResponse>;
47
45
  getNftsList(req: ListNftsRequest): Promise<ListNftsResponse>;
48
46
  getWalletInfo(): Promise<WalletGetInfoResponse>;
package/dist/signer.js CHANGED
@@ -4,8 +4,6 @@ import { WalletDaemonClient } from "@tari-project/wallet_jrpc_client";
4
4
  import { WebRtcRpcTransport } from "./webrtc_transport";
5
5
  import { convertStringToTransactionStatus, } from "@tari-project/tarijs-types";
6
6
  import { substateIdToString, } from "@tari-project/typescript-bindings";
7
- export const WalletDaemonNotConnected = "WALLET_DAEMON_NOT_CONNECTED";
8
- export const Unsupported = "UNSUPPORTED";
9
7
  export class WalletDaemonTariSigner {
10
8
  signerName = "WalletDaemon";
11
9
  params;
@@ -170,9 +168,10 @@ export class WalletDaemonTariSigner {
170
168
  });
171
169
  return { balances: res.balances };
172
170
  }
173
- async decryptUtxoValue(utxoId, viewKeyId, maximum_expected_value = null, minimum_expected_value = null) {
171
+ async decryptUtxoValue(utxoAddress, viewKeyId, maximum_expected_value = null, minimum_expected_value = null) {
174
172
  const res = await this.client.stealthUtxosDecryptValue({
175
- utxo_id: utxoId,
173
+ resource_address: utxoAddress.resource_address,
174
+ utxo_id: utxoAddress.id,
176
175
  view_key_id: viewKeyId,
177
176
  minimum_expected_value,
178
177
  maximum_expected_value,
package/package.json CHANGED
@@ -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
  },
@@ -12,10 +21,10 @@
12
21
  "dependencies": {
13
22
  "@tari-project/typescript-bindings": ">=1.17.2",
14
23
  "@tari-project/wallet_jrpc_client": "^1.9.2",
15
- "@tari-project/tari-signer": "^0.14.3",
16
- "@tari-project/tari-permissions": "^0.14.3",
17
- "@tari-project/tari-provider": "^0.14.3",
18
- "@tari-project/tarijs-types": "^0.14.3"
24
+ "@tari-project/tari-permissions": "^0.14.5",
25
+ "@tari-project/tari-signer": "^0.14.5",
26
+ "@tari-project/tarijs-types": "^0.14.5",
27
+ "@tari-project/tari-provider": "^0.14.5"
19
28
  },
20
29
  "devDependencies": {
21
30
  "@types/node": "^22.13.1",