@sign-global/tokentable 0.4.1-beta.3 → 0.4.1-beta.5

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.
Files changed (62) hide show
  1. package/dist/cjs/airdrop/SignatureAirdropClient.d.ts +3 -1
  2. package/dist/cjs/airdrop/SignatureAirdropClient.js +31 -15
  3. package/dist/cjs/airdrop/SignatureAirdropClient.js.map +1 -1
  4. package/dist/cjs/airdrop/common/index.d.ts +35 -0
  5. package/dist/cjs/airdrop/constants/chain-config.d.ts +36 -0
  6. package/dist/cjs/airdrop/constants/chain-config.js +5 -0
  7. package/dist/cjs/airdrop/constants/chain-config.js.map +1 -1
  8. package/dist/cjs/airdrop/contracts/evm/SignatureAirdropService.d.ts +1 -1
  9. package/dist/cjs/airdrop/contracts/evm/SignatureAirdropService.js +6 -1
  10. package/dist/cjs/airdrop/contracts/evm/SignatureAirdropService.js.map +1 -1
  11. package/dist/cjs/airdrop/contracts/solana/AirdropSignatureClient.d.ts +1 -0
  12. package/dist/cjs/airdrop/contracts/solana/AirdropSignatureClient.js +3 -6
  13. package/dist/cjs/airdrop/contracts/solana/AirdropSignatureClient.js.map +1 -1
  14. package/dist/cjs/airdrop/contracts/solana/FeeCollectorClient.d.ts +1 -0
  15. package/dist/cjs/airdrop/contracts/solana/FeeCollectorClient.js +5 -0
  16. package/dist/cjs/airdrop/contracts/solana/FeeCollectorClient.js.map +1 -1
  17. package/dist/cjs/airdrop/contracts/solana/SignatureAirdropService.d.ts +2 -2
  18. package/dist/cjs/airdrop/contracts/solana/SignatureAirdropService.js +3 -9
  19. package/dist/cjs/airdrop/contracts/solana/SignatureAirdropService.js.map +1 -1
  20. package/dist/cjs/airdrop/contracts/solana/fee_collector.d.ts +601 -352
  21. package/dist/cjs/airdrop/contracts/solana/fee_collector.json +1 -1
  22. package/dist/cjs/airdrop/contracts/solana/fungible_token_distributor_solana.d.ts +939 -504
  23. package/dist/cjs/airdrop/contracts/solana/fungible_token_distributor_solana.json +2 -2
  24. package/dist/cjs/airdrop/types/index.d.ts +4 -3
  25. package/dist/cjs/airdrop/types/index.js.map +1 -1
  26. package/dist/esm/airdrop/SignatureAirdropClient.d.ts +3 -1
  27. package/dist/esm/airdrop/SignatureAirdropClient.js +31 -15
  28. package/dist/esm/airdrop/SignatureAirdropClient.js.map +1 -1
  29. package/dist/esm/airdrop/common/index.d.ts +35 -0
  30. package/dist/esm/airdrop/constants/chain-config.d.ts +36 -0
  31. package/dist/esm/airdrop/constants/chain-config.js +6 -1
  32. package/dist/esm/airdrop/constants/chain-config.js.map +1 -1
  33. package/dist/esm/airdrop/contracts/evm/SignatureAirdropService.d.ts +1 -1
  34. package/dist/esm/airdrop/contracts/evm/SignatureAirdropService.js +6 -1
  35. package/dist/esm/airdrop/contracts/evm/SignatureAirdropService.js.map +1 -1
  36. package/dist/esm/airdrop/contracts/solana/AirdropSignatureClient.d.ts +1 -0
  37. package/dist/esm/airdrop/contracts/solana/AirdropSignatureClient.js +3 -6
  38. package/dist/esm/airdrop/contracts/solana/AirdropSignatureClient.js.map +1 -1
  39. package/dist/esm/airdrop/contracts/solana/FeeCollectorClient.d.ts +1 -0
  40. package/dist/esm/airdrop/contracts/solana/FeeCollectorClient.js +5 -0
  41. package/dist/esm/airdrop/contracts/solana/FeeCollectorClient.js.map +1 -1
  42. package/dist/esm/airdrop/contracts/solana/SignatureAirdropService.d.ts +2 -2
  43. package/dist/esm/airdrop/contracts/solana/SignatureAirdropService.js +3 -9
  44. package/dist/esm/airdrop/contracts/solana/SignatureAirdropService.js.map +1 -1
  45. package/dist/esm/airdrop/contracts/solana/fee_collector.d.ts +601 -352
  46. package/dist/esm/airdrop/contracts/solana/fee_collector.json +1 -1
  47. package/dist/esm/airdrop/contracts/solana/fungible_token_distributor_solana.d.ts +939 -504
  48. package/dist/esm/airdrop/contracts/solana/fungible_token_distributor_solana.json +2 -2
  49. package/dist/esm/airdrop/types/index.d.ts +4 -3
  50. package/dist/esm/airdrop/types/index.js.map +1 -1
  51. package/package.json +1 -1
  52. package/src/airdrop/SignatureAirdropClient.ts +44 -24
  53. package/src/airdrop/constants/chain-config.ts +7 -2
  54. package/src/airdrop/contracts/evm/SignatureAirdropService.ts +6 -1
  55. package/src/airdrop/contracts/solana/AirdropSignatureClient.ts +4 -20
  56. package/src/airdrop/contracts/solana/FeeCollectorClient.ts +6 -0
  57. package/src/airdrop/contracts/solana/SignatureAirdropService.ts +4 -10
  58. package/src/airdrop/contracts/solana/fee_collector.json +1 -1
  59. package/src/airdrop/contracts/solana/fee_collector.ts +679 -430
  60. package/src/airdrop/contracts/solana/fungible_token_distributor_solana.json +2 -2
  61. package/src/airdrop/contracts/solana/fungible_token_distributor_solana.ts +1049 -614
  62. package/src/airdrop/types/index.ts +4 -2
@@ -5,76 +5,103 @@
5
5
  * IDL can be found at `target/idl/fee_collector.json`.
6
6
  */
7
7
  export type FeeCollector = {
8
- address: 'BiSXnuUr1HisEsAVd9DjYpthjLhG286ehYQsABkMMuJq';
9
- metadata: {
10
- name: 'feeCollector';
11
- version: '0.1.0';
12
- spec: '0.1.0';
13
- description: 'Created with Anchor';
8
+ "address": "4dfP4CMvznzUuuYLhybXy71zasrhtjrFkChSFjtqS3on";
9
+ "metadata": {
10
+ "name": "feeCollector";
11
+ "version": "0.1.0";
12
+ "spec": "0.1.0";
13
+ "description": "Created with Anchor";
14
14
  };
15
- instructions: [
15
+ "instructions": [
16
16
  {
17
- name: 'collectFee';
18
- discriminator: [60, 173, 247, 103, 4, 93, 130, 48];
19
- accounts: [
20
- {
21
- name: 'storage';
22
- writable: true;
23
- pda: {
24
- seeds: [
17
+ "name": "collectFee";
18
+ "discriminator": [
19
+ 60,
20
+ 173,
21
+ 247,
22
+ 103,
23
+ 4,
24
+ 93,
25
+ 130,
26
+ 48
27
+ ];
28
+ "accounts": [
29
+ {
30
+ "name": "storage";
31
+ "writable": true;
32
+ "pda": {
33
+ "seeds": [
25
34
  {
26
- kind: 'const';
27
- value: [115, 116, 111, 114, 97, 103, 101];
35
+ "kind": "const";
36
+ "value": [
37
+ 115,
38
+ 116,
39
+ 111,
40
+ 114,
41
+ 97,
42
+ 103,
43
+ 101
44
+ ];
28
45
  }
29
46
  ];
30
47
  };
31
48
  },
32
49
  {
33
- name: 'vault';
34
- writable: true;
35
- optional: true;
36
- pda: {
37
- seeds: [
50
+ "name": "vault";
51
+ "writable": true;
52
+ "optional": true;
53
+ "pda": {
54
+ "seeds": [
38
55
  {
39
- kind: 'const';
40
- value: [118, 97, 117, 108, 116];
56
+ "kind": "const";
57
+ "value": [
58
+ 118,
59
+ 97,
60
+ 117,
61
+ 108,
62
+ 116
63
+ ];
41
64
  },
42
65
  {
43
- kind: 'arg';
44
- path: 'feeToken';
66
+ "kind": "arg";
67
+ "path": "feeToken";
45
68
  }
46
69
  ];
47
70
  };
48
71
  },
49
72
  {
50
- name: 'fee';
51
- writable: true;
52
- pda: {
53
- seeds: [
73
+ "name": "fee";
74
+ "writable": true;
75
+ "pda": {
76
+ "seeds": [
54
77
  {
55
- kind: 'const';
56
- value: [102, 101, 101];
78
+ "kind": "const";
79
+ "value": [
80
+ 102,
81
+ 101,
82
+ 101
83
+ ];
57
84
  },
58
85
  {
59
- kind: 'arg';
60
- path: 'unlockerAddress';
86
+ "kind": "arg";
87
+ "path": "projectId";
61
88
  }
62
89
  ];
63
90
  };
64
91
  },
65
92
  {
66
- name: 'sourceAta';
67
- writable: true;
68
- optional: true;
69
- pda: {
70
- seeds: [
93
+ "name": "sourceAta";
94
+ "writable": true;
95
+ "optional": true;
96
+ "pda": {
97
+ "seeds": [
71
98
  {
72
- kind: 'account';
73
- path: 'authority';
99
+ "kind": "account";
100
+ "path": "authority";
74
101
  },
75
102
  {
76
- kind: 'const';
77
- value: [
103
+ "kind": "const";
104
+ "value": [
78
105
  6,
79
106
  221,
80
107
  246,
@@ -110,13 +137,13 @@ export type FeeCollector = {
110
137
  ];
111
138
  },
112
139
  {
113
- kind: 'arg';
114
- path: 'feeToken';
140
+ "kind": "arg";
141
+ "path": "feeToken";
115
142
  }
116
143
  ];
117
- program: {
118
- kind: 'const';
119
- value: [
144
+ "program": {
145
+ "kind": "const";
146
+ "value": [
120
147
  140,
121
148
  151,
122
149
  37,
@@ -154,426 +181,603 @@ export type FeeCollector = {
154
181
  };
155
182
  },
156
183
  {
157
- name: 'authority';
158
- writable: true;
159
- signer: true;
184
+ "name": "authority";
185
+ "writable": true;
186
+ "signer": true;
160
187
  },
161
188
  {
162
- name: 'systemProgram';
163
- address: '11111111111111111111111111111111';
189
+ "name": "systemProgram";
190
+ "address": "11111111111111111111111111111111";
164
191
  },
165
192
  {
166
- name: 'tokenProgram';
193
+ "name": "tokenProgram";
167
194
  },
168
195
  {
169
- name: 'associatedTokenProgram';
170
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
196
+ "name": "associatedTokenProgram";
197
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
171
198
  }
172
199
  ];
173
- args: [
200
+ "args": [
174
201
  {
175
- name: 'feeToken';
176
- type: 'pubkey';
202
+ "name": "feeToken";
203
+ "type": "pubkey";
177
204
  },
178
205
  {
179
- name: 'unlockerAddress';
180
- type: 'pubkey';
206
+ "name": "projectId";
207
+ "type": "string";
181
208
  },
182
209
  {
183
- name: 'tokenTransferred';
184
- type: 'u64';
210
+ "name": "tokenTransferred";
211
+ "type": "u64";
185
212
  }
186
213
  ];
187
- returns: 'u64';
214
+ "returns": "u64";
188
215
  },
189
216
  {
190
- name: 'getFee';
191
- discriminator: [115, 195, 235, 161, 25, 219, 60, 29];
192
- accounts: [
217
+ "name": "getFee";
218
+ "discriminator": [
219
+ 115,
220
+ 195,
221
+ 235,
222
+ 161,
223
+ 25,
224
+ 219,
225
+ 60,
226
+ 29
227
+ ];
228
+ "accounts": [
193
229
  {
194
- name: 'storage';
195
- pda: {
196
- seeds: [
230
+ "name": "storage";
231
+ "pda": {
232
+ "seeds": [
197
233
  {
198
- kind: 'const';
199
- value: [115, 116, 111, 114, 97, 103, 101];
234
+ "kind": "const";
235
+ "value": [
236
+ 115,
237
+ 116,
238
+ 111,
239
+ 114,
240
+ 97,
241
+ 103,
242
+ 101
243
+ ];
200
244
  }
201
245
  ];
202
246
  };
203
247
  },
204
248
  {
205
- name: 'fee';
206
- writable: true;
207
- pda: {
208
- seeds: [
249
+ "name": "fee";
250
+ "writable": true;
251
+ "pda": {
252
+ "seeds": [
209
253
  {
210
- kind: 'const';
211
- value: [102, 101, 101];
254
+ "kind": "const";
255
+ "value": [
256
+ 102,
257
+ 101,
258
+ 101
259
+ ];
212
260
  },
213
261
  {
214
- kind: 'arg';
215
- path: 'unlockerAddress';
262
+ "kind": "arg";
263
+ "path": "projectId";
216
264
  }
217
265
  ];
218
266
  };
219
267
  },
220
268
  {
221
- name: 'authority';
222
- writable: true;
223
- signer: true;
269
+ "name": "authority";
270
+ "writable": true;
271
+ "signer": true;
224
272
  },
225
273
  {
226
- name: 'systemProgram';
227
- address: '11111111111111111111111111111111';
274
+ "name": "systemProgram";
275
+ "address": "11111111111111111111111111111111";
228
276
  }
229
277
  ];
230
- args: [
278
+ "args": [
231
279
  {
232
- name: 'unlockerAddress';
233
- type: 'pubkey';
280
+ "name": "projectId";
281
+ "type": "string";
234
282
  },
235
283
  {
236
- name: 'tokenTransferred';
237
- type: 'u64';
284
+ "name": "tokenTransferred";
285
+ "type": "u64";
238
286
  }
239
287
  ];
240
- returns: 'u64';
288
+ "returns": "u64";
241
289
  },
242
290
  {
243
- name: 'initFeeToken';
244
- discriminator: [29, 135, 230, 71, 198, 116, 59, 38];
245
- accounts: [
291
+ "name": "initFeeToken";
292
+ "discriminator": [
293
+ 29,
294
+ 135,
295
+ 230,
296
+ 71,
297
+ 198,
298
+ 116,
299
+ 59,
300
+ 38
301
+ ];
302
+ "accounts": [
246
303
  {
247
- name: 'storage';
248
- pda: {
249
- seeds: [
304
+ "name": "storage";
305
+ "pda": {
306
+ "seeds": [
250
307
  {
251
- kind: 'const';
252
- value: [115, 116, 111, 114, 97, 103, 101];
308
+ "kind": "const";
309
+ "value": [
310
+ 115,
311
+ 116,
312
+ 111,
313
+ 114,
314
+ 97,
315
+ 103,
316
+ 101
317
+ ];
253
318
  }
254
319
  ];
255
320
  };
256
321
  },
257
322
  {
258
- name: 'vault';
259
- writable: true;
260
- optional: true;
261
- pda: {
262
- seeds: [
323
+ "name": "vault";
324
+ "writable": true;
325
+ "optional": true;
326
+ "pda": {
327
+ "seeds": [
263
328
  {
264
- kind: 'const';
265
- value: [118, 97, 117, 108, 116];
329
+ "kind": "const";
330
+ "value": [
331
+ 118,
332
+ 97,
333
+ 117,
334
+ 108,
335
+ 116
336
+ ];
266
337
  },
267
338
  {
268
- kind: 'arg';
269
- path: 'feeToken';
339
+ "kind": "arg";
340
+ "path": "feeToken";
270
341
  }
271
342
  ];
272
343
  };
273
344
  },
274
345
  {
275
- name: 'tokenMint';
276
- optional: true;
346
+ "name": "tokenMint";
347
+ "optional": true;
277
348
  },
278
349
  {
279
- name: 'authority';
280
- writable: true;
281
- signer: true;
350
+ "name": "authority";
351
+ "writable": true;
352
+ "signer": true;
282
353
  },
283
354
  {
284
- name: 'tokenProgram';
355
+ "name": "tokenProgram";
285
356
  },
286
357
  {
287
- name: 'systemProgram';
288
- address: '11111111111111111111111111111111';
358
+ "name": "systemProgram";
359
+ "address": "11111111111111111111111111111111";
289
360
  }
290
361
  ];
291
- args: [
362
+ "args": [
292
363
  {
293
- name: 'feeToken';
294
- type: 'pubkey';
364
+ "name": "feeToken";
365
+ "type": "pubkey";
295
366
  }
296
367
  ];
297
368
  },
298
369
  {
299
- name: 'initialize';
300
- discriminator: [175, 175, 109, 31, 13, 152, 155, 237];
301
- accounts: [
302
- {
303
- name: 'storage';
304
- writable: true;
305
- pda: {
306
- seeds: [
370
+ "name": "initialize";
371
+ "discriminator": [
372
+ 175,
373
+ 175,
374
+ 109,
375
+ 31,
376
+ 13,
377
+ 152,
378
+ 155,
379
+ 237
380
+ ];
381
+ "accounts": [
382
+ {
383
+ "name": "storage";
384
+ "writable": true;
385
+ "pda": {
386
+ "seeds": [
307
387
  {
308
- kind: 'const';
309
- value: [115, 116, 111, 114, 97, 103, 101];
388
+ "kind": "const";
389
+ "value": [
390
+ 115,
391
+ 116,
392
+ 111,
393
+ 114,
394
+ 97,
395
+ 103,
396
+ 101
397
+ ];
310
398
  }
311
399
  ];
312
400
  };
313
401
  },
314
402
  {
315
- name: 'authority';
316
- writable: true;
317
- signer: true;
403
+ "name": "authority";
404
+ "writable": true;
405
+ "signer": true;
318
406
  },
319
407
  {
320
- name: 'systemProgram';
321
- address: '11111111111111111111111111111111';
408
+ "name": "systemProgram";
409
+ "address": "11111111111111111111111111111111";
322
410
  }
323
411
  ];
324
- args: [];
412
+ "args": [];
325
413
  },
326
414
  {
327
- name: 'renounceOwnership';
328
- discriminator: [19, 143, 91, 79, 34, 168, 174, 125];
329
- accounts: [
330
- {
331
- name: 'storage';
332
- writable: true;
333
- pda: {
334
- seeds: [
415
+ "name": "renounceOwnership";
416
+ "discriminator": [
417
+ 19,
418
+ 143,
419
+ 91,
420
+ 79,
421
+ 34,
422
+ 168,
423
+ 174,
424
+ 125
425
+ ];
426
+ "accounts": [
427
+ {
428
+ "name": "storage";
429
+ "writable": true;
430
+ "pda": {
431
+ "seeds": [
335
432
  {
336
- kind: 'const';
337
- value: [115, 116, 111, 114, 97, 103, 101];
433
+ "kind": "const";
434
+ "value": [
435
+ 115,
436
+ 116,
437
+ 111,
438
+ 114,
439
+ 97,
440
+ 103,
441
+ 101
442
+ ];
338
443
  }
339
444
  ];
340
445
  };
341
446
  },
342
447
  {
343
- name: 'authority';
344
- writable: true;
345
- signer: true;
448
+ "name": "authority";
449
+ "writable": true;
450
+ "signer": true;
346
451
  },
347
452
  {
348
- name: 'systemProgram';
349
- address: '11111111111111111111111111111111';
453
+ "name": "systemProgram";
454
+ "address": "11111111111111111111111111111111";
350
455
  }
351
456
  ];
352
- args: [];
457
+ "args": [];
353
458
  },
354
459
  {
355
- name: 'setCustomFeeBips';
356
- discriminator: [97, 137, 188, 218, 237, 225, 78, 39];
357
- accounts: [
358
- {
359
- name: 'storage';
360
- writable: true;
361
- pda: {
362
- seeds: [
460
+ "name": "setCustomFeeBips";
461
+ "discriminator": [
462
+ 97,
463
+ 137,
464
+ 188,
465
+ 218,
466
+ 237,
467
+ 225,
468
+ 78,
469
+ 39
470
+ ];
471
+ "accounts": [
472
+ {
473
+ "name": "storage";
474
+ "writable": true;
475
+ "pda": {
476
+ "seeds": [
363
477
  {
364
- kind: 'const';
365
- value: [115, 116, 111, 114, 97, 103, 101];
478
+ "kind": "const";
479
+ "value": [
480
+ 115,
481
+ 116,
482
+ 111,
483
+ 114,
484
+ 97,
485
+ 103,
486
+ 101
487
+ ];
366
488
  }
367
489
  ];
368
490
  };
369
491
  },
370
492
  {
371
- name: 'fee';
372
- writable: true;
373
- pda: {
374
- seeds: [
493
+ "name": "fee";
494
+ "writable": true;
495
+ "pda": {
496
+ "seeds": [
375
497
  {
376
- kind: 'const';
377
- value: [102, 101, 101];
498
+ "kind": "const";
499
+ "value": [
500
+ 102,
501
+ 101,
502
+ 101
503
+ ];
378
504
  },
379
505
  {
380
- kind: 'arg';
381
- path: 'unlockerAddress';
506
+ "kind": "arg";
507
+ "path": "projectId";
382
508
  }
383
509
  ];
384
510
  };
385
511
  },
386
512
  {
387
- name: 'authority';
388
- writable: true;
389
- signer: true;
513
+ "name": "authority";
514
+ "writable": true;
515
+ "signer": true;
390
516
  },
391
517
  {
392
- name: 'systemProgram';
393
- address: '11111111111111111111111111111111';
518
+ "name": "systemProgram";
519
+ "address": "11111111111111111111111111111111";
394
520
  }
395
521
  ];
396
- args: [
522
+ "args": [
397
523
  {
398
- name: 'unlockerAddress';
399
- type: 'pubkey';
524
+ "name": "projectId";
525
+ "type": "string";
400
526
  },
401
527
  {
402
- name: 'bips';
403
- type: 'u64';
528
+ "name": "bips";
529
+ "type": "u64";
404
530
  }
405
531
  ];
406
532
  },
407
533
  {
408
- name: 'setCustomFeeFixed';
409
- discriminator: [105, 246, 45, 208, 238, 7, 174, 190];
410
- accounts: [
411
- {
412
- name: 'storage';
413
- writable: true;
414
- pda: {
415
- seeds: [
534
+ "name": "setCustomFeeFixed";
535
+ "discriminator": [
536
+ 105,
537
+ 246,
538
+ 45,
539
+ 208,
540
+ 238,
541
+ 7,
542
+ 174,
543
+ 190
544
+ ];
545
+ "accounts": [
546
+ {
547
+ "name": "storage";
548
+ "writable": true;
549
+ "pda": {
550
+ "seeds": [
416
551
  {
417
- kind: 'const';
418
- value: [115, 116, 111, 114, 97, 103, 101];
552
+ "kind": "const";
553
+ "value": [
554
+ 115,
555
+ 116,
556
+ 111,
557
+ 114,
558
+ 97,
559
+ 103,
560
+ 101
561
+ ];
419
562
  }
420
563
  ];
421
564
  };
422
565
  },
423
566
  {
424
- name: 'fee';
425
- writable: true;
426
- pda: {
427
- seeds: [
567
+ "name": "fee";
568
+ "writable": true;
569
+ "pda": {
570
+ "seeds": [
428
571
  {
429
- kind: 'const';
430
- value: [102, 101, 101];
572
+ "kind": "const";
573
+ "value": [
574
+ 102,
575
+ 101,
576
+ 101
577
+ ];
431
578
  },
432
579
  {
433
- kind: 'arg';
434
- path: 'unlockerAddress';
580
+ "kind": "arg";
581
+ "path": "projectId";
435
582
  }
436
583
  ];
437
584
  };
438
585
  },
439
586
  {
440
- name: 'authority';
441
- writable: true;
442
- signer: true;
587
+ "name": "authority";
588
+ "writable": true;
589
+ "signer": true;
443
590
  },
444
591
  {
445
- name: 'systemProgram';
446
- address: '11111111111111111111111111111111';
592
+ "name": "systemProgram";
593
+ "address": "11111111111111111111111111111111";
447
594
  }
448
595
  ];
449
- args: [
596
+ "args": [
450
597
  {
451
- name: 'unlockerAddress';
452
- type: 'pubkey';
598
+ "name": "projectId";
599
+ "type": "string";
453
600
  },
454
601
  {
455
- name: 'fixedFee';
456
- type: 'u64';
602
+ "name": "fixedFee";
603
+ "type": "u64";
457
604
  }
458
605
  ];
459
606
  },
460
607
  {
461
- name: 'setDefaultFee';
462
- discriminator: [150, 137, 197, 111, 176, 227, 201, 110];
463
- accounts: [
464
- {
465
- name: 'storage';
466
- writable: true;
467
- pda: {
468
- seeds: [
608
+ "name": "setDefaultFee";
609
+ "discriminator": [
610
+ 150,
611
+ 137,
612
+ 197,
613
+ 111,
614
+ 176,
615
+ 227,
616
+ 201,
617
+ 110
618
+ ];
619
+ "accounts": [
620
+ {
621
+ "name": "storage";
622
+ "writable": true;
623
+ "pda": {
624
+ "seeds": [
469
625
  {
470
- kind: 'const';
471
- value: [115, 116, 111, 114, 97, 103, 101];
626
+ "kind": "const";
627
+ "value": [
628
+ 115,
629
+ 116,
630
+ 111,
631
+ 114,
632
+ 97,
633
+ 103,
634
+ 101
635
+ ];
472
636
  }
473
637
  ];
474
638
  };
475
639
  },
476
640
  {
477
- name: 'authority';
478
- writable: true;
479
- signer: true;
641
+ "name": "authority";
642
+ "writable": true;
643
+ "signer": true;
480
644
  },
481
645
  {
482
- name: 'systemProgram';
483
- address: '11111111111111111111111111111111';
646
+ "name": "systemProgram";
647
+ "address": "11111111111111111111111111111111";
484
648
  }
485
649
  ];
486
- args: [
650
+ "args": [
487
651
  {
488
- name: 'bips';
489
- type: 'u64';
652
+ "name": "bips";
653
+ "type": "u64";
490
654
  }
491
655
  ];
492
656
  },
493
657
  {
494
- name: 'transferOwnership';
495
- discriminator: [65, 177, 215, 73, 53, 45, 99, 47];
496
- accounts: [
497
- {
498
- name: 'storage';
499
- writable: true;
500
- pda: {
501
- seeds: [
658
+ "name": "transferOwnership";
659
+ "discriminator": [
660
+ 65,
661
+ 177,
662
+ 215,
663
+ 73,
664
+ 53,
665
+ 45,
666
+ 99,
667
+ 47
668
+ ];
669
+ "accounts": [
670
+ {
671
+ "name": "storage";
672
+ "writable": true;
673
+ "pda": {
674
+ "seeds": [
502
675
  {
503
- kind: 'const';
504
- value: [115, 116, 111, 114, 97, 103, 101];
676
+ "kind": "const";
677
+ "value": [
678
+ 115,
679
+ 116,
680
+ 111,
681
+ 114,
682
+ 97,
683
+ 103,
684
+ 101
685
+ ];
505
686
  }
506
687
  ];
507
688
  };
508
689
  },
509
690
  {
510
- name: 'authority';
511
- writable: true;
512
- signer: true;
691
+ "name": "authority";
692
+ "writable": true;
693
+ "signer": true;
513
694
  },
514
695
  {
515
- name: 'systemProgram';
516
- address: '11111111111111111111111111111111';
696
+ "name": "systemProgram";
697
+ "address": "11111111111111111111111111111111";
517
698
  }
518
699
  ];
519
- args: [
700
+ "args": [
520
701
  {
521
- name: 'newOwner';
522
- type: 'pubkey';
702
+ "name": "newOwner";
703
+ "type": "pubkey";
523
704
  }
524
705
  ];
525
706
  },
526
707
  {
527
- name: 'withdraw';
528
- discriminator: [183, 18, 70, 156, 148, 109, 161, 34];
529
- accounts: [
708
+ "name": "withdraw";
709
+ "discriminator": [
710
+ 183,
711
+ 18,
712
+ 70,
713
+ 156,
714
+ 148,
715
+ 109,
716
+ 161,
717
+ 34
718
+ ];
719
+ "accounts": [
530
720
  {
531
- name: 'authority';
532
- writable: true;
533
- signer: true;
721
+ "name": "authority";
722
+ "writable": true;
723
+ "signer": true;
534
724
  },
535
725
  {
536
- name: 'storage';
537
- writable: true;
538
- pda: {
539
- seeds: [
726
+ "name": "storage";
727
+ "writable": true;
728
+ "pda": {
729
+ "seeds": [
540
730
  {
541
- kind: 'const';
542
- value: [115, 116, 111, 114, 97, 103, 101];
731
+ "kind": "const";
732
+ "value": [
733
+ 115,
734
+ 116,
735
+ 111,
736
+ 114,
737
+ 97,
738
+ 103,
739
+ 101
740
+ ];
543
741
  }
544
742
  ];
545
743
  };
546
744
  },
547
745
  {
548
- name: 'vault';
549
- writable: true;
550
- optional: true;
551
- pda: {
552
- seeds: [
746
+ "name": "vault";
747
+ "writable": true;
748
+ "optional": true;
749
+ "pda": {
750
+ "seeds": [
553
751
  {
554
- kind: 'const';
555
- value: [118, 97, 117, 108, 116];
752
+ "kind": "const";
753
+ "value": [
754
+ 118,
755
+ 97,
756
+ 117,
757
+ 108,
758
+ 116
759
+ ];
556
760
  },
557
761
  {
558
- kind: 'arg';
559
- path: 'feeToken';
762
+ "kind": "arg";
763
+ "path": "feeToken";
560
764
  }
561
765
  ];
562
766
  };
563
767
  },
564
768
  {
565
- name: 'authorityAta';
566
- writable: true;
567
- optional: true;
568
- pda: {
569
- seeds: [
769
+ "name": "authorityAta";
770
+ "writable": true;
771
+ "optional": true;
772
+ "pda": {
773
+ "seeds": [
570
774
  {
571
- kind: 'account';
572
- path: 'authority';
775
+ "kind": "account";
776
+ "path": "authority";
573
777
  },
574
778
  {
575
- kind: 'const';
576
- value: [
779
+ "kind": "const";
780
+ "value": [
577
781
  6,
578
782
  221,
579
783
  246,
@@ -609,13 +813,13 @@ export type FeeCollector = {
609
813
  ];
610
814
  },
611
815
  {
612
- kind: 'account';
613
- path: 'tokenMint';
816
+ "kind": "account";
817
+ "path": "tokenMint";
614
818
  }
615
819
  ];
616
- program: {
617
- kind: 'const';
618
- value: [
820
+ "program": {
821
+ "kind": "const";
822
+ "value": [
619
823
  140,
620
824
  151,
621
825
  37,
@@ -653,148 +857,193 @@ export type FeeCollector = {
653
857
  };
654
858
  },
655
859
  {
656
- name: 'tokenMint';
657
- optional: true;
860
+ "name": "tokenMint";
861
+ "optional": true;
658
862
  },
659
863
  {
660
- name: 'systemProgram';
661
- address: '11111111111111111111111111111111';
864
+ "name": "systemProgram";
865
+ "address": "11111111111111111111111111111111";
662
866
  },
663
867
  {
664
- name: 'tokenProgram';
868
+ "name": "tokenProgram";
665
869
  },
666
870
  {
667
- name: 'associatedTokenProgram';
668
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
871
+ "name": "associatedTokenProgram";
872
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
669
873
  }
670
874
  ];
671
- args: [
875
+ "args": [
672
876
  {
673
- name: 'feeToken';
674
- type: 'pubkey';
877
+ "name": "feeToken";
878
+ "type": "pubkey";
675
879
  }
676
880
  ];
677
881
  }
678
882
  ];
679
- accounts: [
883
+ "accounts": [
680
884
  {
681
- name: 'fee';
682
- discriminator: [24, 55, 150, 250, 168, 27, 101, 178];
885
+ "name": "fee";
886
+ "discriminator": [
887
+ 24,
888
+ 55,
889
+ 150,
890
+ 250,
891
+ 168,
892
+ 27,
893
+ 101,
894
+ 178
895
+ ];
683
896
  },
684
897
  {
685
- name: 'feeCollectorStorage';
686
- discriminator: [204, 100, 40, 33, 80, 124, 161, 126];
898
+ "name": "feeCollectorStorage";
899
+ "discriminator": [
900
+ 204,
901
+ 100,
902
+ 40,
903
+ 33,
904
+ 80,
905
+ 124,
906
+ 161,
907
+ 126
908
+ ];
687
909
  }
688
910
  ];
689
- events: [
911
+ "events": [
690
912
  {
691
- name: 'customFeeSetBips';
692
- discriminator: [143, 98, 8, 161, 227, 53, 220, 12];
913
+ "name": "customFeeSetBips";
914
+ "discriminator": [
915
+ 143,
916
+ 98,
917
+ 8,
918
+ 161,
919
+ 227,
920
+ 53,
921
+ 220,
922
+ 12
923
+ ];
693
924
  },
694
925
  {
695
- name: 'customFeeSetFixed';
696
- discriminator: [85, 168, 106, 241, 69, 235, 220, 95];
926
+ "name": "customFeeSetFixed";
927
+ "discriminator": [
928
+ 85,
929
+ 168,
930
+ 106,
931
+ 241,
932
+ 69,
933
+ 235,
934
+ 220,
935
+ 95
936
+ ];
697
937
  },
698
938
  {
699
- name: 'defaultFeeSet';
700
- discriminator: [6, 114, 243, 225, 246, 24, 178, 87];
939
+ "name": "defaultFeeSet";
940
+ "discriminator": [
941
+ 6,
942
+ 114,
943
+ 243,
944
+ 225,
945
+ 246,
946
+ 24,
947
+ 178,
948
+ 87
949
+ ];
701
950
  }
702
951
  ];
703
- errors: [
952
+ "errors": [
704
953
  {
705
- code: 6000;
706
- name: 'alreadyInitialized';
707
- msg: 'alreadyInitialized';
954
+ "code": 6000;
955
+ "name": "alreadyInitialized";
956
+ "msg": "alreadyInitialized";
708
957
  },
709
958
  {
710
- code: 6001;
711
- name: 'notOwner';
712
- msg: 'notOwner';
959
+ "code": 6001;
960
+ "name": "notOwner";
961
+ "msg": "notOwner";
713
962
  },
714
963
  {
715
- code: 6002;
716
- name: 'feesTooHigh';
717
- msg: 'feesTooHigh';
964
+ "code": 6002;
965
+ "name": "feesTooHigh";
966
+ "msg": "feesTooHigh";
718
967
  },
719
968
  {
720
- code: 6003;
721
- name: 'invalidCallData';
722
- msg: 'invalidCallData';
969
+ "code": 6003;
970
+ "name": "invalidCallData";
971
+ "msg": "invalidCallData";
723
972
  }
724
973
  ];
725
- types: [
974
+ "types": [
726
975
  {
727
- name: 'customFeeSetBips';
728
- type: {
729
- kind: 'struct';
730
- fields: [
976
+ "name": "customFeeSetBips";
977
+ "type": {
978
+ "kind": "struct";
979
+ "fields": [
731
980
  {
732
- name: 'bips';
733
- type: 'u64';
981
+ "name": "bips";
982
+ "type": "u64";
734
983
  },
735
984
  {
736
- name: 'unlockerAddress';
737
- type: 'pubkey';
985
+ "name": "projectId";
986
+ "type": "string";
738
987
  }
739
988
  ];
740
989
  };
741
990
  },
742
991
  {
743
- name: 'customFeeSetFixed';
744
- type: {
745
- kind: 'struct';
746
- fields: [
992
+ "name": "customFeeSetFixed";
993
+ "type": {
994
+ "kind": "struct";
995
+ "fields": [
747
996
  {
748
- name: 'fixedFee';
749
- type: 'u64';
997
+ "name": "fixedFee";
998
+ "type": "u64";
750
999
  },
751
1000
  {
752
- name: 'unlockerAddress';
753
- type: 'pubkey';
1001
+ "name": "projectId";
1002
+ "type": "string";
754
1003
  }
755
1004
  ];
756
1005
  };
757
1006
  },
758
1007
  {
759
- name: 'defaultFeeSet';
760
- type: {
761
- kind: 'struct';
762
- fields: [
1008
+ "name": "defaultFeeSet";
1009
+ "type": {
1010
+ "kind": "struct";
1011
+ "fields": [
763
1012
  {
764
- name: 'bips';
765
- type: 'u64';
1013
+ "name": "bips";
1014
+ "type": "u64";
766
1015
  }
767
1016
  ];
768
1017
  };
769
1018
  },
770
1019
  {
771
- name: 'fee';
772
- type: {
773
- kind: 'struct';
774
- fields: [
1020
+ "name": "fee";
1021
+ "type": {
1022
+ "kind": "struct";
1023
+ "fields": [
775
1024
  {
776
- name: 'bips';
777
- type: 'u64';
1025
+ "name": "bips";
1026
+ "type": "u64";
778
1027
  },
779
1028
  {
780
- name: 'fixed';
781
- type: 'u64';
1029
+ "name": "fixed";
1030
+ "type": "u64";
782
1031
  }
783
1032
  ];
784
1033
  };
785
1034
  },
786
1035
  {
787
- name: 'feeCollectorStorage';
788
- type: {
789
- kind: 'struct';
790
- fields: [
1036
+ "name": "feeCollectorStorage";
1037
+ "type": {
1038
+ "kind": "struct";
1039
+ "fields": [
791
1040
  {
792
- name: 'owner';
793
- type: 'pubkey';
1041
+ "name": "owner";
1042
+ "type": "pubkey";
794
1043
  },
795
1044
  {
796
- name: 'defaultFeesBips';
797
- type: 'u64';
1045
+ "name": "defaultFeesBips";
1046
+ "type": "u64";
798
1047
  }
799
1048
  ];
800
1049
  };