@stakekit/widget 0.0.275 → 0.0.277
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/Codec-DJMwdgB9.js +1 -0
- package/dist/bundle/{MaybeAsync-Ckzmgrqr.js → MaybeAsync-DQF5lNPa.js} +1 -1
- package/dist/bundle/{build-BMMgmQqw.js → build-CcaOMxqz.js} +1 -1
- package/dist/bundle/{build-BNPMa-vT.js → build-Dzd_3NK0.js} +1 -1
- package/dist/bundle/{cardano-connector-DKXfujiC.js → cardano-connector-Vvgvc_SR.js} +2 -2
- package/dist/bundle/cosmos-connector-meta-Ck8JH12i.js +1 -0
- package/dist/bundle/{createConnector-BrxGIkT7.js → createConnector-pbKKdb_k.js} +2 -2
- package/dist/bundle/{images-BMN9-6Cl.js → images-qNtx67Rl.js} +1 -1
- package/dist/bundle/index.bundle.css +1 -1
- package/dist/bundle/index.bundle.js +52 -52
- package/dist/bundle/{ledger-connector-DmvRDcyN.js → ledger-connector-C4GRsXg2.js} +2 -2
- package/dist/bundle/{ledger-live-connector-meta-DDQWxYWw.js → ledger-live-connector-meta-DbuxO2yY.js} +1 -1
- package/dist/bundle/{misc-BLlpZ6ih.js → misc-BtIN6y6p.js} +1 -1
- package/dist/bundle/safe-connector-Bwgtw9lc.js +1 -0
- package/dist/bundle/solana-connector-CaIkxhTb.js +1 -0
- package/dist/bundle/{substrate-connector-BKHfZY_J.js → substrate-connector-BDRBscm1.js} +1 -1
- package/dist/bundle/{ton-connector-BRAeK9Od.js → ton-connector-CnNKzHtr.js} +2 -2
- package/dist/bundle/{transaction-ixhTmhET.js → transaction-DB7k-q8u.js} +1 -1
- package/dist/bundle/{tron-connector-Cr2j2DtV.js → tron-connector-C5KUqegL.js} +2 -2
- package/dist/bundle/tx-DygTArs0.js +1 -0
- package/dist/bundle/{wallet-manager-B2J-l9Hd.js → wallet-manager-C9fisl4Y.js} +2 -2
- package/dist/package/{Codec-Byh8iois.js → Codec-Bae2iyFH.js} +1 -1
- package/dist/package/{MaybeAsync-BZLAl2bE.js → MaybeAsync-DXWsPM9n.js} +1 -1
- package/dist/package/{build-jVm_Imk7.js → build-CYy6v80s.js} +1 -1
- package/dist/package/{build-BxgetfN5.js → build-GgZW6uL5.js} +2 -2
- package/dist/package/{cardano-connector-DPlMH8wa.js → cardano-connector-CchOT0g5.js} +3 -3
- package/dist/package/{cosmos-connector-meta-MR5we2DB.js → cosmos-connector-meta-Dtfahon-.js} +2 -2
- package/dist/package/{createConnector-c-2Ie22W.js → createConnector-D-p8-Ebj.js} +1 -10
- package/dist/package/{images-0ZMBvxwm.js → images-B0-tGuTw.js} +1 -1
- package/dist/package/index.package.css +1335 -1265
- package/dist/package/index.package.js +5253 -5246
- package/dist/package/{ledger-connector-Cf6yV8eL.js → ledger-connector-BhbNzz5z.js} +5 -5
- package/dist/package/{ledger-live-connector-meta-CIDYYFrg.js → ledger-live-connector-meta-C4-iTYoS.js} +3 -3
- package/dist/package/{misc-Erb32S3W.js → misc-DFHb1ynZ.js} +1 -1
- package/dist/package/{safe-connector-B8DuxkSp.js → safe-connector-CAgz56zm.js} +2 -2
- package/dist/package/{solana-connector-BgSU_Au0.js → solana-connector-C4-3zQ0W.js} +2 -2
- package/dist/package/{substrate-connector-CfrmkJYW.js → substrate-connector-WYvMgtq6.js} +2 -2
- package/dist/package/{ton-connector-tEtLRW28.js → ton-connector-DGVU07fk.js} +4 -4
- package/dist/package/{transaction-BaxD0vuC.js → transaction-BhfOz9qC.js} +2 -2
- package/dist/package/{tron-connector-DGBu9r65.js → tron-connector-Bx8ow-to.js} +4 -4
- package/dist/package/tx-DQaheDj7.js +3 -0
- package/dist/package/{wallet-manager-D5jYaNnr.js → wallet-manager-Bf0VaUFt.js} +10 -10
- package/dist/types/components/atoms/box/index.d.ts +3 -3
- package/dist/types/components/atoms/button/styles.css.d.ts +3 -0
- package/dist/types/components/atoms/divider/styles.css.d.ts +1 -3
- package/dist/types/components/atoms/max-button/styles.css.d.ts +2 -8
- package/dist/types/components/atoms/select-modal/styles.css.d.ts +1 -9
- package/dist/types/components/atoms/token-icon/network-icon-image/index.d.ts +2 -1
- package/dist/types/components/molecules/estimated-reward-amounts/index.d.ts +6 -0
- package/dist/types/components/molecules/summary-item/index.css.d.ts +21 -15
- package/dist/types/domain/types/yields.d.ts +1 -2
- package/dist/types/hooks/api/use-dashboard-yield-catalog.d.ts +1 -2
- package/dist/types/hooks/api/use-multi-yields.d.ts +4 -2
- package/dist/types/hooks/api/use-yield-summaries.d.ts +0 -5
- package/dist/types/pages/complete/hooks/use-complete.hook.d.ts +2 -0
- package/dist/types/pages/complete/state/index.d.ts +2 -0
- package/dist/types/pages/components/page-cta.d.ts +11 -0
- package/dist/types/pages/details/activity-page/components/activity-filters/styles.css.d.ts +1 -1
- package/dist/types/pages/details/earn-page/components/select-token-section/styles.css.d.ts +6 -2
- package/dist/types/pages/details/earn-page/components/select-yield-section/styles.css.d.ts +1 -0
- package/dist/types/pages/details/earn-page/state/types.d.ts +7 -6
- 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-init-yield.d.ts +3 -1
- package/dist/types/pages/review/hooks/use-action-review.hook.d.ts +2 -0
- package/dist/types/pages/review/hooks/use-pending-review.hook.d.ts +2 -0
- package/dist/types/pages/review/hooks/use-stake-review.hook.d.ts +6 -0
- package/dist/types/pages/review/hooks/use-unstake-review.hook.d.ts +2 -0
- package/dist/types/pages/review/pages/common-page/common.page.d.ts +7 -1
- package/dist/types/pages/review/pages/common-page/components/review-top-section.d.ts +5 -1
- package/dist/types/pages/steps/hooks/use-steps.hook.d.ts +2 -0
- package/dist/types/pages-dashboard/common/components/styles.css.d.ts +2 -4
- package/dist/types/pages-dashboard/common/components/tabs/styles.css.d.ts +8 -7
- package/dist/types/pages-dashboard/overview/earn-details/earn-details-formatters.d.ts +2 -0
- package/dist/types/pages-dashboard/overview/earn-page/styles.css.d.ts +4 -8
- package/dist/types/pages-dashboard/overview/positions/styles.css.d.ts +3 -1
- package/dist/types/pages-dashboard/position-details/components/position-details-stake-actions.d.ts +0 -4
- package/dist/types/providers/theme-wrapper.d.ts +7 -0
- package/dist/types/styles/theme/atoms.css.d.ts +3 -3
- package/dist/types/styles/theme/contract.css.d.ts +7 -0
- package/dist/types/styles/theme/properties.d.ts +21 -0
- package/dist/types/styles/theme/themes.d.ts +14 -0
- package/dist/types/styles/tokens/colors/contract.d.ts +7 -0
- package/dist/types/translation/resources.d.ts +4 -0
- package/dist/types/utils/formatters.d.ts +1 -0
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/website/assets/Codec-C8kGgbSv.js +1 -0
- package/dist/website/assets/{basic-AvmmQyRT.js → basic-CjEpjfzf.js} +1 -1
- package/dist/website/assets/{basic-B4L21H7R.js → basic-pwmIJ5Ws.js} +1 -1
- package/dist/website/assets/{browser-CD2gtnKg.js → browser-CCqMUd7Y.js} +1 -1
- package/dist/website/assets/{build-CEL1SZmV.js → build-B7EKreOf.js} +1 -1
- package/dist/website/assets/{build-DWB27dsZ.js → build-BJXYN5Yd.js} +1 -1
- package/dist/website/assets/{cardano-connector-BNJvqm1_.js → cardano-connector-Cpx-YJd6.js} +2 -2
- package/dist/website/assets/{core-NRhVeH3P.js → core-CJ6UoY0G.js} +2 -2
- package/dist/website/assets/{createConnector-BcHSC56W.js → createConnector-mvBxgXDZ.js} +2 -2
- package/dist/website/assets/{dist-CH4nKZqs.js → dist-BTQzphBJ.js} +1 -1
- package/dist/website/assets/{dist-DRLRXyTA.js → dist-DUXhuB4w.js} +1 -1
- package/dist/website/assets/en_US-IFPOGBSL-DiQE412U.js +1 -0
- package/dist/website/assets/{esm-CX7v7VH6.js → esm-CU6m2Mgh.js} +1 -1
- package/dist/website/assets/{exports-CZja-uIB.js → exports-C-Rr_VQ2.js} +1 -1
- package/dist/website/assets/index-DOaPAEx0.css +1 -0
- package/dist/website/assets/index-STnzu3ZH.js +2044 -0
- package/dist/website/assets/{index.es-C4PtkNtC.js → index.es-DfIWVmF0.js} +2 -2
- package/dist/website/assets/{ledger-connector-CQI9gS0Q.js → ledger-connector-BL2CqkDZ.js} +2 -2
- package/dist/website/assets/{receive-D87X5CO9.js → receive-DbQB8Kb0.js} +1 -1
- package/dist/website/assets/{registry-DFrHgvrU.js → registry-DQZCfZdW.js} +1 -1
- package/dist/website/assets/safe-connector-DpMirNdU.js +1 -0
- package/dist/website/assets/{socials-DlOk7Wls.js → socials-CVEdW2YA.js} +1 -1
- package/dist/website/assets/solana-connector-D8iHz3KE.js +1 -0
- package/dist/website/assets/{substrate-connector-DfJfljNz.js → substrate-connector-DzMk8xI3.js} +1 -1
- package/dist/website/assets/{ton-connector-DA1-w57X.js → ton-connector-DkGy3-Cc.js} +2 -2
- package/dist/website/assets/{tron-connector-BTe1GdWY.js → tron-connector-CK8wKQTX.js} +3 -3
- package/dist/website/assets/tx-4iZZqojA.js +1 -0
- package/dist/website/assets/{wallet-manager-pYzGZQVw.js → wallet-manager-_pvCvRVJ.js} +4 -4
- package/dist/website/assets/{wui-qr-code-BgRoILGj.js → wui-qr-code-DvTvu_mf.js} +1 -1
- package/dist/website/index.html +4 -4
- package/package.json +1 -1
- package/dist/bundle/Codec-FOvoaP2K.js +0 -1
- package/dist/bundle/cosmos-connector-meta-DO5i3lCd.js +0 -1
- package/dist/bundle/safe-connector-BgDwaGsX.js +0 -1
- package/dist/bundle/solana-connector-h5iUra8H.js +0 -1
- package/dist/bundle/tx-C-_PyHR9.js +0 -1
- package/dist/package/tx-DpCUKNN4.js +0 -3
- package/dist/types/hooks/api/use-token-list-yields.d.ts +0 -16
- package/dist/types/pages/components/footer-outlet/context.d.ts +0 -20
- package/dist/types/pages/components/footer-outlet/index.d.ts +0 -1
- package/dist/types/pages/components/footer-outlet/styles.css.d.ts +0 -1
- package/dist/types/pages-dashboard/common/components/footer-outlet/index.d.ts +0 -1
- package/dist/website/assets/Codec-D4K5RIsS.js +0 -1
- package/dist/website/assets/en_US-IFPOGBSL-DcKUUZBp.js +0 -1
- package/dist/website/assets/index-BEIkkHR9.js +0 -2044
- package/dist/website/assets/index-BmH6Rgkr.css +0 -1
- package/dist/website/assets/safe-connector-D5A7hhAW.js +0 -1
- package/dist/website/assets/solana-connector-C1qGbaG8.js +0 -1
- package/dist/website/assets/tx-zX2fdmDi.js +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as __commonJSMin } from "./chunk-DwwZaK3i.js";
|
|
3
|
-
import {
|
|
4
|
-
import { P as List, a as isEvmChain, g as map, t as configMeta, w as skNormalizeChainId } from "./ledger-live-connector-meta-
|
|
5
|
-
import { n as EitherAsync } from "./MaybeAsync-
|
|
6
|
-
import { t as images } from "./images-
|
|
3
|
+
import { D as BigNumber$1, G as Maybe, H as Either, S as isLedgerDappBrowserProvider, U as left, W as right, n as BehaviorSubject, t as createConnector, w as typeSafeObjectEntries } from "./createConnector-D-p8-Ebj.js";
|
|
4
|
+
import { P as List, a as isEvmChain, g as map, t as configMeta, w as skNormalizeChainId } from "./ledger-live-connector-meta-C4-iTYoS.js";
|
|
5
|
+
import { n as EitherAsync } from "./MaybeAsync-DXWsPM9n.js";
|
|
6
|
+
import { t as images } from "./images-B0-tGuTw.js";
|
|
7
7
|
import { i as init_dist, t as Buffer } from "./dist-BI2Nn6FN.js";
|
|
8
8
|
import { t as hexToBytes } from "./toBytes-5OHWnbJl.js";
|
|
9
9
|
import { a as SubstrateNetworks, n as EvmNetworks, r as MiscNetworks, t as CosmosNetworks } from "./networks-C4wBuQAR.js";
|
|
10
|
-
import { a as unsignedTonTransactionCodec, n as substratePayloadCodec, r as unsignedEVMTransactionCodec, s as unsignedTronTransactionCodec } from "./transaction-
|
|
10
|
+
import { a as unsignedTonTransactionCodec, n as substratePayloadCodec, r as unsignedEVMTransactionCodec, s as unsignedTronTransactionCodec } from "./transaction-BhfOz9qC.js";
|
|
11
11
|
import { c as serializeError, s as deserializeError, t as Transport } from "./Transport-B7iFMzn6.js";
|
|
12
12
|
import { t as v4 } from "./v4-YIlmluLc.js";
|
|
13
13
|
import { n as require_dist$1, t as require_dist$2 } from "./dist-BlAqJor4.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { d as orderToNumber } from "./Codec-
|
|
2
|
+
import { D as BigNumber, G as Maybe, K as just, N as __extends, U as left, W as right, f as isFunction, q as nothing, s as Subscriber, y as getNetworkLogo, z as init_tslib_es6 } from "./createConnector-D-p8-Ebj.js";
|
|
3
|
+
import { d as orderToNumber } from "./Codec-Bae2iyFH.js";
|
|
4
4
|
import { S as InvalidAddressError, b as isAddress, h as slice, m as concatHex } from "./getAbiItem-BVX2yDB3.js";
|
|
5
5
|
import { a as bytesToHex, c as toHex, f as hexToNumber, m as trim, o as numberToHex, u as hexToBigInt, x as size } from "./toBytes-5OHWnbJl.js";
|
|
6
6
|
import { t as BaseError } from "./base-BTwN_DlC.js";
|
|
@@ -8,7 +8,7 @@ import { P as InvalidChainIdError, _ as InvalidStorageKeySizeError, h as Invalid
|
|
|
8
8
|
import { n as FeeCapTooHighError, u as TipAboveFeeCapError } from "./node-Sc4f3aSR.js";
|
|
9
9
|
import { b as toRlp, c as getTransactionType, d as InvalidVersionedHashSizeError, f as InvalidVersionedHashVersionError, g as defineBlock, h as blobsToCommitments, l as toBlobSidecars, m as blobsToProofs, o as defineChain, p as commitmentsToVersionedHashes, r as defineTransactionReceipt, t as AccountNotFoundError, u as EmptyBlobError, v as defineTransaction, y as formatTransaction } from "./account-KyBwHgfH.js";
|
|
10
10
|
import { a as SubstrateNetworks, n as EvmNetworks, r as MiscNetworks, t as CosmosNetworks } from "./networks-C4wBuQAR.js";
|
|
11
|
-
import { a as supportedMiscChainsSet } from "./misc-
|
|
11
|
+
import { a as supportedMiscChainsSet } from "./misc-DFHb1ynZ.js";
|
|
12
12
|
//#region ../../node_modules/.pnpm/purify-ts@2.1.4_patch_hash=5a25e93220157c14f071521854d75c4da38ec0e15fad1989f51e87be19c2fd63/node_modules/purify-ts/esm/Tuple.js
|
|
13
13
|
var TupleImpl = class {
|
|
14
14
|
constructor(first, second) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { b as getTokenLogo } from "./createConnector-D-p8-Ebj.js";
|
|
3
3
|
import { r as MiscNetworks } from "./networks-C4wBuQAR.js";
|
|
4
4
|
//#region src/domain/types/chains/misc.ts
|
|
5
5
|
var supportedMiscChains = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { n as EitherAsync } from "./MaybeAsync-
|
|
2
|
+
import { G as Maybe, n as BehaviorSubject, t as createConnector, x as isIframe } from "./createConnector-D-p8-Ebj.js";
|
|
3
|
+
import { n as EitherAsync } from "./MaybeAsync-DXWsPM9n.js";
|
|
4
4
|
import { y as getAddress } from "./getAbiItem-BVX2yDB3.js";
|
|
5
5
|
import { t as withTimeout } from "./withTimeout-C43RlPy3.js";
|
|
6
6
|
import { r as ProviderNotFoundError, t as configMeta } from "./safe-connector-meta-Ddl09ZBC.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { G as Maybe, n as BehaviorSubject, t as createConnector, y as getNetworkLogo } from "./createConnector-D-p8-Ebj.js";
|
|
3
3
|
import { i as init_dist, t as Buffer } from "./dist-BI2Nn6FN.js";
|
|
4
4
|
import { r as MiscNetworks } from "./networks-C4wBuQAR.js";
|
|
5
|
-
import { i as solana } from "./misc-
|
|
5
|
+
import { i as solana } from "./misc-DFHb1ynZ.js";
|
|
6
6
|
import { i as WalletConnectWalletAdapter, l as Transaction, n as getConfigMeta, p as init_index_browser_esm, t as porto_default, u as VersionedTransaction } from "./porto-Gmzp7rdP.js";
|
|
7
7
|
//#region src/providers/misc/solana-connector.ts
|
|
8
8
|
init_dist();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { G as
|
|
3
|
-
import { n as EitherAsync } from "./MaybeAsync-
|
|
2
|
+
import { G as Maybe, H as Either, V as config, W as right, n as BehaviorSubject, t as createConnector, y as getNetworkLogo } from "./createConnector-D-p8-Ebj.js";
|
|
3
|
+
import { n as EitherAsync } from "./MaybeAsync-DXWsPM9n.js";
|
|
4
4
|
import { i as init_dist } from "./dist-BI2Nn6FN.js";
|
|
5
5
|
import { h as init_utils, l as concatBytes, m as hexToBytes, s as bytesToHex } from "./utils-CZZflqSo.js";
|
|
6
6
|
import { n as import_eventemitter3 } from "./eventemitter3-kaa1hYrC.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { s as __toESM, t as __commonJSMin } from "./chunk-DwwZaK3i.js";
|
|
3
3
|
import { n as process$1, t as init_dist } from "./dist-BeCWYci1.js";
|
|
4
|
-
import {
|
|
5
|
-
import { n as EitherAsync } from "./MaybeAsync-
|
|
4
|
+
import { H as Either, n as BehaviorSubject, t as createConnector, y as getNetworkLogo } from "./createConnector-D-p8-Ebj.js";
|
|
5
|
+
import { n as EitherAsync } from "./MaybeAsync-DXWsPM9n.js";
|
|
6
6
|
import { i as init_dist$1, t as Buffer } from "./dist-BI2Nn6FN.js";
|
|
7
7
|
import { r as MiscNetworks } from "./networks-C4wBuQAR.js";
|
|
8
|
-
import { o as ton } from "./misc-
|
|
9
|
-
import { o as unsignedTonTransactionTonConnectCodec } from "./transaction-
|
|
8
|
+
import { o as ton } from "./misc-DFHb1ynZ.js";
|
|
9
|
+
import { o as unsignedTonTransactionTonConnectCodec } from "./transaction-BhfOz9qC.js";
|
|
10
10
|
import { n as configMeta, t as require_ua_parser } from "./ua-parser-BdHJ6jgK.js";
|
|
11
11
|
import { t as require_cjs } from "./cjs-DZfpolVf.js";
|
|
12
12
|
import { r as require_nacl_fast, t as require_dist } from "./dist-BlAqJor4.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { a as oneOf, c as string, i as number, l as unknown, n as array, o as optional, r as boolean, s as record, t as Codec } from "./Codec-
|
|
2
|
+
import { U as left, W as right } from "./createConnector-D-p8-Ebj.js";
|
|
3
|
+
import { a as oneOf, c as string, i as number, l as unknown, n as array, o as optional, r as boolean, s as record, t as Codec } from "./Codec-Bae2iyFH.js";
|
|
4
4
|
import { o as numberToHex } from "./toBytes-5OHWnbJl.js";
|
|
5
5
|
//#region src/domain/types/transaction.ts
|
|
6
6
|
var bigintCodec = Codec.custom({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as __exportAll, s as __toESM, t as __commonJSMin } from "./chunk-DwwZaK3i.js";
|
|
3
3
|
import { n as process$1, t as init_dist } from "./dist-BeCWYci1.js";
|
|
4
|
-
import {
|
|
5
|
-
import { n as EitherAsync } from "./MaybeAsync-
|
|
4
|
+
import { G as Maybe, V as config, b as getTokenLogo, n as BehaviorSubject, t as createConnector, y as getNetworkLogo } from "./createConnector-D-p8-Ebj.js";
|
|
5
|
+
import { n as EitherAsync } from "./MaybeAsync-DXWsPM9n.js";
|
|
6
6
|
import { n as init_dist$1, t as global } from "./dist-BuxloV2e.js";
|
|
7
|
-
import { t as images } from "./images-
|
|
7
|
+
import { t as images } from "./images-B0-tGuTw.js";
|
|
8
8
|
import { i as init_dist$2, n as Buffer$1, t as Buffer } from "./dist-BI2Nn6FN.js";
|
|
9
9
|
import { c as toHex$1 } from "./toBytes-5OHWnbJl.js";
|
|
10
10
|
import { t as eventemitter3_default } from "./eventemitter3-kaa1hYrC.js";
|
|
11
11
|
import { r as MiscNetworks } from "./networks-C4wBuQAR.js";
|
|
12
|
-
import { s as tron } from "./misc-
|
|
12
|
+
import { s as tron } from "./misc-DFHb1ynZ.js";
|
|
13
13
|
import { n as esm_default } from "./index.es-YtziYxuZ.js";
|
|
14
14
|
import { a as TransportError, i as DisconnectedDeviceDuringOperation, n as log, o as TransportOpenUserCancelled, r as DisconnectedDevice, t as Transport } from "./Transport-B7iFMzn6.js";
|
|
15
15
|
import { i as k$2, t as A$3 } from "./index.es-BgXiw4kQ.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { a as __require, n as __esmMin, o as __toCommonJS, r as __exportAll, s as __toESM, t as __commonJSMin } from "./chunk-DwwZaK3i.js";
|
|
3
3
|
import { n as process$1, t as init_dist } from "./dist-BeCWYci1.js";
|
|
4
|
-
import {
|
|
5
|
-
import { n as EitherAsync } from "./MaybeAsync-
|
|
4
|
+
import { E as waitForMs, K as just, V as config, n as BehaviorSubject, t as createConnector, y as getNetworkLogo } from "./createConnector-D-p8-Ebj.js";
|
|
5
|
+
import { n as EitherAsync } from "./MaybeAsync-DXWsPM9n.js";
|
|
6
6
|
import { n as init_dist$1, t as global } from "./dist-BuxloV2e.js";
|
|
7
|
-
import { t as images } from "./images-
|
|
8
|
-
import { a as setStorageItem, i as getStorageItem, t as configMeta } from "./cosmos-connector-meta-
|
|
7
|
+
import { t as images } from "./images-B0-tGuTw.js";
|
|
8
|
+
import { a as setStorageItem, i as getStorageItem, t as configMeta } from "./cosmos-connector-meta-Dtfahon-.js";
|
|
9
9
|
import { i as init_dist$2, r as dist_exports, t as Buffer } from "./dist-BI2Nn6FN.js";
|
|
10
10
|
import { t as CosmosNetworks } from "./networks-C4wBuQAR.js";
|
|
11
11
|
import { i as init_eventemitter3, n as eventemitter3_default, t as require_bs58 } from "./bs58-CB1H6C75.js";
|
|
@@ -9897,12 +9897,12 @@ var ChainWalletBase = class extends WalletBase {
|
|
|
9897
9897
|
};
|
|
9898
9898
|
getStargateClient = async () => {
|
|
9899
9899
|
const rpcEndpoint = await this.getRpcEndpoint();
|
|
9900
|
-
const { StargateClient } = await import("./build-
|
|
9900
|
+
const { StargateClient } = await import("./build-CYy6v80s.js").then((n) => /* @__PURE__ */ __toESM(n.t()));
|
|
9901
9901
|
return StargateClient.connect(rpcEndpoint, this.stargateOptions);
|
|
9902
9902
|
};
|
|
9903
9903
|
getCosmWasmClient = async () => {
|
|
9904
9904
|
const rpcEndpoint = await this.getRpcEndpoint();
|
|
9905
|
-
const { CosmWasmClient } = await import("./build-
|
|
9905
|
+
const { CosmWasmClient } = await import("./build-GgZW6uL5.js").then((m) => /* @__PURE__ */ __toESM(m.default));
|
|
9906
9906
|
return CosmWasmClient.connect(rpcEndpoint);
|
|
9907
9907
|
};
|
|
9908
9908
|
getNameService = async () => {
|
|
@@ -9920,13 +9920,13 @@ var ChainWalletBase = class extends WalletBase {
|
|
|
9920
9920
|
getSigningStargateClient = async () => {
|
|
9921
9921
|
const rpcEndpoint = await this.getRpcEndpoint();
|
|
9922
9922
|
if (!this.offlineSigner) await this.initOfflineSigner();
|
|
9923
|
-
const { SigningStargateClient } = await import("./build-
|
|
9923
|
+
const { SigningStargateClient } = await import("./build-CYy6v80s.js").then((n) => /* @__PURE__ */ __toESM(n.t()));
|
|
9924
9924
|
return SigningStargateClient.connectWithSigner(rpcEndpoint, this.offlineSigner, this.signingStargateOptions);
|
|
9925
9925
|
};
|
|
9926
9926
|
getSigningCosmWasmClient = async () => {
|
|
9927
9927
|
const rpcEndpoint = await this.getRpcEndpoint();
|
|
9928
9928
|
if (!this.offlineSigner) await this.initOfflineSigner();
|
|
9929
|
-
const { SigningCosmWasmClient } = await import("./build-
|
|
9929
|
+
const { SigningCosmWasmClient } = await import("./build-GgZW6uL5.js").then((m) => /* @__PURE__ */ __toESM(m.default));
|
|
9930
9930
|
return SigningCosmWasmClient.connectWithSigner(rpcEndpoint, this.offlineSigner, this.signingCosmwasmOptions);
|
|
9931
9931
|
};
|
|
9932
9932
|
getSigningClient = async (type) => {
|
|
@@ -9952,7 +9952,7 @@ var ChainWalletBase = class extends WalletBase {
|
|
|
9952
9952
|
}
|
|
9953
9953
|
if (!gasPrice) throw new Error("Gas price must be set in the client options when auto gas is used.");
|
|
9954
9954
|
const gasEstimation = await (await this.getSigningClient(type)).simulate(this.address, messages, memo);
|
|
9955
|
-
const { calculateFee } = await import("./build-
|
|
9955
|
+
const { calculateFee } = await import("./build-CYy6v80s.js").then((n) => /* @__PURE__ */ __toESM(n.t()));
|
|
9956
9956
|
return calculateFee(Math.round(gasEstimation * (multiplier || 1.4)), gasPrice);
|
|
9957
9957
|
};
|
|
9958
9958
|
sign = async (messages, fee, memo, type) => {
|
|
@@ -9965,7 +9965,7 @@ var ChainWalletBase = class extends WalletBase {
|
|
|
9965
9965
|
};
|
|
9966
9966
|
broadcast = async (signedMessages, type) => {
|
|
9967
9967
|
const client = await this.getSigningClient(type);
|
|
9968
|
-
const { TxRaw } = await import("./tx-
|
|
9968
|
+
const { TxRaw } = await import("./tx-DQaheDj7.js").then((m) => /* @__PURE__ */ __toESM(m.default));
|
|
9969
9969
|
const txBytes = TxRaw.encode(signedMessages).finish();
|
|
9970
9970
|
let timeoutMs, pollIntervalMs;
|
|
9971
9971
|
switch (type) {
|
|
@@ -24,9 +24,9 @@ export declare const Box: import("react").ForwardRefExoticComponent<Omit<AllHTML
|
|
|
24
24
|
readonly borderWidth?: 1 | 2 | 3 | 0.5 | undefined;
|
|
25
25
|
readonly borderStyle?: "solid" | undefined;
|
|
26
26
|
readonly overflowWrap?: "normal" | "break-word" | "anywhere" | undefined;
|
|
27
|
-
readonly color?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | undefined;
|
|
28
|
-
readonly background?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | undefined;
|
|
29
|
-
readonly borderColor?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | undefined;
|
|
27
|
+
readonly color?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelectBorder" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | "summaryLabelStakedBackground" | "summaryLabelStakedColor" | "summaryLabelApyBackground" | "summaryLabelApyColor" | "summaryLabelAvailableBackground" | "summaryLabelAvailableColor" | undefined;
|
|
28
|
+
readonly background?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelectBorder" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | "summaryLabelStakedBackground" | "summaryLabelStakedColor" | "summaryLabelApyBackground" | "summaryLabelApyColor" | "summaryLabelAvailableBackground" | "summaryLabelAvailableColor" | undefined;
|
|
29
|
+
readonly borderColor?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelectBorder" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | "summaryLabelStakedBackground" | "summaryLabelStakedColor" | "summaryLabelApyBackground" | "summaryLabelApyColor" | "summaryLabelAvailableBackground" | "summaryLabelAvailableColor" | undefined;
|
|
30
30
|
} & {
|
|
31
31
|
readonly display?: "none" | "flex" | "block" | "inline" | "inline-block" | "inline-flex" | {
|
|
32
32
|
mobile?: "none" | "flex" | "block" | "inline" | "inline-block" | "inline-flex" | undefined;
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
export declare const container: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
2
2
|
variant: {
|
|
3
3
|
default: string;
|
|
4
|
-
utila: ({
|
|
4
|
+
utila: (string | {
|
|
5
5
|
borderRadius: "4px";
|
|
6
|
-
background?: undefined;
|
|
7
|
-
} | {
|
|
8
|
-
background: "#F4F5FF";
|
|
9
|
-
borderRadius?: undefined;
|
|
10
6
|
})[];
|
|
11
7
|
};
|
|
12
8
|
}>;
|
|
13
9
|
export declare const text: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
14
10
|
variant: {
|
|
15
11
|
default: string;
|
|
16
|
-
utila:
|
|
17
|
-
color: "#5C70FF";
|
|
18
|
-
})[];
|
|
12
|
+
utila: string[];
|
|
19
13
|
};
|
|
20
14
|
}>;
|
|
@@ -7,14 +7,6 @@ export declare const selectModalGroupLabel: string;
|
|
|
7
7
|
export declare const selectedListItem: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
8
8
|
variant: {
|
|
9
9
|
default: {};
|
|
10
|
-
utila: {
|
|
11
|
-
background: "#4A60FF14";
|
|
12
|
-
border: "1px solid #4A60FF";
|
|
13
|
-
selectors: {
|
|
14
|
-
"&:hover": {
|
|
15
|
-
background: "#4A60FF14";
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
10
|
+
utila: {};
|
|
19
11
|
};
|
|
20
12
|
}>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Atoms } from "../../../../styles/theme/atoms.css";
|
|
2
2
|
type NetworkLogoImageProps = {
|
|
3
3
|
networkLogoUri: string;
|
|
4
|
+
networkName?: string;
|
|
4
5
|
tokenNetworkLogoHw?: Atoms["hw"];
|
|
5
6
|
};
|
|
6
|
-
export declare const NetworkLogoImage: ({ networkLogoUri, tokenNetworkLogoHw, }: NetworkLogoImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const NetworkLogoImage: ({ networkLogoUri, networkName, tokenNetworkLogoHw, }: NetworkLogoImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { type RecipeVariants } from "@vanilla-extract/recipes";
|
|
2
2
|
export declare const summaryContainer: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
3
3
|
variant: {
|
|
4
|
-
default:
|
|
4
|
+
default: {
|
|
5
|
+
gap: "24px";
|
|
6
|
+
};
|
|
5
7
|
utila: {
|
|
6
8
|
gap: "24px";
|
|
7
9
|
};
|
|
@@ -22,10 +24,11 @@ export declare const summaryItem: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
22
24
|
};
|
|
23
25
|
variant: {
|
|
24
26
|
default: (string | {
|
|
25
|
-
|
|
27
|
+
borderRadius: "8px";
|
|
28
|
+
borderWidth: "1px";
|
|
29
|
+
borderStyle: "solid";
|
|
26
30
|
})[];
|
|
27
31
|
utila: (string | {
|
|
28
|
-
borderColor: "#e4e4e7";
|
|
29
32
|
borderRadius: "8px";
|
|
30
33
|
borderWidth: "1px";
|
|
31
34
|
borderStyle: "solid";
|
|
@@ -42,9 +45,9 @@ export declare const summaryItem: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
42
45
|
}>;
|
|
43
46
|
export declare const summaryNumber: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
44
47
|
variant: {
|
|
45
|
-
default: {
|
|
46
|
-
fontSize: "
|
|
47
|
-
};
|
|
48
|
+
default: (string | {
|
|
49
|
+
fontSize: "18px";
|
|
50
|
+
})[];
|
|
48
51
|
utila: (string | {
|
|
49
52
|
fontSize: "18px";
|
|
50
53
|
})[];
|
|
@@ -60,8 +63,8 @@ export declare const summaryNumber: import("@vanilla-extract/recipes").RuntimeFn
|
|
|
60
63
|
export declare const summaryLabelContainer: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
61
64
|
variant: {
|
|
62
65
|
default: {
|
|
63
|
-
borderRadius: "
|
|
64
|
-
padding: "
|
|
66
|
+
borderRadius: "4px";
|
|
67
|
+
padding: "2px 6px";
|
|
65
68
|
};
|
|
66
69
|
utila: {
|
|
67
70
|
borderRadius: "4px";
|
|
@@ -78,22 +81,25 @@ export declare const summaryLabelContainer: import("@vanilla-extract/recipes").R
|
|
|
78
81
|
};
|
|
79
82
|
type: {
|
|
80
83
|
staked: {
|
|
81
|
-
background:
|
|
82
|
-
color:
|
|
84
|
+
background: `var(--${string})`;
|
|
85
|
+
color: `var(--${string})`;
|
|
83
86
|
};
|
|
84
87
|
apy: {
|
|
85
|
-
background:
|
|
86
|
-
color:
|
|
88
|
+
background: `var(--${string})`;
|
|
89
|
+
color: `var(--${string})`;
|
|
87
90
|
};
|
|
88
91
|
available: {
|
|
89
|
-
background:
|
|
90
|
-
color:
|
|
92
|
+
background: `var(--${string})`;
|
|
93
|
+
color: `var(--${string})`;
|
|
91
94
|
};
|
|
92
95
|
};
|
|
93
96
|
}>;
|
|
94
97
|
export declare const summaryLabel: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
95
98
|
variant: {
|
|
96
|
-
default: {
|
|
99
|
+
default: {
|
|
100
|
+
color: "inherit";
|
|
101
|
+
fontSize: "12px";
|
|
102
|
+
};
|
|
97
103
|
utila: {
|
|
98
104
|
color: "inherit";
|
|
99
105
|
fontSize: "12px";
|
|
@@ -43,9 +43,8 @@ export type ValidatorsConfig = Map<SupportedSKChains | "*", {
|
|
|
43
43
|
preferredOnly: boolean;
|
|
44
44
|
}>;
|
|
45
45
|
export type DashboardYieldCategory = "stake" | "defi" | "rwa";
|
|
46
|
-
export declare const dashboardYieldCategories: readonly ["
|
|
46
|
+
export declare const dashboardYieldCategories: readonly ["rwa", "defi", "stake"];
|
|
47
47
|
export declare const getApiYieldTypesForDashboardCategory: (category: DashboardYieldCategory) => ApiYieldType[];
|
|
48
|
-
export declare const getDashboardYieldCategoryForApiYieldType: (yieldType: ApiYieldType) => DashboardYieldCategory;
|
|
49
48
|
export declare const getDashboardYieldCategory: (yieldDto: YieldBase) => DashboardYieldCategory | null;
|
|
50
49
|
export declare const filterValidators: ({ validatorsConfig, validators, network, yieldId, }: {
|
|
51
50
|
validatorsConfig: ValidatorsConfig;
|
|
@@ -12,9 +12,8 @@ type DashboardCategoryInitialSelection = {
|
|
|
12
12
|
* holdings, no per-yield legacy hydration). The first visible summary of each
|
|
13
13
|
* probe seeds that category's initial token + yield selection.
|
|
14
14
|
*/
|
|
15
|
-
export declare const useDashboardYieldCatalog: ({ enabled,
|
|
15
|
+
export declare const useDashboardYieldCatalog: ({ enabled, }?: {
|
|
16
16
|
enabled?: boolean;
|
|
17
|
-
network?: TokenDto["network"] | null;
|
|
18
17
|
}) => {
|
|
19
18
|
availableCategories: DashboardYieldCategory[];
|
|
20
19
|
initialSelectionByCategory: Map<DashboardYieldCategory, DashboardCategoryInitialSelection>;
|
|
@@ -6,7 +6,7 @@ import type { InitParams } from "../../domain/types/init-params";
|
|
|
6
6
|
import type { PositionsData } from "../../domain/types/positions";
|
|
7
7
|
import { type PreferredTokenYieldsPerNetwork } from "../../domain/types/stake";
|
|
8
8
|
import type { SKWallet } from "../../domain/types/wallet";
|
|
9
|
-
import { type ValidatorsConfig, type Yield } from "../../domain/types/yields";
|
|
9
|
+
import { type DashboardYieldCategory, type ValidatorsConfig, type Yield } from "../../domain/types/yields";
|
|
10
10
|
import { useApiClient } from "../../providers/api/api-client-provider";
|
|
11
11
|
import { type YieldSummaryWithProvider } from "./use-yield-summaries";
|
|
12
12
|
export declare const useStreamYieldSummaries: (yieldIds: ReadonlyArray<string>) => YieldSummaryWithProvider[];
|
|
@@ -22,14 +22,16 @@ declare const firstEligibleYield$: (args: {
|
|
|
22
22
|
isConnected: boolean;
|
|
23
23
|
network: SKWallet["network"];
|
|
24
24
|
yieldIds: ReadonlyArray<string>;
|
|
25
|
+
dashboardYieldCategory?: DashboardYieldCategory | null;
|
|
25
26
|
initParams: InitParams;
|
|
26
27
|
positionsData: PositionsData;
|
|
27
28
|
tokenBalanceAmount: BigNumber;
|
|
28
29
|
validatorsConfig: ValidatorsConfig;
|
|
29
30
|
preferredTokenYieldsPerNetwork: PreferredTokenYieldsPerNetwork | null;
|
|
30
31
|
}) => Observable<Yield | null>;
|
|
31
|
-
export declare const getCachedFirstEligibleYield: ({ queryClient, yieldIds, }: {
|
|
32
|
+
export declare const getCachedFirstEligibleYield: ({ queryClient, yieldIds, dashboardYieldCategory, }: {
|
|
32
33
|
queryClient: QueryClient;
|
|
33
34
|
yieldIds: ReadonlyArray<string>;
|
|
35
|
+
dashboardYieldCategory?: DashboardYieldCategory | null;
|
|
34
36
|
}) => import("purify-ts/Maybe").Maybe<Yield>;
|
|
35
37
|
export {};
|
|
@@ -50,9 +50,4 @@ export declare const fetchYieldSummariesPage: ({ apiClient, params, signal, }: F
|
|
|
50
50
|
*/
|
|
51
51
|
export declare const fetchYieldSummariesByIds: ({ apiClient, chunkSize, signal, suppressRichErrors, yieldIds, }: FetchByIdsArgs) => Promise<YieldSummary[]>;
|
|
52
52
|
export declare const fetchYieldSummariesWithProvidersByIds: ({ apiClient, queryClient, signal, suppressRichErrors, yieldIds, }: FetchByIdsWithProvidersArgs) => Promise<YieldSummaryWithProvider[]>;
|
|
53
|
-
/**
|
|
54
|
-
* Fetch every page of yield summaries for the given params, looping `offset`
|
|
55
|
-
* until all `total` items have been retrieved.
|
|
56
|
-
*/
|
|
57
|
-
export declare const fetchAllYieldSummaries: ({ apiClient, params, signal, }: FetchArgs) => Promise<YieldSummary[]>;
|
|
58
53
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TransactionType } from "../../../domain/types/action";
|
|
2
|
+
import type { PageCta } from "../../components/page-cta";
|
|
2
3
|
export declare const useComplete: () => {
|
|
3
4
|
urls: {
|
|
4
5
|
type: TransactionType;
|
|
@@ -7,4 +8,5 @@ export declare const useComplete: () => {
|
|
|
7
8
|
unstakeMatch: boolean;
|
|
8
9
|
pendingActionMatch: boolean;
|
|
9
10
|
onViewTransactionClick: (url: string) => import("purify-ts/Maybe").Maybe<Window & typeof globalThis>;
|
|
11
|
+
cta: PageCta;
|
|
10
12
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type PropsWithChildren } from "react";
|
|
2
2
|
import type { TransactionType } from "../../../domain/types/action";
|
|
3
|
+
import type { PageCta } from "../../components/page-cta";
|
|
3
4
|
type CompleteCommonContextType = {
|
|
5
|
+
cta: PageCta;
|
|
4
6
|
urls: {
|
|
5
7
|
type: TransactionType;
|
|
6
8
|
url: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type PageCta = {
|
|
2
|
+
disabled: boolean;
|
|
3
|
+
hide?: boolean;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
label: string;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
variant?: "primary" | "secondary";
|
|
8
|
+
} | null;
|
|
9
|
+
export declare const PageCtaButton: ({ cta }: {
|
|
10
|
+
cta: PageCta;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export declare const priceTxt: string;
|
|
2
2
|
export declare const selectTokenSection: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
3
3
|
variant: {
|
|
4
|
-
default:
|
|
4
|
+
default: {
|
|
5
|
+
background: "transparent";
|
|
6
|
+
};
|
|
5
7
|
utila: {
|
|
6
8
|
background: "transparent";
|
|
7
9
|
};
|
|
@@ -17,7 +19,9 @@ export declare const selectTokenSection: import("@vanilla-extract/recipes").Runt
|
|
|
17
19
|
}>;
|
|
18
20
|
export declare const selectTokenTitle: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
19
21
|
variant: {
|
|
20
|
-
default: {
|
|
22
|
+
default: {
|
|
23
|
+
fontSize: "14px";
|
|
24
|
+
};
|
|
21
25
|
utila: {
|
|
22
26
|
fontSize: "14px";
|
|
23
27
|
};
|
|
@@ -10,6 +10,7 @@ import type { useEstimatedRewards } from "../../../../hooks/use-estimated-reward
|
|
|
10
10
|
import type { useProvidersDetails } from "../../../../hooks/use-provider-details";
|
|
11
11
|
import type { useRewardTokenDetails } from "../../../../hooks/use-reward-token-details";
|
|
12
12
|
import type { Action } from "../../../../types/utils";
|
|
13
|
+
import type { PageCta } from "../../../components/page-cta";
|
|
13
14
|
import type { SelectedStakeData } from "../types";
|
|
14
15
|
export type State = {
|
|
15
16
|
selectedToken: Maybe<TokenDto>;
|
|
@@ -20,13 +21,11 @@ export type State = {
|
|
|
20
21
|
useMaxAmount: boolean;
|
|
21
22
|
tronResource: Maybe<TronResourceType>;
|
|
22
23
|
selectedProviderYieldId: Maybe<Yield["id"]>;
|
|
24
|
+
selectedDashboardYieldCategory: DashboardYieldCategory | null;
|
|
23
25
|
};
|
|
24
26
|
type TokenBalanceSelectAction = Action<"token/select", TokenDto>;
|
|
25
|
-
type
|
|
26
|
-
type
|
|
27
|
-
token: TokenDto;
|
|
28
|
-
yieldDto: Yield;
|
|
29
|
-
}>;
|
|
27
|
+
type DashboardYieldCategorySelectAction = Action<"dashboard/yield-category/select", DashboardYieldCategory>;
|
|
28
|
+
type PositionDetailsStakeInitializeAction = Action<"positionDetails/stake/initialize", Yield>;
|
|
30
29
|
type YieldSelectAction = Action<"yield/select", Yield>;
|
|
31
30
|
type StakeAmountChangeAction = Action<"stakeAmount/change", BigNumber>;
|
|
32
31
|
type StakeAmountMaxAction = Action<"stakeAmount/max", BigNumber>;
|
|
@@ -36,7 +35,7 @@ type ValidatorMultiSelectAction = Action<"validator/multiselect", ValidatorDto>;
|
|
|
36
35
|
type ValidatorRemoveAction = Action<"validator/remove", ValidatorDto>;
|
|
37
36
|
type SelectTronResourceAction = Action<"tronResource/select", TronResourceType>;
|
|
38
37
|
type ProviderYieldIdSelectAction = Action<"providerYieldId/select", Yield["id"]>;
|
|
39
|
-
export type Actions = TokenBalanceSelectAction |
|
|
38
|
+
export type Actions = TokenBalanceSelectAction | DashboardYieldCategorySelectAction | PositionDetailsStakeInitializeAction | YieldSelectAction | StakeAmountChangeAction | StakeAmountMaxAction | StateResetAction | ValidatorSelectAction | ValidatorMultiSelectAction | ValidatorRemoveAction | SelectTronResourceAction | ProviderYieldIdSelectAction;
|
|
40
39
|
export type ExtraData = {
|
|
41
40
|
actions: {
|
|
42
41
|
onMaxClick: () => void;
|
|
@@ -49,8 +48,10 @@ export type ExtraData = {
|
|
|
49
48
|
availableAmount: Maybe<BigNumber>;
|
|
50
49
|
availableYields: Maybe<TokenBalanceScanResponseDto["availableYields"]>;
|
|
51
50
|
hasNotYieldsForToken: boolean;
|
|
51
|
+
availableDashboardYieldCategories: DashboardYieldCategory[];
|
|
52
52
|
};
|
|
53
53
|
export type EarnPageContextType = {
|
|
54
|
+
cta: PageCta;
|
|
54
55
|
selectedTokenAvailableAmount: Maybe<{
|
|
55
56
|
symbol: string;
|
|
56
57
|
shortFormattedAmount: string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { TokenDto } from "../../../../domain/types/tokens";
|
|
2
|
-
|
|
2
|
+
import type { DashboardYieldCategory } from "../../../../domain/types/yields";
|
|
3
|
+
export declare const useGetInitYield: () => ({ selectedDashboardYieldCategory, selectedToken, }: {
|
|
4
|
+
selectedDashboardYieldCategory?: DashboardYieldCategory | null;
|
|
3
5
|
selectedToken: TokenDto;
|
|
4
6
|
}) => import("purify-ts/Maybe").Maybe<import("../../../../domain/types/yields").Yield>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Maybe } from "purify-ts";
|
|
2
2
|
import type { TokenDto } from "../../../../domain/types/tokens";
|
|
3
|
-
|
|
3
|
+
import type { DashboardYieldCategory } from "../../../../domain/types/yields";
|
|
4
|
+
export declare const useInitYield: ({ selectedDashboardYieldCategory, selectedToken, }: {
|
|
5
|
+
selectedDashboardYieldCategory?: DashboardYieldCategory | null;
|
|
4
6
|
selectedToken: Maybe<TokenDto>;
|
|
5
7
|
}) => import("@tanstack/react-query").UseQueryResult<import("../../../../domain/types/yields").Yield | null, Error>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Maybe } from "purify-ts";
|
|
2
2
|
import type { TokenDto } from "../../../domain/types/tokens";
|
|
3
|
+
import type { PageCta } from "../../components/page-cta";
|
|
3
4
|
import type { LabelKey } from "../types";
|
|
4
5
|
export declare const useActionReview: () => {
|
|
5
6
|
selectedYield: import("../../../domain/types/yields").Yield;
|
|
@@ -11,4 +12,5 @@ export declare const useActionReview: () => {
|
|
|
11
12
|
inputToken: Maybe<TokenDto>;
|
|
12
13
|
actionOlderThan7Days: boolean;
|
|
13
14
|
labelKey: LabelKey;
|
|
15
|
+
cta: PageCta;
|
|
14
16
|
};
|