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