forked from TONresistor/teleton-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
25 lines (22 loc) · 849 Bytes
/
index.js
File metadata and controls
25 lines (22 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
* Webdom plugin -- .ton domain and Telegram username marketplace
*
* Buy, sell, auction, and manage domains on webdom.market.
* Read-only tools use the public API; action tools sign on-chain
* transactions from the agent's wallet at ~/.teleton/wallet.json.
*
* Uses Plugin SDK exclusively:
* - sdk.storage for API response caching
* - sdk.ton for address/balance lookups
* - sdk.log for prefixed logging
*/
import { initApi } from "./lib/api.js";
import { readTools } from "./tools/read.js";
import { actionTools } from "./tools/actions.js";
// ---------------------------------------------------------------------------
// Tools export (SDK format)
// ---------------------------------------------------------------------------
export const tools = (sdk) => {
initApi(sdk);
return [...readTools(sdk), ...actionTools(sdk)];
};