@kamino-finance/klend-sdk
Version:
Typescript SDK for interacting with the Kamino Lending (klend) protocol
19 lines • 662 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateAdmin = updateAdmin;
const programId_1 = require("../programId");
function updateAdmin(accounts, programAddress = programId_1.PROGRAM_ID) {
const keys = [
{
address: accounts.pendingAdmin.address,
role: 2,
signer: accounts.pendingAdmin,
},
{ address: accounts.poolState, role: 1 },
];
const identifier = Buffer.from([161, 176, 40, 213, 60, 184, 179, 228]);
const data = identifier;
const ix = { accounts: keys, programAddress, data };
return ix;
}
//# sourceMappingURL=updateAdmin.js.map