pyre-world-kit 1.0.22 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,706 @@
1
+ {
2
+ "address": "2oai1EaDnFcSNskyVwSbGkUEddxxfUSsSVRokE31gRfv",
3
+ "metadata": {
4
+ "name": "pyre_world",
5
+ "version": "0.1.0",
6
+ "spec": "0.1.0",
7
+ "description": "pyre.world agent registry"
8
+ },
9
+ "instructions": [
10
+ {
11
+ "name": "checkpoint",
12
+ "docs": [
13
+ "Update action counters and personality summary.",
14
+ "Only the linked wallet can call this."
15
+ ],
16
+ "discriminator": [
17
+ 213,
18
+ 200,
19
+ 19,
20
+ 204,
21
+ 240,
22
+ 143,
23
+ 184,
24
+ 252
25
+ ],
26
+ "accounts": [
27
+ {
28
+ "name": "signer",
29
+ "docs": [
30
+ "Must be the profile's linked_wallet"
31
+ ],
32
+ "writable": true,
33
+ "signer": true
34
+ },
35
+ {
36
+ "name": "profile",
37
+ "writable": true,
38
+ "pda": {
39
+ "seeds": [
40
+ {
41
+ "kind": "const",
42
+ "value": [
43
+ 112,
44
+ 121,
45
+ 114,
46
+ 101,
47
+ 95,
48
+ 97,
49
+ 103,
50
+ 101,
51
+ 110,
52
+ 116
53
+ ]
54
+ },
55
+ {
56
+ "kind": "account",
57
+ "path": "profile.creator",
58
+ "account": "AgentProfile"
59
+ }
60
+ ]
61
+ }
62
+ }
63
+ ],
64
+ "args": [
65
+ {
66
+ "name": "args",
67
+ "type": {
68
+ "defined": {
69
+ "name": "CheckpointArgs"
70
+ }
71
+ }
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ "name": "link_wallet",
77
+ "docs": [
78
+ "Link a new wallet to the profile. Authority only.",
79
+ "Must unlink existing wallet first."
80
+ ],
81
+ "discriminator": [
82
+ 86,
83
+ 92,
84
+ 31,
85
+ 146,
86
+ 228,
87
+ 51,
88
+ 209,
89
+ 230
90
+ ],
91
+ "accounts": [
92
+ {
93
+ "name": "authority",
94
+ "writable": true,
95
+ "signer": true,
96
+ "relations": [
97
+ "profile"
98
+ ]
99
+ },
100
+ {
101
+ "name": "profile",
102
+ "writable": true,
103
+ "pda": {
104
+ "seeds": [
105
+ {
106
+ "kind": "const",
107
+ "value": [
108
+ 112,
109
+ 121,
110
+ 114,
111
+ 101,
112
+ 95,
113
+ 97,
114
+ 103,
115
+ 101,
116
+ 110,
117
+ 116
118
+ ]
119
+ },
120
+ {
121
+ "kind": "account",
122
+ "path": "profile.creator",
123
+ "account": "AgentProfile"
124
+ }
125
+ ]
126
+ }
127
+ },
128
+ {
129
+ "name": "wallet_to_link"
130
+ },
131
+ {
132
+ "name": "wallet_link",
133
+ "writable": true,
134
+ "pda": {
135
+ "seeds": [
136
+ {
137
+ "kind": "const",
138
+ "value": [
139
+ 112,
140
+ 121,
141
+ 114,
142
+ 101,
143
+ 95,
144
+ 97,
145
+ 103,
146
+ 101,
147
+ 110,
148
+ 116,
149
+ 95,
150
+ 119,
151
+ 97,
152
+ 108,
153
+ 108,
154
+ 101,
155
+ 116
156
+ ]
157
+ },
158
+ {
159
+ "kind": "account",
160
+ "path": "wallet_to_link"
161
+ }
162
+ ]
163
+ }
164
+ },
165
+ {
166
+ "name": "system_program",
167
+ "address": "11111111111111111111111111111111"
168
+ }
169
+ ],
170
+ "args": []
171
+ },
172
+ {
173
+ "name": "register",
174
+ "docs": [
175
+ "Register a new agent profile and auto-link the creator's wallet."
176
+ ],
177
+ "discriminator": [
178
+ 211,
179
+ 124,
180
+ 67,
181
+ 15,
182
+ 211,
183
+ 194,
184
+ 178,
185
+ 240
186
+ ],
187
+ "accounts": [
188
+ {
189
+ "name": "creator",
190
+ "writable": true,
191
+ "signer": true
192
+ },
193
+ {
194
+ "name": "profile",
195
+ "writable": true,
196
+ "pda": {
197
+ "seeds": [
198
+ {
199
+ "kind": "const",
200
+ "value": [
201
+ 112,
202
+ 121,
203
+ 114,
204
+ 101,
205
+ 95,
206
+ 97,
207
+ 103,
208
+ 101,
209
+ 110,
210
+ 116
211
+ ]
212
+ },
213
+ {
214
+ "kind": "account",
215
+ "path": "creator"
216
+ }
217
+ ]
218
+ }
219
+ },
220
+ {
221
+ "name": "wallet_link",
222
+ "docs": [
223
+ "Auto-created wallet link for the creator"
224
+ ],
225
+ "writable": true,
226
+ "pda": {
227
+ "seeds": [
228
+ {
229
+ "kind": "const",
230
+ "value": [
231
+ 112,
232
+ 121,
233
+ 114,
234
+ 101,
235
+ 95,
236
+ 97,
237
+ 103,
238
+ 101,
239
+ 110,
240
+ 116,
241
+ 95,
242
+ 119,
243
+ 97,
244
+ 108,
245
+ 108,
246
+ 101,
247
+ 116
248
+ ]
249
+ },
250
+ {
251
+ "kind": "account",
252
+ "path": "creator"
253
+ }
254
+ ]
255
+ }
256
+ },
257
+ {
258
+ "name": "system_program",
259
+ "address": "11111111111111111111111111111111"
260
+ }
261
+ ],
262
+ "args": []
263
+ },
264
+ {
265
+ "name": "transfer_authority",
266
+ "docs": [
267
+ "Transfer profile authority to a new wallet."
268
+ ],
269
+ "discriminator": [
270
+ 48,
271
+ 169,
272
+ 76,
273
+ 72,
274
+ 229,
275
+ 180,
276
+ 55,
277
+ 161
278
+ ],
279
+ "accounts": [
280
+ {
281
+ "name": "authority",
282
+ "signer": true,
283
+ "relations": [
284
+ "profile"
285
+ ]
286
+ },
287
+ {
288
+ "name": "profile",
289
+ "writable": true,
290
+ "pda": {
291
+ "seeds": [
292
+ {
293
+ "kind": "const",
294
+ "value": [
295
+ 112,
296
+ 121,
297
+ 114,
298
+ 101,
299
+ 95,
300
+ 97,
301
+ 103,
302
+ 101,
303
+ 110,
304
+ 116
305
+ ]
306
+ },
307
+ {
308
+ "kind": "account",
309
+ "path": "profile.creator",
310
+ "account": "AgentProfile"
311
+ }
312
+ ]
313
+ }
314
+ },
315
+ {
316
+ "name": "new_authority"
317
+ }
318
+ ],
319
+ "args": []
320
+ },
321
+ {
322
+ "name": "unlink_wallet",
323
+ "docs": [
324
+ "Unlink the current wallet. Authority only."
325
+ ],
326
+ "discriminator": [
327
+ 220,
328
+ 121,
329
+ 97,
330
+ 13,
331
+ 193,
332
+ 137,
333
+ 209,
334
+ 159
335
+ ],
336
+ "accounts": [
337
+ {
338
+ "name": "authority",
339
+ "writable": true,
340
+ "signer": true,
341
+ "relations": [
342
+ "profile"
343
+ ]
344
+ },
345
+ {
346
+ "name": "profile",
347
+ "writable": true,
348
+ "pda": {
349
+ "seeds": [
350
+ {
351
+ "kind": "const",
352
+ "value": [
353
+ 112,
354
+ 121,
355
+ 114,
356
+ 101,
357
+ 95,
358
+ 97,
359
+ 103,
360
+ 101,
361
+ 110,
362
+ 116
363
+ ]
364
+ },
365
+ {
366
+ "kind": "account",
367
+ "path": "profile.creator",
368
+ "account": "AgentProfile"
369
+ }
370
+ ]
371
+ }
372
+ },
373
+ {
374
+ "name": "wallet_to_unlink"
375
+ },
376
+ {
377
+ "name": "wallet_link",
378
+ "writable": true,
379
+ "pda": {
380
+ "seeds": [
381
+ {
382
+ "kind": "const",
383
+ "value": [
384
+ 112,
385
+ 121,
386
+ 114,
387
+ 101,
388
+ 95,
389
+ 97,
390
+ 103,
391
+ 101,
392
+ 110,
393
+ 116,
394
+ 95,
395
+ 119,
396
+ 97,
397
+ 108,
398
+ 108,
399
+ 101,
400
+ 116
401
+ ]
402
+ },
403
+ {
404
+ "kind": "account",
405
+ "path": "wallet_to_unlink"
406
+ }
407
+ ]
408
+ }
409
+ },
410
+ {
411
+ "name": "system_program",
412
+ "address": "11111111111111111111111111111111"
413
+ }
414
+ ],
415
+ "args": []
416
+ }
417
+ ],
418
+ "accounts": [
419
+ {
420
+ "name": "AgentProfile",
421
+ "discriminator": [
422
+ 60,
423
+ 227,
424
+ 42,
425
+ 24,
426
+ 0,
427
+ 87,
428
+ 86,
429
+ 205
430
+ ]
431
+ },
432
+ {
433
+ "name": "AgentWalletLink",
434
+ "discriminator": [
435
+ 253,
436
+ 251,
437
+ 63,
438
+ 168,
439
+ 140,
440
+ 233,
441
+ 129,
442
+ 156
443
+ ]
444
+ }
445
+ ],
446
+ "errors": [
447
+ {
448
+ "code": 6000,
449
+ "name": "PersonalityTooLong",
450
+ "msg": "Personality summary exceeds 256 characters"
451
+ },
452
+ {
453
+ "code": 6001,
454
+ "name": "CounterNotMonotonic",
455
+ "msg": "Counter value cannot decrease (must be monotonically increasing)"
456
+ },
457
+ {
458
+ "code": 6002,
459
+ "name": "WalletAlreadyLinked",
460
+ "msg": "A wallet is already linked to this profile — unlink first"
461
+ },
462
+ {
463
+ "code": 6003,
464
+ "name": "WalletLinkMismatch",
465
+ "msg": "Wallet link does not belong to this profile"
466
+ },
467
+ {
468
+ "code": 6004,
469
+ "name": "NoWalletLinked",
470
+ "msg": "Cannot unlink — no wallet is currently linked"
471
+ }
472
+ ],
473
+ "types": [
474
+ {
475
+ "name": "AgentProfile",
476
+ "docs": [
477
+ "Per-agent identity and state. One per creator.",
478
+ "",
479
+ "Stores action distribution counters (monotonically increasing)",
480
+ "and a compressed personality summary for stateless reconstruction.",
481
+ "",
482
+ "Seeds: [\"pyre_agent\", creator.key()]"
483
+ ],
484
+ "type": {
485
+ "kind": "struct",
486
+ "fields": [
487
+ {
488
+ "name": "creator",
489
+ "docs": [
490
+ "Immutable creator wallet — PDA seed (never changes)"
491
+ ],
492
+ "type": "pubkey"
493
+ },
494
+ {
495
+ "name": "authority",
496
+ "docs": [
497
+ "Current authority — controls link/unlink/transfer (transferable)"
498
+ ],
499
+ "type": "pubkey"
500
+ },
501
+ {
502
+ "name": "linked_wallet",
503
+ "docs": [
504
+ "Current active wallet that can write checkpoints"
505
+ ],
506
+ "type": "pubkey"
507
+ },
508
+ {
509
+ "name": "personality_summary",
510
+ "docs": [
511
+ "LLM-compressed personality paragraph (max 256 chars)"
512
+ ],
513
+ "type": "string"
514
+ },
515
+ {
516
+ "name": "last_checkpoint",
517
+ "docs": [
518
+ "Unix timestamp of last checkpoint"
519
+ ],
520
+ "type": "i64"
521
+ },
522
+ {
523
+ "name": "joins",
524
+ "type": "u64"
525
+ },
526
+ {
527
+ "name": "defects",
528
+ "type": "u64"
529
+ },
530
+ {
531
+ "name": "rallies",
532
+ "type": "u64"
533
+ },
534
+ {
535
+ "name": "launches",
536
+ "type": "u64"
537
+ },
538
+ {
539
+ "name": "messages",
540
+ "type": "u64"
541
+ },
542
+ {
543
+ "name": "fuds",
544
+ "type": "u64"
545
+ },
546
+ {
547
+ "name": "infiltrates",
548
+ "type": "u64"
549
+ },
550
+ {
551
+ "name": "reinforces",
552
+ "type": "u64"
553
+ },
554
+ {
555
+ "name": "war_loans",
556
+ "type": "u64"
557
+ },
558
+ {
559
+ "name": "repay_loans",
560
+ "type": "u64"
561
+ },
562
+ {
563
+ "name": "sieges",
564
+ "type": "u64"
565
+ },
566
+ {
567
+ "name": "ascends",
568
+ "type": "u64"
569
+ },
570
+ {
571
+ "name": "razes",
572
+ "type": "u64"
573
+ },
574
+ {
575
+ "name": "tithes",
576
+ "type": "u64"
577
+ },
578
+ {
579
+ "name": "created_at",
580
+ "docs": [
581
+ "Registration timestamp"
582
+ ],
583
+ "type": "i64"
584
+ },
585
+ {
586
+ "name": "bump",
587
+ "docs": [
588
+ "PDA bump"
589
+ ],
590
+ "type": "u8"
591
+ }
592
+ ]
593
+ }
594
+ },
595
+ {
596
+ "name": "AgentWalletLink",
597
+ "docs": [
598
+ "Reverse pointer: given a wallet, find its AgentProfile.",
599
+ "One link per wallet — prevents a wallet belonging to multiple profiles.",
600
+ "",
601
+ "Seeds: [\"pyre_agent_wallet\", wallet.key()]"
602
+ ],
603
+ "type": {
604
+ "kind": "struct",
605
+ "fields": [
606
+ {
607
+ "name": "profile",
608
+ "docs": [
609
+ "The AgentProfile this wallet belongs to"
610
+ ],
611
+ "type": "pubkey"
612
+ },
613
+ {
614
+ "name": "wallet",
615
+ "docs": [
616
+ "The linked wallet"
617
+ ],
618
+ "type": "pubkey"
619
+ },
620
+ {
621
+ "name": "linked_at",
622
+ "docs": [
623
+ "When this link was created"
624
+ ],
625
+ "type": "i64"
626
+ },
627
+ {
628
+ "name": "bump",
629
+ "docs": [
630
+ "PDA bump"
631
+ ],
632
+ "type": "u8"
633
+ }
634
+ ]
635
+ }
636
+ },
637
+ {
638
+ "name": "CheckpointArgs",
639
+ "type": {
640
+ "kind": "struct",
641
+ "fields": [
642
+ {
643
+ "name": "joins",
644
+ "type": "u64"
645
+ },
646
+ {
647
+ "name": "defects",
648
+ "type": "u64"
649
+ },
650
+ {
651
+ "name": "rallies",
652
+ "type": "u64"
653
+ },
654
+ {
655
+ "name": "launches",
656
+ "type": "u64"
657
+ },
658
+ {
659
+ "name": "messages",
660
+ "type": "u64"
661
+ },
662
+ {
663
+ "name": "fuds",
664
+ "type": "u64"
665
+ },
666
+ {
667
+ "name": "infiltrates",
668
+ "type": "u64"
669
+ },
670
+ {
671
+ "name": "reinforces",
672
+ "type": "u64"
673
+ },
674
+ {
675
+ "name": "war_loans",
676
+ "type": "u64"
677
+ },
678
+ {
679
+ "name": "repay_loans",
680
+ "type": "u64"
681
+ },
682
+ {
683
+ "name": "sieges",
684
+ "type": "u64"
685
+ },
686
+ {
687
+ "name": "ascends",
688
+ "type": "u64"
689
+ },
690
+ {
691
+ "name": "razes",
692
+ "type": "u64"
693
+ },
694
+ {
695
+ "name": "tithes",
696
+ "type": "u64"
697
+ },
698
+ {
699
+ "name": "personality_summary",
700
+ "type": "string"
701
+ }
702
+ ]
703
+ }
704
+ }
705
+ ]
706
+ }