import request from '../../tools/request'; /** * GET /leasing/active/{address} * Get all active leases for an address */ export function fetchActive(base, address, options = Object.create(null)) { return request({ base, url: `/leasing/active/${address}`, options }); } /** * GET /leasing/info/ * Get lease transactions info. */ export function fetchLeasingInfo(base, ids, options = Object.create(null)) { const searchParams = `{\"ids\":[${ids.map(id => `\"${id}\"`).join(',')}]}`; return request({ base, url: `/leasing/info/`, options: Object.assign(Object.assign({}, options), { body: searchParams, method: 'POST', headers: { 'Content-Type': 'application/json' } }) }); } //# sourceMappingURL=index.js.map