@tari-project/wallet-daemon-signer 0.14.0 → 0.14.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.js +7 -8
- package/package.json +5 -5
package/dist/signer.js
CHANGED
|
@@ -87,22 +87,21 @@ export class WalletDaemonTariSigner {
|
|
|
87
87
|
}
|
|
88
88
|
async getAccount() {
|
|
89
89
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
90
|
-
const { account,
|
|
91
|
-
const address = typeof account.address === "object" ? account.address.Component : account.address;
|
|
90
|
+
const { account, address } = await this.client.accountsGetDefault({});
|
|
92
91
|
const { balances } = await this.client.accountsGetBalances({
|
|
93
|
-
account: { ComponentAddress:
|
|
92
|
+
account: { ComponentAddress: account.component_address },
|
|
94
93
|
refresh: false,
|
|
95
94
|
});
|
|
96
95
|
return {
|
|
97
96
|
account_id: account.key_index,
|
|
98
|
-
component_address:
|
|
99
|
-
wallet_address:
|
|
100
|
-
// TODO: should be vaults not resources
|
|
97
|
+
component_address: account.component_address,
|
|
98
|
+
wallet_address: address,
|
|
101
99
|
vaults: balances.map((b) => ({
|
|
102
100
|
type: b.resource_type,
|
|
103
101
|
resource_address: b.resource_address,
|
|
104
|
-
balance: b.balance
|
|
105
|
-
|
|
102
|
+
balance: b.balance,
|
|
103
|
+
confidential_balance: b.confidential_balance,
|
|
104
|
+
vault_id: b.vault_address,
|
|
106
105
|
token_symbol: b.token_symbol,
|
|
107
106
|
})),
|
|
108
107
|
};
|
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.2",
|
|
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.0",
|
|
14
14
|
"@tari-project/wallet_jrpc_client": "^1.7.2",
|
|
15
|
-
"@tari-project/tari-
|
|
16
|
-
"@tari-project/tari-provider": "^0.14.
|
|
17
|
-
"@tari-project/tari-
|
|
18
|
-
"@tari-project/tarijs-types": "^0.14.
|
|
15
|
+
"@tari-project/tari-signer": "^0.14.2",
|
|
16
|
+
"@tari-project/tari-provider": "^0.14.2",
|
|
17
|
+
"@tari-project/tari-permissions": "^0.14.2",
|
|
18
|
+
"@tari-project/tarijs-types": "^0.14.2"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/node": "^22.13.1",
|