@iamoberlin/chorus 2.0.0 → 2.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/{target/idl → idl}/chorus_prayers.json +387 -42
- package/package.json +6 -5
- package/src/prayers/cli.ts +231 -84
- package/src/prayers/crypto.ts +132 -0
- package/src/prayers/solana.ts +329 -52
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
{
|
|
11
11
|
"name": "answer_prayer",
|
|
12
12
|
"docs": [
|
|
13
|
-
"Answer a
|
|
14
|
-
"
|
|
13
|
+
"Answer a prayer. The answerer must be a claimer (have a Claim PDA).",
|
|
14
|
+
"Encrypted answer is for the requester."
|
|
15
15
|
],
|
|
16
16
|
"discriminator": [
|
|
17
17
|
80,
|
|
@@ -73,6 +73,35 @@
|
|
|
73
73
|
]
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
|
+
{
|
|
77
|
+
"name": "claim",
|
|
78
|
+
"docs": [
|
|
79
|
+
"Claim PDA proves the answerer is a legitimate claimer"
|
|
80
|
+
],
|
|
81
|
+
"pda": {
|
|
82
|
+
"seeds": [
|
|
83
|
+
{
|
|
84
|
+
"kind": "const",
|
|
85
|
+
"value": [
|
|
86
|
+
99,
|
|
87
|
+
108,
|
|
88
|
+
97,
|
|
89
|
+
105,
|
|
90
|
+
109
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"kind": "account",
|
|
95
|
+
"path": "prayer.id",
|
|
96
|
+
"account": "Prayer"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"kind": "account",
|
|
100
|
+
"path": "answerer"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
},
|
|
76
105
|
{
|
|
77
106
|
"name": "answerer_agent",
|
|
78
107
|
"writable": true,
|
|
@@ -101,10 +130,6 @@
|
|
|
101
130
|
}
|
|
102
131
|
],
|
|
103
132
|
"args": [
|
|
104
|
-
{
|
|
105
|
-
"name": "answer",
|
|
106
|
-
"type": "string"
|
|
107
|
-
},
|
|
108
133
|
{
|
|
109
134
|
"name": "answer_hash",
|
|
110
135
|
"type": {
|
|
@@ -113,13 +138,17 @@
|
|
|
113
138
|
32
|
|
114
139
|
]
|
|
115
140
|
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "encrypted_answer",
|
|
144
|
+
"type": "bytes"
|
|
116
145
|
}
|
|
117
146
|
]
|
|
118
147
|
},
|
|
119
148
|
{
|
|
120
149
|
"name": "cancel_prayer",
|
|
121
150
|
"docs": [
|
|
122
|
-
"Cancel
|
|
151
|
+
"Cancel a prayer. Only when NO claims exist (num_claimers == 0)."
|
|
123
152
|
],
|
|
124
153
|
"discriminator": [
|
|
125
154
|
139,
|
|
@@ -170,7 +199,7 @@
|
|
|
170
199
|
{
|
|
171
200
|
"name": "claim_prayer",
|
|
172
201
|
"docs": [
|
|
173
|
-
"Claim a prayer
|
|
202
|
+
"Claim a prayer. Creates a Claim PDA. Multiple agents can claim until max_claimers."
|
|
174
203
|
],
|
|
175
204
|
"discriminator": [
|
|
176
205
|
233,
|
|
@@ -207,6 +236,33 @@
|
|
|
207
236
|
]
|
|
208
237
|
}
|
|
209
238
|
},
|
|
239
|
+
{
|
|
240
|
+
"name": "claim",
|
|
241
|
+
"writable": true,
|
|
242
|
+
"pda": {
|
|
243
|
+
"seeds": [
|
|
244
|
+
{
|
|
245
|
+
"kind": "const",
|
|
246
|
+
"value": [
|
|
247
|
+
99,
|
|
248
|
+
108,
|
|
249
|
+
97,
|
|
250
|
+
105,
|
|
251
|
+
109
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"kind": "account",
|
|
256
|
+
"path": "prayer.id",
|
|
257
|
+
"account": "Prayer"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"kind": "account",
|
|
261
|
+
"path": "claimer"
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
}
|
|
265
|
+
},
|
|
210
266
|
{
|
|
211
267
|
"name": "claimer_agent",
|
|
212
268
|
"pda": {
|
|
@@ -230,7 +286,12 @@
|
|
|
230
286
|
},
|
|
231
287
|
{
|
|
232
288
|
"name": "claimer",
|
|
289
|
+
"writable": true,
|
|
233
290
|
"signer": true
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "system_program",
|
|
294
|
+
"address": "11111111111111111111111111111111"
|
|
234
295
|
}
|
|
235
296
|
],
|
|
236
297
|
"args": []
|
|
@@ -289,7 +350,8 @@
|
|
|
289
350
|
{
|
|
290
351
|
"name": "confirm_prayer",
|
|
291
352
|
"docs": [
|
|
292
|
-
"Confirm a
|
|
353
|
+
"Confirm a prayer. Bounty splits equally among ALL claimers.",
|
|
354
|
+
"Remaining accounts: pairs of [claimer_wallet, claimer_agent_pda] for each claimer."
|
|
293
355
|
],
|
|
294
356
|
"discriminator": [
|
|
295
357
|
132,
|
|
@@ -343,16 +405,12 @@
|
|
|
343
405
|
},
|
|
344
406
|
{
|
|
345
407
|
"kind": "account",
|
|
346
|
-
"path": "prayer.
|
|
408
|
+
"path": "prayer.answerer",
|
|
347
409
|
"account": "Prayer"
|
|
348
410
|
}
|
|
349
411
|
]
|
|
350
412
|
}
|
|
351
413
|
},
|
|
352
|
-
{
|
|
353
|
-
"name": "answerer_wallet",
|
|
354
|
-
"writable": true
|
|
355
|
-
},
|
|
356
414
|
{
|
|
357
415
|
"name": "requester",
|
|
358
416
|
"writable": true,
|
|
@@ -364,6 +422,89 @@
|
|
|
364
422
|
],
|
|
365
423
|
"args": []
|
|
366
424
|
},
|
|
425
|
+
{
|
|
426
|
+
"name": "deliver_content",
|
|
427
|
+
"docs": [
|
|
428
|
+
"Deliver encrypted content to a specific claimer.",
|
|
429
|
+
"Must be called once per claimer (each gets unique DH-encrypted content)."
|
|
430
|
+
],
|
|
431
|
+
"discriminator": [
|
|
432
|
+
189,
|
|
433
|
+
164,
|
|
434
|
+
130,
|
|
435
|
+
126,
|
|
436
|
+
12,
|
|
437
|
+
241,
|
|
438
|
+
191,
|
|
439
|
+
45
|
|
440
|
+
],
|
|
441
|
+
"accounts": [
|
|
442
|
+
{
|
|
443
|
+
"name": "prayer",
|
|
444
|
+
"pda": {
|
|
445
|
+
"seeds": [
|
|
446
|
+
{
|
|
447
|
+
"kind": "const",
|
|
448
|
+
"value": [
|
|
449
|
+
112,
|
|
450
|
+
114,
|
|
451
|
+
97,
|
|
452
|
+
121,
|
|
453
|
+
101,
|
|
454
|
+
114
|
|
455
|
+
]
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"kind": "account",
|
|
459
|
+
"path": "prayer.id",
|
|
460
|
+
"account": "Prayer"
|
|
461
|
+
}
|
|
462
|
+
]
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"name": "claim",
|
|
467
|
+
"writable": true,
|
|
468
|
+
"pda": {
|
|
469
|
+
"seeds": [
|
|
470
|
+
{
|
|
471
|
+
"kind": "const",
|
|
472
|
+
"value": [
|
|
473
|
+
99,
|
|
474
|
+
108,
|
|
475
|
+
97,
|
|
476
|
+
105,
|
|
477
|
+
109
|
|
478
|
+
]
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"kind": "account",
|
|
482
|
+
"path": "prayer.id",
|
|
483
|
+
"account": "Prayer"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"kind": "account",
|
|
487
|
+
"path": "claim.claimer",
|
|
488
|
+
"account": "Claim"
|
|
489
|
+
}
|
|
490
|
+
]
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"name": "requester",
|
|
495
|
+
"signer": true,
|
|
496
|
+
"relations": [
|
|
497
|
+
"prayer"
|
|
498
|
+
]
|
|
499
|
+
}
|
|
500
|
+
],
|
|
501
|
+
"args": [
|
|
502
|
+
{
|
|
503
|
+
"name": "encrypted_content",
|
|
504
|
+
"type": "bytes"
|
|
505
|
+
}
|
|
506
|
+
]
|
|
507
|
+
},
|
|
367
508
|
{
|
|
368
509
|
"name": "initialize",
|
|
369
510
|
"docs": [
|
|
@@ -420,8 +561,7 @@
|
|
|
420
561
|
{
|
|
421
562
|
"name": "post_prayer",
|
|
422
563
|
"docs": [
|
|
423
|
-
"Post a
|
|
424
|
-
"Content string is emitted as an event for off-chain indexing but NOT stored in the account."
|
|
564
|
+
"Post a prayer. max_claimers controls collaboration (1 = solo, >1 = multi-agent)."
|
|
425
565
|
],
|
|
426
566
|
"discriminator": [
|
|
427
567
|
247,
|
|
@@ -524,10 +664,6 @@
|
|
|
524
664
|
}
|
|
525
665
|
}
|
|
526
666
|
},
|
|
527
|
-
{
|
|
528
|
-
"name": "content",
|
|
529
|
-
"type": "string"
|
|
530
|
-
},
|
|
531
667
|
{
|
|
532
668
|
"name": "content_hash",
|
|
533
669
|
"type": {
|
|
@@ -544,6 +680,10 @@
|
|
|
544
680
|
{
|
|
545
681
|
"name": "ttl_seconds",
|
|
546
682
|
"type": "i64"
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
"name": "max_claimers",
|
|
686
|
+
"type": "u8"
|
|
547
687
|
}
|
|
548
688
|
]
|
|
549
689
|
},
|
|
@@ -628,13 +768,23 @@
|
|
|
628
768
|
{
|
|
629
769
|
"name": "skills",
|
|
630
770
|
"type": "string"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"name": "encryption_key",
|
|
774
|
+
"type": {
|
|
775
|
+
"array": [
|
|
776
|
+
"u8",
|
|
777
|
+
32
|
|
778
|
+
]
|
|
779
|
+
}
|
|
631
780
|
}
|
|
632
781
|
]
|
|
633
782
|
},
|
|
634
783
|
{
|
|
635
784
|
"name": "unclaim_prayer",
|
|
636
785
|
"docs": [
|
|
637
|
-
"
|
|
786
|
+
"Remove a claim. Claimer voluntarily, or anyone after timeout.",
|
|
787
|
+
"Closes the Claim PDA and decrements num_claimers."
|
|
638
788
|
],
|
|
639
789
|
"discriminator": [
|
|
640
790
|
17,
|
|
@@ -671,6 +821,38 @@
|
|
|
671
821
|
]
|
|
672
822
|
}
|
|
673
823
|
},
|
|
824
|
+
{
|
|
825
|
+
"name": "claim",
|
|
826
|
+
"writable": true,
|
|
827
|
+
"pda": {
|
|
828
|
+
"seeds": [
|
|
829
|
+
{
|
|
830
|
+
"kind": "const",
|
|
831
|
+
"value": [
|
|
832
|
+
99,
|
|
833
|
+
108,
|
|
834
|
+
97,
|
|
835
|
+
105,
|
|
836
|
+
109
|
|
837
|
+
]
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"kind": "account",
|
|
841
|
+
"path": "prayer.id",
|
|
842
|
+
"account": "Prayer"
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"kind": "account",
|
|
846
|
+
"path": "claim.claimer",
|
|
847
|
+
"account": "Claim"
|
|
848
|
+
}
|
|
849
|
+
]
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"name": "claimer_wallet",
|
|
854
|
+
"writable": true
|
|
855
|
+
},
|
|
674
856
|
{
|
|
675
857
|
"name": "caller",
|
|
676
858
|
"signer": true
|
|
@@ -693,6 +875,19 @@
|
|
|
693
875
|
7
|
|
694
876
|
]
|
|
695
877
|
},
|
|
878
|
+
{
|
|
879
|
+
"name": "Claim",
|
|
880
|
+
"discriminator": [
|
|
881
|
+
155,
|
|
882
|
+
70,
|
|
883
|
+
22,
|
|
884
|
+
176,
|
|
885
|
+
123,
|
|
886
|
+
215,
|
|
887
|
+
246,
|
|
888
|
+
102
|
|
889
|
+
]
|
|
890
|
+
},
|
|
696
891
|
{
|
|
697
892
|
"name": "Prayer",
|
|
698
893
|
"discriminator": [
|
|
@@ -721,6 +916,32 @@
|
|
|
721
916
|
}
|
|
722
917
|
],
|
|
723
918
|
"events": [
|
|
919
|
+
{
|
|
920
|
+
"name": "ClaimRemoved",
|
|
921
|
+
"discriminator": [
|
|
922
|
+
203,
|
|
923
|
+
17,
|
|
924
|
+
136,
|
|
925
|
+
175,
|
|
926
|
+
184,
|
|
927
|
+
87,
|
|
928
|
+
172,
|
|
929
|
+
87
|
|
930
|
+
]
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"name": "ContentDelivered",
|
|
934
|
+
"discriminator": [
|
|
935
|
+
248,
|
|
936
|
+
79,
|
|
937
|
+
98,
|
|
938
|
+
185,
|
|
939
|
+
91,
|
|
940
|
+
7,
|
|
941
|
+
41,
|
|
942
|
+
83
|
|
943
|
+
]
|
|
944
|
+
},
|
|
724
945
|
{
|
|
725
946
|
"name": "PrayerAnswered",
|
|
726
947
|
"discriminator": [
|
|
@@ -806,12 +1027,12 @@
|
|
|
806
1027
|
{
|
|
807
1028
|
"code": 6003,
|
|
808
1029
|
"name": "NotOpen",
|
|
809
|
-
"msg": "Prayer is not open"
|
|
1030
|
+
"msg": "Prayer is not open for claims"
|
|
810
1031
|
},
|
|
811
1032
|
{
|
|
812
1033
|
"code": 6004,
|
|
813
1034
|
"name": "NotClaimed",
|
|
814
|
-
"msg": "Prayer
|
|
1035
|
+
"msg": "Prayer has no active claims"
|
|
815
1036
|
},
|
|
816
1037
|
{
|
|
817
1038
|
"code": 6005,
|
|
@@ -831,22 +1052,42 @@
|
|
|
831
1052
|
{
|
|
832
1053
|
"code": 6008,
|
|
833
1054
|
"name": "NotClaimer",
|
|
834
|
-
"msg": "
|
|
1055
|
+
"msg": "Not authorized (not the claimer)"
|
|
835
1056
|
},
|
|
836
1057
|
{
|
|
837
1058
|
"code": 6009,
|
|
838
1059
|
"name": "NotRequester",
|
|
839
|
-
"msg": "Only the requester can
|
|
1060
|
+
"msg": "Only the requester can perform this action"
|
|
840
1061
|
},
|
|
841
1062
|
{
|
|
842
1063
|
"code": 6010,
|
|
843
|
-
"name": "
|
|
844
|
-
"msg": "
|
|
1064
|
+
"name": "HasClaimers",
|
|
1065
|
+
"msg": "Cannot cancel a prayer with active claims"
|
|
845
1066
|
},
|
|
846
1067
|
{
|
|
847
1068
|
"code": 6011,
|
|
1069
|
+
"name": "CannotCancel",
|
|
1070
|
+
"msg": "Can only cancel open prayers with no claims"
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"code": 6012,
|
|
848
1074
|
"name": "CannotClose",
|
|
849
1075
|
"msg": "Prayer must be confirmed, cancelled, or expired to close"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"code": 6013,
|
|
1079
|
+
"name": "InvalidEncryptionKey",
|
|
1080
|
+
"msg": "Encryption key cannot be all zeros"
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"code": 6014,
|
|
1084
|
+
"name": "AlreadyDelivered",
|
|
1085
|
+
"msg": "Content has already been delivered to this claimer"
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"code": 6015,
|
|
1089
|
+
"name": "InvalidMaxClaimers",
|
|
1090
|
+
"msg": "max_claimers must be 1-10"
|
|
850
1091
|
}
|
|
851
1092
|
],
|
|
852
1093
|
"types": [
|
|
@@ -870,6 +1111,15 @@
|
|
|
870
1111
|
"name": "skills",
|
|
871
1112
|
"type": "string"
|
|
872
1113
|
},
|
|
1114
|
+
{
|
|
1115
|
+
"name": "encryption_key",
|
|
1116
|
+
"type": {
|
|
1117
|
+
"array": [
|
|
1118
|
+
"u8",
|
|
1119
|
+
32
|
|
1120
|
+
]
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
873
1123
|
{
|
|
874
1124
|
"name": "prayers_posted",
|
|
875
1125
|
"type": "u64"
|
|
@@ -897,10 +1147,85 @@
|
|
|
897
1147
|
]
|
|
898
1148
|
}
|
|
899
1149
|
},
|
|
1150
|
+
{
|
|
1151
|
+
"name": "Claim",
|
|
1152
|
+
"docs": [
|
|
1153
|
+
"A claim — one per claimer per prayer (separate PDA)"
|
|
1154
|
+
],
|
|
1155
|
+
"type": {
|
|
1156
|
+
"kind": "struct",
|
|
1157
|
+
"fields": [
|
|
1158
|
+
{
|
|
1159
|
+
"name": "prayer_id",
|
|
1160
|
+
"type": "u64"
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"name": "claimer",
|
|
1164
|
+
"type": "pubkey"
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
"name": "content_delivered",
|
|
1168
|
+
"type": "bool"
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
"name": "claimed_at",
|
|
1172
|
+
"type": "i64"
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"name": "bump",
|
|
1176
|
+
"type": "u8"
|
|
1177
|
+
}
|
|
1178
|
+
]
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
"name": "ClaimRemoved",
|
|
1183
|
+
"type": {
|
|
1184
|
+
"kind": "struct",
|
|
1185
|
+
"fields": [
|
|
1186
|
+
{
|
|
1187
|
+
"name": "prayer_id",
|
|
1188
|
+
"type": "u64"
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
"name": "claimer",
|
|
1192
|
+
"type": "pubkey"
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
"name": "num_claimers",
|
|
1196
|
+
"type": "u8"
|
|
1197
|
+
}
|
|
1198
|
+
]
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
"name": "ContentDelivered",
|
|
1203
|
+
"type": {
|
|
1204
|
+
"kind": "struct",
|
|
1205
|
+
"fields": [
|
|
1206
|
+
{
|
|
1207
|
+
"name": "prayer_id",
|
|
1208
|
+
"type": "u64"
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
"name": "requester",
|
|
1212
|
+
"type": "pubkey"
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"name": "claimer",
|
|
1216
|
+
"type": "pubkey"
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
"name": "encrypted_content",
|
|
1220
|
+
"type": "bytes"
|
|
1221
|
+
}
|
|
1222
|
+
]
|
|
1223
|
+
}
|
|
1224
|
+
},
|
|
900
1225
|
{
|
|
901
1226
|
"name": "Prayer",
|
|
902
1227
|
"docs": [
|
|
903
|
-
"A prayer
|
|
1228
|
+
"A prayer — supports multiple collaborating claimers"
|
|
904
1229
|
],
|
|
905
1230
|
"type": {
|
|
906
1231
|
"kind": "struct",
|
|
@@ -943,12 +1268,16 @@
|
|
|
943
1268
|
}
|
|
944
1269
|
},
|
|
945
1270
|
{
|
|
946
|
-
"name": "
|
|
947
|
-
"type": "
|
|
1271
|
+
"name": "max_claimers",
|
|
1272
|
+
"type": "u8"
|
|
948
1273
|
},
|
|
949
1274
|
{
|
|
950
|
-
"name": "
|
|
951
|
-
"type": "
|
|
1275
|
+
"name": "num_claimers",
|
|
1276
|
+
"type": "u8"
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"name": "answerer",
|
|
1280
|
+
"type": "pubkey"
|
|
952
1281
|
},
|
|
953
1282
|
{
|
|
954
1283
|
"name": "answer_hash",
|
|
@@ -991,10 +1320,6 @@
|
|
|
991
1320
|
"name": "answerer",
|
|
992
1321
|
"type": "pubkey"
|
|
993
1322
|
},
|
|
994
|
-
{
|
|
995
|
-
"name": "answer",
|
|
996
|
-
"type": "string"
|
|
997
|
-
},
|
|
998
1323
|
{
|
|
999
1324
|
"name": "answer_hash",
|
|
1000
1325
|
"type": {
|
|
@@ -1003,6 +1328,10 @@
|
|
|
1003
1328
|
32
|
|
1004
1329
|
]
|
|
1005
1330
|
}
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
"name": "encrypted_answer",
|
|
1334
|
+
"type": "bytes"
|
|
1006
1335
|
}
|
|
1007
1336
|
]
|
|
1008
1337
|
}
|
|
@@ -1066,6 +1395,14 @@
|
|
|
1066
1395
|
{
|
|
1067
1396
|
"name": "claimer",
|
|
1068
1397
|
"type": "pubkey"
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
"name": "num_claimers",
|
|
1401
|
+
"type": "u8"
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"name": "max_claimers",
|
|
1405
|
+
"type": "u8"
|
|
1069
1406
|
}
|
|
1070
1407
|
]
|
|
1071
1408
|
}
|
|
@@ -1088,7 +1425,15 @@
|
|
|
1088
1425
|
"type": "pubkey"
|
|
1089
1426
|
},
|
|
1090
1427
|
{
|
|
1091
|
-
"name": "
|
|
1428
|
+
"name": "num_claimers",
|
|
1429
|
+
"type": "u8"
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
"name": "reward_per_claimer",
|
|
1433
|
+
"type": "u64"
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
"name": "reward_total",
|
|
1092
1437
|
"type": "u64"
|
|
1093
1438
|
}
|
|
1094
1439
|
]
|
|
@@ -1115,10 +1460,6 @@
|
|
|
1115
1460
|
}
|
|
1116
1461
|
}
|
|
1117
1462
|
},
|
|
1118
|
-
{
|
|
1119
|
-
"name": "content",
|
|
1120
|
-
"type": "string"
|
|
1121
|
-
},
|
|
1122
1463
|
{
|
|
1123
1464
|
"name": "content_hash",
|
|
1124
1465
|
"type": {
|
|
@@ -1132,6 +1473,10 @@
|
|
|
1132
1473
|
"name": "reward_lamports",
|
|
1133
1474
|
"type": "u64"
|
|
1134
1475
|
},
|
|
1476
|
+
{
|
|
1477
|
+
"name": "max_claimers",
|
|
1478
|
+
"type": "u8"
|
|
1479
|
+
},
|
|
1135
1480
|
{
|
|
1136
1481
|
"name": "ttl_seconds",
|
|
1137
1482
|
"type": "i64"
|
|
@@ -1151,7 +1496,7 @@
|
|
|
1151
1496
|
"name": "Open"
|
|
1152
1497
|
},
|
|
1153
1498
|
{
|
|
1154
|
-
"name": "
|
|
1499
|
+
"name": "Active"
|
|
1155
1500
|
},
|
|
1156
1501
|
{
|
|
1157
1502
|
"name": "Fulfilled"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iamoberlin/chorus",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "CHORUS: Hierarchy Of Recursive Unified Self-improvement
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "CHORUS: Hierarchy Of Recursive Unified Self-improvement — with on-chain Prayer Chain (Solana)",
|
|
5
5
|
"author": "Oberlin <iam@oberlin.ai>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"src/",
|
|
38
38
|
"openclaw.plugin.json",
|
|
39
39
|
"logo.png",
|
|
40
|
-
"
|
|
40
|
+
"idl/"
|
|
41
41
|
],
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"openclaw": ">=2026.1.0"
|
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@coral-xyz/anchor": "^0.32.1",
|
|
52
|
-
"@solana/web3.js": "^1.98.4"
|
|
52
|
+
"@solana/web3.js": "^1.98.4",
|
|
53
|
+
"tweetnacl": "^1.0.3"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@types/chai": "^5.2.3",
|
|
@@ -59,4 +60,4 @@
|
|
|
59
60
|
"tsx": "^4.21.0",
|
|
60
61
|
"typescript": "^5.9.3"
|
|
61
62
|
}
|
|
62
|
-
}
|
|
63
|
+
}
|