"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.findSenderAuthorityPdaPda = findSenderAuthorityPdaPda;
var tslib_1 = require("tslib");
var kit_1 = require("@solana/kit");
function findSenderAuthorityPdaPda() {
    return tslib_1.__awaiter(this, arguments, void 0, function (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 ? "CCTPV2vPZJS2u2BBsUoscuikbYjnpFmbFsvVuJdgUMQe" : _a;
                    return [4, (0, kit_1.getProgramDerivedAddress)({
                            programAddress: programAddress,
                            seeds: [
                                (0, kit_1.getBytesEncoder)().encode(new Uint8Array([
                                    115, 101, 110, 100, 101, 114, 95, 97, 117, 116, 104, 111, 114, 105,
                                    116, 121,
                                ])),
                            ],
                        })];
                case 1: return [2, _b.sent()];
            }
        });
    });
}
//# sourceMappingURL=senderAuthorityPda.js.map