@solfund/idl 0.1.2 → 0.1.3

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/index.cjs CHANGED
@@ -45,7 +45,16 @@ var anchor_solana_crowdfunding_default = {
45
45
  instructions: [
46
46
  {
47
47
  name: "cancel_campaign",
48
- discriminator: [66, 10, 32, 138, 122, 36, 134, 202],
48
+ discriminator: [
49
+ 66,
50
+ 10,
51
+ 32,
52
+ 138,
53
+ 122,
54
+ 36,
55
+ 134,
56
+ 202
57
+ ],
49
58
  accounts: [
50
59
  {
51
60
  name: "campaign",
@@ -60,7 +69,16 @@ var anchor_solana_crowdfunding_default = {
60
69
  },
61
70
  {
62
71
  name: "contribute",
63
- discriminator: [82, 33, 68, 131, 32, 0, 205, 95],
72
+ discriminator: [
73
+ 82,
74
+ 33,
75
+ 68,
76
+ 131,
77
+ 32,
78
+ 0,
79
+ 205,
80
+ 95
81
+ ],
64
82
  accounts: [
65
83
  {
66
84
  name: "campaign",
@@ -73,7 +91,20 @@ var anchor_solana_crowdfunding_default = {
73
91
  seeds: [
74
92
  {
75
93
  kind: "const",
76
- value: [99, 111, 110, 116, 114, 105, 98, 117, 116, 105, 111, 110]
94
+ value: [
95
+ 99,
96
+ 111,
97
+ 110,
98
+ 116,
99
+ 114,
100
+ 105,
101
+ 98,
102
+ 117,
103
+ 116,
104
+ 105,
105
+ 111,
106
+ 110
107
+ ]
77
108
  },
78
109
  {
79
110
  kind: "account",
@@ -105,7 +136,16 @@ var anchor_solana_crowdfunding_default = {
105
136
  },
106
137
  {
107
138
  name: "create_campaign",
108
- discriminator: [111, 131, 187, 98, 160, 193, 114, 244],
139
+ discriminator: [
140
+ 111,
141
+ 131,
142
+ 187,
143
+ 98,
144
+ 160,
145
+ 193,
146
+ 114,
147
+ 244
148
+ ],
109
149
  accounts: [
110
150
  {
111
151
  name: "campaign",
@@ -114,7 +154,16 @@ var anchor_solana_crowdfunding_default = {
114
154
  seeds: [
115
155
  {
116
156
  kind: "const",
117
- value: [99, 97, 109, 112, 97, 105, 103, 110]
157
+ value: [
158
+ 99,
159
+ 97,
160
+ 109,
161
+ 112,
162
+ 97,
163
+ 105,
164
+ 103,
165
+ 110
166
+ ]
118
167
  },
119
168
  {
120
169
  kind: "account",
@@ -149,12 +198,25 @@ var anchor_solana_crowdfunding_default = {
149
198
  {
150
199
  name: "deadline",
151
200
  type: "i64"
201
+ },
202
+ {
203
+ name: "recipient",
204
+ type: "pubkey"
152
205
  }
153
206
  ]
154
207
  },
155
208
  {
156
209
  name: "create_contribution",
157
- discriminator: [239, 215, 102, 103, 123, 112, 178, 68],
210
+ discriminator: [
211
+ 239,
212
+ 215,
213
+ 102,
214
+ 103,
215
+ 123,
216
+ 112,
217
+ 178,
218
+ 68
219
+ ],
158
220
  accounts: [
159
221
  {
160
222
  name: "campaign"
@@ -166,7 +228,20 @@ var anchor_solana_crowdfunding_default = {
166
228
  seeds: [
167
229
  {
168
230
  kind: "const",
169
- value: [99, 111, 110, 116, 114, 105, 98, 117, 116, 105, 111, 110]
231
+ value: [
232
+ 99,
233
+ 111,
234
+ 110,
235
+ 116,
236
+ 114,
237
+ 105,
238
+ 98,
239
+ 117,
240
+ 116,
241
+ 105,
242
+ 111,
243
+ 110
244
+ ]
170
245
  },
171
246
  {
172
247
  kind: "account",
@@ -193,7 +268,16 @@ var anchor_solana_crowdfunding_default = {
193
268
  },
194
269
  {
195
270
  name: "refund",
196
- discriminator: [2, 96, 183, 251, 63, 208, 46, 46],
271
+ discriminator: [
272
+ 2,
273
+ 96,
274
+ 183,
275
+ 251,
276
+ 63,
277
+ 208,
278
+ 46,
279
+ 46
280
+ ],
197
281
  accounts: [
198
282
  {
199
283
  name: "campaign",
@@ -213,7 +297,16 @@ var anchor_solana_crowdfunding_default = {
213
297
  },
214
298
  {
215
299
  name: "withdraw",
216
- discriminator: [183, 18, 70, 156, 148, 109, 161, 34],
300
+ discriminator: [
301
+ 183,
302
+ 18,
303
+ 70,
304
+ 156,
305
+ 148,
306
+ 109,
307
+ 161,
308
+ 34
309
+ ],
217
310
  accounts: [
218
311
  {
219
312
  name: "campaign",
@@ -223,6 +316,10 @@ var anchor_solana_crowdfunding_default = {
223
316
  name: "creator",
224
317
  writable: true,
225
318
  signer: true
319
+ },
320
+ {
321
+ name: "recipient",
322
+ writable: true
226
323
  }
227
324
  ],
228
325
  args: []
@@ -231,33 +328,96 @@ var anchor_solana_crowdfunding_default = {
231
328
  accounts: [
232
329
  {
233
330
  name: "Campaign",
234
- discriminator: [50, 40, 49, 11, 157, 220, 229, 192]
331
+ discriminator: [
332
+ 50,
333
+ 40,
334
+ 49,
335
+ 11,
336
+ 157,
337
+ 220,
338
+ 229,
339
+ 192
340
+ ]
235
341
  },
236
342
  {
237
343
  name: "Contribution",
238
- discriminator: [182, 187, 14, 111, 72, 167, 242, 212]
344
+ discriminator: [
345
+ 182,
346
+ 187,
347
+ 14,
348
+ 111,
349
+ 72,
350
+ 167,
351
+ 242,
352
+ 212
353
+ ]
239
354
  }
240
355
  ],
241
356
  events: [
242
357
  {
243
358
  name: "CampaignCancelled",
244
- discriminator: [121, 171, 21, 55, 56, 234, 121, 44]
359
+ discriminator: [
360
+ 121,
361
+ 171,
362
+ 21,
363
+ 55,
364
+ 56,
365
+ 234,
366
+ 121,
367
+ 44
368
+ ]
245
369
  },
246
370
  {
247
371
  name: "CampaignCreated",
248
- discriminator: [9, 98, 69, 61, 53, 131, 64, 152]
372
+ discriminator: [
373
+ 9,
374
+ 98,
375
+ 69,
376
+ 61,
377
+ 53,
378
+ 131,
379
+ 64,
380
+ 152
381
+ ]
249
382
  },
250
383
  {
251
384
  name: "ContributionMade",
252
- discriminator: [81, 218, 72, 109, 93, 96, 131, 199]
385
+ discriminator: [
386
+ 81,
387
+ 218,
388
+ 72,
389
+ 109,
390
+ 93,
391
+ 96,
392
+ 131,
393
+ 199
394
+ ]
253
395
  },
254
396
  {
255
397
  name: "FundsWithdrawn",
256
- discriminator: [56, 130, 230, 154, 35, 92, 11, 118]
398
+ discriminator: [
399
+ 56,
400
+ 130,
401
+ 230,
402
+ 154,
403
+ 35,
404
+ 92,
405
+ 11,
406
+ 118
407
+ ]
257
408
  },
258
409
  {
259
410
  name: "RefundIssued",
260
- discriminator: [249, 16, 159, 159, 93, 186, 145, 206]
411
+ discriminator: [
412
+ 249,
413
+ 16,
414
+ 159,
415
+ 159,
416
+ 93,
417
+ 186,
418
+ 145,
419
+ 206
420
+ ]
261
421
  }
262
422
  ],
263
423
  errors: [
@@ -342,6 +502,10 @@ var anchor_solana_crowdfunding_default = {
342
502
  name: "creator",
343
503
  type: "pubkey"
344
504
  },
505
+ {
506
+ name: "recipient",
507
+ type: "pubkey"
508
+ },
345
509
  {
346
510
  name: "title",
347
511
  type: "string"
package/dist/index.d.cts CHANGED
@@ -91,6 +91,9 @@ type AnchorSolanaCrowdfunding = {
91
91
  }, {
92
92
  "name": "deadline";
93
93
  "type": "i64";
94
+ }, {
95
+ "name": "recipient";
96
+ "type": "pubkey";
94
97
  }];
95
98
  }, {
96
99
  "name": "createContribution";
@@ -146,6 +149,9 @@ type AnchorSolanaCrowdfunding = {
146
149
  "name": "creator";
147
150
  "writable": true;
148
151
  "signer": true;
152
+ }, {
153
+ "name": "recipient";
154
+ "writable": true;
149
155
  }];
150
156
  "args": [];
151
157
  }];
@@ -236,6 +242,9 @@ type AnchorSolanaCrowdfunding = {
236
242
  "fields": [{
237
243
  "name": "creator";
238
244
  "type": "pubkey";
245
+ }, {
246
+ "name": "recipient";
247
+ "type": "pubkey";
239
248
  }, {
240
249
  "name": "title";
241
250
  "type": "string";
package/dist/index.d.ts CHANGED
@@ -91,6 +91,9 @@ type AnchorSolanaCrowdfunding = {
91
91
  }, {
92
92
  "name": "deadline";
93
93
  "type": "i64";
94
+ }, {
95
+ "name": "recipient";
96
+ "type": "pubkey";
94
97
  }];
95
98
  }, {
96
99
  "name": "createContribution";
@@ -146,6 +149,9 @@ type AnchorSolanaCrowdfunding = {
146
149
  "name": "creator";
147
150
  "writable": true;
148
151
  "signer": true;
152
+ }, {
153
+ "name": "recipient";
154
+ "writable": true;
149
155
  }];
150
156
  "args": [];
151
157
  }];
@@ -236,6 +242,9 @@ type AnchorSolanaCrowdfunding = {
236
242
  "fields": [{
237
243
  "name": "creator";
238
244
  "type": "pubkey";
245
+ }, {
246
+ "name": "recipient";
247
+ "type": "pubkey";
239
248
  }, {
240
249
  "name": "title";
241
250
  "type": "string";
package/dist/index.js CHANGED
@@ -10,7 +10,16 @@ var anchor_solana_crowdfunding_default = {
10
10
  instructions: [
11
11
  {
12
12
  name: "cancel_campaign",
13
- discriminator: [66, 10, 32, 138, 122, 36, 134, 202],
13
+ discriminator: [
14
+ 66,
15
+ 10,
16
+ 32,
17
+ 138,
18
+ 122,
19
+ 36,
20
+ 134,
21
+ 202
22
+ ],
14
23
  accounts: [
15
24
  {
16
25
  name: "campaign",
@@ -25,7 +34,16 @@ var anchor_solana_crowdfunding_default = {
25
34
  },
26
35
  {
27
36
  name: "contribute",
28
- discriminator: [82, 33, 68, 131, 32, 0, 205, 95],
37
+ discriminator: [
38
+ 82,
39
+ 33,
40
+ 68,
41
+ 131,
42
+ 32,
43
+ 0,
44
+ 205,
45
+ 95
46
+ ],
29
47
  accounts: [
30
48
  {
31
49
  name: "campaign",
@@ -38,7 +56,20 @@ var anchor_solana_crowdfunding_default = {
38
56
  seeds: [
39
57
  {
40
58
  kind: "const",
41
- value: [99, 111, 110, 116, 114, 105, 98, 117, 116, 105, 111, 110]
59
+ value: [
60
+ 99,
61
+ 111,
62
+ 110,
63
+ 116,
64
+ 114,
65
+ 105,
66
+ 98,
67
+ 117,
68
+ 116,
69
+ 105,
70
+ 111,
71
+ 110
72
+ ]
42
73
  },
43
74
  {
44
75
  kind: "account",
@@ -70,7 +101,16 @@ var anchor_solana_crowdfunding_default = {
70
101
  },
71
102
  {
72
103
  name: "create_campaign",
73
- discriminator: [111, 131, 187, 98, 160, 193, 114, 244],
104
+ discriminator: [
105
+ 111,
106
+ 131,
107
+ 187,
108
+ 98,
109
+ 160,
110
+ 193,
111
+ 114,
112
+ 244
113
+ ],
74
114
  accounts: [
75
115
  {
76
116
  name: "campaign",
@@ -79,7 +119,16 @@ var anchor_solana_crowdfunding_default = {
79
119
  seeds: [
80
120
  {
81
121
  kind: "const",
82
- value: [99, 97, 109, 112, 97, 105, 103, 110]
122
+ value: [
123
+ 99,
124
+ 97,
125
+ 109,
126
+ 112,
127
+ 97,
128
+ 105,
129
+ 103,
130
+ 110
131
+ ]
83
132
  },
84
133
  {
85
134
  kind: "account",
@@ -114,12 +163,25 @@ var anchor_solana_crowdfunding_default = {
114
163
  {
115
164
  name: "deadline",
116
165
  type: "i64"
166
+ },
167
+ {
168
+ name: "recipient",
169
+ type: "pubkey"
117
170
  }
118
171
  ]
119
172
  },
120
173
  {
121
174
  name: "create_contribution",
122
- discriminator: [239, 215, 102, 103, 123, 112, 178, 68],
175
+ discriminator: [
176
+ 239,
177
+ 215,
178
+ 102,
179
+ 103,
180
+ 123,
181
+ 112,
182
+ 178,
183
+ 68
184
+ ],
123
185
  accounts: [
124
186
  {
125
187
  name: "campaign"
@@ -131,7 +193,20 @@ var anchor_solana_crowdfunding_default = {
131
193
  seeds: [
132
194
  {
133
195
  kind: "const",
134
- value: [99, 111, 110, 116, 114, 105, 98, 117, 116, 105, 111, 110]
196
+ value: [
197
+ 99,
198
+ 111,
199
+ 110,
200
+ 116,
201
+ 114,
202
+ 105,
203
+ 98,
204
+ 117,
205
+ 116,
206
+ 105,
207
+ 111,
208
+ 110
209
+ ]
135
210
  },
136
211
  {
137
212
  kind: "account",
@@ -158,7 +233,16 @@ var anchor_solana_crowdfunding_default = {
158
233
  },
159
234
  {
160
235
  name: "refund",
161
- discriminator: [2, 96, 183, 251, 63, 208, 46, 46],
236
+ discriminator: [
237
+ 2,
238
+ 96,
239
+ 183,
240
+ 251,
241
+ 63,
242
+ 208,
243
+ 46,
244
+ 46
245
+ ],
162
246
  accounts: [
163
247
  {
164
248
  name: "campaign",
@@ -178,7 +262,16 @@ var anchor_solana_crowdfunding_default = {
178
262
  },
179
263
  {
180
264
  name: "withdraw",
181
- discriminator: [183, 18, 70, 156, 148, 109, 161, 34],
265
+ discriminator: [
266
+ 183,
267
+ 18,
268
+ 70,
269
+ 156,
270
+ 148,
271
+ 109,
272
+ 161,
273
+ 34
274
+ ],
182
275
  accounts: [
183
276
  {
184
277
  name: "campaign",
@@ -188,6 +281,10 @@ var anchor_solana_crowdfunding_default = {
188
281
  name: "creator",
189
282
  writable: true,
190
283
  signer: true
284
+ },
285
+ {
286
+ name: "recipient",
287
+ writable: true
191
288
  }
192
289
  ],
193
290
  args: []
@@ -196,33 +293,96 @@ var anchor_solana_crowdfunding_default = {
196
293
  accounts: [
197
294
  {
198
295
  name: "Campaign",
199
- discriminator: [50, 40, 49, 11, 157, 220, 229, 192]
296
+ discriminator: [
297
+ 50,
298
+ 40,
299
+ 49,
300
+ 11,
301
+ 157,
302
+ 220,
303
+ 229,
304
+ 192
305
+ ]
200
306
  },
201
307
  {
202
308
  name: "Contribution",
203
- discriminator: [182, 187, 14, 111, 72, 167, 242, 212]
309
+ discriminator: [
310
+ 182,
311
+ 187,
312
+ 14,
313
+ 111,
314
+ 72,
315
+ 167,
316
+ 242,
317
+ 212
318
+ ]
204
319
  }
205
320
  ],
206
321
  events: [
207
322
  {
208
323
  name: "CampaignCancelled",
209
- discriminator: [121, 171, 21, 55, 56, 234, 121, 44]
324
+ discriminator: [
325
+ 121,
326
+ 171,
327
+ 21,
328
+ 55,
329
+ 56,
330
+ 234,
331
+ 121,
332
+ 44
333
+ ]
210
334
  },
211
335
  {
212
336
  name: "CampaignCreated",
213
- discriminator: [9, 98, 69, 61, 53, 131, 64, 152]
337
+ discriminator: [
338
+ 9,
339
+ 98,
340
+ 69,
341
+ 61,
342
+ 53,
343
+ 131,
344
+ 64,
345
+ 152
346
+ ]
214
347
  },
215
348
  {
216
349
  name: "ContributionMade",
217
- discriminator: [81, 218, 72, 109, 93, 96, 131, 199]
350
+ discriminator: [
351
+ 81,
352
+ 218,
353
+ 72,
354
+ 109,
355
+ 93,
356
+ 96,
357
+ 131,
358
+ 199
359
+ ]
218
360
  },
219
361
  {
220
362
  name: "FundsWithdrawn",
221
- discriminator: [56, 130, 230, 154, 35, 92, 11, 118]
363
+ discriminator: [
364
+ 56,
365
+ 130,
366
+ 230,
367
+ 154,
368
+ 35,
369
+ 92,
370
+ 11,
371
+ 118
372
+ ]
222
373
  },
223
374
  {
224
375
  name: "RefundIssued",
225
- discriminator: [249, 16, 159, 159, 93, 186, 145, 206]
376
+ discriminator: [
377
+ 249,
378
+ 16,
379
+ 159,
380
+ 159,
381
+ 93,
382
+ 186,
383
+ 145,
384
+ 206
385
+ ]
226
386
  }
227
387
  ],
228
388
  errors: [
@@ -307,6 +467,10 @@ var anchor_solana_crowdfunding_default = {
307
467
  name: "creator",
308
468
  type: "pubkey"
309
469
  },
470
+ {
471
+ name: "recipient",
472
+ type: "pubkey"
473
+ },
310
474
  {
311
475
  name: "title",
312
476
  type: "string"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@solfund/idl",
3
3
  "description": "SolFund anchor idl",
4
- "version": "0.1.2",
4
+ "version": "0.1.3",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"