UNPKG

@kamino-finance/klend-sdk

Version:

Typescript SDK for interacting with the Kamino Lending (klend) protocol

16 lines 698 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.changeTicketAuthority = changeTicketAuthority; const programId_1 = require("../programId"); function changeTicketAuthority(accounts, programAddress = programId_1.PROGRAM_ID) { const keys = [ { address: accounts.user.address, role: 2, signer: accounts.user }, { address: accounts.newAuthority, role: 0 }, { address: accounts.unstakeTicket, role: 1 }, ]; const identifier = Buffer.from([186, 77, 121, 131, 25, 104, 255, 108]); const data = identifier; const ix = { accounts: keys, programAddress, data }; return ix; } //# sourceMappingURL=changeTicketAuthority.js.map