"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.findClaimAccountPda = findClaimAccountPda;
var tslib_1 = require("tslib");
var kit_1 = require("@solana/kit");
function findClaimAccountPda(seeds_1) {
    return tslib_1.__awaiter(this, arguments, void 0, function (seeds, config) {
        var _a, programAddress;
        if (config === void 0) { config = {}; }
        return tslib_1.__generator(this, function (_b) {
            switch (_b.label) {
                case 0:
                    _a = config.programAddress, programAddress = _a === void 0 ? "DLv3NggMiSaef97YCkew5xKUHDh13tVGZ7tydt3ZeAru" : _a;
                    return [4, (0, kit_1.getProgramDerivedAddress)({
                            programAddress: programAddress,
                            seeds: [
                                (0, kit_1.getBytesEncoder)().encode(new Uint8Array([
                                    99, 108, 97, 105, 109, 95, 97, 99, 99, 111, 117, 110, 116,
                                ])),
                                (0, kit_1.getAddressEncoder)().encode(seeds.mint),
                                (0, kit_1.getAddressEncoder)().encode(seeds.refundAddress),
                            ],
                        })];
                case 1: return [2, _b.sent()];
            }
        });
    });
}
//# sourceMappingURL=claimAccount.js.map