@tari-project/wallet-daemon-signer 0.14.3 → 0.14.4
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 +2 -4
- package/dist/signer.js +3 -4
- package/package.json +5 -5
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,
|
|
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(
|
|
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(
|
|
171
|
+
async decryptUtxoValue(utxoAddress, viewKeyId, maximum_expected_value = null, minimum_expected_value = null) {
|
|
174
172
|
const res = await this.client.stealthUtxosDecryptValue({
|
|
175
|
-
|
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tari-project/wallet-daemon-signer",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@tari-project/typescript-bindings": ">=1.17.2",
|
|
14
14
|
"@tari-project/wallet_jrpc_client": "^1.9.2",
|
|
15
|
-
"@tari-project/tari-
|
|
16
|
-
"@tari-project/tari-
|
|
17
|
-
"@tari-project/tari-provider": "^0.14.
|
|
18
|
-
"@tari-project/tarijs-types": "^0.14.
|
|
15
|
+
"@tari-project/tari-permissions": "^0.14.4",
|
|
16
|
+
"@tari-project/tari-signer": "^0.14.4",
|
|
17
|
+
"@tari-project/tari-provider": "^0.14.4",
|
|
18
|
+
"@tari-project/tarijs-types": "^0.14.4"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/node": "^22.13.1",
|