@t2000/engine 0.47.1 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +35 -3
- package/dist/index.js +321 -112
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1954,7 +1954,9 @@ declare const renderCanvasTool: Tool<{
|
|
|
1954
1954
|
} | undefined;
|
|
1955
1955
|
}, unknown>;
|
|
1956
1956
|
|
|
1957
|
-
declare const balanceCheckTool: Tool<{
|
|
1957
|
+
declare const balanceCheckTool: Tool<{
|
|
1958
|
+
address?: string | undefined;
|
|
1959
|
+
}, {
|
|
1958
1960
|
available: number;
|
|
1959
1961
|
savings: number;
|
|
1960
1962
|
debt: number;
|
|
@@ -1964,17 +1966,42 @@ declare const balanceCheckTool: Tool<{}, {
|
|
|
1964
1966
|
stables: number;
|
|
1965
1967
|
holdings: any[];
|
|
1966
1968
|
saveableUsdc: number;
|
|
1969
|
+
address: string;
|
|
1970
|
+
isSelfQuery: boolean;
|
|
1967
1971
|
}>;
|
|
1968
1972
|
|
|
1969
|
-
declare const savingsInfoTool: Tool<{
|
|
1973
|
+
declare const savingsInfoTool: Tool<{
|
|
1974
|
+
address?: string | undefined;
|
|
1975
|
+
}, {
|
|
1976
|
+
address: string;
|
|
1977
|
+
isSelfQuery: boolean;
|
|
1978
|
+
positions: PositionEntry[];
|
|
1979
|
+
earnings: {
|
|
1980
|
+
totalYieldEarned: number;
|
|
1981
|
+
currentApy: number;
|
|
1982
|
+
dailyEarning: number;
|
|
1983
|
+
supplied: number;
|
|
1984
|
+
};
|
|
1985
|
+
fundStatus: {
|
|
1986
|
+
supplied: number;
|
|
1987
|
+
apy: number;
|
|
1988
|
+
earnedToday: number;
|
|
1989
|
+
earnedAllTime: number;
|
|
1990
|
+
projectedMonthly: number;
|
|
1991
|
+
};
|
|
1992
|
+
}>;
|
|
1970
1993
|
|
|
1971
|
-
declare const healthCheckTool: Tool<{
|
|
1994
|
+
declare const healthCheckTool: Tool<{
|
|
1995
|
+
address?: string | undefined;
|
|
1996
|
+
}, {
|
|
1972
1997
|
healthFactor: number | null;
|
|
1973
1998
|
supplied: number;
|
|
1974
1999
|
borrowed: number;
|
|
1975
2000
|
maxBorrow: number;
|
|
1976
2001
|
liquidationThreshold: number;
|
|
1977
2002
|
status: string;
|
|
2003
|
+
address: string;
|
|
2004
|
+
isSelfQuery: boolean;
|
|
1978
2005
|
}>;
|
|
1979
2006
|
|
|
1980
2007
|
type RateMap = Record<string, {
|
|
@@ -1990,8 +2017,10 @@ declare const ratesInfoTool: Tool<{
|
|
|
1990
2017
|
declare const transactionHistoryTool: Tool<{
|
|
1991
2018
|
action?: "send" | "swap" | "transaction" | "lending" | undefined;
|
|
1992
2019
|
date?: string | undefined;
|
|
2020
|
+
address?: string | undefined;
|
|
1993
2021
|
direction?: "out" | "in" | undefined;
|
|
1994
2022
|
limit?: number | undefined;
|
|
2023
|
+
counterparty?: string | undefined;
|
|
1995
2024
|
minUsd?: number | undefined;
|
|
1996
2025
|
assetSymbol?: string | undefined;
|
|
1997
2026
|
}, Record<string, unknown>>;
|
|
@@ -2272,8 +2301,11 @@ interface ActivitySummary {
|
|
|
2272
2301
|
totalMovedUsd: number;
|
|
2273
2302
|
netSavingsUsd: number;
|
|
2274
2303
|
yieldEarnedUsd: number;
|
|
2304
|
+
address?: string;
|
|
2305
|
+
isSelfQuery?: boolean;
|
|
2275
2306
|
}
|
|
2276
2307
|
declare const activitySummaryTool: Tool<{
|
|
2308
|
+
address?: string | undefined;
|
|
2277
2309
|
period?: "month" | "year" | "all" | "week" | undefined;
|
|
2278
2310
|
}, ActivitySummary>;
|
|
2279
2311
|
|