@swarm-tips/client 0.4.1 → 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.
@@ -998,6 +998,31 @@ export type CoordinationGame = {
998
998
  ];
999
999
  };
1000
1000
  },
1001
+ {
1002
+ "name": "globalConfig";
1003
+ "pda": {
1004
+ "seeds": [
1005
+ {
1006
+ "kind": "const";
1007
+ "value": [
1008
+ 103,
1009
+ 108,
1010
+ 111,
1011
+ 98,
1012
+ 97,
1013
+ 108,
1014
+ 95,
1015
+ 99,
1016
+ 111,
1017
+ 110,
1018
+ 102,
1019
+ 105,
1020
+ 103
1021
+ ];
1022
+ }
1023
+ ];
1024
+ };
1025
+ },
1001
1026
  {
1002
1027
  "name": "authority";
1003
1028
  "writable": true;
@@ -1221,11 +1246,38 @@ export type CoordinationGame = {
1221
1246
  {
1222
1247
  "name": "tournament";
1223
1248
  },
1249
+ {
1250
+ "name": "globalConfig";
1251
+ "pda": {
1252
+ "seeds": [
1253
+ {
1254
+ "kind": "const";
1255
+ "value": [
1256
+ 103,
1257
+ 108,
1258
+ 111,
1259
+ 98,
1260
+ 97,
1261
+ 108,
1262
+ 95,
1263
+ 99,
1264
+ 111,
1265
+ 110,
1266
+ 102,
1267
+ 105,
1268
+ 103
1269
+ ];
1270
+ }
1271
+ ];
1272
+ };
1273
+ },
1224
1274
  {
1225
1275
  "name": "player";
1226
1276
  "docs": [
1227
- "Verified against session_authority.player in the handler."
1277
+ "Verified against session_authority.player in the handler. Mutable so any",
1278
+ "downward stake re-peg excess refunds strictly to the player wallet."
1228
1279
  ];
1280
+ "writable": true;
1229
1281
  },
1230
1282
  {
1231
1283
  "name": "sessionAuthority";
@@ -2166,6 +2218,89 @@ export type CoordinationGame = {
2166
2218
  }
2167
2219
  ];
2168
2220
  },
2221
+ {
2222
+ "name": "proveLocalEquivocation";
2223
+ "discriminator": [
2224
+ 57,
2225
+ 20,
2226
+ 235,
2227
+ 37,
2228
+ 36,
2229
+ 185,
2230
+ 45,
2231
+ 214
2232
+ ];
2233
+ "accounts": [
2234
+ {
2235
+ "name": "xmatch";
2236
+ "writable": true;
2237
+ "pda": {
2238
+ "seeds": [
2239
+ {
2240
+ "kind": "const";
2241
+ "value": [
2242
+ 120,
2243
+ 109,
2244
+ 97,
2245
+ 116,
2246
+ 99,
2247
+ 104
2248
+ ];
2249
+ },
2250
+ {
2251
+ "kind": "arg";
2252
+ "path": "matchId";
2253
+ }
2254
+ ];
2255
+ };
2256
+ }
2257
+ ];
2258
+ "args": [
2259
+ {
2260
+ "name": "matchId";
2261
+ "type": {
2262
+ "array": [
2263
+ "u8",
2264
+ 32
2265
+ ];
2266
+ };
2267
+ },
2268
+ {
2269
+ "name": "cpA";
2270
+ "type": {
2271
+ "defined": {
2272
+ "name": "checkpointArg";
2273
+ };
2274
+ };
2275
+ },
2276
+ {
2277
+ "name": "cpB";
2278
+ "type": {
2279
+ "defined": {
2280
+ "name": "checkpointArg";
2281
+ };
2282
+ };
2283
+ },
2284
+ {
2285
+ "name": "sigA";
2286
+ "type": {
2287
+ "array": [
2288
+ "u8",
2289
+ 65
2290
+ ];
2291
+ };
2292
+ },
2293
+ {
2294
+ "name": "sigB";
2295
+ "type": {
2296
+ "array": [
2297
+ "u8",
2298
+ 65
2299
+ ];
2300
+ };
2301
+ }
2302
+ ];
2303
+ },
2169
2304
  {
2170
2305
  "name": "refundPending";
2171
2306
  "discriminator": [
@@ -4185,6 +4320,19 @@ export type CoordinationGame = {
4185
4320
  226
4186
4321
  ];
4187
4322
  },
4323
+ {
4324
+ "name": "xLocalEquivocationProven";
4325
+ "discriminator": [
4326
+ 140,
4327
+ 113,
4328
+ 104,
4329
+ 158,
4330
+ 24,
4331
+ 7,
4332
+ 144,
4333
+ 217
4334
+ ];
4335
+ },
4188
4336
  {
4189
4337
  "name": "xMatchCreated";
4190
4338
  "discriminator": [
@@ -5921,6 +6069,36 @@ export type CoordinationGame = {
5921
6069
  ];
5922
6070
  };
5923
6071
  },
6072
+ {
6073
+ "name": "xLocalEquivocationProven";
6074
+ "type": {
6075
+ "kind": "struct";
6076
+ "fields": [
6077
+ {
6078
+ "name": "matchId";
6079
+ "type": {
6080
+ "array": [
6081
+ "u8",
6082
+ 32
6083
+ ];
6084
+ };
6085
+ },
6086
+ {
6087
+ "name": "sessionKey";
6088
+ "type": {
6089
+ "array": [
6090
+ "u8",
6091
+ 20
6092
+ ];
6093
+ };
6094
+ },
6095
+ {
6096
+ "name": "newBestOutcome";
6097
+ "type": "u8";
6098
+ }
6099
+ ];
6100
+ };
6101
+ },
5924
6102
  {
5925
6103
  "name": "xMatchCreated";
5926
6104
  "type": {
@@ -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": "reserved";
3100
+ "name": "lastStrikeAt";
3010
3101
  "docs": [
3011
- "Reserved space for future fields without reallocation. Reduced from",
3012
- "32 to 8 bytes when the three counters above were claimed."
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 the 2026-07-07",
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
- 4
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": {