@swarm-tips/client 0.4.2 → 0.4.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/SBOM.spdx.json +5 -5
- package/dist/agent.d.ts +16 -0
- package/dist/agent.js +70 -53
- package/dist/cli/swarm.d.ts +5 -0
- package/dist/cli/swarm.js +37 -19
- package/dist/contracts/generated/coordination_game.d.ts +179 -1
- package/dist/contracts/generated/shillbot.d.ts +119 -12
- package/dist/contracts/idl/coordination_game.json +180 -2
- package/dist/contracts/idl/shillbot.json +119 -12
- package/dist/generated/openapi.d.ts +17 -2
- package/dist/generated/openapi.js +1 -1
- package/dist/inbox/client.d.ts +2 -4
- package/dist/inbox/client.js +11 -6
- package/dist/inbox/index.d.ts +1 -1
- package/dist/inbox/index.js +1 -1
- package/dist/inbox/types.d.ts +9 -0
- package/dist/inbox/types.js +10 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +4 -2
- package/dist/shillbot/api.d.ts +7 -0
- package/dist/shillbot/api.js +41 -130
- package/dist/shillbot/index.d.ts +1 -0
- package/dist/shillbot/index.js +3 -0
- package/dist/shillbot/verify-tx.d.ts +62 -0
- package/dist/shillbot/verify-tx.js +643 -0
- package/dist/signer/evm.d.ts +1 -1
- package/dist/signer/evm.js +72 -2
- package/dist/signer/index.d.ts +1 -1
- package/dist/signer/types.d.ts +4 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/vow/index.d.ts +1 -1
- package/dist/vow/index.js +1 -1
- package/dist/vow/verify.d.ts +36 -0
- package/dist/vow/verify.js +458 -1
- package/package.json +1 -1
|
@@ -1475,6 +1475,59 @@ export type Shillbot = {
|
|
|
1475
1475
|
];
|
|
1476
1476
|
"args": [];
|
|
1477
1477
|
},
|
|
1478
|
+
{
|
|
1479
|
+
"name": "setDevnetEnabled";
|
|
1480
|
+
"discriminator": [
|
|
1481
|
+
186,
|
|
1482
|
+
145,
|
|
1483
|
+
8,
|
|
1484
|
+
221,
|
|
1485
|
+
180,
|
|
1486
|
+
97,
|
|
1487
|
+
214,
|
|
1488
|
+
209
|
|
1489
|
+
];
|
|
1490
|
+
"accounts": [
|
|
1491
|
+
{
|
|
1492
|
+
"name": "globalState";
|
|
1493
|
+
"writable": true;
|
|
1494
|
+
"pda": {
|
|
1495
|
+
"seeds": [
|
|
1496
|
+
{
|
|
1497
|
+
"kind": "const";
|
|
1498
|
+
"value": [
|
|
1499
|
+
115,
|
|
1500
|
+
104,
|
|
1501
|
+
105,
|
|
1502
|
+
108,
|
|
1503
|
+
108,
|
|
1504
|
+
98,
|
|
1505
|
+
111,
|
|
1506
|
+
116,
|
|
1507
|
+
95,
|
|
1508
|
+
103,
|
|
1509
|
+
108,
|
|
1510
|
+
111,
|
|
1511
|
+
98,
|
|
1512
|
+
97,
|
|
1513
|
+
108
|
|
1514
|
+
];
|
|
1515
|
+
}
|
|
1516
|
+
];
|
|
1517
|
+
};
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
"name": "authority";
|
|
1521
|
+
"signer": true;
|
|
1522
|
+
}
|
|
1523
|
+
];
|
|
1524
|
+
"args": [
|
|
1525
|
+
{
|
|
1526
|
+
"name": "enabled";
|
|
1527
|
+
"type": "bool";
|
|
1528
|
+
}
|
|
1529
|
+
];
|
|
1530
|
+
},
|
|
1478
1531
|
{
|
|
1479
1532
|
"name": "setPayoutTo";
|
|
1480
1533
|
"docs": [
|
|
@@ -2381,6 +2434,19 @@ export type Shillbot = {
|
|
|
2381
2434
|
105
|
|
2382
2435
|
];
|
|
2383
2436
|
},
|
|
2437
|
+
{
|
|
2438
|
+
"name": "devnetEnabledUpdated";
|
|
2439
|
+
"discriminator": [
|
|
2440
|
+
134,
|
|
2441
|
+
199,
|
|
2442
|
+
123,
|
|
2443
|
+
224,
|
|
2444
|
+
220,
|
|
2445
|
+
73,
|
|
2446
|
+
89,
|
|
2447
|
+
126
|
|
2448
|
+
];
|
|
2449
|
+
},
|
|
2384
2450
|
{
|
|
2385
2451
|
"name": "emergencyReturn";
|
|
2386
2452
|
"discriminator": [
|
|
@@ -2911,6 +2977,31 @@ export type Shillbot = {
|
|
|
2911
2977
|
"code": 6058;
|
|
2912
2978
|
"name": "invalidInstructionBundle";
|
|
2913
2979
|
"msg": "OnChainAction claim must be bundled atomically at top-level with submit_work";
|
|
2980
|
+
},
|
|
2981
|
+
{
|
|
2982
|
+
"code": 6059;
|
|
2983
|
+
"name": "devnetOnly";
|
|
2984
|
+
"msg": "Instruction or verification mode is restricted to devnet";
|
|
2985
|
+
},
|
|
2986
|
+
{
|
|
2987
|
+
"code": 6060;
|
|
2988
|
+
"name": "belowMinimumEscrow";
|
|
2989
|
+
"msg": "Escrow amount is below the minimum required for this platform";
|
|
2990
|
+
},
|
|
2991
|
+
{
|
|
2992
|
+
"code": 6061;
|
|
2993
|
+
"name": "deadlineTooFarInFuture";
|
|
2994
|
+
"msg": "Task deadline exceeds maximum allowed horizon";
|
|
2995
|
+
},
|
|
2996
|
+
{
|
|
2997
|
+
"code": 6062;
|
|
2998
|
+
"name": "verificationTimeoutExceeded";
|
|
2999
|
+
"msg": "Verification timeout window has elapsed since submission";
|
|
3000
|
+
},
|
|
3001
|
+
{
|
|
3002
|
+
"code": 6063;
|
|
3003
|
+
"name": "strikeCooldownActive";
|
|
3004
|
+
"msg": "Agent is in cooldown after a score-0 reopened submission";
|
|
2914
3005
|
}
|
|
2915
3006
|
];
|
|
2916
3007
|
"types": [
|
|
@@ -3006,17 +3097,13 @@ export type Shillbot = {
|
|
|
3006
3097
|
"type": "u64";
|
|
3007
3098
|
},
|
|
3008
3099
|
{
|
|
3009
|
-
"name": "
|
|
3100
|
+
"name": "lastStrikeAt";
|
|
3010
3101
|
"docs": [
|
|
3011
|
-
"
|
|
3012
|
-
"
|
|
3102
|
+
"Unix timestamp of the most recent score-0 reopened submission for this",
|
|
3103
|
+
"agent (`0` = none). Carved from the 8-byte `_reserved` slot so",
|
|
3104
|
+
"`AgentState::SPACE` stays `90` and existing accounts read `0`."
|
|
3013
3105
|
];
|
|
3014
|
-
"type":
|
|
3015
|
-
"array": [
|
|
3016
|
-
"u8",
|
|
3017
|
-
8
|
|
3018
|
-
];
|
|
3019
|
-
};
|
|
3106
|
+
"type": "i64";
|
|
3020
3107
|
},
|
|
3021
3108
|
{
|
|
3022
3109
|
"name": "bump";
|
|
@@ -3235,6 +3322,18 @@ export type Shillbot = {
|
|
|
3235
3322
|
];
|
|
3236
3323
|
};
|
|
3237
3324
|
},
|
|
3325
|
+
{
|
|
3326
|
+
"name": "devnetEnabledUpdated";
|
|
3327
|
+
"type": {
|
|
3328
|
+
"kind": "struct";
|
|
3329
|
+
"fields": [
|
|
3330
|
+
{
|
|
3331
|
+
"name": "devnetEnabled";
|
|
3332
|
+
"type": "bool";
|
|
3333
|
+
}
|
|
3334
|
+
];
|
|
3335
|
+
};
|
|
3336
|
+
},
|
|
3238
3337
|
{
|
|
3239
3338
|
"name": "emergencyReturn";
|
|
3240
3339
|
"type": {
|
|
@@ -3436,17 +3535,25 @@ export type Shillbot = {
|
|
|
3436
3535
|
];
|
|
3437
3536
|
"type": "i64";
|
|
3438
3537
|
},
|
|
3538
|
+
{
|
|
3539
|
+
"name": "devnetEnabled";
|
|
3540
|
+
"docs": [
|
|
3541
|
+
"Whether devnet-only verification paths (`verify_task` and kind-0",
|
|
3542
|
+
"`OnChainAction`) are enabled. Carved from `_reserved` — existing",
|
|
3543
|
+
"zero-initialized mainnet accounts read `false` without migration."
|
|
3544
|
+
];
|
|
3545
|
+
"type": "bool";
|
|
3546
|
+
},
|
|
3439
3547
|
{
|
|
3440
3548
|
"name": "reserved";
|
|
3441
3549
|
"docs": [
|
|
3442
3550
|
"Reserved space for future fields without reallocation.",
|
|
3443
|
-
"32 → 12 by D2/D3 → 4 by
|
|
3444
|
-
"`dispute_resolution_window_seconds` carve."
|
|
3551
|
+
"32 → 12 by D2/D3 → 4 by dispute-window carve → 3 by `devnet_enabled`."
|
|
3445
3552
|
];
|
|
3446
3553
|
"type": {
|
|
3447
3554
|
"array": [
|
|
3448
3555
|
"u8",
|
|
3449
|
-
|
|
3556
|
+
3
|
|
3450
3557
|
];
|
|
3451
3558
|
};
|
|
3452
3559
|
},
|
|
@@ -992,6 +992,31 @@
|
|
|
992
992
|
]
|
|
993
993
|
}
|
|
994
994
|
},
|
|
995
|
+
{
|
|
996
|
+
"name": "global_config",
|
|
997
|
+
"pda": {
|
|
998
|
+
"seeds": [
|
|
999
|
+
{
|
|
1000
|
+
"kind": "const",
|
|
1001
|
+
"value": [
|
|
1002
|
+
103,
|
|
1003
|
+
108,
|
|
1004
|
+
111,
|
|
1005
|
+
98,
|
|
1006
|
+
97,
|
|
1007
|
+
108,
|
|
1008
|
+
95,
|
|
1009
|
+
99,
|
|
1010
|
+
111,
|
|
1011
|
+
110,
|
|
1012
|
+
102,
|
|
1013
|
+
105,
|
|
1014
|
+
103
|
|
1015
|
+
]
|
|
1016
|
+
}
|
|
1017
|
+
]
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
995
1020
|
{
|
|
996
1021
|
"name": "authority",
|
|
997
1022
|
"writable": true,
|
|
@@ -1215,11 +1240,38 @@
|
|
|
1215
1240
|
{
|
|
1216
1241
|
"name": "tournament"
|
|
1217
1242
|
},
|
|
1243
|
+
{
|
|
1244
|
+
"name": "global_config",
|
|
1245
|
+
"pda": {
|
|
1246
|
+
"seeds": [
|
|
1247
|
+
{
|
|
1248
|
+
"kind": "const",
|
|
1249
|
+
"value": [
|
|
1250
|
+
103,
|
|
1251
|
+
108,
|
|
1252
|
+
111,
|
|
1253
|
+
98,
|
|
1254
|
+
97,
|
|
1255
|
+
108,
|
|
1256
|
+
95,
|
|
1257
|
+
99,
|
|
1258
|
+
111,
|
|
1259
|
+
110,
|
|
1260
|
+
102,
|
|
1261
|
+
105,
|
|
1262
|
+
103
|
|
1263
|
+
]
|
|
1264
|
+
}
|
|
1265
|
+
]
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1218
1268
|
{
|
|
1219
1269
|
"name": "player",
|
|
1220
1270
|
"docs": [
|
|
1221
|
-
"Verified against session_authority.player in the handler."
|
|
1222
|
-
|
|
1271
|
+
"Verified against session_authority.player in the handler. Mutable so any",
|
|
1272
|
+
"downward stake re-peg excess refunds strictly to the player wallet."
|
|
1273
|
+
],
|
|
1274
|
+
"writable": true
|
|
1223
1275
|
},
|
|
1224
1276
|
{
|
|
1225
1277
|
"name": "session_authority",
|
|
@@ -2160,6 +2212,89 @@
|
|
|
2160
2212
|
}
|
|
2161
2213
|
]
|
|
2162
2214
|
},
|
|
2215
|
+
{
|
|
2216
|
+
"name": "prove_local_equivocation",
|
|
2217
|
+
"discriminator": [
|
|
2218
|
+
57,
|
|
2219
|
+
20,
|
|
2220
|
+
235,
|
|
2221
|
+
37,
|
|
2222
|
+
36,
|
|
2223
|
+
185,
|
|
2224
|
+
45,
|
|
2225
|
+
214
|
|
2226
|
+
],
|
|
2227
|
+
"accounts": [
|
|
2228
|
+
{
|
|
2229
|
+
"name": "xmatch",
|
|
2230
|
+
"writable": true,
|
|
2231
|
+
"pda": {
|
|
2232
|
+
"seeds": [
|
|
2233
|
+
{
|
|
2234
|
+
"kind": "const",
|
|
2235
|
+
"value": [
|
|
2236
|
+
120,
|
|
2237
|
+
109,
|
|
2238
|
+
97,
|
|
2239
|
+
116,
|
|
2240
|
+
99,
|
|
2241
|
+
104
|
|
2242
|
+
]
|
|
2243
|
+
},
|
|
2244
|
+
{
|
|
2245
|
+
"kind": "arg",
|
|
2246
|
+
"path": "match_id"
|
|
2247
|
+
}
|
|
2248
|
+
]
|
|
2249
|
+
}
|
|
2250
|
+
}
|
|
2251
|
+
],
|
|
2252
|
+
"args": [
|
|
2253
|
+
{
|
|
2254
|
+
"name": "match_id",
|
|
2255
|
+
"type": {
|
|
2256
|
+
"array": [
|
|
2257
|
+
"u8",
|
|
2258
|
+
32
|
|
2259
|
+
]
|
|
2260
|
+
}
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
"name": "cp_a",
|
|
2264
|
+
"type": {
|
|
2265
|
+
"defined": {
|
|
2266
|
+
"name": "CheckpointArg"
|
|
2267
|
+
}
|
|
2268
|
+
}
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
"name": "cp_b",
|
|
2272
|
+
"type": {
|
|
2273
|
+
"defined": {
|
|
2274
|
+
"name": "CheckpointArg"
|
|
2275
|
+
}
|
|
2276
|
+
}
|
|
2277
|
+
},
|
|
2278
|
+
{
|
|
2279
|
+
"name": "sig_a",
|
|
2280
|
+
"type": {
|
|
2281
|
+
"array": [
|
|
2282
|
+
"u8",
|
|
2283
|
+
65
|
|
2284
|
+
]
|
|
2285
|
+
}
|
|
2286
|
+
},
|
|
2287
|
+
{
|
|
2288
|
+
"name": "sig_b",
|
|
2289
|
+
"type": {
|
|
2290
|
+
"array": [
|
|
2291
|
+
"u8",
|
|
2292
|
+
65
|
|
2293
|
+
]
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
]
|
|
2297
|
+
},
|
|
2163
2298
|
{
|
|
2164
2299
|
"name": "refund_pending",
|
|
2165
2300
|
"discriminator": [
|
|
@@ -4179,6 +4314,19 @@
|
|
|
4179
4314
|
226
|
|
4180
4315
|
]
|
|
4181
4316
|
},
|
|
4317
|
+
{
|
|
4318
|
+
"name": "XLocalEquivocationProven",
|
|
4319
|
+
"discriminator": [
|
|
4320
|
+
140,
|
|
4321
|
+
113,
|
|
4322
|
+
104,
|
|
4323
|
+
158,
|
|
4324
|
+
24,
|
|
4325
|
+
7,
|
|
4326
|
+
144,
|
|
4327
|
+
217
|
|
4328
|
+
]
|
|
4329
|
+
},
|
|
4182
4330
|
{
|
|
4183
4331
|
"name": "XMatchCreated",
|
|
4184
4332
|
"discriminator": [
|
|
@@ -5915,6 +6063,36 @@
|
|
|
5915
6063
|
]
|
|
5916
6064
|
}
|
|
5917
6065
|
},
|
|
6066
|
+
{
|
|
6067
|
+
"name": "XLocalEquivocationProven",
|
|
6068
|
+
"type": {
|
|
6069
|
+
"kind": "struct",
|
|
6070
|
+
"fields": [
|
|
6071
|
+
{
|
|
6072
|
+
"name": "match_id",
|
|
6073
|
+
"type": {
|
|
6074
|
+
"array": [
|
|
6075
|
+
"u8",
|
|
6076
|
+
32
|
|
6077
|
+
]
|
|
6078
|
+
}
|
|
6079
|
+
},
|
|
6080
|
+
{
|
|
6081
|
+
"name": "session_key",
|
|
6082
|
+
"type": {
|
|
6083
|
+
"array": [
|
|
6084
|
+
"u8",
|
|
6085
|
+
20
|
|
6086
|
+
]
|
|
6087
|
+
}
|
|
6088
|
+
},
|
|
6089
|
+
{
|
|
6090
|
+
"name": "new_best_outcome",
|
|
6091
|
+
"type": "u8"
|
|
6092
|
+
}
|
|
6093
|
+
]
|
|
6094
|
+
}
|
|
6095
|
+
},
|
|
5918
6096
|
{
|
|
5919
6097
|
"name": "XMatchCreated",
|
|
5920
6098
|
"type": {
|
|
@@ -1469,6 +1469,59 @@
|
|
|
1469
1469
|
],
|
|
1470
1470
|
"args": []
|
|
1471
1471
|
},
|
|
1472
|
+
{
|
|
1473
|
+
"name": "set_devnet_enabled",
|
|
1474
|
+
"discriminator": [
|
|
1475
|
+
186,
|
|
1476
|
+
145,
|
|
1477
|
+
8,
|
|
1478
|
+
221,
|
|
1479
|
+
180,
|
|
1480
|
+
97,
|
|
1481
|
+
214,
|
|
1482
|
+
209
|
|
1483
|
+
],
|
|
1484
|
+
"accounts": [
|
|
1485
|
+
{
|
|
1486
|
+
"name": "global_state",
|
|
1487
|
+
"writable": true,
|
|
1488
|
+
"pda": {
|
|
1489
|
+
"seeds": [
|
|
1490
|
+
{
|
|
1491
|
+
"kind": "const",
|
|
1492
|
+
"value": [
|
|
1493
|
+
115,
|
|
1494
|
+
104,
|
|
1495
|
+
105,
|
|
1496
|
+
108,
|
|
1497
|
+
108,
|
|
1498
|
+
98,
|
|
1499
|
+
111,
|
|
1500
|
+
116,
|
|
1501
|
+
95,
|
|
1502
|
+
103,
|
|
1503
|
+
108,
|
|
1504
|
+
111,
|
|
1505
|
+
98,
|
|
1506
|
+
97,
|
|
1507
|
+
108
|
|
1508
|
+
]
|
|
1509
|
+
}
|
|
1510
|
+
]
|
|
1511
|
+
}
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
"name": "authority",
|
|
1515
|
+
"signer": true
|
|
1516
|
+
}
|
|
1517
|
+
],
|
|
1518
|
+
"args": [
|
|
1519
|
+
{
|
|
1520
|
+
"name": "enabled",
|
|
1521
|
+
"type": "bool"
|
|
1522
|
+
}
|
|
1523
|
+
]
|
|
1524
|
+
},
|
|
1472
1525
|
{
|
|
1473
1526
|
"name": "set_payout_to",
|
|
1474
1527
|
"docs": [
|
|
@@ -2375,6 +2428,19 @@
|
|
|
2375
2428
|
105
|
|
2376
2429
|
]
|
|
2377
2430
|
},
|
|
2431
|
+
{
|
|
2432
|
+
"name": "DevnetEnabledUpdated",
|
|
2433
|
+
"discriminator": [
|
|
2434
|
+
134,
|
|
2435
|
+
199,
|
|
2436
|
+
123,
|
|
2437
|
+
224,
|
|
2438
|
+
220,
|
|
2439
|
+
73,
|
|
2440
|
+
89,
|
|
2441
|
+
126
|
|
2442
|
+
]
|
|
2443
|
+
},
|
|
2378
2444
|
{
|
|
2379
2445
|
"name": "EmergencyReturn",
|
|
2380
2446
|
"discriminator": [
|
|
@@ -2905,6 +2971,31 @@
|
|
|
2905
2971
|
"code": 6058,
|
|
2906
2972
|
"name": "InvalidInstructionBundle",
|
|
2907
2973
|
"msg": "OnChainAction claim must be bundled atomically at top-level with submit_work"
|
|
2974
|
+
},
|
|
2975
|
+
{
|
|
2976
|
+
"code": 6059,
|
|
2977
|
+
"name": "DevnetOnly",
|
|
2978
|
+
"msg": "Instruction or verification mode is restricted to devnet"
|
|
2979
|
+
},
|
|
2980
|
+
{
|
|
2981
|
+
"code": 6060,
|
|
2982
|
+
"name": "BelowMinimumEscrow",
|
|
2983
|
+
"msg": "Escrow amount is below the minimum required for this platform"
|
|
2984
|
+
},
|
|
2985
|
+
{
|
|
2986
|
+
"code": 6061,
|
|
2987
|
+
"name": "DeadlineTooFarInFuture",
|
|
2988
|
+
"msg": "Task deadline exceeds maximum allowed horizon"
|
|
2989
|
+
},
|
|
2990
|
+
{
|
|
2991
|
+
"code": 6062,
|
|
2992
|
+
"name": "VerificationTimeoutExceeded",
|
|
2993
|
+
"msg": "Verification timeout window has elapsed since submission"
|
|
2994
|
+
},
|
|
2995
|
+
{
|
|
2996
|
+
"code": 6063,
|
|
2997
|
+
"name": "StrikeCooldownActive",
|
|
2998
|
+
"msg": "Agent is in cooldown after a score-0 reopened submission"
|
|
2908
2999
|
}
|
|
2909
3000
|
],
|
|
2910
3001
|
"types": [
|
|
@@ -3000,17 +3091,13 @@
|
|
|
3000
3091
|
"type": "u64"
|
|
3001
3092
|
},
|
|
3002
3093
|
{
|
|
3003
|
-
"name": "
|
|
3094
|
+
"name": "last_strike_at",
|
|
3004
3095
|
"docs": [
|
|
3005
|
-
"
|
|
3006
|
-
"
|
|
3096
|
+
"Unix timestamp of the most recent score-0 reopened submission for this",
|
|
3097
|
+
"agent (`0` = none). Carved from the 8-byte `_reserved` slot so",
|
|
3098
|
+
"`AgentState::SPACE` stays `90` and existing accounts read `0`."
|
|
3007
3099
|
],
|
|
3008
|
-
"type":
|
|
3009
|
-
"array": [
|
|
3010
|
-
"u8",
|
|
3011
|
-
8
|
|
3012
|
-
]
|
|
3013
|
-
}
|
|
3100
|
+
"type": "i64"
|
|
3014
3101
|
},
|
|
3015
3102
|
{
|
|
3016
3103
|
"name": "bump",
|
|
@@ -3229,6 +3316,18 @@
|
|
|
3229
3316
|
]
|
|
3230
3317
|
}
|
|
3231
3318
|
},
|
|
3319
|
+
{
|
|
3320
|
+
"name": "DevnetEnabledUpdated",
|
|
3321
|
+
"type": {
|
|
3322
|
+
"kind": "struct",
|
|
3323
|
+
"fields": [
|
|
3324
|
+
{
|
|
3325
|
+
"name": "devnet_enabled",
|
|
3326
|
+
"type": "bool"
|
|
3327
|
+
}
|
|
3328
|
+
]
|
|
3329
|
+
}
|
|
3330
|
+
},
|
|
3232
3331
|
{
|
|
3233
3332
|
"name": "EmergencyReturn",
|
|
3234
3333
|
"type": {
|
|
@@ -3430,17 +3529,25 @@
|
|
|
3430
3529
|
],
|
|
3431
3530
|
"type": "i64"
|
|
3432
3531
|
},
|
|
3532
|
+
{
|
|
3533
|
+
"name": "devnet_enabled",
|
|
3534
|
+
"docs": [
|
|
3535
|
+
"Whether devnet-only verification paths (`verify_task` and kind-0",
|
|
3536
|
+
"`OnChainAction`) are enabled. Carved from `_reserved` — existing",
|
|
3537
|
+
"zero-initialized mainnet accounts read `false` without migration."
|
|
3538
|
+
],
|
|
3539
|
+
"type": "bool"
|
|
3540
|
+
},
|
|
3433
3541
|
{
|
|
3434
3542
|
"name": "_reserved",
|
|
3435
3543
|
"docs": [
|
|
3436
3544
|
"Reserved space for future fields without reallocation.",
|
|
3437
|
-
"32 → 12 by D2/D3 → 4 by
|
|
3438
|
-
"`dispute_resolution_window_seconds` carve."
|
|
3545
|
+
"32 → 12 by D2/D3 → 4 by dispute-window carve → 3 by `devnet_enabled`."
|
|
3439
3546
|
],
|
|
3440
3547
|
"type": {
|
|
3441
3548
|
"array": [
|
|
3442
3549
|
"u8",
|
|
3443
|
-
|
|
3550
|
+
3
|
|
3444
3551
|
]
|
|
3445
3552
|
}
|
|
3446
3553
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const OPENAPI_VERSION: "0.
|
|
1
|
+
export declare const OPENAPI_VERSION: "0.4.2";
|
|
2
2
|
export declare const OPENAPI_SERVERS: readonly ["https://mcp.swarm.tips", "https://api.shillbot.org", "https://api.coordination.game"];
|
|
3
3
|
export type OpenApiServerUrl = (typeof OPENAPI_SERVERS)[number];
|
|
4
4
|
export interface OpenApiSchemas {
|
|
@@ -113,6 +113,7 @@ export interface OpenApiSchemas {
|
|
|
113
113
|
created_at: string;
|
|
114
114
|
experiment_cohort: string;
|
|
115
115
|
lean_policy?: number | null;
|
|
116
|
+
onchain_action_spec?: Record<string, unknown> | null;
|
|
116
117
|
policy_id?: string | null;
|
|
117
118
|
spent_lamports: number;
|
|
118
119
|
status: OpenApiSchemas["CampaignStatus"];
|
|
@@ -167,6 +168,7 @@ export interface OpenApiSchemas {
|
|
|
167
168
|
daily_cap_lamports?: number | null;
|
|
168
169
|
experiment_cohort?: string | null;
|
|
169
170
|
lean_policy?: number | null;
|
|
171
|
+
onchain_action?: Record<string, unknown> | null;
|
|
170
172
|
platform?: number;
|
|
171
173
|
requires_approval?: boolean;
|
|
172
174
|
statement_lean?: string | null;
|
|
@@ -208,6 +210,7 @@ export interface OpenApiSchemas {
|
|
|
208
210
|
};
|
|
209
211
|
EvmStakedRequest: {
|
|
210
212
|
game_id: string;
|
|
213
|
+
wallet?: string | null;
|
|
211
214
|
};
|
|
212
215
|
ExperimentParams: {
|
|
213
216
|
cohort_name?: string;
|
|
@@ -306,6 +309,12 @@ export interface OpenApiSchemas {
|
|
|
306
309
|
NetworkQuery: {
|
|
307
310
|
network?: string | null;
|
|
308
311
|
};
|
|
312
|
+
OnChainActionInstructions: {
|
|
313
|
+
atomic_claim_and_submit: boolean;
|
|
314
|
+
content_id_format: string;
|
|
315
|
+
guidance: string;
|
|
316
|
+
status: string;
|
|
317
|
+
};
|
|
309
318
|
OnboardResponse: {
|
|
310
319
|
message: string;
|
|
311
320
|
signature: string;
|
|
@@ -323,12 +332,15 @@ export interface OpenApiSchemas {
|
|
|
323
332
|
wins: number;
|
|
324
333
|
};
|
|
325
334
|
PreflightTaskRequest: {
|
|
326
|
-
|
|
335
|
+
agent_wallet?: string | null;
|
|
336
|
+
content_id?: string | null;
|
|
337
|
+
proof_lean?: string;
|
|
327
338
|
};
|
|
328
339
|
PreflightTaskResponse: {
|
|
329
340
|
detail: string;
|
|
330
341
|
lean_policy: number;
|
|
331
342
|
ok: boolean;
|
|
343
|
+
status?: string | null;
|
|
332
344
|
task_id: string;
|
|
333
345
|
};
|
|
334
346
|
QueueRequest: {
|
|
@@ -475,6 +487,8 @@ export interface OpenApiSchemas {
|
|
|
475
487
|
gameplay_instructions?: null | OpenApiSchemas["GamePlayInstructions"];
|
|
476
488
|
lean_policy?: number | null;
|
|
477
489
|
lean_proof_instructions?: null | OpenApiSchemas["LeanProofInstructions"];
|
|
490
|
+
onchain_action_instructions?: null | OpenApiSchemas["OnChainActionInstructions"];
|
|
491
|
+
onchain_action_spec?: Record<string, unknown> | null;
|
|
478
492
|
payment_amount?: number | null;
|
|
479
493
|
platform: number;
|
|
480
494
|
quality_threshold: number;
|
|
@@ -487,6 +501,7 @@ export interface OpenApiSchemas {
|
|
|
487
501
|
task_id: string;
|
|
488
502
|
task_nonce?: string | null;
|
|
489
503
|
task_pda?: string | null;
|
|
504
|
+
trust_level?: string | null;
|
|
490
505
|
website_instructions?: null | OpenApiSchemas["WebsiteInstructions"];
|
|
491
506
|
};
|
|
492
507
|
TaskState: "open" | "claimed" | "submitted" | "approved" | "verified" | "finalized" | "disputed" | "resolved" | "expired";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// AUTO-GENERATED by scripts/sync-generated.mjs from services/mcp-server/openapi.merged.json.
|
|
2
2
|
// Do not edit by hand — run `pnpm --filter @swarm-tips/client sync:generated`.
|
|
3
|
-
export const OPENAPI_VERSION = "0.
|
|
3
|
+
export const OPENAPI_VERSION = "0.4.2";
|
|
4
4
|
export const OPENAPI_SERVERS = [
|
|
5
5
|
"https://mcp.swarm.tips",
|
|
6
6
|
"https://api.shillbot.org",
|
package/dist/inbox/client.d.ts
CHANGED
|
@@ -158,9 +158,8 @@ export interface ReportReceipt {
|
|
|
158
158
|
hidden: boolean;
|
|
159
159
|
already_reported: boolean;
|
|
160
160
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
export type TopicId = "open-challenge" | "subcontract";
|
|
161
|
+
import { VALID_TOPICS, isValidTopicId, type TopicId } from "./types.js";
|
|
162
|
+
export { VALID_TOPICS, isValidTopicId, type TopicId };
|
|
164
163
|
export interface SendReceipt {
|
|
165
164
|
msg_id: string;
|
|
166
165
|
thread_id: string;
|
|
@@ -281,4 +280,3 @@ export declare class InboxClient {
|
|
|
281
280
|
private readCachedSession;
|
|
282
281
|
private writeCachedSession;
|
|
283
282
|
}
|
|
284
|
-
export {};
|