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