@aibtc/mcp-server 1.68.0 → 1.70.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/config/at-stake.d.ts +120 -0
- package/dist/config/at-stake.js +183 -0
- package/dist/services/at-stake.service.d.ts +144 -0
- package/dist/services/at-stake.service.js +272 -0
- package/dist/services/spend-limiter.d.ts +53 -0
- package/dist/services/spend-limiter.js +97 -39
- package/dist/services/state-lock.d.ts +73 -0
- package/dist/services/state-lock.js +229 -0
- package/dist/tools/at-stake-legion.tools.d.ts +31 -0
- package/dist/tools/at-stake-legion.tools.js +776 -0
- package/dist/tools/at-stake.tools.d.ts +29 -0
- package/dist/tools/at-stake.tools.js +684 -0
- package/dist/tools/competition.tools.d.ts +12 -11
- package/dist/tools/competition.tools.js +3 -115
- package/dist/tools/index.js +6 -3
- package/dist/tools/legion.tools.d.ts +4 -3
- package/dist/tools/legion.tools.js +9 -12
- package/dist/tools/ordinals.tools.js +28 -2
- package/dist/transactions/builder.js +14 -1
- package/package.json +1 -1
- package/skill/SKILL.md +37 -1
- package/skill/references/at-stake.md +214 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* At Stake market tools — the El Salvador PoX-5 prediction market.
|
|
3
|
+
*
|
|
4
|
+
* Trading shape, in the order a caller meets it:
|
|
5
|
+
* mint — 1 sat of sBTC buys 1 IDLE + 1 BONDED share. Always 50/50, never a
|
|
6
|
+
* directional bet on its own.
|
|
7
|
+
* bid — escrow sBTC against a resting offer to buy one side under par.
|
|
8
|
+
* merge — hand back a matched pair for its sat, any time before resolve.
|
|
9
|
+
* redeem— after resolve, the winning side pays 1 sat per share.
|
|
10
|
+
*
|
|
11
|
+
* THERE IS NO BUY-YES. Minting leaves a caller flat. The directional trade
|
|
12
|
+
* these tools expose is a resting bid on the side they believe, which fills when
|
|
13
|
+
* a keeper matches it against an opposite-side bid. A caller who mints and stops has spent sBTC to
|
|
14
|
+
* take no view at all, so `atstake_mint_complete_set` says so in its result.
|
|
15
|
+
*
|
|
16
|
+
* EVERYTHING HERE MOVES REAL VALUE on Stacks mainnet. `mint` and `place_bid`
|
|
17
|
+
* spend sBTC with no withdrawal path other than merge, cancel or redeem, and
|
|
18
|
+
* both meter against the wallet's `sats` spending rail. That metering happens
|
|
19
|
+
* inside `callContract`, which reads the exact post-condition these calls sign
|
|
20
|
+
* in DENY mode — it must NOT be repeated here, or every mint would bill twice.
|
|
21
|
+
*
|
|
22
|
+
* `resolve-bonded` is deliberately absent. It carries a Bitcoin SPV proof —
|
|
23
|
+
* raw lockup transaction, 80-byte header, merkle path, funding transaction —
|
|
24
|
+
* and building one belongs in a prover, not in an MCP argument list. The
|
|
25
|
+
* permissionless NO settlement, `resolve-idle`, takes no arguments and is here.
|
|
26
|
+
*/
|
|
27
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
28
|
+
export declare function registerAtStakeTools(server: McpServer): void;
|
|
29
|
+
//# sourceMappingURL=at-stake.tools.d.ts.map
|