"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GET_USER_JOBS = exports.GET_JOBS = exports.SUBGRAPH_URL = void 0;
const graphql_request_1 = require("graphql-request");
exports.SUBGRAPH_URL = 'https://api.thegraph.com/subgraphs/name/keep3r-network/keep3r-network';
exports.GET_JOBS = (0, graphql_request_1.gql) `
  query getJobs($first: Int, $lastId: String) {
    jobs(where: { id_gt: $lastId }, first: $first) {
      id
      liquidities {
        id
        amount
        pendingUnbonds
        withdrawableAfter
        klp {
          id
        }
      }
      credits {
        id
        amount
        token {
          id
          name
          symbol
          decimals
        }
      }
      owner
    }
  }
`;
exports.GET_USER_JOBS = (0, graphql_request_1.gql) `
  query getUserJobs($address: String!, $first: Int, $lastId: String) {
    jobs(where: { owner: $address, id_gt: $lastId }, first: $first) {
      id
      liquidities {
        id
        amount
        pendingUnbonds
        withdrawableAfter
      }
      credits {
        id
        amount
        token {
          id
          name
          symbol
          decimals
        }
      }
      owner
    }
  }
`;
//# sourceMappingURL=keeper.job.queries.js.map