/**
 * This code was AUTOGENERATED using the Codama library.
 * Please DO NOT EDIT THIS FILE, instead use visitors
 * to add features, then rerun Codama to update it.
 *
 * @see https://github.com/codama-idl/codama
 */
import { __awaiter, __generator } from "tslib";
import { getAddressEncoder, getBytesEncoder, getProgramDerivedAddress, } from "@solana/kit";
export function findTransferLiabilityPda(seeds_1) {
    return __awaiter(this, arguments, void 0, function (seeds, config) {
        var _a, programAddress;
        if (config === void 0) { config = {}; }
        return __generator(this, function (_b) {
            switch (_b.label) {
                case 0:
                    _a = config.programAddress, programAddress = _a === void 0 ? "DLv3NggMiSaef97YCkew5xKUHDh13tVGZ7tydt3ZeAru" : _a;
                    return [4 /*yield*/, getProgramDerivedAddress({
                            programAddress: programAddress,
                            seeds: [
                                getBytesEncoder().encode(new Uint8Array([
                                    116, 114, 97, 110, 115, 102, 101, 114, 95, 108, 105, 97, 98, 105, 108,
                                    105, 116, 121,
                                ])),
                                getAddressEncoder().encode(seeds.mint),
                            ],
                        })];
                case 1: return [2 /*return*/, _b.sent()];
            }
        });
    });
}
//# sourceMappingURL=transferLiability.js.map