@helium/spl-utils 0.10.0-alpha.2 → 0.10.0-alpha.4

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,344 @@
1
+ {
2
+ "address": "orgdXvHVLkWgBYerptASkAwkZAE563CJUu717dMNx5f",
3
+ "metadata": {
4
+ "name": "organization",
5
+ "version": "0.1.1",
6
+ "spec": "0.1.0",
7
+ "description": "Created with Anchor"
8
+ },
9
+ "instructions": [
10
+ {
11
+ "name": "initialize_organization_v0",
12
+ "discriminator": [
13
+ 44,
14
+ 42,
15
+ 174,
16
+ 217,
17
+ 128,
18
+ 72,
19
+ 101,
20
+ 49
21
+ ],
22
+ "accounts": [
23
+ {
24
+ "name": "payer",
25
+ "writable": true,
26
+ "signer": true
27
+ },
28
+ {
29
+ "name": "organization",
30
+ "writable": true,
31
+ "pda": {
32
+ "seeds": [
33
+ {
34
+ "kind": "const",
35
+ "value": [
36
+ 111,
37
+ 114,
38
+ 103,
39
+ 97,
40
+ 110,
41
+ 105,
42
+ 122,
43
+ 97,
44
+ 116,
45
+ 105,
46
+ 111,
47
+ 110
48
+ ]
49
+ },
50
+ {
51
+ "kind": "arg",
52
+ "path": "args.name"
53
+ }
54
+ ]
55
+ }
56
+ },
57
+ {
58
+ "name": "system_program",
59
+ "address": "11111111111111111111111111111111"
60
+ }
61
+ ],
62
+ "args": [
63
+ {
64
+ "name": "args",
65
+ "type": {
66
+ "defined": {
67
+ "name": "InitializeOrganizationArgsV0"
68
+ }
69
+ }
70
+ }
71
+ ]
72
+ },
73
+ {
74
+ "name": "initialize_proposal_v0",
75
+ "discriminator": [
76
+ 63,
77
+ 235,
78
+ 9,
79
+ 201,
80
+ 163,
81
+ 171,
82
+ 206,
83
+ 33
84
+ ],
85
+ "accounts": [
86
+ {
87
+ "name": "payer",
88
+ "writable": true,
89
+ "signer": true
90
+ },
91
+ {
92
+ "name": "authority",
93
+ "signer": true,
94
+ "relations": [
95
+ "organization"
96
+ ]
97
+ },
98
+ {
99
+ "name": "owner"
100
+ },
101
+ {
102
+ "name": "proposal",
103
+ "writable": true
104
+ },
105
+ {
106
+ "name": "proposal_config"
107
+ },
108
+ {
109
+ "name": "organization",
110
+ "writable": true
111
+ },
112
+ {
113
+ "name": "proposal_program",
114
+ "relations": [
115
+ "organization"
116
+ ]
117
+ },
118
+ {
119
+ "name": "system_program",
120
+ "address": "11111111111111111111111111111111"
121
+ }
122
+ ],
123
+ "args": [
124
+ {
125
+ "name": "args",
126
+ "type": {
127
+ "defined": {
128
+ "name": "InitializeProposalArgsV0"
129
+ }
130
+ }
131
+ }
132
+ ]
133
+ },
134
+ {
135
+ "name": "update_organization_v0",
136
+ "discriminator": [
137
+ 38,
138
+ 56,
139
+ 42,
140
+ 100,
141
+ 134,
142
+ 77,
143
+ 32,
144
+ 44
145
+ ],
146
+ "accounts": [
147
+ {
148
+ "name": "organization",
149
+ "writable": true
150
+ },
151
+ {
152
+ "name": "authority",
153
+ "signer": true,
154
+ "relations": [
155
+ "organization"
156
+ ]
157
+ }
158
+ ],
159
+ "args": [
160
+ {
161
+ "name": "args",
162
+ "type": {
163
+ "defined": {
164
+ "name": "UpdateOrganizationArgsV0"
165
+ }
166
+ }
167
+ }
168
+ ]
169
+ }
170
+ ],
171
+ "accounts": [
172
+ {
173
+ "name": "OrganizationV0",
174
+ "discriminator": [
175
+ 243,
176
+ 189,
177
+ 126,
178
+ 191,
179
+ 59,
180
+ 72,
181
+ 255,
182
+ 68
183
+ ]
184
+ }
185
+ ],
186
+ "types": [
187
+ {
188
+ "name": "ChoiceArg",
189
+ "type": {
190
+ "kind": "struct",
191
+ "fields": [
192
+ {
193
+ "name": "name",
194
+ "type": "string"
195
+ },
196
+ {
197
+ "name": "uri",
198
+ "docs": [
199
+ "Any other data that you may want to put in here"
200
+ ],
201
+ "type": {
202
+ "option": "string"
203
+ }
204
+ }
205
+ ]
206
+ }
207
+ },
208
+ {
209
+ "name": "InitializeOrganizationArgsV0",
210
+ "type": {
211
+ "kind": "struct",
212
+ "fields": [
213
+ {
214
+ "name": "name",
215
+ "type": "string"
216
+ },
217
+ {
218
+ "name": "authority",
219
+ "type": "pubkey"
220
+ },
221
+ {
222
+ "name": "default_proposal_config",
223
+ "type": "pubkey"
224
+ },
225
+ {
226
+ "name": "proposal_program",
227
+ "type": "pubkey"
228
+ },
229
+ {
230
+ "name": "uri",
231
+ "type": "string"
232
+ }
233
+ ]
234
+ }
235
+ },
236
+ {
237
+ "name": "InitializeProposalArgsV0",
238
+ "type": {
239
+ "kind": "struct",
240
+ "fields": [
241
+ {
242
+ "name": "name",
243
+ "type": "string"
244
+ },
245
+ {
246
+ "name": "uri",
247
+ "type": "string"
248
+ },
249
+ {
250
+ "name": "max_choices_per_voter",
251
+ "type": "u16"
252
+ },
253
+ {
254
+ "name": "choices",
255
+ "type": {
256
+ "vec": {
257
+ "defined": {
258
+ "name": "ChoiceArg"
259
+ }
260
+ }
261
+ }
262
+ },
263
+ {
264
+ "name": "tags",
265
+ "type": {
266
+ "vec": "string"
267
+ }
268
+ }
269
+ ]
270
+ }
271
+ },
272
+ {
273
+ "name": "OrganizationV0",
274
+ "type": {
275
+ "kind": "struct",
276
+ "fields": [
277
+ {
278
+ "name": "num_proposals",
279
+ "type": "u32"
280
+ },
281
+ {
282
+ "name": "authority",
283
+ "docs": [
284
+ "Authority to create proposals under this organization"
285
+ ],
286
+ "type": "pubkey"
287
+ },
288
+ {
289
+ "name": "default_proposal_config",
290
+ "type": "pubkey"
291
+ },
292
+ {
293
+ "name": "proposal_program",
294
+ "type": "pubkey"
295
+ },
296
+ {
297
+ "name": "name",
298
+ "type": "string"
299
+ },
300
+ {
301
+ "name": "uri",
302
+ "type": "string"
303
+ },
304
+ {
305
+ "name": "bump_seed",
306
+ "type": "u8"
307
+ }
308
+ ]
309
+ }
310
+ },
311
+ {
312
+ "name": "UpdateOrganizationArgsV0",
313
+ "type": {
314
+ "kind": "struct",
315
+ "fields": [
316
+ {
317
+ "name": "authority",
318
+ "type": {
319
+ "option": "pubkey"
320
+ }
321
+ },
322
+ {
323
+ "name": "default_proposal_config",
324
+ "type": {
325
+ "option": "pubkey"
326
+ }
327
+ },
328
+ {
329
+ "name": "proposal_program",
330
+ "type": {
331
+ "option": "pubkey"
332
+ }
333
+ },
334
+ {
335
+ "name": "uri",
336
+ "type": {
337
+ "option": "string"
338
+ }
339
+ }
340
+ ]
341
+ }
342
+ }
343
+ ]
344
+ }