@stakekit/widget 0.0.277 → 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.css +1 -1
- package/dist/bundle/index.bundle.js +16 -16
- package/dist/package/index.package.css +1125 -1112
- package/dist/package/index.package.js +4569 -4101
- package/dist/types/common/get-token-balances.d.ts +4 -2
- package/dist/types/components/atoms/box/index.d.ts +3 -3
- package/dist/types/domain/types/action.d.ts +2 -0
- package/dist/types/domain/types/external-providers.d.ts +7 -2
- 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/domain/types/yields.d.ts +1 -0
- 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/steps/hooks/errors.d.ts +3 -1
- package/dist/types/pages/steps/hooks/use-steps-machine.hook.d.ts +1 -1
- package/dist/types/pages/steps/hooks/use-steps.hook.d.ts +2 -1
- package/dist/types/pages/steps/pages/styles.css.d.ts +1 -0
- package/dist/types/pages-dashboard/common/components/tabs/tab.d.ts +1 -1
- package/dist/types/pages-dashboard/overview/earn-details/earn-details-formatters.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/providers/sk-wallet/errors.d.ts +2 -1
- package/dist/types/styles/theme/atoms.css.d.ts +3 -3
- package/dist/types/styles/theme/contract.css.d.ts +1 -0
- package/dist/types/styles/theme/properties.d.ts +3 -0
- package/dist/types/styles/theme/themes.d.ts +2 -0
- package/dist/types/styles/tokens/colors/contract.d.ts +1 -0
- package/dist/types/translation/resources.d.ts +18 -0
- package/dist/website/assets/{basic-pwmIJ5Ws.js → basic-D3nwtDfO.js} +1 -1
- package/dist/website/assets/{basic-CjEpjfzf.js → basic-DI04q-z5.js} +1 -1
- package/dist/website/assets/{browser-CCqMUd7Y.js → browser-BGQxsRzX.js} +1 -1
- package/dist/website/assets/{build-B7EKreOf.js → build-BO-twdq7.js} +1 -1
- package/dist/website/assets/{build-BJXYN5Yd.js → build-CEAQPMiq.js} +1 -1
- package/dist/website/assets/{cardano-connector-Cpx-YJd6.js → cardano-connector-ecZtuJQB.js} +1 -1
- package/dist/website/assets/{core-CJ6UoY0G.js → core-B3_9JvTp.js} +2 -2
- package/dist/website/assets/{dist-DUXhuB4w.js → dist-BYlQhRkj.js} +1 -1
- package/dist/website/assets/{dist-BTQzphBJ.js → dist-DEMLOD_H.js} +1 -1
- package/dist/website/assets/en_US-IFPOGBSL-C6vS0nJu.js +1 -0
- package/dist/website/assets/{esm-CU6m2Mgh.js → esm-BQw3npTs.js} +1 -1
- package/dist/website/assets/{exports-C-Rr_VQ2.js → exports-DAW2JAuG.js} +1 -1
- package/dist/website/assets/{index-STnzu3ZH.js → index-76KqbRyx.js} +26 -26
- package/dist/website/assets/index-DURgR3jz.css +1 -0
- package/dist/website/assets/{index.es-DfIWVmF0.js → index.es-7QZH23xL.js} +2 -2
- package/dist/website/assets/{ledger-connector-BL2CqkDZ.js → ledger-connector-JukZtwLj.js} +1 -1
- package/dist/website/assets/{receive-DbQB8Kb0.js → receive-BDUZF0CU.js} +1 -1
- package/dist/website/assets/{registry-DQZCfZdW.js → registry-BWniouhx.js} +1 -1
- package/dist/website/assets/{safe-connector-DpMirNdU.js → safe-connector-rgvIlZts.js} +1 -1
- package/dist/website/assets/{socials-CVEdW2YA.js → socials-DfLvlbuC.js} +1 -1
- package/dist/website/assets/{solana-connector-D8iHz3KE.js → solana-connector-BbGZaah6.js} +1 -1
- package/dist/website/assets/{substrate-connector-DzMk8xI3.js → substrate-connector-D8xzZ-Ot.js} +1 -1
- package/dist/website/assets/{ton-connector-DkGy3-Cc.js → ton-connector-BN_syN6v.js} +1 -1
- package/dist/website/assets/{tron-connector-CK8wKQTX.js → tron-connector-CUEWVgiG.js} +3 -3
- package/dist/website/assets/tx-yuT9VUC1.js +1 -0
- package/dist/website/assets/{wallet-manager-_pvCvRVJ.js → wallet-manager-Cfp7arwy.js} +3 -3
- package/dist/website/assets/{wui-qr-code-DvTvu_mf.js → wui-qr-code-Bcjr7F8m.js} +1 -1
- package/dist/website/index.html +2 -2
- package/package.json +1 -1
- package/dist/website/assets/en_US-IFPOGBSL-DiQE412U.js +0 -1
- package/dist/website/assets/index-DOaPAEx0.css +0 -1
- package/dist/website/assets/tx-4iZZqojA.js +0 -1
|
@@ -37,14 +37,14 @@ export type ERCStandards = "ERC20" | "ERC4626" | "ERC721" | "ERC1155";
|
|
|
37
37
|
export type YieldType = "staking" | "restaking" | "lending" | "vault" | "fixed_yield" | "real_world_asset" | "concentrated_liquidity_pool" | "liquidity_pool";
|
|
38
38
|
export type RewardSchedule = "block" | "hour" | "day" | "week" | "month" | "era" | "epoch" | "campaign";
|
|
39
39
|
export type RewardClaiming = "auto" | "manual";
|
|
40
|
-
export type
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
40
|
+
export type InvestorEligibilityEntryDto = {
|
|
41
|
+
readonly jurisdiction: string;
|
|
42
|
+
readonly tier: "us_retail" | "us_accredited" | "us_qualified_purchaser" | "eu_retail" | "eu_professional" | "eu_professional_optup" | "eu_eligible_counterparty" | "uk_retail" | "uk_professional" | "ch_qualified" | "sg_ai" | "sg_ii" | "hk_pi" | "my_sophisticated" | "br_qi" | "br_pi" | "ae_professional";
|
|
43
|
+
readonly verificationLevel: "self_attested" | "verified_documentation" | "letter" | "third_party_attestation";
|
|
44
|
+
readonly expiresAfterDays?: number;
|
|
45
45
|
};
|
|
46
46
|
export type ArgumentFieldDto = {
|
|
47
|
-
readonly name: "amount" | "amounts" | "validatorAddress" | "validatorAddresses" | "receiverAddress" | "providerId" | "duration" | "inputToken" | "inputTokenNetwork" | "outputToken" | "outputTokenNetwork" | "subnetId" | "tronResource" | "feeConfigurationId" | "cosmosPubKey" | "tezosPubKey" | "cAddressBech" | "pAddressBech" | "executionMode" | "ledgerWalletApiCompatible" | "useMaxAmount" | "useInstantExecution" | "rangeMin" | "rangeMax" | "percentage" | "tokenId" | "skipPrechecks" | "useMaxAllowance" | "feePayerAddress";
|
|
47
|
+
readonly name: "amount" | "amounts" | "validatorAddress" | "validatorAddresses" | "receiverAddress" | "providerId" | "duration" | "inputToken" | "inputTokenNetwork" | "outputToken" | "outputTokenNetwork" | "subnetId" | "tronResource" | "feeConfigurationId" | "cosmosPubKey" | "tezosPubKey" | "cAddressBech" | "pAddressBech" | "executionMode" | "ledgerWalletApiCompatible" | "useMaxAmount" | "useInstantExecution" | "useAutoClaim" | "rangeMin" | "rangeMax" | "percentage" | "tokenId" | "skipPrechecks" | "useMaxAllowance" | "feePayerAddress";
|
|
48
48
|
readonly type: "string" | "number" | "address" | "enum" | "boolean";
|
|
49
49
|
readonly label: string;
|
|
50
50
|
readonly description?: string;
|
|
@@ -106,7 +106,7 @@ export type TransactionDto = {
|
|
|
106
106
|
readonly title: string;
|
|
107
107
|
readonly network: "ethereum" | "ethereum-goerli" | "ethereum-holesky" | "ethereum-sepolia" | "ethereum-hoodi" | "arbitrum" | "base" | "base-sepolia" | "gnosis" | "optimism" | "polygon" | "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";
|
|
108
108
|
readonly status: "NOT_FOUND" | "CREATED" | "BLOCKED" | "WAITING_FOR_SIGNATURE" | "SIGNED" | "BROADCASTED" | "PENDING" | "CONFIRMED" | "FAILED" | "SKIPPED";
|
|
109
|
-
readonly type: "SWAP" | "DEPOSIT" | "APPROVAL" | "STAKE" | "CLAIM_UNSTAKED" | "CLAIM_REWARDS" | "RESTAKE_REWARDS" | "UNSTAKE" | "SPLIT" | "MERGE" | "LOCK" | "UNLOCK" | "SUPPLY" | "ADD_LIQUIDITY" | "REMOVE_LIQUIDITY" | "BRIDGE" | "VOTE" | "REVOKE" | "RESTAKE" | "REBOND" | "WITHDRAW" | "WITHDRAW_ALL" | "CREATE_ACCOUNT" | "REVEAL" | "MIGRATE" | "DELEGATE" | "UNDELEGATE" | "UTXO_P_TO_C_IMPORT" | "UTXO_C_TO_P_IMPORT" | "WRAP" | "UNWRAP" | "UNFREEZE_LEGACY" | "UNFREEZE_LEGACY_BANDWIDTH" | "UNFREEZE_LEGACY_ENERGY" | "UNFREEZE_BANDWIDTH" | "UNFREEZE_ENERGY" | "FREEZE_BANDWIDTH" | "FREEZE_ENERGY" | "UNDELEGATE_BANDWIDTH" | "UNDELEGATE_ENERGY" | "P2P_NODE_REQUEST" | "CREATE_EIGENPOD" | "VERIFY_WITHDRAW_CREDENTIALS" | "START_CHECKPOINT" | "VERIFY_CHECKPOINT_PROOFS" | "QUEUE_WITHDRAWALS" | "COMPLETE_QUEUED_WITHDRAWALS" | "LZ_DEPOSIT" | "LZ_WITHDRAW" | "LUGANODES_PROVISION" | "LUGANODES_EXIT_REQUEST" | "INFSTONES_PROVISION" | "INFSTONES_EXIT_REQUEST" | "INFSTONES_CLAIM_REQUEST" | "BATCH";
|
|
109
|
+
readonly type: "SWAP" | "DEPOSIT" | "APPROVAL" | "STAKE" | "SET_OPERATOR" | "CLAIM_UNSTAKED" | "CLAIM_REWARDS" | "RESTAKE_REWARDS" | "UNSTAKE" | "SPLIT" | "MERGE" | "LOCK" | "UNLOCK" | "SUPPLY" | "ADD_LIQUIDITY" | "REMOVE_LIQUIDITY" | "BRIDGE" | "VOTE" | "REVOKE" | "RESTAKE" | "REBOND" | "WITHDRAW" | "WITHDRAW_ALL" | "CREATE_ACCOUNT" | "REVEAL" | "MIGRATE" | "DELEGATE" | "UNDELEGATE" | "UTXO_P_TO_C_IMPORT" | "UTXO_C_TO_P_IMPORT" | "WRAP" | "UNWRAP" | "UNFREEZE_LEGACY" | "UNFREEZE_LEGACY_BANDWIDTH" | "UNFREEZE_LEGACY_ENERGY" | "UNFREEZE_BANDWIDTH" | "UNFREEZE_ENERGY" | "FREEZE_BANDWIDTH" | "FREEZE_ENERGY" | "UNDELEGATE_BANDWIDTH" | "UNDELEGATE_ENERGY" | "P2P_NODE_REQUEST" | "CREATE_EIGENPOD" | "VERIFY_WITHDRAW_CREDENTIALS" | "START_CHECKPOINT" | "VERIFY_CHECKPOINT_PROOFS" | "QUEUE_WITHDRAWALS" | "COMPLETE_QUEUED_WITHDRAWALS" | "LZ_DEPOSIT" | "LZ_WITHDRAW" | "LUGANODES_PROVISION" | "LUGANODES_EXIT_REQUEST" | "INFSTONES_PROVISION" | "INFSTONES_EXIT_REQUEST" | "INFSTONES_CLAIM_REQUEST" | "BATCH";
|
|
110
110
|
readonly hash: string | null;
|
|
111
111
|
readonly createdAt: string;
|
|
112
112
|
readonly broadcastedAt: string | null;
|
|
@@ -153,6 +153,19 @@ export type CampaignStatus = "draft" | "active" | "paused" | "ended";
|
|
|
153
153
|
export type CampaignRewardMode = "normal" | "compound";
|
|
154
154
|
export type CampaignQualificationType = "min_token_amount";
|
|
155
155
|
export type CampaignPayoutFrequency = "weekly" | "daily" | "six_hourly" | "end_of_campaign";
|
|
156
|
+
export type TokenWithAvailableYieldsDto = {
|
|
157
|
+
readonly token: {
|
|
158
|
+
readonly symbol: string;
|
|
159
|
+
readonly name: string;
|
|
160
|
+
readonly decimals: number;
|
|
161
|
+
readonly network: "ethereum" | "ethereum-goerli" | "ethereum-holesky" | "ethereum-sepolia" | "ethereum-hoodi" | "arbitrum" | "base" | "base-sepolia" | "gnosis" | "optimism" | "polygon" | "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";
|
|
162
|
+
readonly address?: string;
|
|
163
|
+
readonly logoURI?: string;
|
|
164
|
+
readonly isPoints?: boolean;
|
|
165
|
+
readonly coinGeckoId?: string;
|
|
166
|
+
};
|
|
167
|
+
readonly availableYields: ReadonlyArray<string>;
|
|
168
|
+
};
|
|
156
169
|
export type CreateActionDto = {
|
|
157
170
|
readonly yieldId: string;
|
|
158
171
|
readonly address: string;
|
|
@@ -178,6 +191,7 @@ export type CreateActionDto = {
|
|
|
178
191
|
readonly ledgerWalletApiCompatible?: boolean;
|
|
179
192
|
readonly useMaxAmount?: boolean;
|
|
180
193
|
readonly useInstantExecution?: boolean;
|
|
194
|
+
readonly useAutoClaim?: boolean;
|
|
181
195
|
readonly skipPrechecks?: boolean;
|
|
182
196
|
readonly useMaxAllowance?: boolean;
|
|
183
197
|
readonly feePayerAddress?: string;
|
|
@@ -213,6 +227,7 @@ export type CreateManageActionDto = {
|
|
|
213
227
|
readonly ledgerWalletApiCompatible?: boolean;
|
|
214
228
|
readonly useMaxAmount?: boolean;
|
|
215
229
|
readonly useInstantExecution?: boolean;
|
|
230
|
+
readonly useAutoClaim?: boolean;
|
|
216
231
|
readonly skipPrechecks?: boolean;
|
|
217
232
|
readonly useMaxAllowance?: boolean;
|
|
218
233
|
readonly feePayerAddress?: string;
|
|
@@ -222,7 +237,7 @@ export type CreateManageActionDto = {
|
|
|
222
237
|
readonly percentage?: number;
|
|
223
238
|
readonly tokenId?: string;
|
|
224
239
|
};
|
|
225
|
-
readonly action: "STAKE" | "UNSTAKE" | "CLAIM_REWARDS" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW" | "WITHDRAW_ALL" | "RESTAKE" | "CLAIM_UNSTAKED" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE" | "REVOKE" | "VOTE_LOCKED" | "REVOTE" | "REBOND" | "MIGRATE" | "VERIFY_WITHDRAW_CREDENTIALS" | "DELEGATE";
|
|
240
|
+
readonly action: "STAKE" | "UNSTAKE" | "WITHDRAW_REQUEST" | "INSTANT_WITHDRAW" | "CLAIM_REWARDS" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW" | "WITHDRAW_ALL" | "RESTAKE" | "CLAIM_UNSTAKED" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE" | "REVOKE" | "VOTE_LOCKED" | "REVOTE" | "REBOND" | "MIGRATE" | "VERIFY_WITHDRAW_CREDENTIALS" | "DELEGATE";
|
|
226
241
|
readonly passthrough: string;
|
|
227
242
|
};
|
|
228
243
|
export type SubmitHashDto = {
|
|
@@ -233,7 +248,7 @@ export type SubmitTransactionDto = {
|
|
|
233
248
|
};
|
|
234
249
|
export type KycStatusResponseDto = {
|
|
235
250
|
readonly kycStatus: "not_required" | "not_started" | "pending" | "approved" | "rejected";
|
|
236
|
-
readonly
|
|
251
|
+
readonly authorizeUrl?: string;
|
|
237
252
|
};
|
|
238
253
|
export type NetworkDto = {
|
|
239
254
|
readonly id: "ethereum" | "ethereum-goerli" | "ethereum-holesky" | "ethereum-sepolia" | "ethereum-hoodi" | "arbitrum" | "base" | "base-sepolia" | "gnosis" | "optimism" | "polygon" | "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";
|
|
@@ -314,13 +329,22 @@ export type ValidatorDto = {
|
|
|
314
329
|
readonly pricePerShare?: string;
|
|
315
330
|
};
|
|
316
331
|
};
|
|
332
|
+
export type KycEligibilityDto = {
|
|
333
|
+
readonly defaultPolicy: "deny" | "allow";
|
|
334
|
+
readonly countries: ReadonlyArray<string>;
|
|
335
|
+
readonly blockedCountries: ReadonlyArray<string>;
|
|
336
|
+
readonly blockedSubdivisions: ReadonlyArray<string>;
|
|
337
|
+
readonly usPersonAllowed: boolean;
|
|
338
|
+
readonly investorEligibility: ReadonlyArray<InvestorEligibilityEntryDto>;
|
|
339
|
+
readonly subjectTypes: ReadonlyArray<"KYC" | "KYB">;
|
|
340
|
+
};
|
|
317
341
|
export type ArgumentSchemaDto = {
|
|
318
342
|
readonly fields: ReadonlyArray<ArgumentFieldDto>;
|
|
319
343
|
readonly notes?: string;
|
|
320
344
|
};
|
|
321
345
|
export type PendingActionDto = {
|
|
322
346
|
readonly intent: "enter" | "manage" | "exit";
|
|
323
|
-
readonly type: "STAKE" | "UNSTAKE" | "CLAIM_REWARDS" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW" | "WITHDRAW_ALL" | "RESTAKE" | "CLAIM_UNSTAKED" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE" | "REVOKE" | "VOTE_LOCKED" | "REVOTE" | "REBOND" | "MIGRATE" | "VERIFY_WITHDRAW_CREDENTIALS" | "DELEGATE";
|
|
347
|
+
readonly type: "STAKE" | "UNSTAKE" | "WITHDRAW_REQUEST" | "INSTANT_WITHDRAW" | "CLAIM_REWARDS" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW" | "WITHDRAW_ALL" | "RESTAKE" | "CLAIM_UNSTAKED" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE" | "REVOKE" | "VOTE_LOCKED" | "REVOTE" | "REBOND" | "MIGRATE" | "VERIFY_WITHDRAW_CREDENTIALS" | "DELEGATE";
|
|
324
348
|
readonly passthrough: string;
|
|
325
349
|
readonly arguments?: {
|
|
326
350
|
readonly fields: ReadonlyArray<ArgumentFieldDto>;
|
|
@@ -334,7 +358,7 @@ export type BalancesRequestDto = {
|
|
|
334
358
|
export type ActionDto = {
|
|
335
359
|
readonly id: string;
|
|
336
360
|
readonly intent: "enter" | "manage" | "exit";
|
|
337
|
-
readonly type: "STAKE" | "UNSTAKE" | "CLAIM_REWARDS" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW" | "WITHDRAW_ALL" | "RESTAKE" | "CLAIM_UNSTAKED" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE" | "REVOKE" | "VOTE_LOCKED" | "REVOTE" | "REBOND" | "MIGRATE" | "VERIFY_WITHDRAW_CREDENTIALS" | "DELEGATE";
|
|
361
|
+
readonly type: "STAKE" | "UNSTAKE" | "WITHDRAW_REQUEST" | "INSTANT_WITHDRAW" | "CLAIM_REWARDS" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW" | "WITHDRAW_ALL" | "RESTAKE" | "CLAIM_UNSTAKED" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE" | "REVOKE" | "VOTE_LOCKED" | "REVOTE" | "REBOND" | "MIGRATE" | "VERIFY_WITHDRAW_CREDENTIALS" | "DELEGATE";
|
|
338
362
|
readonly yieldId: string;
|
|
339
363
|
readonly address: string;
|
|
340
364
|
readonly amount: string | null;
|
|
@@ -364,6 +388,7 @@ export type ActionDto = {
|
|
|
364
388
|
readonly ledgerWalletApiCompatible?: boolean;
|
|
365
389
|
readonly useMaxAmount?: boolean;
|
|
366
390
|
readonly useInstantExecution?: boolean;
|
|
391
|
+
readonly useAutoClaim?: boolean;
|
|
367
392
|
readonly skipPrechecks?: boolean;
|
|
368
393
|
readonly useMaxAllowance?: boolean;
|
|
369
394
|
readonly feePayerAddress?: string;
|
|
@@ -531,16 +556,17 @@ export type YieldDto = {
|
|
|
531
556
|
readonly entryLimits?: {
|
|
532
557
|
readonly minimum: string | null;
|
|
533
558
|
readonly maximum: string | null;
|
|
559
|
+
readonly subsequentMinimum: string | null;
|
|
534
560
|
};
|
|
535
561
|
readonly requirements?: {
|
|
536
562
|
readonly kycRequired: boolean;
|
|
537
|
-
readonly kycUrl?: string;
|
|
538
563
|
readonly kyc?: {
|
|
539
|
-
readonly kycMode: "oauth_redirect";
|
|
564
|
+
readonly kycMode: "none" | "oauth_redirect" | "external_redirect" | "iframe" | "deeplink" | "native_sdk";
|
|
540
565
|
readonly iframeAllowed: boolean;
|
|
541
566
|
readonly authorizeUrl?: string;
|
|
542
567
|
readonly notes?: string;
|
|
543
|
-
readonly eligibility
|
|
568
|
+
readonly eligibility: KycEligibilityDto;
|
|
569
|
+
readonly mandatoryDisclosureUrl?: string;
|
|
544
570
|
};
|
|
545
571
|
};
|
|
546
572
|
readonly supportsLedgerWalletApi?: boolean;
|
|
@@ -564,6 +590,7 @@ export type YieldDto = {
|
|
|
564
590
|
};
|
|
565
591
|
};
|
|
566
592
|
readonly providerId: string;
|
|
593
|
+
readonly prime: boolean;
|
|
567
594
|
readonly curator?: {
|
|
568
595
|
readonly name?: {} | null;
|
|
569
596
|
readonly description?: {} | null;
|
|
@@ -995,6 +1022,7 @@ export type YieldsControllerGetYieldsParams = {
|
|
|
995
1022
|
readonly provider?: string;
|
|
996
1023
|
readonly providers?: ReadonlyArray<string>;
|
|
997
1024
|
readonly search?: string;
|
|
1025
|
+
readonly prime?: boolean;
|
|
998
1026
|
readonly sort?: "statusEnterAsc" | "statusEnterDesc" | "statusExitAsc" | "statusExitDesc" | "rewardRateAsc" | "rewardRateDesc";
|
|
999
1027
|
};
|
|
1000
1028
|
export type YieldsControllerGetYields200 = {
|
|
@@ -1310,6 +1338,39 @@ export type YieldsControllerGetYieldCampaigns500 = {
|
|
|
1310
1338
|
readonly error?: string;
|
|
1311
1339
|
readonly statusCode?: number;
|
|
1312
1340
|
};
|
|
1341
|
+
export type TokensControllerGetTokensParams = {
|
|
1342
|
+
readonly networks?: ReadonlyArray<"ethereum" | "ethereum-goerli" | "ethereum-holesky" | "ethereum-sepolia" | "ethereum-hoodi" | "arbitrum" | "base" | "base-sepolia" | "gnosis" | "optimism" | "polygon" | "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">;
|
|
1343
|
+
readonly yieldTypes?: ReadonlyArray<"staking" | "restaking" | "lending" | "vault" | "fixed_yield" | "real_world_asset" | "concentrated_liquidity_pool" | "liquidity_pool">;
|
|
1344
|
+
readonly offset?: number;
|
|
1345
|
+
readonly limit?: number;
|
|
1346
|
+
};
|
|
1347
|
+
export type TokensControllerGetTokens200 = {
|
|
1348
|
+
readonly total: number;
|
|
1349
|
+
readonly offset: number;
|
|
1350
|
+
readonly limit: number;
|
|
1351
|
+
readonly items?: ReadonlyArray<TokenWithAvailableYieldsDto>;
|
|
1352
|
+
};
|
|
1353
|
+
export type TokensControllerGetTokens400 = {
|
|
1354
|
+
readonly message?: string;
|
|
1355
|
+
readonly error?: string;
|
|
1356
|
+
readonly statusCode?: number;
|
|
1357
|
+
};
|
|
1358
|
+
export type TokensControllerGetTokens401 = {
|
|
1359
|
+
readonly message?: string;
|
|
1360
|
+
readonly error?: string;
|
|
1361
|
+
readonly statusCode?: number;
|
|
1362
|
+
};
|
|
1363
|
+
export type TokensControllerGetTokens429 = {
|
|
1364
|
+
readonly message?: string;
|
|
1365
|
+
readonly error?: string;
|
|
1366
|
+
readonly statusCode?: number;
|
|
1367
|
+
readonly retryAfter?: number;
|
|
1368
|
+
};
|
|
1369
|
+
export type TokensControllerGetTokens500 = {
|
|
1370
|
+
readonly message?: string;
|
|
1371
|
+
readonly error?: string;
|
|
1372
|
+
readonly statusCode?: number;
|
|
1373
|
+
};
|
|
1313
1374
|
export type ActionsControllerGetActionsParams = {
|
|
1314
1375
|
readonly offset?: number;
|
|
1315
1376
|
readonly limit?: number;
|
|
@@ -1317,8 +1378,9 @@ export type ActionsControllerGetActionsParams = {
|
|
|
1317
1378
|
readonly status?: "CANCELED" | "CREATED" | "WAITING_FOR_NEXT" | "PROCESSING" | "FAILED" | "SUCCESS" | "STALE";
|
|
1318
1379
|
readonly statuses?: ReadonlyArray<"CANCELED" | "CREATED" | "WAITING_FOR_NEXT" | "PROCESSING" | "FAILED" | "SUCCESS" | "STALE">;
|
|
1319
1380
|
readonly intent?: "enter" | "exit" | "manage";
|
|
1320
|
-
readonly type?: "STAKE" | "UNSTAKE" | "CLAIM_REWARDS" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW" | "WITHDRAW_ALL" | "RESTAKE" | "CLAIM_UNSTAKED" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE" | "REVOKE" | "VOTE_LOCKED" | "REVOTE" | "REBOND" | "MIGRATE" | "VERIFY_WITHDRAW_CREDENTIALS" | "DELEGATE";
|
|
1381
|
+
readonly type?: "STAKE" | "UNSTAKE" | "WITHDRAW_REQUEST" | "INSTANT_WITHDRAW" | "CLAIM_REWARDS" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW" | "WITHDRAW_ALL" | "RESTAKE" | "CLAIM_UNSTAKED" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE" | "REVOKE" | "VOTE_LOCKED" | "REVOTE" | "REBOND" | "MIGRATE" | "VERIFY_WITHDRAW_CREDENTIALS" | "DELEGATE";
|
|
1321
1382
|
readonly yieldId?: string;
|
|
1383
|
+
readonly yieldTypes?: ReadonlyArray<"staking" | "restaking" | "lending" | "vault" | "fixed_yield" | "real_world_asset" | "concentrated_liquidity_pool" | "liquidity_pool">;
|
|
1322
1384
|
readonly network?: "ethereum" | "ethereum-goerli" | "ethereum-holesky" | "ethereum-sepolia" | "ethereum-hoodi" | "arbitrum" | "base" | "base-sepolia" | "gnosis" | "optimism" | "polygon" | "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";
|
|
1323
1385
|
};
|
|
1324
1386
|
export type ActionsControllerGetActions200 = {
|
|
@@ -1703,6 +1765,13 @@ export interface YieldApi {
|
|
|
1703
1765
|
readonly params?: YieldsControllerGetYieldCampaignsParams | undefined;
|
|
1704
1766
|
readonly config?: Config | undefined;
|
|
1705
1767
|
} | undefined) => Effect.Effect<WithOptionalResponse<YieldsControllerGetYieldCampaigns200, Config>, HttpClientError.HttpClientError | YieldApiError<"YieldsControllerGetYieldCampaigns400", YieldsControllerGetYieldCampaigns400> | YieldApiError<"YieldsControllerGetYieldCampaigns401", YieldsControllerGetYieldCampaigns401> | YieldApiError<"YieldsControllerGetYieldCampaigns429", YieldsControllerGetYieldCampaigns429> | YieldApiError<"YieldsControllerGetYieldCampaigns500", YieldsControllerGetYieldCampaigns500>>;
|
|
1768
|
+
/**
|
|
1769
|
+
* Retrieve tokens that have at least one enabled yield available for this project. Optionally filter by one or more networks and yield types. Returns the full list by default; callers should respect `total` and use `offset`/`limit`, as a default page size may be introduced in future.
|
|
1770
|
+
*/
|
|
1771
|
+
readonly TokensControllerGetTokens: <Config extends OperationConfig>(options: {
|
|
1772
|
+
readonly params?: TokensControllerGetTokensParams | undefined;
|
|
1773
|
+
readonly config?: Config | undefined;
|
|
1774
|
+
} | undefined) => Effect.Effect<WithOptionalResponse<TokensControllerGetTokens200, Config>, HttpClientError.HttpClientError | YieldApiError<"TokensControllerGetTokens400", TokensControllerGetTokens400> | YieldApiError<"TokensControllerGetTokens401", TokensControllerGetTokens401> | YieldApiError<"TokensControllerGetTokens429", TokensControllerGetTokens429> | YieldApiError<"TokensControllerGetTokens500", TokensControllerGetTokens500>>;
|
|
1706
1775
|
/**
|
|
1707
1776
|
* Retrieve all actions performed by a user, with optional filtering by yield, status, category, etc. In the future, this may include personalized action recommendations.
|
|
1708
1777
|
*/
|
|
@@ -1765,7 +1834,7 @@ export interface YieldApi {
|
|
|
1765
1834
|
readonly config?: Config | undefined;
|
|
1766
1835
|
}) => Effect.Effect<WithOptionalResponse<KycControllerGetStatus200, Config>, HttpClientError.HttpClientError | YieldApiError<"KycControllerGetStatus401", KycControllerGetStatus401> | YieldApiError<"KycControllerGetStatus429", KycControllerGetStatus429>>;
|
|
1767
1836
|
/**
|
|
1768
|
-
* Retrieve
|
|
1837
|
+
* Retrieve networks with enabled yield opportunities for the authenticated project.
|
|
1769
1838
|
*/
|
|
1770
1839
|
readonly NetworksControllerGetNetworks: <Config extends OperationConfig>(options: {
|
|
1771
1840
|
readonly config?: Config | undefined;
|
|
@@ -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
|
};
|