@tokemak/queries 0.7.0 → 0.8.1
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/functions/getAutopools.d.ts +3 -1
- package/dist/functions/getAutopools.d.ts.map +1 -1
- package/dist/functions/getDeprecatedAutopools.d.ts +347 -0
- package/dist/functions/getDeprecatedAutopools.d.ts.map +1 -0
- package/dist/functions/getEthAutoLP.d.ts +1 -1
- package/dist/functions/getEthAutoLP.d.ts.map +1 -1
- package/dist/functions/getUniV4Pool.d.ts +13 -17
- package/dist/functions/getUniV4Pool.d.ts.map +1 -1
- package/dist/functions/getUserUniV4Positions.d.ts +1 -0
- package/dist/functions/getUserUniV4Positions.d.ts.map +1 -1
- package/dist/functions/index.d.ts +3 -23
- package/dist/functions/index.d.ts.map +1 -1
- package/dist/functions/uniV4Subgraph.d.ts +45 -0
- package/dist/functions/uniV4Subgraph.d.ts.map +1 -0
- package/dist/index.js +419 -1714
- package/dist/index.mjs +291 -1589
- package/dist/safe.js +12 -8
- package/dist/safe.mjs +8 -4
- package/dist/utils/getChainsForEnv.d.ts +12 -3
- package/dist/utils/getChainsForEnv.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/functions/getAllowance.d.ts +0 -8
- package/dist/functions/getAllowance.d.ts.map +0 -1
- package/dist/functions/getAutopoolsRebalances.d.ts +0 -53
- package/dist/functions/getAutopoolsRebalances.d.ts.map +0 -1
- package/dist/functions/getChainCycleRolloverBlockNumber.d.ts +0 -7
- package/dist/functions/getChainCycleRolloverBlockNumber.d.ts.map +0 -1
- package/dist/functions/getChainSToke.d.ts +0 -15
- package/dist/functions/getChainSToke.d.ts.map +0 -1
- package/dist/functions/getChainSTokeRewards.d.ts +0 -16
- package/dist/functions/getChainSTokeRewards.d.ts.map +0 -1
- package/dist/functions/getChainUserSToke.d.ts +0 -33
- package/dist/functions/getChainUserSToke.d.ts.map +0 -1
- package/dist/functions/getChainUserSTokeRewards.d.ts +0 -30
- package/dist/functions/getChainUserSTokeRewards.d.ts.map +0 -1
- package/dist/functions/getCombinedRewards.d.ts +0 -11
- package/dist/functions/getCombinedRewards.d.ts.map +0 -1
- package/dist/functions/getCurveLP.d.ts +0 -3
- package/dist/functions/getCurveLP.d.ts.map +0 -1
- package/dist/functions/getCycleV1.d.ts +0 -10
- package/dist/functions/getCycleV1.d.ts.map +0 -1
- package/dist/functions/getEthPrice.d.ts +0 -2
- package/dist/functions/getEthPrice.d.ts.map +0 -1
- package/dist/functions/getLayerzeroStatus.d.ts +0 -24
- package/dist/functions/getLayerzeroStatus.d.ts.map +0 -1
- package/dist/functions/getMultipleAutopoolRebalances.d.ts +0 -54
- package/dist/functions/getMultipleAutopoolRebalances.d.ts.map +0 -1
- package/dist/functions/getProtocolStats.d.ts +0 -41
- package/dist/functions/getProtocolStats.d.ts.map +0 -1
- package/dist/functions/getSToke.d.ts +0 -23
- package/dist/functions/getSToke.d.ts.map +0 -1
- package/dist/functions/getSTokeRewards.d.ts +0 -22
- package/dist/functions/getSTokeRewards.d.ts.map +0 -1
- package/dist/functions/getSushiLP.d.ts +0 -14
- package/dist/functions/getSushiLP.d.ts.map +0 -1
- package/dist/functions/getTokenList.d.ts +0 -3
- package/dist/functions/getTokenList.d.ts.map +0 -1
- package/dist/functions/getUserCurveLP.d.ts +0 -16
- package/dist/functions/getUserCurveLP.d.ts.map +0 -1
- package/dist/functions/getUserSToke.d.ts +0 -40
- package/dist/functions/getUserSToke.d.ts.map +0 -1
- package/dist/functions/getUserSTokeRewards.d.ts +0 -38
- package/dist/functions/getUserSTokeRewards.d.ts.map +0 -1
- package/dist/functions/getUserSushiLP.d.ts +0 -23
- package/dist/functions/getUserSushiLP.d.ts.map +0 -1
- package/dist/functions/getUserV1.d.ts +0 -18
- package/dist/functions/getUserV1.d.ts.map +0 -1
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Address } from "viem";
|
|
2
|
-
import { Config } from "wagmi";
|
|
3
|
-
export declare const getUserSToke: (wagmiConfig: Config, { address, tokePrice, includeTestnet, }: {
|
|
4
|
-
address: Address;
|
|
5
|
-
tokePrice: number;
|
|
6
|
-
includeTestnet?: boolean;
|
|
7
|
-
}) => Promise<{
|
|
8
|
-
chains: {
|
|
9
|
-
[x: number]: {
|
|
10
|
-
balance: bigint;
|
|
11
|
-
balanceUSD: string;
|
|
12
|
-
balanceExcludingWithdrawal: string;
|
|
13
|
-
balanceExcludingWithdrawalUsd: string;
|
|
14
|
-
hasBalanceExcludingWithdrawal: boolean;
|
|
15
|
-
timeLeftBeforeUnlockRequestAvailable: string;
|
|
16
|
-
timeLeftBeforeUnlockRequestUnavailable: string;
|
|
17
|
-
withdrawalAmount: bigint;
|
|
18
|
-
withdrawalAmountUsd: string;
|
|
19
|
-
hasUnlockableBalance: boolean;
|
|
20
|
-
isUnlockRequestAvailable: boolean;
|
|
21
|
-
hasRequestedUnlock: boolean;
|
|
22
|
-
hasAddedLockedToke: boolean;
|
|
23
|
-
addedLockedToke: bigint;
|
|
24
|
-
unlockPeriodDateRange: string;
|
|
25
|
-
unlockPeriodStartFullDate: string;
|
|
26
|
-
unlockRenewalFullDate: string;
|
|
27
|
-
unlockPeriodStartDate: string | undefined;
|
|
28
|
-
unlockRenewalDate: string | undefined;
|
|
29
|
-
lockDurationInMonths: number;
|
|
30
|
-
boost: number;
|
|
31
|
-
points: number;
|
|
32
|
-
totalActiveCredits: number;
|
|
33
|
-
totalCredits: number;
|
|
34
|
-
} | undefined;
|
|
35
|
-
};
|
|
36
|
-
totalBalance: number;
|
|
37
|
-
totalBalanceUsd: string;
|
|
38
|
-
hasBalance: boolean;
|
|
39
|
-
} | undefined>;
|
|
40
|
-
//# sourceMappingURL=getUserSToke.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getUserSToke.d.ts","sourceRoot":"","sources":["../../functions/getUserSToke.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,YAAY,GACvB,aAAa,MAAM,EACnB,yCAIG;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyCF,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Address } from "viem";
|
|
2
|
-
import { Config } from "wagmi";
|
|
3
|
-
export declare const getUserSTokeRewards: (wagmiConfig: Config, { address, tokePrice, includeTestnet, }: {
|
|
4
|
-
address: Address;
|
|
5
|
-
tokePrice: number;
|
|
6
|
-
includeTestnet?: boolean;
|
|
7
|
-
}) => Promise<{
|
|
8
|
-
chains: {
|
|
9
|
-
[x: number]: {
|
|
10
|
-
claimable: bigint;
|
|
11
|
-
rewardsPayload: import("./getRewardsPayloadV1").IUserReward | null;
|
|
12
|
-
latestClaimablePayload: import("./getRewardsPayloadV1").IUserReward;
|
|
13
|
-
claimableUsd: number;
|
|
14
|
-
claimableNum: number;
|
|
15
|
-
hasClaimable: boolean;
|
|
16
|
-
pendingRewards: number;
|
|
17
|
-
pendingRewardsUsd: number;
|
|
18
|
-
totalRewardsReceived: number;
|
|
19
|
-
totalRewardsReceivedUsd: number;
|
|
20
|
-
} | {
|
|
21
|
-
rewardsPayload: import("./getRewardsPayloadV1").IUserReward | null;
|
|
22
|
-
latestClaimablePayload: null;
|
|
23
|
-
claimable?: undefined;
|
|
24
|
-
claimableUsd: number;
|
|
25
|
-
claimableNum: number;
|
|
26
|
-
hasClaimable: boolean;
|
|
27
|
-
pendingRewards: number;
|
|
28
|
-
pendingRewardsUsd: number;
|
|
29
|
-
totalRewardsReceived: number;
|
|
30
|
-
totalRewardsReceivedUsd: number;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
totalClaimable: number;
|
|
34
|
-
totalClaimableUsd: string;
|
|
35
|
-
totalPendingRewards: number;
|
|
36
|
-
totalPendingRewardsUsd: string;
|
|
37
|
-
} | undefined>;
|
|
38
|
-
//# sourceMappingURL=getUserSTokeRewards.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getUserSTokeRewards.d.ts","sourceRoot":"","sources":["../../functions/getUserSTokeRewards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,mBAAmB,GAC9B,aAAa,MAAM,EACnB,yCAIG;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwDF,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Address } from "viem";
|
|
2
|
-
import { Config } from "@wagmi/core";
|
|
3
|
-
import { ISushiLP } from "./getSushiLP";
|
|
4
|
-
export declare const getUserSushiLP: (wagmiConfig: Config, { sushiLP, currentCycleIndex, address, cycleRolloverBlockNumber, chainId, }: {
|
|
5
|
-
sushiLP: ISushiLP;
|
|
6
|
-
currentCycleIndex: bigint;
|
|
7
|
-
address: Address;
|
|
8
|
-
cycleRolloverBlockNumber: bigint;
|
|
9
|
-
chainId: number;
|
|
10
|
-
}) => Promise<{
|
|
11
|
-
sushiLPBalance: bigint | undefined;
|
|
12
|
-
tSushiLPBalance: bigint | undefined;
|
|
13
|
-
tSushiLPRequested: readonly [bigint, amount: bigint] | undefined;
|
|
14
|
-
shareOftSushiLP: number;
|
|
15
|
-
tSushiLPUsd: number;
|
|
16
|
-
balanceExcludingWithdrawal: bigint;
|
|
17
|
-
hasAddedTSushi: boolean;
|
|
18
|
-
hasRequestedUnlock: boolean;
|
|
19
|
-
hasUnlockableBalance: boolean;
|
|
20
|
-
withdrawalAmount: bigint;
|
|
21
|
-
hasBalanceExcludingWithdrawal: boolean;
|
|
22
|
-
} | undefined>;
|
|
23
|
-
//# sourceMappingURL=getUserSushiLP.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getUserSushiLP.d.ts","sourceRoot":"","sources":["../../functions/getUserSushiLP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAiB,MAAM,aAAa,CAAC;AAGpD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,eAAO,MAAM,cAAc,GACzB,aAAa,MAAM,EACnB,6EAMG;IACD,OAAO,EAAE,QAAQ,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,wBAAwB,EAAE,MAAM,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;CACjB;;;;;;;;;;;;cAoGF,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Config } from "@wagmi/core";
|
|
2
|
-
import { Address } from "viem";
|
|
3
|
-
export declare const getUserV1: (wagmiConfig: Config, { currentCycleIndex, address, chainId, }: {
|
|
4
|
-
currentCycleIndex: bigint;
|
|
5
|
-
address: Address;
|
|
6
|
-
chainId: number;
|
|
7
|
-
}) => Promise<{
|
|
8
|
-
stakedToke: bigint;
|
|
9
|
-
claimableToke: bigint | undefined;
|
|
10
|
-
claimableEth: bigint | undefined;
|
|
11
|
-
claimableAutoEth: bigint;
|
|
12
|
-
tokeRewardsPayload: import("./getRewardsPayloadV1").IUserReward | null | undefined;
|
|
13
|
-
ethRewardsPayload: import("./getRewardsPayloadV1").IUserReward | null | undefined;
|
|
14
|
-
missedTokeRewardsPayload: import("./getRewardsPayloadV1").IUserReward | null;
|
|
15
|
-
autoEthGuardedRewardsPayload: import("./getRewardsPayloadV1").IUserReward | null;
|
|
16
|
-
claimableMissedToke: bigint;
|
|
17
|
-
} | undefined>;
|
|
18
|
-
//# sourceMappingURL=getUserV1.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getUserV1.d.ts","sourceRoot":"","sources":["../../functions/getUserV1.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAgB,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAM/B,eAAO,MAAM,SAAS,GACpB,aAAa,MAAM,EACnB,0CAIG;IACD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;;;;;;;;;;cAyGF,CAAC"}
|