tensaikit
Version:
An autonomous DeFi AI Agent Kit on Katana enabling AI agents to plan and execute on-chain financial operations.
65 lines (64 loc) • 1.81 kB
TypeScript
/**
* Generates a GraphQL query to fetch active Morpho markets.
*
* @param variables - Pagination variables including `skip` and `first`
* @returns A query object for retrieving a list of active markets with detailed fields
*/
export declare const queryMarkets: (variables: {
skip: number;
first: number;
}) => {
query: string;
variables: {
skip: number;
first: number;
};
};
/**
* Generates a GraphQL query to fetch borrower-side interest rates.
*
* @param variables - Pagination variables including `skip` and `first`
* @returns A query object for retrieving borrower interest rate data
*/
export declare const queryInterestRates: (variables: {
skip: number;
first: number;
}) => {
query: string;
variables: {
skip: number;
first: number;
};
};
/**
* Generates a GraphQL query to fetch lender-side interest rates.
*
* @param variables - Pagination variables including `skip` and `first`
* @returns A query object for retrieving lender interest rate data
*/
export declare const queryLenderInterestRates: (variables: {
skip: number;
first: number;
}) => {
query: string;
variables: {
skip: number;
first: number;
};
};
/**
* Generates a GraphQL query to fetch detailed position and activity data for a specific user account.
*
* @param account - The account address (will be lowercased and trimmed)
* @param first - Number of positions to fetch
* @param skip - Number of positions to skip (for pagination)
* @returns A query object for retrieving account and position data
*/
export declare const queryAccountById: (account: string, first: number, skip: number) => {
query: string;
variables: {
account: string;
first: number;
skip: number;
};
};