@oobe-protocol-labs/synapse-sap-sdk 0.15.1 → 0.16.1

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.
@@ -2,7 +2,7 @@
2
2
  "address": "SAPpUhsWLJG1FfkGRcXagEDMrMsWGjbky7AyhGpFETZ",
3
3
  "metadata": {
4
4
  "name": "synapse_agent_sap",
5
- "version": "0.2.0",
5
+ "version": "0.25.0",
6
6
  "spec": "0.1.0",
7
7
  "description": "Created with Anchor"
8
8
  },
@@ -438,6 +438,206 @@
438
438
  }
439
439
  ]
440
440
  },
441
+ {
442
+ "name": "append_buffer",
443
+ "docs": [
444
+ "Append data to buffer page. ≤750B per call, uses realloc."
445
+ ],
446
+ "discriminator": [
447
+ 168,
448
+ 36,
449
+ 127,
450
+ 59,
451
+ 138,
452
+ 135,
453
+ 234,
454
+ 0
455
+ ],
456
+ "accounts": [
457
+ {
458
+ "name": "wallet",
459
+ "writable": true,
460
+ "signer": true,
461
+ "relations": [
462
+ "agent"
463
+ ]
464
+ },
465
+ {
466
+ "name": "agent",
467
+ "pda": {
468
+ "seeds": [
469
+ {
470
+ "kind": "const",
471
+ "value": [
472
+ 115,
473
+ 97,
474
+ 112,
475
+ 95,
476
+ 97,
477
+ 103,
478
+ 101,
479
+ 110,
480
+ 116
481
+ ]
482
+ },
483
+ {
484
+ "kind": "account",
485
+ "path": "wallet"
486
+ }
487
+ ]
488
+ }
489
+ },
490
+ {
491
+ "name": "vault",
492
+ "pda": {
493
+ "seeds": [
494
+ {
495
+ "kind": "const",
496
+ "value": [
497
+ 115,
498
+ 97,
499
+ 112,
500
+ 95,
501
+ 118,
502
+ 97,
503
+ 117,
504
+ 108,
505
+ 116
506
+ ]
507
+ },
508
+ {
509
+ "kind": "account",
510
+ "path": "agent"
511
+ }
512
+ ]
513
+ },
514
+ "relations": [
515
+ "session"
516
+ ]
517
+ },
518
+ {
519
+ "name": "session"
520
+ },
521
+ {
522
+ "name": "buffer",
523
+ "writable": true,
524
+ "pda": {
525
+ "seeds": [
526
+ {
527
+ "kind": "const",
528
+ "value": [
529
+ 115,
530
+ 97,
531
+ 112,
532
+ 95,
533
+ 98,
534
+ 117,
535
+ 102,
536
+ 102,
537
+ 101,
538
+ 114
539
+ ]
540
+ },
541
+ {
542
+ "kind": "account",
543
+ "path": "session"
544
+ },
545
+ {
546
+ "kind": "arg",
547
+ "path": "page_index"
548
+ }
549
+ ]
550
+ }
551
+ },
552
+ {
553
+ "name": "system_program",
554
+ "address": "11111111111111111111111111111111"
555
+ }
556
+ ],
557
+ "args": [
558
+ {
559
+ "name": "page_index",
560
+ "type": "u32"
561
+ },
562
+ {
563
+ "name": "data",
564
+ "type": "bytes"
565
+ }
566
+ ]
567
+ },
568
+ {
569
+ "name": "append_memory_chunk",
570
+ "docs": [
571
+ "Append onchain chunk to memory entry. Max 900B."
572
+ ],
573
+ "discriminator": [
574
+ 165,
575
+ 107,
576
+ 165,
577
+ 229,
578
+ 120,
579
+ 250,
580
+ 89,
581
+ 67
582
+ ],
583
+ "accounts": [
584
+ {
585
+ "name": "wallet",
586
+ "writable": true,
587
+ "signer": true,
588
+ "relations": [
589
+ "agent"
590
+ ]
591
+ },
592
+ {
593
+ "name": "agent",
594
+ "pda": {
595
+ "seeds": [
596
+ {
597
+ "kind": "const",
598
+ "value": [
599
+ 115,
600
+ 97,
601
+ 112,
602
+ 95,
603
+ 97,
604
+ 103,
605
+ 101,
606
+ 110,
607
+ 116
608
+ ]
609
+ },
610
+ {
611
+ "kind": "account",
612
+ "path": "wallet"
613
+ }
614
+ ]
615
+ }
616
+ },
617
+ {
618
+ "name": "memory_entry",
619
+ "writable": true
620
+ },
621
+ {
622
+ "name": "memory_chunk",
623
+ "writable": true
624
+ },
625
+ {
626
+ "name": "system_program",
627
+ "address": "11111111111111111111111111111111"
628
+ }
629
+ ],
630
+ "args": [
631
+ {
632
+ "name": "chunk_index",
633
+ "type": "u8"
634
+ },
635
+ {
636
+ "name": "data",
637
+ "type": "bytes"
638
+ }
639
+ ]
640
+ },
441
641
  {
442
642
  "name": "auto_resolve_dispute",
443
643
  "docs": [
@@ -860,6 +1060,34 @@
860
1060
  ]
861
1061
  }
862
1062
  },
1063
+ {
1064
+ "name": "pricing_menu",
1065
+ "writable": true,
1066
+ "pda": {
1067
+ "seeds": [
1068
+ {
1069
+ "kind": "const",
1070
+ "value": [
1071
+ 115,
1072
+ 97,
1073
+ 112,
1074
+ 95,
1075
+ 112,
1076
+ 114,
1077
+ 105,
1078
+ 99,
1079
+ 105,
1080
+ 110,
1081
+ 103
1082
+ ]
1083
+ },
1084
+ {
1085
+ "kind": "account",
1086
+ "path": "agent"
1087
+ }
1088
+ ]
1089
+ }
1090
+ },
863
1091
  {
864
1092
  "name": "global_registry",
865
1093
  "writable": true,
@@ -974,19 +1202,19 @@
974
1202
  "args": []
975
1203
  },
976
1204
  {
977
- "name": "close_capability_index",
1205
+ "name": "close_buffer",
978
1206
  "docs": [
979
- "Close empty capability index PDA. Remove all agents first."
1207
+ "Close a buffer page, reclaim ALL accumulated rent."
980
1208
  ],
981
1209
  "discriminator": [
982
- 245,
983
- 115,
984
- 17,
985
- 204,
1210
+ 46,
1211
+ 114,
986
1212
  179,
987
- 151,
988
- 105,
989
- 239
1213
+ 58,
1214
+ 57,
1215
+ 45,
1216
+ 194,
1217
+ 172
990
1218
  ],
991
1219
  "accounts": [
992
1220
  {
@@ -1023,8 +1251,7 @@
1023
1251
  }
1024
1252
  },
1025
1253
  {
1026
- "name": "capability_index",
1027
- "writable": true,
1254
+ "name": "vault",
1028
1255
  "pda": {
1029
1256
  "seeds": [
1030
1257
  {
@@ -1034,25 +1261,145 @@
1034
1261
  97,
1035
1262
  112,
1036
1263
  95,
1037
- 99,
1264
+ 118,
1038
1265
  97,
1039
- 112,
1040
- 95,
1041
- 105,
1042
- 100,
1043
- 120
1266
+ 117,
1267
+ 108,
1268
+ 116
1044
1269
  ]
1045
1270
  },
1046
1271
  {
1047
- "kind": "arg",
1048
- "path": "capability_hash"
1272
+ "kind": "account",
1273
+ "path": "agent"
1049
1274
  }
1050
1275
  ]
1051
- }
1276
+ },
1277
+ "relations": [
1278
+ "session"
1279
+ ]
1052
1280
  },
1053
1281
  {
1054
- "name": "global_registry",
1055
- "writable": true,
1282
+ "name": "session"
1283
+ },
1284
+ {
1285
+ "name": "buffer",
1286
+ "writable": true,
1287
+ "pda": {
1288
+ "seeds": [
1289
+ {
1290
+ "kind": "const",
1291
+ "value": [
1292
+ 115,
1293
+ 97,
1294
+ 112,
1295
+ 95,
1296
+ 98,
1297
+ 117,
1298
+ 102,
1299
+ 102,
1300
+ 101,
1301
+ 114
1302
+ ]
1303
+ },
1304
+ {
1305
+ "kind": "account",
1306
+ "path": "session"
1307
+ },
1308
+ {
1309
+ "kind": "arg",
1310
+ "path": "page_index"
1311
+ }
1312
+ ]
1313
+ }
1314
+ }
1315
+ ],
1316
+ "args": [
1317
+ {
1318
+ "name": "page_index",
1319
+ "type": "u32"
1320
+ }
1321
+ ]
1322
+ },
1323
+ {
1324
+ "name": "close_capability_index",
1325
+ "docs": [
1326
+ "Close empty capability index PDA. Remove all agents first."
1327
+ ],
1328
+ "discriminator": [
1329
+ 245,
1330
+ 115,
1331
+ 17,
1332
+ 204,
1333
+ 179,
1334
+ 151,
1335
+ 105,
1336
+ 239
1337
+ ],
1338
+ "accounts": [
1339
+ {
1340
+ "name": "wallet",
1341
+ "writable": true,
1342
+ "signer": true,
1343
+ "relations": [
1344
+ "agent"
1345
+ ]
1346
+ },
1347
+ {
1348
+ "name": "agent",
1349
+ "pda": {
1350
+ "seeds": [
1351
+ {
1352
+ "kind": "const",
1353
+ "value": [
1354
+ 115,
1355
+ 97,
1356
+ 112,
1357
+ 95,
1358
+ 97,
1359
+ 103,
1360
+ 101,
1361
+ 110,
1362
+ 116
1363
+ ]
1364
+ },
1365
+ {
1366
+ "kind": "account",
1367
+ "path": "wallet"
1368
+ }
1369
+ ]
1370
+ }
1371
+ },
1372
+ {
1373
+ "name": "capability_index",
1374
+ "writable": true,
1375
+ "pda": {
1376
+ "seeds": [
1377
+ {
1378
+ "kind": "const",
1379
+ "value": [
1380
+ 115,
1381
+ 97,
1382
+ 112,
1383
+ 95,
1384
+ 99,
1385
+ 97,
1386
+ 112,
1387
+ 95,
1388
+ 105,
1389
+ 100,
1390
+ 120
1391
+ ]
1392
+ },
1393
+ {
1394
+ "kind": "arg",
1395
+ "path": "capability_hash"
1396
+ }
1397
+ ]
1398
+ }
1399
+ },
1400
+ {
1401
+ "name": "global_registry",
1402
+ "writable": true,
1056
1403
  "pda": {
1057
1404
  "seeds": [
1058
1405
  {
@@ -1212,6 +1559,116 @@
1212
1559
  }
1213
1560
  ]
1214
1561
  },
1562
+ {
1563
+ "name": "close_digest",
1564
+ "docs": [
1565
+ "Close a digest PDA, reclaim all rent."
1566
+ ],
1567
+ "discriminator": [
1568
+ 168,
1569
+ 76,
1570
+ 145,
1571
+ 230,
1572
+ 141,
1573
+ 231,
1574
+ 180,
1575
+ 170
1576
+ ],
1577
+ "accounts": [
1578
+ {
1579
+ "name": "wallet",
1580
+ "writable": true,
1581
+ "signer": true,
1582
+ "relations": [
1583
+ "agent"
1584
+ ]
1585
+ },
1586
+ {
1587
+ "name": "session"
1588
+ },
1589
+ {
1590
+ "name": "vault",
1591
+ "pda": {
1592
+ "seeds": [
1593
+ {
1594
+ "kind": "const",
1595
+ "value": [
1596
+ 115,
1597
+ 97,
1598
+ 112,
1599
+ 95,
1600
+ 118,
1601
+ 97,
1602
+ 117,
1603
+ 108,
1604
+ 116
1605
+ ]
1606
+ },
1607
+ {
1608
+ "kind": "account",
1609
+ "path": "agent"
1610
+ }
1611
+ ]
1612
+ },
1613
+ "relations": [
1614
+ "session"
1615
+ ]
1616
+ },
1617
+ {
1618
+ "name": "agent",
1619
+ "pda": {
1620
+ "seeds": [
1621
+ {
1622
+ "kind": "const",
1623
+ "value": [
1624
+ 115,
1625
+ 97,
1626
+ 112,
1627
+ 95,
1628
+ 97,
1629
+ 103,
1630
+ 101,
1631
+ 110,
1632
+ 116
1633
+ ]
1634
+ },
1635
+ {
1636
+ "kind": "account",
1637
+ "path": "wallet"
1638
+ }
1639
+ ]
1640
+ }
1641
+ },
1642
+ {
1643
+ "name": "digest",
1644
+ "writable": true,
1645
+ "pda": {
1646
+ "seeds": [
1647
+ {
1648
+ "kind": "const",
1649
+ "value": [
1650
+ 115,
1651
+ 97,
1652
+ 112,
1653
+ 95,
1654
+ 100,
1655
+ 105,
1656
+ 103,
1657
+ 101,
1658
+ 115,
1659
+ 116
1660
+ ]
1661
+ },
1662
+ {
1663
+ "kind": "account",
1664
+ "path": "session"
1665
+ }
1666
+ ]
1667
+ }
1668
+ }
1669
+ ],
1670
+ "args": []
1671
+ },
1215
1672
  {
1216
1673
  "name": "close_dispute",
1217
1674
  "docs": [
@@ -1387,19 +1844,19 @@
1387
1844
  ]
1388
1845
  },
1389
1846
  {
1390
- "name": "close_escrow",
1847
+ "name": "close_escrow_v2",
1391
1848
  "docs": [
1392
- "Close empty escrow PDA. Withdraw first."
1849
+ "Close empty V2 escrow. No pending settlements allowed."
1393
1850
  ],
1394
1851
  "discriminator": [
1395
- 139,
1396
- 171,
1397
- 94,
1398
- 146,
1399
- 191,
1400
- 91,
1401
- 144,
1402
- 50
1852
+ 141,
1853
+ 143,
1854
+ 242,
1855
+ 235,
1856
+ 51,
1857
+ 231,
1858
+ 98,
1859
+ 132
1403
1860
  ],
1404
1861
  "accounts": [
1405
1862
  {
@@ -1427,50 +1884,31 @@
1427
1884
  99,
1428
1885
  114,
1429
1886
  111,
1430
- 119
1887
+ 119,
1888
+ 95,
1889
+ 118,
1890
+ 50
1431
1891
  ]
1432
1892
  },
1433
1893
  {
1434
1894
  "kind": "account",
1435
1895
  "path": "escrow.agent",
1436
- "account": "EscrowAccount"
1896
+ "account": "EscrowAccountV2"
1437
1897
  },
1438
1898
  {
1439
1899
  "kind": "account",
1440
1900
  "path": "depositor"
1901
+ },
1902
+ {
1903
+ "kind": "account",
1904
+ "path": "escrow.escrow_nonce",
1905
+ "account": "EscrowAccountV2"
1441
1906
  }
1442
1907
  ]
1443
1908
  }
1444
- }
1445
- ],
1446
- "args": []
1447
- },
1448
- {
1449
- "name": "close_escrow_v2",
1450
- "docs": [
1451
- "Close empty V2 escrow. No pending settlements allowed."
1452
- ],
1453
- "discriminator": [
1454
- 141,
1455
- 143,
1456
- 242,
1457
- 235,
1458
- 51,
1459
- 231,
1460
- 98,
1461
- 132
1462
- ],
1463
- "accounts": [
1464
- {
1465
- "name": "depositor",
1466
- "writable": true,
1467
- "signer": true,
1468
- "relations": [
1469
- "escrow"
1470
- ]
1471
1909
  },
1472
1910
  {
1473
- "name": "escrow",
1911
+ "name": "agent_stats",
1474
1912
  "writable": true,
1475
1913
  "pda": {
1476
1914
  "seeds": [
@@ -1478,33 +1916,20 @@
1478
1916
  "kind": "const",
1479
1917
  "value": [
1480
1918
  115,
1481
- 97,
1482
- 112,
1483
- 95,
1484
- 101,
1485
- 115,
1486
- 99,
1487
- 114,
1488
- 111,
1489
- 119,
1919
+ 97,
1920
+ 112,
1490
1921
  95,
1491
- 118,
1492
- 50
1922
+ 115,
1923
+ 116,
1924
+ 97,
1925
+ 116,
1926
+ 115
1493
1927
  ]
1494
1928
  },
1495
1929
  {
1496
1930
  "kind": "account",
1497
1931
  "path": "escrow.agent",
1498
1932
  "account": "EscrowAccountV2"
1499
- },
1500
- {
1501
- "kind": "account",
1502
- "path": "depositor"
1503
- },
1504
- {
1505
- "kind": "account",
1506
- "path": "escrow.escrow_nonce",
1507
- "account": "EscrowAccountV2"
1508
1933
  }
1509
1934
  ]
1510
1935
  }
@@ -1761,6 +2186,121 @@
1761
2186
  ],
1762
2187
  "args": []
1763
2188
  },
2189
+ {
2190
+ "name": "close_memory_chunk",
2191
+ "docs": [
2192
+ "Close a memory chunk PDA (rent returned to wallet)."
2193
+ ],
2194
+ "discriminator": [
2195
+ 94,
2196
+ 182,
2197
+ 119,
2198
+ 190,
2199
+ 134,
2200
+ 13,
2201
+ 9,
2202
+ 80
2203
+ ],
2204
+ "accounts": [
2205
+ {
2206
+ "name": "wallet",
2207
+ "writable": true,
2208
+ "signer": true,
2209
+ "relations": [
2210
+ "agent"
2211
+ ]
2212
+ },
2213
+ {
2214
+ "name": "agent",
2215
+ "pda": {
2216
+ "seeds": [
2217
+ {
2218
+ "kind": "const",
2219
+ "value": [
2220
+ 115,
2221
+ 97,
2222
+ 112,
2223
+ 95,
2224
+ 97,
2225
+ 103,
2226
+ 101,
2227
+ 110,
2228
+ 116
2229
+ ]
2230
+ },
2231
+ {
2232
+ "kind": "account",
2233
+ "path": "wallet"
2234
+ }
2235
+ ]
2236
+ }
2237
+ },
2238
+ {
2239
+ "name": "memory_entry"
2240
+ },
2241
+ {
2242
+ "name": "memory_chunk",
2243
+ "writable": true
2244
+ }
2245
+ ],
2246
+ "args": []
2247
+ },
2248
+ {
2249
+ "name": "close_memory_entry",
2250
+ "docs": [
2251
+ "Close a memory entry PDA (rent returned to wallet)."
2252
+ ],
2253
+ "discriminator": [
2254
+ 173,
2255
+ 191,
2256
+ 88,
2257
+ 60,
2258
+ 0,
2259
+ 29,
2260
+ 57,
2261
+ 185
2262
+ ],
2263
+ "accounts": [
2264
+ {
2265
+ "name": "wallet",
2266
+ "writable": true,
2267
+ "signer": true,
2268
+ "relations": [
2269
+ "agent"
2270
+ ]
2271
+ },
2272
+ {
2273
+ "name": "agent",
2274
+ "pda": {
2275
+ "seeds": [
2276
+ {
2277
+ "kind": "const",
2278
+ "value": [
2279
+ 115,
2280
+ 97,
2281
+ 112,
2282
+ 95,
2283
+ 97,
2284
+ 103,
2285
+ 101,
2286
+ 110,
2287
+ 116
2288
+ ]
2289
+ },
2290
+ {
2291
+ "kind": "account",
2292
+ "path": "wallet"
2293
+ }
2294
+ ]
2295
+ }
2296
+ },
2297
+ {
2298
+ "name": "memory_entry",
2299
+ "writable": true
2300
+ }
2301
+ ],
2302
+ "args": []
2303
+ },
1764
2304
  {
1765
2305
  "name": "close_pending_settlement",
1766
2306
  "docs": [
@@ -1819,6 +2359,63 @@
1819
2359
  ],
1820
2360
  "args": []
1821
2361
  },
2362
+ {
2363
+ "name": "close_plugin",
2364
+ "docs": [
2365
+ "Close plugin PDA. Removes from agent.active_plugins."
2366
+ ],
2367
+ "discriminator": [
2368
+ 71,
2369
+ 76,
2370
+ 91,
2371
+ 241,
2372
+ 155,
2373
+ 207,
2374
+ 69,
2375
+ 0
2376
+ ],
2377
+ "accounts": [
2378
+ {
2379
+ "name": "wallet",
2380
+ "writable": true,
2381
+ "signer": true,
2382
+ "relations": [
2383
+ "agent"
2384
+ ]
2385
+ },
2386
+ {
2387
+ "name": "agent",
2388
+ "writable": true,
2389
+ "pda": {
2390
+ "seeds": [
2391
+ {
2392
+ "kind": "const",
2393
+ "value": [
2394
+ 115,
2395
+ 97,
2396
+ 112,
2397
+ 95,
2398
+ 97,
2399
+ 103,
2400
+ 101,
2401
+ 110,
2402
+ 116
2403
+ ]
2404
+ },
2405
+ {
2406
+ "kind": "account",
2407
+ "path": "wallet"
2408
+ }
2409
+ ]
2410
+ }
2411
+ },
2412
+ {
2413
+ "name": "plugin_slot",
2414
+ "writable": true
2415
+ }
2416
+ ],
2417
+ "args": []
2418
+ },
1822
2419
  {
1823
2420
  "name": "close_protocol_index",
1824
2421
  "docs": [
@@ -2705,40 +3302,56 @@
2705
3302
  ]
2706
3303
  },
2707
3304
  {
2708
- "name": "create_escrow",
3305
+ "name": "create_buffer",
2709
3306
  "docs": [
2710
- "Create escrow. Locks price_per_call + optional max_calls. token_mint: None=SOL."
3307
+ "Create buffer page PDA. ≈0.001 SOL rent, reclaimable."
2711
3308
  ],
2712
3309
  "discriminator": [
2713
- 253,
2714
- 215,
2715
- 165,
2716
- 116,
2717
- 36,
2718
- 108,
2719
- 68,
2720
- 80
3310
+ 175,
3311
+ 76,
3312
+ 101,
3313
+ 74,
3314
+ 224,
3315
+ 249,
3316
+ 104,
3317
+ 170
2721
3318
  ],
2722
3319
  "accounts": [
2723
3320
  {
2724
- "name": "depositor",
3321
+ "name": "wallet",
2725
3322
  "writable": true,
2726
- "signer": true
3323
+ "signer": true,
3324
+ "relations": [
3325
+ "agent"
3326
+ ]
2727
3327
  },
2728
3328
  {
2729
3329
  "name": "agent",
2730
- "docs": [
2731
- "Agent to prepay for — anyone can create escrow"
2732
- ]
3330
+ "pda": {
3331
+ "seeds": [
3332
+ {
3333
+ "kind": "const",
3334
+ "value": [
3335
+ 115,
3336
+ 97,
3337
+ 112,
3338
+ 95,
3339
+ 97,
3340
+ 103,
3341
+ 101,
3342
+ 110,
3343
+ 116
3344
+ ]
3345
+ },
3346
+ {
3347
+ "kind": "account",
3348
+ "path": "wallet"
3349
+ }
3350
+ ]
3351
+ }
2733
3352
  },
2734
3353
  {
2735
- "name": "agent_stake",
2736
- "docs": [
2737
- "v0.10 hardening: agent MUST hold at least `AgentStake::MIN_STAKE`",
2738
- "in collateral before any new escrow can be opened. This guarantees",
2739
- "every accepted client has a slashable bond to claim against in case",
2740
- "of dispute."
2741
- ],
3354
+ "name": "vault",
2742
3355
  "pda": {
2743
3356
  "seeds": [
2744
3357
  {
@@ -2748,11 +3361,11 @@
2748
3361
  97,
2749
3362
  112,
2750
3363
  95,
2751
- 115,
2752
- 116,
3364
+ 118,
2753
3365
  97,
2754
- 107,
2755
- 101
3366
+ 117,
3367
+ 108,
3368
+ 116
2756
3369
  ]
2757
3370
  },
2758
3371
  {
@@ -2760,10 +3373,16 @@
2760
3373
  "path": "agent"
2761
3374
  }
2762
3375
  ]
2763
- }
3376
+ },
3377
+ "relations": [
3378
+ "session"
3379
+ ]
2764
3380
  },
2765
3381
  {
2766
- "name": "escrow",
3382
+ "name": "session"
3383
+ },
3384
+ {
3385
+ "name": "buffer",
2767
3386
  "writable": true,
2768
3387
  "pda": {
2769
3388
  "seeds": [
@@ -2774,21 +3393,21 @@
2774
3393
  97,
2775
3394
  112,
2776
3395
  95,
3396
+ 98,
3397
+ 117,
3398
+ 102,
3399
+ 102,
2777
3400
  101,
2778
- 115,
2779
- 99,
2780
- 114,
2781
- 111,
2782
- 119
3401
+ 114
2783
3402
  ]
2784
3403
  },
2785
3404
  {
2786
3405
  "kind": "account",
2787
- "path": "agent"
3406
+ "path": "session"
2788
3407
  },
2789
3408
  {
2790
- "kind": "account",
2791
- "path": "depositor"
3409
+ "kind": "arg",
3410
+ "path": "page_index"
2792
3411
  }
2793
3412
  ]
2794
3413
  }
@@ -2800,40 +3419,8 @@
2800
3419
  ],
2801
3420
  "args": [
2802
3421
  {
2803
- "name": "price_per_call",
2804
- "type": "u64"
2805
- },
2806
- {
2807
- "name": "max_calls",
2808
- "type": "u64"
2809
- },
2810
- {
2811
- "name": "initial_deposit",
2812
- "type": "u64"
2813
- },
2814
- {
2815
- "name": "expires_at",
2816
- "type": "i64"
2817
- },
2818
- {
2819
- "name": "volume_curve",
2820
- "type": {
2821
- "vec": {
2822
- "defined": {
2823
- "name": "VolumeCurveBreakpoint"
2824
- }
2825
- }
2826
- }
2827
- },
2828
- {
2829
- "name": "token_mint",
2830
- "type": {
2831
- "option": "pubkey"
2832
- }
2833
- },
2834
- {
2835
- "name": "token_decimals",
2836
- "type": "u8"
3422
+ "name": "page_index",
3423
+ "type": "u32"
2837
3424
  }
2838
3425
  ]
2839
3426
  },
@@ -2890,6 +3477,59 @@
2890
3477
  ]
2891
3478
  }
2892
3479
  },
3480
+ {
3481
+ "name": "agent_stats",
3482
+ "writable": true,
3483
+ "pda": {
3484
+ "seeds": [
3485
+ {
3486
+ "kind": "const",
3487
+ "value": [
3488
+ 115,
3489
+ 97,
3490
+ 112,
3491
+ 95,
3492
+ 115,
3493
+ 116,
3494
+ 97,
3495
+ 116,
3496
+ 115
3497
+ ]
3498
+ },
3499
+ {
3500
+ "kind": "account",
3501
+ "path": "agent"
3502
+ }
3503
+ ]
3504
+ }
3505
+ },
3506
+ {
3507
+ "name": "pricing_menu",
3508
+ "pda": {
3509
+ "seeds": [
3510
+ {
3511
+ "kind": "const",
3512
+ "value": [
3513
+ 115,
3514
+ 97,
3515
+ 112,
3516
+ 95,
3517
+ 112,
3518
+ 114,
3519
+ 105,
3520
+ 99,
3521
+ 105,
3522
+ 110,
3523
+ 103
3524
+ ]
3525
+ },
3526
+ {
3527
+ "kind": "account",
3528
+ "path": "agent"
3529
+ }
3530
+ ]
3531
+ }
3532
+ },
2893
3533
  {
2894
3534
  "name": "escrow",
2895
3535
  "writable": true,
@@ -3519,74 +4159,6 @@
3519
4159
  ],
3520
4160
  "args": []
3521
4161
  },
3522
- {
3523
- "name": "deposit_escrow",
3524
- "docs": [
3525
- "Deposit additional SOL into an existing escrow."
3526
- ],
3527
- "discriminator": [
3528
- 226,
3529
- 112,
3530
- 158,
3531
- 176,
3532
- 178,
3533
- 118,
3534
- 153,
3535
- 128
3536
- ],
3537
- "accounts": [
3538
- {
3539
- "name": "depositor",
3540
- "writable": true,
3541
- "signer": true,
3542
- "relations": [
3543
- "escrow"
3544
- ]
3545
- },
3546
- {
3547
- "name": "escrow",
3548
- "writable": true,
3549
- "pda": {
3550
- "seeds": [
3551
- {
3552
- "kind": "const",
3553
- "value": [
3554
- 115,
3555
- 97,
3556
- 112,
3557
- 95,
3558
- 101,
3559
- 115,
3560
- 99,
3561
- 114,
3562
- 111,
3563
- 119
3564
- ]
3565
- },
3566
- {
3567
- "kind": "account",
3568
- "path": "escrow.agent",
3569
- "account": "EscrowAccount"
3570
- },
3571
- {
3572
- "kind": "account",
3573
- "path": "depositor"
3574
- }
3575
- ]
3576
- }
3577
- },
3578
- {
3579
- "name": "system_program",
3580
- "address": "11111111111111111111111111111111"
3581
- }
3582
- ],
3583
- "args": [
3584
- {
3585
- "name": "amount",
3586
- "type": "u64"
3587
- }
3588
- ]
3589
- },
3590
4162
  {
3591
4163
  "name": "deposit_escrow_v2",
3592
4164
  "docs": [
@@ -4333,7 +4905,121 @@
4333
4905
  ]
4334
4906
  }
4335
4907
  }
4336
- ]
4908
+ ]
4909
+ },
4910
+ {
4911
+ "name": "init_digest",
4912
+ "docs": [
4913
+ "Init MemoryDigest PDA. Fixed ~0.002 SOL, never grows."
4914
+ ],
4915
+ "discriminator": [
4916
+ 42,
4917
+ 229,
4918
+ 170,
4919
+ 125,
4920
+ 97,
4921
+ 157,
4922
+ 10,
4923
+ 10
4924
+ ],
4925
+ "accounts": [
4926
+ {
4927
+ "name": "wallet",
4928
+ "writable": true,
4929
+ "signer": true,
4930
+ "relations": [
4931
+ "agent"
4932
+ ]
4933
+ },
4934
+ {
4935
+ "name": "agent",
4936
+ "pda": {
4937
+ "seeds": [
4938
+ {
4939
+ "kind": "const",
4940
+ "value": [
4941
+ 115,
4942
+ 97,
4943
+ 112,
4944
+ 95,
4945
+ 97,
4946
+ 103,
4947
+ 101,
4948
+ 110,
4949
+ 116
4950
+ ]
4951
+ },
4952
+ {
4953
+ "kind": "account",
4954
+ "path": "wallet"
4955
+ }
4956
+ ]
4957
+ }
4958
+ },
4959
+ {
4960
+ "name": "vault",
4961
+ "pda": {
4962
+ "seeds": [
4963
+ {
4964
+ "kind": "const",
4965
+ "value": [
4966
+ 115,
4967
+ 97,
4968
+ 112,
4969
+ 95,
4970
+ 118,
4971
+ 97,
4972
+ 117,
4973
+ 108,
4974
+ 116
4975
+ ]
4976
+ },
4977
+ {
4978
+ "kind": "account",
4979
+ "path": "agent"
4980
+ }
4981
+ ]
4982
+ },
4983
+ "relations": [
4984
+ "session"
4985
+ ]
4986
+ },
4987
+ {
4988
+ "name": "session"
4989
+ },
4990
+ {
4991
+ "name": "digest",
4992
+ "writable": true,
4993
+ "pda": {
4994
+ "seeds": [
4995
+ {
4996
+ "kind": "const",
4997
+ "value": [
4998
+ 115,
4999
+ 97,
5000
+ 112,
5001
+ 95,
5002
+ 100,
5003
+ 105,
5004
+ 103,
5005
+ 101,
5006
+ 115,
5007
+ 116
5008
+ ]
5009
+ },
5010
+ {
5011
+ "kind": "account",
5012
+ "path": "session"
5013
+ }
5014
+ ]
5015
+ }
5016
+ },
5017
+ {
5018
+ "name": "system_program",
5019
+ "address": "11111111111111111111111111111111"
5020
+ }
5021
+ ],
5022
+ "args": []
4337
5023
  },
4338
5024
  {
4339
5025
  "name": "init_index_page",
@@ -5509,6 +6195,129 @@
5509
6195
  }
5510
6196
  ]
5511
6197
  },
6198
+ {
6199
+ "name": "inscribe_to_digest",
6200
+ "docs": [
6201
+ "Inscribe data to TX log + update PDA proof. Primary write. Zero rent."
6202
+ ],
6203
+ "discriminator": [
6204
+ 51,
6205
+ 91,
6206
+ 115,
6207
+ 170,
6208
+ 4,
6209
+ 85,
6210
+ 82,
6211
+ 106
6212
+ ],
6213
+ "accounts": [
6214
+ {
6215
+ "name": "wallet",
6216
+ "signer": true,
6217
+ "relations": [
6218
+ "agent"
6219
+ ]
6220
+ },
6221
+ {
6222
+ "name": "agent",
6223
+ "pda": {
6224
+ "seeds": [
6225
+ {
6226
+ "kind": "const",
6227
+ "value": [
6228
+ 115,
6229
+ 97,
6230
+ 112,
6231
+ 95,
6232
+ 97,
6233
+ 103,
6234
+ 101,
6235
+ 110,
6236
+ 116
6237
+ ]
6238
+ },
6239
+ {
6240
+ "kind": "account",
6241
+ "path": "wallet"
6242
+ }
6243
+ ]
6244
+ }
6245
+ },
6246
+ {
6247
+ "name": "vault",
6248
+ "pda": {
6249
+ "seeds": [
6250
+ {
6251
+ "kind": "const",
6252
+ "value": [
6253
+ 115,
6254
+ 97,
6255
+ 112,
6256
+ 95,
6257
+ 118,
6258
+ 97,
6259
+ 117,
6260
+ 108,
6261
+ 116
6262
+ ]
6263
+ },
6264
+ {
6265
+ "kind": "account",
6266
+ "path": "agent"
6267
+ }
6268
+ ]
6269
+ },
6270
+ "relations": [
6271
+ "session"
6272
+ ]
6273
+ },
6274
+ {
6275
+ "name": "session"
6276
+ },
6277
+ {
6278
+ "name": "digest",
6279
+ "writable": true,
6280
+ "pda": {
6281
+ "seeds": [
6282
+ {
6283
+ "kind": "const",
6284
+ "value": [
6285
+ 115,
6286
+ 97,
6287
+ 112,
6288
+ 95,
6289
+ 100,
6290
+ 105,
6291
+ 103,
6292
+ 101,
6293
+ 115,
6294
+ 116
6295
+ ]
6296
+ },
6297
+ {
6298
+ "kind": "account",
6299
+ "path": "session"
6300
+ }
6301
+ ]
6302
+ }
6303
+ }
6304
+ ],
6305
+ "args": [
6306
+ {
6307
+ "name": "data",
6308
+ "type": "bytes"
6309
+ },
6310
+ {
6311
+ "name": "content_hash",
6312
+ "type": {
6313
+ "array": [
6314
+ "u8",
6315
+ 32
6316
+ ]
6317
+ }
6318
+ }
6319
+ ]
6320
+ },
5512
6321
  {
5513
6322
  "name": "inscribe_tool_schema",
5514
6323
  "docs": [
@@ -5650,22 +6459,150 @@
5650
6459
  97,
5651
6460
  112,
5652
6461
  95,
5653
- 118,
6462
+ 118,
6463
+ 97,
6464
+ 117,
6465
+ 108,
6466
+ 116
6467
+ ]
6468
+ },
6469
+ {
6470
+ "kind": "account",
6471
+ "path": "agent"
6472
+ }
6473
+ ]
6474
+ }
6475
+ },
6476
+ {
6477
+ "name": "session",
6478
+ "writable": true,
6479
+ "pda": {
6480
+ "seeds": [
6481
+ {
6482
+ "kind": "const",
6483
+ "value": [
6484
+ 115,
6485
+ 97,
6486
+ 112,
6487
+ 95,
6488
+ 115,
6489
+ 101,
6490
+ 115,
6491
+ 115,
6492
+ 105,
6493
+ 111,
6494
+ 110
6495
+ ]
6496
+ },
6497
+ {
6498
+ "kind": "account",
6499
+ "path": "vault"
6500
+ },
6501
+ {
6502
+ "kind": "arg",
6503
+ "path": "session_hash"
6504
+ }
6505
+ ]
6506
+ }
6507
+ },
6508
+ {
6509
+ "name": "system_program",
6510
+ "address": "11111111111111111111111111111111"
6511
+ }
6512
+ ],
6513
+ "args": [
6514
+ {
6515
+ "name": "session_hash",
6516
+ "type": {
6517
+ "array": [
6518
+ "u8",
6519
+ 32
6520
+ ]
6521
+ }
6522
+ }
6523
+ ]
6524
+ },
6525
+ {
6526
+ "name": "post_digest",
6527
+ "docs": [
6528
+ "Post digest proof (hash only). Zero additional rent."
6529
+ ],
6530
+ "discriminator": [
6531
+ 175,
6532
+ 113,
6533
+ 239,
6534
+ 5,
6535
+ 36,
6536
+ 95,
6537
+ 17,
6538
+ 97
6539
+ ],
6540
+ "accounts": [
6541
+ {
6542
+ "name": "wallet",
6543
+ "signer": true,
6544
+ "relations": [
6545
+ "agent"
6546
+ ]
6547
+ },
6548
+ {
6549
+ "name": "session"
6550
+ },
6551
+ {
6552
+ "name": "vault",
6553
+ "pda": {
6554
+ "seeds": [
6555
+ {
6556
+ "kind": "const",
6557
+ "value": [
6558
+ 115,
6559
+ 97,
6560
+ 112,
6561
+ 95,
6562
+ 118,
6563
+ 97,
6564
+ 117,
6565
+ 108,
6566
+ 116
6567
+ ]
6568
+ },
6569
+ {
6570
+ "kind": "account",
6571
+ "path": "agent"
6572
+ }
6573
+ ]
6574
+ },
6575
+ "relations": [
6576
+ "session"
6577
+ ]
6578
+ },
6579
+ {
6580
+ "name": "agent",
6581
+ "pda": {
6582
+ "seeds": [
6583
+ {
6584
+ "kind": "const",
6585
+ "value": [
6586
+ 115,
6587
+ 97,
6588
+ 112,
6589
+ 95,
5654
6590
  97,
5655
- 117,
5656
- 108,
6591
+ 103,
6592
+ 101,
6593
+ 110,
5657
6594
  116
5658
6595
  ]
5659
6596
  },
5660
6597
  {
5661
6598
  "kind": "account",
5662
- "path": "agent"
6599
+ "path": "wallet"
5663
6600
  }
5664
6601
  ]
5665
6602
  }
5666
6603
  },
5667
6604
  {
5668
- "name": "session",
6605
+ "name": "digest",
5669
6606
  "writable": true,
5670
6607
  "pda": {
5671
6608
  "seeds": [
@@ -5676,40 +6613,35 @@
5676
6613
  97,
5677
6614
  112,
5678
6615
  95,
5679
- 115,
6616
+ 100,
6617
+ 105,
6618
+ 103,
5680
6619
  101,
5681
6620
  115,
5682
- 115,
5683
- 105,
5684
- 111,
5685
- 110
6621
+ 116
5686
6622
  ]
5687
6623
  },
5688
6624
  {
5689
6625
  "kind": "account",
5690
- "path": "vault"
5691
- },
5692
- {
5693
- "kind": "arg",
5694
- "path": "session_hash"
6626
+ "path": "session"
5695
6627
  }
5696
6628
  ]
5697
6629
  }
5698
- },
5699
- {
5700
- "name": "system_program",
5701
- "address": "11111111111111111111111111111111"
5702
6630
  }
5703
6631
  ],
5704
6632
  "args": [
5705
6633
  {
5706
- "name": "session_hash",
6634
+ "name": "content_hash",
5707
6635
  "type": {
5708
6636
  "array": [
5709
6637
  "u8",
5710
6638
  32
5711
6639
  ]
5712
6640
  }
6641
+ },
6642
+ {
6643
+ "name": "data_size",
6644
+ "type": "u32"
5713
6645
  }
5714
6646
  ]
5715
6647
  },
@@ -6124,6 +7056,34 @@
6124
7056
  ]
6125
7057
  }
6126
7058
  },
7059
+ {
7060
+ "name": "pricing_menu",
7061
+ "writable": true,
7062
+ "pda": {
7063
+ "seeds": [
7064
+ {
7065
+ "kind": "const",
7066
+ "value": [
7067
+ 115,
7068
+ 97,
7069
+ 112,
7070
+ 95,
7071
+ 112,
7072
+ 114,
7073
+ 105,
7074
+ 99,
7075
+ 105,
7076
+ 110,
7077
+ 103
7078
+ ]
7079
+ },
7080
+ {
7081
+ "kind": "account",
7082
+ "path": "agent"
7083
+ }
7084
+ ]
7085
+ }
7086
+ },
6127
7087
  {
6128
7088
  "name": "global_registry",
6129
7089
  "writable": true,
@@ -6207,6 +7167,72 @@
6207
7167
  }
6208
7168
  ]
6209
7169
  },
7170
+ {
7171
+ "name": "register_plugin",
7172
+ "docs": [
7173
+ "Register plugin slot. type: 0=Memory..5=Custom."
7174
+ ],
7175
+ "discriminator": [
7176
+ 146,
7177
+ 14,
7178
+ 244,
7179
+ 131,
7180
+ 70,
7181
+ 141,
7182
+ 32,
7183
+ 0
7184
+ ],
7185
+ "accounts": [
7186
+ {
7187
+ "name": "wallet",
7188
+ "writable": true,
7189
+ "signer": true,
7190
+ "relations": [
7191
+ "agent"
7192
+ ]
7193
+ },
7194
+ {
7195
+ "name": "agent",
7196
+ "writable": true,
7197
+ "pda": {
7198
+ "seeds": [
7199
+ {
7200
+ "kind": "const",
7201
+ "value": [
7202
+ 115,
7203
+ 97,
7204
+ 112,
7205
+ 95,
7206
+ 97,
7207
+ 103,
7208
+ 101,
7209
+ 110,
7210
+ 116
7211
+ ]
7212
+ },
7213
+ {
7214
+ "kind": "account",
7215
+ "path": "wallet"
7216
+ }
7217
+ ]
7218
+ }
7219
+ },
7220
+ {
7221
+ "name": "plugin_slot",
7222
+ "writable": true
7223
+ },
7224
+ {
7225
+ "name": "system_program",
7226
+ "address": "11111111111111111111111111111111"
7227
+ }
7228
+ ],
7229
+ "args": [
7230
+ {
7231
+ "name": "plugin_type",
7232
+ "type": "u8"
7233
+ }
7234
+ ]
7235
+ },
6210
7236
  {
6211
7237
  "name": "remove_from_capability_index",
6212
7238
  "docs": [
@@ -6972,154 +7998,16 @@
6972
7998
  },
6973
7999
  {
6974
8000
  "kind": "account",
6975
- "path": "agent"
6976
- }
6977
- ]
6978
- },
6979
- "relations": [
6980
- "session"
6981
- ]
6982
- },
6983
- {
6984
- "name": "agent",
6985
- "pda": {
6986
- "seeds": [
6987
- {
6988
- "kind": "const",
6989
- "value": [
6990
- 115,
6991
- 97,
6992
- 112,
6993
- 95,
6994
- 97,
6995
- 103,
6996
- 101,
6997
- 110,
6998
- 116
6999
- ]
7000
- },
7001
- {
7002
- "kind": "account",
7003
- "path": "wallet"
7004
- }
7005
- ]
7006
- }
7007
- },
7008
- {
7009
- "name": "ledger",
7010
- "writable": true,
7011
- "pda": {
7012
- "seeds": [
7013
- {
7014
- "kind": "const",
7015
- "value": [
7016
- 115,
7017
- 97,
7018
- 112,
7019
- 95,
7020
- 108,
7021
- 101,
7022
- 100,
7023
- 103,
7024
- 101,
7025
- 114
7026
- ]
7027
- },
7028
- {
7029
- "kind": "account",
7030
- "path": "session"
7031
- }
7032
- ]
7033
- }
7034
- },
7035
- {
7036
- "name": "page",
7037
- "writable": true,
7038
- "pda": {
7039
- "seeds": [
7040
- {
7041
- "kind": "const",
7042
- "value": [
7043
- 115,
7044
- 97,
7045
- 112,
7046
- 95,
7047
- 112,
7048
- 97,
7049
- 103,
7050
- 101
7051
- ]
7052
- },
7053
- {
7054
- "kind": "account",
7055
- "path": "ledger"
7056
- },
7057
- {
7058
- "kind": "account",
7059
- "path": "ledger.num_pages",
7060
- "account": "MemoryLedger"
7061
- }
7062
- ]
7063
- }
7064
- },
7065
- {
7066
- "name": "system_program",
7067
- "address": "11111111111111111111111111111111"
7068
- }
7069
- ],
7070
- "args": []
7071
- },
7072
- {
7073
- "name": "settle_batch",
7074
- "docs": [
7075
- "Batch settle up to 10 settlements in one TX. Volume curve spans batch.",
7076
- "v0.10: requires `batch_root = sha256(s_0 || s_1 || ... || s_{N-1})`",
7077
- "to seed the anti-replay receipt PDA."
7078
- ],
7079
- "discriminator": [
7080
- 22,
7081
- 2,
7082
- 21,
7083
- 223,
7084
- 225,
7085
- 122,
7086
- 163,
7087
- 214
7088
- ],
7089
- "accounts": [
7090
- {
7091
- "name": "wallet",
7092
- "writable": true,
7093
- "signer": true
7094
- },
7095
- {
7096
- "name": "agent",
7097
- "pda": {
7098
- "seeds": [
7099
- {
7100
- "kind": "const",
7101
- "value": [
7102
- 115,
7103
- 97,
7104
- 112,
7105
- 95,
7106
- 97,
7107
- 103,
7108
- 101,
7109
- 110,
7110
- 116
7111
- ]
7112
- },
7113
- {
7114
- "kind": "account",
7115
- "path": "wallet"
8001
+ "path": "agent"
7116
8002
  }
7117
8003
  ]
7118
- }
8004
+ },
8005
+ "relations": [
8006
+ "session"
8007
+ ]
7119
8008
  },
7120
8009
  {
7121
- "name": "agent_stats",
7122
- "writable": true,
8010
+ "name": "agent",
7123
8011
  "pda": {
7124
8012
  "seeds": [
7125
8013
  {
@@ -7129,22 +8017,22 @@
7129
8017
  97,
7130
8018
  112,
7131
8019
  95,
7132
- 115,
7133
- 116,
7134
8020
  97,
7135
- 116,
7136
- 115
8021
+ 103,
8022
+ 101,
8023
+ 110,
8024
+ 116
7137
8025
  ]
7138
8026
  },
7139
8027
  {
7140
8028
  "kind": "account",
7141
- "path": "agent"
8029
+ "path": "wallet"
7142
8030
  }
7143
8031
  ]
7144
8032
  }
7145
8033
  },
7146
8034
  {
7147
- "name": "escrow",
8035
+ "name": "ledger",
7148
8036
  "writable": true,
7149
8037
  "pda": {
7150
8038
  "seeds": [
@@ -7155,33 +8043,23 @@
7155
8043
  97,
7156
8044
  112,
7157
8045
  95,
8046
+ 108,
7158
8047
  101,
7159
- 115,
7160
- 99,
7161
- 114,
7162
- 111,
7163
- 119
8048
+ 100,
8049
+ 103,
8050
+ 101,
8051
+ 114
7164
8052
  ]
7165
8053
  },
7166
8054
  {
7167
8055
  "kind": "account",
7168
- "path": "agent"
7169
- },
7170
- {
7171
- "kind": "account",
7172
- "path": "escrow.depositor",
7173
- "account": "EscrowAccount"
8056
+ "path": "session"
7174
8057
  }
7175
8058
  ]
7176
8059
  }
7177
8060
  },
7178
8061
  {
7179
- "name": "settlement_receipt",
7180
- "docs": [
7181
- "v0.10 anti-replay: PDA bound to the batch_root (sha256 of all",
7182
- "service_hashes in order). Replaying the same batch fails the",
7183
- "`init` constraint."
7184
- ],
8062
+ "name": "page",
7185
8063
  "writable": true,
7186
8064
  "pda": {
7187
8065
  "seeds": [
@@ -7192,19 +8070,20 @@
7192
8070
  97,
7193
8071
  112,
7194
8072
  95,
7195
- 114,
7196
- 101,
7197
- 99,
7198
- 118
8073
+ 112,
8074
+ 97,
8075
+ 103,
8076
+ 101
7199
8077
  ]
7200
8078
  },
7201
8079
  {
7202
8080
  "kind": "account",
7203
- "path": "escrow"
8081
+ "path": "ledger"
7204
8082
  },
7205
8083
  {
7206
- "kind": "arg",
7207
- "path": "batch_root"
8084
+ "kind": "account",
8085
+ "path": "ledger.num_pages",
8086
+ "account": "MemoryLedger"
7208
8087
  }
7209
8088
  ]
7210
8089
  }
@@ -7214,57 +8093,34 @@
7214
8093
  "address": "11111111111111111111111111111111"
7215
8094
  }
7216
8095
  ],
7217
- "args": [
7218
- {
7219
- "name": "settlements",
7220
- "type": {
7221
- "vec": {
7222
- "defined": {
7223
- "name": "Settlement"
7224
- }
7225
- }
7226
- }
7227
- },
7228
- {
7229
- "name": "batch_root",
7230
- "type": {
7231
- "array": [
7232
- "u8",
7233
- 32
7234
- ]
7235
- }
7236
- }
7237
- ]
8096
+ "args": []
7238
8097
  },
7239
8098
  {
7240
- "name": "settle_calls",
8099
+ "name": "settle_calls_v2",
7241
8100
  "docs": [
7242
- "Agent settles calls claims funds from escrow. service_hash = proof of work."
8101
+ "Agent settles calls via V2 escrow. Mode-dispatched."
7243
8102
  ],
7244
8103
  "discriminator": [
7245
- 100,
7246
- 156,
7247
- 197,
7248
- 134,
7249
- 219,
7250
- 245,
7251
- 3,
7252
- 170
8104
+ 58,
8105
+ 135,
8106
+ 43,
8107
+ 215,
8108
+ 45,
8109
+ 96,
8110
+ 15,
8111
+ 145
7253
8112
  ],
7254
8113
  "accounts": [
7255
8114
  {
7256
8115
  "name": "wallet",
7257
8116
  "docs": [
7258
- "Agent owner signs settlement + receives payment"
8117
+ "Agent owner signs"
7259
8118
  ],
7260
8119
  "writable": true,
7261
8120
  "signer": true
7262
8121
  },
7263
8122
  {
7264
8123
  "name": "agent",
7265
- "docs": [
7266
- "PDA derivation for escrow + stats."
7267
- ],
7268
8124
  "pda": {
7269
8125
  "seeds": [
7270
8126
  {
@@ -7331,7 +8187,10 @@
7331
8187
  99,
7332
8188
  114,
7333
8189
  111,
7334
- 119
8190
+ 119,
8191
+ 95,
8192
+ 118,
8193
+ 50
7335
8194
  ]
7336
8195
  },
7337
8196
  {
@@ -7341,7 +8200,11 @@
7341
8200
  {
7342
8201
  "kind": "account",
7343
8202
  "path": "escrow.depositor",
7344
- "account": "EscrowAccount"
8203
+ "account": "EscrowAccountV2"
8204
+ },
8205
+ {
8206
+ "kind": "arg",
8207
+ "path": "escrow_nonce"
7345
8208
  }
7346
8209
  ]
7347
8210
  }
@@ -7349,10 +8212,10 @@
7349
8212
  {
7350
8213
  "name": "settlement_receipt",
7351
8214
  "docs": [
7352
- "v0.10 anti-replay: an `init` of this PDA fails if the same",
7353
- "`service_hash` was already used to settle this escrow.",
7354
- "Receipt PDAs are intentionally NOT closeable to preserve the",
7355
- "uniqueness invariant for the lifetime of the escrow."
8215
+ "v0.10 anti-replay: PDA bound to (escrow, service_hash).",
8216
+ "In CoSigned mode this gates the immediate transfer; in",
8217
+ "DisputeWindow mode this gates the pending-amount bump so the",
8218
+ "same `service_hash` cannot be re-applied to inflate pending."
7356
8219
  ],
7357
8220
  "writable": true,
7358
8221
  "pda": {
@@ -7387,6 +8250,10 @@
7387
8250
  }
7388
8251
  ],
7389
8252
  "args": [
8253
+ {
8254
+ "name": "escrow_nonce",
8255
+ "type": "u64"
8256
+ },
7390
8257
  {
7391
8258
  "name": "calls_to_settle",
7392
8259
  "type": "u64"
@@ -7403,28 +8270,28 @@
7403
8270
  ]
7404
8271
  },
7405
8272
  {
7406
- "name": "settle_calls_v2",
8273
+ "name": "store_memory",
7407
8274
  "docs": [
7408
- "Agent settles calls via V2 escrow. Mode-dispatched."
8275
+ "Store a memory entry (metadata + optional IPFS pointer)."
7409
8276
  ],
7410
8277
  "discriminator": [
7411
- 58,
7412
- 135,
7413
- 43,
7414
- 215,
7415
- 45,
7416
- 96,
7417
- 15,
7418
- 145
8278
+ 168,
8279
+ 103,
8280
+ 88,
8281
+ 240,
8282
+ 93,
8283
+ 185,
8284
+ 30,
8285
+ 235
7419
8286
  ],
7420
8287
  "accounts": [
7421
8288
  {
7422
8289
  "name": "wallet",
7423
- "docs": [
7424
- "Agent owner signs"
7425
- ],
7426
8290
  "writable": true,
7427
- "signer": true
8291
+ "signer": true,
8292
+ "relations": [
8293
+ "agent"
8294
+ ]
7428
8295
  },
7429
8296
  {
7430
8297
  "name": "agent",
@@ -7452,33 +8319,7 @@
7452
8319
  }
7453
8320
  },
7454
8321
  {
7455
- "name": "agent_stats",
7456
- "writable": true,
7457
- "pda": {
7458
- "seeds": [
7459
- {
7460
- "kind": "const",
7461
- "value": [
7462
- 115,
7463
- 97,
7464
- 112,
7465
- 95,
7466
- 115,
7467
- 116,
7468
- 97,
7469
- 116,
7470
- 115
7471
- ]
7472
- },
7473
- {
7474
- "kind": "account",
7475
- "path": "agent"
7476
- }
7477
- ]
7478
- }
7479
- },
7480
- {
7481
- "name": "escrow",
8322
+ "name": "memory_entry",
7482
8323
  "writable": true,
7483
8324
  "pda": {
7484
8325
  "seeds": [
@@ -7489,64 +8330,21 @@
7489
8330
  97,
7490
8331
  112,
7491
8332
  95,
8333
+ 109,
7492
8334
  101,
7493
- 115,
7494
- 99,
7495
- 114,
8335
+ 109,
7496
8336
  111,
7497
- 119,
7498
- 95,
7499
- 118,
7500
- 50
7501
- ]
7502
- },
7503
- {
7504
- "kind": "account",
7505
- "path": "agent"
7506
- },
7507
- {
7508
- "kind": "account",
7509
- "path": "escrow.depositor",
7510
- "account": "EscrowAccountV2"
7511
- },
7512
- {
7513
- "kind": "arg",
7514
- "path": "escrow_nonce"
7515
- }
7516
- ]
7517
- }
7518
- },
7519
- {
7520
- "name": "settlement_receipt",
7521
- "docs": [
7522
- "v0.10 anti-replay: PDA bound to (escrow, service_hash).",
7523
- "In CoSigned mode this gates the immediate transfer; in",
7524
- "DisputeWindow mode this gates the pending-amount bump so the",
7525
- "same `service_hash` cannot be re-applied to inflate pending."
7526
- ],
7527
- "writable": true,
7528
- "pda": {
7529
- "seeds": [
7530
- {
7531
- "kind": "const",
7532
- "value": [
7533
- 115,
7534
- 97,
7535
- 112,
7536
- 95,
7537
8337
  114,
7538
- 101,
7539
- 99,
7540
- 118
8338
+ 121
7541
8339
  ]
7542
8340
  },
7543
8341
  {
7544
8342
  "kind": "account",
7545
- "path": "escrow"
8343
+ "path": "agent"
7546
8344
  },
7547
8345
  {
7548
8346
  "kind": "arg",
7549
- "path": "service_hash"
8347
+ "path": "entry_hash"
7550
8348
  }
7551
8349
  ]
7552
8350
  }
@@ -7558,21 +8356,27 @@
7558
8356
  ],
7559
8357
  "args": [
7560
8358
  {
7561
- "name": "escrow_nonce",
7562
- "type": "u64"
7563
- },
7564
- {
7565
- "name": "calls_to_settle",
7566
- "type": "u64"
7567
- },
7568
- {
7569
- "name": "service_hash",
8359
+ "name": "entry_hash",
7570
8360
  "type": {
7571
8361
  "array": [
7572
8362
  "u8",
7573
8363
  32
7574
8364
  ]
7575
8365
  }
8366
+ },
8367
+ {
8368
+ "name": "content_type",
8369
+ "type": "string"
8370
+ },
8371
+ {
8372
+ "name": "ipfs_cid",
8373
+ "type": {
8374
+ "option": "string"
8375
+ }
8376
+ },
8377
+ {
8378
+ "name": "total_size",
8379
+ "type": "u32"
7576
8380
  }
7577
8381
  ]
7578
8382
  },
@@ -7906,12 +8710,40 @@
7906
8710
  103,
7907
8711
  101,
7908
8712
  110,
7909
- 116
8713
+ 116
8714
+ ]
8715
+ },
8716
+ {
8717
+ "kind": "account",
8718
+ "path": "wallet"
8719
+ }
8720
+ ]
8721
+ }
8722
+ },
8723
+ {
8724
+ "name": "pricing_menu",
8725
+ "writable": true,
8726
+ "pda": {
8727
+ "seeds": [
8728
+ {
8729
+ "kind": "const",
8730
+ "value": [
8731
+ 115,
8732
+ 97,
8733
+ 112,
8734
+ 95,
8735
+ 112,
8736
+ 114,
8737
+ 105,
8738
+ 99,
8739
+ 105,
8740
+ 110,
8741
+ 103
7910
8742
  ]
7911
8743
  },
7912
8744
  {
7913
8745
  "kind": "account",
7914
- "path": "wallet"
8746
+ "path": "agent"
7915
8747
  }
7916
8748
  ]
7917
8749
  }
@@ -7986,6 +8818,129 @@
7986
8818
  }
7987
8819
  ]
7988
8820
  },
8821
+ {
8822
+ "name": "update_digest_storage",
8823
+ "docs": [
8824
+ "Update optional offchain storage pointer (IPFS CID, Arweave TX, etc.)."
8825
+ ],
8826
+ "discriminator": [
8827
+ 71,
8828
+ 7,
8829
+ 245,
8830
+ 130,
8831
+ 255,
8832
+ 14,
8833
+ 149,
8834
+ 40
8835
+ ],
8836
+ "accounts": [
8837
+ {
8838
+ "name": "wallet",
8839
+ "signer": true,
8840
+ "relations": [
8841
+ "agent"
8842
+ ]
8843
+ },
8844
+ {
8845
+ "name": "session"
8846
+ },
8847
+ {
8848
+ "name": "vault",
8849
+ "pda": {
8850
+ "seeds": [
8851
+ {
8852
+ "kind": "const",
8853
+ "value": [
8854
+ 115,
8855
+ 97,
8856
+ 112,
8857
+ 95,
8858
+ 118,
8859
+ 97,
8860
+ 117,
8861
+ 108,
8862
+ 116
8863
+ ]
8864
+ },
8865
+ {
8866
+ "kind": "account",
8867
+ "path": "agent"
8868
+ }
8869
+ ]
8870
+ },
8871
+ "relations": [
8872
+ "session"
8873
+ ]
8874
+ },
8875
+ {
8876
+ "name": "agent",
8877
+ "pda": {
8878
+ "seeds": [
8879
+ {
8880
+ "kind": "const",
8881
+ "value": [
8882
+ 115,
8883
+ 97,
8884
+ 112,
8885
+ 95,
8886
+ 97,
8887
+ 103,
8888
+ 101,
8889
+ 110,
8890
+ 116
8891
+ ]
8892
+ },
8893
+ {
8894
+ "kind": "account",
8895
+ "path": "wallet"
8896
+ }
8897
+ ]
8898
+ }
8899
+ },
8900
+ {
8901
+ "name": "digest",
8902
+ "writable": true,
8903
+ "pda": {
8904
+ "seeds": [
8905
+ {
8906
+ "kind": "const",
8907
+ "value": [
8908
+ 115,
8909
+ 97,
8910
+ 112,
8911
+ 95,
8912
+ 100,
8913
+ 105,
8914
+ 103,
8915
+ 101,
8916
+ 115,
8917
+ 116
8918
+ ]
8919
+ },
8920
+ {
8921
+ "kind": "account",
8922
+ "path": "session"
8923
+ }
8924
+ ]
8925
+ }
8926
+ }
8927
+ ],
8928
+ "args": [
8929
+ {
8930
+ "name": "storage_ref",
8931
+ "type": {
8932
+ "array": [
8933
+ "u8",
8934
+ 32
8935
+ ]
8936
+ }
8937
+ },
8938
+ {
8939
+ "name": "storage_type",
8940
+ "type": "u8"
8941
+ }
8942
+ ]
8943
+ },
7989
8944
  {
7990
8945
  "name": "update_feedback",
7991
8946
  "docs": [
@@ -8191,70 +9146,6 @@
8191
9146
  }
8192
9147
  ]
8193
9148
  },
8194
- {
8195
- "name": "withdraw_escrow",
8196
- "docs": [
8197
- "Client withdraws from escrow. Withdraws min(amount, balance)."
8198
- ],
8199
- "discriminator": [
8200
- 81,
8201
- 84,
8202
- 226,
8203
- 128,
8204
- 245,
8205
- 47,
8206
- 96,
8207
- 104
8208
- ],
8209
- "accounts": [
8210
- {
8211
- "name": "depositor",
8212
- "writable": true,
8213
- "signer": true,
8214
- "relations": [
8215
- "escrow"
8216
- ]
8217
- },
8218
- {
8219
- "name": "escrow",
8220
- "writable": true,
8221
- "pda": {
8222
- "seeds": [
8223
- {
8224
- "kind": "const",
8225
- "value": [
8226
- 115,
8227
- 97,
8228
- 112,
8229
- 95,
8230
- 101,
8231
- 115,
8232
- 99,
8233
- 114,
8234
- 111,
8235
- 119
8236
- ]
8237
- },
8238
- {
8239
- "kind": "account",
8240
- "path": "escrow.agent",
8241
- "account": "EscrowAccount"
8242
- },
8243
- {
8244
- "kind": "account",
8245
- "path": "depositor"
8246
- }
8247
- ]
8248
- }
8249
- }
8250
- ],
8251
- "args": [
8252
- {
8253
- "name": "amount",
8254
- "type": "u64"
8255
- }
8256
- ]
8257
- },
8258
9149
  {
8259
9150
  "name": "withdraw_escrow_v2",
8260
9151
  "docs": [
@@ -8478,6 +9369,19 @@
8478
9369
  159
8479
9370
  ]
8480
9371
  },
9372
+ {
9373
+ "name": "AgentPricingMenu",
9374
+ "discriminator": [
9375
+ 181,
9376
+ 203,
9377
+ 249,
9378
+ 3,
9379
+ 52,
9380
+ 2,
9381
+ 117,
9382
+ 144
9383
+ ]
9384
+ },
8481
9385
  {
8482
9386
  "name": "AgentStake",
8483
9387
  "discriminator": [
@@ -8556,19 +9460,6 @@
8556
9460
  46
8557
9461
  ]
8558
9462
  },
8559
- {
8560
- "name": "EscrowAccount",
8561
- "discriminator": [
8562
- 36,
8563
- 69,
8564
- 48,
8565
- 18,
8566
- 128,
8567
- 225,
8568
- 125,
8569
- 135
8570
- ]
8571
- },
8572
9463
  {
8573
9464
  "name": "EscrowAccountV2",
8574
9465
  "discriminator": [
@@ -8634,6 +9525,58 @@
8634
9525
  133
8635
9526
  ]
8636
9527
  },
9528
+ {
9529
+ "name": "MemoryBuffer",
9530
+ "discriminator": [
9531
+ 58,
9532
+ 228,
9533
+ 180,
9534
+ 234,
9535
+ 11,
9536
+ 227,
9537
+ 220,
9538
+ 144
9539
+ ]
9540
+ },
9541
+ {
9542
+ "name": "MemoryChunk",
9543
+ "discriminator": [
9544
+ 15,
9545
+ 107,
9546
+ 188,
9547
+ 123,
9548
+ 125,
9549
+ 236,
9550
+ 239,
9551
+ 95
9552
+ ]
9553
+ },
9554
+ {
9555
+ "name": "MemoryDigest",
9556
+ "discriminator": [
9557
+ 198,
9558
+ 235,
9559
+ 118,
9560
+ 212,
9561
+ 98,
9562
+ 33,
9563
+ 36,
9564
+ 1
9565
+ ]
9566
+ },
9567
+ {
9568
+ "name": "MemoryEntry",
9569
+ "discriminator": [
9570
+ 15,
9571
+ 44,
9572
+ 32,
9573
+ 71,
9574
+ 71,
9575
+ 155,
9576
+ 94,
9577
+ 86
9578
+ ]
9579
+ },
8637
9580
  {
8638
9581
  "name": "MemoryLedger",
8639
9582
  "discriminator": [
@@ -8673,6 +9616,19 @@
8673
9616
  23
8674
9617
  ]
8675
9618
  },
9619
+ {
9620
+ "name": "PluginSlot",
9621
+ "discriminator": [
9622
+ 112,
9623
+ 220,
9624
+ 38,
9625
+ 230,
9626
+ 210,
9627
+ 32,
9628
+ 69,
9629
+ 151
9630
+ ]
9631
+ },
8676
9632
  {
8677
9633
  "name": "ProtocolIndex",
8678
9634
  "discriminator": [
@@ -8844,6 +9800,32 @@
8844
9800
  137
8845
9801
  ]
8846
9802
  },
9803
+ {
9804
+ "name": "BufferAppendedEvent",
9805
+ "discriminator": [
9806
+ 156,
9807
+ 162,
9808
+ 205,
9809
+ 194,
9810
+ 186,
9811
+ 77,
9812
+ 132,
9813
+ 123
9814
+ ]
9815
+ },
9816
+ {
9817
+ "name": "BufferCreatedEvent",
9818
+ "discriminator": [
9819
+ 247,
9820
+ 199,
9821
+ 20,
9822
+ 143,
9823
+ 98,
9824
+ 102,
9825
+ 41,
9826
+ 79
9827
+ ]
9828
+ },
8847
9829
  {
8848
9830
  "name": "CallsReportedEvent",
8849
9831
  "discriminator": [
@@ -8935,6 +9917,32 @@
8935
9917
  202
8936
9918
  ]
8937
9919
  },
9920
+ {
9921
+ "name": "DigestInscribedEvent",
9922
+ "discriminator": [
9923
+ 233,
9924
+ 117,
9925
+ 252,
9926
+ 177,
9927
+ 192,
9928
+ 174,
9929
+ 153,
9930
+ 3
9931
+ ]
9932
+ },
9933
+ {
9934
+ "name": "DigestPostedEvent",
9935
+ "discriminator": [
9936
+ 231,
9937
+ 137,
9938
+ 131,
9939
+ 51,
9940
+ 62,
9941
+ 183,
9942
+ 86,
9943
+ 27
9944
+ ]
9945
+ },
8938
9946
  {
8939
9947
  "name": "DisputeAutoResolvedEvent",
8940
9948
  "discriminator": [
@@ -9156,6 +10164,19 @@
9156
10164
  111
9157
10165
  ]
9158
10166
  },
10167
+ {
10168
+ "name": "MemoryStoredEvent",
10169
+ "discriminator": [
10170
+ 154,
10171
+ 225,
10172
+ 51,
10173
+ 106,
10174
+ 181,
10175
+ 46,
10176
+ 15,
10177
+ 197
10178
+ ]
10179
+ },
9159
10180
  {
9160
10181
  "name": "PaymentSettledEvent",
9161
10182
  "discriminator": [
@@ -9169,6 +10190,19 @@
9169
10190
  240
9170
10191
  ]
9171
10192
  },
10193
+ {
10194
+ "name": "PluginRegisteredEvent",
10195
+ "discriminator": [
10196
+ 201,
10197
+ 231,
10198
+ 95,
10199
+ 83,
10200
+ 74,
10201
+ 230,
10202
+ 47,
10203
+ 122
10204
+ ]
10205
+ },
9172
10206
  {
9173
10207
  "name": "ReactivatedEvent",
9174
10208
  "discriminator": [
@@ -9351,6 +10385,19 @@
9351
10385
  251
9352
10386
  ]
9353
10387
  },
10388
+ {
10389
+ "name": "StorageRefUpdatedEvent",
10390
+ "discriminator": [
10391
+ 141,
10392
+ 82,
10393
+ 16,
10394
+ 183,
10395
+ 6,
10396
+ 140,
10397
+ 37,
10398
+ 224
10399
+ ]
10400
+ },
9354
10401
  {
9355
10402
  "name": "SubscriptionCancelledEvent",
9356
10403
  "discriminator": [
@@ -10031,283 +11078,378 @@
10031
11078
  },
10032
11079
  {
10033
11080
  "code": 6091,
11081
+ "name": "InvalidPaymentToken",
11082
+ "msg": "payment token not accepted (USDC only)"
11083
+ },
11084
+ {
11085
+ "code": 6092,
10034
11086
  "name": "InvalidSettlementSecurity",
10035
11087
  "msg": "bad security"
10036
11088
  },
10037
11089
  {
10038
- "code": 6092,
11090
+ "code": 6093,
10039
11091
  "name": "CoSignerRequired",
10040
11092
  "msg": "cosigner"
10041
11093
  },
10042
11094
  {
10043
- "code": 6093,
11095
+ "code": 6094,
10044
11096
  "name": "InvalidCoSigner",
10045
11097
  "msg": "bad cosigner"
10046
11098
  },
10047
11099
  {
10048
- "code": 6094,
11100
+ "code": 6095,
10049
11101
  "name": "InvalidArbiter",
10050
11102
  "msg": "bad arbiter"
10051
11103
  },
10052
11104
  {
10053
- "code": 6095,
11105
+ "code": 6096,
10054
11106
  "name": "ArbiterRequired",
10055
11107
  "msg": "arbiter=0"
10056
11108
  },
10057
11109
  {
10058
- "code": 6096,
11110
+ "code": 6097,
10059
11111
  "name": "EscrowNonceReused",
10060
11112
  "msg": "nonce reused"
10061
11113
  },
10062
11114
  {
10063
- "code": 6097,
11115
+ "code": 6098,
10064
11116
  "name": "SettlementNotPending",
10065
11117
  "msg": "not pending"
10066
11118
  },
10067
11119
  {
10068
- "code": 6098,
11120
+ "code": 6099,
10069
11121
  "name": "SettlementAlreadyFinalized",
10070
11122
  "msg": "already final"
10071
11123
  },
10072
11124
  {
10073
- "code": 6099,
11125
+ "code": 6100,
10074
11126
  "name": "DisputeWindowNotExpired",
10075
11127
  "msg": "too early"
10076
11128
  },
10077
11129
  {
10078
- "code": 6100,
11130
+ "code": 6101,
10079
11131
  "name": "DisputeWindowExpired",
10080
11132
  "msg": "window closed"
10081
11133
  },
10082
11134
  {
10083
- "code": 6101,
11135
+ "code": 6102,
10084
11136
  "name": "NotDepositor",
10085
11137
  "msg": "not depositor"
10086
11138
  },
10087
11139
  {
10088
- "code": 6102,
11140
+ "code": 6103,
10089
11141
  "name": "DisputeAlreadyFiled",
10090
11142
  "msg": "dup dispute"
10091
11143
  },
10092
11144
  {
10093
- "code": 6103,
11145
+ "code": 6104,
10094
11146
  "name": "DisputeStillOpen",
10095
11147
  "msg": "dispute open"
10096
11148
  },
10097
11149
  {
10098
- "code": 6104,
11150
+ "code": 6105,
10099
11151
  "name": "NotArbiter",
10100
11152
  "msg": "not arbiter"
10101
11153
  },
10102
11154
  {
10103
- "code": 6105,
11155
+ "code": 6106,
10104
11156
  "name": "InvalidDisputeOutcome",
10105
11157
  "msg": "bad outcome"
10106
11158
  },
10107
11159
  {
10108
- "code": 6106,
11160
+ "code": 6107,
10109
11161
  "name": "StakeBelowMinimum",
10110
11162
  "msg": "stake<min"
10111
11163
  },
10112
11164
  {
10113
- "code": 6107,
11165
+ "code": 6108,
10114
11166
  "name": "NoStakeAccount",
10115
11167
  "msg": "no stake"
10116
11168
  },
10117
11169
  {
10118
- "code": 6108,
11170
+ "code": 6109,
10119
11171
  "name": "UnstakeAlreadyPending",
10120
11172
  "msg": "unstake pending"
10121
11173
  },
10122
11174
  {
10123
- "code": 6109,
11175
+ "code": 6110,
10124
11176
  "name": "UnstakeCooldownNotMet",
10125
11177
  "msg": "cooldown"
10126
11178
  },
10127
11179
  {
10128
- "code": 6110,
11180
+ "code": 6111,
10129
11181
  "name": "NoUnstakePending",
10130
11182
  "msg": "no unstake"
10131
11183
  },
10132
11184
  {
10133
- "code": 6111,
11185
+ "code": 6112,
10134
11186
  "name": "SlashExceedsStake",
10135
11187
  "msg": "slash>stake"
10136
11188
  },
10137
11189
  {
10138
- "code": 6112,
11190
+ "code": 6113,
10139
11191
  "name": "SubscriptionAlreadyActive",
10140
11192
  "msg": "sub active"
10141
11193
  },
10142
11194
  {
10143
- "code": 6113,
11195
+ "code": 6114,
10144
11196
  "name": "SubscriptionCancelled",
10145
11197
  "msg": "sub cancelled"
10146
11198
  },
10147
11199
  {
10148
- "code": 6114,
11200
+ "code": 6115,
10149
11201
  "name": "NoIntervalDue",
10150
11202
  "msg": "no due"
10151
11203
  },
10152
11204
  {
10153
- "code": 6115,
11205
+ "code": 6116,
10154
11206
  "name": "SubscriptionInsufficientBalance",
10155
11207
  "msg": "sub low bal"
10156
11208
  },
10157
11209
  {
10158
- "code": 6116,
11210
+ "code": 6117,
10159
11211
  "name": "InvalidBillingInterval",
10160
11212
  "msg": "bad interval"
10161
11213
  },
10162
11214
  {
10163
- "code": 6117,
11215
+ "code": 6118,
10164
11216
  "name": "InvalidShardIndex",
10165
11217
  "msg": "bad shard"
10166
11218
  },
10167
11219
  {
10168
- "code": 6118,
11220
+ "code": 6119,
10169
11221
  "name": "IndexPageFull",
10170
11222
  "msg": "page full"
10171
11223
  },
10172
11224
  {
10173
- "code": 6119,
11225
+ "code": 6120,
10174
11226
  "name": "InvalidPageIndex",
10175
11227
  "msg": "bad page"
10176
11228
  },
10177
11229
  {
10178
- "code": 6120,
11230
+ "code": 6121,
10179
11231
  "name": "IndexPageNotEmpty",
10180
11232
  "msg": "page≠empty"
10181
11233
  },
10182
11234
  {
10183
- "code": 6121,
11235
+ "code": 6122,
10184
11236
  "name": "AlreadyMigrated",
10185
11237
  "msg": "already v2"
10186
11238
  },
10187
11239
  {
10188
- "code": 6122,
11240
+ "code": 6123,
10189
11241
  "name": "MigrationV1Only",
10190
11242
  "msg": "v1 only"
10191
11243
  },
10192
11244
  {
10193
- "code": 6123,
11245
+ "code": 6124,
10194
11246
  "name": "SettlementDisputed",
10195
11247
  "msg": "disputed"
10196
11248
  },
10197
11249
  {
10198
- "code": 6124,
11250
+ "code": 6125,
10199
11251
  "name": "InvalidAgentWallet",
10200
11252
  "msg": "bad agent wallet"
10201
11253
  },
10202
11254
  {
10203
- "code": 6125,
11255
+ "code": 6126,
10204
11256
  "name": "StakeAgentMismatch",
10205
11257
  "msg": "stake agent mismatch"
10206
11258
  },
10207
11259
  {
10208
- "code": 6126,
11260
+ "code": 6127,
10209
11261
  "name": "NotAuthority",
10210
11262
  "msg": "not authority"
10211
11263
  },
10212
11264
  {
10213
- "code": 6127,
11265
+ "code": 6128,
10214
11266
  "name": "UnstakeBelowRent",
10215
11267
  "msg": "unstake below rent"
10216
11268
  },
10217
11269
  {
10218
- "code": 6128,
11270
+ "code": 6129,
10219
11271
  "name": "InsufficientStake",
10220
11272
  "msg": "insufficient stake"
10221
11273
  },
10222
11274
  {
10223
- "code": 6129,
11275
+ "code": 6130,
10224
11276
  "name": "SelfReportDeprecated",
10225
11277
  "msg": "SelfReport deprecated"
10226
11278
  },
10227
11279
  {
10228
- "code": 6130,
11280
+ "code": 6131,
10229
11281
  "name": "ArbiterDeprecated",
10230
11282
  "msg": "arbiter deprecated"
10231
11283
  },
10232
11284
  {
10233
- "code": 6131,
11285
+ "code": 6132,
10234
11286
  "name": "InvalidBatchIndex",
10235
11287
  "msg": "bad batch idx"
10236
11288
  },
10237
11289
  {
10238
- "code": 6132,
11290
+ "code": 6133,
10239
11291
  "name": "InvalidPeriod",
10240
11292
  "msg": "bad period"
10241
11293
  },
10242
11294
  {
10243
- "code": 6133,
11295
+ "code": 6134,
10244
11296
  "name": "InvalidDisputeType",
10245
11297
  "msg": "bad dispute type"
10246
11298
  },
10247
11299
  {
10248
- "code": 6134,
11300
+ "code": 6135,
10249
11301
  "name": "ProofDeadlineExpired",
10250
11302
  "msg": "proof expired"
10251
11303
  },
10252
11304
  {
10253
- "code": 6135,
11305
+ "code": 6136,
10254
11306
  "name": "ProofDeadlineNotExpired",
10255
11307
  "msg": "proof not expired"
10256
11308
  },
10257
11309
  {
10258
- "code": 6136,
11310
+ "code": 6137,
10259
11311
  "name": "InvalidReceiptProof",
10260
11312
  "msg": "bad receipt proof"
10261
11313
  },
10262
11314
  {
10263
- "code": 6137,
11315
+ "code": 6138,
10264
11316
  "name": "SettlementReplay",
10265
11317
  "msg": "settlement replay"
10266
11318
  },
10267
11319
  {
10268
- "code": 6138,
11320
+ "code": 6139,
10269
11321
  "name": "PaymentTokenNotAllowed",
10270
11322
  "msg": "token not allowed"
10271
11323
  },
10272
11324
  {
10273
- "code": 6139,
11325
+ "code": 6140,
10274
11326
  "name": "AgentStakeRequired",
10275
11327
  "msg": "agent stake required"
10276
11328
  },
10277
11329
  {
10278
- "code": 6140,
11330
+ "code": 6141,
10279
11331
  "name": "DelegateExpiryInvalid",
10280
11332
  "msg": "delegate expiry invalid"
10281
11333
  },
10282
11334
  {
10283
- "code": 6141,
11335
+ "code": 6142,
10284
11336
  "name": "EscrowNotClosed",
10285
11337
  "msg": "escrow not closed"
10286
11338
  },
10287
11339
  {
10288
- "code": 6142,
11340
+ "code": 6143,
10289
11341
  "name": "VolumeCurveNotDescending",
10290
11342
  "msg": "curve not descending"
10291
11343
  },
10292
11344
  {
10293
- "code": 6143,
11345
+ "code": 6144,
10294
11346
  "name": "DuplicateServiceHash",
10295
11347
  "msg": "dup service hash"
10296
11348
  },
10297
11349
  {
10298
- "code": 6144,
11350
+ "code": 6145,
10299
11351
  "name": "StakeBelowCoverage",
10300
11352
  "msg": "stake under coverage"
10301
11353
  },
10302
11354
  {
10303
- "code": 6145,
11355
+ "code": 6146,
10304
11356
  "name": "StakeNotClosable",
10305
11357
  "msg": "stake not closable"
10306
11358
  },
10307
11359
  {
10308
- "code": 6146,
11360
+ "code": 6147,
10309
11361
  "name": "AgentStakeAccountMissing",
10310
11362
  "msg": "agent stake account missing"
11363
+ },
11364
+ {
11365
+ "code": 6148,
11366
+ "name": "PricingTierNotFound",
11367
+ "msg": "requested price_per_call does not match any tier in the agent pricing menu"
11368
+ },
11369
+ {
11370
+ "code": 6149,
11371
+ "name": "AgentStatsMigrationRequired",
11372
+ "msg": "agent stats must be upgraded before this operation (active_escrows field missing)"
11373
+ },
11374
+ {
11375
+ "code": 6150,
11376
+ "name": "InvalidPricingMenu",
11377
+ "msg": "pricing menu is invalid or empty (at least one tier required)"
11378
+ },
11379
+ {
11380
+ "code": 6151,
11381
+ "name": "MaxCallsPerSettlementExceeded",
11382
+ "msg": "calls per settlement exceeds maximum allowed (max 10000)"
11383
+ },
11384
+ {
11385
+ "code": 6152,
11386
+ "name": "InvalidVolumeCurvePrice",
11387
+ "msg": "volume curve breakpoint price must be > 0"
11388
+ },
11389
+ {
11390
+ "code": 6153,
11391
+ "name": "EscrowCoverageExceeded",
11392
+ "msg": "escrow deposit would exceed the agent's staked coverage limit"
11393
+ },
11394
+ {
11395
+ "code": 6154,
11396
+ "name": "CoSignerIsAgentWallet",
11397
+ "msg": "co-signer cannot be the agent wallet itself"
11398
+ },
11399
+ {
11400
+ "code": 6155,
11401
+ "name": "EscrowAlreadyExpired",
11402
+ "msg": "escrow has already expired"
11403
+ },
11404
+ {
11405
+ "code": 6156,
11406
+ "name": "PendingSettlementExists",
11407
+ "msg": "escrow has an unresolved pending settlement"
11408
+ },
11409
+ {
11410
+ "code": 6157,
11411
+ "name": "TokenAccountOwnerMismatch",
11412
+ "msg": "token account owner mismatch"
11413
+ },
11414
+ {
11415
+ "code": 6158,
11416
+ "name": "MaxReceiptProofExceeded",
11417
+ "msg": "receipt proof exceeds maximum allowed count"
11418
+ },
11419
+ {
11420
+ "code": 6159,
11421
+ "name": "MaxMerkleDepthExceeded",
11422
+ "msg": "merkle proof depth exceeds maximum allowed"
11423
+ },
11424
+ {
11425
+ "code": 6160,
11426
+ "name": "PendingAmountMismatch",
11427
+ "msg": "pending settlement amount does not match escrow pending amount"
11428
+ },
11429
+ {
11430
+ "code": 6161,
11431
+ "name": "StakeSlashLocksUnstake",
11432
+ "msg": "stake slash would lock unstake request"
11433
+ },
11434
+ {
11435
+ "code": 6162,
11436
+ "name": "InvalidPricePerCall",
11437
+ "msg": "price per call must be > 0"
11438
+ },
11439
+ {
11440
+ "code": 6163,
11441
+ "name": "SubscriptionIntervalOverflow",
11442
+ "msg": "subscription intervals overflow"
11443
+ },
11444
+ {
11445
+ "code": 6164,
11446
+ "name": "AgentStatsVersionMismatch",
11447
+ "msg": "agent stats version mismatch — migration required"
11448
+ },
11449
+ {
11450
+ "code": 6165,
11451
+ "name": "EscrowVersionMismatch",
11452
+ "msg": "escrow version mismatch — migration required"
10311
11453
  }
10312
11454
  ],
10313
11455
  "types": [
@@ -10494,16 +11636,50 @@
10494
11636
  }
10495
11637
  },
10496
11638
  {
10497
- "name": "is_active",
10498
- "type": "bool"
11639
+ "name": "is_active",
11640
+ "type": "bool"
11641
+ },
11642
+ {
11643
+ "name": "expires_at",
11644
+ "type": "i64"
11645
+ },
11646
+ {
11647
+ "name": "created_at",
11648
+ "type": "i64"
11649
+ },
11650
+ {
11651
+ "name": "updated_at",
11652
+ "type": "i64"
11653
+ }
11654
+ ]
11655
+ }
11656
+ },
11657
+ {
11658
+ "name": "AgentPricingMenu",
11659
+ "type": {
11660
+ "kind": "struct",
11661
+ "fields": [
11662
+ {
11663
+ "name": "bump",
11664
+ "type": "u8"
10499
11665
  },
10500
11666
  {
10501
- "name": "expires_at",
10502
- "type": "i64"
11667
+ "name": "agent",
11668
+ "type": "pubkey"
10503
11669
  },
10504
11670
  {
10505
- "name": "created_at",
10506
- "type": "i64"
11671
+ "name": "tiers",
11672
+ "docs": [
11673
+ "Copy of AgentAccount pricing at creation time.",
11674
+ "Max 10 tiers — enough for typical SaaS ladder."
11675
+ ],
11676
+ "type": {
11677
+ "vec": {
11678
+ "defined": {
11679
+ "name": "PricingTier"
11680
+ }
11681
+ }
11682
+ }
10507
11683
  },
10508
11684
  {
10509
11685
  "name": "updated_at",
@@ -10593,6 +11769,15 @@
10593
11769
  "name": "is_active",
10594
11770
  "type": "bool"
10595
11771
  },
11772
+ {
11773
+ "name": "active_escrows",
11774
+ "docs": [
11775
+ "v0.12 H-1 hardening: counter of open escrows for this agent.",
11776
+ "Incremented on create_escrow, decremented on close_escrow.",
11777
+ "close_agent refuses to execute unless this is zero."
11778
+ ],
11779
+ "type": "u32"
11780
+ },
10596
11781
  {
10597
11782
  "name": "updated_at",
10598
11783
  "type": "i64"
@@ -10738,6 +11923,76 @@
10738
11923
  ]
10739
11924
  }
10740
11925
  },
11926
+ {
11927
+ "name": "BufferAppendedEvent",
11928
+ "docs": [
11929
+ "Data appended to buffer."
11930
+ ],
11931
+ "type": {
11932
+ "kind": "struct",
11933
+ "fields": [
11934
+ {
11935
+ "name": "session",
11936
+ "type": "pubkey"
11937
+ },
11938
+ {
11939
+ "name": "buffer",
11940
+ "type": "pubkey"
11941
+ },
11942
+ {
11943
+ "name": "page_index",
11944
+ "type": "u32"
11945
+ },
11946
+ {
11947
+ "name": "chunk_size",
11948
+ "type": "u16"
11949
+ },
11950
+ {
11951
+ "name": "total_size",
11952
+ "type": "u16"
11953
+ },
11954
+ {
11955
+ "name": "num_entries",
11956
+ "type": "u16"
11957
+ },
11958
+ {
11959
+ "name": "timestamp",
11960
+ "type": "i64"
11961
+ }
11962
+ ]
11963
+ }
11964
+ },
11965
+ {
11966
+ "name": "BufferCreatedEvent",
11967
+ "docs": [
11968
+ "Buffer page created."
11969
+ ],
11970
+ "type": {
11971
+ "kind": "struct",
11972
+ "fields": [
11973
+ {
11974
+ "name": "session",
11975
+ "type": "pubkey"
11976
+ },
11977
+ {
11978
+ "name": "buffer",
11979
+ "type": "pubkey"
11980
+ },
11981
+ {
11982
+ "name": "authority",
11983
+ "type": "pubkey"
11984
+ },
11985
+ {
11986
+ "name": "page_index",
11987
+ "type": "u32"
11988
+ },
11989
+ {
11990
+ "name": "timestamp",
11991
+ "type": "i64"
11992
+ }
11993
+ ]
11994
+ }
11995
+ },
10741
11996
  {
10742
11997
  "name": "CallsReportedEvent",
10743
11998
  "type": {
@@ -11086,6 +12341,109 @@
11086
12341
  ]
11087
12342
  }
11088
12343
  },
12344
+ {
12345
+ "name": "DigestInscribedEvent",
12346
+ "docs": [
12347
+ "Data inscribed to TX log via digest. Permanent, zero rent.",
12348
+ "Verify: sha256(data) == content_hash. Replay merkle chain → match root."
12349
+ ],
12350
+ "type": {
12351
+ "kind": "struct",
12352
+ "fields": [
12353
+ {
12354
+ "name": "session",
12355
+ "type": "pubkey"
12356
+ },
12357
+ {
12358
+ "name": "digest",
12359
+ "type": "pubkey"
12360
+ },
12361
+ {
12362
+ "name": "entry_index",
12363
+ "type": "u32"
12364
+ },
12365
+ {
12366
+ "name": "data",
12367
+ "type": "bytes"
12368
+ },
12369
+ {
12370
+ "name": "content_hash",
12371
+ "type": {
12372
+ "array": [
12373
+ "u8",
12374
+ 32
12375
+ ]
12376
+ }
12377
+ },
12378
+ {
12379
+ "name": "data_len",
12380
+ "type": "u32"
12381
+ },
12382
+ {
12383
+ "name": "merkle_root",
12384
+ "type": {
12385
+ "array": [
12386
+ "u8",
12387
+ 32
12388
+ ]
12389
+ }
12390
+ },
12391
+ {
12392
+ "name": "timestamp",
12393
+ "type": "i64"
12394
+ }
12395
+ ]
12396
+ }
12397
+ },
12398
+ {
12399
+ "name": "DigestPostedEvent",
12400
+ "docs": [
12401
+ "Digest proof posted (hash only, no data)."
12402
+ ],
12403
+ "type": {
12404
+ "kind": "struct",
12405
+ "fields": [
12406
+ {
12407
+ "name": "session",
12408
+ "type": "pubkey"
12409
+ },
12410
+ {
12411
+ "name": "digest",
12412
+ "type": "pubkey"
12413
+ },
12414
+ {
12415
+ "name": "content_hash",
12416
+ "type": {
12417
+ "array": [
12418
+ "u8",
12419
+ 32
12420
+ ]
12421
+ }
12422
+ },
12423
+ {
12424
+ "name": "data_size",
12425
+ "type": "u32"
12426
+ },
12427
+ {
12428
+ "name": "entry_index",
12429
+ "type": "u32"
12430
+ },
12431
+ {
12432
+ "name": "merkle_root",
12433
+ "type": {
12434
+ "array": [
12435
+ "u8",
12436
+ 32
12437
+ ]
12438
+ }
12439
+ },
12440
+ {
12441
+ "name": "timestamp",
12442
+ "type": "i64"
12443
+ }
12444
+ ]
12445
+ }
12446
+ },
11089
12447
  {
11090
12448
  "name": "DisputeAutoResolvedEvent",
11091
12449
  "docs": [
@@ -11467,112 +12825,23 @@
11467
12825
  {
11468
12826
  "name": "EpochPageClosedEvent",
11469
12827
  "type": {
11470
- "kind": "struct",
11471
- "fields": [
11472
- {
11473
- "name": "session",
11474
- "type": "pubkey"
11475
- },
11476
- {
11477
- "name": "epoch_page",
11478
- "type": "pubkey"
11479
- },
11480
- {
11481
- "name": "epoch_index",
11482
- "type": "u32"
11483
- },
11484
- {
11485
- "name": "timestamp",
11486
- "type": "i64"
11487
- }
11488
- ]
11489
- }
11490
- },
11491
- {
11492
- "name": "EscrowAccount",
11493
- "type": {
11494
- "kind": "struct",
11495
- "fields": [
11496
- {
11497
- "name": "bump",
11498
- "type": "u8"
11499
- },
11500
- {
11501
- "name": "agent",
11502
- "type": "pubkey"
11503
- },
11504
- {
11505
- "name": "depositor",
11506
- "type": "pubkey"
11507
- },
11508
- {
11509
- "name": "agent_wallet",
11510
- "type": "pubkey"
11511
- },
11512
- {
11513
- "name": "balance",
11514
- "type": "u64"
11515
- },
11516
- {
11517
- "name": "total_deposited",
11518
- "type": "u64"
11519
- },
11520
- {
11521
- "name": "total_settled",
11522
- "type": "u64"
11523
- },
11524
- {
11525
- "name": "total_calls_settled",
11526
- "type": "u64"
11527
- },
11528
- {
11529
- "name": "price_per_call",
11530
- "type": "u64"
11531
- },
11532
- {
11533
- "name": "max_calls",
11534
- "type": "u64"
11535
- },
11536
- {
11537
- "name": "created_at",
11538
- "type": "i64"
11539
- },
11540
- {
11541
- "name": "last_settled_at",
11542
- "type": "i64"
11543
- },
12828
+ "kind": "struct",
12829
+ "fields": [
11544
12830
  {
11545
- "name": "expires_at",
11546
- "type": "i64"
12831
+ "name": "session",
12832
+ "type": "pubkey"
11547
12833
  },
11548
12834
  {
11549
- "name": "volume_curve",
11550
- "docs": [
11551
- "Tiered pricing curve (max 5 breakpoints). Spans tier boundaries."
11552
- ],
11553
- "type": {
11554
- "vec": {
11555
- "defined": {
11556
- "name": "VolumeCurveBreakpoint"
11557
- }
11558
- }
11559
- }
12835
+ "name": "epoch_page",
12836
+ "type": "pubkey"
11560
12837
  },
11561
12838
  {
11562
- "name": "token_mint",
11563
- "docs": [
11564
- "None = SOL, Some = SPL token."
11565
- ],
11566
- "type": {
11567
- "option": "pubkey"
11568
- }
12839
+ "name": "epoch_index",
12840
+ "type": "u32"
11569
12841
  },
11570
12842
  {
11571
- "name": "token_decimals",
11572
- "docs": [
11573
- "Token decimals (9=SOL, 6=USDC). Informational."
11574
- ],
11575
- "type": "u8"
12843
+ "name": "timestamp",
12844
+ "type": "i64"
11576
12845
  }
11577
12846
  ]
11578
12847
  }
@@ -11704,6 +12973,27 @@
11704
12973
  {
11705
12974
  "name": "receipt_batch_count",
11706
12975
  "type": "u32"
12976
+ },
12977
+ {
12978
+ "name": "dispute_bond_total",
12979
+ "docs": [
12980
+ "Cumulative dispute bonds held in escrow (orphan protection)."
12981
+ ],
12982
+ "type": "u64"
12983
+ },
12984
+ {
12985
+ "name": "max_obligation",
12986
+ "docs": [
12987
+ "Maximum balance allowed (set at creation time based on stake coverage)."
12988
+ ],
12989
+ "type": "u64"
12990
+ },
12991
+ {
12992
+ "name": "pending_settlement_count",
12993
+ "docs": [
12994
+ "Number of non-finalized PendingSettlement PDAs for this escrow."
12995
+ ],
12996
+ "type": "u32"
11707
12997
  }
11708
12998
  ]
11709
12999
  }
@@ -12144,46 +13434,266 @@
12144
13434
  "type": "pubkey"
12145
13435
  },
12146
13436
  {
12147
- "name": "index_page",
13437
+ "name": "index_page",
13438
+ "type": "pubkey"
13439
+ },
13440
+ {
13441
+ "name": "page_index",
13442
+ "type": "u8"
13443
+ },
13444
+ {
13445
+ "name": "timestamp",
13446
+ "type": "i64"
13447
+ }
13448
+ ]
13449
+ }
13450
+ },
13451
+ {
13452
+ "name": "LedgerEntryEvent",
13453
+ "docs": [
13454
+ "Ledger write. Carries data in TX log — permanent, immutable."
13455
+ ],
13456
+ "type": {
13457
+ "kind": "struct",
13458
+ "fields": [
13459
+ {
13460
+ "name": "session",
13461
+ "type": "pubkey"
13462
+ },
13463
+ {
13464
+ "name": "ledger",
13465
+ "type": "pubkey"
13466
+ },
13467
+ {
13468
+ "name": "entry_index",
13469
+ "type": "u32"
13470
+ },
13471
+ {
13472
+ "name": "data",
13473
+ "type": "bytes"
13474
+ },
13475
+ {
13476
+ "name": "content_hash",
13477
+ "type": {
13478
+ "array": [
13479
+ "u8",
13480
+ 32
13481
+ ]
13482
+ }
13483
+ },
13484
+ {
13485
+ "name": "data_len",
13486
+ "type": "u32"
13487
+ },
13488
+ {
13489
+ "name": "merkle_root",
13490
+ "type": {
13491
+ "array": [
13492
+ "u8",
13493
+ 32
13494
+ ]
13495
+ }
13496
+ },
13497
+ {
13498
+ "name": "timestamp",
13499
+ "type": "i64"
13500
+ }
13501
+ ]
13502
+ }
13503
+ },
13504
+ {
13505
+ "name": "LedgerPage",
13506
+ "type": {
13507
+ "kind": "struct",
13508
+ "fields": [
13509
+ {
13510
+ "name": "bump",
13511
+ "type": "u8"
13512
+ },
13513
+ {
13514
+ "name": "ledger",
13515
+ "type": "pubkey"
13516
+ },
13517
+ {
13518
+ "name": "page_index",
13519
+ "type": "u32"
13520
+ },
13521
+ {
13522
+ "name": "sealed_at",
13523
+ "type": "i64"
13524
+ },
13525
+ {
13526
+ "name": "entries_in_page",
13527
+ "type": "u32"
13528
+ },
13529
+ {
13530
+ "name": "data_size",
13531
+ "type": "u32"
13532
+ },
13533
+ {
13534
+ "name": "merkle_root_at_seal",
13535
+ "type": {
13536
+ "array": [
13537
+ "u8",
13538
+ 32
13539
+ ]
13540
+ }
13541
+ },
13542
+ {
13543
+ "name": "data",
13544
+ "type": "bytes"
13545
+ }
13546
+ ]
13547
+ }
13548
+ },
13549
+ {
13550
+ "name": "LedgerSealedEvent",
13551
+ "docs": [
13552
+ "Ring sealed into permanent page. Write-once, no close exists."
13553
+ ],
13554
+ "type": {
13555
+ "kind": "struct",
13556
+ "fields": [
13557
+ {
13558
+ "name": "session",
13559
+ "type": "pubkey"
13560
+ },
13561
+ {
13562
+ "name": "ledger",
13563
+ "type": "pubkey"
13564
+ },
13565
+ {
13566
+ "name": "page",
13567
+ "type": "pubkey"
13568
+ },
13569
+ {
13570
+ "name": "page_index",
13571
+ "type": "u32"
13572
+ },
13573
+ {
13574
+ "name": "entries_in_page",
13575
+ "type": "u32"
13576
+ },
13577
+ {
13578
+ "name": "data_size",
13579
+ "type": "u32"
13580
+ },
13581
+ {
13582
+ "name": "merkle_root_at_seal",
13583
+ "type": {
13584
+ "array": [
13585
+ "u8",
13586
+ 32
13587
+ ]
13588
+ }
13589
+ },
13590
+ {
13591
+ "name": "timestamp",
13592
+ "type": "i64"
13593
+ }
13594
+ ]
13595
+ }
13596
+ },
13597
+ {
13598
+ "name": "MemoryBuffer",
13599
+ "type": {
13600
+ "kind": "struct",
13601
+ "fields": [
13602
+ {
13603
+ "name": "bump",
13604
+ "type": "u8"
13605
+ },
13606
+ {
13607
+ "name": "session",
13608
+ "type": "pubkey"
13609
+ },
13610
+ {
13611
+ "name": "authority",
13612
+ "type": "pubkey"
13613
+ },
13614
+ {
13615
+ "name": "page_index",
13616
+ "type": "u32"
13617
+ },
13618
+ {
13619
+ "name": "num_entries",
13620
+ "type": "u16"
13621
+ },
13622
+ {
13623
+ "name": "total_size",
13624
+ "type": "u16"
13625
+ },
13626
+ {
13627
+ "name": "created_at",
13628
+ "type": "i64"
13629
+ },
13630
+ {
13631
+ "name": "updated_at",
13632
+ "type": "i64"
13633
+ },
13634
+ {
13635
+ "name": "data",
13636
+ "type": "bytes"
13637
+ }
13638
+ ]
13639
+ }
13640
+ },
13641
+ {
13642
+ "name": "MemoryChunk",
13643
+ "type": {
13644
+ "kind": "struct",
13645
+ "fields": [
13646
+ {
13647
+ "name": "bump",
13648
+ "type": "u8"
13649
+ },
13650
+ {
13651
+ "name": "memory_entry",
12148
13652
  "type": "pubkey"
12149
13653
  },
12150
13654
  {
12151
- "name": "page_index",
13655
+ "name": "chunk_index",
12152
13656
  "type": "u8"
12153
13657
  },
12154
13658
  {
12155
- "name": "timestamp",
12156
- "type": "i64"
13659
+ "name": "data",
13660
+ "type": "bytes"
12157
13661
  }
12158
13662
  ]
12159
13663
  }
12160
13664
  },
12161
13665
  {
12162
- "name": "LedgerEntryEvent",
12163
- "docs": [
12164
- "Ledger write. Carries data in TX log — permanent, immutable."
12165
- ],
13666
+ "name": "MemoryDigest",
12166
13667
  "type": {
12167
13668
  "kind": "struct",
12168
13669
  "fields": [
13670
+ {
13671
+ "name": "bump",
13672
+ "type": "u8"
13673
+ },
12169
13674
  {
12170
13675
  "name": "session",
12171
13676
  "type": "pubkey"
12172
13677
  },
12173
13678
  {
12174
- "name": "ledger",
13679
+ "name": "authority",
12175
13680
  "type": "pubkey"
12176
13681
  },
12177
13682
  {
12178
- "name": "entry_index",
13683
+ "name": "num_entries",
12179
13684
  "type": "u32"
12180
13685
  },
12181
13686
  {
12182
- "name": "data",
12183
- "type": "bytes"
13687
+ "name": "merkle_root",
13688
+ "type": {
13689
+ "array": [
13690
+ "u8",
13691
+ 32
13692
+ ]
13693
+ }
12184
13694
  },
12185
13695
  {
12186
- "name": "content_hash",
13696
+ "name": "latest_hash",
12187
13697
  "type": {
12188
13698
  "array": [
12189
13699
  "u8",
@@ -12192,11 +13702,11 @@
12192
13702
  }
12193
13703
  },
12194
13704
  {
12195
- "name": "data_len",
12196
- "type": "u32"
13705
+ "name": "total_data_size",
13706
+ "type": "u64"
12197
13707
  },
12198
13708
  {
12199
- "name": "merkle_root",
13709
+ "name": "storage_ref",
12200
13710
  "type": {
12201
13711
  "array": [
12202
13712
  "u8",
@@ -12205,14 +13715,22 @@
12205
13715
  }
12206
13716
  },
12207
13717
  {
12208
- "name": "timestamp",
13718
+ "name": "storage_type",
13719
+ "type": "u8"
13720
+ },
13721
+ {
13722
+ "name": "created_at",
13723
+ "type": "i64"
13724
+ },
13725
+ {
13726
+ "name": "updated_at",
12209
13727
  "type": "i64"
12210
13728
  }
12211
13729
  ]
12212
13730
  }
12213
13731
  },
12214
13732
  {
12215
- "name": "LedgerPage",
13733
+ "name": "MemoryEntry",
12216
13734
  "type": {
12217
13735
  "kind": "struct",
12218
13736
  "fields": [
@@ -12221,27 +13739,11 @@
12221
13739
  "type": "u8"
12222
13740
  },
12223
13741
  {
12224
- "name": "ledger",
13742
+ "name": "agent",
12225
13743
  "type": "pubkey"
12226
13744
  },
12227
13745
  {
12228
- "name": "page_index",
12229
- "type": "u32"
12230
- },
12231
- {
12232
- "name": "sealed_at",
12233
- "type": "i64"
12234
- },
12235
- {
12236
- "name": "entries_in_page",
12237
- "type": "u32"
12238
- },
12239
- {
12240
- "name": "data_size",
12241
- "type": "u32"
12242
- },
12243
- {
12244
- "name": "merkle_root_at_seal",
13746
+ "name": "entry_hash",
12245
13747
  "type": {
12246
13748
  "array": [
12247
13749
  "u8",
@@ -12250,55 +13752,29 @@
12250
13752
  }
12251
13753
  },
12252
13754
  {
12253
- "name": "data",
12254
- "type": "bytes"
12255
- }
12256
- ]
12257
- }
12258
- },
12259
- {
12260
- "name": "LedgerSealedEvent",
12261
- "docs": [
12262
- "Ring sealed into permanent page. Write-once, no close exists."
12263
- ],
12264
- "type": {
12265
- "kind": "struct",
12266
- "fields": [
12267
- {
12268
- "name": "session",
12269
- "type": "pubkey"
12270
- },
12271
- {
12272
- "name": "ledger",
12273
- "type": "pubkey"
12274
- },
12275
- {
12276
- "name": "page",
12277
- "type": "pubkey"
13755
+ "name": "content_type",
13756
+ "type": "string"
12278
13757
  },
12279
13758
  {
12280
- "name": "page_index",
12281
- "type": "u32"
13759
+ "name": "ipfs_cid",
13760
+ "type": {
13761
+ "option": "string"
13762
+ }
12282
13763
  },
12283
13764
  {
12284
- "name": "entries_in_page",
12285
- "type": "u32"
13765
+ "name": "total_chunks",
13766
+ "type": "u8"
12286
13767
  },
12287
13768
  {
12288
- "name": "data_size",
13769
+ "name": "total_size",
12289
13770
  "type": "u32"
12290
13771
  },
12291
13772
  {
12292
- "name": "merkle_root_at_seal",
12293
- "type": {
12294
- "array": [
12295
- "u8",
12296
- 32
12297
- ]
12298
- }
13773
+ "name": "created_at",
13774
+ "type": "i64"
12299
13775
  },
12300
13776
  {
12301
- "name": "timestamp",
13777
+ "name": "updated_at",
12302
13778
  "type": "i64"
12303
13779
  }
12304
13780
  ]
@@ -12440,6 +13916,35 @@
12440
13916
  ]
12441
13917
  }
12442
13918
  },
13919
+ {
13920
+ "name": "MemoryStoredEvent",
13921
+ "type": {
13922
+ "kind": "struct",
13923
+ "fields": [
13924
+ {
13925
+ "name": "agent",
13926
+ "type": "pubkey"
13927
+ },
13928
+ {
13929
+ "name": "entry_hash",
13930
+ "type": {
13931
+ "array": [
13932
+ "u8",
13933
+ 32
13934
+ ]
13935
+ }
13936
+ },
13937
+ {
13938
+ "name": "content_type",
13939
+ "type": "string"
13940
+ },
13941
+ {
13942
+ "name": "timestamp",
13943
+ "type": "i64"
13944
+ }
13945
+ ]
13946
+ }
13947
+ },
12443
13948
  {
12444
13949
  "name": "MemoryVault",
12445
13950
  "type": {
@@ -12654,6 +14159,72 @@
12654
14159
  ]
12655
14160
  }
12656
14161
  },
14162
+ {
14163
+ "name": "PluginRegisteredEvent",
14164
+ "type": {
14165
+ "kind": "struct",
14166
+ "fields": [
14167
+ {
14168
+ "name": "agent",
14169
+ "type": "pubkey"
14170
+ },
14171
+ {
14172
+ "name": "plugin_type",
14173
+ "type": "u8"
14174
+ },
14175
+ {
14176
+ "name": "plugin_pda",
14177
+ "type": "pubkey"
14178
+ },
14179
+ {
14180
+ "name": "timestamp",
14181
+ "type": "i64"
14182
+ }
14183
+ ]
14184
+ }
14185
+ },
14186
+ {
14187
+ "name": "PluginSlot",
14188
+ "type": {
14189
+ "kind": "struct",
14190
+ "fields": [
14191
+ {
14192
+ "name": "bump",
14193
+ "type": "u8"
14194
+ },
14195
+ {
14196
+ "name": "agent",
14197
+ "type": "pubkey"
14198
+ },
14199
+ {
14200
+ "name": "plugin_type",
14201
+ "type": {
14202
+ "defined": {
14203
+ "name": "PluginType"
14204
+ }
14205
+ }
14206
+ },
14207
+ {
14208
+ "name": "is_active",
14209
+ "type": "bool"
14210
+ },
14211
+ {
14212
+ "name": "initialized_at",
14213
+ "type": "i64"
14214
+ },
14215
+ {
14216
+ "name": "last_updated",
14217
+ "type": "i64"
14218
+ },
14219
+ {
14220
+ "name": "data_account",
14221
+ "type": {
14222
+ "option": "pubkey"
14223
+ }
14224
+ }
14225
+ ]
14226
+ }
14227
+ },
12657
14228
  {
12658
14229
  "name": "PluginType",
12659
14230
  "type": {
@@ -13312,36 +14883,6 @@
13312
14883
  ]
13313
14884
  }
13314
14885
  },
13315
- {
13316
- "name": "Settlement",
13317
- "docs": [
13318
- "Individual settlement entry for batch."
13319
- ],
13320
- "type": {
13321
- "kind": "struct",
13322
- "fields": [
13323
- {
13324
- "name": "calls_to_settle",
13325
- "docs": [
13326
- "Calls to bill"
13327
- ],
13328
- "type": "u64"
13329
- },
13330
- {
13331
- "name": "service_hash",
13332
- "docs": [
13333
- "sha256 proof of service"
13334
- ],
13335
- "type": {
13336
- "array": [
13337
- "u8",
13338
- 32
13339
- ]
13340
- }
13341
- }
13342
- ]
13343
- }
13344
- },
13345
14886
  {
13346
14887
  "name": "SettlementFinalizedEvent",
13347
14888
  "docs": [
@@ -13626,6 +15167,42 @@
13626
15167
  ]
13627
15168
  }
13628
15169
  },
15170
+ {
15171
+ "name": "StorageRefUpdatedEvent",
15172
+ "docs": [
15173
+ "Offchain storage pointer updated."
15174
+ ],
15175
+ "type": {
15176
+ "kind": "struct",
15177
+ "fields": [
15178
+ {
15179
+ "name": "session",
15180
+ "type": "pubkey"
15181
+ },
15182
+ {
15183
+ "name": "digest",
15184
+ "type": "pubkey"
15185
+ },
15186
+ {
15187
+ "name": "storage_ref",
15188
+ "type": {
15189
+ "array": [
15190
+ "u8",
15191
+ 32
15192
+ ]
15193
+ }
15194
+ },
15195
+ {
15196
+ "name": "storage_type",
15197
+ "type": "u8"
15198
+ },
15199
+ {
15200
+ "name": "timestamp",
15201
+ "type": "i64"
15202
+ }
15203
+ ]
15204
+ }
15205
+ },
13629
15206
  {
13630
15207
  "name": "Subscription",
13631
15208
  "type": {