@tari-project/wallet-daemon-signer 0.5.3 → 0.6.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.
- package/dist/signer.d.ts +2 -1
- package/dist/signer.js +5 -2
- package/package.json +6 -5
package/dist/signer.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { TariPermissions } from "@tari-project/tari-permissions";
|
|
2
2
|
import { TariSigner } from "@tari-project/tari-signer";
|
|
3
|
-
import { WalletDaemonClient
|
|
3
|
+
import { WalletDaemonClient } from "@tari-project/wallet_jrpc_client";
|
|
4
4
|
import { AccountData, GetTransactionResultResponse, SubmitTransactionRequest, SubmitTransactionResponse, VaultBalances, TemplateDefinition, Substate, ListSubstatesResponse, ListSubstatesRequest } from "@tari-project/tarijs-types";
|
|
5
|
+
import { ConfidentialViewVaultBalanceRequest, ListAccountNftRequest, ListAccountNftResponse } from "@tari-project/typescript-bindings";
|
|
5
6
|
export declare const WalletDaemonNotConnected = "WALLET_DAEMON_NOT_CONNECTED";
|
|
6
7
|
export declare const Unsupported = "UNSUPPORTED";
|
|
7
8
|
export interface WalletDaemonBaseParameters {
|
package/dist/signer.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { TariPermissions } from "@tari-project/tari-permissions";
|
|
2
2
|
import { TariConnection } from "./webrtc";
|
|
3
|
-
import { WalletDaemonClient
|
|
3
|
+
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
|
+
import { substateIdToString, } from "@tari-project/typescript-bindings";
|
|
6
7
|
export const WalletDaemonNotConnected = "WALLET_DAEMON_NOT_CONNECTED";
|
|
7
8
|
export const Unsupported = "UNSUPPORTED";
|
|
8
9
|
export class WalletDaemonTariSigner {
|
|
@@ -134,7 +135,9 @@ export class WalletDaemonTariSigner {
|
|
|
134
135
|
proof_ids: [],
|
|
135
136
|
detect_inputs_use_unversioned: req.detect_inputs_use_unversioned,
|
|
136
137
|
};
|
|
137
|
-
const res =
|
|
138
|
+
const res = req.is_dry_run
|
|
139
|
+
? await this.client.submitTransactionDryRun(params)
|
|
140
|
+
: await this.client.submitTransaction(params);
|
|
138
141
|
return { transaction_id: res.transaction_id };
|
|
139
142
|
}
|
|
140
143
|
async getTransactionResult(transactionId) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tari-project/wallet-daemon-signer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -10,10 +10,11 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@tari-project/
|
|
14
|
-
"@tari-project/
|
|
15
|
-
"@tari-project/tari-
|
|
16
|
-
"@tari-project/
|
|
13
|
+
"@tari-project/typescript-bindings": "^1.5.5",
|
|
14
|
+
"@tari-project/wallet_jrpc_client": "^1.5.4",
|
|
15
|
+
"@tari-project/tari-permissions": "^0.6.0",
|
|
16
|
+
"@tari-project/tarijs-types": "^0.6.0",
|
|
17
|
+
"@tari-project/tari-signer": "^0.6.0"
|
|
17
18
|
},
|
|
18
19
|
"devDependencies": {
|
|
19
20
|
"@types/node": "^22.13.1",
|