invoke-mcp 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/idl.json ADDED
@@ -0,0 +1,1107 @@
1
+ {
2
+ "address": "7FFgjoAeLazGEp6DSbduZ1Ske5bonuGfBdjjCP8Foj8o",
3
+ "metadata": {
4
+ "name": "coprocessor",
5
+ "version": "0.1.0",
6
+ "spec": "0.1.0",
7
+ "description": "Created with Anchor"
8
+ },
9
+ "instructions": [
10
+ {
11
+ "name": "cancel_job",
12
+ "docs": [
13
+ "Requester cancels a job nobody has claimed. Reward and rent are refunded."
14
+ ],
15
+ "discriminator": [
16
+ 126,
17
+ 241,
18
+ 155,
19
+ 241,
20
+ 50,
21
+ 236,
22
+ 83,
23
+ 118
24
+ ],
25
+ "accounts": [
26
+ {
27
+ "name": "job",
28
+ "writable": true,
29
+ "pda": {
30
+ "seeds": [
31
+ {
32
+ "kind": "const",
33
+ "value": [
34
+ 106,
35
+ 111,
36
+ 98
37
+ ]
38
+ },
39
+ {
40
+ "kind": "account",
41
+ "path": "job.id",
42
+ "account": "Job"
43
+ }
44
+ ]
45
+ }
46
+ },
47
+ {
48
+ "name": "requester",
49
+ "writable": true,
50
+ "signer": true,
51
+ "relations": [
52
+ "job"
53
+ ]
54
+ }
55
+ ],
56
+ "args": []
57
+ },
58
+ {
59
+ "name": "claim_job",
60
+ "docs": [
61
+ "An active, allowlisted worker takes an open job."
62
+ ],
63
+ "discriminator": [
64
+ 9,
65
+ 160,
66
+ 5,
67
+ 231,
68
+ 116,
69
+ 123,
70
+ 198,
71
+ 14
72
+ ],
73
+ "accounts": [
74
+ {
75
+ "name": "job",
76
+ "writable": true,
77
+ "pda": {
78
+ "seeds": [
79
+ {
80
+ "kind": "const",
81
+ "value": [
82
+ 106,
83
+ 111,
84
+ 98
85
+ ]
86
+ },
87
+ {
88
+ "kind": "account",
89
+ "path": "job.id",
90
+ "account": "Job"
91
+ }
92
+ ]
93
+ }
94
+ },
95
+ {
96
+ "name": "worker",
97
+ "pda": {
98
+ "seeds": [
99
+ {
100
+ "kind": "const",
101
+ "value": [
102
+ 119,
103
+ 111,
104
+ 114,
105
+ 107,
106
+ 101,
107
+ 114
108
+ ]
109
+ },
110
+ {
111
+ "kind": "account",
112
+ "path": "authority"
113
+ }
114
+ ]
115
+ }
116
+ },
117
+ {
118
+ "name": "authority",
119
+ "signer": true,
120
+ "relations": [
121
+ "worker"
122
+ ]
123
+ }
124
+ ],
125
+ "args": []
126
+ },
127
+ {
128
+ "name": "close_job",
129
+ "docs": [
130
+ "Requester closes a fulfilled job to get the account rent back.",
131
+ "The result is no longer readable on-chain afterwards."
132
+ ],
133
+ "discriminator": [
134
+ 90,
135
+ 100,
136
+ 180,
137
+ 200,
138
+ 200,
139
+ 163,
140
+ 120,
141
+ 182
142
+ ],
143
+ "accounts": [
144
+ {
145
+ "name": "job",
146
+ "writable": true,
147
+ "pda": {
148
+ "seeds": [
149
+ {
150
+ "kind": "const",
151
+ "value": [
152
+ 106,
153
+ 111,
154
+ 98
155
+ ]
156
+ },
157
+ {
158
+ "kind": "account",
159
+ "path": "job.id",
160
+ "account": "Job"
161
+ }
162
+ ]
163
+ }
164
+ },
165
+ {
166
+ "name": "requester",
167
+ "writable": true,
168
+ "signer": true,
169
+ "relations": [
170
+ "job"
171
+ ]
172
+ }
173
+ ],
174
+ "args": []
175
+ },
176
+ {
177
+ "name": "fulfill_job",
178
+ "docs": [
179
+ "The claiming worker writes the result and is paid the escrowed reward."
180
+ ],
181
+ "discriminator": [
182
+ 50,
183
+ 177,
184
+ 145,
185
+ 153,
186
+ 156,
187
+ 12,
188
+ 117,
189
+ 110
190
+ ],
191
+ "accounts": [
192
+ {
193
+ "name": "job",
194
+ "writable": true,
195
+ "pda": {
196
+ "seeds": [
197
+ {
198
+ "kind": "const",
199
+ "value": [
200
+ 106,
201
+ 111,
202
+ 98
203
+ ]
204
+ },
205
+ {
206
+ "kind": "account",
207
+ "path": "job.id",
208
+ "account": "Job"
209
+ }
210
+ ]
211
+ }
212
+ },
213
+ {
214
+ "name": "worker",
215
+ "writable": true,
216
+ "pda": {
217
+ "seeds": [
218
+ {
219
+ "kind": "const",
220
+ "value": [
221
+ 119,
222
+ 111,
223
+ 114,
224
+ 107,
225
+ 101,
226
+ 114
227
+ ]
228
+ },
229
+ {
230
+ "kind": "account",
231
+ "path": "authority"
232
+ }
233
+ ]
234
+ }
235
+ },
236
+ {
237
+ "name": "authority",
238
+ "writable": true,
239
+ "signer": true,
240
+ "relations": [
241
+ "worker"
242
+ ]
243
+ }
244
+ ],
245
+ "args": [
246
+ {
247
+ "name": "result",
248
+ "type": "string"
249
+ }
250
+ ]
251
+ },
252
+ {
253
+ "name": "initialize",
254
+ "discriminator": [
255
+ 175,
256
+ 175,
257
+ 109,
258
+ 31,
259
+ 13,
260
+ 152,
261
+ 155,
262
+ 237
263
+ ],
264
+ "accounts": [
265
+ {
266
+ "name": "config",
267
+ "writable": true,
268
+ "pda": {
269
+ "seeds": [
270
+ {
271
+ "kind": "const",
272
+ "value": [
273
+ 99,
274
+ 111,
275
+ 110,
276
+ 102,
277
+ 105,
278
+ 103
279
+ ]
280
+ }
281
+ ]
282
+ }
283
+ },
284
+ {
285
+ "name": "admin",
286
+ "writable": true,
287
+ "signer": true
288
+ },
289
+ {
290
+ "name": "system_program",
291
+ "address": "11111111111111111111111111111111"
292
+ }
293
+ ],
294
+ "args": [
295
+ {
296
+ "name": "claim_timeout_secs",
297
+ "type": "i64"
298
+ }
299
+ ]
300
+ },
301
+ {
302
+ "name": "register_worker",
303
+ "docs": [
304
+ "Admin adds a worker to the allowlist."
305
+ ],
306
+ "discriminator": [
307
+ 22,
308
+ 253,
309
+ 23,
310
+ 225,
311
+ 230,
312
+ 31,
313
+ 6,
314
+ 192
315
+ ],
316
+ "accounts": [
317
+ {
318
+ "name": "config",
319
+ "pda": {
320
+ "seeds": [
321
+ {
322
+ "kind": "const",
323
+ "value": [
324
+ 99,
325
+ 111,
326
+ 110,
327
+ 102,
328
+ 105,
329
+ 103
330
+ ]
331
+ }
332
+ ]
333
+ }
334
+ },
335
+ {
336
+ "name": "worker",
337
+ "writable": true,
338
+ "pda": {
339
+ "seeds": [
340
+ {
341
+ "kind": "const",
342
+ "value": [
343
+ 119,
344
+ 111,
345
+ 114,
346
+ 107,
347
+ 101,
348
+ 114
349
+ ]
350
+ },
351
+ {
352
+ "kind": "arg",
353
+ "path": "authority"
354
+ }
355
+ ]
356
+ }
357
+ },
358
+ {
359
+ "name": "admin",
360
+ "writable": true,
361
+ "signer": true,
362
+ "relations": [
363
+ "config"
364
+ ]
365
+ },
366
+ {
367
+ "name": "system_program",
368
+ "address": "11111111111111111111111111111111"
369
+ }
370
+ ],
371
+ "args": [
372
+ {
373
+ "name": "authority",
374
+ "type": "pubkey"
375
+ }
376
+ ]
377
+ },
378
+ {
379
+ "name": "release_job",
380
+ "docs": [
381
+ "Anyone can reopen a job whose worker claimed it and then went quiet past the timeout."
382
+ ],
383
+ "discriminator": [
384
+ 230,
385
+ 72,
386
+ 207,
387
+ 196,
388
+ 121,
389
+ 154,
390
+ 119,
391
+ 211
392
+ ],
393
+ "accounts": [
394
+ {
395
+ "name": "config",
396
+ "pda": {
397
+ "seeds": [
398
+ {
399
+ "kind": "const",
400
+ "value": [
401
+ 99,
402
+ 111,
403
+ 110,
404
+ 102,
405
+ 105,
406
+ 103
407
+ ]
408
+ }
409
+ ]
410
+ }
411
+ },
412
+ {
413
+ "name": "job",
414
+ "writable": true,
415
+ "pda": {
416
+ "seeds": [
417
+ {
418
+ "kind": "const",
419
+ "value": [
420
+ 106,
421
+ 111,
422
+ 98
423
+ ]
424
+ },
425
+ {
426
+ "kind": "account",
427
+ "path": "job.id",
428
+ "account": "Job"
429
+ }
430
+ ]
431
+ }
432
+ }
433
+ ],
434
+ "args": []
435
+ },
436
+ {
437
+ "name": "request_job",
438
+ "docs": [
439
+ "Post a job and lock `reward` lamports in the job account."
440
+ ],
441
+ "discriminator": [
442
+ 174,
443
+ 206,
444
+ 101,
445
+ 245,
446
+ 163,
447
+ 22,
448
+ 66,
449
+ 156
450
+ ],
451
+ "accounts": [
452
+ {
453
+ "name": "config",
454
+ "writable": true,
455
+ "pda": {
456
+ "seeds": [
457
+ {
458
+ "kind": "const",
459
+ "value": [
460
+ 99,
461
+ 111,
462
+ 110,
463
+ 102,
464
+ 105,
465
+ 103
466
+ ]
467
+ }
468
+ ]
469
+ }
470
+ },
471
+ {
472
+ "name": "job",
473
+ "writable": true,
474
+ "pda": {
475
+ "seeds": [
476
+ {
477
+ "kind": "const",
478
+ "value": [
479
+ 106,
480
+ 111,
481
+ 98
482
+ ]
483
+ },
484
+ {
485
+ "kind": "account",
486
+ "path": "config.job_count",
487
+ "account": "Config"
488
+ }
489
+ ]
490
+ }
491
+ },
492
+ {
493
+ "name": "requester",
494
+ "writable": true,
495
+ "signer": true
496
+ },
497
+ {
498
+ "name": "system_program",
499
+ "address": "11111111111111111111111111111111"
500
+ }
501
+ ],
502
+ "args": [
503
+ {
504
+ "name": "model",
505
+ "type": "string"
506
+ },
507
+ {
508
+ "name": "input",
509
+ "type": "string"
510
+ },
511
+ {
512
+ "name": "reward",
513
+ "type": "u64"
514
+ }
515
+ ]
516
+ },
517
+ {
518
+ "name": "set_worker_active",
519
+ "docs": [
520
+ "Admin pauses or resumes a worker."
521
+ ],
522
+ "discriminator": [
523
+ 148,
524
+ 158,
525
+ 241,
526
+ 177,
527
+ 22,
528
+ 105,
529
+ 172,
530
+ 48
531
+ ],
532
+ "accounts": [
533
+ {
534
+ "name": "config",
535
+ "pda": {
536
+ "seeds": [
537
+ {
538
+ "kind": "const",
539
+ "value": [
540
+ 99,
541
+ 111,
542
+ 110,
543
+ 102,
544
+ 105,
545
+ 103
546
+ ]
547
+ }
548
+ ]
549
+ }
550
+ },
551
+ {
552
+ "name": "worker",
553
+ "writable": true,
554
+ "pda": {
555
+ "seeds": [
556
+ {
557
+ "kind": "const",
558
+ "value": [
559
+ 119,
560
+ 111,
561
+ 114,
562
+ 107,
563
+ 101,
564
+ 114
565
+ ]
566
+ },
567
+ {
568
+ "kind": "account",
569
+ "path": "worker.authority",
570
+ "account": "Worker"
571
+ }
572
+ ]
573
+ }
574
+ },
575
+ {
576
+ "name": "admin",
577
+ "signer": true,
578
+ "relations": [
579
+ "config"
580
+ ]
581
+ }
582
+ ],
583
+ "args": [
584
+ {
585
+ "name": "active",
586
+ "type": "bool"
587
+ }
588
+ ]
589
+ },
590
+ {
591
+ "name": "set_worker_hardware",
592
+ "docs": [
593
+ "A worker declares the GPU it runs on. Self-reported: the program cannot check it."
594
+ ],
595
+ "discriminator": [
596
+ 4,
597
+ 213,
598
+ 224,
599
+ 14,
600
+ 226,
601
+ 75,
602
+ 0,
603
+ 75
604
+ ],
605
+ "accounts": [
606
+ {
607
+ "name": "worker",
608
+ "writable": true,
609
+ "pda": {
610
+ "seeds": [
611
+ {
612
+ "kind": "const",
613
+ "value": [
614
+ 119,
615
+ 111,
616
+ 114,
617
+ 107,
618
+ 101,
619
+ 114
620
+ ]
621
+ },
622
+ {
623
+ "kind": "account",
624
+ "path": "authority"
625
+ }
626
+ ]
627
+ }
628
+ },
629
+ {
630
+ "name": "authority",
631
+ "signer": true,
632
+ "relations": [
633
+ "worker"
634
+ ]
635
+ }
636
+ ],
637
+ "args": [
638
+ {
639
+ "name": "hardware",
640
+ "type": "string"
641
+ }
642
+ ]
643
+ }
644
+ ],
645
+ "accounts": [
646
+ {
647
+ "name": "Config",
648
+ "discriminator": [
649
+ 155,
650
+ 12,
651
+ 170,
652
+ 224,
653
+ 30,
654
+ 250,
655
+ 204,
656
+ 130
657
+ ]
658
+ },
659
+ {
660
+ "name": "Job",
661
+ "discriminator": [
662
+ 75,
663
+ 124,
664
+ 80,
665
+ 203,
666
+ 161,
667
+ 180,
668
+ 202,
669
+ 80
670
+ ]
671
+ },
672
+ {
673
+ "name": "Worker",
674
+ "discriminator": [
675
+ 224,
676
+ 158,
677
+ 97,
678
+ 5,
679
+ 224,
680
+ 241,
681
+ 67,
682
+ 146
683
+ ]
684
+ }
685
+ ],
686
+ "events": [
687
+ {
688
+ "name": "JobCancelled",
689
+ "discriminator": [
690
+ 203,
691
+ 84,
692
+ 143,
693
+ 130,
694
+ 48,
695
+ 134,
696
+ 74,
697
+ 191
698
+ ]
699
+ },
700
+ {
701
+ "name": "JobClaimed",
702
+ "discriminator": [
703
+ 176,
704
+ 110,
705
+ 104,
706
+ 38,
707
+ 27,
708
+ 220,
709
+ 61,
710
+ 191
711
+ ]
712
+ },
713
+ {
714
+ "name": "JobClosed",
715
+ "discriminator": [
716
+ 123,
717
+ 63,
718
+ 243,
719
+ 153,
720
+ 174,
721
+ 212,
722
+ 2,
723
+ 55
724
+ ]
725
+ },
726
+ {
727
+ "name": "JobFulfilled",
728
+ "discriminator": [
729
+ 15,
730
+ 66,
731
+ 143,
732
+ 90,
733
+ 66,
734
+ 220,
735
+ 195,
736
+ 65
737
+ ]
738
+ },
739
+ {
740
+ "name": "JobReleased",
741
+ "discriminator": [
742
+ 73,
743
+ 13,
744
+ 222,
745
+ 144,
746
+ 55,
747
+ 34,
748
+ 233,
749
+ 79
750
+ ]
751
+ },
752
+ {
753
+ "name": "JobRequested",
754
+ "discriminator": [
755
+ 24,
756
+ 207,
757
+ 137,
758
+ 151,
759
+ 87,
760
+ 218,
761
+ 198,
762
+ 109
763
+ ]
764
+ },
765
+ {
766
+ "name": "WorkerRegistered",
767
+ "discriminator": [
768
+ 32,
769
+ 196,
770
+ 68,
771
+ 85,
772
+ 235,
773
+ 201,
774
+ 213,
775
+ 179
776
+ ]
777
+ }
778
+ ],
779
+ "errors": [
780
+ {
781
+ "code": 6000,
782
+ "name": "InvalidTimeout",
783
+ "msg": "Claim timeout must be between 30 and 3600 seconds"
784
+ },
785
+ {
786
+ "code": 6001,
787
+ "name": "InvalidModel",
788
+ "msg": "Model name must be 1-64 bytes"
789
+ },
790
+ {
791
+ "code": 6002,
792
+ "name": "InvalidInput",
793
+ "msg": "Input must be 1-512 bytes"
794
+ },
795
+ {
796
+ "code": 6003,
797
+ "name": "InvalidHardware",
798
+ "msg": "Hardware description must be at most 48 bytes"
799
+ },
800
+ {
801
+ "code": 6004,
802
+ "name": "InvalidResult",
803
+ "msg": "Result must be 1-512 bytes"
804
+ },
805
+ {
806
+ "code": 6005,
807
+ "name": "InvalidReward",
808
+ "msg": "Reward must be greater than zero and at most 0.1 SOL"
809
+ },
810
+ {
811
+ "code": 6006,
812
+ "name": "JobNotOpen",
813
+ "msg": "Job is not open"
814
+ },
815
+ {
816
+ "code": 6007,
817
+ "name": "JobNotFulfilled",
818
+ "msg": "Job is not fulfilled"
819
+ },
820
+ {
821
+ "code": 6008,
822
+ "name": "JobNotClaimed",
823
+ "msg": "Job is not claimed"
824
+ },
825
+ {
826
+ "code": 6009,
827
+ "name": "NotJobWorker",
828
+ "msg": "Signer is not the worker for this job"
829
+ },
830
+ {
831
+ "code": 6010,
832
+ "name": "NotRequester",
833
+ "msg": "Signer is not the job requester"
834
+ },
835
+ {
836
+ "code": 6011,
837
+ "name": "NotAdmin",
838
+ "msg": "Signer is not the admin"
839
+ },
840
+ {
841
+ "code": 6012,
842
+ "name": "WorkerInactive",
843
+ "msg": "Worker is paused"
844
+ },
845
+ {
846
+ "code": 6013,
847
+ "name": "ClaimNotExpired",
848
+ "msg": "The claim has not timed out yet"
849
+ },
850
+ {
851
+ "code": 6014,
852
+ "name": "Overflow",
853
+ "msg": "Arithmetic overflow"
854
+ }
855
+ ],
856
+ "types": [
857
+ {
858
+ "name": "Config",
859
+ "type": {
860
+ "kind": "struct",
861
+ "fields": [
862
+ {
863
+ "name": "admin",
864
+ "type": "pubkey"
865
+ },
866
+ {
867
+ "name": "job_count",
868
+ "type": "u64"
869
+ },
870
+ {
871
+ "name": "claim_timeout_secs",
872
+ "type": "i64"
873
+ },
874
+ {
875
+ "name": "bump",
876
+ "type": "u8"
877
+ }
878
+ ]
879
+ }
880
+ },
881
+ {
882
+ "name": "Job",
883
+ "docs": [
884
+ "Fixed-size fields come first so clients can filter by `status` at a known offset",
885
+ "(8 discriminator + 8 id + 32 requester + 32 worker = byte 80)."
886
+ ],
887
+ "type": {
888
+ "kind": "struct",
889
+ "fields": [
890
+ {
891
+ "name": "id",
892
+ "type": "u64"
893
+ },
894
+ {
895
+ "name": "requester",
896
+ "type": "pubkey"
897
+ },
898
+ {
899
+ "name": "worker",
900
+ "type": "pubkey"
901
+ },
902
+ {
903
+ "name": "status",
904
+ "type": {
905
+ "defined": {
906
+ "name": "JobStatus"
907
+ }
908
+ }
909
+ },
910
+ {
911
+ "name": "reward",
912
+ "type": "u64"
913
+ },
914
+ {
915
+ "name": "created_at",
916
+ "type": "i64"
917
+ },
918
+ {
919
+ "name": "claimed_at",
920
+ "type": "i64"
921
+ },
922
+ {
923
+ "name": "fulfilled_at",
924
+ "type": "i64"
925
+ },
926
+ {
927
+ "name": "bump",
928
+ "type": "u8"
929
+ },
930
+ {
931
+ "name": "model",
932
+ "type": "string"
933
+ },
934
+ {
935
+ "name": "input",
936
+ "type": "string"
937
+ },
938
+ {
939
+ "name": "result",
940
+ "type": "string"
941
+ }
942
+ ]
943
+ }
944
+ },
945
+ {
946
+ "name": "JobCancelled",
947
+ "type": {
948
+ "kind": "struct",
949
+ "fields": [
950
+ {
951
+ "name": "id",
952
+ "type": "u64"
953
+ }
954
+ ]
955
+ }
956
+ },
957
+ {
958
+ "name": "JobClaimed",
959
+ "type": {
960
+ "kind": "struct",
961
+ "fields": [
962
+ {
963
+ "name": "id",
964
+ "type": "u64"
965
+ },
966
+ {
967
+ "name": "worker",
968
+ "type": "pubkey"
969
+ }
970
+ ]
971
+ }
972
+ },
973
+ {
974
+ "name": "JobClosed",
975
+ "type": {
976
+ "kind": "struct",
977
+ "fields": [
978
+ {
979
+ "name": "id",
980
+ "type": "u64"
981
+ }
982
+ ]
983
+ }
984
+ },
985
+ {
986
+ "name": "JobFulfilled",
987
+ "type": {
988
+ "kind": "struct",
989
+ "fields": [
990
+ {
991
+ "name": "id",
992
+ "type": "u64"
993
+ },
994
+ {
995
+ "name": "worker",
996
+ "type": "pubkey"
997
+ },
998
+ {
999
+ "name": "reward",
1000
+ "type": "u64"
1001
+ }
1002
+ ]
1003
+ }
1004
+ },
1005
+ {
1006
+ "name": "JobReleased",
1007
+ "type": {
1008
+ "kind": "struct",
1009
+ "fields": [
1010
+ {
1011
+ "name": "id",
1012
+ "type": "u64"
1013
+ },
1014
+ {
1015
+ "name": "stale_worker",
1016
+ "type": "pubkey"
1017
+ }
1018
+ ]
1019
+ }
1020
+ },
1021
+ {
1022
+ "name": "JobRequested",
1023
+ "type": {
1024
+ "kind": "struct",
1025
+ "fields": [
1026
+ {
1027
+ "name": "id",
1028
+ "type": "u64"
1029
+ },
1030
+ {
1031
+ "name": "requester",
1032
+ "type": "pubkey"
1033
+ },
1034
+ {
1035
+ "name": "reward",
1036
+ "type": "u64"
1037
+ }
1038
+ ]
1039
+ }
1040
+ },
1041
+ {
1042
+ "name": "JobStatus",
1043
+ "type": {
1044
+ "kind": "enum",
1045
+ "variants": [
1046
+ {
1047
+ "name": "Open"
1048
+ },
1049
+ {
1050
+ "name": "Claimed"
1051
+ },
1052
+ {
1053
+ "name": "Fulfilled"
1054
+ }
1055
+ ]
1056
+ }
1057
+ },
1058
+ {
1059
+ "name": "Worker",
1060
+ "type": {
1061
+ "kind": "struct",
1062
+ "fields": [
1063
+ {
1064
+ "name": "authority",
1065
+ "type": "pubkey"
1066
+ },
1067
+ {
1068
+ "name": "active",
1069
+ "type": "bool"
1070
+ },
1071
+ {
1072
+ "name": "jobs_fulfilled",
1073
+ "type": "u64"
1074
+ },
1075
+ {
1076
+ "name": "lamports_earned",
1077
+ "type": "u64"
1078
+ },
1079
+ {
1080
+ "name": "registered_at",
1081
+ "type": "i64"
1082
+ },
1083
+ {
1084
+ "name": "bump",
1085
+ "type": "u8"
1086
+ },
1087
+ {
1088
+ "name": "hardware",
1089
+ "type": "string"
1090
+ }
1091
+ ]
1092
+ }
1093
+ },
1094
+ {
1095
+ "name": "WorkerRegistered",
1096
+ "type": {
1097
+ "kind": "struct",
1098
+ "fields": [
1099
+ {
1100
+ "name": "authority",
1101
+ "type": "pubkey"
1102
+ }
1103
+ ]
1104
+ }
1105
+ }
1106
+ ]
1107
+ }