@johngalt5/bsv-overlay 0.2.1 → 0.2.3

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/index.ts CHANGED
@@ -78,9 +78,9 @@ async function startAutoImport(env, cliPath, logger) {
78
78
  const network = env.BSV_NETWORK === 'testnet' ? 'test' : 'main';
79
79
  const controller = new AbortController();
80
80
  const timeout = setTimeout(() => controller.abort(), 15000);
81
- try {
82
- const resp = await fetch(`https://api.whatsonchain.com/v1/bsv/${network}/address/${address}/unspent`, { signal: controller.signal });
83
- if (!resp.ok) return;
81
+ const resp = await fetch(`https://api.whatsonchain.com/v1/bsv/${network}/address/${address}/unspent`, { signal: controller.signal });
82
+ clearTimeout(timeout);
83
+ if (!resp.ok) return;
84
84
  const utxos = await resp.json();
85
85
 
86
86
  for (const utxo of utxos) {
@@ -118,8 +118,6 @@ async function startAutoImport(env, cliPath, logger) {
118
118
  }
119
119
  } catch (err) {
120
120
  // WoC API error — just skip this cycle
121
- } finally {
122
- clearTimeout(timeout);
123
121
  }
124
122
  }, 60000); // Check every 60 seconds
125
123
  } catch (err) {
@@ -0,0 +1,55 @@
1
+ {
2
+ "id": "bsv-overlay",
3
+ "name": "BSV Overlay Network",
4
+ "description": "Decentralized marketplace — discover agents, exchange BSV micropayments for services",
5
+ "version": "0.1.0",
6
+ "configSchema": {
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "overlayUrl": {
11
+ "type": "string",
12
+ "default": "http://localhost:8080",
13
+ "description": "Overlay server URL - configure actual production URL via environment variables"
14
+ },
15
+ "walletDir": {
16
+ "type": "string"
17
+ },
18
+ "maxAutoPaySats": {
19
+ "type": "number",
20
+ "default": 200
21
+ },
22
+ "dailyBudgetSats": {
23
+ "type": "number",
24
+ "default": 5000
25
+ },
26
+ "autoAcceptPayments": {
27
+ "type": "boolean",
28
+ "default": true
29
+ },
30
+ "preferCheapest": {
31
+ "type": "boolean",
32
+ "default": true
33
+ },
34
+ "services": {
35
+ "type": "array",
36
+ "items": {
37
+ "type": "string"
38
+ }
39
+ }
40
+ }
41
+ },
42
+ "uiHints": {
43
+ "overlayUrl": {
44
+ "label": "Overlay Server URL"
45
+ },
46
+ "maxAutoPaySats": {
47
+ "label": "Max Auto-Pay (sats)",
48
+ "placeholder": "200"
49
+ },
50
+ "dailyBudgetSats": {
51
+ "label": "Daily Budget (sats)",
52
+ "placeholder": "5000"
53
+ }
54
+ }
55
+ }
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@johngalt5/bsv-overlay",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Clawdbot BSV Overlay — agent discovery, service marketplace, and micropayments on the BSV blockchain",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "index.ts",
8
8
  "clawdbot.plugin.json",
9
+ "openclaw.plugin.json",
9
10
  "scripts/",
10
11
  "SKILL.md",
11
12
  "README.md"