@stakekit/widget 0.0.278 → 0.0.279
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/bundle/index.bundle.js +40 -40
- package/dist/package/index.package.js +2467 -2074
- package/dist/types/common/get-token-balances.d.ts +4 -2
- package/dist/types/domain/types/action.d.ts +2 -0
- package/dist/types/domain/types/kyc.d.ts +1 -1
- package/dist/types/domain/types/stake.d.ts +1 -1
- package/dist/types/domain/types/token-balance.d.ts +4 -1
- package/dist/types/generated/api/legacy.d.ts +140 -5
- package/dist/types/generated/api/yield.d.ts +85 -16
- package/dist/types/hooks/api/use-activity-actions.d.ts +34 -2
- package/dist/types/hooks/api/use-default-tokens.d.ts +185 -8
- package/dist/types/hooks/navigation/use-unstake-or-pending-action-params.d.ts +1 -1
- package/dist/types/hooks/use-init-query-params.d.ts +2 -2
- package/dist/types/pages/details/activity-page/activity-filters.d.ts +4 -10
- package/dist/types/pages/details/activity-page/hooks/use-activity-filters.d.ts +4 -6
- package/dist/types/pages/details/activity-page/hooks/use-activity-page.d.ts +4 -2
- package/dist/types/pages/details/activity-page/state/types.d.ts +5 -0
- package/dist/types/pages/details/earn-page/state/types.d.ts +5 -1
- package/dist/types/pages/details/earn-page/state/use-get-init-yield.d.ts +3 -1
- package/dist/types/pages/details/earn-page/state/use-get-token-balances-map.d.ts +1 -1
- package/dist/types/pages/details/earn-page/state/use-init-token.d.ts +1 -1
- package/dist/types/pages/details/earn-page/state/use-token-balance.d.ts +4 -2
- package/dist/types/pages/details/earn-page/state/use-token-balances-map.d.ts +4 -1
- package/dist/types/pages/review/hooks/use-pending-review.hook.d.ts +1 -1
- package/dist/types/pages-dashboard/common/components/tabs/tab.d.ts +1 -1
- package/dist/types/providers/api/api-client-provider.d.ts +8 -0
- package/dist/types/providers/api/api-client.d.ts +8 -0
- package/dist/types/providers/settings/index.d.ts +2 -2
- package/dist/types/providers/settings/types.d.ts +7 -1
- package/dist/types/translation/resources.d.ts +16 -0
- package/dist/website/assets/{basic-B6mp0zAt.js → basic-D3nwtDfO.js} +1 -1
- package/dist/website/assets/{basic-COtSRBWn.js → basic-DI04q-z5.js} +1 -1
- package/dist/website/assets/{browser-DlS057kQ.js → browser-BGQxsRzX.js} +1 -1
- package/dist/website/assets/{build-B42j8XfN.js → build-BO-twdq7.js} +1 -1
- package/dist/website/assets/{build-C3BnF_yX.js → build-CEAQPMiq.js} +1 -1
- package/dist/website/assets/{cardano-connector-Bhntw_t9.js → cardano-connector-ecZtuJQB.js} +1 -1
- package/dist/website/assets/{core-XcRP3coP.js → core-B3_9JvTp.js} +2 -2
- package/dist/website/assets/{dist-inm--arR.js → dist-BYlQhRkj.js} +1 -1
- package/dist/website/assets/{dist-Codtf9eb.js → dist-DEMLOD_H.js} +1 -1
- package/dist/website/assets/en_US-IFPOGBSL-C6vS0nJu.js +1 -0
- package/dist/website/assets/{esm-ZiJzF2A0.js → esm-BQw3npTs.js} +1 -1
- package/dist/website/assets/{exports-CyYSC3cP.js → exports-DAW2JAuG.js} +1 -1
- package/dist/website/assets/{index-DKvgVcnp.js → index-76KqbRyx.js} +10 -10
- package/dist/website/assets/{index.es-DvvwVKcs.js → index.es-7QZH23xL.js} +2 -2
- package/dist/website/assets/{ledger-connector-B18-WePP.js → ledger-connector-JukZtwLj.js} +1 -1
- package/dist/website/assets/{receive-AVnNiEqk.js → receive-BDUZF0CU.js} +1 -1
- package/dist/website/assets/{registry-DdkFsSTf.js → registry-BWniouhx.js} +1 -1
- package/dist/website/assets/{safe-connector-8xKDfpEB.js → safe-connector-rgvIlZts.js} +1 -1
- package/dist/website/assets/{socials-DPfvdnuK.js → socials-DfLvlbuC.js} +1 -1
- package/dist/website/assets/{solana-connector-Bv33WvyR.js → solana-connector-BbGZaah6.js} +1 -1
- package/dist/website/assets/{substrate-connector-DlOCsOcs.js → substrate-connector-D8xzZ-Ot.js} +1 -1
- package/dist/website/assets/{ton-connector-D8V6GzAg.js → ton-connector-BN_syN6v.js} +1 -1
- package/dist/website/assets/{tron-connector-DEk19bH5.js → tron-connector-CUEWVgiG.js} +3 -3
- package/dist/website/assets/tx-yuT9VUC1.js +1 -0
- package/dist/website/assets/{wallet-manager-Buj8Wwd2.js → wallet-manager-Cfp7arwy.js} +3 -3
- package/dist/website/assets/{wui-qr-code-CaP1gUiJ.js → wui-qr-code-Bcjr7F8m.js} +1 -1
- package/dist/website/index.html +1 -1
- package/package.json +1 -1
- package/dist/website/assets/en_US-IFPOGBSL-DmyC9Biu.js +0 -1
- package/dist/website/assets/tx-B31H-PDz.js +0 -1
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { useInfiniteQuery } from "@tanstack/react-query";
|
|
2
2
|
import { type ActionDto } from "../../domain/types/action";
|
|
3
3
|
import type { Yield } from "../../domain/types/yields";
|
|
4
|
-
import type { ValidatorDto } from "../../generated/api/yield";
|
|
4
|
+
import type { ActionsControllerGetActionsParams, ValidatorDto } from "../../generated/api/yield";
|
|
5
|
+
import { type ActivityFilter } from "../../pages/details/activity-page/activity-filters";
|
|
6
|
+
import type { ActivityFilterOption } from "../../pages/details/activity-page/hooks/use-activity-filters";
|
|
7
|
+
import type { ApiClient } from "../../providers/api/api-client";
|
|
5
8
|
type ActivityActionItem = {
|
|
6
9
|
actionData: ActionDto;
|
|
7
10
|
yieldData: Yield;
|
|
@@ -10,5 +13,34 @@ type ActivityActionItem = {
|
|
|
10
13
|
type UseActivityActionsResult = ReturnType<typeof useInfiniteQuery> & {
|
|
11
14
|
allItems: ActivityActionItem[] | undefined;
|
|
12
15
|
};
|
|
13
|
-
|
|
16
|
+
type ActivityActionsRequestParams = {
|
|
17
|
+
address: string;
|
|
18
|
+
filter: ActivityFilter;
|
|
19
|
+
limit: number;
|
|
20
|
+
network: NonNullable<ActionsControllerGetActionsParams["network"]>;
|
|
21
|
+
offset: number;
|
|
22
|
+
};
|
|
23
|
+
type ActivityFilterOptionsParams = {
|
|
24
|
+
address: string;
|
|
25
|
+
apiClient: ApiClient;
|
|
26
|
+
network: NonNullable<ActionsControllerGetActionsParams["network"]>;
|
|
27
|
+
signal?: AbortSignal;
|
|
28
|
+
};
|
|
29
|
+
export declare const getActivityActionsQueryKey: ({ address, filter, network, }: {
|
|
30
|
+
address: string | null | undefined;
|
|
31
|
+
filter: ActivityFilter;
|
|
32
|
+
network: ActionsControllerGetActionsParams["network"] | null | undefined;
|
|
33
|
+
}) => readonly ["activity-actions", {
|
|
34
|
+
readonly address: string | null | undefined;
|
|
35
|
+
readonly filter: ActivityFilter;
|
|
36
|
+
readonly network: "base" | "polygon" | "ethereum" | "ethereum-goerli" | "ethereum-holesky" | "ethereum-sepolia" | "ethereum-hoodi" | "arbitrum" | "base-sepolia" | "gnosis" | "optimism" | "polygon-amoy" | "starknet" | "zksync" | "linea" | "unichain" | "monad-testnet" | "monad" | "robinhood-testnet" | "avalanche-c" | "avalanche-c-atomic" | "avalanche-p" | "binance" | "celo" | "fantom" | "harmony" | "moonriver" | "okc" | "viction" | "core" | "sonic" | "plasma" | "katana" | "hyperevm" | "tempo" | "agoric" | "akash" | "axelar" | "band-protocol" | "bitsong" | "canto" | "chihuahua" | "comdex" | "coreum" | "cosmos" | "crescent" | "cronos" | "cudos" | "desmos" | "dydx" | "evmos" | "fetch-ai" | "gravity-bridge" | "injective" | "irisnet" | "juno" | "kava" | "ki-network" | "mars-protocol" | "nym" | "okex-chain" | "onomy" | "osmosis" | "persistence" | "quicksilver" | "regen" | "secret" | "sentinel" | "sommelier" | "stafi" | "stargaze" | "stride" | "teritori" | "tgrade" | "umee" | "sei" | "mantra" | "celestia" | "saga" | "zetachain" | "dymension" | "humansai" | "neutron" | "polkadot" | "kusama" | "westend" | "bittensor" | "aptos" | "binancebeacon" | "cardano" | "near" | "solana" | "solana-devnet" | "stellar" | "stellar-testnet" | "sui" | "tezos" | "tron" | "ton" | "ton-testnet" | "hyperliquid" | null | undefined;
|
|
37
|
+
readonly yieldTypes: readonly ("vault" | "staking" | "lending" | "restaking" | "fixed_yield" | "real_world_asset" | "concentrated_liquidity_pool" | "liquidity_pool")[] | undefined;
|
|
38
|
+
}];
|
|
39
|
+
export declare const getActivityActionsRequestParams: ({ address, filter, limit, network, offset, }: ActivityActionsRequestParams) => ActionsControllerGetActionsParams;
|
|
40
|
+
export declare const fetchActivityFilterOptions: ({ address, apiClient, network, signal, }: ActivityFilterOptionsParams) => Promise<ActivityFilterOption[]>;
|
|
41
|
+
export declare const useActivityFilterOptions: () => ActivityFilterOption[];
|
|
42
|
+
export declare const usePrefetchActivityActionFilters: ({ filterOptions, }: {
|
|
43
|
+
filterOptions: ActivityFilterOption[];
|
|
44
|
+
}) => void;
|
|
45
|
+
export declare const useActivityActions: (filter?: ActivityFilter) => UseActivityActionsResult;
|
|
14
46
|
export {};
|
|
@@ -1,12 +1,189 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type QueryClient } from "@tanstack/react-query";
|
|
2
2
|
import { EitherAsync } from "purify-ts";
|
|
3
|
-
import type {
|
|
3
|
+
import type { TokenBalanceScanResponseDto } from "../../domain/types/token-balance";
|
|
4
|
+
import type { TokenDto } from "../../domain/types/tokens";
|
|
5
|
+
import { type DashboardYieldCategory } from "../../domain/types/yields";
|
|
6
|
+
import type { TokensControllerGetTokensParams as YieldTokenGetTokensParams } from "../../generated/api/yield";
|
|
4
7
|
import type { ApiClient } from "../../providers/api/api-client";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
type YieldTokenTypes = YieldTokenGetTokensParams["yieldTypes"];
|
|
9
|
+
type DefaultTokensQueryParams = {
|
|
10
|
+
enabledYieldsOnly?: boolean;
|
|
11
|
+
network?: TokenDto["network"];
|
|
12
|
+
yieldTypes?: YieldTokenTypes;
|
|
13
|
+
};
|
|
14
|
+
type DefaultTokensPage = {
|
|
15
|
+
limit?: number;
|
|
16
|
+
nextOffset?: number;
|
|
17
|
+
offset?: number;
|
|
18
|
+
tokens: TokenBalanceScanResponseDto[];
|
|
19
|
+
total?: number;
|
|
20
|
+
};
|
|
21
|
+
type DefaultTokensPages = {
|
|
22
|
+
pages: DefaultTokensPage[];
|
|
23
|
+
pageParams: number[];
|
|
24
|
+
};
|
|
25
|
+
type FetchDefaultTokensPageParams = DefaultTokensQueryParams & {
|
|
10
26
|
apiClient: ApiClient;
|
|
11
|
-
|
|
27
|
+
limit?: number;
|
|
28
|
+
offset?: number;
|
|
29
|
+
signal?: AbortSignal;
|
|
30
|
+
};
|
|
31
|
+
export declare const getYieldTypesForDashboardCategory: (yieldCategory?: DashboardYieldCategory | null) => YieldTokenTypes;
|
|
32
|
+
export declare const fetchDefaultTokens: ({ apiClient, enabledYieldsOnly, limit, network, offset: firstOffset, signal, yieldTypes, }: FetchDefaultTokensPageParams) => Promise<DefaultTokensPages>;
|
|
33
|
+
export declare const useDefaultTokens: ({ yieldCategory, }?: {
|
|
34
|
+
yieldCategory?: DashboardYieldCategory | null;
|
|
35
|
+
}) => import("@tanstack/react-query").InfiniteQueryObserverRefetchErrorResult<TokenBalanceScanResponseDto[], Error> | import("@tanstack/react-query").InfiniteQueryObserverSuccessResult<TokenBalanceScanResponseDto[], Error> | import("@tanstack/react-query").InfiniteQueryObserverLoadingErrorResult<TokenBalanceScanResponseDto[], Error> | import("@tanstack/react-query").InfiniteQueryObserverPendingResult<TokenBalanceScanResponseDto[], Error> | import("@tanstack/react-query").InfiniteQueryObserverPlaceholderResult<TokenBalanceScanResponseDto[], Error> | {
|
|
36
|
+
fetchNextPage: () => undefined;
|
|
37
|
+
hasNextPage: boolean;
|
|
38
|
+
isFetchingNextPage: boolean;
|
|
39
|
+
data: TokenBalanceScanResponseDto[];
|
|
40
|
+
error: Error;
|
|
41
|
+
isError: true;
|
|
42
|
+
isPending: false;
|
|
43
|
+
isLoading: false;
|
|
44
|
+
isLoadingError: false;
|
|
45
|
+
isRefetchError: true;
|
|
46
|
+
isSuccess: false;
|
|
47
|
+
isPlaceholderData: false;
|
|
48
|
+
status: "error";
|
|
49
|
+
dataUpdatedAt: number;
|
|
50
|
+
errorUpdatedAt: number;
|
|
51
|
+
failureCount: number;
|
|
52
|
+
failureReason: Error | null;
|
|
53
|
+
errorUpdateCount: number;
|
|
54
|
+
isFetched: boolean;
|
|
55
|
+
isFetchedAfterMount: boolean;
|
|
56
|
+
isFetching: boolean;
|
|
57
|
+
isInitialLoading: boolean;
|
|
58
|
+
isPaused: boolean;
|
|
59
|
+
isRefetching: boolean;
|
|
60
|
+
isStale: boolean;
|
|
61
|
+
isEnabled: boolean;
|
|
62
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<TokenBalanceScanResponseDto[], Error>>;
|
|
63
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
64
|
+
promise: Promise<TokenBalanceScanResponseDto[]>;
|
|
65
|
+
} | {
|
|
66
|
+
fetchNextPage: () => undefined;
|
|
67
|
+
hasNextPage: boolean;
|
|
68
|
+
isFetchingNextPage: boolean;
|
|
69
|
+
data: TokenBalanceScanResponseDto[];
|
|
70
|
+
error: null;
|
|
71
|
+
isError: false;
|
|
72
|
+
isPending: false;
|
|
73
|
+
isLoading: false;
|
|
74
|
+
isLoadingError: false;
|
|
75
|
+
isRefetchError: false;
|
|
76
|
+
isSuccess: true;
|
|
77
|
+
isPlaceholderData: false;
|
|
78
|
+
status: "success";
|
|
79
|
+
dataUpdatedAt: number;
|
|
80
|
+
errorUpdatedAt: number;
|
|
81
|
+
failureCount: number;
|
|
82
|
+
failureReason: Error | null;
|
|
83
|
+
errorUpdateCount: number;
|
|
84
|
+
isFetched: boolean;
|
|
85
|
+
isFetchedAfterMount: boolean;
|
|
86
|
+
isFetching: boolean;
|
|
87
|
+
isInitialLoading: boolean;
|
|
88
|
+
isPaused: boolean;
|
|
89
|
+
isRefetching: boolean;
|
|
90
|
+
isStale: boolean;
|
|
91
|
+
isEnabled: boolean;
|
|
92
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<TokenBalanceScanResponseDto[], Error>>;
|
|
93
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
94
|
+
promise: Promise<TokenBalanceScanResponseDto[]>;
|
|
95
|
+
} | {
|
|
96
|
+
fetchNextPage: () => undefined;
|
|
97
|
+
hasNextPage: boolean;
|
|
98
|
+
isFetchingNextPage: boolean;
|
|
99
|
+
data: undefined;
|
|
100
|
+
error: Error;
|
|
101
|
+
isError: true;
|
|
102
|
+
isPending: false;
|
|
103
|
+
isLoading: false;
|
|
104
|
+
isLoadingError: true;
|
|
105
|
+
isRefetchError: false;
|
|
106
|
+
isSuccess: false;
|
|
107
|
+
isPlaceholderData: false;
|
|
108
|
+
status: "error";
|
|
109
|
+
dataUpdatedAt: number;
|
|
110
|
+
errorUpdatedAt: number;
|
|
111
|
+
failureCount: number;
|
|
112
|
+
failureReason: Error | null;
|
|
113
|
+
errorUpdateCount: number;
|
|
114
|
+
isFetched: boolean;
|
|
115
|
+
isFetchedAfterMount: boolean;
|
|
116
|
+
isFetching: boolean;
|
|
117
|
+
isInitialLoading: boolean;
|
|
118
|
+
isPaused: boolean;
|
|
119
|
+
isRefetching: boolean;
|
|
120
|
+
isStale: boolean;
|
|
121
|
+
isEnabled: boolean;
|
|
122
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<TokenBalanceScanResponseDto[], Error>>;
|
|
123
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
124
|
+
promise: Promise<TokenBalanceScanResponseDto[]>;
|
|
125
|
+
} | {
|
|
126
|
+
fetchNextPage: () => undefined;
|
|
127
|
+
hasNextPage: boolean;
|
|
128
|
+
isFetchingNextPage: boolean;
|
|
129
|
+
data: undefined;
|
|
130
|
+
error: null;
|
|
131
|
+
isError: false;
|
|
132
|
+
isPending: true;
|
|
133
|
+
isLoadingError: false;
|
|
134
|
+
isRefetchError: false;
|
|
135
|
+
isSuccess: false;
|
|
136
|
+
isPlaceholderData: false;
|
|
137
|
+
status: "pending";
|
|
138
|
+
dataUpdatedAt: number;
|
|
139
|
+
errorUpdatedAt: number;
|
|
140
|
+
failureCount: number;
|
|
141
|
+
failureReason: Error | null;
|
|
142
|
+
errorUpdateCount: number;
|
|
143
|
+
isFetched: boolean;
|
|
144
|
+
isFetchedAfterMount: boolean;
|
|
145
|
+
isFetching: boolean;
|
|
146
|
+
isLoading: boolean;
|
|
147
|
+
isInitialLoading: boolean;
|
|
148
|
+
isPaused: boolean;
|
|
149
|
+
isRefetching: boolean;
|
|
150
|
+
isStale: boolean;
|
|
151
|
+
isEnabled: boolean;
|
|
152
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<TokenBalanceScanResponseDto[], Error>>;
|
|
153
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
154
|
+
promise: Promise<TokenBalanceScanResponseDto[]>;
|
|
155
|
+
} | {
|
|
156
|
+
fetchNextPage: () => undefined;
|
|
157
|
+
hasNextPage: boolean;
|
|
158
|
+
isFetchingNextPage: boolean;
|
|
159
|
+
data: TokenBalanceScanResponseDto[];
|
|
160
|
+
isError: false;
|
|
161
|
+
error: null;
|
|
162
|
+
isPending: false;
|
|
163
|
+
isLoading: false;
|
|
164
|
+
isLoadingError: false;
|
|
165
|
+
isRefetchError: false;
|
|
166
|
+
isSuccess: true;
|
|
167
|
+
isPlaceholderData: true;
|
|
168
|
+
status: "success";
|
|
169
|
+
dataUpdatedAt: number;
|
|
170
|
+
errorUpdatedAt: number;
|
|
171
|
+
failureCount: number;
|
|
172
|
+
failureReason: Error | null;
|
|
173
|
+
errorUpdateCount: number;
|
|
174
|
+
isFetched: boolean;
|
|
175
|
+
isFetchedAfterMount: boolean;
|
|
176
|
+
isFetching: boolean;
|
|
177
|
+
isInitialLoading: boolean;
|
|
178
|
+
isPaused: boolean;
|
|
179
|
+
isRefetching: boolean;
|
|
180
|
+
isStale: boolean;
|
|
181
|
+
isEnabled: boolean;
|
|
182
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<TokenBalanceScanResponseDto[], Error>>;
|
|
183
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
184
|
+
promise: Promise<TokenBalanceScanResponseDto[]>;
|
|
185
|
+
};
|
|
186
|
+
export declare const getDefaultTokens: (params: Omit<FetchDefaultTokensPageParams, "signal"> & {
|
|
187
|
+
queryClient: QueryClient;
|
|
188
|
+
}) => EitherAsync<Error, TokenBalanceScanResponseDto[]>;
|
|
12
189
|
export {};
|
|
@@ -8,7 +8,7 @@ export declare const getPositionDetailsPendingActionReviewPath: ({ balanceId, in
|
|
|
8
8
|
export declare const useUnstakeOrPendingActionParams: () => {
|
|
9
9
|
balanceId: import("purify-ts/Maybe").Maybe<string>;
|
|
10
10
|
integrationId: import("purify-ts/Maybe").Maybe<string>;
|
|
11
|
-
pendingActionType: import("purify-ts/Maybe").Maybe<"STAKE" | "UNSTAKE" | "VOTE" | "REVOKE" | "RESTAKE" | "REBOND" | "WITHDRAW" | "MIGRATE" | "DELEGATE" | "CLAIM_UNSTAKED" | "CLAIM_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW_ALL" | "VERIFY_WITHDRAW_CREDENTIALS" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE_LOCKED" | "REVOTE">;
|
|
11
|
+
pendingActionType: import("purify-ts/Maybe").Maybe<"STAKE" | "UNSTAKE" | "VOTE" | "REVOKE" | "RESTAKE" | "REBOND" | "WITHDRAW" | "MIGRATE" | "DELEGATE" | "CLAIM_UNSTAKED" | "CLAIM_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW_ALL" | "VERIFY_WITHDRAW_CREDENTIALS" | "WITHDRAW_REQUEST" | "INSTANT_WITHDRAW" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE_LOCKED" | "REVOTE">;
|
|
12
12
|
plain: {
|
|
13
13
|
balanceId: string | undefined;
|
|
14
14
|
integrationId: string | undefined;
|
|
@@ -5,7 +5,7 @@ export declare const useInitQueryParams: () => import("purify-ts/Maybe").Maybe<{
|
|
|
5
5
|
yieldId: string | null;
|
|
6
6
|
balanceId: string | null;
|
|
7
7
|
validator: string | null;
|
|
8
|
-
pendingaction: "STAKE" | "UNSTAKE" | "VOTE" | "REVOKE" | "RESTAKE" | "REBOND" | "WITHDRAW" | "MIGRATE" | "DELEGATE" | "CLAIM_UNSTAKED" | "CLAIM_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW_ALL" | "VERIFY_WITHDRAW_CREDENTIALS" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE_LOCKED" | "REVOTE" | null;
|
|
8
|
+
pendingaction: "STAKE" | "UNSTAKE" | "VOTE" | "REVOKE" | "RESTAKE" | "REBOND" | "WITHDRAW" | "MIGRATE" | "DELEGATE" | "CLAIM_UNSTAKED" | "CLAIM_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW_ALL" | "VERIFY_WITHDRAW_CREDENTIALS" | "WITHDRAW_REQUEST" | "INSTANT_WITHDRAW" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE_LOCKED" | "REVOTE" | null;
|
|
9
9
|
accountId: string | null;
|
|
10
10
|
tab: "positions" | "earn" | null;
|
|
11
11
|
}>;
|
|
@@ -17,7 +17,7 @@ export declare const getAndValidateInitParams: ({ externalProviderInitToken, }:
|
|
|
17
17
|
yieldId: string | null;
|
|
18
18
|
balanceId: string | null;
|
|
19
19
|
validator: string | null;
|
|
20
|
-
pendingaction: "STAKE" | "UNSTAKE" | "VOTE" | "REVOKE" | "RESTAKE" | "REBOND" | "WITHDRAW" | "MIGRATE" | "DELEGATE" | "CLAIM_UNSTAKED" | "CLAIM_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW_ALL" | "VERIFY_WITHDRAW_CREDENTIALS" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE_LOCKED" | "REVOTE" | null;
|
|
20
|
+
pendingaction: "STAKE" | "UNSTAKE" | "VOTE" | "REVOKE" | "RESTAKE" | "REBOND" | "WITHDRAW" | "MIGRATE" | "DELEGATE" | "CLAIM_UNSTAKED" | "CLAIM_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW_ALL" | "VERIFY_WITHDRAW_CREDENTIALS" | "WITHDRAW_REQUEST" | "INSTANT_WITHDRAW" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE_LOCKED" | "REVOTE" | null;
|
|
21
21
|
accountId: string | null;
|
|
22
22
|
tab: "positions" | "earn" | null;
|
|
23
23
|
}>;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { type DashboardYieldCategory } from "../../../domain/types/yields";
|
|
2
|
-
import type {
|
|
3
|
-
export type
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
* Order in which the filter pills are rendered. "borrow" has no client-side
|
|
7
|
-
* signal yet and will only start matching once the API exposes a category per
|
|
8
|
-
* action; until then its pill stays hidden because no items resolve to it.
|
|
9
|
-
*/
|
|
10
|
-
export declare const activityFilterCategories: readonly ["stake", "defi", "rwa", "borrow"];
|
|
11
|
-
export declare const getActivityFilterCategory: (action: ActionYieldDto) => ActivityFilterCategory | null;
|
|
2
|
+
import type { ActionsControllerGetActionsParams } from "../../../generated/api/yield";
|
|
3
|
+
export type ActivityFilter = "all" | DashboardYieldCategory;
|
|
4
|
+
export declare const activityFilterCategories: readonly ["stake", "defi", "rwa"];
|
|
5
|
+
export declare const getActivityFilterYieldTypes: (filter: ActivityFilter) => ActionsControllerGetActionsParams["yieldTypes"];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { ActionYieldDto } from "../types";
|
|
1
|
+
import type { ActivityFilter } from "../activity-filters";
|
|
3
2
|
export type ActivityFilterOption = {
|
|
4
3
|
filter: ActivityFilter;
|
|
5
4
|
count: number;
|
|
@@ -7,9 +6,8 @@ export type ActivityFilterOption = {
|
|
|
7
6
|
type UseActivityFiltersResult = {
|
|
8
7
|
selectedFilter: ActivityFilter;
|
|
9
8
|
setSelectedFilter: (filter: ActivityFilter) => void;
|
|
10
|
-
options: ActivityFilterOption[];
|
|
11
|
-
filteredData: ActionYieldDto[] | undefined;
|
|
12
|
-
filteredCount: number;
|
|
13
9
|
};
|
|
14
|
-
export declare const useActivityFilters: (
|
|
10
|
+
export declare const useActivityFilters: ({ options, }: {
|
|
11
|
+
options: ActivityFilterOption[];
|
|
12
|
+
}) => UseActivityFiltersResult;
|
|
15
13
|
export {};
|
|
@@ -2,18 +2,20 @@ import { type ReactNode } from "react";
|
|
|
2
2
|
import type { ActivityFilter } from "../activity-filters";
|
|
3
3
|
import { useActivityPageContext } from "../state/activity-page.context";
|
|
4
4
|
import type { ActionYieldDto } from "../types";
|
|
5
|
-
import {
|
|
5
|
+
import type { ActivityFilterOption } from "./use-activity-filters";
|
|
6
6
|
type UseActivityPageResult = {
|
|
7
7
|
content: ReactNode;
|
|
8
8
|
onActionSelect: (val: ActionYieldDto) => void;
|
|
9
9
|
showingCount: number;
|
|
10
10
|
total: number;
|
|
11
11
|
allData: ReturnType<typeof useActivityPageContext>["activityActions"]["allItems"];
|
|
12
|
-
filteredData: ReturnType<typeof useActivityPageContext>["activityActions"]["allItems"];
|
|
13
12
|
filterOptions: ActivityFilterOption[];
|
|
14
13
|
selectedFilter: ActivityFilter;
|
|
15
14
|
onFilterSelect: (filter: ActivityFilter) => void;
|
|
16
15
|
activityActions: ReturnType<typeof useActivityPageContext>["activityActions"];
|
|
16
|
+
showActivityContent: boolean;
|
|
17
|
+
showActivityControls: boolean;
|
|
18
|
+
showActivityList: boolean;
|
|
17
19
|
};
|
|
18
20
|
export declare const useActivityPage: () => UseActivityPageResult;
|
|
19
21
|
export {};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { useActivityActions } from "../../../../hooks/api/use-activity-actions";
|
|
2
|
+
import type { ActivityFilter } from "../activity-filters";
|
|
3
|
+
import type { ActivityFilterOption } from "../hooks/use-activity-filters";
|
|
2
4
|
import type { ActionYieldDto } from "../types";
|
|
3
5
|
export type ActivityPageContextType = {
|
|
4
6
|
onActionSelect: (val: ActionYieldDto) => void;
|
|
5
7
|
activityActions: ReturnType<typeof useActivityActions>;
|
|
8
|
+
filterOptions: ActivityFilterOption[];
|
|
9
|
+
selectedFilter: ActivityFilter;
|
|
10
|
+
setSelectedFilter: (filter: ActivityFilter) => void;
|
|
6
11
|
};
|
|
@@ -24,6 +24,7 @@ export type State = {
|
|
|
24
24
|
selectedDashboardYieldCategory: DashboardYieldCategory | null;
|
|
25
25
|
};
|
|
26
26
|
type TokenBalanceSelectAction = Action<"token/select", TokenDto>;
|
|
27
|
+
type TokenBalanceWithYieldsSelectAction = Action<"tokenBalance/select", TokenBalanceScanResponseDto>;
|
|
27
28
|
type DashboardYieldCategorySelectAction = Action<"dashboard/yield-category/select", DashboardYieldCategory>;
|
|
28
29
|
type PositionDetailsStakeInitializeAction = Action<"positionDetails/stake/initialize", Yield>;
|
|
29
30
|
type YieldSelectAction = Action<"yield/select", Yield>;
|
|
@@ -35,7 +36,7 @@ type ValidatorMultiSelectAction = Action<"validator/multiselect", ValidatorDto>;
|
|
|
35
36
|
type ValidatorRemoveAction = Action<"validator/remove", ValidatorDto>;
|
|
36
37
|
type SelectTronResourceAction = Action<"tronResource/select", TronResourceType>;
|
|
37
38
|
type ProviderYieldIdSelectAction = Action<"providerYieldId/select", Yield["id"]>;
|
|
38
|
-
export type Actions = TokenBalanceSelectAction | DashboardYieldCategorySelectAction | PositionDetailsStakeInitializeAction | YieldSelectAction | StakeAmountChangeAction | StakeAmountMaxAction | StateResetAction | ValidatorSelectAction | ValidatorMultiSelectAction | ValidatorRemoveAction | SelectTronResourceAction | ProviderYieldIdSelectAction;
|
|
39
|
+
export type Actions = TokenBalanceSelectAction | TokenBalanceWithYieldsSelectAction | DashboardYieldCategorySelectAction | PositionDetailsStakeInitializeAction | YieldSelectAction | StakeAmountChangeAction | StakeAmountMaxAction | StateResetAction | ValidatorSelectAction | ValidatorMultiSelectAction | ValidatorRemoveAction | SelectTronResourceAction | ProviderYieldIdSelectAction;
|
|
39
40
|
export type ExtraData = {
|
|
40
41
|
actions: {
|
|
41
42
|
onMaxClick: () => void;
|
|
@@ -131,8 +132,11 @@ export type EarnPageContextType = {
|
|
|
131
132
|
stakeMinAmount: Maybe<number>;
|
|
132
133
|
validatorsData: Maybe<ValidatorDto[]>;
|
|
133
134
|
hasMoreValidators: boolean;
|
|
135
|
+
hasMoreTokens: boolean;
|
|
134
136
|
isLoadingMoreValidators: boolean;
|
|
137
|
+
isLoadingMoreTokens: boolean;
|
|
135
138
|
onLoadMoreValidators: () => void;
|
|
139
|
+
onLoadMoreTokens: () => void;
|
|
136
140
|
isStakeTokenSameAsGasToken: boolean;
|
|
137
141
|
};
|
|
138
142
|
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { TokenBalanceScanResponseDto } from "../../../../domain/types/token-balance";
|
|
1
2
|
import type { TokenDto } from "../../../../domain/types/tokens";
|
|
2
3
|
import type { DashboardYieldCategory } from "../../../../domain/types/yields";
|
|
3
|
-
export declare const useGetInitYield: () => ({ selectedDashboardYieldCategory, selectedToken, }: {
|
|
4
|
+
export declare const useGetInitYield: () => ({ availableYields, selectedDashboardYieldCategory, selectedToken, }: {
|
|
5
|
+
availableYields?: TokenBalanceScanResponseDto["availableYields"];
|
|
4
6
|
selectedDashboardYieldCategory?: DashboardYieldCategory | null;
|
|
5
7
|
selectedToken: TokenDto;
|
|
6
8
|
}) => import("purify-ts/Maybe").Maybe<import("../../../../domain/types/yields").Yield>;
|
|
@@ -2,4 +2,4 @@ import type { TokenBalanceScanResponseDto } from "../../../../domain/types/token
|
|
|
2
2
|
export declare const useGetTokenBalancesMap: () => ({ defaultTokens, tokenBalancesScan, }: {
|
|
3
3
|
tokenBalancesScan: ReadonlyArray<TokenBalanceScanResponseDto>;
|
|
4
4
|
defaultTokens: ReadonlyArray<TokenBalanceScanResponseDto>;
|
|
5
|
-
}) => Map<`base-${string}` | `polygon-${string}` | `ethereum-${string}` | `ethereum-goerli-${string}` | `ethereum-holesky-${string}` | `ethereum-sepolia-${string}` | `ethereum-hoodi-${string}` | `arbitrum-${string}` | `base-sepolia-${string}` | `gnosis-${string}` | `optimism-${string}` | `polygon-amoy-${string}` | `starknet-${string}` | `zksync-${string}` | `linea-${string}` | `unichain-${string}` | `monad-testnet-${string}` | `monad-${string}` | `robinhood-testnet-${string}` | `avalanche-c-${string}` | `avalanche-c-atomic-${string}` | `avalanche-p-${string}` | `binance-${string}` | `celo-${string}` | `fantom-${string}` | `harmony-${string}` | `moonriver-${string}` | `okc-${string}` | `viction-${string}` | `core-${string}` | `sonic-${string}` | `plasma-${string}` | `katana-${string}` | `hyperevm-${string}` | `tempo-${string}` | `agoric-${string}` | `akash-${string}` | `axelar-${string}` | `band-protocol-${string}` | `bitsong-${string}` | `canto-${string}` | `chihuahua-${string}` | `comdex-${string}` | `coreum-${string}` | `cosmos-${string}` | `crescent-${string}` | `cronos-${string}` | `cudos-${string}` | `desmos-${string}` | `dydx-${string}` | `evmos-${string}` | `fetch-ai-${string}` | `gravity-bridge-${string}` | `injective-${string}` | `irisnet-${string}` | `juno-${string}` | `kava-${string}` | `ki-network-${string}` | `mars-protocol-${string}` | `nym-${string}` | `okex-chain-${string}` | `onomy-${string}` | `osmosis-${string}` | `persistence-${string}` | `quicksilver-${string}` | `regen-${string}` | `secret-${string}` | `sentinel-${string}` | `sommelier-${string}` | `stafi-${string}` | `stargaze-${string}` | `stride-${string}` | `teritori-${string}` | `tgrade-${string}` | `umee-${string}` | `sei-${string}` | `mantra-${string}` | `celestia-${string}` | `saga-${string}` | `zetachain-${string}` | `dymension-${string}` | `humansai-${string}` | `neutron-${string}` | `polkadot-${string}` | `kusama-${string}` | `westend-${string}` | `bittensor-${string}` | `aptos-${string}` | `binancebeacon-${string}` | `cardano-${string}` | `near-${string}` | `solana-${string}` | `solana-devnet-${string}` | `stellar-${string}` | `stellar-testnet-${string}` | `sui-${string}` | `tezos-${string}` | `tron-${string}` | `ton-${string}` | `ton-testnet-${string}` | `hyperliquid-${string}`,
|
|
5
|
+
}) => Map<`base-${string}` | `polygon-${string}` | `ethereum-${string}` | `ethereum-goerli-${string}` | `ethereum-holesky-${string}` | `ethereum-sepolia-${string}` | `ethereum-hoodi-${string}` | `arbitrum-${string}` | `base-sepolia-${string}` | `gnosis-${string}` | `optimism-${string}` | `polygon-amoy-${string}` | `starknet-${string}` | `zksync-${string}` | `linea-${string}` | `unichain-${string}` | `monad-testnet-${string}` | `monad-${string}` | `robinhood-testnet-${string}` | `avalanche-c-${string}` | `avalanche-c-atomic-${string}` | `avalanche-p-${string}` | `binance-${string}` | `celo-${string}` | `fantom-${string}` | `harmony-${string}` | `moonriver-${string}` | `okc-${string}` | `viction-${string}` | `core-${string}` | `sonic-${string}` | `plasma-${string}` | `katana-${string}` | `hyperevm-${string}` | `tempo-${string}` | `agoric-${string}` | `akash-${string}` | `axelar-${string}` | `band-protocol-${string}` | `bitsong-${string}` | `canto-${string}` | `chihuahua-${string}` | `comdex-${string}` | `coreum-${string}` | `cosmos-${string}` | `crescent-${string}` | `cronos-${string}` | `cudos-${string}` | `desmos-${string}` | `dydx-${string}` | `evmos-${string}` | `fetch-ai-${string}` | `gravity-bridge-${string}` | `injective-${string}` | `irisnet-${string}` | `juno-${string}` | `kava-${string}` | `ki-network-${string}` | `mars-protocol-${string}` | `nym-${string}` | `okex-chain-${string}` | `onomy-${string}` | `osmosis-${string}` | `persistence-${string}` | `quicksilver-${string}` | `regen-${string}` | `secret-${string}` | `sentinel-${string}` | `sommelier-${string}` | `stafi-${string}` | `stargaze-${string}` | `stride-${string}` | `teritori-${string}` | `tgrade-${string}` | `umee-${string}` | `sei-${string}` | `mantra-${string}` | `celestia-${string}` | `saga-${string}` | `zetachain-${string}` | `dymension-${string}` | `humansai-${string}` | `neutron-${string}` | `polkadot-${string}` | `kusama-${string}` | `westend-${string}` | `bittensor-${string}` | `aptos-${string}` | `binancebeacon-${string}` | `cardano-${string}` | `near-${string}` | `solana-${string}` | `solana-devnet-${string}` | `stellar-${string}` | `stellar-testnet-${string}` | `sui-${string}` | `tezos-${string}` | `tron-${string}` | `ton-${string}` | `ton-testnet-${string}` | `hyperliquid-${string}`, TokenBalanceScanResponseDto>;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
*
|
|
3
3
|
* @summary Get init token + loads its available yields
|
|
4
4
|
*/
|
|
5
|
-
export declare const useInitToken: () => import("@tanstack/react-query").UseQueryResult<import("../../../../
|
|
5
|
+
export declare const useInitToken: () => import("@tanstack/react-query").UseQueryResult<import("../../../../domain/types/tokens").TokenDto, Error>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import BigNumber from "bignumber.js";
|
|
2
2
|
import type { Maybe } from "purify-ts";
|
|
3
3
|
import type { TokenDto } from "../../../../domain/types/tokens";
|
|
4
|
-
|
|
4
|
+
import type { DashboardYieldCategory } from "../../../../domain/types/yields";
|
|
5
|
+
export declare const useTokenBalance: ({ selectedDashboardYieldCategory, selectedToken, }: {
|
|
6
|
+
selectedDashboardYieldCategory?: DashboardYieldCategory | null;
|
|
5
7
|
selectedToken: Maybe<TokenDto>;
|
|
6
8
|
}) => {
|
|
7
9
|
availableAmount: import("purify-ts/Maybe").Maybe<BigNumber>;
|
|
8
10
|
availableYields: import("purify-ts/Maybe").Maybe<readonly string[]>;
|
|
9
|
-
tokenBalance: import("purify-ts/Maybe").Maybe<import("../../../../
|
|
11
|
+
tokenBalance: import("purify-ts/Maybe").Maybe<import("../../../../domain/types/token-balance").TokenBalanceScanResponseDto>;
|
|
10
12
|
};
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { DashboardYieldCategory } from "../../../../domain/types/yields";
|
|
2
|
+
export declare const useTokenBalancesMap: ({ selectedDashboardYieldCategory, }?: {
|
|
3
|
+
selectedDashboardYieldCategory?: DashboardYieldCategory | null;
|
|
4
|
+
}) => Map<`base-${string}` | `polygon-${string}` | `ethereum-${string}` | `ethereum-goerli-${string}` | `ethereum-holesky-${string}` | `ethereum-sepolia-${string}` | `ethereum-hoodi-${string}` | `arbitrum-${string}` | `base-sepolia-${string}` | `gnosis-${string}` | `optimism-${string}` | `polygon-amoy-${string}` | `starknet-${string}` | `zksync-${string}` | `linea-${string}` | `unichain-${string}` | `monad-testnet-${string}` | `monad-${string}` | `robinhood-testnet-${string}` | `avalanche-c-${string}` | `avalanche-c-atomic-${string}` | `avalanche-p-${string}` | `binance-${string}` | `celo-${string}` | `fantom-${string}` | `harmony-${string}` | `moonriver-${string}` | `okc-${string}` | `viction-${string}` | `core-${string}` | `sonic-${string}` | `plasma-${string}` | `katana-${string}` | `hyperevm-${string}` | `tempo-${string}` | `agoric-${string}` | `akash-${string}` | `axelar-${string}` | `band-protocol-${string}` | `bitsong-${string}` | `canto-${string}` | `chihuahua-${string}` | `comdex-${string}` | `coreum-${string}` | `cosmos-${string}` | `crescent-${string}` | `cronos-${string}` | `cudos-${string}` | `desmos-${string}` | `dydx-${string}` | `evmos-${string}` | `fetch-ai-${string}` | `gravity-bridge-${string}` | `injective-${string}` | `irisnet-${string}` | `juno-${string}` | `kava-${string}` | `ki-network-${string}` | `mars-protocol-${string}` | `nym-${string}` | `okex-chain-${string}` | `onomy-${string}` | `osmosis-${string}` | `persistence-${string}` | `quicksilver-${string}` | `regen-${string}` | `secret-${string}` | `sentinel-${string}` | `sommelier-${string}` | `stafi-${string}` | `stargaze-${string}` | `stride-${string}` | `teritori-${string}` | `tgrade-${string}` | `umee-${string}` | `sei-${string}` | `mantra-${string}` | `celestia-${string}` | `saga-${string}` | `zetachain-${string}` | `dymension-${string}` | `humansai-${string}` | `neutron-${string}` | `polkadot-${string}` | `kusama-${string}` | `westend-${string}` | `bittensor-${string}` | `aptos-${string}` | `binancebeacon-${string}` | `cardano-${string}` | `near-${string}` | `solana-${string}` | `solana-devnet-${string}` | `stellar-${string}` | `stellar-testnet-${string}` | `sui-${string}` | `tezos-${string}` | `tron-${string}` | `ton-${string}` | `ton-testnet-${string}` | `hyperliquid-${string}`, import("../../../../domain/types/token-balance").TokenBalanceScanResponseDto>;
|
|
@@ -6,7 +6,7 @@ export declare const usePendingActionReview: () => {
|
|
|
6
6
|
fee: string;
|
|
7
7
|
rewardTokenDetailsProps: import("purify-ts/Maybe").Maybe<{
|
|
8
8
|
type: "pendingAction";
|
|
9
|
-
pendingAction: "STAKE" | "UNSTAKE" | "VOTE" | "REVOKE" | "RESTAKE" | "REBOND" | "WITHDRAW" | "MIGRATE" | "DELEGATE" | "CLAIM_UNSTAKED" | "CLAIM_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW_ALL" | "VERIFY_WITHDRAW_CREDENTIALS" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE_LOCKED" | "REVOTE";
|
|
9
|
+
pendingAction: "STAKE" | "UNSTAKE" | "VOTE" | "REVOKE" | "RESTAKE" | "REBOND" | "WITHDRAW" | "MIGRATE" | "DELEGATE" | "CLAIM_UNSTAKED" | "CLAIM_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW_ALL" | "VERIFY_WITHDRAW_CREDENTIALS" | "WITHDRAW_REQUEST" | "INSTANT_WITHDRAW" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE_LOCKED" | "REVOTE";
|
|
10
10
|
rewardToken: import("purify-ts/Maybe").Maybe<{
|
|
11
11
|
logoUri: string;
|
|
12
12
|
providerName: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type Props = {
|
|
2
2
|
isSelected: boolean;
|
|
3
3
|
onTabPress: () => void;
|
|
4
|
-
variant: "stake" | "defi" | "rwa" | "manage" | "activity";
|
|
4
|
+
variant: "earn" | "stake" | "defi" | "rwa" | "manage" | "activity";
|
|
5
5
|
};
|
|
6
6
|
export declare const Tab: ({ isSelected, variant, onTabPress }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -73,6 +73,10 @@ export declare const useApiClient: () => {
|
|
|
73
73
|
readonly payload: import("../../generated/api/yield").TransactionsControllerSubmitTransactionHashRequestJson;
|
|
74
74
|
readonly config?: import("../../generated/api/yield").OperationConfig | undefined;
|
|
75
75
|
}) => Promise<import("../../generated/api/yield").TransactionDto>;
|
|
76
|
+
TokensControllerGetTokens: (options: {
|
|
77
|
+
readonly params?: import("../../generated/api/yield").TokensControllerGetTokensParams | undefined;
|
|
78
|
+
readonly config?: import("../../generated/api/yield").OperationConfig | undefined;
|
|
79
|
+
} | undefined) => Promise<import("../../generated/api/yield").TokensControllerGetTokens200>;
|
|
76
80
|
YieldsControllerGetAggregateBalances: (options: {
|
|
77
81
|
readonly payload: import("../../generated/api/yield").YieldsControllerGetAggregateBalancesRequestJson;
|
|
78
82
|
readonly config?: import("../../generated/api/yield").OperationConfig | undefined;
|
|
@@ -170,6 +174,10 @@ export declare const useApiClient: () => {
|
|
|
170
174
|
readonly payload: import("../../generated/api/yield").TransactionsControllerSubmitTransactionHashRequestJson;
|
|
171
175
|
readonly config?: import("../../generated/api/yield").OperationConfig | undefined;
|
|
172
176
|
}) => Promise<import("../../generated/api/yield").TransactionDto>;
|
|
177
|
+
TokensControllerGetTokens: (options: {
|
|
178
|
+
readonly params?: import("../../generated/api/yield").TokensControllerGetTokensParams | undefined;
|
|
179
|
+
readonly config?: import("../../generated/api/yield").OperationConfig | undefined;
|
|
180
|
+
} | undefined) => Promise<import("../../generated/api/yield").TokensControllerGetTokens200>;
|
|
173
181
|
YieldsControllerGetAggregateBalances: (options: {
|
|
174
182
|
readonly payload: import("../../generated/api/yield").YieldsControllerGetAggregateBalancesRequestJson;
|
|
175
183
|
readonly config?: import("../../generated/api/yield").OperationConfig | undefined;
|
|
@@ -79,6 +79,10 @@ export declare const createApiClient: ({ apiKey, baseUrl, yieldsApiUrl, }: Widge
|
|
|
79
79
|
readonly payload: YieldApi.TransactionsControllerSubmitTransactionHashRequestJson;
|
|
80
80
|
readonly config?: YieldApi.OperationConfig | undefined;
|
|
81
81
|
}) => Promise<YieldApi.TransactionDto>;
|
|
82
|
+
TokensControllerGetTokens: (options: {
|
|
83
|
+
readonly params?: YieldApi.TokensControllerGetTokensParams | undefined;
|
|
84
|
+
readonly config?: YieldApi.OperationConfig | undefined;
|
|
85
|
+
} | undefined) => Promise<YieldApi.TokensControllerGetTokens200>;
|
|
82
86
|
YieldsControllerGetAggregateBalances: (options: {
|
|
83
87
|
readonly payload: YieldApi.YieldsControllerGetAggregateBalancesRequestJson;
|
|
84
88
|
readonly config?: YieldApi.OperationConfig | undefined;
|
|
@@ -176,6 +180,10 @@ export declare const createApiClient: ({ apiKey, baseUrl, yieldsApiUrl, }: Widge
|
|
|
176
180
|
readonly payload: YieldApi.TransactionsControllerSubmitTransactionHashRequestJson;
|
|
177
181
|
readonly config?: YieldApi.OperationConfig | undefined;
|
|
178
182
|
}) => Promise<YieldApi.TransactionDto>;
|
|
183
|
+
TokensControllerGetTokens: (options: {
|
|
184
|
+
readonly params?: YieldApi.TokensControllerGetTokensParams | undefined;
|
|
185
|
+
readonly config?: YieldApi.OperationConfig | undefined;
|
|
186
|
+
} | undefined) => Promise<YieldApi.TokensControllerGetTokens200>;
|
|
179
187
|
YieldsControllerGetAggregateBalances: (options: {
|
|
180
188
|
readonly payload: YieldApi.YieldsControllerGetAggregateBalancesRequestJson;
|
|
181
189
|
readonly config?: YieldApi.OperationConfig | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropsWithChildren } from "react";
|
|
2
|
-
import type { SettingsContextType } from "./types";
|
|
2
|
+
import type { SettingsContextType, SettingsProps, VariantProps } from "./types";
|
|
3
3
|
export declare const SettingsContext: import("react").Context<SettingsContextType | undefined>;
|
|
4
|
-
export declare const SettingsContextProvider: ({ children, ...rest }: PropsWithChildren<
|
|
4
|
+
export declare const SettingsContextProvider: ({ children, ...rest }: PropsWithChildren<SettingsProps & VariantProps>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare const useSettings: () => SettingsContextType;
|
|
@@ -9,6 +9,7 @@ import type { Languages, localResources } from "../../translation/resources";
|
|
|
9
9
|
import type { RecursivePartial } from "../../types/utils";
|
|
10
10
|
import type { ThemeWrapperTheme } from "../theme-wrapper-types";
|
|
11
11
|
import type { Properties, TrackEventVal, TrackPageVal } from "../tracking/types";
|
|
12
|
+
type YieldGrouping = "flat" | "category";
|
|
12
13
|
export type VariantProps = {
|
|
13
14
|
variant: "zerion";
|
|
14
15
|
chainModal: (args: {
|
|
@@ -74,6 +75,7 @@ export type SettingsProps = {
|
|
|
74
75
|
tokenIconMapping?: Record<TokenDto["symbol"], string> | ((token: TokenDto) => string);
|
|
75
76
|
chainIconMapping?: Record<SupportedSKChains, string> | ((chain: SupportedSKChains) => string);
|
|
76
77
|
dashboardVariant?: boolean;
|
|
78
|
+
yieldGrouping?: YieldGrouping;
|
|
77
79
|
institutionalWallets?: boolean;
|
|
78
80
|
hideChainSelector?: boolean;
|
|
79
81
|
hideAccountAndChainSelector?: boolean;
|
|
@@ -82,4 +84,8 @@ export type SettingsProps = {
|
|
|
82
84
|
tonConnectManifestUrl?: string;
|
|
83
85
|
initialChain?: SupportedSKChainIds;
|
|
84
86
|
};
|
|
85
|
-
|
|
87
|
+
type ResolvedSettingsProps = Omit<SettingsProps, "yieldGrouping"> & {
|
|
88
|
+
yieldGrouping: YieldGrouping;
|
|
89
|
+
};
|
|
90
|
+
export type SettingsContextType = ResolvedSettingsProps & VariantProps;
|
|
91
|
+
export {};
|
|
@@ -495,6 +495,8 @@ export declare const localResources: {
|
|
|
495
495
|
pending_action: {
|
|
496
496
|
stake: string;
|
|
497
497
|
unstake: string;
|
|
498
|
+
withdraw_request: string;
|
|
499
|
+
instant_withdraw: string;
|
|
498
500
|
claim_rewards: string;
|
|
499
501
|
auto_sweep_unstake_rewards: string;
|
|
500
502
|
auto_sweep_withdraw_rewards: string;
|
|
@@ -693,6 +695,8 @@ export declare const localResources: {
|
|
|
693
695
|
pending_action: {
|
|
694
696
|
stake: string;
|
|
695
697
|
unstake: string;
|
|
698
|
+
withdraw_request: string;
|
|
699
|
+
instant_withdraw: string;
|
|
696
700
|
claim_rewards: string;
|
|
697
701
|
auto_sweep_unstake_rewards: string;
|
|
698
702
|
auto_sweep_withdraw_rewards: string;
|
|
@@ -723,6 +727,8 @@ export declare const localResources: {
|
|
|
723
727
|
pending_action_button: {
|
|
724
728
|
stake: string;
|
|
725
729
|
unstake: string;
|
|
730
|
+
withdraw_request: string;
|
|
731
|
+
instant_withdraw: string;
|
|
726
732
|
claim_rewards: string;
|
|
727
733
|
auto_sweep_unstake_rewards: string;
|
|
728
734
|
auto_sweep_withdraw_rewards: string;
|
|
@@ -756,6 +762,8 @@ export declare const localResources: {
|
|
|
756
762
|
pending_action_type: {
|
|
757
763
|
stake: string;
|
|
758
764
|
unstake: string;
|
|
765
|
+
withdraw_request: string;
|
|
766
|
+
instant_withdraw: string;
|
|
759
767
|
claim_rewards: string;
|
|
760
768
|
auto_sweep_unstake_rewards: string;
|
|
761
769
|
auto_sweep_withdraw_rewards: string;
|
|
@@ -1266,6 +1274,8 @@ export declare const localResources: {
|
|
|
1266
1274
|
pending_action: {
|
|
1267
1275
|
stake: string;
|
|
1268
1276
|
unstake: string;
|
|
1277
|
+
withdraw_request: string;
|
|
1278
|
+
instant_withdraw: string;
|
|
1269
1279
|
claim_rewards: string;
|
|
1270
1280
|
auto_sweep_unstake_rewards: string;
|
|
1271
1281
|
auto_sweep_withdraw_rewards: string;
|
|
@@ -1464,6 +1474,8 @@ export declare const localResources: {
|
|
|
1464
1474
|
pending_action: {
|
|
1465
1475
|
stake: string;
|
|
1466
1476
|
unstake: string;
|
|
1477
|
+
withdraw_request: string;
|
|
1478
|
+
instant_withdraw: string;
|
|
1467
1479
|
claim_rewards: string;
|
|
1468
1480
|
auto_sweep_unstake_rewards: string;
|
|
1469
1481
|
auto_sweep_withdraw_rewards: string;
|
|
@@ -1494,6 +1506,8 @@ export declare const localResources: {
|
|
|
1494
1506
|
pending_action_button: {
|
|
1495
1507
|
stake: string;
|
|
1496
1508
|
unstake: string;
|
|
1509
|
+
withdraw_request: string;
|
|
1510
|
+
instant_withdraw: string;
|
|
1497
1511
|
claim_rewards: string;
|
|
1498
1512
|
auto_sweep_unstake_rewards: string;
|
|
1499
1513
|
auto_sweep_withdraw_rewards: string;
|
|
@@ -1527,6 +1541,8 @@ export declare const localResources: {
|
|
|
1527
1541
|
pending_action_type: {
|
|
1528
1542
|
stake: string;
|
|
1529
1543
|
unstake: string;
|
|
1544
|
+
withdraw_request: string;
|
|
1545
|
+
instant_withdraw: string;
|
|
1530
1546
|
claim_rewards: string;
|
|
1531
1547
|
auto_sweep_unstake_rewards: string;
|
|
1532
1548
|
auto_sweep_withdraw_rewards: string;
|