@tari-project/wallet-daemon-signer 0.10.1 → 0.11.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/provider.js CHANGED
@@ -50,12 +50,15 @@ export class WalletDaemonTariProvider {
50
50
  }
51
51
  async getSubstate(req) {
52
52
  // TODO: Substate address cannot be converted to SubstateId directly - Perhaps we need to change the provider interface
53
- const { record, value, } = await this.client.substatesGet({ substate_id: req.substate_address });
53
+ const { substate, } = await this.client.substatesGet({ substate_id: req.substate_address });
54
+ if (!substate) {
55
+ throw new Error(`Substate not found for address: ${req.substate_address}`);
56
+ }
54
57
  return {
55
- value,
58
+ value: substate?.substate,
56
59
  address: {
57
- substate_id: substateIdToString(record.substate_id),
58
- version: record.version,
60
+ substate_id: req.substate_address,
61
+ version: substate?.version || 0,
59
62
  },
60
63
  };
61
64
  }
package/dist/signer.js CHANGED
@@ -102,13 +102,15 @@ export class WalletDaemonTariSigner {
102
102
  return await this.client.accountsGetBalances({ account: { ComponentAddress: componentAddress }, refresh: true });
103
103
  }
104
104
  async getSubstate(substateId) {
105
- // Wallet daemon expects a SubstateId as a string
106
- const { value, record } = await this.client.substatesGet({ substate_id: substateId });
105
+ const { substate, } = await this.client.substatesGet({ substate_id: substateId });
106
+ if (!substate) {
107
+ throw new Error(`Substate not found for address: ${substateId}`);
108
+ }
107
109
  return {
108
- value,
110
+ value: substate?.substate,
109
111
  address: {
110
- substate_id: substateIdToString(record.substate_id),
111
- version: record.version,
112
+ substate_id: substateId,
113
+ version: substate?.version || 0,
112
114
  },
113
115
  };
114
116
  }
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@tari-project/wallet-daemon-signer",
3
- "version": "0.10.1",
3
+ "version": "0.11.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
9
  "keywords": [],
10
- "author": "",
10
+ "author": "The Tari Community",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@tari-project/typescript-bindings": ">=1.10.2",
14
- "@tari-project/wallet_jrpc_client": "^1.6.2",
15
- "@tari-project/tari-permissions": "^0.10.1",
16
- "@tari-project/tari-signer": "^0.10.1",
17
- "@tari-project/tari-provider": "^0.10.1",
18
- "@tari-project/tarijs-types": "^0.10.1"
13
+ "@tari-project/typescript-bindings": ">=1.13.0",
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"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/node": "^22.13.1",