@tari-project/wallet-daemon-signer 0.5.0 → 0.5.2
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 +8 -8
- package/dist/signer.js +7 -7
- package/package.json +4 -4
package/dist/signer.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TariPermissions } from "@tari-project/tari-permissions";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { TariSigner } from "@tari-project/tari-signer";
|
|
3
|
+
import { WalletDaemonClient, ListAccountNftRequest, ListAccountNftResponse, ConfidentialViewVaultBalanceRequest } from "@tari-project/wallet_jrpc_client";
|
|
4
|
+
import { AccountData, GetTransactionResultResponse, SubmitTransactionRequest, SubmitTransactionResponse, VaultBalances, TemplateDefinition, Substate, ListSubstatesResponse, ListSubstatesRequest } from "@tari-project/tarijs-types";
|
|
5
5
|
export declare const WalletDaemonNotConnected = "WALLET_DAEMON_NOT_CONNECTED";
|
|
6
6
|
export declare const Unsupported = "UNSUPPORTED";
|
|
7
7
|
export interface WalletDaemonBaseParameters {
|
|
@@ -29,15 +29,15 @@ export declare class WalletDaemonTariSigner implements TariSigner {
|
|
|
29
29
|
get token(): string | undefined;
|
|
30
30
|
get tokenUrl(): string | undefined;
|
|
31
31
|
isConnected(): boolean;
|
|
32
|
-
createFreeTestCoins(): Promise<
|
|
33
|
-
getAccount(): Promise<
|
|
32
|
+
createFreeTestCoins(): Promise<AccountData>;
|
|
33
|
+
getAccount(): Promise<AccountData>;
|
|
34
34
|
getAccountBalances(componentAddress: string): Promise<unknown>;
|
|
35
35
|
getSubstate(substateId: string): Promise<Substate>;
|
|
36
36
|
submitTransaction(req: SubmitTransactionRequest): Promise<SubmitTransactionResponse>;
|
|
37
|
-
getTransactionResult(transactionId: string): Promise<
|
|
37
|
+
getTransactionResult(transactionId: string): Promise<GetTransactionResultResponse>;
|
|
38
38
|
getPublicKey(branch: string, index: number): Promise<string>;
|
|
39
39
|
getTemplateDefinition(template_address: string): Promise<TemplateDefinition>;
|
|
40
|
-
getConfidentialVaultBalances(
|
|
41
|
-
listSubstates(filter_by_template
|
|
40
|
+
getConfidentialVaultBalances({ vault_id, view_key_id, maximum_expected_value, minimum_expected_value, }: ConfidentialViewVaultBalanceRequest): Promise<VaultBalances>;
|
|
41
|
+
listSubstates({ filter_by_template, filter_by_type, limit, offset, }: ListSubstatesRequest): Promise<ListSubstatesResponse>;
|
|
42
42
|
getNftsList(req: ListAccountNftRequest): Promise<ListAccountNftResponse>;
|
|
43
43
|
}
|
package/dist/signer.js
CHANGED
|
@@ -2,7 +2,7 @@ import { TariPermissions } from "@tari-project/tari-permissions";
|
|
|
2
2
|
import { TariConnection } from "./webrtc";
|
|
3
3
|
import { WalletDaemonClient, substateIdToString, } from "@tari-project/wallet_jrpc_client";
|
|
4
4
|
import { WebRtcRpcTransport } from "./webrtc_transport";
|
|
5
|
-
import { convertStringToTransactionStatus } from "@tari-project/tarijs-types";
|
|
5
|
+
import { convertStringToTransactionStatus, } from "@tari-project/tarijs-types";
|
|
6
6
|
export const WalletDaemonNotConnected = "WALLET_DAEMON_NOT_CONNECTED";
|
|
7
7
|
export const Unsupported = "UNSUPPORTED";
|
|
8
8
|
export class WalletDaemonTariSigner {
|
|
@@ -153,16 +153,16 @@ export class WalletDaemonTariSigner {
|
|
|
153
153
|
let resp = await this.client.templatesGet({ template_address });
|
|
154
154
|
return resp.template_definition;
|
|
155
155
|
}
|
|
156
|
-
async getConfidentialVaultBalances(
|
|
156
|
+
async getConfidentialVaultBalances({ vault_id, view_key_id, maximum_expected_value = null, minimum_expected_value = null, }) {
|
|
157
157
|
const res = await this.client.viewVaultBalance({
|
|
158
|
-
view_key_id
|
|
159
|
-
vault_id
|
|
160
|
-
minimum_expected_value
|
|
161
|
-
maximum_expected_value
|
|
158
|
+
view_key_id,
|
|
159
|
+
vault_id,
|
|
160
|
+
minimum_expected_value,
|
|
161
|
+
maximum_expected_value,
|
|
162
162
|
});
|
|
163
163
|
return { balances: res.balances };
|
|
164
164
|
}
|
|
165
|
-
async listSubstates(filter_by_template, filter_by_type, limit, offset) {
|
|
165
|
+
async listSubstates({ filter_by_template, filter_by_type, limit, offset, }) {
|
|
166
166
|
const resp = await this.client.substatesList({
|
|
167
167
|
filter_by_template,
|
|
168
168
|
filter_by_type,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tari-project/wallet-daemon-signer",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@tari-project/wallet_jrpc_client": "^1.5.1",
|
|
14
|
-
"@tari-project/tari-permissions": "^0.5.
|
|
15
|
-
"@tari-project/tari-signer": "^0.5.
|
|
16
|
-
"@tari-project/tarijs-types": "^0.5.
|
|
14
|
+
"@tari-project/tari-permissions": "^0.5.2",
|
|
15
|
+
"@tari-project/tari-signer": "^0.5.2",
|
|
16
|
+
"@tari-project/tarijs-types": "^0.5.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "^22.13.1",
|