@solfund/idl 0.1.2 → 0.1.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.
- package/README.md +15 -15
- package/dist/index.cjs +208 -17
- package/dist/index.d.cts +27 -1
- package/dist/index.d.ts +27 -1
- package/dist/index.js +208 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# crowdfunding-idl
|
|
2
|
-
|
|
3
|
-
To install dependencies:
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
bun install
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
To run:
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
bun run index.ts
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
This project was created using `bun init` in bun v1.3.7. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
|
|
1
|
+
# crowdfunding-idl
|
|
2
|
+
|
|
3
|
+
To install dependencies:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
bun install
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
To run:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
bun run index.ts
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
This project was created using `bun init` in bun v1.3.7. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
|
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: [
|
|
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: [
|
|
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: [
|
|
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: [
|
|
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: [
|
|
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",
|
|
@@ -122,7 +171,7 @@ var anchor_solana_crowdfunding_default = {
|
|
|
122
171
|
},
|
|
123
172
|
{
|
|
124
173
|
kind: "arg",
|
|
125
|
-
path: "
|
|
174
|
+
path: "id"
|
|
126
175
|
}
|
|
127
176
|
]
|
|
128
177
|
}
|
|
@@ -138,6 +187,15 @@ var anchor_solana_crowdfunding_default = {
|
|
|
138
187
|
}
|
|
139
188
|
],
|
|
140
189
|
args: [
|
|
190
|
+
{
|
|
191
|
+
name: "id",
|
|
192
|
+
type: {
|
|
193
|
+
array: [
|
|
194
|
+
"u8",
|
|
195
|
+
16
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
},
|
|
141
199
|
{
|
|
142
200
|
name: "title",
|
|
143
201
|
type: "string"
|
|
@@ -149,12 +207,25 @@ var anchor_solana_crowdfunding_default = {
|
|
|
149
207
|
{
|
|
150
208
|
name: "deadline",
|
|
151
209
|
type: "i64"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: "recipient",
|
|
213
|
+
type: "pubkey"
|
|
152
214
|
}
|
|
153
215
|
]
|
|
154
216
|
},
|
|
155
217
|
{
|
|
156
218
|
name: "create_contribution",
|
|
157
|
-
discriminator: [
|
|
219
|
+
discriminator: [
|
|
220
|
+
239,
|
|
221
|
+
215,
|
|
222
|
+
102,
|
|
223
|
+
103,
|
|
224
|
+
123,
|
|
225
|
+
112,
|
|
226
|
+
178,
|
|
227
|
+
68
|
|
228
|
+
],
|
|
158
229
|
accounts: [
|
|
159
230
|
{
|
|
160
231
|
name: "campaign"
|
|
@@ -166,7 +237,20 @@ var anchor_solana_crowdfunding_default = {
|
|
|
166
237
|
seeds: [
|
|
167
238
|
{
|
|
168
239
|
kind: "const",
|
|
169
|
-
value: [
|
|
240
|
+
value: [
|
|
241
|
+
99,
|
|
242
|
+
111,
|
|
243
|
+
110,
|
|
244
|
+
116,
|
|
245
|
+
114,
|
|
246
|
+
105,
|
|
247
|
+
98,
|
|
248
|
+
117,
|
|
249
|
+
116,
|
|
250
|
+
105,
|
|
251
|
+
111,
|
|
252
|
+
110
|
|
253
|
+
]
|
|
170
254
|
},
|
|
171
255
|
{
|
|
172
256
|
kind: "account",
|
|
@@ -193,7 +277,16 @@ var anchor_solana_crowdfunding_default = {
|
|
|
193
277
|
},
|
|
194
278
|
{
|
|
195
279
|
name: "refund",
|
|
196
|
-
discriminator: [
|
|
280
|
+
discriminator: [
|
|
281
|
+
2,
|
|
282
|
+
96,
|
|
283
|
+
183,
|
|
284
|
+
251,
|
|
285
|
+
63,
|
|
286
|
+
208,
|
|
287
|
+
46,
|
|
288
|
+
46
|
|
289
|
+
],
|
|
197
290
|
accounts: [
|
|
198
291
|
{
|
|
199
292
|
name: "campaign",
|
|
@@ -213,7 +306,16 @@ var anchor_solana_crowdfunding_default = {
|
|
|
213
306
|
},
|
|
214
307
|
{
|
|
215
308
|
name: "withdraw",
|
|
216
|
-
discriminator: [
|
|
309
|
+
discriminator: [
|
|
310
|
+
183,
|
|
311
|
+
18,
|
|
312
|
+
70,
|
|
313
|
+
156,
|
|
314
|
+
148,
|
|
315
|
+
109,
|
|
316
|
+
161,
|
|
317
|
+
34
|
|
318
|
+
],
|
|
217
319
|
accounts: [
|
|
218
320
|
{
|
|
219
321
|
name: "campaign",
|
|
@@ -223,6 +325,10 @@ var anchor_solana_crowdfunding_default = {
|
|
|
223
325
|
name: "creator",
|
|
224
326
|
writable: true,
|
|
225
327
|
signer: true
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
name: "recipient",
|
|
331
|
+
writable: true
|
|
226
332
|
}
|
|
227
333
|
],
|
|
228
334
|
args: []
|
|
@@ -231,33 +337,96 @@ var anchor_solana_crowdfunding_default = {
|
|
|
231
337
|
accounts: [
|
|
232
338
|
{
|
|
233
339
|
name: "Campaign",
|
|
234
|
-
discriminator: [
|
|
340
|
+
discriminator: [
|
|
341
|
+
50,
|
|
342
|
+
40,
|
|
343
|
+
49,
|
|
344
|
+
11,
|
|
345
|
+
157,
|
|
346
|
+
220,
|
|
347
|
+
229,
|
|
348
|
+
192
|
|
349
|
+
]
|
|
235
350
|
},
|
|
236
351
|
{
|
|
237
352
|
name: "Contribution",
|
|
238
|
-
discriminator: [
|
|
353
|
+
discriminator: [
|
|
354
|
+
182,
|
|
355
|
+
187,
|
|
356
|
+
14,
|
|
357
|
+
111,
|
|
358
|
+
72,
|
|
359
|
+
167,
|
|
360
|
+
242,
|
|
361
|
+
212
|
|
362
|
+
]
|
|
239
363
|
}
|
|
240
364
|
],
|
|
241
365
|
events: [
|
|
242
366
|
{
|
|
243
367
|
name: "CampaignCancelled",
|
|
244
|
-
discriminator: [
|
|
368
|
+
discriminator: [
|
|
369
|
+
121,
|
|
370
|
+
171,
|
|
371
|
+
21,
|
|
372
|
+
55,
|
|
373
|
+
56,
|
|
374
|
+
234,
|
|
375
|
+
121,
|
|
376
|
+
44
|
|
377
|
+
]
|
|
245
378
|
},
|
|
246
379
|
{
|
|
247
380
|
name: "CampaignCreated",
|
|
248
|
-
discriminator: [
|
|
381
|
+
discriminator: [
|
|
382
|
+
9,
|
|
383
|
+
98,
|
|
384
|
+
69,
|
|
385
|
+
61,
|
|
386
|
+
53,
|
|
387
|
+
131,
|
|
388
|
+
64,
|
|
389
|
+
152
|
|
390
|
+
]
|
|
249
391
|
},
|
|
250
392
|
{
|
|
251
393
|
name: "ContributionMade",
|
|
252
|
-
discriminator: [
|
|
394
|
+
discriminator: [
|
|
395
|
+
81,
|
|
396
|
+
218,
|
|
397
|
+
72,
|
|
398
|
+
109,
|
|
399
|
+
93,
|
|
400
|
+
96,
|
|
401
|
+
131,
|
|
402
|
+
199
|
|
403
|
+
]
|
|
253
404
|
},
|
|
254
405
|
{
|
|
255
406
|
name: "FundsWithdrawn",
|
|
256
|
-
discriminator: [
|
|
407
|
+
discriminator: [
|
|
408
|
+
56,
|
|
409
|
+
130,
|
|
410
|
+
230,
|
|
411
|
+
154,
|
|
412
|
+
35,
|
|
413
|
+
92,
|
|
414
|
+
11,
|
|
415
|
+
118
|
|
416
|
+
]
|
|
257
417
|
},
|
|
258
418
|
{
|
|
259
419
|
name: "RefundIssued",
|
|
260
|
-
discriminator: [
|
|
420
|
+
discriminator: [
|
|
421
|
+
249,
|
|
422
|
+
16,
|
|
423
|
+
159,
|
|
424
|
+
159,
|
|
425
|
+
93,
|
|
426
|
+
186,
|
|
427
|
+
145,
|
|
428
|
+
206
|
|
429
|
+
]
|
|
261
430
|
}
|
|
262
431
|
],
|
|
263
432
|
errors: [
|
|
@@ -330,6 +499,11 @@ var anchor_solana_crowdfunding_default = {
|
|
|
330
499
|
code: 6013,
|
|
331
500
|
name: "InsufficientFunds",
|
|
332
501
|
msg: "Insufficient funds in account"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
code: 6014,
|
|
505
|
+
name: "NoBackers",
|
|
506
|
+
msg: "Backer count cannot be negative"
|
|
333
507
|
}
|
|
334
508
|
],
|
|
335
509
|
types: [
|
|
@@ -338,14 +512,31 @@ var anchor_solana_crowdfunding_default = {
|
|
|
338
512
|
type: {
|
|
339
513
|
kind: "struct",
|
|
340
514
|
fields: [
|
|
515
|
+
{
|
|
516
|
+
name: "id",
|
|
517
|
+
type: {
|
|
518
|
+
array: [
|
|
519
|
+
"u8",
|
|
520
|
+
16
|
|
521
|
+
]
|
|
522
|
+
}
|
|
523
|
+
},
|
|
341
524
|
{
|
|
342
525
|
name: "creator",
|
|
343
526
|
type: "pubkey"
|
|
344
527
|
},
|
|
528
|
+
{
|
|
529
|
+
name: "recipient",
|
|
530
|
+
type: "pubkey"
|
|
531
|
+
},
|
|
345
532
|
{
|
|
346
533
|
name: "title",
|
|
347
534
|
type: "string"
|
|
348
535
|
},
|
|
536
|
+
{
|
|
537
|
+
name: "backer_count",
|
|
538
|
+
type: "u64"
|
|
539
|
+
},
|
|
349
540
|
{
|
|
350
541
|
name: "target_amount",
|
|
351
542
|
type: "u64"
|
package/dist/index.d.cts
CHANGED
|
@@ -71,7 +71,7 @@ type AnchorSolanaCrowdfunding = {
|
|
|
71
71
|
"path": "creator";
|
|
72
72
|
}, {
|
|
73
73
|
"kind": "arg";
|
|
74
|
-
"path": "
|
|
74
|
+
"path": "id";
|
|
75
75
|
}];
|
|
76
76
|
};
|
|
77
77
|
}, {
|
|
@@ -83,6 +83,11 @@ type AnchorSolanaCrowdfunding = {
|
|
|
83
83
|
"address": "11111111111111111111111111111111";
|
|
84
84
|
}];
|
|
85
85
|
"args": [{
|
|
86
|
+
"name": "id";
|
|
87
|
+
"type": {
|
|
88
|
+
"array": ["u8", 16];
|
|
89
|
+
};
|
|
90
|
+
}, {
|
|
86
91
|
"name": "title";
|
|
87
92
|
"type": "string";
|
|
88
93
|
}, {
|
|
@@ -91,6 +96,9 @@ type AnchorSolanaCrowdfunding = {
|
|
|
91
96
|
}, {
|
|
92
97
|
"name": "deadline";
|
|
93
98
|
"type": "i64";
|
|
99
|
+
}, {
|
|
100
|
+
"name": "recipient";
|
|
101
|
+
"type": "pubkey";
|
|
94
102
|
}];
|
|
95
103
|
}, {
|
|
96
104
|
"name": "createContribution";
|
|
@@ -146,6 +154,9 @@ type AnchorSolanaCrowdfunding = {
|
|
|
146
154
|
"name": "creator";
|
|
147
155
|
"writable": true;
|
|
148
156
|
"signer": true;
|
|
157
|
+
}, {
|
|
158
|
+
"name": "recipient";
|
|
159
|
+
"writable": true;
|
|
149
160
|
}];
|
|
150
161
|
"args": [];
|
|
151
162
|
}];
|
|
@@ -228,17 +239,32 @@ type AnchorSolanaCrowdfunding = {
|
|
|
228
239
|
"code": 6013;
|
|
229
240
|
"name": "insufficientFunds";
|
|
230
241
|
"msg": "Insufficient funds in account";
|
|
242
|
+
}, {
|
|
243
|
+
"code": 6014;
|
|
244
|
+
"name": "noBackers";
|
|
245
|
+
"msg": "Backer count cannot be negative";
|
|
231
246
|
}];
|
|
232
247
|
"types": [{
|
|
233
248
|
"name": "campaign";
|
|
234
249
|
"type": {
|
|
235
250
|
"kind": "struct";
|
|
236
251
|
"fields": [{
|
|
252
|
+
"name": "id";
|
|
253
|
+
"type": {
|
|
254
|
+
"array": ["u8", 16];
|
|
255
|
+
};
|
|
256
|
+
}, {
|
|
237
257
|
"name": "creator";
|
|
238
258
|
"type": "pubkey";
|
|
259
|
+
}, {
|
|
260
|
+
"name": "recipient";
|
|
261
|
+
"type": "pubkey";
|
|
239
262
|
}, {
|
|
240
263
|
"name": "title";
|
|
241
264
|
"type": "string";
|
|
265
|
+
}, {
|
|
266
|
+
"name": "backerCount";
|
|
267
|
+
"type": "u64";
|
|
242
268
|
}, {
|
|
243
269
|
"name": "targetAmount";
|
|
244
270
|
"type": "u64";
|
package/dist/index.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ type AnchorSolanaCrowdfunding = {
|
|
|
71
71
|
"path": "creator";
|
|
72
72
|
}, {
|
|
73
73
|
"kind": "arg";
|
|
74
|
-
"path": "
|
|
74
|
+
"path": "id";
|
|
75
75
|
}];
|
|
76
76
|
};
|
|
77
77
|
}, {
|
|
@@ -83,6 +83,11 @@ type AnchorSolanaCrowdfunding = {
|
|
|
83
83
|
"address": "11111111111111111111111111111111";
|
|
84
84
|
}];
|
|
85
85
|
"args": [{
|
|
86
|
+
"name": "id";
|
|
87
|
+
"type": {
|
|
88
|
+
"array": ["u8", 16];
|
|
89
|
+
};
|
|
90
|
+
}, {
|
|
86
91
|
"name": "title";
|
|
87
92
|
"type": "string";
|
|
88
93
|
}, {
|
|
@@ -91,6 +96,9 @@ type AnchorSolanaCrowdfunding = {
|
|
|
91
96
|
}, {
|
|
92
97
|
"name": "deadline";
|
|
93
98
|
"type": "i64";
|
|
99
|
+
}, {
|
|
100
|
+
"name": "recipient";
|
|
101
|
+
"type": "pubkey";
|
|
94
102
|
}];
|
|
95
103
|
}, {
|
|
96
104
|
"name": "createContribution";
|
|
@@ -146,6 +154,9 @@ type AnchorSolanaCrowdfunding = {
|
|
|
146
154
|
"name": "creator";
|
|
147
155
|
"writable": true;
|
|
148
156
|
"signer": true;
|
|
157
|
+
}, {
|
|
158
|
+
"name": "recipient";
|
|
159
|
+
"writable": true;
|
|
149
160
|
}];
|
|
150
161
|
"args": [];
|
|
151
162
|
}];
|
|
@@ -228,17 +239,32 @@ type AnchorSolanaCrowdfunding = {
|
|
|
228
239
|
"code": 6013;
|
|
229
240
|
"name": "insufficientFunds";
|
|
230
241
|
"msg": "Insufficient funds in account";
|
|
242
|
+
}, {
|
|
243
|
+
"code": 6014;
|
|
244
|
+
"name": "noBackers";
|
|
245
|
+
"msg": "Backer count cannot be negative";
|
|
231
246
|
}];
|
|
232
247
|
"types": [{
|
|
233
248
|
"name": "campaign";
|
|
234
249
|
"type": {
|
|
235
250
|
"kind": "struct";
|
|
236
251
|
"fields": [{
|
|
252
|
+
"name": "id";
|
|
253
|
+
"type": {
|
|
254
|
+
"array": ["u8", 16];
|
|
255
|
+
};
|
|
256
|
+
}, {
|
|
237
257
|
"name": "creator";
|
|
238
258
|
"type": "pubkey";
|
|
259
|
+
}, {
|
|
260
|
+
"name": "recipient";
|
|
261
|
+
"type": "pubkey";
|
|
239
262
|
}, {
|
|
240
263
|
"name": "title";
|
|
241
264
|
"type": "string";
|
|
265
|
+
}, {
|
|
266
|
+
"name": "backerCount";
|
|
267
|
+
"type": "u64";
|
|
242
268
|
}, {
|
|
243
269
|
"name": "targetAmount";
|
|
244
270
|
"type": "u64";
|
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: [
|
|
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: [
|
|
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: [
|
|
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: [
|
|
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: [
|
|
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",
|
|
@@ -87,7 +136,7 @@ var anchor_solana_crowdfunding_default = {
|
|
|
87
136
|
},
|
|
88
137
|
{
|
|
89
138
|
kind: "arg",
|
|
90
|
-
path: "
|
|
139
|
+
path: "id"
|
|
91
140
|
}
|
|
92
141
|
]
|
|
93
142
|
}
|
|
@@ -103,6 +152,15 @@ var anchor_solana_crowdfunding_default = {
|
|
|
103
152
|
}
|
|
104
153
|
],
|
|
105
154
|
args: [
|
|
155
|
+
{
|
|
156
|
+
name: "id",
|
|
157
|
+
type: {
|
|
158
|
+
array: [
|
|
159
|
+
"u8",
|
|
160
|
+
16
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
},
|
|
106
164
|
{
|
|
107
165
|
name: "title",
|
|
108
166
|
type: "string"
|
|
@@ -114,12 +172,25 @@ var anchor_solana_crowdfunding_default = {
|
|
|
114
172
|
{
|
|
115
173
|
name: "deadline",
|
|
116
174
|
type: "i64"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: "recipient",
|
|
178
|
+
type: "pubkey"
|
|
117
179
|
}
|
|
118
180
|
]
|
|
119
181
|
},
|
|
120
182
|
{
|
|
121
183
|
name: "create_contribution",
|
|
122
|
-
discriminator: [
|
|
184
|
+
discriminator: [
|
|
185
|
+
239,
|
|
186
|
+
215,
|
|
187
|
+
102,
|
|
188
|
+
103,
|
|
189
|
+
123,
|
|
190
|
+
112,
|
|
191
|
+
178,
|
|
192
|
+
68
|
|
193
|
+
],
|
|
123
194
|
accounts: [
|
|
124
195
|
{
|
|
125
196
|
name: "campaign"
|
|
@@ -131,7 +202,20 @@ var anchor_solana_crowdfunding_default = {
|
|
|
131
202
|
seeds: [
|
|
132
203
|
{
|
|
133
204
|
kind: "const",
|
|
134
|
-
value: [
|
|
205
|
+
value: [
|
|
206
|
+
99,
|
|
207
|
+
111,
|
|
208
|
+
110,
|
|
209
|
+
116,
|
|
210
|
+
114,
|
|
211
|
+
105,
|
|
212
|
+
98,
|
|
213
|
+
117,
|
|
214
|
+
116,
|
|
215
|
+
105,
|
|
216
|
+
111,
|
|
217
|
+
110
|
|
218
|
+
]
|
|
135
219
|
},
|
|
136
220
|
{
|
|
137
221
|
kind: "account",
|
|
@@ -158,7 +242,16 @@ var anchor_solana_crowdfunding_default = {
|
|
|
158
242
|
},
|
|
159
243
|
{
|
|
160
244
|
name: "refund",
|
|
161
|
-
discriminator: [
|
|
245
|
+
discriminator: [
|
|
246
|
+
2,
|
|
247
|
+
96,
|
|
248
|
+
183,
|
|
249
|
+
251,
|
|
250
|
+
63,
|
|
251
|
+
208,
|
|
252
|
+
46,
|
|
253
|
+
46
|
|
254
|
+
],
|
|
162
255
|
accounts: [
|
|
163
256
|
{
|
|
164
257
|
name: "campaign",
|
|
@@ -178,7 +271,16 @@ var anchor_solana_crowdfunding_default = {
|
|
|
178
271
|
},
|
|
179
272
|
{
|
|
180
273
|
name: "withdraw",
|
|
181
|
-
discriminator: [
|
|
274
|
+
discriminator: [
|
|
275
|
+
183,
|
|
276
|
+
18,
|
|
277
|
+
70,
|
|
278
|
+
156,
|
|
279
|
+
148,
|
|
280
|
+
109,
|
|
281
|
+
161,
|
|
282
|
+
34
|
|
283
|
+
],
|
|
182
284
|
accounts: [
|
|
183
285
|
{
|
|
184
286
|
name: "campaign",
|
|
@@ -188,6 +290,10 @@ var anchor_solana_crowdfunding_default = {
|
|
|
188
290
|
name: "creator",
|
|
189
291
|
writable: true,
|
|
190
292
|
signer: true
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
name: "recipient",
|
|
296
|
+
writable: true
|
|
191
297
|
}
|
|
192
298
|
],
|
|
193
299
|
args: []
|
|
@@ -196,33 +302,96 @@ var anchor_solana_crowdfunding_default = {
|
|
|
196
302
|
accounts: [
|
|
197
303
|
{
|
|
198
304
|
name: "Campaign",
|
|
199
|
-
discriminator: [
|
|
305
|
+
discriminator: [
|
|
306
|
+
50,
|
|
307
|
+
40,
|
|
308
|
+
49,
|
|
309
|
+
11,
|
|
310
|
+
157,
|
|
311
|
+
220,
|
|
312
|
+
229,
|
|
313
|
+
192
|
|
314
|
+
]
|
|
200
315
|
},
|
|
201
316
|
{
|
|
202
317
|
name: "Contribution",
|
|
203
|
-
discriminator: [
|
|
318
|
+
discriminator: [
|
|
319
|
+
182,
|
|
320
|
+
187,
|
|
321
|
+
14,
|
|
322
|
+
111,
|
|
323
|
+
72,
|
|
324
|
+
167,
|
|
325
|
+
242,
|
|
326
|
+
212
|
|
327
|
+
]
|
|
204
328
|
}
|
|
205
329
|
],
|
|
206
330
|
events: [
|
|
207
331
|
{
|
|
208
332
|
name: "CampaignCancelled",
|
|
209
|
-
discriminator: [
|
|
333
|
+
discriminator: [
|
|
334
|
+
121,
|
|
335
|
+
171,
|
|
336
|
+
21,
|
|
337
|
+
55,
|
|
338
|
+
56,
|
|
339
|
+
234,
|
|
340
|
+
121,
|
|
341
|
+
44
|
|
342
|
+
]
|
|
210
343
|
},
|
|
211
344
|
{
|
|
212
345
|
name: "CampaignCreated",
|
|
213
|
-
discriminator: [
|
|
346
|
+
discriminator: [
|
|
347
|
+
9,
|
|
348
|
+
98,
|
|
349
|
+
69,
|
|
350
|
+
61,
|
|
351
|
+
53,
|
|
352
|
+
131,
|
|
353
|
+
64,
|
|
354
|
+
152
|
|
355
|
+
]
|
|
214
356
|
},
|
|
215
357
|
{
|
|
216
358
|
name: "ContributionMade",
|
|
217
|
-
discriminator: [
|
|
359
|
+
discriminator: [
|
|
360
|
+
81,
|
|
361
|
+
218,
|
|
362
|
+
72,
|
|
363
|
+
109,
|
|
364
|
+
93,
|
|
365
|
+
96,
|
|
366
|
+
131,
|
|
367
|
+
199
|
|
368
|
+
]
|
|
218
369
|
},
|
|
219
370
|
{
|
|
220
371
|
name: "FundsWithdrawn",
|
|
221
|
-
discriminator: [
|
|
372
|
+
discriminator: [
|
|
373
|
+
56,
|
|
374
|
+
130,
|
|
375
|
+
230,
|
|
376
|
+
154,
|
|
377
|
+
35,
|
|
378
|
+
92,
|
|
379
|
+
11,
|
|
380
|
+
118
|
|
381
|
+
]
|
|
222
382
|
},
|
|
223
383
|
{
|
|
224
384
|
name: "RefundIssued",
|
|
225
|
-
discriminator: [
|
|
385
|
+
discriminator: [
|
|
386
|
+
249,
|
|
387
|
+
16,
|
|
388
|
+
159,
|
|
389
|
+
159,
|
|
390
|
+
93,
|
|
391
|
+
186,
|
|
392
|
+
145,
|
|
393
|
+
206
|
|
394
|
+
]
|
|
226
395
|
}
|
|
227
396
|
],
|
|
228
397
|
errors: [
|
|
@@ -295,6 +464,11 @@ var anchor_solana_crowdfunding_default = {
|
|
|
295
464
|
code: 6013,
|
|
296
465
|
name: "InsufficientFunds",
|
|
297
466
|
msg: "Insufficient funds in account"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
code: 6014,
|
|
470
|
+
name: "NoBackers",
|
|
471
|
+
msg: "Backer count cannot be negative"
|
|
298
472
|
}
|
|
299
473
|
],
|
|
300
474
|
types: [
|
|
@@ -303,14 +477,31 @@ var anchor_solana_crowdfunding_default = {
|
|
|
303
477
|
type: {
|
|
304
478
|
kind: "struct",
|
|
305
479
|
fields: [
|
|
480
|
+
{
|
|
481
|
+
name: "id",
|
|
482
|
+
type: {
|
|
483
|
+
array: [
|
|
484
|
+
"u8",
|
|
485
|
+
16
|
|
486
|
+
]
|
|
487
|
+
}
|
|
488
|
+
},
|
|
306
489
|
{
|
|
307
490
|
name: "creator",
|
|
308
491
|
type: "pubkey"
|
|
309
492
|
},
|
|
493
|
+
{
|
|
494
|
+
name: "recipient",
|
|
495
|
+
type: "pubkey"
|
|
496
|
+
},
|
|
310
497
|
{
|
|
311
498
|
name: "title",
|
|
312
499
|
type: "string"
|
|
313
500
|
},
|
|
501
|
+
{
|
|
502
|
+
name: "backer_count",
|
|
503
|
+
type: "u64"
|
|
504
|
+
},
|
|
314
505
|
{
|
|
315
506
|
name: "target_amount",
|
|
316
507
|
type: "u64"
|