"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DISCRIMINATOR = void 0;
exports.acceptObligationOwnership = acceptObligationOwnership;
const programId_1 = require("../programId");
exports.DISCRIMINATOR = Buffer.from([249, 130, 70, 176, 151, 187, 239, 6]);
function acceptObligationOwnership(accounts, remainingAccounts = [], programAddress = programId_1.PROGRAM_ID) {
    const keys = [
        {
            address: accounts.pendingOwner.address,
            role: 2,
            signer: accounts.pendingOwner,
        },
        { address: accounts.obligation, role: 1 },
        { address: accounts.instructionSysvarAccount, role: 0 },
        ...remainingAccounts,
    ];
    const data = exports.DISCRIMINATOR;
    const ix = { accounts: keys, programAddress, data };
    return ix;
}
//# sourceMappingURL=acceptObligationOwnership.js.map