@tari-project/wallet-daemon-signer 0.11.0 → 0.12.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 CHANGED
@@ -27,6 +27,7 @@ export declare class WalletDaemonTariSigner implements TariSigner {
27
27
  static buildFetchSigner(params: WalletDaemonFetchParameters): Promise<WalletDaemonTariSigner>;
28
28
  private static buildPermissions;
29
29
  private getWebRtcTransport;
30
+ newTransactionKey(index?: number): Promise<string>;
30
31
  get token(): string | undefined;
31
32
  get tokenUrl(): string | undefined;
32
33
  isConnected(): boolean;
package/dist/signer.js CHANGED
@@ -47,6 +47,10 @@ export class WalletDaemonTariSigner {
47
47
  const transport = this.client.getTransport();
48
48
  return transport instanceof WebRtcRpcTransport ? transport : undefined;
49
49
  }
50
+ async newTransactionKey(index) {
51
+ const resp = await this.client.createKey({ branch: "transaction", specific_index: index || null });
52
+ return resp.public_key;
53
+ }
50
54
  get token() {
51
55
  return this.getWebRtcTransport()?.token();
52
56
  }
@@ -74,7 +78,7 @@ export class WalletDaemonTariSigner {
74
78
  account_id: res.account.key_index,
75
79
  address: res.account.address.Component,
76
80
  public_key: res.public_key,
77
- resources: [],
81
+ vaults: [],
78
82
  };
79
83
  }
80
84
  async getAccount() {
@@ -89,7 +93,7 @@ export class WalletDaemonTariSigner {
89
93
  address,
90
94
  public_key,
91
95
  // TODO: should be vaults not resources
92
- resources: balances.map((b) => ({
96
+ vaults: balances.map((b) => ({
93
97
  type: b.resource_type,
94
98
  resource_address: b.resource_address,
95
99
  balance: b.balance + b.confidential_balance,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tari-project/wallet-daemon-signer",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -10,12 +10,12 @@
10
10
  "author": "The Tari Community",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@tari-project/typescript-bindings": ">=1.13.0",
13
+ "@tari-project/typescript-bindings": ">=1.14.0",
14
14
  "@tari-project/wallet_jrpc_client": "^1.7.2",
15
- "@tari-project/tari-permissions": "^0.11.0",
16
- "@tari-project/tari-signer": "^0.11.0",
17
- "@tari-project/tarijs-types": "^0.11.0",
18
- "@tari-project/tari-provider": "^0.11.0"
15
+ "@tari-project/tari-permissions": "^0.12.0",
16
+ "@tari-project/tari-signer": "^0.12.0",
17
+ "@tari-project/tari-provider": "^0.12.0",
18
+ "@tari-project/tarijs-types": "^0.12.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/node": "^22.13.1",