// @ts-ignore: decorator @lazy export const KEYLET_LINE = 9; // @ts-ignore: decorator @lazy export const KEYLET_SIGNERS = 14; export class Keylet { @inline static getSigners(acc: Account): ByteArray { let a = new ByteArray(34); let b = acc.bytes; let r = $util_keylet(changetype(a), 34, KEYLET_SIGNERS, changetype(b), 20, 0, 0, 0, 0); if (r != 34) rollback("", pack_error_code(r)); return a; } @inline static getTrustLine(high: Account, low: Account, currency: ByteArray): ByteArray { let res = new ByteArray(34); let r = $util_keylet(changetype(res), 34, KEYLET_LINE, changetype(high.bytes), 20, changetype(low.bytes), 20, changetype(currency), currency.length); if (r != 34) rollback("", pack_error_code(r)); return res; } }