"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DISCRIMINATOR = void 0;
exports.approveObligationOwnershipTransfer = approveObligationOwnershipTransfer;
const programId_1 = require("../programId");
exports.DISCRIMINATOR = Buffer.from([61, 227, 231, 46, 196, 124, 60, 161]);
function approveObligationOwnershipTransfer(accounts, remainingAccounts = [], programAddress = programId_1.PROGRAM_ID) {
    const keys = [
        {
            address: accounts.globalAdmin.address,
            role: 2,
            signer: accounts.globalAdmin,
        },
        { address: accounts.globalConfig, role: 0 },
        { address: accounts.obligation, role: 1 },
        { address: accounts.pendingOwner, role: 0 },
        ...remainingAccounts,
    ];
    const data = exports.DISCRIMINATOR;
    const ix = { accounts: keys, programAddress, data };
    return ix;
}
//# sourceMappingURL=approveObligationOwnershipTransfer.js.map