@solfund/idl 0.1.3 → 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 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
@@ -171,7 +171,7 @@ var anchor_solana_crowdfunding_default = {
171
171
  },
172
172
  {
173
173
  kind: "arg",
174
- path: "title"
174
+ path: "id"
175
175
  }
176
176
  ]
177
177
  }
@@ -187,6 +187,15 @@ var anchor_solana_crowdfunding_default = {
187
187
  }
188
188
  ],
189
189
  args: [
190
+ {
191
+ name: "id",
192
+ type: {
193
+ array: [
194
+ "u8",
195
+ 16
196
+ ]
197
+ }
198
+ },
190
199
  {
191
200
  name: "title",
192
201
  type: "string"
@@ -490,6 +499,11 @@ var anchor_solana_crowdfunding_default = {
490
499
  code: 6013,
491
500
  name: "InsufficientFunds",
492
501
  msg: "Insufficient funds in account"
502
+ },
503
+ {
504
+ code: 6014,
505
+ name: "NoBackers",
506
+ msg: "Backer count cannot be negative"
493
507
  }
494
508
  ],
495
509
  types: [
@@ -498,6 +512,15 @@ var anchor_solana_crowdfunding_default = {
498
512
  type: {
499
513
  kind: "struct",
500
514
  fields: [
515
+ {
516
+ name: "id",
517
+ type: {
518
+ array: [
519
+ "u8",
520
+ 16
521
+ ]
522
+ }
523
+ },
501
524
  {
502
525
  name: "creator",
503
526
  type: "pubkey"
@@ -510,6 +533,10 @@ var anchor_solana_crowdfunding_default = {
510
533
  name: "title",
511
534
  type: "string"
512
535
  },
536
+ {
537
+ name: "backer_count",
538
+ type: "u64"
539
+ },
513
540
  {
514
541
  name: "target_amount",
515
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": "title";
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
  }, {
@@ -234,12 +239,21 @@ type AnchorSolanaCrowdfunding = {
234
239
  "code": 6013;
235
240
  "name": "insufficientFunds";
236
241
  "msg": "Insufficient funds in account";
242
+ }, {
243
+ "code": 6014;
244
+ "name": "noBackers";
245
+ "msg": "Backer count cannot be negative";
237
246
  }];
238
247
  "types": [{
239
248
  "name": "campaign";
240
249
  "type": {
241
250
  "kind": "struct";
242
251
  "fields": [{
252
+ "name": "id";
253
+ "type": {
254
+ "array": ["u8", 16];
255
+ };
256
+ }, {
243
257
  "name": "creator";
244
258
  "type": "pubkey";
245
259
  }, {
@@ -248,6 +262,9 @@ type AnchorSolanaCrowdfunding = {
248
262
  }, {
249
263
  "name": "title";
250
264
  "type": "string";
265
+ }, {
266
+ "name": "backerCount";
267
+ "type": "u64";
251
268
  }, {
252
269
  "name": "targetAmount";
253
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": "title";
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
  }, {
@@ -234,12 +239,21 @@ type AnchorSolanaCrowdfunding = {
234
239
  "code": 6013;
235
240
  "name": "insufficientFunds";
236
241
  "msg": "Insufficient funds in account";
242
+ }, {
243
+ "code": 6014;
244
+ "name": "noBackers";
245
+ "msg": "Backer count cannot be negative";
237
246
  }];
238
247
  "types": [{
239
248
  "name": "campaign";
240
249
  "type": {
241
250
  "kind": "struct";
242
251
  "fields": [{
252
+ "name": "id";
253
+ "type": {
254
+ "array": ["u8", 16];
255
+ };
256
+ }, {
243
257
  "name": "creator";
244
258
  "type": "pubkey";
245
259
  }, {
@@ -248,6 +262,9 @@ type AnchorSolanaCrowdfunding = {
248
262
  }, {
249
263
  "name": "title";
250
264
  "type": "string";
265
+ }, {
266
+ "name": "backerCount";
267
+ "type": "u64";
251
268
  }, {
252
269
  "name": "targetAmount";
253
270
  "type": "u64";
package/dist/index.js CHANGED
@@ -136,7 +136,7 @@ var anchor_solana_crowdfunding_default = {
136
136
  },
137
137
  {
138
138
  kind: "arg",
139
- path: "title"
139
+ path: "id"
140
140
  }
141
141
  ]
142
142
  }
@@ -152,6 +152,15 @@ var anchor_solana_crowdfunding_default = {
152
152
  }
153
153
  ],
154
154
  args: [
155
+ {
156
+ name: "id",
157
+ type: {
158
+ array: [
159
+ "u8",
160
+ 16
161
+ ]
162
+ }
163
+ },
155
164
  {
156
165
  name: "title",
157
166
  type: "string"
@@ -455,6 +464,11 @@ var anchor_solana_crowdfunding_default = {
455
464
  code: 6013,
456
465
  name: "InsufficientFunds",
457
466
  msg: "Insufficient funds in account"
467
+ },
468
+ {
469
+ code: 6014,
470
+ name: "NoBackers",
471
+ msg: "Backer count cannot be negative"
458
472
  }
459
473
  ],
460
474
  types: [
@@ -463,6 +477,15 @@ var anchor_solana_crowdfunding_default = {
463
477
  type: {
464
478
  kind: "struct",
465
479
  fields: [
480
+ {
481
+ name: "id",
482
+ type: {
483
+ array: [
484
+ "u8",
485
+ 16
486
+ ]
487
+ }
488
+ },
466
489
  {
467
490
  name: "creator",
468
491
  type: "pubkey"
@@ -475,6 +498,10 @@ var anchor_solana_crowdfunding_default = {
475
498
  name: "title",
476
499
  type: "string"
477
500
  },
501
+ {
502
+ name: "backer_count",
503
+ type: "u64"
504
+ },
478
505
  {
479
506
  name: "target_amount",
480
507
  type: "u64"
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.3",
4
+ "version": "0.1.4",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"