@dropsy/airdrop 0.2.7 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs ADDED
@@ -0,0 +1,2544 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ AIRDROP_CONFIG_DISCRIMINATOR: () => AIRDROP_CONFIG_DISCRIMINATOR,
24
+ AIRDROP_DISCRIMINATOR: () => AIRDROP_DISCRIMINATOR,
25
+ AIRDROP_MASTER_DISCRIMINATOR: () => AIRDROP_MASTER_DISCRIMINATOR,
26
+ BITMAP_ACCOUNT_DISCRIMINATOR: () => BITMAP_ACCOUNT_DISCRIMINATOR,
27
+ CLAIM_AIRDROP_DISCRIMINATOR: () => CLAIM_AIRDROP_DISCRIMINATOR,
28
+ CREATE_AIRDROP_DISCRIMINATOR: () => CREATE_AIRDROP_DISCRIMINATOR,
29
+ CREATE_BITMAP_DISCRIMINATOR: () => CREATE_BITMAP_DISCRIMINATOR,
30
+ DEPOSIT_TOKENS_DISCRIMINATOR: () => DEPOSIT_TOKENS_DISCRIMINATOR,
31
+ DROPSY_AIRDROP_ERROR__ACTION_FEE_TOO_HIGH: () => DROPSY_AIRDROP_ERROR__ACTION_FEE_TOO_HIGH,
32
+ DROPSY_AIRDROP_ERROR__ACTIVE_BITMAPS_EXIST: () => DROPSY_AIRDROP_ERROR__ACTIVE_BITMAPS_EXIST,
33
+ DROPSY_AIRDROP_ERROR__AIRDROP_ENDED: () => DROPSY_AIRDROP_ERROR__AIRDROP_ENDED,
34
+ DROPSY_AIRDROP_ERROR__AIRDROP_NOT_ENDED: () => DROPSY_AIRDROP_ERROR__AIRDROP_NOT_ENDED,
35
+ DROPSY_AIRDROP_ERROR__AIRDROP_NOT_STARTED: () => DROPSY_AIRDROP_ERROR__AIRDROP_NOT_STARTED,
36
+ DROPSY_AIRDROP_ERROR__ALREADY_CLAIMED: () => DROPSY_AIRDROP_ERROR__ALREADY_CLAIMED,
37
+ DROPSY_AIRDROP_ERROR__BITMAP_AIRDROP_MISMATCH: () => DROPSY_AIRDROP_ERROR__BITMAP_AIRDROP_MISMATCH,
38
+ DROPSY_AIRDROP_ERROR__BITMAP_COUNT_UNDERFLOW: () => DROPSY_AIRDROP_ERROR__BITMAP_COUNT_UNDERFLOW,
39
+ DROPSY_AIRDROP_ERROR__BITMAP_TOO_LARGE: () => DROPSY_AIRDROP_ERROR__BITMAP_TOO_LARGE,
40
+ DROPSY_AIRDROP_ERROR__CLAIM_FEE_TOO_HIGH: () => DROPSY_AIRDROP_ERROR__CLAIM_FEE_TOO_HIGH,
41
+ DROPSY_AIRDROP_ERROR__CREATE_FEE_TOO_HIGH: () => DROPSY_AIRDROP_ERROR__CREATE_FEE_TOO_HIGH,
42
+ DROPSY_AIRDROP_ERROR__DESTINATION_MINT_MISMATCH: () => DROPSY_AIRDROP_ERROR__DESTINATION_MINT_MISMATCH,
43
+ DROPSY_AIRDROP_ERROR__DURATION_TOO_SHORT: () => DROPSY_AIRDROP_ERROR__DURATION_TOO_SHORT,
44
+ DROPSY_AIRDROP_ERROR__IMMUTABLE_AIRDROP: () => DROPSY_AIRDROP_ERROR__IMMUTABLE_AIRDROP,
45
+ DROPSY_AIRDROP_ERROR__IMMUTABLE_FIELD: () => DROPSY_AIRDROP_ERROR__IMMUTABLE_FIELD,
46
+ DROPSY_AIRDROP_ERROR__INSUFFICIENT_DEPOSIT: () => DROPSY_AIRDROP_ERROR__INSUFFICIENT_DEPOSIT,
47
+ DROPSY_AIRDROP_ERROR__INSUFFICIENT_FUNDS_FOR_FEE: () => DROPSY_AIRDROP_ERROR__INSUFFICIENT_FUNDS_FOR_FEE,
48
+ DROPSY_AIRDROP_ERROR__INSUFFICIENT_VAULT_FUNDS: () => DROPSY_AIRDROP_ERROR__INSUFFICIENT_VAULT_FUNDS,
49
+ DROPSY_AIRDROP_ERROR__INVALID_ADMIN: () => DROPSY_AIRDROP_ERROR__INVALID_ADMIN,
50
+ DROPSY_AIRDROP_ERROR__INVALID_AFFILIATE_PDA: () => DROPSY_AIRDROP_ERROR__INVALID_AFFILIATE_PDA,
51
+ DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_PDA: () => DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_PDA,
52
+ DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VERSION: () => DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VERSION,
53
+ DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VESTING_VERSION: () => DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VESTING_VERSION,
54
+ DROPSY_AIRDROP_ERROR__INVALID_AMOUNT: () => DROPSY_AIRDROP_ERROR__INVALID_AMOUNT,
55
+ DROPSY_AIRDROP_ERROR__INVALID_BITMAP_ACCOUNT: () => DROPSY_AIRDROP_ERROR__INVALID_BITMAP_ACCOUNT,
56
+ DROPSY_AIRDROP_ERROR__INVALID_BITMAP_INDEX: () => DROPSY_AIRDROP_ERROR__INVALID_BITMAP_INDEX,
57
+ DROPSY_AIRDROP_ERROR__INVALID_DELEGATE_PERMISSION: () => DROPSY_AIRDROP_ERROR__INVALID_DELEGATE_PERMISSION,
58
+ DROPSY_AIRDROP_ERROR__INVALID_DESTINATION_OWNER: () => DROPSY_AIRDROP_ERROR__INVALID_DESTINATION_OWNER,
59
+ DROPSY_AIRDROP_ERROR__INVALID_END_TIME: () => DROPSY_AIRDROP_ERROR__INVALID_END_TIME,
60
+ DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT: () => DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT,
61
+ DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_CURVE: () => DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_CURVE,
62
+ DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_OWNER: () => DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_OWNER,
63
+ DROPSY_AIRDROP_ERROR__INVALID_MINT: () => DROPSY_AIRDROP_ERROR__INVALID_MINT,
64
+ DROPSY_AIRDROP_ERROR__INVALID_MINT_OWNER: () => DROPSY_AIRDROP_ERROR__INVALID_MINT_OWNER,
65
+ DROPSY_AIRDROP_ERROR__INVALID_MUTABILITY: () => DROPSY_AIRDROP_ERROR__INVALID_MUTABILITY,
66
+ DROPSY_AIRDROP_ERROR__INVALID_OWNER: () => DROPSY_AIRDROP_ERROR__INVALID_OWNER,
67
+ DROPSY_AIRDROP_ERROR__INVALID_PARENT_ACCOUNT: () => DROPSY_AIRDROP_ERROR__INVALID_PARENT_ACCOUNT,
68
+ DROPSY_AIRDROP_ERROR__INVALID_PDA: () => DROPSY_AIRDROP_ERROR__INVALID_PDA,
69
+ DROPSY_AIRDROP_ERROR__INVALID_PERCENTAGE: () => DROPSY_AIRDROP_ERROR__INVALID_PERCENTAGE,
70
+ DROPSY_AIRDROP_ERROR__INVALID_PROOF: () => DROPSY_AIRDROP_ERROR__INVALID_PROOF,
71
+ DROPSY_AIRDROP_ERROR__INVALID_PUB_KEY: () => DROPSY_AIRDROP_ERROR__INVALID_PUB_KEY,
72
+ DROPSY_AIRDROP_ERROR__INVALID_TIMESTAMP: () => DROPSY_AIRDROP_ERROR__INVALID_TIMESTAMP,
73
+ DROPSY_AIRDROP_ERROR__INVALID_TOTAL: () => DROPSY_AIRDROP_ERROR__INVALID_TOTAL,
74
+ DROPSY_AIRDROP_ERROR__INVALID_TREASURY_ACCOUNT: () => DROPSY_AIRDROP_ERROR__INVALID_TREASURY_ACCOUNT,
75
+ DROPSY_AIRDROP_ERROR__INVALID_VAULT_AUTHORITY: () => DROPSY_AIRDROP_ERROR__INVALID_VAULT_AUTHORITY,
76
+ DROPSY_AIRDROP_ERROR__INVALID_VESTING_SCHEDULE: () => DROPSY_AIRDROP_ERROR__INVALID_VESTING_SCHEDULE,
77
+ DROPSY_AIRDROP_ERROR__INVALID_VESTING_TYPE: () => DROPSY_AIRDROP_ERROR__INVALID_VESTING_TYPE,
78
+ DROPSY_AIRDROP_ERROR__MINT_HAS_FREEZE_AUTHORITY: () => DROPSY_AIRDROP_ERROR__MINT_HAS_FREEZE_AUTHORITY,
79
+ DROPSY_AIRDROP_ERROR__MINT_IS_FROZEN: () => DROPSY_AIRDROP_ERROR__MINT_IS_FROZEN,
80
+ DROPSY_AIRDROP_ERROR__MINT_IS_NOT_INITIALIZED: () => DROPSY_AIRDROP_ERROR__MINT_IS_NOT_INITIALIZED,
81
+ DROPSY_AIRDROP_ERROR__MINT_MISMATCH: () => DROPSY_AIRDROP_ERROR__MINT_MISMATCH,
82
+ DROPSY_AIRDROP_ERROR__MISSING_BITMAP_PDA: () => DROPSY_AIRDROP_ERROR__MISSING_BITMAP_PDA,
83
+ DROPSY_AIRDROP_ERROR__NFT_NOT_ALLOWED: () => DROPSY_AIRDROP_ERROR__NFT_NOT_ALLOWED,
84
+ DROPSY_AIRDROP_ERROR__NON_ZERO_VALUE_REQUIRED: () => DROPSY_AIRDROP_ERROR__NON_ZERO_VALUE_REQUIRED,
85
+ DROPSY_AIRDROP_ERROR__OVERFLOW: () => DROPSY_AIRDROP_ERROR__OVERFLOW,
86
+ DROPSY_AIRDROP_ERROR__OWNER_MISMATCH: () => DROPSY_AIRDROP_ERROR__OWNER_MISMATCH,
87
+ DROPSY_AIRDROP_ERROR__SOURCE_ACCOUNT_FROZEN: () => DROPSY_AIRDROP_ERROR__SOURCE_ACCOUNT_FROZEN,
88
+ DROPSY_AIRDROP_ERROR__SOURCE_HAS_CLOSE_AUTHORITY: () => DROPSY_AIRDROP_ERROR__SOURCE_HAS_CLOSE_AUTHORITY,
89
+ DROPSY_AIRDROP_ERROR__SOURCE_HAS_DELEGATE: () => DROPSY_AIRDROP_ERROR__SOURCE_HAS_DELEGATE,
90
+ DROPSY_AIRDROP_ERROR__TOO_MANY_BITMAPS: () => DROPSY_AIRDROP_ERROR__TOO_MANY_BITMAPS,
91
+ DROPSY_AIRDROP_ERROR__UNAUTHORIZED: () => DROPSY_AIRDROP_ERROR__UNAUTHORIZED,
92
+ DROPSY_AIRDROP_ERROR__UN_AUTHORIZED: () => DROPSY_AIRDROP_ERROR__UN_AUTHORIZED,
93
+ DROPSY_AIRDROP_ERROR__UPDATE_CUTOFF_TIME_PASSED: () => DROPSY_AIRDROP_ERROR__UPDATE_CUTOFF_TIME_PASSED,
94
+ DROPSY_AIRDROP_ERROR__VALUE_BELOW_THE_MINIMUM: () => DROPSY_AIRDROP_ERROR__VALUE_BELOW_THE_MINIMUM,
95
+ DROPSY_AIRDROP_ERROR__VALUE_EXCEEDS_MAXIMUM: () => DROPSY_AIRDROP_ERROR__VALUE_EXCEEDS_MAXIMUM,
96
+ DROPSY_AIRDROP_ERROR__VALUE_OUT_OF_RANGE: () => DROPSY_AIRDROP_ERROR__VALUE_OUT_OF_RANGE,
97
+ DROPSY_AIRDROP_ERROR__VAULT_FROZEN: () => DROPSY_AIRDROP_ERROR__VAULT_FROZEN,
98
+ DROPSY_AIRDROP_ERROR__VAULT_HAS_CLOSE_AUTHORITY: () => DROPSY_AIRDROP_ERROR__VAULT_HAS_CLOSE_AUTHORITY,
99
+ DROPSY_AIRDROP_ERROR__VAULT_HAS_DELEGATE: () => DROPSY_AIRDROP_ERROR__VAULT_HAS_DELEGATE,
100
+ DROPSY_AIRDROP_ERROR__VAULT_MINT_MISMATCH: () => DROPSY_AIRDROP_ERROR__VAULT_MINT_MISMATCH,
101
+ DROPSY_AIRDROP_ERROR__VAULT_NOT_INITIALIZED: () => DROPSY_AIRDROP_ERROR__VAULT_NOT_INITIALIZED,
102
+ DROPSY_AIRDROP_ERROR__VAULT_NOT_RENT_EXEMPT: () => DROPSY_AIRDROP_ERROR__VAULT_NOT_RENT_EXEMPT,
103
+ DROPSY_AIRDROP_ERROR__VESTING_ACCOUNT_REQUIRED: () => DROPSY_AIRDROP_ERROR__VESTING_ACCOUNT_REQUIRED,
104
+ DROPSY_AIRDROP_PROGRAM_ADDRESS: () => DROPSY_AIRDROP_PROGRAM_ADDRESS,
105
+ DropsyAirdropAccount: () => DropsyAirdropAccount,
106
+ DropsyAirdropInstruction: () => DropsyAirdropInstruction,
107
+ INITIALIZE_AIRDROP_CONFIG_DISCRIMINATOR: () => INITIALIZE_AIRDROP_CONFIG_DISCRIMINATOR,
108
+ INITIALIZE_AIRDROP_MASTER_DISCRIMINATOR: () => INITIALIZE_AIRDROP_MASTER_DISCRIMINATOR,
109
+ decodeAirdrop: () => decodeAirdrop,
110
+ decodeAirdropConfig: () => decodeAirdropConfig,
111
+ decodeAirdropMaster: () => decodeAirdropMaster,
112
+ decodeBitmapAccount: () => decodeBitmapAccount,
113
+ fetchAirdrop: () => fetchAirdrop,
114
+ fetchAirdropConfig: () => fetchAirdropConfig,
115
+ fetchAirdropMaster: () => fetchAirdropMaster,
116
+ fetchAllAirdrop: () => fetchAllAirdrop,
117
+ fetchAllAirdropConfig: () => fetchAllAirdropConfig,
118
+ fetchAllAirdropMaster: () => fetchAllAirdropMaster,
119
+ fetchAllBitmapAccount: () => fetchAllBitmapAccount,
120
+ fetchAllMaybeAirdrop: () => fetchAllMaybeAirdrop,
121
+ fetchAllMaybeAirdropConfig: () => fetchAllMaybeAirdropConfig,
122
+ fetchAllMaybeAirdropMaster: () => fetchAllMaybeAirdropMaster,
123
+ fetchAllMaybeBitmapAccount: () => fetchAllMaybeBitmapAccount,
124
+ fetchBitmapAccount: () => fetchBitmapAccount,
125
+ fetchMaybeAirdrop: () => fetchMaybeAirdrop,
126
+ fetchMaybeAirdropConfig: () => fetchMaybeAirdropConfig,
127
+ fetchMaybeAirdropMaster: () => fetchMaybeAirdropMaster,
128
+ fetchMaybeBitmapAccount: () => fetchMaybeBitmapAccount,
129
+ getAirdropCodec: () => getAirdropCodec,
130
+ getAirdropConfigCodec: () => getAirdropConfigCodec,
131
+ getAirdropConfigDecoder: () => getAirdropConfigDecoder,
132
+ getAirdropConfigDiscriminatorBytes: () => getAirdropConfigDiscriminatorBytes,
133
+ getAirdropConfigEncoder: () => getAirdropConfigEncoder,
134
+ getAirdropConfigSize: () => getAirdropConfigSize,
135
+ getAirdropDecoder: () => getAirdropDecoder,
136
+ getAirdropDiscriminatorBytes: () => getAirdropDiscriminatorBytes,
137
+ getAirdropEncoder: () => getAirdropEncoder,
138
+ getAirdropInitializedCodec: () => getAirdropInitializedCodec,
139
+ getAirdropInitializedDecoder: () => getAirdropInitializedDecoder,
140
+ getAirdropInitializedEncoder: () => getAirdropInitializedEncoder,
141
+ getAirdropMasterCodec: () => getAirdropMasterCodec,
142
+ getAirdropMasterDecoder: () => getAirdropMasterDecoder,
143
+ getAirdropMasterDiscriminatorBytes: () => getAirdropMasterDiscriminatorBytes,
144
+ getAirdropMasterEncoder: () => getAirdropMasterEncoder,
145
+ getAirdropMasterSize: () => getAirdropMasterSize,
146
+ getAirdropSize: () => getAirdropSize,
147
+ getBitmapAccountCodec: () => getBitmapAccountCodec,
148
+ getBitmapAccountDecoder: () => getBitmapAccountDecoder,
149
+ getBitmapAccountDiscriminatorBytes: () => getBitmapAccountDiscriminatorBytes,
150
+ getBitmapAccountEncoder: () => getBitmapAccountEncoder,
151
+ getBitmapAccountSize: () => getBitmapAccountSize,
152
+ getBitmapClosedCodec: () => getBitmapClosedCodec,
153
+ getBitmapClosedDecoder: () => getBitmapClosedDecoder,
154
+ getBitmapClosedEncoder: () => getBitmapClosedEncoder,
155
+ getBitmapInitializedCodec: () => getBitmapInitializedCodec,
156
+ getBitmapInitializedDecoder: () => getBitmapInitializedDecoder,
157
+ getBitmapInitializedEncoder: () => getBitmapInitializedEncoder,
158
+ getClaimAirdropDiscriminatorBytes: () => getClaimAirdropDiscriminatorBytes,
159
+ getClaimAirdropInstruction: () => getClaimAirdropInstruction,
160
+ getClaimAirdropInstructionAsync: () => getClaimAirdropInstructionAsync,
161
+ getClaimAirdropInstructionDataCodec: () => getClaimAirdropInstructionDataCodec,
162
+ getClaimAirdropInstructionDataDecoder: () => getClaimAirdropInstructionDataDecoder,
163
+ getClaimAirdropInstructionDataEncoder: () => getClaimAirdropInstructionDataEncoder,
164
+ getCreateAirdropDiscriminatorBytes: () => getCreateAirdropDiscriminatorBytes,
165
+ getCreateAirdropInstruction: () => getCreateAirdropInstruction,
166
+ getCreateAirdropInstructionAsync: () => getCreateAirdropInstructionAsync,
167
+ getCreateAirdropInstructionDataCodec: () => getCreateAirdropInstructionDataCodec,
168
+ getCreateAirdropInstructionDataDecoder: () => getCreateAirdropInstructionDataDecoder,
169
+ getCreateAirdropInstructionDataEncoder: () => getCreateAirdropInstructionDataEncoder,
170
+ getCreateBitmapDiscriminatorBytes: () => getCreateBitmapDiscriminatorBytes,
171
+ getCreateBitmapInstruction: () => getCreateBitmapInstruction,
172
+ getCreateBitmapInstructionAsync: () => getCreateBitmapInstructionAsync,
173
+ getCreateBitmapInstructionDataCodec: () => getCreateBitmapInstructionDataCodec,
174
+ getCreateBitmapInstructionDataDecoder: () => getCreateBitmapInstructionDataDecoder,
175
+ getCreateBitmapInstructionDataEncoder: () => getCreateBitmapInstructionDataEncoder,
176
+ getDepositTokensDiscriminatorBytes: () => getDepositTokensDiscriminatorBytes,
177
+ getDepositTokensInstruction: () => getDepositTokensInstruction,
178
+ getDepositTokensInstructionAsync: () => getDepositTokensInstructionAsync,
179
+ getDepositTokensInstructionDataCodec: () => getDepositTokensInstructionDataCodec,
180
+ getDepositTokensInstructionDataDecoder: () => getDepositTokensInstructionDataDecoder,
181
+ getDepositTokensInstructionDataEncoder: () => getDepositTokensInstructionDataEncoder,
182
+ getDropsyAirdropErrorMessage: () => getDropsyAirdropErrorMessage,
183
+ getInitializeAirdropConfigDiscriminatorBytes: () => getInitializeAirdropConfigDiscriminatorBytes,
184
+ getInitializeAirdropConfigInstruction: () => getInitializeAirdropConfigInstruction,
185
+ getInitializeAirdropConfigInstructionAsync: () => getInitializeAirdropConfigInstructionAsync,
186
+ getInitializeAirdropConfigInstructionDataCodec: () => getInitializeAirdropConfigInstructionDataCodec,
187
+ getInitializeAirdropConfigInstructionDataDecoder: () => getInitializeAirdropConfigInstructionDataDecoder,
188
+ getInitializeAirdropConfigInstructionDataEncoder: () => getInitializeAirdropConfigInstructionDataEncoder,
189
+ getInitializeAirdropMasterDiscriminatorBytes: () => getInitializeAirdropMasterDiscriminatorBytes,
190
+ getInitializeAirdropMasterInstruction: () => getInitializeAirdropMasterInstruction,
191
+ getInitializeAirdropMasterInstructionAsync: () => getInitializeAirdropMasterInstructionAsync,
192
+ getInitializeAirdropMasterInstructionDataCodec: () => getInitializeAirdropMasterInstructionDataCodec,
193
+ getInitializeAirdropMasterInstructionDataDecoder: () => getInitializeAirdropMasterInstructionDataDecoder,
194
+ getInitializeAirdropMasterInstructionDataEncoder: () => getInitializeAirdropMasterInstructionDataEncoder,
195
+ getTokensDepositedCodec: () => getTokensDepositedCodec,
196
+ getTokensDepositedDecoder: () => getTokensDepositedDecoder,
197
+ getTokensDepositedEncoder: () => getTokensDepositedEncoder,
198
+ getTokensRedeemedCodec: () => getTokensRedeemedCodec,
199
+ getTokensRedeemedDecoder: () => getTokensRedeemedDecoder,
200
+ getTokensRedeemedEncoder: () => getTokensRedeemedEncoder,
201
+ identifyDropsyAirdropAccount: () => identifyDropsyAirdropAccount,
202
+ identifyDropsyAirdropInstruction: () => identifyDropsyAirdropInstruction,
203
+ isDropsyAirdropError: () => isDropsyAirdropError,
204
+ parseClaimAirdropInstruction: () => parseClaimAirdropInstruction,
205
+ parseCreateAirdropInstruction: () => parseCreateAirdropInstruction,
206
+ parseCreateBitmapInstruction: () => parseCreateBitmapInstruction,
207
+ parseDepositTokensInstruction: () => parseDepositTokensInstruction,
208
+ parseDropsyAirdropInstruction: () => parseDropsyAirdropInstruction,
209
+ parseInitializeAirdropConfigInstruction: () => parseInitializeAirdropConfigInstruction,
210
+ parseInitializeAirdropMasterInstruction: () => parseInitializeAirdropMasterInstruction
211
+ });
212
+ module.exports = __toCommonJS(index_exports);
213
+
214
+ // src/accounts/airdrop.ts
215
+ var import_kit = require("@solana/kit");
216
+ var AIRDROP_DISCRIMINATOR = new Uint8Array([
217
+ 31,
218
+ 112,
219
+ 159,
220
+ 158,
221
+ 124,
222
+ 237,
223
+ 9,
224
+ 241
225
+ ]);
226
+ function getAirdropDiscriminatorBytes() {
227
+ return (0, import_kit.fixEncoderSize)((0, import_kit.getBytesEncoder)(), 8).encode(AIRDROP_DISCRIMINATOR);
228
+ }
229
+ function getAirdropEncoder() {
230
+ return (0, import_kit.transformEncoder)(
231
+ (0, import_kit.getStructEncoder)([
232
+ ["discriminator", (0, import_kit.fixEncoderSize)((0, import_kit.getBytesEncoder)(), 8)],
233
+ ["master", (0, import_kit.getAddressEncoder)()],
234
+ ["authority", (0, import_kit.getAddressEncoder)()],
235
+ ["mint", (0, import_kit.getAddressEncoder)()],
236
+ ["delegateAuthority", (0, import_kit.getAddressEncoder)()],
237
+ ["merkleRoot", (0, import_kit.fixEncoderSize)((0, import_kit.getBytesEncoder)(), 32)],
238
+ ["id", (0, import_kit.getU64Encoder)()],
239
+ ["supply", (0, import_kit.getU64Encoder)()],
240
+ ["boost", (0, import_kit.getU64Encoder)()],
241
+ ["startsAt", (0, import_kit.getI64Encoder)()],
242
+ ["endsAt", (0, import_kit.getI64Encoder)()],
243
+ ["bitmapCount", (0, import_kit.getU16Encoder)()],
244
+ ["state", (0, import_kit.getU8Encoder)()],
245
+ ["version", (0, import_kit.getU8Encoder)()],
246
+ ["bump", (0, import_kit.getU8Encoder)()],
247
+ ["padding", (0, import_kit.fixEncoderSize)((0, import_kit.getBytesEncoder)(), 3)]
248
+ ]),
249
+ (value) => ({ ...value, discriminator: AIRDROP_DISCRIMINATOR })
250
+ );
251
+ }
252
+ function getAirdropDecoder() {
253
+ return (0, import_kit.getStructDecoder)([
254
+ ["discriminator", (0, import_kit.fixDecoderSize)((0, import_kit.getBytesDecoder)(), 8)],
255
+ ["master", (0, import_kit.getAddressDecoder)()],
256
+ ["authority", (0, import_kit.getAddressDecoder)()],
257
+ ["mint", (0, import_kit.getAddressDecoder)()],
258
+ ["delegateAuthority", (0, import_kit.getAddressDecoder)()],
259
+ ["merkleRoot", (0, import_kit.fixDecoderSize)((0, import_kit.getBytesDecoder)(), 32)],
260
+ ["id", (0, import_kit.getU64Decoder)()],
261
+ ["supply", (0, import_kit.getU64Decoder)()],
262
+ ["boost", (0, import_kit.getU64Decoder)()],
263
+ ["startsAt", (0, import_kit.getI64Decoder)()],
264
+ ["endsAt", (0, import_kit.getI64Decoder)()],
265
+ ["bitmapCount", (0, import_kit.getU16Decoder)()],
266
+ ["state", (0, import_kit.getU8Decoder)()],
267
+ ["version", (0, import_kit.getU8Decoder)()],
268
+ ["bump", (0, import_kit.getU8Decoder)()],
269
+ ["padding", (0, import_kit.fixDecoderSize)((0, import_kit.getBytesDecoder)(), 3)]
270
+ ]);
271
+ }
272
+ function getAirdropCodec() {
273
+ return (0, import_kit.combineCodec)(getAirdropEncoder(), getAirdropDecoder());
274
+ }
275
+ function decodeAirdrop(encodedAccount) {
276
+ return (0, import_kit.decodeAccount)(
277
+ encodedAccount,
278
+ getAirdropDecoder()
279
+ );
280
+ }
281
+ async function fetchAirdrop(rpc, address, config) {
282
+ const maybeAccount = await fetchMaybeAirdrop(rpc, address, config);
283
+ (0, import_kit.assertAccountExists)(maybeAccount);
284
+ return maybeAccount;
285
+ }
286
+ async function fetchMaybeAirdrop(rpc, address, config) {
287
+ const maybeAccount = await (0, import_kit.fetchEncodedAccount)(rpc, address, config);
288
+ return decodeAirdrop(maybeAccount);
289
+ }
290
+ async function fetchAllAirdrop(rpc, addresses, config) {
291
+ const maybeAccounts = await fetchAllMaybeAirdrop(rpc, addresses, config);
292
+ (0, import_kit.assertAccountsExist)(maybeAccounts);
293
+ return maybeAccounts;
294
+ }
295
+ async function fetchAllMaybeAirdrop(rpc, addresses, config) {
296
+ const maybeAccounts = await (0, import_kit.fetchEncodedAccounts)(rpc, addresses, config);
297
+ return maybeAccounts.map((maybeAccount) => decodeAirdrop(maybeAccount));
298
+ }
299
+ function getAirdropSize() {
300
+ return 216;
301
+ }
302
+
303
+ // src/accounts/airdropConfig.ts
304
+ var import_kit2 = require("@solana/kit");
305
+ var AIRDROP_CONFIG_DISCRIMINATOR = new Uint8Array([
306
+ 194,
307
+ 149,
308
+ 223,
309
+ 142,
310
+ 42,
311
+ 98,
312
+ 128,
313
+ 16
314
+ ]);
315
+ function getAirdropConfigDiscriminatorBytes() {
316
+ return (0, import_kit2.fixEncoderSize)((0, import_kit2.getBytesEncoder)(), 8).encode(
317
+ AIRDROP_CONFIG_DISCRIMINATOR
318
+ );
319
+ }
320
+ function getAirdropConfigEncoder() {
321
+ return (0, import_kit2.transformEncoder)(
322
+ (0, import_kit2.getStructEncoder)([
323
+ ["discriminator", (0, import_kit2.fixEncoderSize)((0, import_kit2.getBytesEncoder)(), 8)],
324
+ ["authority", (0, import_kit2.getAddressEncoder)()],
325
+ ["protocolTreasury", (0, import_kit2.getAddressEncoder)()],
326
+ ["wlRoot", (0, import_kit2.fixEncoderSize)((0, import_kit2.getBytesEncoder)(), 32)],
327
+ ["protocolFee", (0, import_kit2.getU64Encoder)()],
328
+ ["airdropMasterCreateFee", (0, import_kit2.getU64Encoder)()],
329
+ ["maxClaimFee", (0, import_kit2.getU64Encoder)()],
330
+ ["maxActionFee", (0, import_kit2.getU64Encoder)()],
331
+ ["minAirdropDuration", (0, import_kit2.getI64Encoder)()],
332
+ ["defaultAirdropDuration", (0, import_kit2.getI64Encoder)()],
333
+ ["maxAirdropDuration", (0, import_kit2.getI64Encoder)()],
334
+ ["updateGracePeriod", (0, import_kit2.getI64Encoder)()],
335
+ ["masterFeeBps", (0, import_kit2.getU16Encoder)()],
336
+ ["version", (0, import_kit2.getU8Encoder)()],
337
+ ["bump", (0, import_kit2.getU8Encoder)()],
338
+ ["padding", (0, import_kit2.fixEncoderSize)((0, import_kit2.getBytesEncoder)(), 4)],
339
+ ["reserved", (0, import_kit2.fixEncoderSize)((0, import_kit2.getBytesEncoder)(), 256)]
340
+ ]),
341
+ (value) => ({ ...value, discriminator: AIRDROP_CONFIG_DISCRIMINATOR })
342
+ );
343
+ }
344
+ function getAirdropConfigDecoder() {
345
+ return (0, import_kit2.getStructDecoder)([
346
+ ["discriminator", (0, import_kit2.fixDecoderSize)((0, import_kit2.getBytesDecoder)(), 8)],
347
+ ["authority", (0, import_kit2.getAddressDecoder)()],
348
+ ["protocolTreasury", (0, import_kit2.getAddressDecoder)()],
349
+ ["wlRoot", (0, import_kit2.fixDecoderSize)((0, import_kit2.getBytesDecoder)(), 32)],
350
+ ["protocolFee", (0, import_kit2.getU64Decoder)()],
351
+ ["airdropMasterCreateFee", (0, import_kit2.getU64Decoder)()],
352
+ ["maxClaimFee", (0, import_kit2.getU64Decoder)()],
353
+ ["maxActionFee", (0, import_kit2.getU64Decoder)()],
354
+ ["minAirdropDuration", (0, import_kit2.getI64Decoder)()],
355
+ ["defaultAirdropDuration", (0, import_kit2.getI64Decoder)()],
356
+ ["maxAirdropDuration", (0, import_kit2.getI64Decoder)()],
357
+ ["updateGracePeriod", (0, import_kit2.getI64Decoder)()],
358
+ ["masterFeeBps", (0, import_kit2.getU16Decoder)()],
359
+ ["version", (0, import_kit2.getU8Decoder)()],
360
+ ["bump", (0, import_kit2.getU8Decoder)()],
361
+ ["padding", (0, import_kit2.fixDecoderSize)((0, import_kit2.getBytesDecoder)(), 4)],
362
+ ["reserved", (0, import_kit2.fixDecoderSize)((0, import_kit2.getBytesDecoder)(), 256)]
363
+ ]);
364
+ }
365
+ function getAirdropConfigCodec() {
366
+ return (0, import_kit2.combineCodec)(getAirdropConfigEncoder(), getAirdropConfigDecoder());
367
+ }
368
+ function decodeAirdropConfig(encodedAccount) {
369
+ return (0, import_kit2.decodeAccount)(
370
+ encodedAccount,
371
+ getAirdropConfigDecoder()
372
+ );
373
+ }
374
+ async function fetchAirdropConfig(rpc, address, config) {
375
+ const maybeAccount = await fetchMaybeAirdropConfig(rpc, address, config);
376
+ (0, import_kit2.assertAccountExists)(maybeAccount);
377
+ return maybeAccount;
378
+ }
379
+ async function fetchMaybeAirdropConfig(rpc, address, config) {
380
+ const maybeAccount = await (0, import_kit2.fetchEncodedAccount)(rpc, address, config);
381
+ return decodeAirdropConfig(maybeAccount);
382
+ }
383
+ async function fetchAllAirdropConfig(rpc, addresses, config) {
384
+ const maybeAccounts = await fetchAllMaybeAirdropConfig(
385
+ rpc,
386
+ addresses,
387
+ config
388
+ );
389
+ (0, import_kit2.assertAccountsExist)(maybeAccounts);
390
+ return maybeAccounts;
391
+ }
392
+ async function fetchAllMaybeAirdropConfig(rpc, addresses, config) {
393
+ const maybeAccounts = await (0, import_kit2.fetchEncodedAccounts)(rpc, addresses, config);
394
+ return maybeAccounts.map((maybeAccount) => decodeAirdropConfig(maybeAccount));
395
+ }
396
+ function getAirdropConfigSize() {
397
+ return 432;
398
+ }
399
+
400
+ // src/accounts/airdropMaster.ts
401
+ var import_kit3 = require("@solana/kit");
402
+ var AIRDROP_MASTER_DISCRIMINATOR = new Uint8Array([
403
+ 31,
404
+ 109,
405
+ 100,
406
+ 62,
407
+ 106,
408
+ 173,
409
+ 5,
410
+ 4
411
+ ]);
412
+ function getAirdropMasterDiscriminatorBytes() {
413
+ return (0, import_kit3.fixEncoderSize)((0, import_kit3.getBytesEncoder)(), 8).encode(
414
+ AIRDROP_MASTER_DISCRIMINATOR
415
+ );
416
+ }
417
+ function getAirdropMasterEncoder() {
418
+ return (0, import_kit3.transformEncoder)(
419
+ (0, import_kit3.getStructEncoder)([
420
+ ["discriminator", (0, import_kit3.fixEncoderSize)((0, import_kit3.getBytesEncoder)(), 8)],
421
+ ["creator", (0, import_kit3.getAddressEncoder)()],
422
+ ["authority", (0, import_kit3.getAddressEncoder)()],
423
+ ["treasury", (0, import_kit3.getAddressEncoder)()],
424
+ ["createdAirdrops", (0, import_kit3.getU64Encoder)()],
425
+ ["points", (0, import_kit3.getU64Encoder)()],
426
+ ["totalClaimCount", (0, import_kit3.getU64Encoder)()],
427
+ ["monetizedClaimQuota", (0, import_kit3.getU64Encoder)()],
428
+ ["monetizedClaimCount", (0, import_kit3.getU64Encoder)()],
429
+ ["airdropUpdateFee", (0, import_kit3.getU64Encoder)()],
430
+ ["airdropCreationFee", (0, import_kit3.getU64Encoder)()],
431
+ ["airdropClaimFee", (0, import_kit3.getU64Encoder)()],
432
+ ["airdropDelegateFee", (0, import_kit3.getU64Encoder)()],
433
+ ["bitmapCreationFee", (0, import_kit3.getU64Encoder)()],
434
+ ["bump", (0, import_kit3.getU8Encoder)()],
435
+ ["padding", (0, import_kit3.fixEncoderSize)((0, import_kit3.getBytesEncoder)(), 7)]
436
+ ]),
437
+ (value) => ({ ...value, discriminator: AIRDROP_MASTER_DISCRIMINATOR })
438
+ );
439
+ }
440
+ function getAirdropMasterDecoder() {
441
+ return (0, import_kit3.getStructDecoder)([
442
+ ["discriminator", (0, import_kit3.fixDecoderSize)((0, import_kit3.getBytesDecoder)(), 8)],
443
+ ["creator", (0, import_kit3.getAddressDecoder)()],
444
+ ["authority", (0, import_kit3.getAddressDecoder)()],
445
+ ["treasury", (0, import_kit3.getAddressDecoder)()],
446
+ ["createdAirdrops", (0, import_kit3.getU64Decoder)()],
447
+ ["points", (0, import_kit3.getU64Decoder)()],
448
+ ["totalClaimCount", (0, import_kit3.getU64Decoder)()],
449
+ ["monetizedClaimQuota", (0, import_kit3.getU64Decoder)()],
450
+ ["monetizedClaimCount", (0, import_kit3.getU64Decoder)()],
451
+ ["airdropUpdateFee", (0, import_kit3.getU64Decoder)()],
452
+ ["airdropCreationFee", (0, import_kit3.getU64Decoder)()],
453
+ ["airdropClaimFee", (0, import_kit3.getU64Decoder)()],
454
+ ["airdropDelegateFee", (0, import_kit3.getU64Decoder)()],
455
+ ["bitmapCreationFee", (0, import_kit3.getU64Decoder)()],
456
+ ["bump", (0, import_kit3.getU8Decoder)()],
457
+ ["padding", (0, import_kit3.fixDecoderSize)((0, import_kit3.getBytesDecoder)(), 7)]
458
+ ]);
459
+ }
460
+ function getAirdropMasterCodec() {
461
+ return (0, import_kit3.combineCodec)(getAirdropMasterEncoder(), getAirdropMasterDecoder());
462
+ }
463
+ function decodeAirdropMaster(encodedAccount) {
464
+ return (0, import_kit3.decodeAccount)(
465
+ encodedAccount,
466
+ getAirdropMasterDecoder()
467
+ );
468
+ }
469
+ async function fetchAirdropMaster(rpc, address, config) {
470
+ const maybeAccount = await fetchMaybeAirdropMaster(rpc, address, config);
471
+ (0, import_kit3.assertAccountExists)(maybeAccount);
472
+ return maybeAccount;
473
+ }
474
+ async function fetchMaybeAirdropMaster(rpc, address, config) {
475
+ const maybeAccount = await (0, import_kit3.fetchEncodedAccount)(rpc, address, config);
476
+ return decodeAirdropMaster(maybeAccount);
477
+ }
478
+ async function fetchAllAirdropMaster(rpc, addresses, config) {
479
+ const maybeAccounts = await fetchAllMaybeAirdropMaster(
480
+ rpc,
481
+ addresses,
482
+ config
483
+ );
484
+ (0, import_kit3.assertAccountsExist)(maybeAccounts);
485
+ return maybeAccounts;
486
+ }
487
+ async function fetchAllMaybeAirdropMaster(rpc, addresses, config) {
488
+ const maybeAccounts = await (0, import_kit3.fetchEncodedAccounts)(rpc, addresses, config);
489
+ return maybeAccounts.map((maybeAccount) => decodeAirdropMaster(maybeAccount));
490
+ }
491
+ function getAirdropMasterSize() {
492
+ return 192;
493
+ }
494
+
495
+ // src/accounts/bitmapAccount.ts
496
+ var import_kit4 = require("@solana/kit");
497
+ var BITMAP_ACCOUNT_DISCRIMINATOR = new Uint8Array([
498
+ 152,
499
+ 161,
500
+ 147,
501
+ 85,
502
+ 213,
503
+ 38,
504
+ 59,
505
+ 48
506
+ ]);
507
+ function getBitmapAccountDiscriminatorBytes() {
508
+ return (0, import_kit4.fixEncoderSize)((0, import_kit4.getBytesEncoder)(), 8).encode(
509
+ BITMAP_ACCOUNT_DISCRIMINATOR
510
+ );
511
+ }
512
+ function getBitmapAccountEncoder() {
513
+ return (0, import_kit4.transformEncoder)(
514
+ (0, import_kit4.getStructEncoder)([
515
+ ["discriminator", (0, import_kit4.fixEncoderSize)((0, import_kit4.getBytesEncoder)(), 8)],
516
+ ["authority", (0, import_kit4.getAddressEncoder)()],
517
+ ["airdrop", (0, import_kit4.getAddressEncoder)()],
518
+ ["total", (0, import_kit4.getU32Encoder)()],
519
+ ["claimedBitmap", (0, import_kit4.fixEncoderSize)((0, import_kit4.getBytesEncoder)(), 1e3)],
520
+ ["id", (0, import_kit4.getU16Encoder)()],
521
+ ["version", (0, import_kit4.getU8Encoder)()],
522
+ ["bump", (0, import_kit4.getU8Encoder)()]
523
+ ]),
524
+ (value) => ({ ...value, discriminator: BITMAP_ACCOUNT_DISCRIMINATOR })
525
+ );
526
+ }
527
+ function getBitmapAccountDecoder() {
528
+ return (0, import_kit4.getStructDecoder)([
529
+ ["discriminator", (0, import_kit4.fixDecoderSize)((0, import_kit4.getBytesDecoder)(), 8)],
530
+ ["authority", (0, import_kit4.getAddressDecoder)()],
531
+ ["airdrop", (0, import_kit4.getAddressDecoder)()],
532
+ ["total", (0, import_kit4.getU32Decoder)()],
533
+ ["claimedBitmap", (0, import_kit4.fixDecoderSize)((0, import_kit4.getBytesDecoder)(), 1e3)],
534
+ ["id", (0, import_kit4.getU16Decoder)()],
535
+ ["version", (0, import_kit4.getU8Decoder)()],
536
+ ["bump", (0, import_kit4.getU8Decoder)()]
537
+ ]);
538
+ }
539
+ function getBitmapAccountCodec() {
540
+ return (0, import_kit4.combineCodec)(getBitmapAccountEncoder(), getBitmapAccountDecoder());
541
+ }
542
+ function decodeBitmapAccount(encodedAccount) {
543
+ return (0, import_kit4.decodeAccount)(
544
+ encodedAccount,
545
+ getBitmapAccountDecoder()
546
+ );
547
+ }
548
+ async function fetchBitmapAccount(rpc, address, config) {
549
+ const maybeAccount = await fetchMaybeBitmapAccount(rpc, address, config);
550
+ (0, import_kit4.assertAccountExists)(maybeAccount);
551
+ return maybeAccount;
552
+ }
553
+ async function fetchMaybeBitmapAccount(rpc, address, config) {
554
+ const maybeAccount = await (0, import_kit4.fetchEncodedAccount)(rpc, address, config);
555
+ return decodeBitmapAccount(maybeAccount);
556
+ }
557
+ async function fetchAllBitmapAccount(rpc, addresses, config) {
558
+ const maybeAccounts = await fetchAllMaybeBitmapAccount(
559
+ rpc,
560
+ addresses,
561
+ config
562
+ );
563
+ (0, import_kit4.assertAccountsExist)(maybeAccounts);
564
+ return maybeAccounts;
565
+ }
566
+ async function fetchAllMaybeBitmapAccount(rpc, addresses, config) {
567
+ const maybeAccounts = await (0, import_kit4.fetchEncodedAccounts)(rpc, addresses, config);
568
+ return maybeAccounts.map((maybeAccount) => decodeBitmapAccount(maybeAccount));
569
+ }
570
+ function getBitmapAccountSize() {
571
+ return 1080;
572
+ }
573
+
574
+ // src/errors/dropsyAirdrop.ts
575
+ var import_kit13 = require("@solana/kit");
576
+
577
+ // src/programs/dropsyAirdrop.ts
578
+ var import_kit12 = require("@solana/kit");
579
+
580
+ // src/instructions/claimAirdrop.ts
581
+ var import_kit6 = require("@solana/kit");
582
+
583
+ // src/shared/index.ts
584
+ var import_kit5 = require("@solana/kit");
585
+ function expectSome(value) {
586
+ if (value === null || value === void 0) {
587
+ throw new Error("Expected a value but received null or undefined.");
588
+ }
589
+ return value;
590
+ }
591
+ function expectAddress(value) {
592
+ if (!value) {
593
+ throw new Error("Expected a Address.");
594
+ }
595
+ if (typeof value === "object" && "address" in value) {
596
+ return value.address;
597
+ }
598
+ if (Array.isArray(value)) {
599
+ return value[0];
600
+ }
601
+ return value;
602
+ }
603
+ function getAccountMetaFactory(programAddress, optionalAccountStrategy) {
604
+ return (account) => {
605
+ if (!account.value) {
606
+ if (optionalAccountStrategy === "omitted") return;
607
+ return Object.freeze({
608
+ address: programAddress,
609
+ role: import_kit5.AccountRole.READONLY
610
+ });
611
+ }
612
+ const writableRole = account.isWritable ? import_kit5.AccountRole.WRITABLE : import_kit5.AccountRole.READONLY;
613
+ return Object.freeze({
614
+ address: expectAddress(account.value),
615
+ role: isTransactionSigner(account.value) ? (0, import_kit5.upgradeRoleToSigner)(writableRole) : writableRole,
616
+ ...isTransactionSigner(account.value) ? { signer: account.value } : {}
617
+ });
618
+ };
619
+ }
620
+ function isTransactionSigner(value) {
621
+ return !!value && typeof value === "object" && "address" in value && (0, import_kit5.isTransactionSigner)(value);
622
+ }
623
+
624
+ // src/instructions/claimAirdrop.ts
625
+ var CLAIM_AIRDROP_DISCRIMINATOR = new Uint8Array([
626
+ 137,
627
+ 50,
628
+ 122,
629
+ 111,
630
+ 89,
631
+ 254,
632
+ 8,
633
+ 20
634
+ ]);
635
+ function getClaimAirdropDiscriminatorBytes() {
636
+ return (0, import_kit6.fixEncoderSize)((0, import_kit6.getBytesEncoder)(), 8).encode(
637
+ CLAIM_AIRDROP_DISCRIMINATOR
638
+ );
639
+ }
640
+ function getClaimAirdropInstructionDataEncoder() {
641
+ return (0, import_kit6.transformEncoder)(
642
+ (0, import_kit6.getStructEncoder)([
643
+ ["discriminator", (0, import_kit6.fixEncoderSize)((0, import_kit6.getBytesEncoder)(), 8)],
644
+ ["index", (0, import_kit6.getU64Encoder)()],
645
+ ["proof", (0, import_kit6.getArrayEncoder)((0, import_kit6.fixEncoderSize)((0, import_kit6.getBytesEncoder)(), 32))],
646
+ ["amount", (0, import_kit6.getU64Encoder)()],
647
+ ["claimMapIndex", (0, import_kit6.getU16Encoder)()]
648
+ ]),
649
+ (value) => ({ ...value, discriminator: CLAIM_AIRDROP_DISCRIMINATOR })
650
+ );
651
+ }
652
+ function getClaimAirdropInstructionDataDecoder() {
653
+ return (0, import_kit6.getStructDecoder)([
654
+ ["discriminator", (0, import_kit6.fixDecoderSize)((0, import_kit6.getBytesDecoder)(), 8)],
655
+ ["index", (0, import_kit6.getU64Decoder)()],
656
+ ["proof", (0, import_kit6.getArrayDecoder)((0, import_kit6.fixDecoderSize)((0, import_kit6.getBytesDecoder)(), 32))],
657
+ ["amount", (0, import_kit6.getU64Decoder)()],
658
+ ["claimMapIndex", (0, import_kit6.getU16Decoder)()]
659
+ ]);
660
+ }
661
+ function getClaimAirdropInstructionDataCodec() {
662
+ return (0, import_kit6.combineCodec)(
663
+ getClaimAirdropInstructionDataEncoder(),
664
+ getClaimAirdropInstructionDataDecoder()
665
+ );
666
+ }
667
+ async function getClaimAirdropInstructionAsync(input, config) {
668
+ const programAddress = config?.programAddress ?? DROPSY_AIRDROP_PROGRAM_ADDRESS;
669
+ const originalAccounts = {
670
+ sourceTokenAccount: {
671
+ value: input.sourceTokenAccount ?? null,
672
+ isWritable: true
673
+ },
674
+ destinationTokenAccount: {
675
+ value: input.destinationTokenAccount ?? null,
676
+ isWritable: true
677
+ },
678
+ claimer: { value: input.claimer ?? null, isWritable: true },
679
+ mint: { value: input.mint ?? null, isWritable: false },
680
+ tokenProgram: { value: input.tokenProgram ?? null, isWritable: false },
681
+ associatedTokenProgram: {
682
+ value: input.associatedTokenProgram ?? null,
683
+ isWritable: false
684
+ },
685
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false },
686
+ airdropConfig: { value: input.airdropConfig ?? null, isWritable: false },
687
+ protocolTreasury: {
688
+ value: input.protocolTreasury ?? null,
689
+ isWritable: true
690
+ },
691
+ airdropMaster: { value: input.airdropMaster ?? null, isWritable: false },
692
+ treasury: { value: input.treasury ?? null, isWritable: true },
693
+ masterCreator: { value: input.masterCreator ?? null, isWritable: false },
694
+ airdrop: { value: input.airdrop ?? null, isWritable: true },
695
+ authority: { value: input.authority ?? null, isWritable: false },
696
+ bitmap: { value: input.bitmap ?? null, isWritable: true }
697
+ };
698
+ const accounts = originalAccounts;
699
+ const args = { ...input };
700
+ if (!accounts.tokenProgram.value) {
701
+ accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
702
+ }
703
+ if (!accounts.destinationTokenAccount.value) {
704
+ accounts.destinationTokenAccount.value = await (0, import_kit6.getProgramDerivedAddress)({
705
+ programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
706
+ seeds: [
707
+ (0, import_kit6.getAddressEncoder)().encode(expectAddress(accounts.claimer.value)),
708
+ (0, import_kit6.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
709
+ (0, import_kit6.getAddressEncoder)().encode(expectAddress(accounts.mint.value))
710
+ ]
711
+ });
712
+ }
713
+ if (!accounts.associatedTokenProgram.value) {
714
+ accounts.associatedTokenProgram.value = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
715
+ }
716
+ if (!accounts.systemProgram.value) {
717
+ accounts.systemProgram.value = "11111111111111111111111111111111";
718
+ }
719
+ if (!accounts.airdropConfig.value) {
720
+ accounts.airdropConfig.value = await (0, import_kit6.getProgramDerivedAddress)({
721
+ programAddress,
722
+ seeds: [
723
+ (0, import_kit6.getBytesEncoder)().encode(
724
+ new Uint8Array([
725
+ 97,
726
+ 105,
727
+ 114,
728
+ 100,
729
+ 114,
730
+ 111,
731
+ 112,
732
+ 95,
733
+ 99,
734
+ 111,
735
+ 110,
736
+ 102,
737
+ 105,
738
+ 103
739
+ ])
740
+ )
741
+ ]
742
+ });
743
+ }
744
+ if (!accounts.airdropMaster.value) {
745
+ accounts.airdropMaster.value = await (0, import_kit6.getProgramDerivedAddress)({
746
+ programAddress,
747
+ seeds: [
748
+ (0, import_kit6.getBytesEncoder)().encode(
749
+ new Uint8Array([
750
+ 97,
751
+ 105,
752
+ 114,
753
+ 100,
754
+ 114,
755
+ 111,
756
+ 112,
757
+ 95,
758
+ 109,
759
+ 97,
760
+ 115,
761
+ 116,
762
+ 101,
763
+ 114
764
+ ])
765
+ ),
766
+ (0, import_kit6.getAddressEncoder)().encode(expectAddress(accounts.masterCreator.value))
767
+ ]
768
+ });
769
+ }
770
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
771
+ return Object.freeze({
772
+ accounts: [
773
+ getAccountMeta(accounts.sourceTokenAccount),
774
+ getAccountMeta(accounts.destinationTokenAccount),
775
+ getAccountMeta(accounts.claimer),
776
+ getAccountMeta(accounts.mint),
777
+ getAccountMeta(accounts.tokenProgram),
778
+ getAccountMeta(accounts.associatedTokenProgram),
779
+ getAccountMeta(accounts.systemProgram),
780
+ getAccountMeta(accounts.airdropConfig),
781
+ getAccountMeta(accounts.protocolTreasury),
782
+ getAccountMeta(accounts.airdropMaster),
783
+ getAccountMeta(accounts.treasury),
784
+ getAccountMeta(accounts.masterCreator),
785
+ getAccountMeta(accounts.airdrop),
786
+ getAccountMeta(accounts.authority),
787
+ getAccountMeta(accounts.bitmap)
788
+ ],
789
+ data: getClaimAirdropInstructionDataEncoder().encode(
790
+ args
791
+ ),
792
+ programAddress
793
+ });
794
+ }
795
+ function getClaimAirdropInstruction(input, config) {
796
+ const programAddress = config?.programAddress ?? DROPSY_AIRDROP_PROGRAM_ADDRESS;
797
+ const originalAccounts = {
798
+ sourceTokenAccount: {
799
+ value: input.sourceTokenAccount ?? null,
800
+ isWritable: true
801
+ },
802
+ destinationTokenAccount: {
803
+ value: input.destinationTokenAccount ?? null,
804
+ isWritable: true
805
+ },
806
+ claimer: { value: input.claimer ?? null, isWritable: true },
807
+ mint: { value: input.mint ?? null, isWritable: false },
808
+ tokenProgram: { value: input.tokenProgram ?? null, isWritable: false },
809
+ associatedTokenProgram: {
810
+ value: input.associatedTokenProgram ?? null,
811
+ isWritable: false
812
+ },
813
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false },
814
+ airdropConfig: { value: input.airdropConfig ?? null, isWritable: false },
815
+ protocolTreasury: {
816
+ value: input.protocolTreasury ?? null,
817
+ isWritable: true
818
+ },
819
+ airdropMaster: { value: input.airdropMaster ?? null, isWritable: false },
820
+ treasury: { value: input.treasury ?? null, isWritable: true },
821
+ masterCreator: { value: input.masterCreator ?? null, isWritable: false },
822
+ airdrop: { value: input.airdrop ?? null, isWritable: true },
823
+ authority: { value: input.authority ?? null, isWritable: false },
824
+ bitmap: { value: input.bitmap ?? null, isWritable: true }
825
+ };
826
+ const accounts = originalAccounts;
827
+ const args = { ...input };
828
+ if (!accounts.tokenProgram.value) {
829
+ accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
830
+ }
831
+ if (!accounts.associatedTokenProgram.value) {
832
+ accounts.associatedTokenProgram.value = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
833
+ }
834
+ if (!accounts.systemProgram.value) {
835
+ accounts.systemProgram.value = "11111111111111111111111111111111";
836
+ }
837
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
838
+ return Object.freeze({
839
+ accounts: [
840
+ getAccountMeta(accounts.sourceTokenAccount),
841
+ getAccountMeta(accounts.destinationTokenAccount),
842
+ getAccountMeta(accounts.claimer),
843
+ getAccountMeta(accounts.mint),
844
+ getAccountMeta(accounts.tokenProgram),
845
+ getAccountMeta(accounts.associatedTokenProgram),
846
+ getAccountMeta(accounts.systemProgram),
847
+ getAccountMeta(accounts.airdropConfig),
848
+ getAccountMeta(accounts.protocolTreasury),
849
+ getAccountMeta(accounts.airdropMaster),
850
+ getAccountMeta(accounts.treasury),
851
+ getAccountMeta(accounts.masterCreator),
852
+ getAccountMeta(accounts.airdrop),
853
+ getAccountMeta(accounts.authority),
854
+ getAccountMeta(accounts.bitmap)
855
+ ],
856
+ data: getClaimAirdropInstructionDataEncoder().encode(
857
+ args
858
+ ),
859
+ programAddress
860
+ });
861
+ }
862
+ function parseClaimAirdropInstruction(instruction) {
863
+ if (instruction.accounts.length < 15) {
864
+ throw new Error("Not enough accounts");
865
+ }
866
+ let accountIndex = 0;
867
+ const getNextAccount = () => {
868
+ const accountMeta = instruction.accounts[accountIndex];
869
+ accountIndex += 1;
870
+ return accountMeta;
871
+ };
872
+ return {
873
+ programAddress: instruction.programAddress,
874
+ accounts: {
875
+ sourceTokenAccount: getNextAccount(),
876
+ destinationTokenAccount: getNextAccount(),
877
+ claimer: getNextAccount(),
878
+ mint: getNextAccount(),
879
+ tokenProgram: getNextAccount(),
880
+ associatedTokenProgram: getNextAccount(),
881
+ systemProgram: getNextAccount(),
882
+ airdropConfig: getNextAccount(),
883
+ protocolTreasury: getNextAccount(),
884
+ airdropMaster: getNextAccount(),
885
+ treasury: getNextAccount(),
886
+ masterCreator: getNextAccount(),
887
+ airdrop: getNextAccount(),
888
+ authority: getNextAccount(),
889
+ bitmap: getNextAccount()
890
+ },
891
+ data: getClaimAirdropInstructionDataDecoder().decode(instruction.data)
892
+ };
893
+ }
894
+
895
+ // src/instructions/createAirdrop.ts
896
+ var import_kit7 = require("@solana/kit");
897
+ var CREATE_AIRDROP_DISCRIMINATOR = new Uint8Array([
898
+ 227,
899
+ 135,
900
+ 208,
901
+ 66,
902
+ 137,
903
+ 177,
904
+ 80,
905
+ 94
906
+ ]);
907
+ function getCreateAirdropDiscriminatorBytes() {
908
+ return (0, import_kit7.fixEncoderSize)((0, import_kit7.getBytesEncoder)(), 8).encode(
909
+ CREATE_AIRDROP_DISCRIMINATOR
910
+ );
911
+ }
912
+ function getCreateAirdropInstructionDataEncoder() {
913
+ return (0, import_kit7.transformEncoder)(
914
+ (0, import_kit7.getStructEncoder)([
915
+ ["discriminator", (0, import_kit7.fixEncoderSize)((0, import_kit7.getBytesEncoder)(), 8)],
916
+ ["id", (0, import_kit7.getU64Encoder)()],
917
+ ["merkleRoot", (0, import_kit7.getOptionEncoder)((0, import_kit7.fixEncoderSize)((0, import_kit7.getBytesEncoder)(), 32))],
918
+ ["startsAt", (0, import_kit7.getOptionEncoder)((0, import_kit7.getI64Encoder)())],
919
+ ["endsAt", (0, import_kit7.getOptionEncoder)((0, import_kit7.getI64Encoder)())],
920
+ ["version", (0, import_kit7.getOptionEncoder)((0, import_kit7.getU8Encoder)())],
921
+ ["delegateAuthority", (0, import_kit7.getOptionEncoder)((0, import_kit7.getAddressEncoder)())]
922
+ ]),
923
+ (value) => ({ ...value, discriminator: CREATE_AIRDROP_DISCRIMINATOR })
924
+ );
925
+ }
926
+ function getCreateAirdropInstructionDataDecoder() {
927
+ return (0, import_kit7.getStructDecoder)([
928
+ ["discriminator", (0, import_kit7.fixDecoderSize)((0, import_kit7.getBytesDecoder)(), 8)],
929
+ ["id", (0, import_kit7.getU64Decoder)()],
930
+ ["merkleRoot", (0, import_kit7.getOptionDecoder)((0, import_kit7.fixDecoderSize)((0, import_kit7.getBytesDecoder)(), 32))],
931
+ ["startsAt", (0, import_kit7.getOptionDecoder)((0, import_kit7.getI64Decoder)())],
932
+ ["endsAt", (0, import_kit7.getOptionDecoder)((0, import_kit7.getI64Decoder)())],
933
+ ["version", (0, import_kit7.getOptionDecoder)((0, import_kit7.getU8Decoder)())],
934
+ ["delegateAuthority", (0, import_kit7.getOptionDecoder)((0, import_kit7.getAddressDecoder)())]
935
+ ]);
936
+ }
937
+ function getCreateAirdropInstructionDataCodec() {
938
+ return (0, import_kit7.combineCodec)(
939
+ getCreateAirdropInstructionDataEncoder(),
940
+ getCreateAirdropInstructionDataDecoder()
941
+ );
942
+ }
943
+ async function getCreateAirdropInstructionAsync(input, config) {
944
+ const programAddress = config?.programAddress ?? DROPSY_AIRDROP_PROGRAM_ADDRESS;
945
+ const originalAccounts = {
946
+ airdropConfig: { value: input.airdropConfig ?? null, isWritable: false },
947
+ protocolTreasury: {
948
+ value: input.protocolTreasury ?? null,
949
+ isWritable: true
950
+ },
951
+ airdropMaster: { value: input.airdropMaster ?? null, isWritable: false },
952
+ treasury: { value: input.treasury ?? null, isWritable: true },
953
+ masterCreator: { value: input.masterCreator ?? null, isWritable: false },
954
+ airdrop: { value: input.airdrop ?? null, isWritable: true },
955
+ mint: { value: input.mint ?? null, isWritable: false },
956
+ authority: { value: input.authority ?? null, isWritable: true },
957
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false }
958
+ };
959
+ const accounts = originalAccounts;
960
+ const args = { ...input };
961
+ if (!accounts.airdropConfig.value) {
962
+ accounts.airdropConfig.value = await (0, import_kit7.getProgramDerivedAddress)({
963
+ programAddress,
964
+ seeds: [
965
+ (0, import_kit7.getBytesEncoder)().encode(
966
+ new Uint8Array([
967
+ 97,
968
+ 105,
969
+ 114,
970
+ 100,
971
+ 114,
972
+ 111,
973
+ 112,
974
+ 95,
975
+ 99,
976
+ 111,
977
+ 110,
978
+ 102,
979
+ 105,
980
+ 103
981
+ ])
982
+ )
983
+ ]
984
+ });
985
+ }
986
+ if (!accounts.airdropMaster.value) {
987
+ accounts.airdropMaster.value = await (0, import_kit7.getProgramDerivedAddress)({
988
+ programAddress,
989
+ seeds: [
990
+ (0, import_kit7.getBytesEncoder)().encode(
991
+ new Uint8Array([
992
+ 97,
993
+ 105,
994
+ 114,
995
+ 100,
996
+ 114,
997
+ 111,
998
+ 112,
999
+ 95,
1000
+ 109,
1001
+ 97,
1002
+ 115,
1003
+ 116,
1004
+ 101,
1005
+ 114
1006
+ ])
1007
+ ),
1008
+ (0, import_kit7.getAddressEncoder)().encode(expectAddress(accounts.masterCreator.value))
1009
+ ]
1010
+ });
1011
+ }
1012
+ if (!accounts.systemProgram.value) {
1013
+ accounts.systemProgram.value = "11111111111111111111111111111111";
1014
+ }
1015
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
1016
+ return Object.freeze({
1017
+ accounts: [
1018
+ getAccountMeta(accounts.airdropConfig),
1019
+ getAccountMeta(accounts.protocolTreasury),
1020
+ getAccountMeta(accounts.airdropMaster),
1021
+ getAccountMeta(accounts.treasury),
1022
+ getAccountMeta(accounts.masterCreator),
1023
+ getAccountMeta(accounts.airdrop),
1024
+ getAccountMeta(accounts.mint),
1025
+ getAccountMeta(accounts.authority),
1026
+ getAccountMeta(accounts.systemProgram)
1027
+ ],
1028
+ data: getCreateAirdropInstructionDataEncoder().encode(
1029
+ args
1030
+ ),
1031
+ programAddress
1032
+ });
1033
+ }
1034
+ function getCreateAirdropInstruction(input, config) {
1035
+ const programAddress = config?.programAddress ?? DROPSY_AIRDROP_PROGRAM_ADDRESS;
1036
+ const originalAccounts = {
1037
+ airdropConfig: { value: input.airdropConfig ?? null, isWritable: false },
1038
+ protocolTreasury: {
1039
+ value: input.protocolTreasury ?? null,
1040
+ isWritable: true
1041
+ },
1042
+ airdropMaster: { value: input.airdropMaster ?? null, isWritable: false },
1043
+ treasury: { value: input.treasury ?? null, isWritable: true },
1044
+ masterCreator: { value: input.masterCreator ?? null, isWritable: false },
1045
+ airdrop: { value: input.airdrop ?? null, isWritable: true },
1046
+ mint: { value: input.mint ?? null, isWritable: false },
1047
+ authority: { value: input.authority ?? null, isWritable: true },
1048
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false }
1049
+ };
1050
+ const accounts = originalAccounts;
1051
+ const args = { ...input };
1052
+ if (!accounts.systemProgram.value) {
1053
+ accounts.systemProgram.value = "11111111111111111111111111111111";
1054
+ }
1055
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
1056
+ return Object.freeze({
1057
+ accounts: [
1058
+ getAccountMeta(accounts.airdropConfig),
1059
+ getAccountMeta(accounts.protocolTreasury),
1060
+ getAccountMeta(accounts.airdropMaster),
1061
+ getAccountMeta(accounts.treasury),
1062
+ getAccountMeta(accounts.masterCreator),
1063
+ getAccountMeta(accounts.airdrop),
1064
+ getAccountMeta(accounts.mint),
1065
+ getAccountMeta(accounts.authority),
1066
+ getAccountMeta(accounts.systemProgram)
1067
+ ],
1068
+ data: getCreateAirdropInstructionDataEncoder().encode(
1069
+ args
1070
+ ),
1071
+ programAddress
1072
+ });
1073
+ }
1074
+ function parseCreateAirdropInstruction(instruction) {
1075
+ if (instruction.accounts.length < 9) {
1076
+ throw new Error("Not enough accounts");
1077
+ }
1078
+ let accountIndex = 0;
1079
+ const getNextAccount = () => {
1080
+ const accountMeta = instruction.accounts[accountIndex];
1081
+ accountIndex += 1;
1082
+ return accountMeta;
1083
+ };
1084
+ return {
1085
+ programAddress: instruction.programAddress,
1086
+ accounts: {
1087
+ airdropConfig: getNextAccount(),
1088
+ protocolTreasury: getNextAccount(),
1089
+ airdropMaster: getNextAccount(),
1090
+ treasury: getNextAccount(),
1091
+ masterCreator: getNextAccount(),
1092
+ airdrop: getNextAccount(),
1093
+ mint: getNextAccount(),
1094
+ authority: getNextAccount(),
1095
+ systemProgram: getNextAccount()
1096
+ },
1097
+ data: getCreateAirdropInstructionDataDecoder().decode(instruction.data)
1098
+ };
1099
+ }
1100
+
1101
+ // src/instructions/createBitmap.ts
1102
+ var import_kit8 = require("@solana/kit");
1103
+ var CREATE_BITMAP_DISCRIMINATOR = new Uint8Array([
1104
+ 69,
1105
+ 92,
1106
+ 61,
1107
+ 190,
1108
+ 154,
1109
+ 237,
1110
+ 116,
1111
+ 247
1112
+ ]);
1113
+ function getCreateBitmapDiscriminatorBytes() {
1114
+ return (0, import_kit8.fixEncoderSize)((0, import_kit8.getBytesEncoder)(), 8).encode(
1115
+ CREATE_BITMAP_DISCRIMINATOR
1116
+ );
1117
+ }
1118
+ function getCreateBitmapInstructionDataEncoder() {
1119
+ return (0, import_kit8.transformEncoder)(
1120
+ (0, import_kit8.getStructEncoder)([
1121
+ ["discriminator", (0, import_kit8.fixEncoderSize)((0, import_kit8.getBytesEncoder)(), 8)],
1122
+ ["id", (0, import_kit8.getU16Encoder)()],
1123
+ ["total", (0, import_kit8.getU32Encoder)()]
1124
+ ]),
1125
+ (value) => ({ ...value, discriminator: CREATE_BITMAP_DISCRIMINATOR })
1126
+ );
1127
+ }
1128
+ function getCreateBitmapInstructionDataDecoder() {
1129
+ return (0, import_kit8.getStructDecoder)([
1130
+ ["discriminator", (0, import_kit8.fixDecoderSize)((0, import_kit8.getBytesDecoder)(), 8)],
1131
+ ["id", (0, import_kit8.getU16Decoder)()],
1132
+ ["total", (0, import_kit8.getU32Decoder)()]
1133
+ ]);
1134
+ }
1135
+ function getCreateBitmapInstructionDataCodec() {
1136
+ return (0, import_kit8.combineCodec)(
1137
+ getCreateBitmapInstructionDataEncoder(),
1138
+ getCreateBitmapInstructionDataDecoder()
1139
+ );
1140
+ }
1141
+ async function getCreateBitmapInstructionAsync(input, config) {
1142
+ const programAddress = config?.programAddress ?? DROPSY_AIRDROP_PROGRAM_ADDRESS;
1143
+ const originalAccounts = {
1144
+ airdropConfig: { value: input.airdropConfig ?? null, isWritable: false },
1145
+ protocolTreasury: {
1146
+ value: input.protocolTreasury ?? null,
1147
+ isWritable: true
1148
+ },
1149
+ airdropMaster: { value: input.airdropMaster ?? null, isWritable: false },
1150
+ treasury: { value: input.treasury ?? null, isWritable: true },
1151
+ masterCreator: { value: input.masterCreator ?? null, isWritable: false },
1152
+ bitmap: { value: input.bitmap ?? null, isWritable: true },
1153
+ airdrop: { value: input.airdrop ?? null, isWritable: true },
1154
+ mint: { value: input.mint ?? null, isWritable: false },
1155
+ authority: { value: input.authority ?? null, isWritable: true },
1156
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false }
1157
+ };
1158
+ const accounts = originalAccounts;
1159
+ const args = { ...input };
1160
+ if (!accounts.airdropConfig.value) {
1161
+ accounts.airdropConfig.value = await (0, import_kit8.getProgramDerivedAddress)({
1162
+ programAddress,
1163
+ seeds: [
1164
+ (0, import_kit8.getBytesEncoder)().encode(
1165
+ new Uint8Array([
1166
+ 97,
1167
+ 105,
1168
+ 114,
1169
+ 100,
1170
+ 114,
1171
+ 111,
1172
+ 112,
1173
+ 95,
1174
+ 99,
1175
+ 111,
1176
+ 110,
1177
+ 102,
1178
+ 105,
1179
+ 103
1180
+ ])
1181
+ )
1182
+ ]
1183
+ });
1184
+ }
1185
+ if (!accounts.airdropMaster.value) {
1186
+ accounts.airdropMaster.value = await (0, import_kit8.getProgramDerivedAddress)({
1187
+ programAddress,
1188
+ seeds: [
1189
+ (0, import_kit8.getBytesEncoder)().encode(
1190
+ new Uint8Array([
1191
+ 97,
1192
+ 105,
1193
+ 114,
1194
+ 100,
1195
+ 114,
1196
+ 111,
1197
+ 112,
1198
+ 95,
1199
+ 109,
1200
+ 97,
1201
+ 115,
1202
+ 116,
1203
+ 101,
1204
+ 114
1205
+ ])
1206
+ ),
1207
+ (0, import_kit8.getAddressEncoder)().encode(expectAddress(accounts.masterCreator.value))
1208
+ ]
1209
+ });
1210
+ }
1211
+ if (!accounts.airdrop.value) {
1212
+ accounts.airdrop.value = await (0, import_kit8.getProgramDerivedAddress)({
1213
+ programAddress,
1214
+ seeds: [
1215
+ (0, import_kit8.getBytesEncoder)().encode(
1216
+ new Uint8Array([97, 105, 114, 100, 114, 111, 112])
1217
+ ),
1218
+ (0, import_kit8.getAddressEncoder)().encode(expectAddress(accounts.authority.value)),
1219
+ (0, import_kit8.getAddressEncoder)().encode(expectAddress(accounts.mint.value))
1220
+ ]
1221
+ });
1222
+ }
1223
+ if (!accounts.bitmap.value) {
1224
+ accounts.bitmap.value = await (0, import_kit8.getProgramDerivedAddress)({
1225
+ programAddress,
1226
+ seeds: [
1227
+ (0, import_kit8.getBytesEncoder)().encode(new Uint8Array([98, 105, 116, 109, 97, 112])),
1228
+ (0, import_kit8.getAddressEncoder)().encode(expectAddress(accounts.airdrop.value)),
1229
+ (0, import_kit8.getU16Encoder)().encode(expectSome(args.id))
1230
+ ]
1231
+ });
1232
+ }
1233
+ if (!accounts.systemProgram.value) {
1234
+ accounts.systemProgram.value = "11111111111111111111111111111111";
1235
+ }
1236
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
1237
+ return Object.freeze({
1238
+ accounts: [
1239
+ getAccountMeta(accounts.airdropConfig),
1240
+ getAccountMeta(accounts.protocolTreasury),
1241
+ getAccountMeta(accounts.airdropMaster),
1242
+ getAccountMeta(accounts.treasury),
1243
+ getAccountMeta(accounts.masterCreator),
1244
+ getAccountMeta(accounts.bitmap),
1245
+ getAccountMeta(accounts.airdrop),
1246
+ getAccountMeta(accounts.mint),
1247
+ getAccountMeta(accounts.authority),
1248
+ getAccountMeta(accounts.systemProgram)
1249
+ ],
1250
+ data: getCreateBitmapInstructionDataEncoder().encode(
1251
+ args
1252
+ ),
1253
+ programAddress
1254
+ });
1255
+ }
1256
+ function getCreateBitmapInstruction(input, config) {
1257
+ const programAddress = config?.programAddress ?? DROPSY_AIRDROP_PROGRAM_ADDRESS;
1258
+ const originalAccounts = {
1259
+ airdropConfig: { value: input.airdropConfig ?? null, isWritable: false },
1260
+ protocolTreasury: {
1261
+ value: input.protocolTreasury ?? null,
1262
+ isWritable: true
1263
+ },
1264
+ airdropMaster: { value: input.airdropMaster ?? null, isWritable: false },
1265
+ treasury: { value: input.treasury ?? null, isWritable: true },
1266
+ masterCreator: { value: input.masterCreator ?? null, isWritable: false },
1267
+ bitmap: { value: input.bitmap ?? null, isWritable: true },
1268
+ airdrop: { value: input.airdrop ?? null, isWritable: true },
1269
+ mint: { value: input.mint ?? null, isWritable: false },
1270
+ authority: { value: input.authority ?? null, isWritable: true },
1271
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false }
1272
+ };
1273
+ const accounts = originalAccounts;
1274
+ const args = { ...input };
1275
+ if (!accounts.systemProgram.value) {
1276
+ accounts.systemProgram.value = "11111111111111111111111111111111";
1277
+ }
1278
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
1279
+ return Object.freeze({
1280
+ accounts: [
1281
+ getAccountMeta(accounts.airdropConfig),
1282
+ getAccountMeta(accounts.protocolTreasury),
1283
+ getAccountMeta(accounts.airdropMaster),
1284
+ getAccountMeta(accounts.treasury),
1285
+ getAccountMeta(accounts.masterCreator),
1286
+ getAccountMeta(accounts.bitmap),
1287
+ getAccountMeta(accounts.airdrop),
1288
+ getAccountMeta(accounts.mint),
1289
+ getAccountMeta(accounts.authority),
1290
+ getAccountMeta(accounts.systemProgram)
1291
+ ],
1292
+ data: getCreateBitmapInstructionDataEncoder().encode(
1293
+ args
1294
+ ),
1295
+ programAddress
1296
+ });
1297
+ }
1298
+ function parseCreateBitmapInstruction(instruction) {
1299
+ if (instruction.accounts.length < 10) {
1300
+ throw new Error("Not enough accounts");
1301
+ }
1302
+ let accountIndex = 0;
1303
+ const getNextAccount = () => {
1304
+ const accountMeta = instruction.accounts[accountIndex];
1305
+ accountIndex += 1;
1306
+ return accountMeta;
1307
+ };
1308
+ return {
1309
+ programAddress: instruction.programAddress,
1310
+ accounts: {
1311
+ airdropConfig: getNextAccount(),
1312
+ protocolTreasury: getNextAccount(),
1313
+ airdropMaster: getNextAccount(),
1314
+ treasury: getNextAccount(),
1315
+ masterCreator: getNextAccount(),
1316
+ bitmap: getNextAccount(),
1317
+ airdrop: getNextAccount(),
1318
+ mint: getNextAccount(),
1319
+ authority: getNextAccount(),
1320
+ systemProgram: getNextAccount()
1321
+ },
1322
+ data: getCreateBitmapInstructionDataDecoder().decode(instruction.data)
1323
+ };
1324
+ }
1325
+
1326
+ // src/instructions/depositTokens.ts
1327
+ var import_kit9 = require("@solana/kit");
1328
+ var DEPOSIT_TOKENS_DISCRIMINATOR = new Uint8Array([
1329
+ 176,
1330
+ 83,
1331
+ 229,
1332
+ 18,
1333
+ 191,
1334
+ 143,
1335
+ 176,
1336
+ 150
1337
+ ]);
1338
+ function getDepositTokensDiscriminatorBytes() {
1339
+ return (0, import_kit9.fixEncoderSize)((0, import_kit9.getBytesEncoder)(), 8).encode(
1340
+ DEPOSIT_TOKENS_DISCRIMINATOR
1341
+ );
1342
+ }
1343
+ function getDepositTokensInstructionDataEncoder() {
1344
+ return (0, import_kit9.transformEncoder)(
1345
+ (0, import_kit9.getStructEncoder)([
1346
+ ["discriminator", (0, import_kit9.fixEncoderSize)((0, import_kit9.getBytesEncoder)(), 8)],
1347
+ ["amount", (0, import_kit9.getU64Encoder)()]
1348
+ ]),
1349
+ (value) => ({ ...value, discriminator: DEPOSIT_TOKENS_DISCRIMINATOR })
1350
+ );
1351
+ }
1352
+ function getDepositTokensInstructionDataDecoder() {
1353
+ return (0, import_kit9.getStructDecoder)([
1354
+ ["discriminator", (0, import_kit9.fixDecoderSize)((0, import_kit9.getBytesDecoder)(), 8)],
1355
+ ["amount", (0, import_kit9.getU64Decoder)()]
1356
+ ]);
1357
+ }
1358
+ function getDepositTokensInstructionDataCodec() {
1359
+ return (0, import_kit9.combineCodec)(
1360
+ getDepositTokensInstructionDataEncoder(),
1361
+ getDepositTokensInstructionDataDecoder()
1362
+ );
1363
+ }
1364
+ async function getDepositTokensInstructionAsync(input, config) {
1365
+ const programAddress = config?.programAddress ?? DROPSY_AIRDROP_PROGRAM_ADDRESS;
1366
+ const originalAccounts = {
1367
+ sourceTokenAccount: {
1368
+ value: input.sourceTokenAccount ?? null,
1369
+ isWritable: true
1370
+ },
1371
+ vault: { value: input.vault ?? null, isWritable: true },
1372
+ airdrop: { value: input.airdrop ?? null, isWritable: true },
1373
+ mint: { value: input.mint ?? null, isWritable: false },
1374
+ authority: { value: input.authority ?? null, isWritable: true },
1375
+ tokenProgram: { value: input.tokenProgram ?? null, isWritable: false },
1376
+ associatedTokenProgram: {
1377
+ value: input.associatedTokenProgram ?? null,
1378
+ isWritable: false
1379
+ },
1380
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false }
1381
+ };
1382
+ const accounts = originalAccounts;
1383
+ const args = { ...input };
1384
+ if (!accounts.airdrop.value) {
1385
+ accounts.airdrop.value = await (0, import_kit9.getProgramDerivedAddress)({
1386
+ programAddress,
1387
+ seeds: [
1388
+ (0, import_kit9.getBytesEncoder)().encode(
1389
+ new Uint8Array([97, 105, 114, 100, 114, 111, 112])
1390
+ ),
1391
+ (0, import_kit9.getAddressEncoder)().encode(expectAddress(accounts.authority.value)),
1392
+ (0, import_kit9.getAddressEncoder)().encode(expectAddress(accounts.mint.value))
1393
+ ]
1394
+ });
1395
+ }
1396
+ if (!accounts.tokenProgram.value) {
1397
+ accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1398
+ }
1399
+ if (!accounts.vault.value) {
1400
+ accounts.vault.value = await (0, import_kit9.getProgramDerivedAddress)({
1401
+ programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
1402
+ seeds: [
1403
+ (0, import_kit9.getAddressEncoder)().encode(expectAddress(accounts.airdrop.value)),
1404
+ (0, import_kit9.getAddressEncoder)().encode(expectAddress(accounts.tokenProgram.value)),
1405
+ (0, import_kit9.getAddressEncoder)().encode(expectAddress(accounts.mint.value))
1406
+ ]
1407
+ });
1408
+ }
1409
+ if (!accounts.associatedTokenProgram.value) {
1410
+ accounts.associatedTokenProgram.value = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1411
+ }
1412
+ if (!accounts.systemProgram.value) {
1413
+ accounts.systemProgram.value = "11111111111111111111111111111111";
1414
+ }
1415
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
1416
+ return Object.freeze({
1417
+ accounts: [
1418
+ getAccountMeta(accounts.sourceTokenAccount),
1419
+ getAccountMeta(accounts.vault),
1420
+ getAccountMeta(accounts.airdrop),
1421
+ getAccountMeta(accounts.mint),
1422
+ getAccountMeta(accounts.authority),
1423
+ getAccountMeta(accounts.tokenProgram),
1424
+ getAccountMeta(accounts.associatedTokenProgram),
1425
+ getAccountMeta(accounts.systemProgram)
1426
+ ],
1427
+ data: getDepositTokensInstructionDataEncoder().encode(
1428
+ args
1429
+ ),
1430
+ programAddress
1431
+ });
1432
+ }
1433
+ function getDepositTokensInstruction(input, config) {
1434
+ const programAddress = config?.programAddress ?? DROPSY_AIRDROP_PROGRAM_ADDRESS;
1435
+ const originalAccounts = {
1436
+ sourceTokenAccount: {
1437
+ value: input.sourceTokenAccount ?? null,
1438
+ isWritable: true
1439
+ },
1440
+ vault: { value: input.vault ?? null, isWritable: true },
1441
+ airdrop: { value: input.airdrop ?? null, isWritable: true },
1442
+ mint: { value: input.mint ?? null, isWritable: false },
1443
+ authority: { value: input.authority ?? null, isWritable: true },
1444
+ tokenProgram: { value: input.tokenProgram ?? null, isWritable: false },
1445
+ associatedTokenProgram: {
1446
+ value: input.associatedTokenProgram ?? null,
1447
+ isWritable: false
1448
+ },
1449
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false }
1450
+ };
1451
+ const accounts = originalAccounts;
1452
+ const args = { ...input };
1453
+ if (!accounts.tokenProgram.value) {
1454
+ accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1455
+ }
1456
+ if (!accounts.associatedTokenProgram.value) {
1457
+ accounts.associatedTokenProgram.value = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1458
+ }
1459
+ if (!accounts.systemProgram.value) {
1460
+ accounts.systemProgram.value = "11111111111111111111111111111111";
1461
+ }
1462
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
1463
+ return Object.freeze({
1464
+ accounts: [
1465
+ getAccountMeta(accounts.sourceTokenAccount),
1466
+ getAccountMeta(accounts.vault),
1467
+ getAccountMeta(accounts.airdrop),
1468
+ getAccountMeta(accounts.mint),
1469
+ getAccountMeta(accounts.authority),
1470
+ getAccountMeta(accounts.tokenProgram),
1471
+ getAccountMeta(accounts.associatedTokenProgram),
1472
+ getAccountMeta(accounts.systemProgram)
1473
+ ],
1474
+ data: getDepositTokensInstructionDataEncoder().encode(
1475
+ args
1476
+ ),
1477
+ programAddress
1478
+ });
1479
+ }
1480
+ function parseDepositTokensInstruction(instruction) {
1481
+ if (instruction.accounts.length < 8) {
1482
+ throw new Error("Not enough accounts");
1483
+ }
1484
+ let accountIndex = 0;
1485
+ const getNextAccount = () => {
1486
+ const accountMeta = instruction.accounts[accountIndex];
1487
+ accountIndex += 1;
1488
+ return accountMeta;
1489
+ };
1490
+ return {
1491
+ programAddress: instruction.programAddress,
1492
+ accounts: {
1493
+ sourceTokenAccount: getNextAccount(),
1494
+ vault: getNextAccount(),
1495
+ airdrop: getNextAccount(),
1496
+ mint: getNextAccount(),
1497
+ authority: getNextAccount(),
1498
+ tokenProgram: getNextAccount(),
1499
+ associatedTokenProgram: getNextAccount(),
1500
+ systemProgram: getNextAccount()
1501
+ },
1502
+ data: getDepositTokensInstructionDataDecoder().decode(instruction.data)
1503
+ };
1504
+ }
1505
+
1506
+ // src/instructions/initializeAirdropConfig.ts
1507
+ var import_kit10 = require("@solana/kit");
1508
+ var INITIALIZE_AIRDROP_CONFIG_DISCRIMINATOR = new Uint8Array([
1509
+ 160,
1510
+ 68,
1511
+ 127,
1512
+ 205,
1513
+ 130,
1514
+ 205,
1515
+ 156,
1516
+ 94
1517
+ ]);
1518
+ function getInitializeAirdropConfigDiscriminatorBytes() {
1519
+ return (0, import_kit10.fixEncoderSize)((0, import_kit10.getBytesEncoder)(), 8).encode(
1520
+ INITIALIZE_AIRDROP_CONFIG_DISCRIMINATOR
1521
+ );
1522
+ }
1523
+ function getInitializeAirdropConfigInstructionDataEncoder() {
1524
+ return (0, import_kit10.transformEncoder)(
1525
+ (0, import_kit10.getStructEncoder)([
1526
+ ["discriminator", (0, import_kit10.fixEncoderSize)((0, import_kit10.getBytesEncoder)(), 8)],
1527
+ ["wlRoot", (0, import_kit10.getOptionEncoder)((0, import_kit10.fixEncoderSize)((0, import_kit10.getBytesEncoder)(), 32))],
1528
+ ["airdropMasterCreateFee", (0, import_kit10.getOptionEncoder)((0, import_kit10.getU64Encoder)())],
1529
+ ["maxClaimFee", (0, import_kit10.getOptionEncoder)((0, import_kit10.getU64Encoder)())],
1530
+ ["maxActionFee", (0, import_kit10.getOptionEncoder)((0, import_kit10.getU64Encoder)())],
1531
+ ["minAirdropDuration", (0, import_kit10.getOptionEncoder)((0, import_kit10.getI64Encoder)())],
1532
+ ["defaultAirdropDuration", (0, import_kit10.getOptionEncoder)((0, import_kit10.getI64Encoder)())],
1533
+ ["maxAirdropDuration", (0, import_kit10.getOptionEncoder)((0, import_kit10.getI64Encoder)())],
1534
+ ["updateGracePeriod", (0, import_kit10.getOptionEncoder)((0, import_kit10.getI64Encoder)())],
1535
+ ["protocolFee", (0, import_kit10.getOptionEncoder)((0, import_kit10.getU64Encoder)())],
1536
+ ["masterFeeBps", (0, import_kit10.getOptionEncoder)((0, import_kit10.getU16Encoder)())]
1537
+ ]),
1538
+ (value) => ({
1539
+ ...value,
1540
+ discriminator: INITIALIZE_AIRDROP_CONFIG_DISCRIMINATOR
1541
+ })
1542
+ );
1543
+ }
1544
+ function getInitializeAirdropConfigInstructionDataDecoder() {
1545
+ return (0, import_kit10.getStructDecoder)([
1546
+ ["discriminator", (0, import_kit10.fixDecoderSize)((0, import_kit10.getBytesDecoder)(), 8)],
1547
+ ["wlRoot", (0, import_kit10.getOptionDecoder)((0, import_kit10.fixDecoderSize)((0, import_kit10.getBytesDecoder)(), 32))],
1548
+ ["airdropMasterCreateFee", (0, import_kit10.getOptionDecoder)((0, import_kit10.getU64Decoder)())],
1549
+ ["maxClaimFee", (0, import_kit10.getOptionDecoder)((0, import_kit10.getU64Decoder)())],
1550
+ ["maxActionFee", (0, import_kit10.getOptionDecoder)((0, import_kit10.getU64Decoder)())],
1551
+ ["minAirdropDuration", (0, import_kit10.getOptionDecoder)((0, import_kit10.getI64Decoder)())],
1552
+ ["defaultAirdropDuration", (0, import_kit10.getOptionDecoder)((0, import_kit10.getI64Decoder)())],
1553
+ ["maxAirdropDuration", (0, import_kit10.getOptionDecoder)((0, import_kit10.getI64Decoder)())],
1554
+ ["updateGracePeriod", (0, import_kit10.getOptionDecoder)((0, import_kit10.getI64Decoder)())],
1555
+ ["protocolFee", (0, import_kit10.getOptionDecoder)((0, import_kit10.getU64Decoder)())],
1556
+ ["masterFeeBps", (0, import_kit10.getOptionDecoder)((0, import_kit10.getU16Decoder)())]
1557
+ ]);
1558
+ }
1559
+ function getInitializeAirdropConfigInstructionDataCodec() {
1560
+ return (0, import_kit10.combineCodec)(
1561
+ getInitializeAirdropConfigInstructionDataEncoder(),
1562
+ getInitializeAirdropConfigInstructionDataDecoder()
1563
+ );
1564
+ }
1565
+ async function getInitializeAirdropConfigInstructionAsync(input, config) {
1566
+ const programAddress = config?.programAddress ?? DROPSY_AIRDROP_PROGRAM_ADDRESS;
1567
+ const originalAccounts = {
1568
+ config: { value: input.config ?? null, isWritable: true },
1569
+ protocolTreasury: {
1570
+ value: input.protocolTreasury ?? null,
1571
+ isWritable: false
1572
+ },
1573
+ authority: { value: input.authority ?? null, isWritable: true },
1574
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false }
1575
+ };
1576
+ const accounts = originalAccounts;
1577
+ const args = { ...input };
1578
+ if (!accounts.config.value) {
1579
+ accounts.config.value = await (0, import_kit10.getProgramDerivedAddress)({
1580
+ programAddress,
1581
+ seeds: [
1582
+ (0, import_kit10.getBytesEncoder)().encode(
1583
+ new Uint8Array([
1584
+ 97,
1585
+ 105,
1586
+ 114,
1587
+ 100,
1588
+ 114,
1589
+ 111,
1590
+ 112,
1591
+ 95,
1592
+ 99,
1593
+ 111,
1594
+ 110,
1595
+ 102,
1596
+ 105,
1597
+ 103
1598
+ ])
1599
+ )
1600
+ ]
1601
+ });
1602
+ }
1603
+ if (!accounts.authority.value) {
1604
+ accounts.authority.value = "79xcTj8QDPhqg7Bwvoz9CrckmGyo2JJXU9duVqJbCLxc";
1605
+ }
1606
+ if (!accounts.systemProgram.value) {
1607
+ accounts.systemProgram.value = "11111111111111111111111111111111";
1608
+ }
1609
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
1610
+ return Object.freeze({
1611
+ accounts: [
1612
+ getAccountMeta(accounts.config),
1613
+ getAccountMeta(accounts.protocolTreasury),
1614
+ getAccountMeta(accounts.authority),
1615
+ getAccountMeta(accounts.systemProgram)
1616
+ ],
1617
+ data: getInitializeAirdropConfigInstructionDataEncoder().encode(
1618
+ args
1619
+ ),
1620
+ programAddress
1621
+ });
1622
+ }
1623
+ function getInitializeAirdropConfigInstruction(input, config) {
1624
+ const programAddress = config?.programAddress ?? DROPSY_AIRDROP_PROGRAM_ADDRESS;
1625
+ const originalAccounts = {
1626
+ config: { value: input.config ?? null, isWritable: true },
1627
+ protocolTreasury: {
1628
+ value: input.protocolTreasury ?? null,
1629
+ isWritable: false
1630
+ },
1631
+ authority: { value: input.authority ?? null, isWritable: true },
1632
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false }
1633
+ };
1634
+ const accounts = originalAccounts;
1635
+ const args = { ...input };
1636
+ if (!accounts.authority.value) {
1637
+ accounts.authority.value = "79xcTj8QDPhqg7Bwvoz9CrckmGyo2JJXU9duVqJbCLxc";
1638
+ }
1639
+ if (!accounts.systemProgram.value) {
1640
+ accounts.systemProgram.value = "11111111111111111111111111111111";
1641
+ }
1642
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
1643
+ return Object.freeze({
1644
+ accounts: [
1645
+ getAccountMeta(accounts.config),
1646
+ getAccountMeta(accounts.protocolTreasury),
1647
+ getAccountMeta(accounts.authority),
1648
+ getAccountMeta(accounts.systemProgram)
1649
+ ],
1650
+ data: getInitializeAirdropConfigInstructionDataEncoder().encode(
1651
+ args
1652
+ ),
1653
+ programAddress
1654
+ });
1655
+ }
1656
+ function parseInitializeAirdropConfigInstruction(instruction) {
1657
+ if (instruction.accounts.length < 4) {
1658
+ throw new Error("Not enough accounts");
1659
+ }
1660
+ let accountIndex = 0;
1661
+ const getNextAccount = () => {
1662
+ const accountMeta = instruction.accounts[accountIndex];
1663
+ accountIndex += 1;
1664
+ return accountMeta;
1665
+ };
1666
+ return {
1667
+ programAddress: instruction.programAddress,
1668
+ accounts: {
1669
+ config: getNextAccount(),
1670
+ protocolTreasury: getNextAccount(),
1671
+ authority: getNextAccount(),
1672
+ systemProgram: getNextAccount()
1673
+ },
1674
+ data: getInitializeAirdropConfigInstructionDataDecoder().decode(
1675
+ instruction.data
1676
+ )
1677
+ };
1678
+ }
1679
+
1680
+ // src/instructions/initializeAirdropMaster.ts
1681
+ var import_kit11 = require("@solana/kit");
1682
+ var INITIALIZE_AIRDROP_MASTER_DISCRIMINATOR = new Uint8Array([
1683
+ 163,
1684
+ 197,
1685
+ 170,
1686
+ 44,
1687
+ 57,
1688
+ 57,
1689
+ 90,
1690
+ 65
1691
+ ]);
1692
+ function getInitializeAirdropMasterDiscriminatorBytes() {
1693
+ return (0, import_kit11.fixEncoderSize)((0, import_kit11.getBytesEncoder)(), 8).encode(
1694
+ INITIALIZE_AIRDROP_MASTER_DISCRIMINATOR
1695
+ );
1696
+ }
1697
+ function getInitializeAirdropMasterInstructionDataEncoder() {
1698
+ return (0, import_kit11.transformEncoder)(
1699
+ (0, import_kit11.getStructEncoder)([
1700
+ ["discriminator", (0, import_kit11.fixEncoderSize)((0, import_kit11.getBytesEncoder)(), 8)],
1701
+ ["airdropUpdateFee", (0, import_kit11.getOptionEncoder)((0, import_kit11.getU64Encoder)())],
1702
+ ["airdropCreationFee", (0, import_kit11.getOptionEncoder)((0, import_kit11.getU64Encoder)())],
1703
+ ["airdropClaimFee", (0, import_kit11.getOptionEncoder)((0, import_kit11.getU64Encoder)())],
1704
+ ["airdropDelegateFee", (0, import_kit11.getOptionEncoder)((0, import_kit11.getU64Encoder)())],
1705
+ ["bitmapCreationFee", (0, import_kit11.getOptionEncoder)((0, import_kit11.getU64Encoder)())],
1706
+ [
1707
+ "discountProof",
1708
+ (0, import_kit11.getOptionEncoder)(
1709
+ (0, import_kit11.getArrayEncoder)((0, import_kit11.fixEncoderSize)((0, import_kit11.getBytesEncoder)(), 32))
1710
+ )
1711
+ ]
1712
+ ]),
1713
+ (value) => ({
1714
+ ...value,
1715
+ discriminator: INITIALIZE_AIRDROP_MASTER_DISCRIMINATOR
1716
+ })
1717
+ );
1718
+ }
1719
+ function getInitializeAirdropMasterInstructionDataDecoder() {
1720
+ return (0, import_kit11.getStructDecoder)([
1721
+ ["discriminator", (0, import_kit11.fixDecoderSize)((0, import_kit11.getBytesDecoder)(), 8)],
1722
+ ["airdropUpdateFee", (0, import_kit11.getOptionDecoder)((0, import_kit11.getU64Decoder)())],
1723
+ ["airdropCreationFee", (0, import_kit11.getOptionDecoder)((0, import_kit11.getU64Decoder)())],
1724
+ ["airdropClaimFee", (0, import_kit11.getOptionDecoder)((0, import_kit11.getU64Decoder)())],
1725
+ ["airdropDelegateFee", (0, import_kit11.getOptionDecoder)((0, import_kit11.getU64Decoder)())],
1726
+ ["bitmapCreationFee", (0, import_kit11.getOptionDecoder)((0, import_kit11.getU64Decoder)())],
1727
+ [
1728
+ "discountProof",
1729
+ (0, import_kit11.getOptionDecoder)((0, import_kit11.getArrayDecoder)((0, import_kit11.fixDecoderSize)((0, import_kit11.getBytesDecoder)(), 32)))
1730
+ ]
1731
+ ]);
1732
+ }
1733
+ function getInitializeAirdropMasterInstructionDataCodec() {
1734
+ return (0, import_kit11.combineCodec)(
1735
+ getInitializeAirdropMasterInstructionDataEncoder(),
1736
+ getInitializeAirdropMasterInstructionDataDecoder()
1737
+ );
1738
+ }
1739
+ async function getInitializeAirdropMasterInstructionAsync(input, config) {
1740
+ const programAddress = config?.programAddress ?? DROPSY_AIRDROP_PROGRAM_ADDRESS;
1741
+ const originalAccounts = {
1742
+ config: { value: input.config ?? null, isWritable: false },
1743
+ airdropMaster: { value: input.airdropMaster ?? null, isWritable: true },
1744
+ protocolTreasury: {
1745
+ value: input.protocolTreasury ?? null,
1746
+ isWritable: true
1747
+ },
1748
+ treasury: { value: input.treasury ?? null, isWritable: false },
1749
+ affiliate: { value: input.affiliate ?? null, isWritable: true },
1750
+ creator: { value: input.creator ?? null, isWritable: true },
1751
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false }
1752
+ };
1753
+ const accounts = originalAccounts;
1754
+ const args = { ...input };
1755
+ if (!accounts.config.value) {
1756
+ accounts.config.value = await (0, import_kit11.getProgramDerivedAddress)({
1757
+ programAddress,
1758
+ seeds: [
1759
+ (0, import_kit11.getBytesEncoder)().encode(
1760
+ new Uint8Array([
1761
+ 97,
1762
+ 105,
1763
+ 114,
1764
+ 100,
1765
+ 114,
1766
+ 111,
1767
+ 112,
1768
+ 95,
1769
+ 99,
1770
+ 111,
1771
+ 110,
1772
+ 102,
1773
+ 105,
1774
+ 103
1775
+ ])
1776
+ )
1777
+ ]
1778
+ });
1779
+ }
1780
+ if (!accounts.airdropMaster.value) {
1781
+ accounts.airdropMaster.value = await (0, import_kit11.getProgramDerivedAddress)({
1782
+ programAddress,
1783
+ seeds: [
1784
+ (0, import_kit11.getBytesEncoder)().encode(
1785
+ new Uint8Array([
1786
+ 97,
1787
+ 105,
1788
+ 114,
1789
+ 100,
1790
+ 114,
1791
+ 111,
1792
+ 112,
1793
+ 95,
1794
+ 109,
1795
+ 97,
1796
+ 115,
1797
+ 116,
1798
+ 101,
1799
+ 114
1800
+ ])
1801
+ ),
1802
+ (0, import_kit11.getAddressEncoder)().encode(expectAddress(accounts.creator.value))
1803
+ ]
1804
+ });
1805
+ }
1806
+ if (!accounts.systemProgram.value) {
1807
+ accounts.systemProgram.value = "11111111111111111111111111111111";
1808
+ }
1809
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
1810
+ return Object.freeze({
1811
+ accounts: [
1812
+ getAccountMeta(accounts.config),
1813
+ getAccountMeta(accounts.airdropMaster),
1814
+ getAccountMeta(accounts.protocolTreasury),
1815
+ getAccountMeta(accounts.treasury),
1816
+ getAccountMeta(accounts.affiliate),
1817
+ getAccountMeta(accounts.creator),
1818
+ getAccountMeta(accounts.systemProgram)
1819
+ ],
1820
+ data: getInitializeAirdropMasterInstructionDataEncoder().encode(
1821
+ args
1822
+ ),
1823
+ programAddress
1824
+ });
1825
+ }
1826
+ function getInitializeAirdropMasterInstruction(input, config) {
1827
+ const programAddress = config?.programAddress ?? DROPSY_AIRDROP_PROGRAM_ADDRESS;
1828
+ const originalAccounts = {
1829
+ config: { value: input.config ?? null, isWritable: false },
1830
+ airdropMaster: { value: input.airdropMaster ?? null, isWritable: true },
1831
+ protocolTreasury: {
1832
+ value: input.protocolTreasury ?? null,
1833
+ isWritable: true
1834
+ },
1835
+ treasury: { value: input.treasury ?? null, isWritable: false },
1836
+ affiliate: { value: input.affiliate ?? null, isWritable: true },
1837
+ creator: { value: input.creator ?? null, isWritable: true },
1838
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false }
1839
+ };
1840
+ const accounts = originalAccounts;
1841
+ const args = { ...input };
1842
+ if (!accounts.systemProgram.value) {
1843
+ accounts.systemProgram.value = "11111111111111111111111111111111";
1844
+ }
1845
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
1846
+ return Object.freeze({
1847
+ accounts: [
1848
+ getAccountMeta(accounts.config),
1849
+ getAccountMeta(accounts.airdropMaster),
1850
+ getAccountMeta(accounts.protocolTreasury),
1851
+ getAccountMeta(accounts.treasury),
1852
+ getAccountMeta(accounts.affiliate),
1853
+ getAccountMeta(accounts.creator),
1854
+ getAccountMeta(accounts.systemProgram)
1855
+ ],
1856
+ data: getInitializeAirdropMasterInstructionDataEncoder().encode(
1857
+ args
1858
+ ),
1859
+ programAddress
1860
+ });
1861
+ }
1862
+ function parseInitializeAirdropMasterInstruction(instruction) {
1863
+ if (instruction.accounts.length < 7) {
1864
+ throw new Error("Not enough accounts");
1865
+ }
1866
+ let accountIndex = 0;
1867
+ const getNextAccount = () => {
1868
+ const accountMeta = instruction.accounts[accountIndex];
1869
+ accountIndex += 1;
1870
+ return accountMeta;
1871
+ };
1872
+ const getNextOptionalAccount = () => {
1873
+ const accountMeta = getNextAccount();
1874
+ return accountMeta.address === DROPSY_AIRDROP_PROGRAM_ADDRESS ? void 0 : accountMeta;
1875
+ };
1876
+ return {
1877
+ programAddress: instruction.programAddress,
1878
+ accounts: {
1879
+ config: getNextAccount(),
1880
+ airdropMaster: getNextAccount(),
1881
+ protocolTreasury: getNextAccount(),
1882
+ treasury: getNextAccount(),
1883
+ affiliate: getNextOptionalAccount(),
1884
+ creator: getNextAccount(),
1885
+ systemProgram: getNextAccount()
1886
+ },
1887
+ data: getInitializeAirdropMasterInstructionDataDecoder().decode(
1888
+ instruction.data
1889
+ )
1890
+ };
1891
+ }
1892
+
1893
+ // src/programs/dropsyAirdrop.ts
1894
+ var DROPSY_AIRDROP_PROGRAM_ADDRESS = "3b97gLF94DDpa7sJQ8orbE3Ab6JQWBsDQTdQ5azoZqcz";
1895
+ var DropsyAirdropAccount = /* @__PURE__ */ ((DropsyAirdropAccount2) => {
1896
+ DropsyAirdropAccount2[DropsyAirdropAccount2["Airdrop"] = 0] = "Airdrop";
1897
+ DropsyAirdropAccount2[DropsyAirdropAccount2["AirdropConfig"] = 1] = "AirdropConfig";
1898
+ DropsyAirdropAccount2[DropsyAirdropAccount2["AirdropMaster"] = 2] = "AirdropMaster";
1899
+ DropsyAirdropAccount2[DropsyAirdropAccount2["BitmapAccount"] = 3] = "BitmapAccount";
1900
+ return DropsyAirdropAccount2;
1901
+ })(DropsyAirdropAccount || {});
1902
+ function identifyDropsyAirdropAccount(account) {
1903
+ const data = "data" in account ? account.data : account;
1904
+ if ((0, import_kit12.containsBytes)(
1905
+ data,
1906
+ (0, import_kit12.fixEncoderSize)((0, import_kit12.getBytesEncoder)(), 8).encode(
1907
+ new Uint8Array([31, 112, 159, 158, 124, 237, 9, 241])
1908
+ ),
1909
+ 0
1910
+ )) {
1911
+ return 0 /* Airdrop */;
1912
+ }
1913
+ if ((0, import_kit12.containsBytes)(
1914
+ data,
1915
+ (0, import_kit12.fixEncoderSize)((0, import_kit12.getBytesEncoder)(), 8).encode(
1916
+ new Uint8Array([194, 149, 223, 142, 42, 98, 128, 16])
1917
+ ),
1918
+ 0
1919
+ )) {
1920
+ return 1 /* AirdropConfig */;
1921
+ }
1922
+ if ((0, import_kit12.containsBytes)(
1923
+ data,
1924
+ (0, import_kit12.fixEncoderSize)((0, import_kit12.getBytesEncoder)(), 8).encode(
1925
+ new Uint8Array([31, 109, 100, 62, 106, 173, 5, 4])
1926
+ ),
1927
+ 0
1928
+ )) {
1929
+ return 2 /* AirdropMaster */;
1930
+ }
1931
+ if ((0, import_kit12.containsBytes)(
1932
+ data,
1933
+ (0, import_kit12.fixEncoderSize)((0, import_kit12.getBytesEncoder)(), 8).encode(
1934
+ new Uint8Array([152, 161, 147, 85, 213, 38, 59, 48])
1935
+ ),
1936
+ 0
1937
+ )) {
1938
+ return 3 /* BitmapAccount */;
1939
+ }
1940
+ throw new Error(
1941
+ "The provided account could not be identified as a dropsyAirdrop account."
1942
+ );
1943
+ }
1944
+ var DropsyAirdropInstruction = /* @__PURE__ */ ((DropsyAirdropInstruction2) => {
1945
+ DropsyAirdropInstruction2[DropsyAirdropInstruction2["ClaimAirdrop"] = 0] = "ClaimAirdrop";
1946
+ DropsyAirdropInstruction2[DropsyAirdropInstruction2["CreateAirdrop"] = 1] = "CreateAirdrop";
1947
+ DropsyAirdropInstruction2[DropsyAirdropInstruction2["CreateBitmap"] = 2] = "CreateBitmap";
1948
+ DropsyAirdropInstruction2[DropsyAirdropInstruction2["DepositTokens"] = 3] = "DepositTokens";
1949
+ DropsyAirdropInstruction2[DropsyAirdropInstruction2["InitializeAirdropConfig"] = 4] = "InitializeAirdropConfig";
1950
+ DropsyAirdropInstruction2[DropsyAirdropInstruction2["InitializeAirdropMaster"] = 5] = "InitializeAirdropMaster";
1951
+ return DropsyAirdropInstruction2;
1952
+ })(DropsyAirdropInstruction || {});
1953
+ function identifyDropsyAirdropInstruction(instruction) {
1954
+ const data = "data" in instruction ? instruction.data : instruction;
1955
+ if ((0, import_kit12.containsBytes)(
1956
+ data,
1957
+ (0, import_kit12.fixEncoderSize)((0, import_kit12.getBytesEncoder)(), 8).encode(
1958
+ new Uint8Array([137, 50, 122, 111, 89, 254, 8, 20])
1959
+ ),
1960
+ 0
1961
+ )) {
1962
+ return 0 /* ClaimAirdrop */;
1963
+ }
1964
+ if ((0, import_kit12.containsBytes)(
1965
+ data,
1966
+ (0, import_kit12.fixEncoderSize)((0, import_kit12.getBytesEncoder)(), 8).encode(
1967
+ new Uint8Array([227, 135, 208, 66, 137, 177, 80, 94])
1968
+ ),
1969
+ 0
1970
+ )) {
1971
+ return 1 /* CreateAirdrop */;
1972
+ }
1973
+ if ((0, import_kit12.containsBytes)(
1974
+ data,
1975
+ (0, import_kit12.fixEncoderSize)((0, import_kit12.getBytesEncoder)(), 8).encode(
1976
+ new Uint8Array([69, 92, 61, 190, 154, 237, 116, 247])
1977
+ ),
1978
+ 0
1979
+ )) {
1980
+ return 2 /* CreateBitmap */;
1981
+ }
1982
+ if ((0, import_kit12.containsBytes)(
1983
+ data,
1984
+ (0, import_kit12.fixEncoderSize)((0, import_kit12.getBytesEncoder)(), 8).encode(
1985
+ new Uint8Array([176, 83, 229, 18, 191, 143, 176, 150])
1986
+ ),
1987
+ 0
1988
+ )) {
1989
+ return 3 /* DepositTokens */;
1990
+ }
1991
+ if ((0, import_kit12.containsBytes)(
1992
+ data,
1993
+ (0, import_kit12.fixEncoderSize)((0, import_kit12.getBytesEncoder)(), 8).encode(
1994
+ new Uint8Array([160, 68, 127, 205, 130, 205, 156, 94])
1995
+ ),
1996
+ 0
1997
+ )) {
1998
+ return 4 /* InitializeAirdropConfig */;
1999
+ }
2000
+ if ((0, import_kit12.containsBytes)(
2001
+ data,
2002
+ (0, import_kit12.fixEncoderSize)((0, import_kit12.getBytesEncoder)(), 8).encode(
2003
+ new Uint8Array([163, 197, 170, 44, 57, 57, 90, 65])
2004
+ ),
2005
+ 0
2006
+ )) {
2007
+ return 5 /* InitializeAirdropMaster */;
2008
+ }
2009
+ throw new Error(
2010
+ "The provided instruction could not be identified as a dropsyAirdrop instruction."
2011
+ );
2012
+ }
2013
+ function parseDropsyAirdropInstruction(instruction) {
2014
+ const instructionType = identifyDropsyAirdropInstruction(instruction);
2015
+ switch (instructionType) {
2016
+ case 0 /* ClaimAirdrop */: {
2017
+ (0, import_kit12.assertIsInstructionWithAccounts)(instruction);
2018
+ return {
2019
+ instructionType: 0 /* ClaimAirdrop */,
2020
+ ...parseClaimAirdropInstruction(instruction)
2021
+ };
2022
+ }
2023
+ case 1 /* CreateAirdrop */: {
2024
+ (0, import_kit12.assertIsInstructionWithAccounts)(instruction);
2025
+ return {
2026
+ instructionType: 1 /* CreateAirdrop */,
2027
+ ...parseCreateAirdropInstruction(instruction)
2028
+ };
2029
+ }
2030
+ case 2 /* CreateBitmap */: {
2031
+ (0, import_kit12.assertIsInstructionWithAccounts)(instruction);
2032
+ return {
2033
+ instructionType: 2 /* CreateBitmap */,
2034
+ ...parseCreateBitmapInstruction(instruction)
2035
+ };
2036
+ }
2037
+ case 3 /* DepositTokens */: {
2038
+ (0, import_kit12.assertIsInstructionWithAccounts)(instruction);
2039
+ return {
2040
+ instructionType: 3 /* DepositTokens */,
2041
+ ...parseDepositTokensInstruction(instruction)
2042
+ };
2043
+ }
2044
+ case 4 /* InitializeAirdropConfig */: {
2045
+ (0, import_kit12.assertIsInstructionWithAccounts)(instruction);
2046
+ return {
2047
+ instructionType: 4 /* InitializeAirdropConfig */,
2048
+ ...parseInitializeAirdropConfigInstruction(instruction)
2049
+ };
2050
+ }
2051
+ case 5 /* InitializeAirdropMaster */: {
2052
+ (0, import_kit12.assertIsInstructionWithAccounts)(instruction);
2053
+ return {
2054
+ instructionType: 5 /* InitializeAirdropMaster */,
2055
+ ...parseInitializeAirdropMasterInstruction(instruction)
2056
+ };
2057
+ }
2058
+ default:
2059
+ throw new Error(
2060
+ `Unrecognized instruction type: ${instructionType}`
2061
+ );
2062
+ }
2063
+ }
2064
+
2065
+ // src/errors/dropsyAirdrop.ts
2066
+ var DROPSY_AIRDROP_ERROR__VALUE_OUT_OF_RANGE = 6001;
2067
+ var DROPSY_AIRDROP_ERROR__VALUE_BELOW_THE_MINIMUM = 6002;
2068
+ var DROPSY_AIRDROP_ERROR__VALUE_EXCEEDS_MAXIMUM = 6003;
2069
+ var DROPSY_AIRDROP_ERROR__INVALID_PERCENTAGE = 6004;
2070
+ var DROPSY_AIRDROP_ERROR__INVALID_TIMESTAMP = 6006;
2071
+ var DROPSY_AIRDROP_ERROR__NON_ZERO_VALUE_REQUIRED = 6007;
2072
+ var DROPSY_AIRDROP_ERROR__INVALID_PUB_KEY = 6008;
2073
+ var DROPSY_AIRDROP_ERROR__UN_AUTHORIZED = 6009;
2074
+ var DROPSY_AIRDROP_ERROR__INVALID_MUTABILITY = 6010;
2075
+ var DROPSY_AIRDROP_ERROR__INVALID_DELEGATE_PERMISSION = 6011;
2076
+ var DROPSY_AIRDROP_ERROR__CLAIM_FEE_TOO_HIGH = 6012;
2077
+ var DROPSY_AIRDROP_ERROR__ACTION_FEE_TOO_HIGH = 6013;
2078
+ var DROPSY_AIRDROP_ERROR__AIRDROP_NOT_STARTED = 6100;
2079
+ var DROPSY_AIRDROP_ERROR__AIRDROP_ENDED = 6101;
2080
+ var DROPSY_AIRDROP_ERROR__AIRDROP_NOT_ENDED = 6102;
2081
+ var DROPSY_AIRDROP_ERROR__DURATION_TOO_SHORT = 6103;
2082
+ var DROPSY_AIRDROP_ERROR__INVALID_END_TIME = 6104;
2083
+ var DROPSY_AIRDROP_ERROR__INVALID_VESTING_SCHEDULE = 6105;
2084
+ var DROPSY_AIRDROP_ERROR__IMMUTABLE_AIRDROP = 6106;
2085
+ var DROPSY_AIRDROP_ERROR__IMMUTABLE_FIELD = 6107;
2086
+ var DROPSY_AIRDROP_ERROR__UPDATE_CUTOFF_TIME_PASSED = 6108;
2087
+ var DROPSY_AIRDROP_ERROR__INVALID_ADMIN = 6200;
2088
+ var DROPSY_AIRDROP_ERROR__OWNER_MISMATCH = 6201;
2089
+ var DROPSY_AIRDROP_ERROR__INVALID_VAULT_AUTHORITY = 6202;
2090
+ var DROPSY_AIRDROP_ERROR__INVALID_DESTINATION_OWNER = 6203;
2091
+ var DROPSY_AIRDROP_ERROR__INVALID_AFFILIATE_PDA = 6204;
2092
+ var DROPSY_AIRDROP_ERROR__UNAUTHORIZED = 6205;
2093
+ var DROPSY_AIRDROP_ERROR__INVALID_OWNER = 6206;
2094
+ var DROPSY_AIRDROP_ERROR__INVALID_MINT = 6300;
2095
+ var DROPSY_AIRDROP_ERROR__MINT_MISMATCH = 6301;
2096
+ var DROPSY_AIRDROP_ERROR__VAULT_MINT_MISMATCH = 6302;
2097
+ var DROPSY_AIRDROP_ERROR__DESTINATION_MINT_MISMATCH = 6303;
2098
+ var DROPSY_AIRDROP_ERROR__MINT_IS_FROZEN = 6304;
2099
+ var DROPSY_AIRDROP_ERROR__INVALID_MINT_OWNER = 6305;
2100
+ var DROPSY_AIRDROP_ERROR__MINT_IS_NOT_INITIALIZED = 6306;
2101
+ var DROPSY_AIRDROP_ERROR__MINT_HAS_FREEZE_AUTHORITY = 6307;
2102
+ var DROPSY_AIRDROP_ERROR__NFT_NOT_ALLOWED = 6308;
2103
+ var DROPSY_AIRDROP_ERROR__VAULT_HAS_DELEGATE = 6401;
2104
+ var DROPSY_AIRDROP_ERROR__VAULT_FROZEN = 6402;
2105
+ var DROPSY_AIRDROP_ERROR__VAULT_HAS_CLOSE_AUTHORITY = 6403;
2106
+ var DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_PDA = 6404;
2107
+ var DROPSY_AIRDROP_ERROR__VAULT_NOT_INITIALIZED = 6405;
2108
+ var DROPSY_AIRDROP_ERROR__INSUFFICIENT_VAULT_FUNDS = 6406;
2109
+ var DROPSY_AIRDROP_ERROR__SOURCE_HAS_DELEGATE = 6450;
2110
+ var DROPSY_AIRDROP_ERROR__SOURCE_ACCOUNT_FROZEN = 6451;
2111
+ var DROPSY_AIRDROP_ERROR__SOURCE_HAS_CLOSE_AUTHORITY = 6452;
2112
+ var DROPSY_AIRDROP_ERROR__INVALID_PROOF = 6500;
2113
+ var DROPSY_AIRDROP_ERROR__ALREADY_CLAIMED = 6501;
2114
+ var DROPSY_AIRDROP_ERROR__MISSING_BITMAP_PDA = 6502;
2115
+ var DROPSY_AIRDROP_ERROR__INVALID_BITMAP_ACCOUNT = 6503;
2116
+ var DROPSY_AIRDROP_ERROR__INVALID_BITMAP_INDEX = 6504;
2117
+ var DROPSY_AIRDROP_ERROR__TOO_MANY_BITMAPS = 6505;
2118
+ var DROPSY_AIRDROP_ERROR__BITMAP_TOO_LARGE = 6506;
2119
+ var DROPSY_AIRDROP_ERROR__INVALID_TOTAL = 6507;
2120
+ var DROPSY_AIRDROP_ERROR__BITMAP_AIRDROP_MISMATCH = 6508;
2121
+ var DROPSY_AIRDROP_ERROR__ACTIVE_BITMAPS_EXIST = 6509;
2122
+ var DROPSY_AIRDROP_ERROR__BITMAP_COUNT_UNDERFLOW = 6510;
2123
+ var DROPSY_AIRDROP_ERROR__INSUFFICIENT_DEPOSIT = 6600;
2124
+ var DROPSY_AIRDROP_ERROR__CREATE_FEE_TOO_HIGH = 6601;
2125
+ var DROPSY_AIRDROP_ERROR__INSUFFICIENT_FUNDS_FOR_FEE = 6603;
2126
+ var DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT = 6604;
2127
+ var DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_OWNER = 6605;
2128
+ var DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_CURVE = 6606;
2129
+ var DROPSY_AIRDROP_ERROR__INVALID_PDA = 6700;
2130
+ var DROPSY_AIRDROP_ERROR__INVALID_AMOUNT = 6701;
2131
+ var DROPSY_AIRDROP_ERROR__OVERFLOW = 6702;
2132
+ var DROPSY_AIRDROP_ERROR__VAULT_NOT_RENT_EXEMPT = 6703;
2133
+ var DROPSY_AIRDROP_ERROR__INVALID_TREASURY_ACCOUNT = 6704;
2134
+ var DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VERSION = 6705;
2135
+ var DROPSY_AIRDROP_ERROR__INVALID_VESTING_TYPE = 6707;
2136
+ var DROPSY_AIRDROP_ERROR__VESTING_ACCOUNT_REQUIRED = 6708;
2137
+ var DROPSY_AIRDROP_ERROR__INVALID_PARENT_ACCOUNT = 6709;
2138
+ var DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VESTING_VERSION = 6710;
2139
+ var dropsyAirdropErrorMessages;
2140
+ if (process.env.NODE_ENV !== "production") {
2141
+ dropsyAirdropErrorMessages = {
2142
+ [DROPSY_AIRDROP_ERROR__ACTION_FEE_TOO_HIGH]: `Action fee exceeds maximum allowed`,
2143
+ [DROPSY_AIRDROP_ERROR__ACTIVE_BITMAPS_EXIST]: `Active bitmaps exist`,
2144
+ [DROPSY_AIRDROP_ERROR__AIRDROP_ENDED]: `Airdrop has already ended`,
2145
+ [DROPSY_AIRDROP_ERROR__AIRDROP_NOT_ENDED]: `Airdrop not yet ended`,
2146
+ [DROPSY_AIRDROP_ERROR__AIRDROP_NOT_STARTED]: `Airdrop has not started yet`,
2147
+ [DROPSY_AIRDROP_ERROR__ALREADY_CLAIMED]: `Tokens already claimed`,
2148
+ [DROPSY_AIRDROP_ERROR__BITMAP_AIRDROP_MISMATCH]: `Bitmap/airdrop mismatch`,
2149
+ [DROPSY_AIRDROP_ERROR__BITMAP_COUNT_UNDERFLOW]: `Bitmaps already closed`,
2150
+ [DROPSY_AIRDROP_ERROR__BITMAP_TOO_LARGE]: `Bitmap size exceeds limit`,
2151
+ [DROPSY_AIRDROP_ERROR__CLAIM_FEE_TOO_HIGH]: `Claim fee exceeds maximum allowed`,
2152
+ [DROPSY_AIRDROP_ERROR__CREATE_FEE_TOO_HIGH]: `Create fee too high (>0.05 SOL)`,
2153
+ [DROPSY_AIRDROP_ERROR__DESTINATION_MINT_MISMATCH]: `Destination mint doesn't match`,
2154
+ [DROPSY_AIRDROP_ERROR__DURATION_TOO_SHORT]: `Airdrop duration must be at least 24 hours`,
2155
+ [DROPSY_AIRDROP_ERROR__IMMUTABLE_AIRDROP]: `Airdrop is immutable`,
2156
+ [DROPSY_AIRDROP_ERROR__IMMUTABLE_FIELD]: `The target field is immutable`,
2157
+ [DROPSY_AIRDROP_ERROR__INSUFFICIENT_DEPOSIT]: `Insufficient SOL deposit`,
2158
+ [DROPSY_AIRDROP_ERROR__INSUFFICIENT_FUNDS_FOR_FEE]: `Insufficient funds for fee`,
2159
+ [DROPSY_AIRDROP_ERROR__INSUFFICIENT_VAULT_FUNDS]: `Insufficient vault funds`,
2160
+ [DROPSY_AIRDROP_ERROR__INVALID_ADMIN]: `This Request Requires Admin Privileges`,
2161
+ [DROPSY_AIRDROP_ERROR__INVALID_AFFILIATE_PDA]: `Mismatched affiliate PDA`,
2162
+ [DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_PDA]: `Invalid vault account`,
2163
+ [DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VERSION]: `invalid airdrop version`,
2164
+ [DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VESTING_VERSION]: `Airdrop version don't support vesting`,
2165
+ [DROPSY_AIRDROP_ERROR__INVALID_AMOUNT]: `Invalid amount`,
2166
+ [DROPSY_AIRDROP_ERROR__INVALID_BITMAP_ACCOUNT]: `Invalid bitmap account`,
2167
+ [DROPSY_AIRDROP_ERROR__INVALID_BITMAP_INDEX]: `Invalid bitmap index`,
2168
+ [DROPSY_AIRDROP_ERROR__INVALID_DELEGATE_PERMISSION]: `Invalid delegate permission Value`,
2169
+ [DROPSY_AIRDROP_ERROR__INVALID_DESTINATION_OWNER]: `Destination account owner is not the signer`,
2170
+ [DROPSY_AIRDROP_ERROR__INVALID_END_TIME]: `Airdrop must end at least 24 hours in the future`,
2171
+ [DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT]: `Invalid fee vault`,
2172
+ [DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_CURVE]: `Fee vault not in curve`,
2173
+ [DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_OWNER]: `Invalid fee vault owner`,
2174
+ [DROPSY_AIRDROP_ERROR__INVALID_MINT]: `Mint does not match stored state`,
2175
+ [DROPSY_AIRDROP_ERROR__INVALID_MINT_OWNER]: `Invalid token program owner`,
2176
+ [DROPSY_AIRDROP_ERROR__INVALID_MUTABILITY]: `Invalid mutability Value`,
2177
+ [DROPSY_AIRDROP_ERROR__INVALID_OWNER]: `Transaction sender is not the owner`,
2178
+ [DROPSY_AIRDROP_ERROR__INVALID_PARENT_ACCOUNT]: `Invalid Parent account provided`,
2179
+ [DROPSY_AIRDROP_ERROR__INVALID_PDA]: `Invalid PDA account`,
2180
+ [DROPSY_AIRDROP_ERROR__INVALID_PERCENTAGE]: `Invalid percentage (must be 0-100)`,
2181
+ [DROPSY_AIRDROP_ERROR__INVALID_PROOF]: `Invalid merkle proof`,
2182
+ [DROPSY_AIRDROP_ERROR__INVALID_PUB_KEY]: `Invalid Pubkey provided`,
2183
+ [DROPSY_AIRDROP_ERROR__INVALID_TIMESTAMP]: `Invalid timestamp or duration`,
2184
+ [DROPSY_AIRDROP_ERROR__INVALID_TOTAL]: `Invalid total claimers`,
2185
+ [DROPSY_AIRDROP_ERROR__INVALID_TREASURY_ACCOUNT]: `invalid treasury account`,
2186
+ [DROPSY_AIRDROP_ERROR__INVALID_VAULT_AUTHORITY]: `Invalid vault authority`,
2187
+ [DROPSY_AIRDROP_ERROR__INVALID_VESTING_SCHEDULE]: `Vesting schedule is invalid`,
2188
+ [DROPSY_AIRDROP_ERROR__INVALID_VESTING_TYPE]: `Invalid vesting type`,
2189
+ [DROPSY_AIRDROP_ERROR__MINT_HAS_FREEZE_AUTHORITY]: `Mint has freeze authority`,
2190
+ [DROPSY_AIRDROP_ERROR__MINT_IS_FROZEN]: `Mint is frozen`,
2191
+ [DROPSY_AIRDROP_ERROR__MINT_IS_NOT_INITIALIZED]: `Mint must be initialized`,
2192
+ [DROPSY_AIRDROP_ERROR__MINT_MISMATCH]: `Provided mint doesn't match expected mint`,
2193
+ [DROPSY_AIRDROP_ERROR__MISSING_BITMAP_PDA]: `Missing bitmap PDA`,
2194
+ [DROPSY_AIRDROP_ERROR__NFT_NOT_ALLOWED]: `Fungible tokens only (no NFTs)`,
2195
+ [DROPSY_AIRDROP_ERROR__NON_ZERO_VALUE_REQUIRED]: `Number must be non-zero`,
2196
+ [DROPSY_AIRDROP_ERROR__OVERFLOW]: `Arithmetic overflow`,
2197
+ [DROPSY_AIRDROP_ERROR__OWNER_MISMATCH]: `Airdrop owner mismatch`,
2198
+ [DROPSY_AIRDROP_ERROR__SOURCE_ACCOUNT_FROZEN]: `Source account is frozen`,
2199
+ [DROPSY_AIRDROP_ERROR__SOURCE_HAS_CLOSE_AUTHORITY]: `Source has close authority`,
2200
+ [DROPSY_AIRDROP_ERROR__SOURCE_HAS_DELEGATE]: `Source has delegate set`,
2201
+ [DROPSY_AIRDROP_ERROR__TOO_MANY_BITMAPS]: `Too many bitmap accounts`,
2202
+ [DROPSY_AIRDROP_ERROR__UNAUTHORIZED]: `Not Authorized`,
2203
+ [DROPSY_AIRDROP_ERROR__UN_AUTHORIZED]: `Invalid Authority Pubkey`,
2204
+ [DROPSY_AIRDROP_ERROR__UPDATE_CUTOFF_TIME_PASSED]: `Airdrop updates are only allowed until cutoff time before start`,
2205
+ [DROPSY_AIRDROP_ERROR__VALUE_BELOW_THE_MINIMUM]: `Value below the minimum`,
2206
+ [DROPSY_AIRDROP_ERROR__VALUE_EXCEEDS_MAXIMUM]: `Value exceeds the maximum`,
2207
+ [DROPSY_AIRDROP_ERROR__VALUE_OUT_OF_RANGE]: `Value out of range`,
2208
+ [DROPSY_AIRDROP_ERROR__VAULT_FROZEN]: `Vault is frozen`,
2209
+ [DROPSY_AIRDROP_ERROR__VAULT_HAS_CLOSE_AUTHORITY]: `Vault has close authority`,
2210
+ [DROPSY_AIRDROP_ERROR__VAULT_HAS_DELEGATE]: `Vault has delegate set`,
2211
+ [DROPSY_AIRDROP_ERROR__VAULT_MINT_MISMATCH]: `Vault mint doesn't match airdrop mint`,
2212
+ [DROPSY_AIRDROP_ERROR__VAULT_NOT_INITIALIZED]: `Vault not initialized`,
2213
+ [DROPSY_AIRDROP_ERROR__VAULT_NOT_RENT_EXEMPT]: `Vault not rent exempt`,
2214
+ [DROPSY_AIRDROP_ERROR__VESTING_ACCOUNT_REQUIRED]: `vesting account required for vested airdrop`
2215
+ };
2216
+ }
2217
+ function getDropsyAirdropErrorMessage(code) {
2218
+ if (process.env.NODE_ENV !== "production") {
2219
+ return dropsyAirdropErrorMessages[code];
2220
+ }
2221
+ return "Error message not available in production bundles.";
2222
+ }
2223
+ function isDropsyAirdropError(error, transactionMessage, code) {
2224
+ return (0, import_kit13.isProgramError)(
2225
+ error,
2226
+ transactionMessage,
2227
+ DROPSY_AIRDROP_PROGRAM_ADDRESS,
2228
+ code
2229
+ );
2230
+ }
2231
+
2232
+ // src/types/airdropInitialized.ts
2233
+ var import_kit14 = require("@solana/kit");
2234
+ function getAirdropInitializedEncoder() {
2235
+ return (0, import_kit14.getStructEncoder)([
2236
+ ["airdrop", (0, import_kit14.getAddressEncoder)()],
2237
+ ["mint", (0, import_kit14.getAddressEncoder)()],
2238
+ ["authority", (0, import_kit14.getAddressEncoder)()],
2239
+ ["master", (0, import_kit14.getAddressEncoder)()],
2240
+ ["merkleRoot", (0, import_kit14.fixEncoderSize)((0, import_kit14.getBytesEncoder)(), 32)],
2241
+ ["startTime", (0, import_kit14.getI64Encoder)()],
2242
+ ["endTime", (0, import_kit14.getI64Encoder)()],
2243
+ ["timestamp", (0, import_kit14.getI64Encoder)()]
2244
+ ]);
2245
+ }
2246
+ function getAirdropInitializedDecoder() {
2247
+ return (0, import_kit14.getStructDecoder)([
2248
+ ["airdrop", (0, import_kit14.getAddressDecoder)()],
2249
+ ["mint", (0, import_kit14.getAddressDecoder)()],
2250
+ ["authority", (0, import_kit14.getAddressDecoder)()],
2251
+ ["master", (0, import_kit14.getAddressDecoder)()],
2252
+ ["merkleRoot", (0, import_kit14.fixDecoderSize)((0, import_kit14.getBytesDecoder)(), 32)],
2253
+ ["startTime", (0, import_kit14.getI64Decoder)()],
2254
+ ["endTime", (0, import_kit14.getI64Decoder)()],
2255
+ ["timestamp", (0, import_kit14.getI64Decoder)()]
2256
+ ]);
2257
+ }
2258
+ function getAirdropInitializedCodec() {
2259
+ return (0, import_kit14.combineCodec)(
2260
+ getAirdropInitializedEncoder(),
2261
+ getAirdropInitializedDecoder()
2262
+ );
2263
+ }
2264
+
2265
+ // src/types/bitmapClosed.ts
2266
+ var import_kit15 = require("@solana/kit");
2267
+ function getBitmapClosedEncoder() {
2268
+ return (0, import_kit15.getStructEncoder)([
2269
+ ["airdrop", (0, import_kit15.getAddressEncoder)()],
2270
+ ["bitmap", (0, import_kit15.getAddressEncoder)()],
2271
+ ["authority", (0, import_kit15.getAddressEncoder)()]
2272
+ ]);
2273
+ }
2274
+ function getBitmapClosedDecoder() {
2275
+ return (0, import_kit15.getStructDecoder)([
2276
+ ["airdrop", (0, import_kit15.getAddressDecoder)()],
2277
+ ["bitmap", (0, import_kit15.getAddressDecoder)()],
2278
+ ["authority", (0, import_kit15.getAddressDecoder)()]
2279
+ ]);
2280
+ }
2281
+ function getBitmapClosedCodec() {
2282
+ return (0, import_kit15.combineCodec)(getBitmapClosedEncoder(), getBitmapClosedDecoder());
2283
+ }
2284
+
2285
+ // src/types/bitmapInitialized.ts
2286
+ var import_kit16 = require("@solana/kit");
2287
+ function getBitmapInitializedEncoder() {
2288
+ return (0, import_kit16.getStructEncoder)([
2289
+ ["airdrop", (0, import_kit16.getAddressEncoder)()],
2290
+ ["bitmap", (0, import_kit16.getAddressEncoder)()],
2291
+ ["bitmapId", (0, import_kit16.getU16Encoder)()],
2292
+ ["timestamp", (0, import_kit16.getI64Encoder)()]
2293
+ ]);
2294
+ }
2295
+ function getBitmapInitializedDecoder() {
2296
+ return (0, import_kit16.getStructDecoder)([
2297
+ ["airdrop", (0, import_kit16.getAddressDecoder)()],
2298
+ ["bitmap", (0, import_kit16.getAddressDecoder)()],
2299
+ ["bitmapId", (0, import_kit16.getU16Decoder)()],
2300
+ ["timestamp", (0, import_kit16.getI64Decoder)()]
2301
+ ]);
2302
+ }
2303
+ function getBitmapInitializedCodec() {
2304
+ return (0, import_kit16.combineCodec)(
2305
+ getBitmapInitializedEncoder(),
2306
+ getBitmapInitializedDecoder()
2307
+ );
2308
+ }
2309
+
2310
+ // src/types/tokensDeposited.ts
2311
+ var import_kit17 = require("@solana/kit");
2312
+ function getTokensDepositedEncoder() {
2313
+ return (0, import_kit17.getStructEncoder)([
2314
+ ["airdrop", (0, import_kit17.getAddressEncoder)()],
2315
+ ["amount", (0, import_kit17.getU64Encoder)()],
2316
+ ["newSupply", (0, import_kit17.getU64Encoder)()],
2317
+ ["depositor", (0, import_kit17.getAddressEncoder)()],
2318
+ ["timestamp", (0, import_kit17.getI64Encoder)()]
2319
+ ]);
2320
+ }
2321
+ function getTokensDepositedDecoder() {
2322
+ return (0, import_kit17.getStructDecoder)([
2323
+ ["airdrop", (0, import_kit17.getAddressDecoder)()],
2324
+ ["amount", (0, import_kit17.getU64Decoder)()],
2325
+ ["newSupply", (0, import_kit17.getU64Decoder)()],
2326
+ ["depositor", (0, import_kit17.getAddressDecoder)()],
2327
+ ["timestamp", (0, import_kit17.getI64Decoder)()]
2328
+ ]);
2329
+ }
2330
+ function getTokensDepositedCodec() {
2331
+ return (0, import_kit17.combineCodec)(getTokensDepositedEncoder(), getTokensDepositedDecoder());
2332
+ }
2333
+
2334
+ // src/types/tokensRedeemed.ts
2335
+ var import_kit18 = require("@solana/kit");
2336
+ function getTokensRedeemedEncoder() {
2337
+ return (0, import_kit18.getStructEncoder)([
2338
+ ["airdrop", (0, import_kit18.getAddressEncoder)()],
2339
+ ["authority", (0, import_kit18.getAddressEncoder)()],
2340
+ ["timestamp", (0, import_kit18.getI64Encoder)()]
2341
+ ]);
2342
+ }
2343
+ function getTokensRedeemedDecoder() {
2344
+ return (0, import_kit18.getStructDecoder)([
2345
+ ["airdrop", (0, import_kit18.getAddressDecoder)()],
2346
+ ["authority", (0, import_kit18.getAddressDecoder)()],
2347
+ ["timestamp", (0, import_kit18.getI64Decoder)()]
2348
+ ]);
2349
+ }
2350
+ function getTokensRedeemedCodec() {
2351
+ return (0, import_kit18.combineCodec)(getTokensRedeemedEncoder(), getTokensRedeemedDecoder());
2352
+ }
2353
+ // Annotate the CommonJS export names for ESM import in node:
2354
+ 0 && (module.exports = {
2355
+ AIRDROP_CONFIG_DISCRIMINATOR,
2356
+ AIRDROP_DISCRIMINATOR,
2357
+ AIRDROP_MASTER_DISCRIMINATOR,
2358
+ BITMAP_ACCOUNT_DISCRIMINATOR,
2359
+ CLAIM_AIRDROP_DISCRIMINATOR,
2360
+ CREATE_AIRDROP_DISCRIMINATOR,
2361
+ CREATE_BITMAP_DISCRIMINATOR,
2362
+ DEPOSIT_TOKENS_DISCRIMINATOR,
2363
+ DROPSY_AIRDROP_ERROR__ACTION_FEE_TOO_HIGH,
2364
+ DROPSY_AIRDROP_ERROR__ACTIVE_BITMAPS_EXIST,
2365
+ DROPSY_AIRDROP_ERROR__AIRDROP_ENDED,
2366
+ DROPSY_AIRDROP_ERROR__AIRDROP_NOT_ENDED,
2367
+ DROPSY_AIRDROP_ERROR__AIRDROP_NOT_STARTED,
2368
+ DROPSY_AIRDROP_ERROR__ALREADY_CLAIMED,
2369
+ DROPSY_AIRDROP_ERROR__BITMAP_AIRDROP_MISMATCH,
2370
+ DROPSY_AIRDROP_ERROR__BITMAP_COUNT_UNDERFLOW,
2371
+ DROPSY_AIRDROP_ERROR__BITMAP_TOO_LARGE,
2372
+ DROPSY_AIRDROP_ERROR__CLAIM_FEE_TOO_HIGH,
2373
+ DROPSY_AIRDROP_ERROR__CREATE_FEE_TOO_HIGH,
2374
+ DROPSY_AIRDROP_ERROR__DESTINATION_MINT_MISMATCH,
2375
+ DROPSY_AIRDROP_ERROR__DURATION_TOO_SHORT,
2376
+ DROPSY_AIRDROP_ERROR__IMMUTABLE_AIRDROP,
2377
+ DROPSY_AIRDROP_ERROR__IMMUTABLE_FIELD,
2378
+ DROPSY_AIRDROP_ERROR__INSUFFICIENT_DEPOSIT,
2379
+ DROPSY_AIRDROP_ERROR__INSUFFICIENT_FUNDS_FOR_FEE,
2380
+ DROPSY_AIRDROP_ERROR__INSUFFICIENT_VAULT_FUNDS,
2381
+ DROPSY_AIRDROP_ERROR__INVALID_ADMIN,
2382
+ DROPSY_AIRDROP_ERROR__INVALID_AFFILIATE_PDA,
2383
+ DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_PDA,
2384
+ DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VERSION,
2385
+ DROPSY_AIRDROP_ERROR__INVALID_AIRDROP_VESTING_VERSION,
2386
+ DROPSY_AIRDROP_ERROR__INVALID_AMOUNT,
2387
+ DROPSY_AIRDROP_ERROR__INVALID_BITMAP_ACCOUNT,
2388
+ DROPSY_AIRDROP_ERROR__INVALID_BITMAP_INDEX,
2389
+ DROPSY_AIRDROP_ERROR__INVALID_DELEGATE_PERMISSION,
2390
+ DROPSY_AIRDROP_ERROR__INVALID_DESTINATION_OWNER,
2391
+ DROPSY_AIRDROP_ERROR__INVALID_END_TIME,
2392
+ DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT,
2393
+ DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_CURVE,
2394
+ DROPSY_AIRDROP_ERROR__INVALID_FEE_VAULT_OWNER,
2395
+ DROPSY_AIRDROP_ERROR__INVALID_MINT,
2396
+ DROPSY_AIRDROP_ERROR__INVALID_MINT_OWNER,
2397
+ DROPSY_AIRDROP_ERROR__INVALID_MUTABILITY,
2398
+ DROPSY_AIRDROP_ERROR__INVALID_OWNER,
2399
+ DROPSY_AIRDROP_ERROR__INVALID_PARENT_ACCOUNT,
2400
+ DROPSY_AIRDROP_ERROR__INVALID_PDA,
2401
+ DROPSY_AIRDROP_ERROR__INVALID_PERCENTAGE,
2402
+ DROPSY_AIRDROP_ERROR__INVALID_PROOF,
2403
+ DROPSY_AIRDROP_ERROR__INVALID_PUB_KEY,
2404
+ DROPSY_AIRDROP_ERROR__INVALID_TIMESTAMP,
2405
+ DROPSY_AIRDROP_ERROR__INVALID_TOTAL,
2406
+ DROPSY_AIRDROP_ERROR__INVALID_TREASURY_ACCOUNT,
2407
+ DROPSY_AIRDROP_ERROR__INVALID_VAULT_AUTHORITY,
2408
+ DROPSY_AIRDROP_ERROR__INVALID_VESTING_SCHEDULE,
2409
+ DROPSY_AIRDROP_ERROR__INVALID_VESTING_TYPE,
2410
+ DROPSY_AIRDROP_ERROR__MINT_HAS_FREEZE_AUTHORITY,
2411
+ DROPSY_AIRDROP_ERROR__MINT_IS_FROZEN,
2412
+ DROPSY_AIRDROP_ERROR__MINT_IS_NOT_INITIALIZED,
2413
+ DROPSY_AIRDROP_ERROR__MINT_MISMATCH,
2414
+ DROPSY_AIRDROP_ERROR__MISSING_BITMAP_PDA,
2415
+ DROPSY_AIRDROP_ERROR__NFT_NOT_ALLOWED,
2416
+ DROPSY_AIRDROP_ERROR__NON_ZERO_VALUE_REQUIRED,
2417
+ DROPSY_AIRDROP_ERROR__OVERFLOW,
2418
+ DROPSY_AIRDROP_ERROR__OWNER_MISMATCH,
2419
+ DROPSY_AIRDROP_ERROR__SOURCE_ACCOUNT_FROZEN,
2420
+ DROPSY_AIRDROP_ERROR__SOURCE_HAS_CLOSE_AUTHORITY,
2421
+ DROPSY_AIRDROP_ERROR__SOURCE_HAS_DELEGATE,
2422
+ DROPSY_AIRDROP_ERROR__TOO_MANY_BITMAPS,
2423
+ DROPSY_AIRDROP_ERROR__UNAUTHORIZED,
2424
+ DROPSY_AIRDROP_ERROR__UN_AUTHORIZED,
2425
+ DROPSY_AIRDROP_ERROR__UPDATE_CUTOFF_TIME_PASSED,
2426
+ DROPSY_AIRDROP_ERROR__VALUE_BELOW_THE_MINIMUM,
2427
+ DROPSY_AIRDROP_ERROR__VALUE_EXCEEDS_MAXIMUM,
2428
+ DROPSY_AIRDROP_ERROR__VALUE_OUT_OF_RANGE,
2429
+ DROPSY_AIRDROP_ERROR__VAULT_FROZEN,
2430
+ DROPSY_AIRDROP_ERROR__VAULT_HAS_CLOSE_AUTHORITY,
2431
+ DROPSY_AIRDROP_ERROR__VAULT_HAS_DELEGATE,
2432
+ DROPSY_AIRDROP_ERROR__VAULT_MINT_MISMATCH,
2433
+ DROPSY_AIRDROP_ERROR__VAULT_NOT_INITIALIZED,
2434
+ DROPSY_AIRDROP_ERROR__VAULT_NOT_RENT_EXEMPT,
2435
+ DROPSY_AIRDROP_ERROR__VESTING_ACCOUNT_REQUIRED,
2436
+ DROPSY_AIRDROP_PROGRAM_ADDRESS,
2437
+ DropsyAirdropAccount,
2438
+ DropsyAirdropInstruction,
2439
+ INITIALIZE_AIRDROP_CONFIG_DISCRIMINATOR,
2440
+ INITIALIZE_AIRDROP_MASTER_DISCRIMINATOR,
2441
+ decodeAirdrop,
2442
+ decodeAirdropConfig,
2443
+ decodeAirdropMaster,
2444
+ decodeBitmapAccount,
2445
+ fetchAirdrop,
2446
+ fetchAirdropConfig,
2447
+ fetchAirdropMaster,
2448
+ fetchAllAirdrop,
2449
+ fetchAllAirdropConfig,
2450
+ fetchAllAirdropMaster,
2451
+ fetchAllBitmapAccount,
2452
+ fetchAllMaybeAirdrop,
2453
+ fetchAllMaybeAirdropConfig,
2454
+ fetchAllMaybeAirdropMaster,
2455
+ fetchAllMaybeBitmapAccount,
2456
+ fetchBitmapAccount,
2457
+ fetchMaybeAirdrop,
2458
+ fetchMaybeAirdropConfig,
2459
+ fetchMaybeAirdropMaster,
2460
+ fetchMaybeBitmapAccount,
2461
+ getAirdropCodec,
2462
+ getAirdropConfigCodec,
2463
+ getAirdropConfigDecoder,
2464
+ getAirdropConfigDiscriminatorBytes,
2465
+ getAirdropConfigEncoder,
2466
+ getAirdropConfigSize,
2467
+ getAirdropDecoder,
2468
+ getAirdropDiscriminatorBytes,
2469
+ getAirdropEncoder,
2470
+ getAirdropInitializedCodec,
2471
+ getAirdropInitializedDecoder,
2472
+ getAirdropInitializedEncoder,
2473
+ getAirdropMasterCodec,
2474
+ getAirdropMasterDecoder,
2475
+ getAirdropMasterDiscriminatorBytes,
2476
+ getAirdropMasterEncoder,
2477
+ getAirdropMasterSize,
2478
+ getAirdropSize,
2479
+ getBitmapAccountCodec,
2480
+ getBitmapAccountDecoder,
2481
+ getBitmapAccountDiscriminatorBytes,
2482
+ getBitmapAccountEncoder,
2483
+ getBitmapAccountSize,
2484
+ getBitmapClosedCodec,
2485
+ getBitmapClosedDecoder,
2486
+ getBitmapClosedEncoder,
2487
+ getBitmapInitializedCodec,
2488
+ getBitmapInitializedDecoder,
2489
+ getBitmapInitializedEncoder,
2490
+ getClaimAirdropDiscriminatorBytes,
2491
+ getClaimAirdropInstruction,
2492
+ getClaimAirdropInstructionAsync,
2493
+ getClaimAirdropInstructionDataCodec,
2494
+ getClaimAirdropInstructionDataDecoder,
2495
+ getClaimAirdropInstructionDataEncoder,
2496
+ getCreateAirdropDiscriminatorBytes,
2497
+ getCreateAirdropInstruction,
2498
+ getCreateAirdropInstructionAsync,
2499
+ getCreateAirdropInstructionDataCodec,
2500
+ getCreateAirdropInstructionDataDecoder,
2501
+ getCreateAirdropInstructionDataEncoder,
2502
+ getCreateBitmapDiscriminatorBytes,
2503
+ getCreateBitmapInstruction,
2504
+ getCreateBitmapInstructionAsync,
2505
+ getCreateBitmapInstructionDataCodec,
2506
+ getCreateBitmapInstructionDataDecoder,
2507
+ getCreateBitmapInstructionDataEncoder,
2508
+ getDepositTokensDiscriminatorBytes,
2509
+ getDepositTokensInstruction,
2510
+ getDepositTokensInstructionAsync,
2511
+ getDepositTokensInstructionDataCodec,
2512
+ getDepositTokensInstructionDataDecoder,
2513
+ getDepositTokensInstructionDataEncoder,
2514
+ getDropsyAirdropErrorMessage,
2515
+ getInitializeAirdropConfigDiscriminatorBytes,
2516
+ getInitializeAirdropConfigInstruction,
2517
+ getInitializeAirdropConfigInstructionAsync,
2518
+ getInitializeAirdropConfigInstructionDataCodec,
2519
+ getInitializeAirdropConfigInstructionDataDecoder,
2520
+ getInitializeAirdropConfigInstructionDataEncoder,
2521
+ getInitializeAirdropMasterDiscriminatorBytes,
2522
+ getInitializeAirdropMasterInstruction,
2523
+ getInitializeAirdropMasterInstructionAsync,
2524
+ getInitializeAirdropMasterInstructionDataCodec,
2525
+ getInitializeAirdropMasterInstructionDataDecoder,
2526
+ getInitializeAirdropMasterInstructionDataEncoder,
2527
+ getTokensDepositedCodec,
2528
+ getTokensDepositedDecoder,
2529
+ getTokensDepositedEncoder,
2530
+ getTokensRedeemedCodec,
2531
+ getTokensRedeemedDecoder,
2532
+ getTokensRedeemedEncoder,
2533
+ identifyDropsyAirdropAccount,
2534
+ identifyDropsyAirdropInstruction,
2535
+ isDropsyAirdropError,
2536
+ parseClaimAirdropInstruction,
2537
+ parseCreateAirdropInstruction,
2538
+ parseCreateBitmapInstruction,
2539
+ parseDepositTokensInstruction,
2540
+ parseDropsyAirdropInstruction,
2541
+ parseInitializeAirdropConfigInstruction,
2542
+ parseInitializeAirdropMasterInstruction
2543
+ });
2544
+ //# sourceMappingURL=index.cjs.map