@stakekit/widget 0.0.274 → 0.0.276
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 +48 -48
- 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 +70 -67
- package/dist/package/index.package.js +3972 -4165
- 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/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/select-opportunity-list-item/index.d.ts +7 -5
- package/dist/types/domain/types/stake.d.ts +3 -3
- package/dist/types/domain/types/yields.d.ts +13 -18
- package/dist/types/hooks/api/use-dashboard-yield-catalog.d.ts +2 -0
- package/dist/types/hooks/api/use-multi-yields.d.ts +6 -3
- package/dist/types/hooks/api/use-yield-opportunity/get-yield-opportunity.d.ts +5 -1
- package/dist/types/hooks/api/use-yield-providers.d.ts +13 -0
- package/dist/types/hooks/api/use-yield-summaries.d.ts +10 -7
- 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/earn-page/components/select-token-section/select-token-list-item.d.ts +1 -5
- package/dist/types/pages/details/earn-page/components/select-token-section/styles.css.d.ts +0 -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 +8 -9
- 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/details/earn-page/types.d.ts +3 -3
- package/dist/types/pages/position-details/hooks/use-unstake-machine.d.ts +7 -118
- 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 +43 -1
- 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/overview/earn-details/earn-details-formatters.d.ts +2 -0
- package/dist/types/pages-dashboard/position-details/components/position-details-stake-actions.d.ts +0 -4
- package/dist/types/providers/api/api-client-provider.d.ts +6 -22
- package/dist/types/providers/api/api-client.d.ts +6 -22
- package/dist/types/providers/ethereum/config.d.ts +4 -3
- package/dist/types/providers/settings/types.d.ts +1 -0
- package/dist/types/providers/wagmi/index.d.ts +1 -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-CibIan8y.js → basic-CpcEs1GD.js} +1 -1
- package/dist/website/assets/{basic-BVJnMIHl.js → basic-DU5w7kdv.js} +1 -1
- package/dist/website/assets/{browser--EMMYaan.js → browser-DvOBRbll.js} +1 -1
- package/dist/website/assets/{build-DFEPAT8y.js → build-Cr-Kp_EZ.js} +1 -1
- package/dist/website/assets/{build-BPw0SHWb.js → build-rt6xIlo_.js} +1 -1
- package/dist/website/assets/{cardano-connector-CbHZBb34.js → cardano-connector-Cmbkas8k.js} +2 -2
- package/dist/website/assets/{core-BSLy_t4A.js → core-BCBOJeDN.js} +2 -2
- package/dist/website/assets/{createConnector-BcHSC56W.js → createConnector-mvBxgXDZ.js} +2 -2
- package/dist/website/assets/{dist-DAbkzFAO.js → dist-D00tXgFF.js} +1 -1
- package/dist/website/assets/{dist-BRCQU1Li.js → dist-cxjMJHcC.js} +1 -1
- package/dist/website/assets/en_US-IFPOGBSL-CZkuvGib.js +1 -0
- package/dist/website/assets/{esm-FztE-O2S.js → esm-DwAVGOvO.js} +1 -1
- package/dist/website/assets/{exports-DiWzDOxG.js → exports-Bd3_9cI2.js} +1 -1
- package/dist/website/assets/index-B7bJTB96.js +2044 -0
- package/dist/website/assets/{index-E_6jknHw.css → index-Cm1198kl.css} +1 -1
- package/dist/website/assets/{index.es-D3Xa7Qme.js → index.es-pxgKNF2Q.js} +2 -2
- package/dist/website/assets/{ledger-connector-6wqonZoy.js → ledger-connector-Dl0ewoRv.js} +2 -2
- package/dist/website/assets/{receive-BN_rE1dd.js → receive-Cb9X0-X3.js} +1 -1
- package/dist/website/assets/{registry-DLj0P6dj.js → registry-qGhX95wF.js} +1 -1
- package/dist/website/assets/safe-connector-fpbcUPyE.js +1 -0
- package/dist/website/assets/{socials-C3M2JNCz.js → socials-IzpjXHEF.js} +1 -1
- package/dist/website/assets/solana-connector-DMwmOYcE.js +1 -0
- package/dist/website/assets/{substrate-connector-CCxDFYG6.js → substrate-connector-BjmH8Kfk.js} +1 -1
- package/dist/website/assets/{ton-connector-DlVKNF8w.js → ton-connector-CDdILKhA.js} +2 -2
- package/dist/website/assets/{tron-connector-C6xS9wMC.js → tron-connector-CwTP3MOd.js} +3 -3
- package/dist/website/assets/tx-B1U8yUTO.js +1 -0
- package/dist/website/assets/{wallet-manager-BxPcB4lR.js → wallet-manager-cSwSAC9E.js} +4 -4
- package/dist/website/assets/{wui-qr-code-CNh2d2fT.js → wui-qr-code-CulBm8yY.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 -21
- 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-BzV0u3lE.js +0 -1
- package/dist/website/assets/index-BIOEiLJw.js +0 -2044
- package/dist/website/assets/safe-connector-NQlNJxmf.js +0 -1
- package/dist/website/assets/solana-connector-hzwYOzto.js +0 -1
- package/dist/website/assets/tx-CXZ9mGxZ.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ExtendedYieldType,
|
|
1
|
+
import type { ExtendedYieldType, YieldBase } from "../../../domain/types/yields";
|
|
2
2
|
export type SelectedStakeData = {
|
|
3
|
-
all:
|
|
4
|
-
filtered:
|
|
3
|
+
all: YieldBase[];
|
|
4
|
+
filtered: YieldBase[];
|
|
5
5
|
groupsWithCounts: Map<ExtendedYieldType, {
|
|
6
6
|
itemsLength: number;
|
|
7
7
|
title: string;
|
|
@@ -1,79 +1,34 @@
|
|
|
1
1
|
import type { SnapshotFromStore } from "@xstate/store";
|
|
2
2
|
import { Maybe } from "purify-ts";
|
|
3
|
-
import type { TransactionVerificationMessageDto } from "../../../domain/types/transaction";
|
|
4
|
-
import type { SKWallet } from "../../../domain/types/wallet";
|
|
5
3
|
import { useExitStakeStore } from "../../../providers/exit-stake-store";
|
|
6
4
|
import type { GetMaybeJust } from "../../../types/utils";
|
|
7
5
|
export declare const useUnstakeMachine: ({ onDone }: {
|
|
8
6
|
onDone: () => void;
|
|
9
7
|
}) => [import("xstate").MachineSnapshot<{
|
|
10
8
|
error: Maybe<unknown>;
|
|
11
|
-
transactionVerificationMessageDto: Maybe<TransactionVerificationMessageDto>;
|
|
12
|
-
signedMessage: Maybe<string>;
|
|
13
9
|
data: ReturnType<() => Maybe<GetMaybeJust<SnapshotFromStore<ReturnType<typeof useExitStakeStore>>["context"]["data"]> & {
|
|
14
|
-
|
|
15
|
-
address: NonNullable<SKWallet["address"]>;
|
|
10
|
+
address: string;
|
|
16
11
|
}>>;
|
|
17
12
|
}, {
|
|
18
13
|
type: "UNSTAKE";
|
|
19
|
-
} | {
|
|
20
|
-
type: "__GET_VERIFICATION_MESSAGE__";
|
|
21
|
-
val: GetMaybeJust<ReturnType<() => Maybe<GetMaybeJust<SnapshotFromStore<ReturnType<typeof useExitStakeStore>>["context"]["data"]> & {
|
|
22
|
-
network: NonNullable<SKWallet["network"]>;
|
|
23
|
-
address: NonNullable<SKWallet["address"]>;
|
|
24
|
-
}>>>;
|
|
25
14
|
} | {
|
|
26
15
|
type: "__SUBMIT__";
|
|
27
16
|
val: GetMaybeJust<ReturnType<() => Maybe<GetMaybeJust<SnapshotFromStore<ReturnType<typeof useExitStakeStore>>["context"]["data"]> & {
|
|
28
|
-
|
|
29
|
-
address: NonNullable<SKWallet["address"]>;
|
|
17
|
+
address: string;
|
|
30
18
|
}>>>;
|
|
31
19
|
} | {
|
|
32
20
|
type: "__RESET__";
|
|
33
|
-
} | {
|
|
34
|
-
type: "__GET_VERIFICATION_MESSAGE_SUCCESS__";
|
|
35
|
-
val: TransactionVerificationMessageDto;
|
|
36
|
-
} | {
|
|
37
|
-
type: "__GET_VERIFICATION_MESSAGE_ERROR__";
|
|
38
|
-
val: unknown;
|
|
39
|
-
} | {
|
|
40
|
-
type: "CONTINUE_MESSAGE_SIGN";
|
|
41
|
-
} | {
|
|
42
|
-
type: "CANCEL_MESSAGE_SIGN";
|
|
43
|
-
} | {
|
|
44
|
-
type: "__SIGN_MESSAGE_SUCCESS__";
|
|
45
|
-
val: string;
|
|
46
|
-
} | {
|
|
47
|
-
type: "__SIGN_MESSAGE_ERROR__";
|
|
48
|
-
val: unknown;
|
|
49
21
|
} | {
|
|
50
22
|
type: "__SUBMIT_SUCCESS__";
|
|
51
23
|
} | {
|
|
52
24
|
type: "__SUBMIT_ERROR__";
|
|
53
25
|
val: unknown;
|
|
54
|
-
}, {}, "initial" | "done" | "check" |
|
|
26
|
+
}, {}, "initial" | "done" | "check" | {
|
|
55
27
|
submit: "error" | "loading";
|
|
56
|
-
} | {
|
|
57
|
-
signMessage: "error" | "loading";
|
|
58
|
-
} | {
|
|
59
|
-
getVerificationMessage: "error" | "loading";
|
|
60
28
|
}, string, import("xstate").NonReducibleUnknown, import("xstate").MetaObject, {
|
|
61
29
|
states: {
|
|
62
30
|
readonly initial: {};
|
|
63
31
|
readonly check: {};
|
|
64
|
-
readonly getVerificationMessage: {
|
|
65
|
-
states: {
|
|
66
|
-
readonly loading: {};
|
|
67
|
-
readonly error: {};
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
readonly showPopup: {};
|
|
71
|
-
readonly signMessage: {
|
|
72
|
-
states: {
|
|
73
|
-
readonly loading: {};
|
|
74
|
-
readonly error: {};
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
32
|
readonly submit: {
|
|
78
33
|
states: {
|
|
79
34
|
readonly loading: {};
|
|
@@ -84,36 +39,13 @@ export declare const useUnstakeMachine: ({ onDone }: {
|
|
|
84
39
|
};
|
|
85
40
|
}>, (event: {
|
|
86
41
|
type: "UNSTAKE";
|
|
87
|
-
} | {
|
|
88
|
-
type: "__GET_VERIFICATION_MESSAGE__";
|
|
89
|
-
val: GetMaybeJust<ReturnType<() => Maybe<GetMaybeJust<SnapshotFromStore<ReturnType<typeof useExitStakeStore>>["context"]["data"]> & {
|
|
90
|
-
network: NonNullable<SKWallet["network"]>;
|
|
91
|
-
address: NonNullable<SKWallet["address"]>;
|
|
92
|
-
}>>>;
|
|
93
42
|
} | {
|
|
94
43
|
type: "__SUBMIT__";
|
|
95
44
|
val: GetMaybeJust<ReturnType<() => Maybe<GetMaybeJust<SnapshotFromStore<ReturnType<typeof useExitStakeStore>>["context"]["data"]> & {
|
|
96
|
-
|
|
97
|
-
address: NonNullable<SKWallet["address"]>;
|
|
45
|
+
address: string;
|
|
98
46
|
}>>>;
|
|
99
47
|
} | {
|
|
100
48
|
type: "__RESET__";
|
|
101
|
-
} | {
|
|
102
|
-
type: "__GET_VERIFICATION_MESSAGE_SUCCESS__";
|
|
103
|
-
val: TransactionVerificationMessageDto;
|
|
104
|
-
} | {
|
|
105
|
-
type: "__GET_VERIFICATION_MESSAGE_ERROR__";
|
|
106
|
-
val: unknown;
|
|
107
|
-
} | {
|
|
108
|
-
type: "CONTINUE_MESSAGE_SIGN";
|
|
109
|
-
} | {
|
|
110
|
-
type: "CANCEL_MESSAGE_SIGN";
|
|
111
|
-
} | {
|
|
112
|
-
type: "__SIGN_MESSAGE_SUCCESS__";
|
|
113
|
-
val: string;
|
|
114
|
-
} | {
|
|
115
|
-
type: "__SIGN_MESSAGE_ERROR__";
|
|
116
|
-
val: unknown;
|
|
117
49
|
} | {
|
|
118
50
|
type: "__SUBMIT_SUCCESS__";
|
|
119
51
|
} | {
|
|
@@ -121,72 +53,29 @@ export declare const useUnstakeMachine: ({ onDone }: {
|
|
|
121
53
|
val: unknown;
|
|
122
54
|
}) => void, import("xstate").Actor<import("xstate").StateMachine<{
|
|
123
55
|
error: Maybe<unknown>;
|
|
124
|
-
transactionVerificationMessageDto: Maybe<TransactionVerificationMessageDto>;
|
|
125
|
-
signedMessage: Maybe<string>;
|
|
126
56
|
data: ReturnType<() => Maybe<GetMaybeJust<SnapshotFromStore<ReturnType<typeof useExitStakeStore>>["context"]["data"]> & {
|
|
127
|
-
|
|
128
|
-
address: NonNullable<SKWallet["address"]>;
|
|
57
|
+
address: string;
|
|
129
58
|
}>>;
|
|
130
59
|
}, {
|
|
131
60
|
type: "UNSTAKE";
|
|
132
|
-
} | {
|
|
133
|
-
type: "__GET_VERIFICATION_MESSAGE__";
|
|
134
|
-
val: GetMaybeJust<ReturnType<() => Maybe<GetMaybeJust<SnapshotFromStore<ReturnType<typeof useExitStakeStore>>["context"]["data"]> & {
|
|
135
|
-
network: NonNullable<SKWallet["network"]>;
|
|
136
|
-
address: NonNullable<SKWallet["address"]>;
|
|
137
|
-
}>>>;
|
|
138
61
|
} | {
|
|
139
62
|
type: "__SUBMIT__";
|
|
140
63
|
val: GetMaybeJust<ReturnType<() => Maybe<GetMaybeJust<SnapshotFromStore<ReturnType<typeof useExitStakeStore>>["context"]["data"]> & {
|
|
141
|
-
|
|
142
|
-
address: NonNullable<SKWallet["address"]>;
|
|
64
|
+
address: string;
|
|
143
65
|
}>>>;
|
|
144
66
|
} | {
|
|
145
67
|
type: "__RESET__";
|
|
146
|
-
} | {
|
|
147
|
-
type: "__GET_VERIFICATION_MESSAGE_SUCCESS__";
|
|
148
|
-
val: TransactionVerificationMessageDto;
|
|
149
|
-
} | {
|
|
150
|
-
type: "__GET_VERIFICATION_MESSAGE_ERROR__";
|
|
151
|
-
val: unknown;
|
|
152
|
-
} | {
|
|
153
|
-
type: "CONTINUE_MESSAGE_SIGN";
|
|
154
|
-
} | {
|
|
155
|
-
type: "CANCEL_MESSAGE_SIGN";
|
|
156
|
-
} | {
|
|
157
|
-
type: "__SIGN_MESSAGE_SUCCESS__";
|
|
158
|
-
val: string;
|
|
159
|
-
} | {
|
|
160
|
-
type: "__SIGN_MESSAGE_ERROR__";
|
|
161
|
-
val: unknown;
|
|
162
68
|
} | {
|
|
163
69
|
type: "__SUBMIT_SUCCESS__";
|
|
164
70
|
} | {
|
|
165
71
|
type: "__SUBMIT_ERROR__";
|
|
166
72
|
val: unknown;
|
|
167
|
-
}, {}, never, never, never, never, "initial" | "done" | "check" |
|
|
73
|
+
}, {}, never, never, never, never, "initial" | "done" | "check" | {
|
|
168
74
|
submit: "error" | "loading";
|
|
169
|
-
} | {
|
|
170
|
-
signMessage: "error" | "loading";
|
|
171
|
-
} | {
|
|
172
|
-
getVerificationMessage: "error" | "loading";
|
|
173
75
|
}, string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
174
76
|
states: {
|
|
175
77
|
readonly initial: {};
|
|
176
78
|
readonly check: {};
|
|
177
|
-
readonly getVerificationMessage: {
|
|
178
|
-
states: {
|
|
179
|
-
readonly loading: {};
|
|
180
|
-
readonly error: {};
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
readonly showPopup: {};
|
|
184
|
-
readonly signMessage: {
|
|
185
|
-
states: {
|
|
186
|
-
readonly loading: {};
|
|
187
|
-
readonly error: {};
|
|
188
|
-
};
|
|
189
|
-
};
|
|
190
79
|
readonly submit: {
|
|
191
80
|
states: {
|
|
192
81
|
readonly loading: {};
|
|
@@ -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
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PageCta } from "../../components/page-cta";
|
|
1
2
|
export declare const usePendingActionReview: () => {
|
|
2
3
|
integrationData: import("purify-ts/Maybe").Maybe<import("../../../domain/types/yields").Yield>;
|
|
3
4
|
title: import("purify-ts/Maybe").Maybe<string>;
|
|
@@ -29,4 +30,5 @@ export declare const usePendingActionReview: () => {
|
|
|
29
30
|
};
|
|
30
31
|
isGasCheckWarning: boolean;
|
|
31
32
|
gasCheckLoading: boolean;
|
|
33
|
+
cta: PageCta;
|
|
32
34
|
};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { Maybe } from "purify-ts";
|
|
2
|
+
import type { PageCta } from "../../components/page-cta";
|
|
2
3
|
export declare const useStakeReview: () => {
|
|
3
4
|
token: import("purify-ts/Maybe").Maybe<import("../../../domain/types/tokens").TokenDto>;
|
|
4
5
|
amount: string;
|
|
5
6
|
fee: string;
|
|
6
7
|
interestRate: string;
|
|
8
|
+
estimatedRewardAmounts: import("purify-ts/Maybe").Maybe<{
|
|
9
|
+
earnYearly: string;
|
|
10
|
+
earnMonthly: string;
|
|
11
|
+
}>;
|
|
7
12
|
yieldType: string;
|
|
8
13
|
rewardToken: import("purify-ts/Maybe").Maybe<{
|
|
9
14
|
logoUri: string;
|
|
@@ -42,7 +47,43 @@ export declare const useStakeReview: () => {
|
|
|
42
47
|
managementFee: Maybe<import("../types").FeesBps>;
|
|
43
48
|
performanceFee: Maybe<import("../types").FeesBps>;
|
|
44
49
|
feeConfigLoading: boolean;
|
|
45
|
-
commissionFee:
|
|
50
|
+
commissionFee: {
|
|
51
|
+
isJust(): this is import("purify-ts").AlwaysJust;
|
|
52
|
+
isNothing(): this is /*elided*/ any;
|
|
53
|
+
inspect(): string;
|
|
54
|
+
toString(): string;
|
|
55
|
+
toJSON(): never;
|
|
56
|
+
equals<T>(other: import("purify-ts/Maybe").Maybe<T>): boolean;
|
|
57
|
+
map<U>(_: (value: never) => U): import("purify-ts/Maybe").Maybe<U>;
|
|
58
|
+
ap<U>(_: import("purify-ts/Maybe").Maybe<(value: never) => U>): import("purify-ts/Maybe").Maybe<U>;
|
|
59
|
+
alt<T>(other: import("purify-ts/Maybe").Maybe<T>): import("purify-ts/Maybe").Maybe<T>;
|
|
60
|
+
altLazy<T>(other: () => import("purify-ts/Maybe").Maybe<T>): import("purify-ts/Maybe").Maybe<T>;
|
|
61
|
+
chain<U>(_: (value: never) => import("purify-ts/Maybe").Maybe<U>): import("purify-ts/Maybe").Maybe<U>;
|
|
62
|
+
chainNullable<U>(_: (value: never) => U | undefined | null | void): import("purify-ts/Maybe").Maybe<U>;
|
|
63
|
+
join<U>(this: import("purify-ts/Maybe").Maybe<import("purify-ts/Maybe").Maybe<U>>): import("purify-ts/Maybe").Maybe<U>;
|
|
64
|
+
reduce<U>(_: (accumulator: U, value: never) => U, initialValue: U): U;
|
|
65
|
+
extend<U>(_: (value: import("purify-ts/Maybe").Maybe<never>) => U): import("purify-ts/Maybe").Maybe<U>;
|
|
66
|
+
unsafeCoerce<T>(): T;
|
|
67
|
+
caseOf<U>(patterns: import("purify-ts").MaybePatterns<never, U>): U;
|
|
68
|
+
orDefault<T>(defaultValue: T): T;
|
|
69
|
+
orDefaultLazy<T>(getDefaultValue: () => T): T;
|
|
70
|
+
toList<T>(): T[];
|
|
71
|
+
mapOrDefault<U>(_: (value: never) => U, defaultValue: U): U;
|
|
72
|
+
extract(): never;
|
|
73
|
+
extractNullable(): never;
|
|
74
|
+
toEither<L, T>(left: L): import("purify-ts").Either<L, T>;
|
|
75
|
+
ifJust(_: (value: never) => any): /*elided*/ any;
|
|
76
|
+
ifNothing(effect: () => any): /*elided*/ any;
|
|
77
|
+
filter(_: (value: never) => boolean): import("purify-ts/Maybe").Maybe<never>;
|
|
78
|
+
'fantasy-land/equals': typeof this.equals;
|
|
79
|
+
'fantasy-land/map': typeof this.map;
|
|
80
|
+
'fantasy-land/ap': typeof this.ap;
|
|
81
|
+
'fantasy-land/alt': typeof this.alt;
|
|
82
|
+
'fantasy-land/chain': typeof this.chain;
|
|
83
|
+
'fantasy-land/reduce': typeof this.reduce;
|
|
84
|
+
'fantasy-land/extend': typeof this.extend;
|
|
85
|
+
'fantasy-land/filter': typeof this.filter;
|
|
86
|
+
};
|
|
46
87
|
kycGate: {
|
|
47
88
|
state: "start_kyc";
|
|
48
89
|
kycUrl?: string;
|
|
@@ -66,4 +107,5 @@ export declare const useStakeReview: () => {
|
|
|
66
107
|
kycProviderName: string | null;
|
|
67
108
|
kycStatusIsChecking: boolean;
|
|
68
109
|
onKycStatusRefresh: () => Promise<import("@tanstack/react-query").QueryObserverResult<import("../../../generated/api/yield").KycStatusResponseDto, Error>>;
|
|
110
|
+
cta: PageCta;
|
|
69
111
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Maybe } from "purify-ts";
|
|
2
|
+
import type { PageCta } from "../../components/page-cta";
|
|
2
3
|
export declare const useUnstakeActionReview: () => {
|
|
3
4
|
integrationData: import("purify-ts/Maybe").Maybe<import("../../../domain/types/yields").Yield>;
|
|
4
5
|
title: Maybe<string>;
|
|
@@ -55,4 +56,5 @@ export declare const useUnstakeActionReview: () => {
|
|
|
55
56
|
kycProviderName: string | null;
|
|
56
57
|
kycStatusIsChecking: boolean;
|
|
57
58
|
onKycStatusRefresh: () => Promise<import("@tanstack/react-query").QueryObserverResult<import("../../../generated/api/yield").KycStatusResponseDto, Error>>;
|
|
59
|
+
cta: PageCta;
|
|
58
60
|
};
|
|
@@ -3,6 +3,7 @@ import type { ComponentProps, ReactNode } from "react";
|
|
|
3
3
|
import type { RewardTokenDetails } from "../../../../components/molecules/reward-token-details";
|
|
4
4
|
import type { TokenDto, YieldTokenDto } from "../../../../domain/types/tokens";
|
|
5
5
|
import { MetaInfo } from "../../../components/meta-info";
|
|
6
|
+
import { type PageCta } from "../../../components/page-cta";
|
|
6
7
|
import type { FeesBps } from "../../types";
|
|
7
8
|
import ReviewTopSection from "./components/review-top-section";
|
|
8
9
|
export type MetaInfoProps = {
|
|
@@ -19,6 +20,10 @@ type ReviewPageProps = {
|
|
|
19
20
|
metadata: ComponentProps<typeof ReviewTopSection>["metadata"];
|
|
20
21
|
info: ReactNode;
|
|
21
22
|
rewardTokenDetailsProps: Maybe<ComponentProps<typeof RewardTokenDetails>>;
|
|
23
|
+
estimatedRewardAmounts?: Maybe<{
|
|
24
|
+
earnYearly: string;
|
|
25
|
+
earnMonthly: string;
|
|
26
|
+
}>;
|
|
22
27
|
isGasCheckError: boolean;
|
|
23
28
|
loading?: boolean;
|
|
24
29
|
depositFee: Maybe<FeesBps>;
|
|
@@ -27,6 +32,7 @@ type ReviewPageProps = {
|
|
|
27
32
|
commissionFee: Maybe<string>;
|
|
28
33
|
notice?: ReactNode;
|
|
29
34
|
feeConfigLoading?: boolean;
|
|
35
|
+
cta: PageCta;
|
|
30
36
|
} & MetaInfoProps;
|
|
31
|
-
export declare const ReviewPage: ({ fee, title, token, metadata, info, rewardTokenDetailsProps, isGasCheckError, loading, depositFee, managementFee, performanceFee, feeConfigLoading, commissionFee, notice, ...rest }: ReviewPageProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare const ReviewPage: ({ fee, title, token, metadata, info, rewardTokenDetailsProps, estimatedRewardAmounts, isGasCheckError, loading, depositFee, managementFee, performanceFee, feeConfigLoading, commissionFee, notice, cta, ...rest }: ReviewPageProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
38
|
export {};
|
|
@@ -9,6 +9,10 @@ type Props = {
|
|
|
9
9
|
metadata: Maybe<ComponentProps<typeof TokenIcon>["metadata"]>;
|
|
10
10
|
info: ReactNode;
|
|
11
11
|
rewardTokenDetailsProps?: Maybe<ComponentProps<typeof RewardTokenDetails>>;
|
|
12
|
+
estimatedRewardAmounts?: Maybe<{
|
|
13
|
+
earnYearly: string;
|
|
14
|
+
earnMonthly: string;
|
|
15
|
+
}>;
|
|
12
16
|
};
|
|
13
|
-
declare const ReviewTopSection: ({ title, token, metadata, info, rewardTokenDetailsProps, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare const ReviewTopSection: ({ title, token, metadata, info, rewardTokenDetailsProps, estimatedRewardAmounts, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
18
|
export default ReviewTopSection;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ActionDto } from "../../../domain/types/action";
|
|
2
2
|
import type { TokenDto, YieldTokenDto } from "../../../domain/types/tokens";
|
|
3
3
|
import type { useProvidersDetails } from "../../../hooks/use-provider-details";
|
|
4
|
+
import type { PageCta } from "../../components/page-cta";
|
|
4
5
|
export declare const useSteps: ({ inputToken, session, onSignSuccess, providersDetails, }: {
|
|
5
6
|
onSignSuccess?: () => void;
|
|
6
7
|
session: ActionDto;
|
|
@@ -20,6 +21,7 @@ export declare const useSteps: ({ inputToken, session, onSignSuccess, providersD
|
|
|
20
21
|
done: boolean;
|
|
21
22
|
};
|
|
22
23
|
}[];
|
|
24
|
+
cta: PageCta;
|
|
23
25
|
};
|
|
24
26
|
export declare enum TxStateEnum {
|
|
25
27
|
SIGN_IDLE = 0,
|
|
@@ -5,6 +5,7 @@ export declare const formatNetworkName: (network: string) => string;
|
|
|
5
5
|
export declare const formatDisplayTokenSymbol: (yieldDto: Yield) => string;
|
|
6
6
|
export declare const formatRewardRateLabel: (yieldDto: Yield, t: TFunction) => string;
|
|
7
7
|
export declare const formatRewardRate: (effectiveRewardRate: ReturnType<typeof getEffectiveYieldRewardRateDetails>, yieldDto: Yield) => string | null;
|
|
8
|
+
export declare const formatMinStakeLabel: (yieldDto: Yield, t: TFunction) => string;
|
|
8
9
|
export declare const formatMinStake: (yieldDto: Yield, t: TFunction) => {
|
|
9
10
|
kpiPrimaryEligible: boolean;
|
|
10
11
|
value: string;
|
|
@@ -16,6 +17,7 @@ export declare const formatProviderStatus: (status: string | null | undefined) =
|
|
|
16
17
|
export declare const formatProviderWebsite: (website: string) => string;
|
|
17
18
|
export declare const formatProviderWebsiteHref: (website: string) => string;
|
|
18
19
|
export declare const formatRewardTokenLabel: (yieldDto: Yield) => string;
|
|
20
|
+
export declare const formatPricePerShare: (yieldDto: Yield) => string | null;
|
|
19
21
|
export declare const formatCooldownDays: (days: number, t: TFunction) => string;
|
|
20
22
|
export declare const formatRewardClaiming: (yieldDto: Yield, t: TFunction) => string;
|
|
21
23
|
export declare const formatOptionalDays: (days: number | undefined, t: TFunction) => string | null;
|
package/dist/types/pages-dashboard/position-details/components/position-details-stake-actions.d.ts
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
export declare const shouldInitializePositionDetailsStakeState: ({ positionYieldId, selectedEarnYieldId, }: {
|
|
2
|
-
positionYieldId: string | null;
|
|
3
|
-
selectedEarnYieldId: string | null;
|
|
4
|
-
}) => boolean;
|
|
5
1
|
export declare const PositionDetailsStakeActions: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -25,20 +25,15 @@ export declare const useApiClient: () => {
|
|
|
25
25
|
readonly payload: import("../../generated/api/legacy").TokenControllerTokenBalancesScanRequestJson;
|
|
26
26
|
readonly config?: import("../../generated/api/legacy").OperationConfig | undefined;
|
|
27
27
|
}) => Promise<import("../../generated/api/legacy").TokenControllerTokenBalancesScan200>;
|
|
28
|
-
|
|
29
|
-
readonly params?: import("../../generated/api/legacy").
|
|
30
|
-
readonly payload: import("../../generated/api/legacy").TransactionControllerGetTransactionVerificationMessageForNetworkRequestJson;
|
|
28
|
+
YieldControllerGetMyNetworks: (options: {
|
|
29
|
+
readonly params?: import("../../generated/api/legacy").YieldControllerGetMyNetworksParams | undefined;
|
|
31
30
|
readonly config?: import("../../generated/api/legacy").OperationConfig | undefined;
|
|
32
|
-
}) => Promise<import("../../generated/api/legacy").
|
|
31
|
+
} | undefined) => Promise<import("../../generated/api/legacy").YieldControllerGetMyNetworksdefault>;
|
|
33
32
|
YieldControllerGetSingleYieldRewardsSummary: (integrationId: string, options: {
|
|
34
33
|
readonly params?: import("../../generated/api/legacy").YieldControllerGetSingleYieldRewardsSummaryParams | undefined;
|
|
35
34
|
readonly payload: import("../../generated/api/legacy").YieldControllerGetSingleYieldRewardsSummaryRequestJson;
|
|
36
35
|
readonly config?: import("../../generated/api/legacy").OperationConfig | undefined;
|
|
37
36
|
}) => Promise<import("../../generated/api/legacy").YieldRewardsSummaryResponseDto>;
|
|
38
|
-
YieldControllerYieldOpportunity: (integrationId: string, options: {
|
|
39
|
-
readonly params?: import("../../generated/api/legacy").YieldControllerYieldOpportunityParams | undefined;
|
|
40
|
-
readonly config?: import("../../generated/api/legacy").OperationConfig | undefined;
|
|
41
|
-
} | undefined) => Promise<import("../../generated/api/legacy").YieldDto>;
|
|
42
37
|
};
|
|
43
38
|
yield: {
|
|
44
39
|
ActionsControllerEnterYield: (options: {
|
|
@@ -64,9 +59,6 @@ export declare const useApiClient: () => {
|
|
|
64
59
|
readonly params: import("../../generated/api/yield").KycControllerGetStatusParams;
|
|
65
60
|
readonly config?: import("../../generated/api/yield").OperationConfig | undefined;
|
|
66
61
|
}) => Promise<import("../../generated/api/yield").KycStatusResponseDto>;
|
|
67
|
-
NetworksControllerGetNetworks: (options: {
|
|
68
|
-
readonly config?: import("../../generated/api/yield").OperationConfig | undefined;
|
|
69
|
-
} | undefined) => Promise<import("../../generated/api/yield").NetworksControllerGetNetworks200>;
|
|
70
62
|
ProvidersControllerGetProvider: (providerId: string, options: {
|
|
71
63
|
readonly config?: import("../../generated/api/yield").OperationConfig | undefined;
|
|
72
64
|
} | undefined) => Promise<import("../../generated/api/yield").ProviderDto>;
|
|
@@ -130,20 +122,15 @@ export declare const useApiClient: () => {
|
|
|
130
122
|
readonly payload: import("../../generated/api/legacy").TokenControllerTokenBalancesScanRequestJson;
|
|
131
123
|
readonly config?: import("../../generated/api/legacy").OperationConfig | undefined;
|
|
132
124
|
}) => Promise<import("../../generated/api/legacy").TokenControllerTokenBalancesScan200>;
|
|
133
|
-
|
|
134
|
-
readonly params?: import("../../generated/api/legacy").
|
|
135
|
-
readonly payload: import("../../generated/api/legacy").TransactionControllerGetTransactionVerificationMessageForNetworkRequestJson;
|
|
125
|
+
YieldControllerGetMyNetworks: (options: {
|
|
126
|
+
readonly params?: import("../../generated/api/legacy").YieldControllerGetMyNetworksParams | undefined;
|
|
136
127
|
readonly config?: import("../../generated/api/legacy").OperationConfig | undefined;
|
|
137
|
-
}) => Promise<import("../../generated/api/legacy").
|
|
128
|
+
} | undefined) => Promise<import("../../generated/api/legacy").YieldControllerGetMyNetworksdefault>;
|
|
138
129
|
YieldControllerGetSingleYieldRewardsSummary: (integrationId: string, options: {
|
|
139
130
|
readonly params?: import("../../generated/api/legacy").YieldControllerGetSingleYieldRewardsSummaryParams | undefined;
|
|
140
131
|
readonly payload: import("../../generated/api/legacy").YieldControllerGetSingleYieldRewardsSummaryRequestJson;
|
|
141
132
|
readonly config?: import("../../generated/api/legacy").OperationConfig | undefined;
|
|
142
133
|
}) => Promise<import("../../generated/api/legacy").YieldRewardsSummaryResponseDto>;
|
|
143
|
-
YieldControllerYieldOpportunity: (integrationId: string, options: {
|
|
144
|
-
readonly params?: import("../../generated/api/legacy").YieldControllerYieldOpportunityParams | undefined;
|
|
145
|
-
readonly config?: import("../../generated/api/legacy").OperationConfig | undefined;
|
|
146
|
-
} | undefined) => Promise<import("../../generated/api/legacy").YieldDto>;
|
|
147
134
|
};
|
|
148
135
|
yield: {
|
|
149
136
|
ActionsControllerEnterYield: (options: {
|
|
@@ -169,9 +156,6 @@ export declare const useApiClient: () => {
|
|
|
169
156
|
readonly params: import("../../generated/api/yield").KycControllerGetStatusParams;
|
|
170
157
|
readonly config?: import("../../generated/api/yield").OperationConfig | undefined;
|
|
171
158
|
}) => Promise<import("../../generated/api/yield").KycStatusResponseDto>;
|
|
172
|
-
NetworksControllerGetNetworks: (options: {
|
|
173
|
-
readonly config?: import("../../generated/api/yield").OperationConfig | undefined;
|
|
174
|
-
} | undefined) => Promise<import("../../generated/api/yield").NetworksControllerGetNetworks200>;
|
|
175
159
|
ProvidersControllerGetProvider: (providerId: string, options: {
|
|
176
160
|
readonly config?: import("../../generated/api/yield").OperationConfig | undefined;
|
|
177
161
|
} | undefined) => Promise<import("../../generated/api/yield").ProviderDto>;
|
|
@@ -31,20 +31,15 @@ export declare const createApiClient: ({ apiKey, baseUrl, yieldsApiUrl, }: Widge
|
|
|
31
31
|
readonly payload: LegacyApi.TokenControllerTokenBalancesScanRequestJson;
|
|
32
32
|
readonly config?: LegacyApi.OperationConfig | undefined;
|
|
33
33
|
}) => Promise<LegacyApi.TokenControllerTokenBalancesScan200>;
|
|
34
|
-
|
|
35
|
-
readonly params?: LegacyApi.
|
|
36
|
-
readonly payload: LegacyApi.TransactionControllerGetTransactionVerificationMessageForNetworkRequestJson;
|
|
34
|
+
YieldControllerGetMyNetworks: (options: {
|
|
35
|
+
readonly params?: LegacyApi.YieldControllerGetMyNetworksParams | undefined;
|
|
37
36
|
readonly config?: LegacyApi.OperationConfig | undefined;
|
|
38
|
-
}) => Promise<LegacyApi.
|
|
37
|
+
} | undefined) => Promise<LegacyApi.YieldControllerGetMyNetworksdefault>;
|
|
39
38
|
YieldControllerGetSingleYieldRewardsSummary: (integrationId: string, options: {
|
|
40
39
|
readonly params?: LegacyApi.YieldControllerGetSingleYieldRewardsSummaryParams | undefined;
|
|
41
40
|
readonly payload: LegacyApi.YieldControllerGetSingleYieldRewardsSummaryRequestJson;
|
|
42
41
|
readonly config?: LegacyApi.OperationConfig | undefined;
|
|
43
42
|
}) => Promise<LegacyApi.YieldRewardsSummaryResponseDto>;
|
|
44
|
-
YieldControllerYieldOpportunity: (integrationId: string, options: {
|
|
45
|
-
readonly params?: LegacyApi.YieldControllerYieldOpportunityParams | undefined;
|
|
46
|
-
readonly config?: LegacyApi.OperationConfig | undefined;
|
|
47
|
-
} | undefined) => Promise<LegacyApi.YieldDto>;
|
|
48
43
|
};
|
|
49
44
|
yield: {
|
|
50
45
|
ActionsControllerEnterYield: (options: {
|
|
@@ -70,9 +65,6 @@ export declare const createApiClient: ({ apiKey, baseUrl, yieldsApiUrl, }: Widge
|
|
|
70
65
|
readonly params: YieldApi.KycControllerGetStatusParams;
|
|
71
66
|
readonly config?: YieldApi.OperationConfig | undefined;
|
|
72
67
|
}) => Promise<YieldApi.KycStatusResponseDto>;
|
|
73
|
-
NetworksControllerGetNetworks: (options: {
|
|
74
|
-
readonly config?: YieldApi.OperationConfig | undefined;
|
|
75
|
-
} | undefined) => Promise<YieldApi.NetworksControllerGetNetworks200>;
|
|
76
68
|
ProvidersControllerGetProvider: (providerId: string, options: {
|
|
77
69
|
readonly config?: YieldApi.OperationConfig | undefined;
|
|
78
70
|
} | undefined) => Promise<YieldApi.ProviderDto>;
|
|
@@ -136,20 +128,15 @@ export declare const createApiClient: ({ apiKey, baseUrl, yieldsApiUrl, }: Widge
|
|
|
136
128
|
readonly payload: LegacyApi.TokenControllerTokenBalancesScanRequestJson;
|
|
137
129
|
readonly config?: LegacyApi.OperationConfig | undefined;
|
|
138
130
|
}) => Promise<LegacyApi.TokenControllerTokenBalancesScan200>;
|
|
139
|
-
|
|
140
|
-
readonly params?: LegacyApi.
|
|
141
|
-
readonly payload: LegacyApi.TransactionControllerGetTransactionVerificationMessageForNetworkRequestJson;
|
|
131
|
+
YieldControllerGetMyNetworks: (options: {
|
|
132
|
+
readonly params?: LegacyApi.YieldControllerGetMyNetworksParams | undefined;
|
|
142
133
|
readonly config?: LegacyApi.OperationConfig | undefined;
|
|
143
|
-
}) => Promise<LegacyApi.
|
|
134
|
+
} | undefined) => Promise<LegacyApi.YieldControllerGetMyNetworksdefault>;
|
|
144
135
|
YieldControllerGetSingleYieldRewardsSummary: (integrationId: string, options: {
|
|
145
136
|
readonly params?: LegacyApi.YieldControllerGetSingleYieldRewardsSummaryParams | undefined;
|
|
146
137
|
readonly payload: LegacyApi.YieldControllerGetSingleYieldRewardsSummaryRequestJson;
|
|
147
138
|
readonly config?: LegacyApi.OperationConfig | undefined;
|
|
148
139
|
}) => Promise<LegacyApi.YieldRewardsSummaryResponseDto>;
|
|
149
|
-
YieldControllerYieldOpportunity: (integrationId: string, options: {
|
|
150
|
-
readonly params?: LegacyApi.YieldControllerYieldOpportunityParams | undefined;
|
|
151
|
-
readonly config?: LegacyApi.OperationConfig | undefined;
|
|
152
|
-
} | undefined) => Promise<LegacyApi.YieldDto>;
|
|
153
140
|
};
|
|
154
141
|
yield: {
|
|
155
142
|
ActionsControllerEnterYield: (options: {
|
|
@@ -175,9 +162,6 @@ export declare const createApiClient: ({ apiKey, baseUrl, yieldsApiUrl, }: Widge
|
|
|
175
162
|
readonly params: YieldApi.KycControllerGetStatusParams;
|
|
176
163
|
readonly config?: YieldApi.OperationConfig | undefined;
|
|
177
164
|
}) => Promise<YieldApi.KycStatusResponseDto>;
|
|
178
|
-
NetworksControllerGetNetworks: (options: {
|
|
179
|
-
readonly config?: YieldApi.OperationConfig | undefined;
|
|
180
|
-
} | undefined) => Promise<YieldApi.NetworksControllerGetNetworks200>;
|
|
181
165
|
ProvidersControllerGetProvider: (providerId: string, options: {
|
|
182
166
|
readonly config?: YieldApi.OperationConfig | undefined;
|
|
183
167
|
} | undefined) => Promise<YieldApi.ProviderDto>;
|
|
@@ -5,21 +5,22 @@ import { type EvmChainsMap } from "../../domain/types/chains/evm";
|
|
|
5
5
|
import type { ApiClient } from "../api/api-client";
|
|
6
6
|
import type { VariantProps } from "../settings/types";
|
|
7
7
|
import { createFineryWallets } from "./finery-wallet-list";
|
|
8
|
-
declare const queryFn: ({ apiClient, queryClient, forceWalletConnectOnly, variant, }: {
|
|
8
|
+
declare const queryFn: ({ apiClient, queryClient, forceWalletConnectOnly, institutionalWallets, variant, }: {
|
|
9
9
|
apiClient: ApiClient;
|
|
10
10
|
queryClient: QueryClient;
|
|
11
11
|
forceWalletConnectOnly: boolean;
|
|
12
|
+
institutionalWallets: boolean;
|
|
12
13
|
variant: VariantProps["variant"];
|
|
13
14
|
}) => Promise<{
|
|
14
15
|
evmChainsMap: Partial<EvmChainsMap>;
|
|
15
16
|
evmChains: Chain[];
|
|
16
17
|
connector: Maybe<WalletList[number]>;
|
|
17
|
-
|
|
18
|
+
institutionalWallets: ReturnType<typeof createFineryWallets> | null;
|
|
18
19
|
}>;
|
|
19
20
|
export declare const getConfig: (opts: Parameters<typeof queryFn>[0]) => EitherAsync<Error, {
|
|
20
21
|
evmChainsMap: Partial<EvmChainsMap>;
|
|
21
22
|
evmChains: Chain[];
|
|
22
23
|
connector: Maybe<WalletList[number]>;
|
|
23
|
-
|
|
24
|
+
institutionalWallets: ReturnType<typeof createFineryWallets> | null;
|
|
24
25
|
}>;
|
|
25
26
|
export {};
|
|
@@ -74,6 +74,7 @@ export type SettingsProps = {
|
|
|
74
74
|
tokenIconMapping?: Record<TokenDto["symbol"], string> | ((token: TokenDto) => string);
|
|
75
75
|
chainIconMapping?: Record<SupportedSKChains, string> | ((chain: SupportedSKChains) => string);
|
|
76
76
|
dashboardVariant?: boolean;
|
|
77
|
+
institutionalWallets?: boolean;
|
|
77
78
|
hideChainSelector?: boolean;
|
|
78
79
|
hideAccountAndChainSelector?: boolean;
|
|
79
80
|
preferredTokenYieldsPerNetwork?: PreferredTokenYieldsPerNetwork;
|
|
@@ -34,6 +34,7 @@ declare const buildWagmiConfig: (opts: {
|
|
|
34
34
|
isLedgerLive: boolean;
|
|
35
35
|
isSafe: boolean;
|
|
36
36
|
chainIconMapping: SettingsProps["chainIconMapping"];
|
|
37
|
+
institutionalWallets: boolean;
|
|
37
38
|
variant: VariantProps["variant"];
|
|
38
39
|
solanaWallets: SolanaWallet[];
|
|
39
40
|
solanaConnection: Connection;
|
|
@@ -274,6 +274,7 @@ export declare const localResources: {
|
|
|
274
274
|
tvl: string;
|
|
275
275
|
risk: string;
|
|
276
276
|
min_stake: string;
|
|
277
|
+
minimum_subscription: string;
|
|
277
278
|
status: string;
|
|
278
279
|
active: string;
|
|
279
280
|
kyc: string;
|
|
@@ -288,6 +289,7 @@ export declare const localResources: {
|
|
|
288
289
|
network: string;
|
|
289
290
|
provider: string;
|
|
290
291
|
reward_token: string;
|
|
292
|
+
price_per_share: string;
|
|
291
293
|
type: string;
|
|
292
294
|
reward_schedule: string;
|
|
293
295
|
cooldown: string;
|
|
@@ -1591,6 +1593,7 @@ export declare const localResources: {
|
|
|
1591
1593
|
tvl: string;
|
|
1592
1594
|
risk: string;
|
|
1593
1595
|
min_stake: string;
|
|
1596
|
+
minimum_subscription: string;
|
|
1594
1597
|
status: string;
|
|
1595
1598
|
active: string;
|
|
1596
1599
|
kyc: string;
|
|
@@ -1605,6 +1608,7 @@ export declare const localResources: {
|
|
|
1605
1608
|
network: string;
|
|
1606
1609
|
provider: string;
|
|
1607
1610
|
reward_token: string;
|
|
1611
|
+
price_per_share: string;
|
|
1608
1612
|
type: string;
|
|
1609
1613
|
reward_schedule: string;
|
|
1610
1614
|
cooldown: string;
|
|
@@ -23,4 +23,5 @@ export declare const getFeesInUSD: ({ amount, prices, token, }: {
|
|
|
23
23
|
}) => string;
|
|
24
24
|
export declare const formatCompactNumber: (value: string | number | null | undefined) => string;
|
|
25
25
|
export declare const formatCompactUsd: (value: string | number | null | undefined) => string;
|
|
26
|
+
export declare const humanizePendingActionType: (type: string) => string;
|
|
26
27
|
export declare const capitalizeFirstLetters: (text: string) => string;
|
|
@@ -3,7 +3,6 @@ import type { Networks } from "../domain/types/chains/networks";
|
|
|
3
3
|
export declare const formatNumber: (number: string | BigNumber | number, decimals?: number) => string;
|
|
4
4
|
export declare const defaultFormattedNumber: (number: string | BigNumber | number) => string;
|
|
5
5
|
export declare const APToPercentage: (ap: number) => string;
|
|
6
|
-
export declare const getBackgroundColor: (stringInput: string) => string;
|
|
7
6
|
export declare const isIframe: () => boolean;
|
|
8
7
|
export declare const isLedgerDappBrowserProvider: () => boolean;
|
|
9
8
|
export declare const getNetworkLogo: (network: Networks) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{H as e,U as t,W as n}from"./createConnector-mvBxgXDZ.js";var r=e=>e,i={LT:`LT`,EQ:`EQ`,GT:`GT`},a=(e,t)=>e>t?i.GT:e<t?i.LT:i.EQ,o=e=>{switch(e){case i.LT:return-1;case i.EQ:return 0;case i.GT:return 1}},s=(e,t)=>typeof t==`bigint`?t.toString():t,c=e=>typeof e==`object`&&!!e&&!Array.isArray(e),l=(e,t)=>{let n=``;switch(typeof t){case`undefined`:n=`undefined`;break;case`object`:n=t===null?`null`:Array.isArray(t)?`an array with value `+JSON.stringify(t,s):`an object with value `+JSON.stringify(t,s);break;case`boolean`:n=`a boolean`;break;case`symbol`:n=`a symbol`;break;case`function`:n=`a function`;break;case`bigint`:n=`a bigint with value ${t.toString()}`}return n||=`a ${typeof t} with value ${JSON.stringify(t,s)}`,`Expected ${e}, but received ${n}`},u=e=>(Object.keys(e).length===1&&e.oneOf?.length===1&&typeof e.oneOf[0]==`object`&&(Object.assign(e,e.oneOf[0]),delete e.oneOf),e),d=e=>{if(Array.isArray(e.oneOf))for(let t=0;t<e.oneOf.length;t++){let n=e.oneOf[t];if(typeof n==`object`&&n.oneOf)return e.oneOf.splice(t,1),e.oneOf.push(...n.oneOf),f(e)}return e},f=e=>(d(e),u(e),e),p={interface(e){let r=Object.keys(e),i=i=>{if(!c(i))return t(l(`an object`,i));let a={};for(let n of r){if(!Object.prototype.hasOwnProperty.call(i,n)&&!e[n]._isOptional)return t(`Problem with property "${n}": it does not exist in received object ${JSON.stringify(i,s)}`);let r=e[n].decode(i[n]);if(r.isLeft())return t(`Problem with the value of property "${n}": ${r.extract()}`);let o=r.extract();o!==void 0&&(a[n]=o)}return n(a)};return{decode:i,encode:t=>{let n={};for(let i of r)n[i]=e[i].encode(t[i]);return n},unsafeDecode:e=>i(e).mapLeft(Error).unsafeCoerce(),schema:()=>r.reduce((t,n)=>(e[n]._isOptional||t.required.push(n),t.properties[n]=f(e[n].schema()),t),{type:`object`,properties:{},required:[]})}},custom({decode:e,encode:t,schema:n}){return{decode:e,encode:t,unsafeDecode:t=>e(t).mapLeft(Error).unsafeCoerce(),schema:n??(()=>({}))}}},m=p.custom({decode:e=>typeof e==`string`?n(e):t(l(`a string`,e)),encode:r,schema:()=>({type:`string`})}),h=p.custom({decode:e=>typeof e==`number`?n(e):t(l(`a number`,e)),encode:r,schema:()=>({type:`number`})});p.custom({decode:e=>e===null?n(e):t(l(`a null`,e)),encode:r,schema:()=>({type:`null`})});var g=p.custom({decode:e=>e===void 0?n(e):t(l(`an undefined`,e)),encode:r}),_=e=>({...b([e,g]),schema:e.schema,_isOptional:!0}),v=p.custom({decode:e=>typeof e==`boolean`?n(e):t(l(`a boolean`,e)),encode:r,schema:()=>({type:`boolean`})}),y=p.custom({decode:n,encode:r,schema:()=>({})}),b=n=>p.custom({decode:e=>{let r=[];for(let t of n){let n=t.decode(e);if(n.isRight())return n;r.push(n.extract())}return t(`One of the following problems occured: ${r.map((e,t)=>`(${t}) ${e}`).join(`, `)}`)},encode:t=>{for(let r of n)if(e.encase(()=>r.encode(t)).mapLeft(e=>``).chain(r.decode).isRight())return r.encode(t);return t},schema:()=>({oneOf:n.map(e=>e.schema())})}),x=e=>p.custom({decode:r=>{if(Array.isArray(r)){let i=[];for(let n=0;n<r.length;n++){let a=e.decode(r[n]);if(a.isRight())i.push(a.extract());else return t(`Problem with the value at index ${n}: ${a.extract()}`)}return n(i)}else return t(l(`an array`,r))},encode:t=>t.map(e.encode),schema:()=>({type:`array`,items:e.schema()})}),S=p.custom({decode:e=>m.decode(e).chain(r=>isFinite(+r)?n(r):t(l(`a number`,e))),encode:r,schema:h.schema}),C=(e,r)=>p.custom({decode:i=>{let a={},o=e===h?S:e;if(!c(i))return t(l(`an object`,i));for(let e of Object.keys(i))if(Object.prototype.hasOwnProperty.call(i,e)){let n=o.decode(e),s=r.decode(i[e]);if(n.isRight()&&s.isRight())a[n.extract()]=s.extract();else if(n.isLeft())return t(`Problem with key type of property "${e}": ${n.extract()}`);else if(s.isLeft())return t(`Problem with the value of property "${e}": ${s.extract()}`)}return n(a)},encode:t=>{let n={};for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[e.encode(i)]=r.encode(t[i]));return n},schema:()=>({type:`object`,additionalProperties:r.schema()})});p.custom({decode:e=>m.decode(e).mapLeft(e=>`Problem with date string: ${e}`).chain(e=>Number.isNaN(Date.parse(e))?t(`Expected a valid date string, but received a string that cannot be parsed`):n(new Date(e))),encode:e=>e.toISOString(),schema:()=>({type:`string`,format:`date-time`})});export{b as a,m as c,o as d,h as i,y as l,x as n,_ as o,v as r,C as s,p as t,a as u};
|