@unicitylabs/openclaw-unicity 0.2.0 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unicitylabs/openclaw-unicity",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Unicity wallet identity and encrypted DMs for OpenClaw agents — powered by Sphere SDK",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -43,7 +43,7 @@
43
43
  "dependencies": {
44
44
  "@clack/prompts": "^0.10.0",
45
45
  "@sinclair/typebox": "^0.34.48",
46
- "@unicitylabs/sphere-sdk": "^0.2.0"
46
+ "@unicitylabs/sphere-sdk": "^0.2.2"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "openclaw": "*"
package/src/setup.ts CHANGED
@@ -28,14 +28,7 @@ export async function runInteractiveSetup(
28
28
  placeholder: "leave empty if no owner",
29
29
  });
30
30
 
31
- const network = await prompter.select({
32
- message: "Network:",
33
- options: [
34
- { value: "testnet", label: "testnet" },
35
- { value: "mainnet", label: "mainnet" },
36
- ],
37
- initialValue: "testnet",
38
- });
31
+ const network = "testnet";
39
32
 
40
33
  const fullConfig = runtime.loadConfig() as Record<string, unknown>;
41
34
 
@@ -13,7 +13,7 @@ export const getBalanceTool = {
13
13
  }),
14
14
  async execute(_toolCallId: string, params: { coinId?: string }) {
15
15
  const sphere = getSphere();
16
- const balances = sphere.payments.getBalance(params.coinId);
16
+ const balances = await sphere.payments.getAssets(params.coinId);
17
17
 
18
18
  if (balances.length === 0) {
19
19
  return {