@sign-global/tokentable 0.4.1-beta.4 → 0.4.1-beta.6

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 (74) hide show
  1. package/dist/cjs/airdrop/SignatureAirdropClient.d.ts +2 -1
  2. package/dist/cjs/airdrop/SignatureAirdropClient.js +28 -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 +7 -1
  12. package/dist/cjs/airdrop/contracts/solana/AirdropSignatureClient.js +24 -13
  13. package/dist/cjs/airdrop/contracts/solana/AirdropSignatureClient.js.map +1 -1
  14. package/dist/cjs/airdrop/contracts/solana/FeeCollectorClient.d.ts +2 -1
  15. package/dist/cjs/airdrop/contracts/solana/FeeCollectorClient.js +12 -3
  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/SolanaContractClient.d.ts +2 -1
  21. package/dist/cjs/airdrop/contracts/solana/SolanaContractClient.js +10 -4
  22. package/dist/cjs/airdrop/contracts/solana/SolanaContractClient.js.map +1 -1
  23. package/dist/cjs/airdrop/contracts/solana/fee_collector.d.ts +665 -349
  24. package/dist/cjs/airdrop/contracts/solana/fee_collector.json +79 -12
  25. package/dist/cjs/airdrop/contracts/solana/fungible_token_distributor_solana.d.ts +994 -504
  26. package/dist/cjs/airdrop/contracts/solana/fungible_token_distributor_solana.json +58 -3
  27. package/dist/cjs/airdrop/types/index.d.ts +4 -3
  28. package/dist/cjs/airdrop/types/index.js.map +1 -1
  29. package/dist/cjs/wallets/providers/evm/EvmWallet.js +27 -17
  30. package/dist/cjs/wallets/providers/evm/EvmWallet.js.map +1 -1
  31. package/dist/esm/airdrop/SignatureAirdropClient.d.ts +2 -1
  32. package/dist/esm/airdrop/SignatureAirdropClient.js +28 -15
  33. package/dist/esm/airdrop/SignatureAirdropClient.js.map +1 -1
  34. package/dist/esm/airdrop/common/index.d.ts +35 -0
  35. package/dist/esm/airdrop/constants/chain-config.d.ts +36 -0
  36. package/dist/esm/airdrop/constants/chain-config.js +6 -1
  37. package/dist/esm/airdrop/constants/chain-config.js.map +1 -1
  38. package/dist/esm/airdrop/contracts/evm/SignatureAirdropService.d.ts +1 -1
  39. package/dist/esm/airdrop/contracts/evm/SignatureAirdropService.js +6 -1
  40. package/dist/esm/airdrop/contracts/evm/SignatureAirdropService.js.map +1 -1
  41. package/dist/esm/airdrop/contracts/solana/AirdropSignatureClient.d.ts +7 -1
  42. package/dist/esm/airdrop/contracts/solana/AirdropSignatureClient.js +24 -13
  43. package/dist/esm/airdrop/contracts/solana/AirdropSignatureClient.js.map +1 -1
  44. package/dist/esm/airdrop/contracts/solana/FeeCollectorClient.d.ts +2 -1
  45. package/dist/esm/airdrop/contracts/solana/FeeCollectorClient.js +12 -3
  46. package/dist/esm/airdrop/contracts/solana/FeeCollectorClient.js.map +1 -1
  47. package/dist/esm/airdrop/contracts/solana/SignatureAirdropService.d.ts +2 -2
  48. package/dist/esm/airdrop/contracts/solana/SignatureAirdropService.js +3 -9
  49. package/dist/esm/airdrop/contracts/solana/SignatureAirdropService.js.map +1 -1
  50. package/dist/esm/airdrop/contracts/solana/SolanaContractClient.d.ts +2 -1
  51. package/dist/esm/airdrop/contracts/solana/SolanaContractClient.js +10 -4
  52. package/dist/esm/airdrop/contracts/solana/SolanaContractClient.js.map +1 -1
  53. package/dist/esm/airdrop/contracts/solana/fee_collector.d.ts +665 -349
  54. package/dist/esm/airdrop/contracts/solana/fee_collector.json +79 -12
  55. package/dist/esm/airdrop/contracts/solana/fungible_token_distributor_solana.d.ts +994 -504
  56. package/dist/esm/airdrop/contracts/solana/fungible_token_distributor_solana.json +58 -3
  57. package/dist/esm/airdrop/types/index.d.ts +4 -3
  58. package/dist/esm/airdrop/types/index.js.map +1 -1
  59. package/dist/esm/wallets/providers/evm/EvmWallet.js +27 -17
  60. package/dist/esm/wallets/providers/evm/EvmWallet.js.map +1 -1
  61. package/package.json +1 -1
  62. package/src/airdrop/SignatureAirdropClient.ts +40 -23
  63. package/src/airdrop/constants/chain-config.ts +7 -2
  64. package/src/airdrop/contracts/evm/SignatureAirdropService.ts +6 -1
  65. package/src/airdrop/contracts/solana/AirdropSignatureClient.ts +28 -27
  66. package/src/airdrop/contracts/solana/FeeCollectorClient.ts +12 -3
  67. package/src/airdrop/contracts/solana/SignatureAirdropService.ts +4 -10
  68. package/src/airdrop/contracts/solana/SolanaContractClient.ts +19 -11
  69. package/src/airdrop/contracts/solana/fee_collector.json +79 -12
  70. package/src/airdrop/contracts/solana/fee_collector.ts +743 -427
  71. package/src/airdrop/contracts/solana/fungible_token_distributor_solana.json +58 -3
  72. package/src/airdrop/contracts/solana/fungible_token_distributor_solana.ts +1104 -614
  73. package/src/airdrop/types/index.ts +4 -2
  74. package/src/wallets/providers/evm/EvmWallet.ts +27 -19
@@ -5,67 +5,89 @@
5
5
  * IDL can be found at `target/idl/fungible_token_distributor_solana.json`.
6
6
  */
7
7
  export type FungibleTokenDistributorSolana = {
8
- address: 'A2oJtZTbQLBog867bBQeqGhDiZ7MbCcGQLptyK5CGRi8';
9
- metadata: {
10
- name: 'fungibleTokenDistributorSolana';
11
- version: '0.1.0';
12
- spec: '0.1.0';
13
- description: 'Created with Anchor';
8
+ "address": "FCkSnf5Qd5Jva3ZdjFNGyZNhpCxmvjikXDkpWgE1vD3R";
9
+ "metadata": {
10
+ "name": "fungibleTokenDistributorSolana";
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: 'claim';
18
- discriminator: [62, 198, 214, 193, 213, 159, 108, 210];
19
- accounts: [
17
+ "name": "claim";
18
+ "discriminator": [
19
+ 62,
20
+ 198,
21
+ 214,
22
+ 193,
23
+ 213,
24
+ 159,
25
+ 108,
26
+ 210
27
+ ];
28
+ "accounts": [
20
29
  {
21
- name: 'authority';
22
- writable: true;
23
- signer: true;
30
+ "name": "authority";
31
+ "writable": true;
32
+ "signer": true;
24
33
  },
25
34
  {
26
- name: 'airdrop';
27
- writable: true;
28
- pda: {
29
- seeds: [
35
+ "name": "airdrop";
36
+ "pda": {
37
+ "seeds": [
30
38
  {
31
- kind: 'const';
32
- value: [97, 105, 114, 100, 114, 111, 112];
39
+ "kind": "const";
40
+ "value": [
41
+ 97,
42
+ 105,
43
+ 114,
44
+ 100,
45
+ 114,
46
+ 111,
47
+ 112
48
+ ];
33
49
  },
34
50
  {
35
- kind: 'arg';
36
- path: 'projectId';
51
+ "kind": "arg";
52
+ "path": "projectId";
37
53
  }
38
54
  ];
39
55
  };
40
56
  },
41
57
  {
42
- name: 'vault';
43
- writable: true;
44
- pda: {
45
- seeds: [
58
+ "name": "vault";
59
+ "writable": true;
60
+ "pda": {
61
+ "seeds": [
46
62
  {
47
- kind: 'const';
48
- value: [118, 97, 117, 108, 116];
63
+ "kind": "const";
64
+ "value": [
65
+ 118,
66
+ 97,
67
+ 117,
68
+ 108,
69
+ 116
70
+ ];
49
71
  },
50
72
  {
51
- kind: 'arg';
52
- path: 'projectId';
73
+ "kind": "account";
74
+ "path": "airdrop";
53
75
  }
54
76
  ];
55
77
  };
56
78
  },
57
79
  {
58
- name: 'authorityAta';
59
- writable: true;
60
- pda: {
61
- seeds: [
80
+ "name": "authorityAta";
81
+ "writable": true;
82
+ "pda": {
83
+ "seeds": [
62
84
  {
63
- kind: 'account';
64
- path: 'authority';
85
+ "kind": "account";
86
+ "path": "authority";
65
87
  },
66
88
  {
67
- kind: 'const';
68
- value: [
89
+ "kind": "const";
90
+ "value": [
69
91
  6,
70
92
  221,
71
93
  246,
@@ -101,13 +123,13 @@ export type FungibleTokenDistributorSolana = {
101
123
  ];
102
124
  },
103
125
  {
104
- kind: 'account';
105
- path: 'tokenMint';
126
+ "kind": "account";
127
+ "path": "tokenMint";
106
128
  }
107
129
  ];
108
- program: {
109
- kind: 'const';
110
- value: [
130
+ "program": {
131
+ "kind": "const";
132
+ "value": [
111
133
  140,
112
134
  151,
113
135
  37,
@@ -145,591 +167,970 @@ export type FungibleTokenDistributorSolana = {
145
167
  };
146
168
  },
147
169
  {
148
- name: 'authorityFeeAta';
149
- writable: true;
150
- optional: true;
170
+ "name": "authorityFeeAta";
171
+ "writable": true;
172
+ "optional": true;
151
173
  },
152
174
  {
153
- name: 'claim';
154
- writable: true;
155
- pda: {
156
- seeds: [
175
+ "name": "claim";
176
+ "writable": true;
177
+ "pda": {
178
+ "seeds": [
157
179
  {
158
- kind: 'const';
159
- value: [99, 108, 97, 105, 109];
180
+ "kind": "const";
181
+ "value": [
182
+ 99,
183
+ 108,
184
+ 97,
185
+ 105,
186
+ 109
187
+ ];
160
188
  },
161
189
  {
162
- kind: 'arg';
163
- path: 'projectId';
190
+ "kind": "account";
191
+ "path": "airdrop";
164
192
  },
165
193
  {
166
- kind: 'arg';
167
- path: 'claimId';
194
+ "kind": "arg";
195
+ "path": "claimId";
168
196
  }
169
197
  ];
170
198
  };
171
199
  },
172
200
  {
173
- name: 'tokenMint';
201
+ "name": "tokenMint";
174
202
  },
175
203
  {
176
- name: 'feeCollectorStorage';
177
- writable: true;
178
- optional: true;
204
+ "name": "feeCollectorStorage";
205
+ "writable": true;
206
+ "optional": true;
179
207
  },
180
208
  {
181
- name: 'feeCollectorVault';
182
- writable: true;
183
- optional: true;
209
+ "name": "feeCollectorVault";
210
+ "writable": true;
211
+ "optional": true;
184
212
  },
185
213
  {
186
- name: 'feeCollector';
187
- optional: true;
188
- address: 'BiSXnuUr1HisEsAVd9DjYpthjLhG286ehYQsABkMMuJq';
214
+ "name": "feeCollector";
215
+ "optional": true;
216
+ "address": "4dfP4CMvznzUuuYLhybXy71zasrhtjrFkChSFjtqS3on";
189
217
  },
190
218
  {
191
- name: 'userFee';
192
- writable: true;
219
+ "name": "feeTokenMint";
220
+ "writable": true;
221
+ "optional": true;
193
222
  },
194
223
  {
195
- name: 'systemProgram';
196
- address: '11111111111111111111111111111111';
224
+ "name": "fee";
225
+ "writable": true;
197
226
  },
198
227
  {
199
- name: 'tokenProgram';
228
+ "name": "systemProgram";
229
+ "address": "11111111111111111111111111111111";
200
230
  },
201
231
  {
202
- name: 'associatedTokenProgram';
203
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
232
+ "name": "tokenProgram";
204
233
  },
205
234
  {
206
- name: 'ixSysvar';
207
- docs: [
208
- 'the supplied Sysvar could be anything else.',
209
- 'The Instruction Sysvar has not been implemented',
210
- 'in the Anchor framework yet, so this is the safe approach.'
235
+ "name": "associatedTokenProgram";
236
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
237
+ },
238
+ {
239
+ "name": "ixSysvar";
240
+ "docs": [
241
+ "the supplied Sysvar could be anything else.",
242
+ "The Instruction Sysvar has not been implemented",
243
+ "in the Anchor framework yet, so this is the safe approach."
211
244
  ];
212
- address: 'Sysvar1nstructions1111111111111111111111111';
245
+ "address": "Sysvar1nstructions1111111111111111111111111";
213
246
  }
214
247
  ];
215
- args: [
248
+ "args": [
216
249
  {
217
- name: 'projectId';
218
- type: 'string';
250
+ "name": "projectId";
251
+ "type": "string";
219
252
  },
220
253
  {
221
- name: 'userClaimId';
222
- type: {
223
- array: ['u8', 32];
254
+ "name": "userClaimId";
255
+ "type": {
256
+ "array": [
257
+ "u8",
258
+ 32
259
+ ];
224
260
  };
225
261
  },
226
262
  {
227
- name: 'recipient';
228
- type: 'pubkey';
229
- },
230
- {
231
- name: 'group';
232
- type: {
233
- array: ['u8', 32];
263
+ "name": "group";
264
+ "type": {
265
+ "array": [
266
+ "u8",
267
+ 32
268
+ ];
234
269
  };
235
270
  },
236
271
  {
237
- name: 'userClaimData';
238
- type: {
239
- defined: {
240
- name: 'tokenTableFungibleDistributorData';
272
+ "name": "userClaimData";
273
+ "type": {
274
+ "defined": {
275
+ "name": "tokenTableFungibleDistributorData";
241
276
  };
242
277
  };
243
278
  },
244
279
  {
245
- name: 'signature';
246
- type: 'bytes';
280
+ "name": "signature";
281
+ "type": "bytes";
247
282
  }
248
283
  ];
249
284
  },
250
285
  {
251
- name: 'deploy';
252
- discriminator: [67, 36, 143, 118, 36, 164, 92, 217];
253
- accounts: [
254
- {
255
- name: 'config';
256
- writable: true;
257
- pda: {
258
- seeds: [
286
+ "name": "deploy";
287
+ "discriminator": [
288
+ 67,
289
+ 36,
290
+ 143,
291
+ 118,
292
+ 36,
293
+ 164,
294
+ 92,
295
+ 217
296
+ ];
297
+ "accounts": [
298
+ {
299
+ "name": "config";
300
+ "writable": true;
301
+ "pda": {
302
+ "seeds": [
259
303
  {
260
- kind: 'const';
261
- value: [99, 111, 110, 102, 105, 103];
304
+ "kind": "const";
305
+ "value": [
306
+ 99,
307
+ 111,
308
+ 110,
309
+ 102,
310
+ 105,
311
+ 103
312
+ ];
262
313
  }
263
314
  ];
264
315
  };
265
316
  },
266
317
  {
267
- name: 'authority';
268
- writable: true;
269
- signer: true;
318
+ "name": "authority";
319
+ "writable": true;
320
+ "signer": true;
270
321
  },
271
322
  {
272
- name: 'systemProgram';
273
- address: '11111111111111111111111111111111';
323
+ "name": "systemProgram";
324
+ "address": "11111111111111111111111111111111";
274
325
  }
275
326
  ];
276
- args: [];
327
+ "args": [];
277
328
  },
278
329
  {
279
- name: 'deposit';
280
- discriminator: [242, 35, 198, 137, 82, 225, 242, 182];
281
- accounts: [
330
+ "name": "deposit";
331
+ "discriminator": [
332
+ 242,
333
+ 35,
334
+ 198,
335
+ 137,
336
+ 82,
337
+ 225,
338
+ 242,
339
+ 182
340
+ ];
341
+ "accounts": [
282
342
  {
283
- name: 'authority';
284
- writable: true;
285
- signer: true;
343
+ "name": "authority";
344
+ "writable": true;
345
+ "signer": true;
286
346
  },
287
347
  {
288
- name: 'airdrop';
289
- writable: true;
290
- pda: {
291
- seeds: [
348
+ "name": "airdrop";
349
+ "writable": true;
350
+ "pda": {
351
+ "seeds": [
292
352
  {
293
- kind: 'const';
294
- value: [97, 105, 114, 100, 114, 111, 112];
353
+ "kind": "const";
354
+ "value": [
355
+ 97,
356
+ 105,
357
+ 114,
358
+ 100,
359
+ 114,
360
+ 111,
361
+ 112
362
+ ];
295
363
  },
296
364
  {
297
- kind: 'arg';
298
- path: 'projectId';
365
+ "kind": "arg";
366
+ "path": "projectId";
299
367
  }
300
368
  ];
301
369
  };
302
370
  },
303
371
  {
304
- name: 'vault';
305
- writable: true;
306
- pda: {
307
- seeds: [
372
+ "name": "vault";
373
+ "writable": true;
374
+ "pda": {
375
+ "seeds": [
308
376
  {
309
- kind: 'const';
310
- value: [118, 97, 117, 108, 116];
377
+ "kind": "const";
378
+ "value": [
379
+ 118,
380
+ 97,
381
+ 117,
382
+ 108,
383
+ 116
384
+ ];
311
385
  },
312
386
  {
313
- kind: 'arg';
314
- path: 'projectId';
387
+ "kind": "account";
388
+ "path": "airdrop";
315
389
  }
316
390
  ];
317
391
  };
318
392
  },
319
393
  {
320
- name: 'authorityAta';
321
- writable: true;
394
+ "name": "authorityAta";
395
+ "writable": true;
322
396
  },
323
397
  {
324
- name: 'tokenMint';
398
+ "name": "tokenMint";
325
399
  },
326
400
  {
327
- name: 'systemProgram';
328
- address: '11111111111111111111111111111111';
401
+ "name": "systemProgram";
402
+ "address": "11111111111111111111111111111111";
329
403
  },
330
404
  {
331
- name: 'tokenProgram';
405
+ "name": "tokenProgram";
332
406
  },
333
407
  {
334
- name: 'associatedTokenProgram';
335
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
408
+ "name": "associatedTokenProgram";
409
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
336
410
  }
337
411
  ];
338
- args: [
412
+ "args": [
339
413
  {
340
- name: 'projectId';
341
- type: 'string';
414
+ "name": "projectId";
415
+ "type": "string";
342
416
  },
343
417
  {
344
- name: 'amount';
345
- type: 'u64';
418
+ "name": "amount";
419
+ "type": "u64";
346
420
  }
347
421
  ];
348
422
  },
349
423
  {
350
- name: 'encodeHashToBeSigned';
351
- discriminator: [15, 245, 227, 180, 152, 94, 134, 20];
352
- accounts: [];
353
- args: [
354
- {
355
- name: 'userClaimId';
356
- type: {
357
- array: ['u8', 32];
424
+ "name": "encodeHashToBeSigned";
425
+ "discriminator": [
426
+ 15,
427
+ 245,
428
+ 227,
429
+ 180,
430
+ 152,
431
+ 94,
432
+ 134,
433
+ 20
434
+ ];
435
+ "accounts": [];
436
+ "args": [
437
+ {
438
+ "name": "userClaimId";
439
+ "type": {
440
+ "array": [
441
+ "u8",
442
+ 32
443
+ ];
358
444
  };
359
445
  },
360
446
  {
361
- name: 'userClaimData';
362
- type: {
363
- defined: {
364
- name: 'tokenTableFungibleDistributorData';
447
+ "name": "userClaimData";
448
+ "type": {
449
+ "defined": {
450
+ "name": "tokenTableFungibleDistributorData";
365
451
  };
366
452
  };
453
+ },
454
+ {
455
+ "name": "airdrop";
456
+ "type": "pubkey";
367
457
  }
368
458
  ];
369
- returns: {
370
- array: ['u8', 32];
459
+ "returns": {
460
+ "array": [
461
+ "u8",
462
+ 32
463
+ ];
371
464
  };
372
465
  },
373
466
  {
374
- name: 'initialize';
375
- discriminator: [175, 175, 109, 31, 13, 152, 155, 237];
376
- accounts: [
377
- {
378
- name: 'airdrop';
379
- writable: true;
380
- pda: {
381
- seeds: [
467
+ "name": "initialize";
468
+ "discriminator": [
469
+ 175,
470
+ 175,
471
+ 109,
472
+ 31,
473
+ 13,
474
+ 152,
475
+ 155,
476
+ 237
477
+ ];
478
+ "accounts": [
479
+ {
480
+ "name": "airdrop";
481
+ "writable": true;
482
+ "pda": {
483
+ "seeds": [
382
484
  {
383
- kind: 'const';
384
- value: [97, 105, 114, 100, 114, 111, 112];
485
+ "kind": "const";
486
+ "value": [
487
+ 97,
488
+ 105,
489
+ 114,
490
+ 100,
491
+ 114,
492
+ 111,
493
+ 112
494
+ ];
385
495
  },
386
496
  {
387
- kind: 'arg';
388
- path: 'projectId';
497
+ "kind": "arg";
498
+ "path": "projectId";
389
499
  }
390
500
  ];
391
501
  };
392
502
  },
393
503
  {
394
- name: 'authority';
395
- writable: true;
396
- signer: true;
504
+ "name": "feeCollector";
505
+ "optional": true;
506
+ "address": "4dfP4CMvznzUuuYLhybXy71zasrhtjrFkChSFjtqS3on";
507
+ },
508
+ {
509
+ "name": "feeCollectorStorage";
510
+ "optional": true;
511
+ },
512
+ {
513
+ "name": "fee";
514
+ "writable": true;
515
+ "optional": true;
516
+ },
517
+ {
518
+ "name": "authority";
519
+ "writable": true;
520
+ "signer": true;
397
521
  },
398
522
  {
399
- name: 'systemProgram';
400
- address: '11111111111111111111111111111111';
523
+ "name": "systemProgram";
524
+ "address": "11111111111111111111111111111111";
401
525
  }
402
526
  ];
403
- args: [
527
+ "args": [
404
528
  {
405
- name: 'projectId';
406
- type: 'string';
529
+ "name": "projectId";
530
+ "type": "string";
407
531
  },
408
532
  {
409
- name: 'owner';
410
- type: 'pubkey';
533
+ "name": "projectToken";
534
+ "type": "pubkey";
411
535
  },
412
536
  {
413
- name: 'feeCollector';
414
- type: 'pubkey';
537
+ "name": "owner";
538
+ "type": "pubkey";
539
+ },
540
+ {
541
+ "name": "feeCollector";
542
+ "type": "pubkey";
543
+ },
544
+ {
545
+ "name": "initFeeAccount";
546
+ "type": "bool";
415
547
  }
416
548
  ];
417
549
  },
418
550
  {
419
- name: 'setBaseParams';
420
- discriminator: [53, 16, 151, 65, 155, 108, 105, 229];
421
- accounts: [
551
+ "name": "setBaseParams";
552
+ "discriminator": [
553
+ 53,
554
+ 16,
555
+ 151,
556
+ 65,
557
+ 155,
558
+ 108,
559
+ 105,
560
+ 229
561
+ ];
562
+ "accounts": [
422
563
  {
423
- name: 'authority';
424
- writable: true;
425
- signer: true;
564
+ "name": "authority";
565
+ "writable": true;
566
+ "signer": true;
426
567
  },
427
568
  {
428
- name: 'airdrop';
429
- writable: true;
430
- pda: {
431
- seeds: [
569
+ "name": "airdrop";
570
+ "writable": true;
571
+ "pda": {
572
+ "seeds": [
432
573
  {
433
- kind: 'const';
434
- value: [97, 105, 114, 100, 114, 111, 112];
574
+ "kind": "const";
575
+ "value": [
576
+ 97,
577
+ 105,
578
+ 114,
579
+ 100,
580
+ 114,
581
+ 111,
582
+ 112
583
+ ];
435
584
  },
436
585
  {
437
- kind: 'arg';
438
- path: 'projectId';
586
+ "kind": "arg";
587
+ "path": "projectId";
439
588
  }
440
589
  ];
441
590
  };
442
591
  },
443
592
  {
444
- name: 'systemProgram';
445
- address: '11111111111111111111111111111111';
593
+ "name": "systemProgram";
594
+ "address": "11111111111111111111111111111111";
446
595
  }
447
596
  ];
448
- args: [
597
+ "args": [
449
598
  {
450
- name: 'projectId';
451
- type: 'string';
599
+ "name": "projectId";
600
+ "type": "string";
452
601
  },
453
602
  {
454
- name: 'token';
455
- type: 'pubkey';
603
+ "name": "token";
604
+ "type": "pubkey";
456
605
  },
457
606
  {
458
- name: 'startTime';
459
- type: 'u64';
607
+ "name": "startTime";
608
+ "type": "u64";
460
609
  },
461
610
  {
462
- name: 'endTime';
463
- type: 'u64';
611
+ "name": "endTime";
612
+ "type": "u64";
464
613
  },
465
614
  {
466
- name: 'authorizedSigner';
467
- type: 'pubkey';
615
+ "name": "authorizedSigner";
616
+ "type": "pubkey";
468
617
  }
469
618
  ];
470
619
  },
471
620
  {
472
- name: 'setFeeCollector';
473
- discriminator: [143, 46, 10, 113, 121, 157, 245, 166];
474
- accounts: [
621
+ "name": "setFeeCollector";
622
+ "discriminator": [
623
+ 143,
624
+ 46,
625
+ 10,
626
+ 113,
627
+ 121,
628
+ 157,
629
+ 245,
630
+ 166
631
+ ];
632
+ "accounts": [
475
633
  {
476
- name: 'authority';
477
- writable: true;
478
- signer: true;
634
+ "name": "authority";
635
+ "writable": true;
636
+ "signer": true;
479
637
  },
480
638
  {
481
- name: 'config';
482
- pda: {
483
- seeds: [
639
+ "name": "config";
640
+ "pda": {
641
+ "seeds": [
484
642
  {
485
- kind: 'const';
486
- value: [99, 111, 110, 102, 105, 103];
643
+ "kind": "const";
644
+ "value": [
645
+ 99,
646
+ 111,
647
+ 110,
648
+ 102,
649
+ 105,
650
+ 103
651
+ ];
487
652
  }
488
653
  ];
489
654
  };
490
655
  },
491
656
  {
492
- name: 'airdrop';
493
- writable: true;
494
- pda: {
495
- seeds: [
657
+ "name": "airdrop";
658
+ "writable": true;
659
+ "pda": {
660
+ "seeds": [
496
661
  {
497
- kind: 'const';
498
- value: [97, 105, 114, 100, 114, 111, 112];
662
+ "kind": "const";
663
+ "value": [
664
+ 97,
665
+ 105,
666
+ 114,
667
+ 100,
668
+ 114,
669
+ 111,
670
+ 112
671
+ ];
499
672
  },
500
673
  {
501
- kind: 'arg';
502
- path: 'projectId';
674
+ "kind": "arg";
675
+ "path": "projectId";
503
676
  }
504
677
  ];
505
678
  };
506
679
  },
507
680
  {
508
- name: 'systemProgram';
509
- address: '11111111111111111111111111111111';
681
+ "name": "feeCollector";
682
+ "optional": true;
683
+ "address": "4dfP4CMvznzUuuYLhybXy71zasrhtjrFkChSFjtqS3on";
684
+ },
685
+ {
686
+ "name": "feeCollectorStorage";
687
+ "optional": true;
688
+ },
689
+ {
690
+ "name": "fee";
691
+ "writable": true;
692
+ "optional": true;
693
+ },
694
+ {
695
+ "name": "systemProgram";
696
+ "address": "11111111111111111111111111111111";
510
697
  }
511
698
  ];
512
- args: [
699
+ "args": [
513
700
  {
514
- name: 'projectId';
515
- type: 'string';
701
+ "name": "projectId";
702
+ "type": "string";
516
703
  },
517
704
  {
518
- name: 'feeCollector';
519
- type: 'pubkey';
705
+ "name": "feeCollector";
706
+ "type": "pubkey";
707
+ },
708
+ {
709
+ "name": "initFeeAccount";
710
+ "type": "bool";
520
711
  }
521
712
  ];
522
713
  },
523
714
  {
524
- name: 'setFeeToken';
525
- discriminator: [52, 90, 163, 123, 220, 202, 90, 217];
526
- accounts: [
715
+ "name": "setFeeToken";
716
+ "discriminator": [
717
+ 52,
718
+ 90,
719
+ 163,
720
+ 123,
721
+ 220,
722
+ 202,
723
+ 90,
724
+ 217
725
+ ];
726
+ "accounts": [
527
727
  {
528
- name: 'authority';
529
- writable: true;
530
- signer: true;
728
+ "name": "authority";
729
+ "writable": true;
730
+ "signer": true;
531
731
  },
532
732
  {
533
- name: 'config';
534
- pda: {
535
- seeds: [
733
+ "name": "config";
734
+ "pda": {
735
+ "seeds": [
536
736
  {
537
- kind: 'const';
538
- value: [99, 111, 110, 102, 105, 103];
737
+ "kind": "const";
738
+ "value": [
739
+ 99,
740
+ 111,
741
+ 110,
742
+ 102,
743
+ 105,
744
+ 103
745
+ ];
539
746
  }
540
747
  ];
541
748
  };
542
749
  },
543
750
  {
544
- name: 'airdrop';
545
- writable: true;
546
- pda: {
547
- seeds: [
751
+ "name": "airdrop";
752
+ "writable": true;
753
+ "pda": {
754
+ "seeds": [
548
755
  {
549
- kind: 'const';
550
- value: [97, 105, 114, 100, 114, 111, 112];
756
+ "kind": "const";
757
+ "value": [
758
+ 97,
759
+ 105,
760
+ 114,
761
+ 100,
762
+ 114,
763
+ 111,
764
+ 112
765
+ ];
551
766
  },
552
767
  {
553
- kind: 'arg';
554
- path: 'projectId';
768
+ "kind": "arg";
769
+ "path": "projectId";
555
770
  }
556
771
  ];
557
772
  };
558
773
  },
559
774
  {
560
- name: 'systemProgram';
561
- address: '11111111111111111111111111111111';
775
+ "name": "systemProgram";
776
+ "address": "11111111111111111111111111111111";
562
777
  }
563
778
  ];
564
- args: [
779
+ "args": [
565
780
  {
566
- name: 'projectId';
567
- type: 'string';
781
+ "name": "projectId";
782
+ "type": "string";
568
783
  },
569
784
  {
570
- name: 'feeToken';
571
- type: 'pubkey';
785
+ "name": "feeToken";
786
+ "type": "pubkey";
572
787
  }
573
788
  ];
574
789
  },
575
790
  {
576
- name: 'togglePause';
577
- discriminator: [238, 237, 206, 27, 255, 95, 123, 229];
578
- accounts: [
791
+ "name": "togglePause";
792
+ "discriminator": [
793
+ 238,
794
+ 237,
795
+ 206,
796
+ 27,
797
+ 255,
798
+ 95,
799
+ 123,
800
+ 229
801
+ ];
802
+ "accounts": [
579
803
  {
580
- name: 'authority';
581
- writable: true;
582
- signer: true;
804
+ "name": "authority";
805
+ "writable": true;
806
+ "signer": true;
583
807
  },
584
808
  {
585
- name: 'airdrop';
586
- writable: true;
587
- pda: {
588
- seeds: [
809
+ "name": "airdrop";
810
+ "writable": true;
811
+ "pda": {
812
+ "seeds": [
589
813
  {
590
- kind: 'const';
591
- value: [97, 105, 114, 100, 114, 111, 112];
814
+ "kind": "const";
815
+ "value": [
816
+ 97,
817
+ 105,
818
+ 114,
819
+ 100,
820
+ 114,
821
+ 111,
822
+ 112
823
+ ];
592
824
  },
593
825
  {
594
- kind: 'arg';
595
- path: 'projectId';
826
+ "kind": "arg";
827
+ "path": "projectId";
596
828
  }
597
829
  ];
598
830
  };
599
831
  },
600
832
  {
601
- name: 'systemProgram';
602
- address: '11111111111111111111111111111111';
833
+ "name": "systemProgram";
834
+ "address": "11111111111111111111111111111111";
603
835
  }
604
836
  ];
605
- args: [
837
+ "args": [
606
838
  {
607
- name: 'projectId';
608
- type: 'string';
839
+ "name": "projectId";
840
+ "type": "string";
609
841
  }
610
842
  ];
611
843
  },
612
844
  {
613
- name: 'verify';
614
- discriminator: [133, 161, 141, 48, 120, 198, 88, 150];
615
- accounts: [
845
+ "name": "transferOwnership";
846
+ "discriminator": [
847
+ 65,
848
+ 177,
849
+ 215,
850
+ 73,
851
+ 53,
852
+ 45,
853
+ 99,
854
+ 47
855
+ ];
856
+ "accounts": [
616
857
  {
617
- name: 'authority';
618
- writable: true;
619
- signer: true;
858
+ "name": "airdrop";
859
+ "writable": true;
860
+ "pda": {
861
+ "seeds": [
862
+ {
863
+ "kind": "const";
864
+ "value": [
865
+ 97,
866
+ 105,
867
+ 114,
868
+ 100,
869
+ 114,
870
+ 111,
871
+ 112
872
+ ];
873
+ },
874
+ {
875
+ "kind": "arg";
876
+ "path": "projectId";
877
+ }
878
+ ];
879
+ };
880
+ },
881
+ {
882
+ "name": "authority";
883
+ "writable": true;
884
+ "signer": true;
885
+ },
886
+ {
887
+ "name": "newOwner";
888
+ "writable": true;
889
+ "signer": true;
890
+ },
891
+ {
892
+ "name": "systemProgram";
893
+ "address": "11111111111111111111111111111111";
894
+ }
895
+ ];
896
+ "args": [
897
+ {
898
+ "name": "projectId";
899
+ "type": "string";
900
+ },
901
+ {
902
+ "name": "newOwner";
903
+ "type": "pubkey";
904
+ }
905
+ ];
906
+ },
907
+ {
908
+ "name": "transferProgramAdmin";
909
+ "discriminator": [
910
+ 47,
911
+ 201,
912
+ 152,
913
+ 248,
914
+ 132,
915
+ 27,
916
+ 33,
917
+ 139
918
+ ];
919
+ "accounts": [
920
+ {
921
+ "name": "config";
922
+ "writable": true;
923
+ "pda": {
924
+ "seeds": [
925
+ {
926
+ "kind": "const";
927
+ "value": [
928
+ 99,
929
+ 111,
930
+ 110,
931
+ 102,
932
+ 105,
933
+ 103
934
+ ];
935
+ }
936
+ ];
937
+ };
938
+ },
939
+ {
940
+ "name": "authority";
941
+ "writable": true;
942
+ "signer": true;
943
+ },
944
+ {
945
+ "name": "newAdmin";
946
+ "writable": true;
947
+ "signer": true;
948
+ },
949
+ {
950
+ "name": "systemProgram";
951
+ "address": "11111111111111111111111111111111";
952
+ }
953
+ ];
954
+ "args": [
955
+ {
956
+ "name": "newAdmin";
957
+ "type": "pubkey";
958
+ }
959
+ ];
960
+ },
961
+ {
962
+ "name": "verify";
963
+ "discriminator": [
964
+ 133,
965
+ 161,
966
+ 141,
967
+ 48,
968
+ 120,
969
+ 198,
970
+ 88,
971
+ 150
972
+ ];
973
+ "accounts": [
974
+ {
975
+ "name": "authority";
976
+ "writable": true;
977
+ "signer": true;
620
978
  },
621
979
  {
622
- name: 'systemProgram';
623
- address: '11111111111111111111111111111111';
980
+ "name": "systemProgram";
981
+ "address": "11111111111111111111111111111111";
624
982
  },
625
983
  {
626
- name: 'ixSysvar';
627
- docs: [
628
- 'the supplied Sysvar could be anything else.',
629
- 'The Instruction Sysvar has not been implemented',
630
- 'in the Anchor framework yet, so this is the safe approach.'
984
+ "name": "ixSysvar";
985
+ "docs": [
986
+ "the supplied Sysvar could be anything else.",
987
+ "The Instruction Sysvar has not been implemented",
988
+ "in the Anchor framework yet, so this is the safe approach."
631
989
  ];
632
- address: 'Sysvar1nstructions1111111111111111111111111';
990
+ "address": "Sysvar1nstructions1111111111111111111111111";
633
991
  }
634
992
  ];
635
- args: [
993
+ "args": [
636
994
  {
637
- name: 'signer';
638
- type: 'pubkey';
995
+ "name": "signer";
996
+ "type": "pubkey";
639
997
  },
640
998
  {
641
- name: 'hash';
642
- type: {
643
- array: ['u8', 32];
999
+ "name": "hash";
1000
+ "type": {
1001
+ "array": [
1002
+ "u8",
1003
+ 32
1004
+ ];
644
1005
  };
645
1006
  },
646
1007
  {
647
- name: 'signature';
648
- type: 'bytes';
1008
+ "name": "signature";
1009
+ "type": "bytes";
649
1010
  }
650
1011
  ];
651
1012
  },
652
1013
  {
653
- name: 'version';
654
- discriminator: [118, 65, 195, 198, 129, 216, 252, 192];
655
- accounts: [
656
- {
657
- name: 'version';
658
- writable: true;
659
- pda: {
660
- seeds: [
1014
+ "name": "version";
1015
+ "discriminator": [
1016
+ 118,
1017
+ 65,
1018
+ 195,
1019
+ 198,
1020
+ 129,
1021
+ 216,
1022
+ 252,
1023
+ 192
1024
+ ];
1025
+ "accounts": [
1026
+ {
1027
+ "name": "version";
1028
+ "writable": true;
1029
+ "pda": {
1030
+ "seeds": [
661
1031
  {
662
- kind: 'const';
663
- value: [118, 101, 114, 115, 105, 111, 110];
1032
+ "kind": "const";
1033
+ "value": [
1034
+ 118,
1035
+ 101,
1036
+ 114,
1037
+ 115,
1038
+ 105,
1039
+ 111,
1040
+ 110
1041
+ ];
664
1042
  }
665
1043
  ];
666
1044
  };
667
1045
  },
668
1046
  {
669
- name: 'authority';
670
- writable: true;
671
- signer: true;
1047
+ "name": "authority";
1048
+ "writable": true;
1049
+ "signer": true;
672
1050
  },
673
1051
  {
674
- name: 'systemProgram';
675
- address: '11111111111111111111111111111111';
1052
+ "name": "systemProgram";
1053
+ "address": "11111111111111111111111111111111";
676
1054
  }
677
1055
  ];
678
- args: [];
1056
+ "args": [];
679
1057
  },
680
1058
  {
681
- name: 'withdraw';
682
- discriminator: [183, 18, 70, 156, 148, 109, 161, 34];
683
- accounts: [
1059
+ "name": "withdraw";
1060
+ "discriminator": [
1061
+ 183,
1062
+ 18,
1063
+ 70,
1064
+ 156,
1065
+ 148,
1066
+ 109,
1067
+ 161,
1068
+ 34
1069
+ ];
1070
+ "accounts": [
684
1071
  {
685
- name: 'authority';
686
- writable: true;
687
- signer: true;
1072
+ "name": "authority";
1073
+ "writable": true;
1074
+ "signer": true;
688
1075
  },
689
1076
  {
690
- name: 'airdrop';
691
- writable: true;
692
- pda: {
693
- seeds: [
1077
+ "name": "airdrop";
1078
+ "writable": true;
1079
+ "pda": {
1080
+ "seeds": [
694
1081
  {
695
- kind: 'const';
696
- value: [97, 105, 114, 100, 114, 111, 112];
1082
+ "kind": "const";
1083
+ "value": [
1084
+ 97,
1085
+ 105,
1086
+ 114,
1087
+ 100,
1088
+ 114,
1089
+ 111,
1090
+ 112
1091
+ ];
697
1092
  },
698
1093
  {
699
- kind: 'arg';
700
- path: 'projectId';
1094
+ "kind": "arg";
1095
+ "path": "projectId";
701
1096
  }
702
1097
  ];
703
1098
  };
704
1099
  },
705
1100
  {
706
- name: 'vault';
707
- writable: true;
708
- pda: {
709
- seeds: [
1101
+ "name": "vault";
1102
+ "writable": true;
1103
+ "pda": {
1104
+ "seeds": [
710
1105
  {
711
- kind: 'const';
712
- value: [118, 97, 117, 108, 116];
1106
+ "kind": "const";
1107
+ "value": [
1108
+ 118,
1109
+ 97,
1110
+ 117,
1111
+ 108,
1112
+ 116
1113
+ ];
713
1114
  },
714
1115
  {
715
- kind: 'arg';
716
- path: 'projectId';
1116
+ "kind": "account";
1117
+ "path": "airdrop";
717
1118
  }
718
1119
  ];
719
1120
  };
720
1121
  },
721
1122
  {
722
- name: 'authorityAta';
723
- writable: true;
724
- pda: {
725
- seeds: [
1123
+ "name": "authorityAta";
1124
+ "writable": true;
1125
+ "pda": {
1126
+ "seeds": [
726
1127
  {
727
- kind: 'account';
728
- path: 'authority';
1128
+ "kind": "account";
1129
+ "path": "authority";
729
1130
  },
730
1131
  {
731
- kind: 'const';
732
- value: [
1132
+ "kind": "const";
1133
+ "value": [
733
1134
  6,
734
1135
  221,
735
1136
  246,
@@ -765,13 +1166,13 @@ export type FungibleTokenDistributorSolana = {
765
1166
  ];
766
1167
  },
767
1168
  {
768
- kind: 'account';
769
- path: 'tokenMint';
1169
+ "kind": "account";
1170
+ "path": "tokenMint";
770
1171
  }
771
1172
  ];
772
- program: {
773
- kind: 'const';
774
- value: [
1173
+ "program": {
1174
+ "kind": "const";
1175
+ "value": [
775
1176
  140,
776
1177
  151,
777
1178
  37,
@@ -809,210 +1210,299 @@ export type FungibleTokenDistributorSolana = {
809
1210
  };
810
1211
  },
811
1212
  {
812
- name: 'tokenMint';
1213
+ "name": "tokenMint";
813
1214
  },
814
1215
  {
815
- name: 'systemProgram';
816
- address: '11111111111111111111111111111111';
1216
+ "name": "systemProgram";
1217
+ "address": "11111111111111111111111111111111";
817
1218
  },
818
1219
  {
819
- name: 'tokenProgram';
1220
+ "name": "tokenProgram";
820
1221
  },
821
1222
  {
822
- name: 'associatedTokenProgram';
823
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1223
+ "name": "associatedTokenProgram";
1224
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
824
1225
  }
825
1226
  ];
826
- args: [
1227
+ "args": [
827
1228
  {
828
- name: 'projectId';
829
- type: 'string';
1229
+ "name": "projectId";
1230
+ "type": "string";
830
1231
  }
831
1232
  ];
832
1233
  }
833
1234
  ];
834
- accounts: [
1235
+ "accounts": [
835
1236
  {
836
- name: 'airdrop';
837
- discriminator: [31, 112, 159, 158, 124, 237, 9, 241];
1237
+ "name": "airdrop";
1238
+ "discriminator": [
1239
+ 31,
1240
+ 112,
1241
+ 159,
1242
+ 158,
1243
+ 124,
1244
+ 237,
1245
+ 9,
1246
+ 241
1247
+ ];
838
1248
  },
839
1249
  {
840
- name: 'claim';
841
- discriminator: [155, 70, 22, 176, 123, 215, 246, 102];
1250
+ "name": "claim";
1251
+ "discriminator": [
1252
+ 155,
1253
+ 70,
1254
+ 22,
1255
+ 176,
1256
+ 123,
1257
+ 215,
1258
+ 246,
1259
+ 102
1260
+ ];
842
1261
  },
843
1262
  {
844
- name: 'config';
845
- discriminator: [155, 12, 170, 224, 30, 250, 204, 130];
1263
+ "name": "config";
1264
+ "discriminator": [
1265
+ 155,
1266
+ 12,
1267
+ 170,
1268
+ 224,
1269
+ 30,
1270
+ 250,
1271
+ 204,
1272
+ 130
1273
+ ];
846
1274
  },
847
1275
  {
848
- name: 'feeCollectorStorage';
849
- discriminator: [204, 100, 40, 33, 80, 124, 161, 126];
1276
+ "name": "feeCollectorStorage";
1277
+ "discriminator": [
1278
+ 204,
1279
+ 100,
1280
+ 40,
1281
+ 33,
1282
+ 80,
1283
+ 124,
1284
+ 161,
1285
+ 126
1286
+ ];
850
1287
  },
851
1288
  {
852
- name: 'version';
853
- discriminator: [234, 4, 254, 42, 242, 196, 136, 199];
1289
+ "name": "version";
1290
+ "discriminator": [
1291
+ 234,
1292
+ 4,
1293
+ 254,
1294
+ 42,
1295
+ 242,
1296
+ 196,
1297
+ 136,
1298
+ 199
1299
+ ];
854
1300
  }
855
1301
  ];
856
- events: [
1302
+ "events": [
857
1303
  {
858
- name: 'claimDelegateSet';
859
- discriminator: [82, 153, 121, 138, 224, 132, 71, 59];
1304
+ "name": "claimDelegateSet";
1305
+ "discriminator": [
1306
+ 82,
1307
+ 153,
1308
+ 121,
1309
+ 138,
1310
+ 224,
1311
+ 132,
1312
+ 71,
1313
+ 59
1314
+ ];
860
1315
  },
861
1316
  {
862
- name: 'claimed';
863
- discriminator: [217, 192, 123, 72, 108, 150, 248, 33];
1317
+ "name": "claimed";
1318
+ "discriminator": [
1319
+ 217,
1320
+ 192,
1321
+ 123,
1322
+ 72,
1323
+ 108,
1324
+ 150,
1325
+ 248,
1326
+ 33
1327
+ ];
864
1328
  },
865
1329
  {
866
- name: 'deployed';
867
- discriminator: [50, 145, 94, 59, 169, 255, 159, 186];
1330
+ "name": "deployed";
1331
+ "discriminator": [
1332
+ 50,
1333
+ 145,
1334
+ 94,
1335
+ 59,
1336
+ 169,
1337
+ 255,
1338
+ 159,
1339
+ 186
1340
+ ];
868
1341
  },
869
1342
  {
870
- name: 'initialized';
871
- discriminator: [208, 213, 115, 98, 115, 82, 201, 209];
1343
+ "name": "initialized";
1344
+ "discriminator": [
1345
+ 208,
1346
+ 213,
1347
+ 115,
1348
+ 98,
1349
+ 115,
1350
+ 82,
1351
+ 201,
1352
+ 209
1353
+ ];
872
1354
  }
873
1355
  ];
874
- errors: [
1356
+ "errors": [
875
1357
  {
876
- code: 6000;
877
- name: 'alreadyDeployed';
878
- msg: 'alreadyDeployed';
1358
+ "code": 6000;
1359
+ "name": "alreadyDeployed";
1360
+ "msg": "alreadyDeployed";
879
1361
  },
880
1362
  {
881
- code: 6001;
882
- name: 'unsupportedOperation';
883
- msg: 'unsupportedOperation';
1363
+ "code": 6001;
1364
+ "name": "unsupportedOperation";
1365
+ "msg": "unsupportedOperation";
884
1366
  },
885
1367
  {
886
- code: 6002;
887
- name: 'timeInactive';
888
- msg: 'timeInactive';
1368
+ "code": 6002;
1369
+ "name": "timeInactive";
1370
+ "msg": "timeInactive";
889
1371
  },
890
1372
  {
891
- code: 6003;
892
- name: 'invalidSignature';
893
- msg: 'invalidSignature';
1373
+ "code": 6003;
1374
+ "name": "invalidSignature";
1375
+ "msg": "invalidSignature";
894
1376
  },
895
1377
  {
896
- code: 6004;
897
- name: 'incorrectFees';
898
- msg: 'incorrectFees';
1378
+ "code": 6004;
1379
+ "name": "incorrectFees";
1380
+ "msg": "incorrectFees";
899
1381
  },
900
1382
  {
901
- code: 6005;
902
- name: 'outsideClaimableTimeRange';
903
- msg: 'outsideClaimableTimeRange';
1383
+ "code": 6005;
1384
+ "name": "outsideClaimableTimeRange";
1385
+ "msg": "outsideClaimableTimeRange";
904
1386
  },
905
1387
  {
906
- code: 6006;
907
- name: 'alreadyInitialized';
908
- msg: 'alreadyInitialized';
1388
+ "code": 6006;
1389
+ "name": "alreadyInitialized";
1390
+ "msg": "alreadyInitialized";
909
1391
  },
910
1392
  {
911
- code: 6007;
912
- name: 'notOwner';
913
- msg: 'notOwner';
1393
+ "code": 6007;
1394
+ "name": "notOwner";
1395
+ "msg": "notOwner";
914
1396
  },
915
1397
  {
916
- code: 6008;
917
- name: 'notDeployer';
918
- msg: 'notDeployer';
1398
+ "code": 6008;
1399
+ "name": "notDeployer";
1400
+ "msg": "notDeployer";
919
1401
  },
920
1402
  {
921
- code: 6009;
922
- name: 'ownableUnauthorizedAccount';
923
- msg: 'ownableUnauthorizedAccount';
1403
+ "code": 6009;
1404
+ "name": "ownableUnauthorizedAccount";
1405
+ "msg": "ownableUnauthorizedAccount";
924
1406
  },
925
1407
  {
926
- code: 6010;
927
- name: 'invalidFeeCollector';
928
- msg: 'invalidFeeCollector';
1408
+ "code": 6010;
1409
+ "name": "invalidFeeCollector";
1410
+ "msg": "invalidFeeCollector";
1411
+ },
1412
+ {
1413
+ "code": 6011;
1414
+ "name": "paused";
1415
+ "msg": "paused";
929
1416
  }
930
1417
  ];
931
- types: [
1418
+ "types": [
932
1419
  {
933
- name: 'airdrop';
934
- type: {
935
- kind: 'struct';
936
- fields: [
1420
+ "name": "airdrop";
1421
+ "type": {
1422
+ "kind": "struct";
1423
+ "fields": [
937
1424
  {
938
- name: 'owner';
939
- type: 'pubkey';
1425
+ "name": "owner";
1426
+ "type": "pubkey";
940
1427
  },
941
1428
  {
942
- name: 'authorizedSigner';
943
- type: 'pubkey';
1429
+ "name": "authorizedSigner";
1430
+ "type": "pubkey";
944
1431
  },
945
1432
  {
946
- name: 'token';
947
- type: 'pubkey';
1433
+ "name": "token";
1434
+ "type": "pubkey";
948
1435
  },
949
1436
  {
950
- name: 'startTime';
951
- type: 'u64';
1437
+ "name": "startTime";
1438
+ "type": "u64";
952
1439
  },
953
1440
  {
954
- name: 'endTime';
955
- type: 'u64';
1441
+ "name": "endTime";
1442
+ "type": "u64";
956
1443
  },
957
1444
  {
958
- name: 'feeCollector';
959
- type: 'pubkey';
1445
+ "name": "feeCollector";
1446
+ "type": "pubkey";
960
1447
  },
961
1448
  {
962
- name: 'feeToken';
963
- type: 'pubkey';
1449
+ "name": "feeToken";
1450
+ "type": "pubkey";
964
1451
  },
965
1452
  {
966
- name: 'paused';
967
- type: 'bool';
1453
+ "name": "paused";
1454
+ "type": "bool";
968
1455
  }
969
1456
  ];
970
1457
  };
971
1458
  },
972
1459
  {
973
- name: 'claim';
974
- type: {
975
- kind: 'struct';
976
- fields: [
1460
+ "name": "claim";
1461
+ "type": {
1462
+ "kind": "struct";
1463
+ "fields": [
977
1464
  {
978
- name: 'used';
979
- type: 'bool';
1465
+ "name": "used";
1466
+ "type": "bool";
980
1467
  }
981
1468
  ];
982
1469
  };
983
1470
  },
984
1471
  {
985
- name: 'claimDelegateSet';
986
- type: {
987
- kind: 'struct';
988
- fields: [
1472
+ "name": "claimDelegateSet";
1473
+ "type": {
1474
+ "kind": "struct";
1475
+ "fields": [
989
1476
  {
990
- name: 'delegate';
991
- type: 'pubkey';
1477
+ "name": "delegate";
1478
+ "type": "pubkey";
992
1479
  }
993
1480
  ];
994
1481
  };
995
1482
  },
996
1483
  {
997
- name: 'claimed';
998
- type: {
999
- kind: 'struct';
1000
- fields: [
1484
+ "name": "claimed";
1485
+ "type": {
1486
+ "kind": "struct";
1487
+ "fields": [
1001
1488
  {
1002
- name: 'recipient';
1003
- type: 'pubkey';
1489
+ "name": "recipient";
1490
+ "type": "pubkey";
1004
1491
  },
1005
1492
  {
1006
- name: 'group';
1007
- type: {
1008
- array: ['u8', 32];
1493
+ "name": "group";
1494
+ "type": {
1495
+ "array": [
1496
+ "u8",
1497
+ 32
1498
+ ];
1009
1499
  };
1010
1500
  },
1011
1501
  {
1012
- name: 'data';
1013
- type: {
1014
- defined: {
1015
- name: 'tokenTableFungibleDistributorData';
1502
+ "name": "data";
1503
+ "type": {
1504
+ "defined": {
1505
+ "name": "tokenTableFungibleDistributorData";
1016
1506
  };
1017
1507
  };
1018
1508
  }
@@ -1020,76 +1510,76 @@ export type FungibleTokenDistributorSolana = {
1020
1510
  };
1021
1511
  },
1022
1512
  {
1023
- name: 'config';
1024
- type: {
1025
- kind: 'struct';
1026
- fields: [
1513
+ "name": "config";
1514
+ "type": {
1515
+ "kind": "struct";
1516
+ "fields": [
1027
1517
  {
1028
- name: 'deployer';
1029
- type: 'pubkey';
1518
+ "name": "admin";
1519
+ "type": "pubkey";
1030
1520
  }
1031
1521
  ];
1032
1522
  };
1033
1523
  },
1034
1524
  {
1035
- name: 'deployed';
1036
- type: {
1037
- kind: 'struct';
1038
- fields: [];
1525
+ "name": "deployed";
1526
+ "type": {
1527
+ "kind": "struct";
1528
+ "fields": [];
1039
1529
  };
1040
1530
  },
1041
1531
  {
1042
- name: 'feeCollectorStorage';
1043
- type: {
1044
- kind: 'struct';
1045
- fields: [
1532
+ "name": "feeCollectorStorage";
1533
+ "type": {
1534
+ "kind": "struct";
1535
+ "fields": [
1046
1536
  {
1047
- name: 'owner';
1048
- type: 'pubkey';
1537
+ "name": "owner";
1538
+ "type": "pubkey";
1049
1539
  },
1050
1540
  {
1051
- name: 'defaultFeesBips';
1052
- type: 'u64';
1541
+ "name": "defaultFeesBips";
1542
+ "type": "u64";
1053
1543
  }
1054
1544
  ];
1055
1545
  };
1056
1546
  },
1057
1547
  {
1058
- name: 'initialized';
1059
- type: {
1060
- kind: 'struct';
1061
- fields: [
1548
+ "name": "initialized";
1549
+ "type": {
1550
+ "kind": "struct";
1551
+ "fields": [
1062
1552
  {
1063
- name: 'projectId';
1064
- type: 'string';
1553
+ "name": "projectId";
1554
+ "type": "string";
1065
1555
  }
1066
1556
  ];
1067
1557
  };
1068
1558
  },
1069
1559
  {
1070
- name: 'tokenTableFungibleDistributorData';
1071
- type: {
1072
- kind: 'struct';
1073
- fields: [
1560
+ "name": "tokenTableFungibleDistributorData";
1561
+ "type": {
1562
+ "kind": "struct";
1563
+ "fields": [
1074
1564
  {
1075
- name: 'claimableTimestamp';
1076
- type: 'u64';
1565
+ "name": "claimableTimestamp";
1566
+ "type": "u64";
1077
1567
  },
1078
1568
  {
1079
- name: 'claimableAmount';
1080
- type: 'u64';
1569
+ "name": "claimableAmount";
1570
+ "type": "u64";
1081
1571
  }
1082
1572
  ];
1083
1573
  };
1084
1574
  },
1085
1575
  {
1086
- name: 'version';
1087
- type: {
1088
- kind: 'struct';
1089
- fields: [
1576
+ "name": "version";
1577
+ "type": {
1578
+ "kind": "struct";
1579
+ "fields": [
1090
1580
  {
1091
- name: 'version';
1092
- type: 'string';
1581
+ "name": "version";
1582
+ "type": "string";
1093
1583
  }
1094
1584
  ];
1095
1585
  };