"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.findMessageTransmitterPda = findMessageTransmitterPda;
var tslib_1 = require("tslib");
var kit_1 = require("@solana/kit");
function findMessageTransmitterPda() {
    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 ? "CCTPV2Sm4AdWt5296sk4P66VBZ7bEhcARwFaaS9YPbeC" : _a;
                    return [4, (0, kit_1.getProgramDerivedAddress)({
                            programAddress: programAddress,
                            seeds: [
                                (0, kit_1.getBytesEncoder)().encode(new Uint8Array([
                                    109, 101, 115, 115, 97, 103, 101, 95, 116, 114, 97, 110, 115, 109,
                                    105, 116, 116, 101, 114,
                                ])),
                            ],
                        })];
                case 1: return [2, _b.sent()];
            }
        });
    });
}
//# sourceMappingURL=messageTransmitter.js.map