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