@stakekit/widget 0.0.290 → 0.0.291
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/{assets-DvEv_w-P.js → assets-H3qs-BfM.js} +1 -1
- package/dist/bundle/{cardano-connector-Cqj1z0wD.js → cardano-connector-C1YrKgp8.js} +2 -2
- package/dist/bundle/{configured-chains-Nn1qeOjm.js → configured-chains-CljV1eCV.js} +1 -1
- package/dist/bundle/{cosmos-connector-meta-BMa49Bqn.js → cosmos-connector-meta-CogU-5R3.js} +1 -1
- package/dist/bundle/index.bundle.js +17718 -17703
- package/dist/bundle/{ledger-connector-cdqjHR7O.js → ledger-connector-PwjsEMH_.js} +16 -16
- package/dist/bundle/{network-BvWfFLMi.js → network-rRxrzik9.js} +1 -1
- package/dist/bundle/{solana-connector-t7ro7CGZ.js → solana-connector-mwCnoTC6.js} +3 -3
- package/dist/bundle/{stellar-connector-CGTk18nF.js → stellar-connector-CIkU0qDy.js} +2 -2
- package/dist/bundle/{substrate-connector-Blu0Fmlx.js → substrate-connector-BtpGbum5.js} +1 -1
- package/dist/bundle/{ton-connector-D_6F9QzE.js → ton-connector-B9Rb8DpG.js} +3 -3
- package/dist/bundle/{transaction-nCW9pp-W.js → transaction-BU8gNx_-.js} +3 -3
- package/dist/bundle/{transaction-DFK_HUua.js → transaction-C5Rdik4M.js} +22 -22
- package/dist/bundle/transaction-C6SgGYH0.js +23 -0
- package/dist/bundle/{transaction-Dd1bxz-u.js → transaction-D8vYa3xG.js} +9 -9
- package/dist/bundle/{tron-connector-CNS7QrN7.js → tron-connector-feSoCE1Z.js} +13 -13
- package/dist/bundle/{utils-B2hhTK5t.js → utils-B5UkNjd3.js} +1 -1
- package/dist/bundle/{wallet-manager-xXCqWo2v.js → wallet-manager-iwdzlSwY.js} +34 -34
- package/dist/package/{assets-CCANldg9.js → assets-DLmJ26y-.js} +1 -1
- package/dist/package/{cardano-connector-DiiSoILv.js → cardano-connector-CIrXiVTi.js} +2 -2
- package/dist/package/{configured-chains-CqS9GQgO.js → configured-chains-Ddwhz0AO.js} +1 -1
- package/dist/package/{cosmos-connector-meta-D2OXd_8A.js → cosmos-connector-meta-gXG2LZJw.js} +1 -1
- package/dist/package/index.package.js +69 -34
- package/dist/package/{ledger-connector-CoflrvIY.js → ledger-connector-DA2MGFO1.js} +5 -5
- package/dist/package/{network-DzIq3Eb-.js → network-DRWqFyX1.js} +1 -1
- package/dist/package/{solana-connector-BGL_7RtS.js → solana-connector-zdXBpO69.js} +3 -3
- package/dist/package/{stellar-connector-KA4sbBsT.js → stellar-connector-Bwd8_6fg.js} +2 -2
- package/dist/package/{substrate-connector-C47hmu7O.js → substrate-connector-DWxNzj24.js} +1 -1
- package/dist/package/{ton-connector-Os8-LilP.js → ton-connector-Bwc9mQfl.js} +3 -3
- package/dist/package/{transaction-BUvzBUD1.js → transaction-C10sHjOp.js} +1 -1
- package/dist/package/{transaction-BhlMhMmN.js → transaction-CRtu-oMo.js} +1 -1
- package/dist/package/{transaction-GC-w6eas.js → transaction-CYsojERR.js} +1 -1
- package/dist/package/{transaction-9ZjMuyda.js → transaction-cowIxlQK.js} +1 -1
- package/dist/package/{tron-connector-73EkJLaC.js → tron-connector-DQ9QzTbX.js} +3 -3
- package/dist/package/{wallet-manager-fjTGOCl1.js → wallet-manager-CV7OgeRF.js} +2 -2
- package/dist/types/domain/network/contract.d.ts +1 -1
- package/dist/types/domain/network/network-name.d.ts +7 -0
- package/dist/types/domain/wallet/contract.d.ts +0 -1
- package/dist/types/domain/wallet/wallet-policy.d.ts +9 -0
- package/dist/types/generated/api/legacy-networks.d.ts +1 -0
- package/dist/types/generated/api/yield-networks.d.ts +1 -0
- package/dist/types/index.bundle.d.ts +1 -1
- package/dist/types/index.package.d.ts +1 -1
- package/dist/types/public-api/react-types.d.ts +8 -0
- package/dist/types/public-api/types.d.ts +73 -23
- package/dist/website/assets/{assets-Cv_Ib61e.js → assets-h8USQKgq.js} +1 -1
- package/dist/website/assets/{cardano-connector-BQ5eYUAn.js → cardano-connector-C0Sq11R4.js} +1 -1
- package/dist/website/assets/{configured-chains-BHW1HK8Y.js → configured-chains-CIWlanAA.js} +1 -1
- package/dist/website/assets/{cosmos-connector-meta-PXOxxoiN.js → cosmos-connector-meta-rno_UNzC.js} +1 -1
- package/dist/website/assets/index-5Aa-rcFh.js +540 -0
- package/dist/website/assets/{ledger-connector-CfdYVk_B.js → ledger-connector-Dd5qrF8_.js} +2 -2
- package/dist/website/assets/{network-CpiZy7GL.js → network-BGx8nCzY.js} +1 -1
- package/dist/website/assets/{solana-connector-Dko0nLRl.js → solana-connector-B7Md4VDG.js} +1 -1
- package/dist/website/assets/{stellar-connector-CzEQ-GiL.js → stellar-connector-BwE5re5j.js} +1 -1
- package/dist/website/assets/{substrate-connector-BySKIZSU.js → substrate-connector-Bc3A8Ngf.js} +1 -1
- package/dist/website/assets/{ton-connector-DfHih6IL.js → ton-connector-1XbtGnNe.js} +1 -1
- package/dist/website/assets/{transaction-BgxiRDr6.js → transaction-BN_PDuuD.js} +1 -1
- package/dist/website/assets/{transaction-Z0G1srG_.js → transaction-BTjp5Yv_.js} +2 -2
- package/dist/website/assets/{transaction-qQ73FnRV.js → transaction-CRGTe3Dx.js} +2 -2
- package/dist/website/assets/transaction-DhoVCNGK.js +1 -0
- package/dist/website/assets/{tron-connector-BkQWCtpI.js → tron-connector-BPQRviGm.js} +2 -2
- package/dist/website/assets/{utils-BnE0E9wY.js → utils-Bi0bPCX2.js} +1 -1
- package/dist/website/assets/{wallet-manager-Bnoaodi-.js → wallet-manager-Dysx00HR.js} +3 -3
- package/dist/website/index.html +9 -9
- package/package.json +2 -2
- package/dist/bundle/transaction-B_6wJk3a.js +0 -23
- package/dist/types/domain/network/intersection.d.ts +0 -2
- package/dist/types/domain/network/network.d.ts +0 -3
- package/dist/types/domain/wallet/network.d.ts +0 -575
- package/dist/types/generated/api/legacy-schema.d.ts +0 -1017
- package/dist/types/generated/api/yield-schema.d.ts +0 -4328
- package/dist/website/assets/index-DPaiXt13.js +0 -540
- package/dist/website/assets/transaction-XbbbllS0.js +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { a as __require$1, s as __toESM$2, t as __commonJSMin } from "./rolldown-runtime-D_CBzjfY.js";
|
|
3
3
|
import { C as require___vite_browser_external, F as init_dist, I as init_dist$2, L as process$1, N as init_dist$1, P as global, S as require_crypto_browserify, j as Buffer, s as require_src, u as require_bignumber$1, x as require_hash } from "./cosmos-kit-Doo1bN3z.js";
|
|
4
|
-
import { t as getWalletNetworkLogo } from "./assets-
|
|
4
|
+
import { t as getWalletNetworkLogo } from "./assets-DLmJ26y-.js";
|
|
5
5
|
import { J as succeed, Qt as fail, c as WalletNotAvailableError, cr as sync, fr as tryPromise, n as createConnector, s as WalletIntegrationError, t as wagmiConnectResult } from "./wagmi-connect-result-D2nyvWBV.js";
|
|
6
6
|
import { n as base58, r as bech32$4 } from "./esm-ZgeZSkDi.js";
|
|
7
7
|
import { t as require_blakejs } from "./blakejs-BL6pS500.js";
|
|
8
|
-
import { t as cardano } from "./configured-chains-
|
|
8
|
+
import { t as cardano } from "./configured-chains-Ddwhz0AO.js";
|
|
9
9
|
import { t as configMeta } from "./cardano-connector-meta-BL7aAgpX.js";
|
|
10
10
|
import { t as makeWagmiConnectorEvents } from "./wagmi-connector-events-DW6Ytid-.js";
|
|
11
11
|
//#region ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_listCacheClear.js
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as getWalletRoutingId, r as getWalletProtocolFamily } from "./network-
|
|
2
|
+
import { i as getWalletRoutingId, r as getWalletProtocolFamily } from "./network-DRWqFyX1.js";
|
|
3
3
|
//#region src/services/wallet/network-assets.ts
|
|
4
4
|
var getNetworkLogo = (network) => `https://assets.stakek.it/networks/${network}.svg`;
|
|
5
5
|
var getTokenLogo = (tokenName) => `https://assets.stakek.it/tokens/${tokenName}.svg`;
|
package/dist/package/{cosmos-connector-meta-D2OXd_8A.js → cosmos-connector-meta-gXG2LZJw.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { V as brand, x as NonEmptyString } from "./assets-DLmJ26y-.js";
|
|
3
3
|
//#region src/domain/identity/identifiers.ts
|
|
4
4
|
var YieldId = NonEmptyString.pipe(brand("YieldId"));
|
|
5
5
|
var ProviderId = NonEmptyString.pipe(brand("ProviderId"));
|
|
@@ -4,12 +4,12 @@ import { I as init_dist, L as process$1 } from "./cosmos-kit-Doo1bN3z.js";
|
|
|
4
4
|
import { $ as unescape$1, A as valueText$1, B as heading$2, C as providerChangeButton, D as providerStatusText, E as providerRemoveButton, F as ContentLoaderCircle, G as vars, H as createRuntimeFn, I as ContentLoaderLine, J as I18nContext, K as useTranslation, L as ContentLoaderSquare, M as getActivityDayKind, N as getActivityRelativeTime, O as providerWebsiteText, P as getDisplayDurationUntil, Q as setDefaults, R as Spinner, S as providerCardMainRow, T as providerNameText, U as Box, V as textStyles, W as clsx, X as setI18n, Y as getI18n, Z as getDefaults$1, _ as networkValue, b as providerCardHeader, d as externalLinkIcon, et as isObject$1, f as integrationDocsLink, g as metricValueText$1, it as require_compiler_runtime, j as formatDateTime, k as rangeButton, m as metricLabelText$1, n as autoBadgeText, nt as warn, p as metricCard$1, rt as warnOnce$2, t as autoBadge, tt as isString$1, v as providerCard, w as providerMetaText, x as providerCardList, y as providerCardContent, z as Text } from "./styles.css-uBhjX2dJ.js";
|
|
5
5
|
import { $t as constant, At as hasProperty, Ct as hash$1, Et as string, Ft as isIterable, Jt as constFalse, Lt as isNotNull$2, Qt as constVoid, St as combine, Vt as isObject$2, Xt as constTrue, a as isFailure$1, an as pipe$1, at as BaseProto, b as PipeInspectableProto, bt as symbol, c as map$3, cn as pipeArguments, ct as toJson, d as succeed$1, en as dual, et as assignProperty, f as try_, gt as redact, it as setStackTraceLimit, kt as symbol$1, n as failVoid, nn as identity, o as isResult, ot as Class, qt as or, r as flatMap$2, rt as getStackTraceLimit, s as isSuccess$1, st as NodeInspectSymbol, t as fail$1, tn as flow, u as match$1, ut as format, yt as equals, zt as isNotUndefined } from "./Result-DZguAoRW.js";
|
|
6
6
|
import { $n as DisablePropagation, $r as Service, Ar as dedupeWith, Br as head, Ci as none, Cr as toMillis, Dr as append, Er as zero, Fr as flatMap$5, Gn as void_, Gr as lastNonEmpty, Jt as onExit, Lr as get$9, Mn as suspend, Mr as filter$1, Nn as sync$1, Nr as filterMap, Or as appendAll, Pr as findFirst, Qr as Reference, Qt as orDie$1, Rr as getSomes, Rt as map$4, Si as match$2, Ti as toArray, Tt as forkUnsafe, Ur as isArrayNonEmpty, Vr as headNonEmpty, Wr as isReadonlyArrayNonEmpty, Yr as empty$6, Yt as onExitPrimitive, _ as isNoSuchElementError, _i as getOrUndefined$1, _r as minutes, ai as make$17, ar as toPredicate, b as squash, br as seconds, c as filterInterruptors, ci as exists$1, cr as hours, di as flatMapNullishOr, dr as isFinite, ei as add, f as hasInterrupts, fi as flatten, fr as isLessThan, gi as getOrThrowWith, gr as min$1, hi as getOrNull, hr as millis, i as NoSuchElementError, ii as getUnsafe$1, ir as has$1, jr as empty$5, kn as succeed$2, kr as chunksOf, li as filter$2, m as interrupt, mi as getOrElse$1, mr as max$1, n as currentTimeMillis, ni as get$8, nr as Scheduler$1, oi as merge$1, p as hasInterruptsOnly, pi as fromNullishOr, pt as flatMap$3, qr as map$7, ri as getOrUndefined, rn as provideService, rr as compose, s as fail$2, si as mergeAll$1, sr as fromInputUnsafe, t as Clock, ti as empty$4, tn as provideContext, tr as MixedScheduler, u as findErrorOption, ui as flatMap$4, v as isTimeoutError, vi as isNone$1, wi as some, xi as map$5, y as map$6, yi as isSome, yn as scopeAddFinalizerUnsafe, yt as forEach$1 } from "./Clock-PCuUyfZI.js";
|
|
7
|
-
import { $ as
|
|
7
|
+
import { $ as decodeUnknownResult, $t as fromSetCookie, A as Struct, At as encodeUriComponent, B as Unknown, Bt as fromInput, C as NullOr, Ct as omit, D as Record, Dt as transform$2, E as ReadonlySet, Et as toLowerCase, F as TemplateLiteral, Ft as transformOptional$1, G as decode$1, Gt as empty$8, H as catchDecoding, Ht as setAll$1, I as Trim, It as MissingKey, J as decodeResult, Jt as isRedactedName, K as decodeEffect, Kt as fromInput$1, Lt as makeFormatterStandardSchemaV1, M as TaggedError, Mt as passthroughSubtype, N as TaggedStruct, Nt as transform$3, O as SchemaError, Ot as transformOptional, P as TaggedUnion, Pt as transformEffect, Q as decodeUnknownOption, Qt as setAll, R as UndefinedOr, Rt as CurrentRedactedNames$1, S as Null, St as toType, Tt as decodeUnknownEffect$1, U as check, Ut as unwrap$1, V as brand, Vt as redactUrl, W as declare, Wt as CurrentRedactedNames, X as decodeTo, Xt as remove$1, Y as decodeSync, Yt as merge$2, Z as decodeUnknownEffect, Zt as set$4, _ as Literal, _t as makeFilter, a as config, an as empty$9, at as is, b as Never, bt as suspend$1, cn as union, ct as isInt, dt as isMaxCodePoints, en as decode, et as decodeUnknownSync, f as Defect, ft as isMaxLength, g as Json, h as Int, ht as isPattern, i as networkLogoUrl, in as toLowerCase$1, it as instanceOf, j as StructWithRest, jt as forbidden, k as String$1, kt as decodeUriComponent, l as Boolean$1, lt as isLessThan$1, m as FiniteFromString, mt as isMinLength, n as getWalletTokenLogo, nn as capitalize, nt as extendTo, o as ArraySchema, on as filter$3, ot as isFinite$1, p as Finite, pt as isMinCodePoints, q as decodeOption, qt as fromRecordUnsafe, rn as startsWith, rt as fromJsonString, s as BigInt$1, st as isGreaterThanOrEqualTo, t as getWalletNetworkLogo, tn as encode$1, tt as encodeEffect, u as DateTimeUtc, ut as isLessThanOrEqualTo, v as Literals, vt as optional$1, w as Number$1, wt as pick, x as NonEmptyString, xt as toCodecJson, y as Natural, yt as optionalKey, z as Union, zt as empty$7 } from "./assets-DLmJ26y-.js";
|
|
8
8
|
import { $ as toPull, $n as scope, $r as isExit, $t as failCause$1, A as fromReadableStream, An as matchCauseEffect, Ar as spaced, At as acquireRelease, B as never$1, Bn as provideService$1, Br as provide$1, Bt as callback$1, C as fail$5, Cn as logWarning, Cr as withSpan, Ct as getCurrent, D as fromEffectSchedule, Dn as mapError, Dr as fromStep, Dt as join, E as fromEffect, Er as forever, Et as interruptAs, F as map$9, Fn as onInterrupt, Fr as addFinalizer, Ft as as, G as runForEachArray, Gn as retry, Gr as fail$6, Gt as catchTags, H as paginate, Hn as raceFirst, Hr as _await, Ht as catchCauseIf, I as mapAccum, In as option$1, Ir as close$1, It as asSome, J as succeed$6, Jn as runForkWith, Jr as make$21, Jt as contextWith, K as runHead, Kn as runCallbackWith, Kr as into, Kt as catch_, L as mapEffect, Ln as orDie$2, Lr as fork, Lt as asVoid, M as interruptWhen, Mn as never, Mr as upTo, Mt as all$1, N as isStream, Nn as onError, Nr as isDoneCause, Nt as andThen, O as fromPubSub, Or as isSchedule, Ot as joinAll, P as make$22, Pn as onExit$1, Pr as Scope, Pt as annotateLogs, Q as tap$2, Qn as runSyncWith, Qr as failCause, Qt as fail$4, R as mapError$1, Rn as orElseSucceed, Rr as forkUnsafe$1, Rt as cached, S as ensuring, Sn as logInfo, Sr as withParentSpan, St as await_, T as filterEffect, Tr as exponential, Tt as interruptAll, U as runDrain, Un as repeat, Ur as done, V as onStart, Vn as race, Vr as TracerTimingEnabled, Vt as catchCause, W as runForEach, Wn as result$1, Wr as doneUnsafe, Wt as catchTag, X as switchMap, Xn as runSync, Xr as succeed$5, Xt as ensuring$1, Y as suspend$3, Yn as runPromiseExit, Yr as makeUnsafe$6, Yt as die, Z as take$1, Zr as fail$3, Zt as exit, _ as changesWith, _n as gen, _r as updateContext, _t as publishUnsafe, a as WalletConnectionError, ai as Error$1, ar as succeedNone, at as toPullScoped, b as drop, bn as isEffect, br as whileLoop, bt as make$19, c as WalletNotAvailableError, cr as sync$2, ct as dropping, d as WalletRuntimeInvariantError, dn as forkDetach, dr as tapError, dt as offer, ei as isFailure$2, er as scoped, et as toQueue, f as WalletSigningError, fn as forkIn, fr as tryPromise, ft as offerUnsafe, g as changes$1, gn as fromResult, gr as uninterruptibleMask, gt as publish, h as catchCause$1, hn as fromOption, hr as uninterruptible, ht as unbounded$1, i as WalletCapabilityUnavailableError, ii as Class$1, in as flatMap$6, ir as succeed$4, it as zipLatestAll, j as fromSchedule, jn as matchEffect, jr as toStep, jt as addFinalizer$1, k as fromQueue, kn as match$3, kr as modifyDelay, kt as runIn, l as WalletOwnerMismatchError, ln as forEach$2, lr as tap$1, lt as failCauseUnsafe, m as callback, mr as undefined_, mt as take, n as createConnector, ni as succeed$3, nr as service, nt as unwrap$2, o as WalletDecodeError, oi as TaggedClass, on as fn, or as succeedSome, ot as make$20, p as WalletSwitchError, pn as forkScoped, pr as try_$1, pt as shutdown$1, q as share, qn as runFork, qr as isDone, qt as context$1, r as WalletBroadcastError, ri as void_$2, rn as filterOrFail, rr as sleep, rt as zipLatest, s as WalletIntegrationError, si as TaggedError$1, sn as fnUntraced, sr as suspend$2, st as makeUnsafe$8, t as wagmiConnectResult, ti as isSuccess$2, tn as fiberId, tr as scopedWith, tt as toReadableStreamEffect, u as WalletRequestCancelledError, un as forever$1, ur as tapCause, ut as make$18, v as concat, vn as ignore, vr as useSpan, vt as shutdown, w as filter$4, wn as map$8, wr as yieldNow, wt as interrupt$2, x as empty$10, xn as logError, xr as withFiber, xt as set$5, y as debounce$1, yn as interrupt$1, yr as void_$1, yt as unbounded, z as merge$3, zn as promise, zr as makeUnsafe$7, zt as cachedWithTTL } from "./wagmi-connect-result-D2nyvWBV.js";
|
|
9
9
|
import { a as isLessThanOrEqualTo$1, g as zoneMakeLocal, l as now$1, p as toEpochMillis, t as distance$1 } from "./DateTime-BRBXj7zv.js";
|
|
10
|
-
import { a as ProviderOption, c as ValidatorAddress, d as addressIdentity, i as ProviderId, l as WalletAddress$1, n as isCosmosConnector, o as TokenAddress$1, r as ActionId$1, s as TransactionId$1, u as YieldId } from "./cosmos-connector-meta-
|
|
11
|
-
import { C as truncateToTokenDecimals, _ as logDecodeFieldRejection, a as decodeUnsignedEvmTransactionJson, b as exactZero, d as ExactDecimal, f as ExactDecimalInput, g as UtcDateTimeFromString, h as TolerantOptionalUtcDateTimeFromString, i as decodeAndPrepareEvmTransaction, l as isLedgerLiveConnector, m as TolerantNullableUtcDateTimeFromString, n as decodeWalletPayload, p as NonNegativeExactDecimal, r as decodeAndPrepareBorrowEvmTransaction, s as normalizeChainId, t as substratePayloadCodec, u as ExactBaseUnitAmount, v as logDecodeRejection, w as BigNumber, x as sumExact, y as exactDecimal } from "./transaction-
|
|
12
|
-
import { c as walletCosmosNetworks, d as SubstrateChainIds, i as getWalletRoutingId, l as EvmChainIds, n as getProtocolChainIdentity, o as isEvmWalletNetwork, s as isWalletNetwork, t as WalletNetwork, u as MiscChainIds } from "./network-
|
|
10
|
+
import { a as ProviderOption, c as ValidatorAddress, d as addressIdentity, i as ProviderId, l as WalletAddress$1, n as isCosmosConnector, o as TokenAddress$1, r as ActionId$1, s as TransactionId$1, u as YieldId } from "./cosmos-connector-meta-gXG2LZJw.js";
|
|
11
|
+
import { C as truncateToTokenDecimals, _ as logDecodeFieldRejection, a as decodeUnsignedEvmTransactionJson, b as exactZero, d as ExactDecimal, f as ExactDecimalInput, g as UtcDateTimeFromString, h as TolerantOptionalUtcDateTimeFromString, i as decodeAndPrepareEvmTransaction, l as isLedgerLiveConnector, m as TolerantNullableUtcDateTimeFromString, n as decodeWalletPayload, p as NonNegativeExactDecimal, r as decodeAndPrepareBorrowEvmTransaction, s as normalizeChainId, t as substratePayloadCodec, u as ExactBaseUnitAmount, v as logDecodeRejection, w as BigNumber, x as sumExact, y as exactDecimal } from "./transaction-C10sHjOp.js";
|
|
12
|
+
import { c as walletCosmosNetworks, d as SubstrateChainIds, i as getWalletRoutingId, l as EvmChainIds, n as getProtocolChainIdentity, o as isEvmWalletNetwork, s as isWalletNetwork, t as WalletNetwork, u as MiscChainIds } from "./network-DRWqFyX1.js";
|
|
13
13
|
import { Ft as AccountNotFoundError, Nt as UserRejectedRequestError, Tt as SwitchChainError, wt as ResourceUnavailableRpcError } from "./sendRawTransaction-CoyZVRP3.js";
|
|
14
14
|
import { Mt as parseAbi, ar as stringToHex, h as erc20Abi, ir as numberToHex, or as toHex, pn as getAddress, s as encodeFunctionData, sn as parseAccount } from "./call-yJqbTyoO.js";
|
|
15
15
|
import { C as base, E as arbitrum, S as bsc, T as avalanche, _ as goerli, a as sepolia, b as celo, c as polygon, d as monadTestnet, f as mainnet, g as harmonyOne, h as hoodi, i as sonic, l as plasmaTestnet, n as unichain, o as robinhoodTestnet, p as linea, r as sendTransaction$1, s as robinhood, t as viction, u as optimism, v as gnosis, y as coreDao } from "./viction-NZ5_4djh.js";
|
|
@@ -17,15 +17,15 @@ import { a as createClient, c as withTimeout, d as serializeTypedData, f as vali
|
|
|
17
17
|
import { a as isSafeConnector, c as BaseError, i as configMeta$1, l as version$1, n as isMobileWalletEnvironment, o as ProviderNotFoundError, s as SwitchChainNotSupportedError, t as isLedgerDappBrowserProvider } from "./browser-environment-B1qtR1pH.js";
|
|
18
18
|
import { t as custom } from "./custom-BUyjuLC7.js";
|
|
19
19
|
import { n as import_eventemitter3 } from "./eventemitter3-DQ3GPwHK.js";
|
|
20
|
-
import { A as WalletNotReadyError, C as WalletAccountError, D as WalletDisconnectionError, E as WalletDisconnectedError, F as WalletSignTransactionError, M as WalletSendTransactionError, N as WalletSignInError, O as WalletError, P as WalletSignMessageError, S as scopePollingDetectionStrategy, T as WalletConnectionError$1, _ as BaseSignInMessageSignerWalletAdapter, a as isSolanaConnector, b as WalletReadyState, c as Connection, d as VersionedMessage, f as VersionedTransaction, g as BaseMessageSignerWalletAdapter, h as WalletAdapterNetwork, j as WalletPublicKeyError, k as WalletNotConnectedError, l as PublicKey, m as init_index_browser_esm, n as normalizeSolanaTransactionToHex, o as porto_default, p as clusterApiUrl, r as unsignedSolanaTransactionCodec, s as WalletConnectSolanaAdapter, u as Transaction$1, v as isVersionedTransaction$1, w as WalletConfigError, x as isIosAndRedirectable, y as BaseWalletAdapter } from "./transaction-
|
|
20
|
+
import { A as WalletNotReadyError, C as WalletAccountError, D as WalletDisconnectionError, E as WalletDisconnectedError, F as WalletSignTransactionError, M as WalletSendTransactionError, N as WalletSignInError, O as WalletError, P as WalletSignMessageError, S as scopePollingDetectionStrategy, T as WalletConnectionError$1, _ as BaseSignInMessageSignerWalletAdapter, a as isSolanaConnector, b as WalletReadyState, c as Connection, d as VersionedMessage, f as VersionedTransaction, g as BaseMessageSignerWalletAdapter, h as WalletAdapterNetwork, j as WalletPublicKeyError, k as WalletNotConnectedError, l as PublicKey, m as init_index_browser_esm, n as normalizeSolanaTransactionToHex, o as porto_default, p as clusterApiUrl, r as unsignedSolanaTransactionCodec, s as WalletConnectSolanaAdapter, u as Transaction$1, v as isVersionedTransaction$1, w as WalletConfigError, x as isIosAndRedirectable, y as BaseWalletAdapter } from "./transaction-cowIxlQK.js";
|
|
21
21
|
import { t as esm_default } from "./esm-BVAJQSth.js";
|
|
22
22
|
import { t as require_dijkstra } from "./dijkstra-DE6XLT2u.js";
|
|
23
|
-
import { n as miscChainsMap, s as getNetworkLogo } from "./configured-chains-
|
|
23
|
+
import { n as miscChainsMap, s as getNetworkLogo } from "./configured-chains-Ddwhz0AO.js";
|
|
24
24
|
import { n as isSubstrateConnector, r as wallet_connect_default } from "./substrate-connector-meta-Ds_sQR1o.js";
|
|
25
25
|
import { t as makeCurrentValueStream } from "./current-value-stream-CCtb0_Iz.js";
|
|
26
26
|
import { n as isCardanoConnector } from "./cardano-connector-meta-BL7aAgpX.js";
|
|
27
|
-
import { n as unsignedTonTransactionCodec, t as normalizeTonTransactionToRaw } from "./transaction-
|
|
28
|
-
import { n as unsignedTronTransactionCodec } from "./transaction-
|
|
27
|
+
import { n as unsignedTonTransactionCodec, t as normalizeTonTransactionToRaw } from "./transaction-CRtu-oMo.js";
|
|
28
|
+
import { n as unsignedTronTransactionCodec } from "./transaction-CYsojERR.js";
|
|
29
29
|
import { t as isStellarConnector } from "./stellar-connector-meta--coNfb5X.js";
|
|
30
30
|
import { n as isTonConnector } from "./ton-connector-meta-CGPcs5EJ.js";
|
|
31
31
|
import { n as isTronConnector } from "./tron-connector-meta-Dy7RipKo.js";
|
|
@@ -20122,6 +20122,14 @@ var tokenString = (token) => {
|
|
|
20122
20122
|
return `${token.network}-${token.symbol}-${identityAddress(token)}`;
|
|
20123
20123
|
};
|
|
20124
20124
|
var equalTokens = (a, b) => tokenString(a) === tokenString(b);
|
|
20125
|
+
/**
|
|
20126
|
+
* Token reference hosts write in `token`, `initToken` and
|
|
20127
|
+
* `preferredTokenYieldsPerNetwork`: `${network}-${address}`, with an empty
|
|
20128
|
+
* address for native tokens. Case-insensitive, so it is stored lowercase.
|
|
20129
|
+
*/
|
|
20130
|
+
var HostTokenKey = String$1.pipe(decodeTo(String$1.pipe(brand("HostTokenKey")), toLowerCase()));
|
|
20131
|
+
var decodeHostTokenKey = decodeSync(HostTokenKey);
|
|
20132
|
+
var hostTokenKey = (token) => decodeHostTokenKey(`${token.network}-${token.address ?? ""}`);
|
|
20125
20133
|
var getTokenArgumentAddress = (token) => token.address ?? "0x";
|
|
20126
20134
|
//#endregion
|
|
20127
20135
|
//#region src/domain/earn/contract.ts
|
|
@@ -20808,7 +20816,7 @@ var validatorPolicyFields = {
|
|
|
20808
20816
|
};
|
|
20809
20817
|
var ValidatorPolicy = Struct(validatorPolicyFields);
|
|
20810
20818
|
var IconMapping = Record(String$1, String$1);
|
|
20811
|
-
var PreferredTokenYieldsPerNetwork = Record(String$1, Record(
|
|
20819
|
+
var PreferredTokenYieldsPerNetwork = Record(String$1, Record(HostTokenKey, String$1));
|
|
20812
20820
|
var externalProviderTypeValues = exhaustiveLiterals()(["generic"]);
|
|
20813
20821
|
var externalProviderValueFields = {
|
|
20814
20822
|
currentAddress: String$1,
|
|
@@ -20855,7 +20863,6 @@ var hostConfigurationValueFields = {
|
|
|
20855
20863
|
preferredTokenYieldsPerNetwork: optional(PreferredTokenYieldsPerNetwork),
|
|
20856
20864
|
theme: optional(Unknown),
|
|
20857
20865
|
tokenIconMapping: optional(IconMapping),
|
|
20858
|
-
tokensForEnabledYieldsOnly: optional(Boolean$1),
|
|
20859
20866
|
tonConnectManifestUrl: optional(String$1),
|
|
20860
20867
|
validatorsConfig: optional(Record(String$1, ValidatorPolicy)),
|
|
20861
20868
|
variant: optional(Literals(hostVariantValues)),
|
|
@@ -21037,7 +21044,6 @@ var normalizeWidgetConfig = (hostConfiguration, environment) => {
|
|
|
21037
21044
|
const variant = hostConfiguration.variant ?? "default";
|
|
21038
21045
|
const yieldGrouping = hostConfiguration.yieldGrouping ?? (dashboardVariant ? "category" : "flat");
|
|
21039
21046
|
const dashboardYieldCategoryOrder = [.../* @__PURE__ */ new Set([...hostConfiguration.dashboardYieldCategoryOrder ?? [], ...dashboardYieldCategories])];
|
|
21040
|
-
const preferredTokenYieldsPerNetwork = hostConfiguration.preferredTokenYieldsPerNetwork ? Object.fromEntries(Object.entries(hostConfiguration.preferredTokenYieldsPerNetwork).map(([network, preferences]) => [network, Object.fromEntries(Object.entries(preferences).map(([token, yieldId]) => [token.toLowerCase(), yieldId]))])) : void 0;
|
|
21041
21047
|
const validatorsConfig = new Map(Object.entries(hostConfiguration.validatorsConfig ?? {}).map(([network, validators]) => [network, {
|
|
21042
21048
|
allowed: validators.allowed ? new Set(validatorAddressIdentities(validators.allowed)) : void 0,
|
|
21043
21049
|
blocked: validators.blocked ? new Set(validatorAddressIdentities(validators.blocked)) : void 0,
|
|
@@ -21078,7 +21084,7 @@ var normalizeWidgetConfig = (hostConfiguration, environment) => {
|
|
|
21078
21084
|
mountAnimationStartsFinished: dashboardVariant || hostConfiguration.disableInitLayoutAnimation === void 0 && environment.mountAnimationStartsFinishedByDefault,
|
|
21079
21085
|
onMountAnimationComplete: hostConfiguration.onMountAnimationComplete,
|
|
21080
21086
|
portalContainer: hostConfiguration.portalContainer,
|
|
21081
|
-
preferredTokenYieldsPerNetwork,
|
|
21087
|
+
preferredTokenYieldsPerNetwork: hostConfiguration.preferredTokenYieldsPerNetwork,
|
|
21082
21088
|
theme: hostConfiguration.theme,
|
|
21083
21089
|
tokenIconMapping: hostConfiguration.tokenIconMapping,
|
|
21084
21090
|
tonConnectManifestUrl: hostConfiguration.tonConnectManifestUrl,
|
|
@@ -21233,13 +21239,34 @@ var AccountId = String$1.pipe(decodeTo(String$1, {
|
|
|
21233
21239
|
decode: decodeUriComponent(),
|
|
21234
21240
|
encode: encodeUriComponent()
|
|
21235
21241
|
}));
|
|
21242
|
+
var networksLongestFirst = [...Network.literals].sort((left, right) => right.length - left.length);
|
|
21243
|
+
/** The network a `${network}-${address}` reference starts with, in any case. */
|
|
21244
|
+
var networkPrefix = (token) => {
|
|
21245
|
+
const lower = token.toLowerCase();
|
|
21246
|
+
return networksLongestFirst.find((network) => lower.startsWith(`${network}-`)) ?? null;
|
|
21247
|
+
};
|
|
21248
|
+
/**
|
|
21249
|
+
* The `token` parameter: a host token key when it starts with a network,
|
|
21250
|
+
* otherwise a symbol that needs the `network` parameter to resolve.
|
|
21251
|
+
*/
|
|
21252
|
+
var InitTokenReference = Union([TaggedStruct("HostKey", { key: HostTokenKey }), TaggedStruct("Symbol", { symbol: NonEmptyString })]);
|
|
21253
|
+
var InitToken = String$1.pipe(decodeTo(InitTokenReference, transform$2({
|
|
21254
|
+
decode: (token) => networkPrefix(token) === null ? {
|
|
21255
|
+
_tag: "Symbol",
|
|
21256
|
+
symbol: token
|
|
21257
|
+
} : {
|
|
21258
|
+
_tag: "HostKey",
|
|
21259
|
+
key: token
|
|
21260
|
+
},
|
|
21261
|
+
encode: (reference) => reference._tag === "HostKey" ? reference.key : reference.symbol
|
|
21262
|
+
})));
|
|
21236
21263
|
var InitParams = Struct({
|
|
21237
21264
|
accountId: invalidAsNull(AccountId),
|
|
21238
21265
|
balanceId: invalidAsNull(BalanceIdParam),
|
|
21239
21266
|
network: invalidAsNull(SupportedNetwork),
|
|
21240
21267
|
pendingaction: invalidAsNull(PendingActionType),
|
|
21241
21268
|
tab: InitTab,
|
|
21242
|
-
token: invalidAsNull(
|
|
21269
|
+
token: invalidAsNull(InitToken),
|
|
21243
21270
|
validator: invalidAsNull(String$1),
|
|
21244
21271
|
yieldId: invalidAsNull(SafeYieldId)
|
|
21245
21272
|
});
|
|
@@ -21249,7 +21276,7 @@ var decodeInitParams = ({ externalProviderInitToken, href }) => {
|
|
|
21249
21276
|
return decodeUnknownSync(InitParams)({
|
|
21250
21277
|
accountId: url.searchParams.get("accountId"),
|
|
21251
21278
|
balanceId: url.searchParams.get("balanceId"),
|
|
21252
|
-
network: url.searchParams.get("network") ?? (token
|
|
21279
|
+
network: url.searchParams.get("network") ?? (token && networkPrefix(token)),
|
|
21253
21280
|
pendingaction: url.searchParams.get("pendingaction"),
|
|
21254
21281
|
tab: url.searchParams.get("tab"),
|
|
21255
21282
|
token,
|
|
@@ -25607,7 +25634,7 @@ var layer = /*#__PURE__*/ layerMergedContext(/*#__PURE__*/ succeed$4(/* @__PURE_
|
|
|
25607
25634
|
})));
|
|
25608
25635
|
//#endregion
|
|
25609
25636
|
//#region package.json
|
|
25610
|
-
var version = "0.0.
|
|
25637
|
+
var version = "0.0.291";
|
|
25611
25638
|
//#endregion
|
|
25612
25639
|
//#region src/generated/api/borrow-client.ts
|
|
25613
25640
|
var make$2 = (httpClient, options = {}) => {
|
|
@@ -42638,7 +42665,7 @@ var loadStellarConnector = fn("loadStellarConnector")(function* ({ buildConnecto
|
|
|
42638
42665
|
if (!buildConnectors || !enabledNetworks.has("stellar")) return null;
|
|
42639
42666
|
const clients = yield* stellarWalletsKitPlatform.load(walletConnectProtocol);
|
|
42640
42667
|
return (yield* tryPromise({
|
|
42641
|
-
try: () => import("./stellar-connector-
|
|
42668
|
+
try: () => import("./stellar-connector-Bwd8_6fg.js"),
|
|
42642
42669
|
catch: (cause) => new WalletIntegrationError({
|
|
42643
42670
|
cause,
|
|
42644
42671
|
message: "Could not load Stellar connectors",
|
|
@@ -42660,17 +42687,17 @@ var queryFn$3 = async ({ buildConnectors, enabledNetworks, solanaWallets, solana
|
|
|
42660
42687
|
miscChainsMap: filteredMiscChainsMap,
|
|
42661
42688
|
miscChains: Object.values(filteredMiscChainsMap).map((val) => val.wagmiChain),
|
|
42662
42689
|
connectors: buildConnectors ? await Promise.all([
|
|
42663
|
-
filteredMiscChainsMap.tron ? import("./tron-connector-
|
|
42690
|
+
filteredMiscChainsMap.tron ? import("./tron-connector-DQ9QzTbX.js").then((module) => module.getTronConnectors({
|
|
42664
42691
|
walletConnectProtocol,
|
|
42665
42692
|
runWalletEffect
|
|
42666
42693
|
})) : null,
|
|
42667
|
-
filteredMiscChainsMap.solana && !config.env.isTestMode ? import("./solana-connector-
|
|
42694
|
+
filteredMiscChainsMap.solana && !config.env.isTestMode ? import("./solana-connector-zdXBpO69.js").then((module) => module.getSolanaConnectors({
|
|
42668
42695
|
wallets: solanaWallets,
|
|
42669
42696
|
connection: solanaConnection,
|
|
42670
42697
|
walletCatalogue
|
|
42671
42698
|
})) : null,
|
|
42672
|
-
filteredMiscChainsMap.cardano ? import("./cardano-connector-
|
|
42673
|
-
filteredMiscChainsMap.ton ? import("./ton-connector-
|
|
42699
|
+
filteredMiscChainsMap.cardano ? import("./cardano-connector-CIrXiVTi.js").then((module) => module.getCardanoConnectors()) : null,
|
|
42700
|
+
filteredMiscChainsMap.ton ? import("./ton-connector-Bwc9mQfl.js").then((module) => module.getTonConnectors({
|
|
42674
42701
|
runWalletEffect,
|
|
42675
42702
|
tonConnectManifestUrl,
|
|
42676
42703
|
walletModal
|
|
@@ -42726,7 +42753,7 @@ var logCosmosConnectorFailure = (operation, cause) => logError("Cosmos wallet co
|
|
|
42726
42753
|
}));
|
|
42727
42754
|
var loadCosmosConnector = fn("loadCosmosConnector")(function* ({ cosmosChainsMap, persistPublicKey, walletConnectProtocol, runWalletEffect }) {
|
|
42728
42755
|
const walletManagerModule = yield* tryPromise({
|
|
42729
|
-
try: () => import("./wallet-manager-
|
|
42756
|
+
try: () => import("./wallet-manager-CV7OgeRF.js"),
|
|
42730
42757
|
catch: (cause) => new WalletIntegrationError({
|
|
42731
42758
|
cause,
|
|
42732
42759
|
message: "Could not import cosmos wallet manager",
|
|
@@ -44286,7 +44313,7 @@ var externalProviderConnector = (variant, runWalletEffect) => ({
|
|
|
44286
44313
|
var queryFn = ({ enabledChainsMap, isLedgerDappBrowser, queryParams, runWalletEffect }) => {
|
|
44287
44314
|
if (!isLedgerDappBrowser) return succeed$4(null);
|
|
44288
44315
|
return tryPromise({
|
|
44289
|
-
try: () => import("./ledger-connector-
|
|
44316
|
+
try: () => import("./ledger-connector-DA2MGFO1.js"),
|
|
44290
44317
|
catch: (cause) => new WalletIntegrationError({
|
|
44291
44318
|
cause,
|
|
44292
44319
|
message: "Could not import ledger-connector",
|
|
@@ -44372,7 +44399,7 @@ var getConfig = ({ buildConnectors, enabledNetworks, walletConnectProtocol, runW
|
|
|
44372
44399
|
const filteredSubstrateChainsMap = filter$3(substrateChainsMap, (v) => enabledNetworks.has(v.network));
|
|
44373
44400
|
const enabledChains = Object.values(filteredSubstrateChainsMap);
|
|
44374
44401
|
const connector = buildConnectors && isReadonlyArrayNonEmpty(enabledChains) ? yield* tryPromise({
|
|
44375
|
-
try: () => import("./substrate-connector-
|
|
44402
|
+
try: () => import("./substrate-connector-DWxNzj24.js"),
|
|
44376
44403
|
catch: (cause) => new WalletIntegrationError({
|
|
44377
44404
|
cause,
|
|
44378
44405
|
message: "Could not import substrate-connector",
|
|
@@ -44681,7 +44708,7 @@ var buildWagmiConfig = (opts, buildActions, stellarWalletsKitPlatform, walletCon
|
|
|
44681
44708
|
}
|
|
44682
44709
|
const actions = buildActions({ config: wagmiConfig });
|
|
44683
44710
|
const createSolanaConnector = fn("createSolanaConnector")(function* (wallet) {
|
|
44684
|
-
const { getSolanaConnectors } = yield* promise(() => import("./solana-connector-
|
|
44711
|
+
const { getSolanaConnectors } = yield* promise(() => import("./solana-connector-zdXBpO69.js"));
|
|
44685
44712
|
const solanaGroup = getSolanaConnectors({
|
|
44686
44713
|
connection: opts.solanaConnection,
|
|
44687
44714
|
walletCatalogue: opts.walletCatalogue,
|
|
@@ -45098,7 +45125,10 @@ var resolveWalletInitParams = fn("resolveWalletInitParams")(function* (initParam
|
|
|
45098
45125
|
return {
|
|
45099
45126
|
...initParams,
|
|
45100
45127
|
network,
|
|
45101
|
-
token:
|
|
45128
|
+
token: {
|
|
45129
|
+
_tag: "HostKey",
|
|
45130
|
+
key: hostTokenKey(yieldData.token)
|
|
45131
|
+
}
|
|
45102
45132
|
};
|
|
45103
45133
|
});
|
|
45104
45134
|
var bootstrapWallet = gen(function* () {
|
|
@@ -74365,7 +74395,7 @@ var resolveToken = ({ entry, previousToken = null, selectedTokenKey, tokenOption
|
|
|
74365
74395
|
const network = entry.walletScope?.network ?? null;
|
|
74366
74396
|
const preferredTokens = network ? entry.preferredTokenYieldsPerNetwork?.[network] : Object.values(entry.preferredTokenYieldsPerNetwork ?? {})[0];
|
|
74367
74397
|
if (preferredTokens) {
|
|
74368
|
-
const selected = tokenOptions.find((option) => !!preferredTokens[
|
|
74398
|
+
const selected = tokenOptions.find((option) => !!preferredTokens[hostTokenKey(option.token)]);
|
|
74369
74399
|
if (selected) return selected;
|
|
74370
74400
|
}
|
|
74371
74401
|
const fundedToken = tokenOptions.find((option) => option.amount !== null && isFundedBalance({
|
|
@@ -74376,12 +74406,17 @@ var resolveToken = ({ entry, previousToken = null, selectedTokenKey, tokenOption
|
|
|
74376
74406
|
return tokenOptions[0] ?? null;
|
|
74377
74407
|
};
|
|
74378
74408
|
var findTokenByKey = (tokens, tokenKey) => tokens.find((token) => tokenString(token.token) === tokenKey) ?? null;
|
|
74379
|
-
|
|
74380
|
-
|
|
74381
|
-
|
|
74382
|
-
|
|
74383
|
-
|
|
74384
|
-
})
|
|
74409
|
+
/**
|
|
74410
|
+
* A host key identifies one token. A symbol needs the network and is not
|
|
74411
|
+
* unique even then (Ethereum lists both `USDA` and `USDa`), so the exact
|
|
74412
|
+
* symbol wins over a case-insensitive one.
|
|
74413
|
+
*/
|
|
74414
|
+
var findTokenByInitToken = ({ network, token, tokenOptions }) => {
|
|
74415
|
+
if (token._tag === "HostKey") return tokenOptions.find((option) => hostTokenKey(option.token) === token.key) ?? null;
|
|
74416
|
+
const onNetwork = tokenOptions.filter((option) => option.token.network === network);
|
|
74417
|
+
const symbol = token.symbol.toLowerCase();
|
|
74418
|
+
return onNetwork.find((option) => option.token.symbol === token.symbol) ?? onNetwork.find((option) => option.token.symbol.toLowerCase() === symbol) ?? null;
|
|
74419
|
+
};
|
|
74385
74420
|
//#endregion
|
|
74386
74421
|
//#region src/features/earn/state/earn-selection/model/yield.ts
|
|
74387
74422
|
var resolveYieldOptions = ({ selectedToken, yieldsById }) => {
|
|
@@ -74420,7 +74455,7 @@ var resolveYield = ({ entry, previousYield, selectedYieldId, selectedToken, yiel
|
|
|
74420
74455
|
var findYieldById = (yieldOptions, yieldId) => yieldOptions.find((yieldOption) => yieldOption.id.toLowerCase() === yieldId.toLowerCase()) ?? null;
|
|
74421
74456
|
var getDefaultYield = (yieldOptions) => yieldOptions.find((yieldOption) => yieldOption.status.enter && isNonZeroRewardRateYield(yieldOption)) ?? yieldOptions.find((yieldOption) => yieldOption.status.enter) ?? yieldOptions[0] ?? null;
|
|
74422
74457
|
var getPreferredYieldId = ({ preferredTokenYieldsPerNetwork, selectedToken }) => {
|
|
74423
|
-
const tokenKey =
|
|
74458
|
+
const tokenKey = hostTokenKey(selectedToken.token);
|
|
74424
74459
|
const network = selectedToken.token.network;
|
|
74425
74460
|
if (!isWalletNetwork(network)) return null;
|
|
74426
74461
|
return (preferredTokenYieldsPerNetwork?.[network])?.[tokenKey] ?? null;
|
|
@@ -74434,7 +74469,7 @@ var isBlockingFailure = (result) => isFailure(result) && !hasAvailableValue(resu
|
|
|
74434
74469
|
var decodeInitYieldId = (entry) => entry.initParams?.yieldId ? decodeOption(YieldId)(entry.initParams.yieldId).pipe(getOrNull) : null;
|
|
74435
74470
|
var findPreferredCategory = ({ catalogs, preferred }) => catalogs.find(({ result }) => {
|
|
74436
74471
|
return getAvailableValue(result, []).some((option) => {
|
|
74437
|
-
return !!(preferred?.[option.token.network])?.[
|
|
74472
|
+
return !!(preferred?.[option.token.network])?.[hostTokenKey(option.token)];
|
|
74438
74473
|
});
|
|
74439
74474
|
})?.category ?? null;
|
|
74440
74475
|
var resolveCategorySelection = ({ entry, intent, observations, previous }) => {
|
|
@@ -3,14 +3,14 @@ import { s as __toESM, t as __commonJSMin } from "./rolldown-runtime-D_CBzjfY.js
|
|
|
3
3
|
import { D as require_events, N as init_dist, j as Buffer } from "./cosmos-kit-Doo1bN3z.js";
|
|
4
4
|
import { c as map, d as succeed, i as getOrThrow, r as flatMap, t as fail } from "./Result-DZguAoRW.js";
|
|
5
5
|
import { hi as getOrNull } from "./Clock-PCuUyfZI.js";
|
|
6
|
-
import { A as Struct,
|
|
6
|
+
import { A as Struct, B as Unknown, C as NullOr, K as decodeEffect, M as TaggedError, k as String$1, p as Finite, q as decodeOption, r as walletImages, rt as fromJsonString, sn as toEntries, vt as optional$1 } from "./assets-DLmJ26y-.js";
|
|
7
7
|
import { Dn as mapError, F as map$2, Qt as fail$1, Rt as cached$1, _n as gen, fr as tryPromise, gn as fromResult, in as flatMap$1, ir as succeed$1, n as createConnector, s as WalletIntegrationError, t as wagmiConnectResult, wn as map$1 } from "./wagmi-connect-result-D2nyvWBV.js";
|
|
8
|
-
import { S as toSafeIntegerCount, b as exactZero, c as configMeta, n as decodeWalletPayload, o as unsignedEVMTransactionCodec, s as normalizeChainId, t as substratePayloadCodec, w as BigNumber$1, y as exactDecimal } from "./transaction-
|
|
9
|
-
import { a as isCosmosWalletNetwork, o as isEvmWalletNetwork } from "./network-
|
|
8
|
+
import { S as toSafeIntegerCount, b as exactZero, c as configMeta, n as decodeWalletPayload, o as unsignedEVMTransactionCodec, s as normalizeChainId, t as substratePayloadCodec, w as BigNumber$1, y as exactDecimal } from "./transaction-C10sHjOp.js";
|
|
9
|
+
import { a as isCosmosWalletNetwork, o as isEvmWalletNetwork } from "./network-DRWqFyX1.js";
|
|
10
10
|
import { $n as hexToBytes } from "./call-yJqbTyoO.js";
|
|
11
11
|
import { t as makeCurrentValueStream } from "./current-value-stream-CCtb0_Iz.js";
|
|
12
|
-
import { a as require_dist$1, i as require_dist$2, n as unsignedTonTransactionCodec } from "./transaction-
|
|
13
|
-
import { n as unsignedTronTransactionCodec } from "./transaction-
|
|
12
|
+
import { a as require_dist$1, i as require_dist$2, n as unsignedTonTransactionCodec } from "./transaction-CRtu-oMo.js";
|
|
13
|
+
import { n as unsignedTronTransactionCodec } from "./transaction-CYsojERR.js";
|
|
14
14
|
import { t as makeWagmiConnectorEvents } from "./wagmi-connector-events-DW6Ytid-.js";
|
|
15
15
|
//#region ../../node_modules/.pnpm/@ledgerhq+logs@6.19.0/node_modules/@ledgerhq/logs/lib-es/index.js
|
|
16
16
|
init_dist();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as getWalletNetworkLogo } from "./assets-
|
|
2
|
+
import { t as getWalletNetworkLogo } from "./assets-DLmJ26y-.js";
|
|
3
3
|
import { J as succeed, c as WalletNotAvailableError, cr as sync, ir as succeed$1, n as createConnector, t as wagmiConnectResult } from "./wagmi-connect-result-D2nyvWBV.js";
|
|
4
|
-
import { A as WalletNotReadyError, b as WalletReadyState, f as VersionedTransaction, i as extensionInstallUrls, m as init_index_browser_esm, o as porto_default, s as WalletConnectSolanaAdapter, t as decodeSolanaTransactionToBuffer, u as Transaction } from "./transaction-
|
|
5
|
-
import { r as solana } from "./configured-chains-
|
|
4
|
+
import { A as WalletNotReadyError, b as WalletReadyState, f as VersionedTransaction, i as extensionInstallUrls, m as init_index_browser_esm, o as porto_default, s as WalletConnectSolanaAdapter, t as decodeSolanaTransactionToBuffer, u as Transaction } from "./transaction-cowIxlQK.js";
|
|
5
|
+
import { r as solana } from "./configured-chains-Ddwhz0AO.js";
|
|
6
6
|
import { t as makeWagmiConnectorEvents } from "./wagmi-connector-events-DW6Ytid-.js";
|
|
7
7
|
//#region src/services/wallet/internal/adapters/solana/solana-connector.ts
|
|
8
8
|
init_index_browser_esm();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { vi as isNone, yi as isSome } from "./Clock-PCuUyfZI.js";
|
|
3
|
-
import { A as Struct,
|
|
3
|
+
import { A as Struct, Q as decodeUnknownOption, k as String, t as getWalletNetworkLogo } from "./assets-DLmJ26y-.js";
|
|
4
4
|
import { J as succeed, dr as tapError, n as createConnector, s as WalletIntegrationError, t as wagmiConnectResult, zn as promise } from "./wagmi-connect-result-D2nyvWBV.js";
|
|
5
|
-
import { i as stellar } from "./configured-chains-
|
|
5
|
+
import { i as stellar } from "./configured-chains-Ddwhz0AO.js";
|
|
6
6
|
import { n as stellarConnectorType } from "./stellar-connector-meta--coNfb5X.js";
|
|
7
7
|
//#region src/services/wallet/internal/adapters/stellar/stellar-connector.ts
|
|
8
8
|
var reconnectStorageKey = "stellar.reconnect";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { N as init_dist } from "./cosmos-kit-Doo1bN3z.js";
|
|
3
3
|
import { zt as isNotUndefined } from "./Result-DZguAoRW.js";
|
|
4
4
|
import { Br as head, gi as getOrThrowWith, qr as map } from "./Clock-PCuUyfZI.js";
|
|
5
|
-
import { A as Struct, C as NullOr,
|
|
5
|
+
import { A as Struct, C as NullOr, F as TemplateLiteral, k as String$1, p as Finite, t as getWalletNetworkLogo, yt as optionalKey } from "./assets-DLmJ26y-.js";
|
|
6
6
|
import { J as succeed$1, Qt as fail, Rt as cached, _n as gen, c as WalletNotAvailableError, cr as sync, fr as tryPromise, in as flatMap, ir as succeed, n as createConnector, nn as filterOrElse, pr as try_, s as WalletIntegrationError, t as wagmiConnectResult, wn as map$1, yr as void_ } from "./wagmi-connect-result-D2nyvWBV.js";
|
|
7
7
|
import { I as hexToBytes, L as init_utils, M as concatBytes, k as bytesToHex } from "./_u64-C-W9znGE.js";
|
|
8
8
|
import { n as base58 } from "./esm-ZgeZSkDi.js";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { s as __toESM, t as __commonJSMin } from "./rolldown-runtime-D_CBzjfY.js";
|
|
3
3
|
import { I as init_dist, L as process$1, i as require_cjs } from "./cosmos-kit-Doo1bN3z.js";
|
|
4
4
|
import { Cr as toMillis, _i as getOrUndefined, n as currentTimeMillis, or as days } from "./Clock-PCuUyfZI.js";
|
|
5
|
-
import { A as Struct,
|
|
5
|
+
import { A as Struct, K as decodeEffect, Q as decodeUnknownOption, rt as fromJsonString, t as getWalletNetworkLogo, v as Literals } from "./assets-DLmJ26y-.js";
|
|
6
6
|
import { Dn as mapError, J as succeed, _n as gen, fr as tryPromise, n as createConnector, pr as try_, s as WalletIntegrationError, t as wagmiConnectResult } from "./wagmi-connect-result-D2nyvWBV.js";
|
|
7
|
-
import { a as ton } from "./configured-chains-
|
|
8
|
-
import { i as require_dist, r as unsignedTonTransactionTonConnectCodec } from "./transaction-
|
|
7
|
+
import { a as ton } from "./configured-chains-Ddwhz0AO.js";
|
|
8
|
+
import { i as require_dist, r as unsignedTonTransactionTonConnectCodec } from "./transaction-CRtu-oMo.js";
|
|
9
9
|
import { t as require_nacl_fast } from "./nacl-fast-CJlH2f5r.js";
|
|
10
10
|
import { t as configMeta } from "./ton-connector-meta-CGPcs5EJ.js";
|
|
11
11
|
import { t as require_nacl_util } from "./nacl-util-QvveK7tl.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { l as mapError, u as match } from "./Result-DZguAoRW.js";
|
|
3
|
-
import { A as Struct,
|
|
3
|
+
import { $ as decodeUnknownResult, A as Struct, B as Unknown, C as NullOr, Dt as transform, K as decodeEffect, Nt as transform$1, Pt as transformEffect, R as UndefinedOr, W as declare, X as decodeTo, _t as makeFilter, c as BigIntFromString, d as DateTimeUtcFromString, gt as isStringFinite, it as instanceOf, k as String$1, o as ArraySchema, p as Finite, rt as fromJsonString, s as BigInt$1, u as DateTimeUtc, yt as optionalKey, z as Union } from "./assets-DLmJ26y-.js";
|
|
4
4
|
import { Cn as logWarning, Ft as as, Pt as annotateLogs, ir as succeed, wn as map } from "./wagmi-connect-result-D2nyvWBV.js";
|
|
5
5
|
import { r as formatIso } from "./DateTime-BRBXj7zv.js";
|
|
6
6
|
import { Yn as hexToBigInt, dr as isHex, ir as numberToHex } from "./call-yJqbTyoO.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as __commonJSMin } from "./rolldown-runtime-D_CBzjfY.js";
|
|
3
3
|
import { N as init_dist, j as Buffer } from "./cosmos-kit-Doo1bN3z.js";
|
|
4
|
-
import { A as Struct,
|
|
4
|
+
import { A as Struct, Dt as transform, X as decodeTo, k as String$1, o as ArraySchema, p as Finite, s as BigInt$1, z as Union } from "./assets-DLmJ26y-.js";
|
|
5
5
|
import { t as require_nacl_fast } from "./nacl-fast-CJlH2f5r.js";
|
|
6
6
|
//#region ../../node_modules/.pnpm/@ton+core@0.63.1_@ton+crypto@3.3.0/node_modules/@ton/core/dist/inspect.js
|
|
7
7
|
var require_inspect = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { A as Struct, D as Record, j as StructWithRest, k as String, l as Boolean, o as ArraySchema, p as Finite,
|
|
2
|
+
import { A as Struct, B as Unknown, D as Record, j as StructWithRest, k as String, l as Boolean, o as ArraySchema, p as Finite, yt as optionalKey } from "./assets-DLmJ26y-.js";
|
|
3
3
|
//#region src/services/wallet/internal/adapters/tron/transaction.ts
|
|
4
4
|
var unsignedTronTransactionCodec = Struct({
|
|
5
5
|
raw_data: Struct({
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { n as __esmMin, o as __toCommonJS, r as __exportAll, s as __toESM, t as __commonJSMin } from "./rolldown-runtime-D_CBzjfY.js";
|
|
3
3
|
import { A as require_dist, I as init_dist$2, L as process$1, M as Buffer$1, N as init_dist$1, O as require_bn$1, j as Buffer, k as require_bs58 } from "./cosmos-kit-Doo1bN3z.js";
|
|
4
4
|
import { zt as isNotUndefined } from "./Result-DZguAoRW.js";
|
|
5
|
-
import { A as Struct$2,
|
|
5
|
+
import { A as Struct$2, k as String$1, o as ArraySchema, z as Union } from "./assets-DLmJ26y-.js";
|
|
6
6
|
import { nn as filterOrElse, wn as map } from "./wagmi-connect-result-D2nyvWBV.js";
|
|
7
7
|
import { n as sha256, t as init_sha256 } from "./sha256-B2wbfyRG.js";
|
|
8
8
|
import { n as keccak_256, t as init_sha3 } from "./sha3-BqGkc87X.js";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { r as __exportAll, s as __toESM, t as __commonJSMin } from "./rolldown-runtime-D_CBzjfY.js";
|
|
3
3
|
import { D as require_events, F as init_dist$1, I as init_dist$2, L as process$1, M as Buffer$1, N as init_dist, P as global, f as axios, j as Buffer, l as require_semver$2, o as BigNumber } from "./cosmos-kit-Doo1bN3z.js";
|
|
4
4
|
import { zt as isNotUndefined } from "./Result-DZguAoRW.js";
|
|
5
|
-
import { A as Struct,
|
|
5
|
+
import { A as Struct, Dt as transform, X as decodeTo, _ as Literal, at as is, n as getWalletTokenLogo, r as walletImages, t as getWalletNetworkLogo, z as Union } from "./assets-DLmJ26y-.js";
|
|
6
6
|
import { J as succeed, Qt as fail, _n as gen$1, c as WalletNotAvailableError, cr as sync, n as createConnector, nn as filterOrElse, s as WalletIntegrationError, t as wagmiConnectResult, wn as map } from "./wagmi-connect-result-D2nyvWBV.js";
|
|
7
7
|
import { t as eventemitter3_default } from "./eventemitter3-DQ3GPwHK.js";
|
|
8
|
-
import { o as tron } from "./configured-chains-
|
|
9
|
-
import { t as signedTronTransactionCodec } from "./transaction-
|
|
8
|
+
import { o as tron } from "./configured-chains-Ddwhz0AO.js";
|
|
9
|
+
import { t as signedTronTransactionCodec } from "./transaction-CYsojERR.js";
|
|
10
10
|
import { t as configMeta } from "./tron-connector-meta-Dy7RipKo.js";
|
|
11
11
|
import { a as randomBytes$3, c as exists$1, i as concatBytes$3, l as hash$1, n as Hash$1, o as toBytes$1, s as bytes$1, t as sha256$2 } from "./sha256-DAoS29uk.js";
|
|
12
12
|
import { t as makeWagmiConnectorEvents } from "./wagmi-connector-events-DW6Ytid-.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { a as WalletManager, d as Logger, n as wallets$1, r as wallets, t as wallets$2 } from "./cosmos-kit-Doo1bN3z.js";
|
|
3
3
|
import { Br as head, Ti as toArray, _i as getOrUndefined, li as filter, pi as fromNullishOr, xi as map, yi as isSome } from "./Clock-PCuUyfZI.js";
|
|
4
|
-
import { A as Struct,
|
|
4
|
+
import { A as Struct, L as Uint8ArrayFromBase64, Q as decodeUnknownOption, T as ObjectKeyword, Y as decodeSync, _ as Literal, a as config, c as BigIntFromString, k as String, o as ArraySchema, r as walletImages, t as getWalletNetworkLogo, tt as encodeEffect } from "./assets-DLmJ26y-.js";
|
|
5
5
|
import { Cn as logWarning, Dn as mapError, J as succeed, Kt as catch_, Pt as annotateLogs, Rn as orElseSucceed, c as WalletNotAvailableError, fr as tryPromise, in as flatMap, ln as forEach, mn as fromNullishOr$1, n as createConnector, pr as try_, s as WalletIntegrationError, t as wagmiConnectResult, wn as map$1 } from "./wagmi-connect-result-D2nyvWBV.js";
|
|
6
|
-
import { l as WalletAddress, t as configMeta } from "./cosmos-connector-meta-
|
|
6
|
+
import { l as WalletAddress, t as configMeta } from "./cosmos-connector-meta-gXG2LZJw.js";
|
|
7
7
|
import { t as makeCurrentValueStream } from "./current-value-stream-CCtb0_Iz.js";
|
|
8
8
|
import { a as require_build$1, t as require_build } from "./build-CK45Gc1n.js";
|
|
9
9
|
import { t as require_tx } from "./tx-CzyPLB17.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { Network } from "./network.js";
|
|
1
|
+
export type { Network } from "./network-name.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Networks as LegacyNetworks } from "../../generated/api/legacy-networks.js";
|
|
2
|
+
import type { Networks as YieldNetworks } from "../../generated/api/yield-networks.js";
|
|
3
|
+
/**
|
|
4
|
+
* Networks both backends declare. Types-only, so the published declarations
|
|
5
|
+
* that reference it stay free of `effect`.
|
|
6
|
+
*/
|
|
7
|
+
export type Network = Extract<LegacyNetworks, YieldNetworks>;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wallet list rules, by wallet ID: the `id` passed to `mapWalletFn`, or the
|
|
3
|
+
* EIP-6963 reverse-DNS ID for injected wallets.
|
|
4
|
+
*/
|
|
1
5
|
export type WalletPolicy = {
|
|
6
|
+
/** Shows only these wallet IDs. An empty list hides every wallet. */
|
|
2
7
|
readonly allow?: ReadonlyArray<string>;
|
|
8
|
+
/** Hides these wallet IDs, even when allowed. */
|
|
3
9
|
readonly deny?: ReadonlyArray<string>;
|
|
10
|
+
/** Lists these wallet IDs first within their group. */
|
|
4
11
|
readonly order?: ReadonlyArray<string>;
|
|
12
|
+
/** Moves wallets into named groups: wallet ID to group name. */
|
|
5
13
|
readonly groups?: Readonly<Record<string, string>>;
|
|
14
|
+
/** Lists these group names first. */
|
|
6
15
|
readonly groupOrder?: ReadonlyArray<string>;
|
|
7
16
|
};
|
|
8
17
|
type WalletIdentity = Readonly<{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Networks = "ethereum" | "ethereum-goerli" | "ethereum-holesky" | "ethereum-sepolia" | "ethereum-hoodi" | "arbitrum" | "base" | "base-sepolia" | "gnosis" | "optimism" | "polygon" | "polygon-amoy" | "starknet" | "zksync" | "linea" | "unichain" | "plume" | "monad-testnet" | "monad" | "robinhood" | "robinhood-testnet" | "arc-testnet" | "arc" | "avalanche-c" | "avalanche-c-atomic" | "avalanche-p" | "binance" | "celo" | "fantom" | "harmony" | "moonriver" | "okc" | "viction" | "core" | "sonic" | "plasma" | "katana" | "hyperevm" | "tempo" | "pharos" | "xlayer" | "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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Networks = "ethereum" | "ethereum-goerli" | "ethereum-holesky" | "ethereum-sepolia" | "ethereum-hoodi" | "arbitrum" | "base" | "base-sepolia" | "gnosis" | "optimism" | "polygon" | "polygon-amoy" | "starknet" | "zksync" | "linea" | "unichain" | "plume" | "monad-testnet" | "monad" | "robinhood" | "robinhood-testnet" | "arc-testnet" | "arc" | "avalanche-c" | "avalanche-c-atomic" | "avalanche-p" | "binance" | "celo" | "fantom" | "harmony" | "moonriver" | "okc" | "viction" | "core" | "sonic" | "plasma" | "katana" | "hyperevm" | "tempo" | "pharos" | "xlayer" | "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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BundledSKWidgetProps, SKTheme } from "./public-api/types.js";
|
|
2
|
-
export type { ActionMeta, BittensorTx, BundledSKWidgetProps, EvmTx, SKActionArguments, SKActionType, SKBorrowExternalProviders, SKBorrowMarketsScope, SKBorrowSignatureResult, SKBorrowTx, SKBorrowTxMeta, SKBorrowTxResult, SKBorrowWallet, SKCustomTranslations, SKEip712TypedData, SKExternalProviders, SKHostVariant, SKLanguage, SKNetwork, SKPreferredTokenYieldsPerNetwork, SKSignMessageResult, SKTheme, SKToken, SKTrackEvent, SKTrackingConfig, SKTrackPage, SKTransactionResult, SKTransactionType, SKTranslationTree, SKTx, SKTxMeta, SKWallet, SKWalletPolicy, SKZamaPermitMeta, SKZamaPermitResult,
|
|
2
|
+
export type { ActionMeta, BittensorTx, BundledSKWidgetProps, EvmTx, SKActionArguments, SKActionType, SKBorrowExternalProviders, SKBorrowMarketsScope, SKBorrowSignatureResult, SKBorrowTx, SKBorrowTxMeta, SKBorrowTxResult, SKBorrowWallet, SKCustomTranslations, SKEip712TypedData, SKExternalProviders, SKHostVariant, SKLanguage, SKNetwork, SKPreferredTokenYieldsPerNetwork, SKSignMessageResult, SKTheme, SKToken, SKTrackEvent, SKTrackingConfig, SKTrackPage, SKTransactionResult, SKTransactionType, SKTranslationTree, SKTx, SKTxMeta, SKWallet, SKWalletPolicy, SKZamaPermitMeta, SKZamaPermitResult, SolanaTx, SupportedSKChainIds, TonTx, TronTx, } from "./public-api/types.js";
|
|
3
3
|
export { DashboardYieldCategory, EvmChainIds, MiscChainIds, SubstrateChainIds, } from "./public-api/types.js";
|
|
4
4
|
export declare const renderSKWidget: (props: BundledSKWidgetProps & {
|
|
5
5
|
container: Element | DocumentFragment;
|
|
@@ -7,7 +7,7 @@ import type { ReactElement } from "react";
|
|
|
7
7
|
import type { HelpModalProps, SKAppProps } from "./public-api/react-types.js";
|
|
8
8
|
import type { SKTheme } from "./public-api/types.js";
|
|
9
9
|
export type { HelpModalProps, SKAppProps } from "./public-api/react-types.js";
|
|
10
|
-
export type { ActionMeta, BittensorTx, EvmTx, SKActionArguments, SKActionType, SKBorrowExternalProviders, SKBorrowMarketsScope, SKBorrowSignatureResult, SKBorrowTx, SKBorrowTxMeta, SKBorrowTxResult, SKBorrowWallet, SKCustomTranslations, SKEip712TypedData, SKExternalProviders, SKHostVariant, SKLanguage, SKNetwork, SKPreferredTokenYieldsPerNetwork, SKSignMessageResult, SKTheme, SKToken, SKTrackEvent, SKTrackingConfig, SKTrackPage, SKTransactionResult, SKTransactionType, SKTranslationTree, SKTx, SKTxMeta, SKWallet, SKWalletPolicy, SKZamaPermitMeta, SKZamaPermitResult,
|
|
10
|
+
export type { ActionMeta, BittensorTx, EvmTx, SKActionArguments, SKActionType, SKBorrowExternalProviders, SKBorrowMarketsScope, SKBorrowSignatureResult, SKBorrowTx, SKBorrowTxMeta, SKBorrowTxResult, SKBorrowWallet, SKCustomTranslations, SKEip712TypedData, SKExternalProviders, SKHostVariant, SKLanguage, SKNetwork, SKPreferredTokenYieldsPerNetwork, SKSignMessageResult, SKTheme, SKToken, SKTrackEvent, SKTrackingConfig, SKTrackPage, SKTransactionResult, SKTransactionType, SKTranslationTree, SKTx, SKTxMeta, SKWallet, SKWalletPolicy, SKZamaPermitMeta, SKZamaPermitResult, SolanaTx, SupportedSKChainIds, TonTx, TronTx, } from "./public-api/types.js";
|
|
11
11
|
export { DashboardYieldCategory, EvmChainIds, MiscChainIds, SubstrateChainIds, } from "./public-api/types.js";
|
|
12
12
|
export declare const SKApp: (props: SKAppProps) => ReactElement;
|
|
13
13
|
export declare const HelpModal: (props: HelpModalProps) => ReactElement;
|
|
@@ -7,13 +7,19 @@ type NonZerionVariant = Exclude<SKHostVariant, "zerion">;
|
|
|
7
7
|
* defeats discrimination and drops editor property completions.
|
|
8
8
|
*/
|
|
9
9
|
export type VariantProps = Readonly<{
|
|
10
|
+
/** Zerion preset. Requires `chainModal`. */
|
|
10
11
|
variant: "zerion";
|
|
12
|
+
/** Renders the host's chain selector in place of the widget's. */
|
|
11
13
|
chainModal: (args: {
|
|
14
|
+
/** Chain the connected wallet is on. */
|
|
12
15
|
selectedChainId: number;
|
|
16
|
+
/** Chains the user can switch to. */
|
|
13
17
|
chainIds: number[];
|
|
18
|
+
/** Switches the connected wallet to `chainId`. */
|
|
14
19
|
onSwitchChain: (chainId: number) => void;
|
|
15
20
|
}) => ReactNode;
|
|
16
21
|
}> | Readonly<{
|
|
22
|
+
/** Host integration preset. Defaults to `"default"`. */
|
|
17
23
|
variant: NonZerionVariant;
|
|
18
24
|
}>;
|
|
19
25
|
/** Host Configuration passed into the Application Runtime (never React children). */
|
|
@@ -35,11 +41,13 @@ export type SKAppProps = SKHostConfiguration & {
|
|
|
35
41
|
* itself and is not part of the host contract.
|
|
36
42
|
*/
|
|
37
43
|
export type HelpModalProps = {
|
|
44
|
+
/** Help content to show. */
|
|
38
45
|
modal: {
|
|
39
46
|
type: "getInTouch";
|
|
40
47
|
} | {
|
|
41
48
|
type: "whatIsStakeKit";
|
|
42
49
|
};
|
|
50
|
+
/** Element that opens the modal. Defaults to a help icon. */
|
|
43
51
|
customTrigger?: ReactNode;
|
|
44
52
|
};
|
|
45
53
|
export {};
|