@stakekit/widget 0.0.1

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.
Files changed (160) hide show
  1. package/dist/package/bundle/assets/fees.png +0 -0
  2. package/dist/package/bundle/assets/powered-by.png +0 -0
  3. package/dist/package/bundle/assets/what-is-deposit.png +0 -0
  4. package/dist/package/bundle/assets/what-is-lending.png +0 -0
  5. package/dist/package/bundle/assets/what-is-liquid-staking.png +0 -0
  6. package/dist/package/bundle/assets/what-is-staking.png +0 -0
  7. package/dist/package/bundle/index.bundle.css +2 -0
  8. package/dist/package/bundle/index.bundle.css.map +7 -0
  9. package/dist/package/bundle/index.bundle.js +1119 -0
  10. package/dist/package/bundle/index.bundle.js.map +7 -0
  11. package/dist/package/chunk-USBWYVY2.js +1953 -0
  12. package/dist/package/chunk-USBWYVY2.js.map +7 -0
  13. package/dist/package/index.package.css +3746 -0
  14. package/dist/package/index.package.css.map +7 -0
  15. package/dist/package/index.package.js +22541 -0
  16. package/dist/package/index.package.js.map +7 -0
  17. package/dist/package/polyfills.js +2 -0
  18. package/dist/package/polyfills.js.map +7 -0
  19. package/dist/package/types/src/App.d.ts +15 -0
  20. package/dist/package/types/src/components/atoms/box/index.d.ts +133 -0
  21. package/dist/package/types/src/components/atoms/button/button.d.ts +8 -0
  22. package/dist/package/types/src/components/atoms/button/index.d.ts +1 -0
  23. package/dist/package/types/src/components/atoms/button/styles.css.d.ts +48 -0
  24. package/dist/package/types/src/components/atoms/divider/index.d.ts +4 -0
  25. package/dist/package/types/src/components/atoms/highlight/index.d.ts +6 -0
  26. package/dist/package/types/src/components/atoms/icons/arrows-left-right.d.ts +1 -0
  27. package/dist/package/types/src/components/atoms/icons/caret-down.d.ts +1 -0
  28. package/dist/package/types/src/components/atoms/icons/caret-left.d.ts +1 -0
  29. package/dist/package/types/src/components/atoms/icons/check-circle.d.ts +4 -0
  30. package/dist/package/types/src/components/atoms/icons/check-disabled.d.ts +1 -0
  31. package/dist/package/types/src/components/atoms/icons/check-steps.d.ts +3 -0
  32. package/dist/package/types/src/components/atoms/icons/check.d.ts +4 -0
  33. package/dist/package/types/src/components/atoms/icons/circle-notch.d.ts +1 -0
  34. package/dist/package/types/src/components/atoms/icons/clock-clock-wise.d.ts +1 -0
  35. package/dist/package/types/src/components/atoms/icons/gift.d.ts +1 -0
  36. package/dist/package/types/src/components/atoms/icons/help.d.ts +1 -0
  37. package/dist/package/types/src/components/atoms/icons/index.d.ts +11 -0
  38. package/dist/package/types/src/components/atoms/icons/search.d.ts +1 -0
  39. package/dist/package/types/src/components/atoms/icons/x-icon.d.ts +4 -0
  40. package/dist/package/types/src/components/atoms/image/index.d.ts +6 -0
  41. package/dist/package/types/src/components/atoms/number-input/index.d.ts +8 -0
  42. package/dist/package/types/src/components/atoms/number-input/styles.css.d.ts +3 -0
  43. package/dist/package/types/src/components/atoms/number-input/use-auto-resize-text.d.ts +6 -0
  44. package/dist/package/types/src/components/atoms/select-modal/index.d.ts +17 -0
  45. package/dist/package/types/src/components/atoms/select-modal/styles.css.d.ts +7 -0
  46. package/dist/package/types/src/components/atoms/spinner/index.d.ts +5 -0
  47. package/dist/package/types/src/components/atoms/spinner/style.css.d.ts +8 -0
  48. package/dist/package/types/src/components/atoms/token-icon/index.d.ts +8 -0
  49. package/dist/package/types/src/components/atoms/token-icon/style.css.d.ts +1 -0
  50. package/dist/package/types/src/components/atoms/typography/heading.d.ts +279 -0
  51. package/dist/package/types/src/components/atoms/typography/index.d.ts +2 -0
  52. package/dist/package/types/src/components/atoms/typography/styles.css.d.ts +76 -0
  53. package/dist/package/types/src/components/atoms/typography/text.d.ts +8 -0
  54. package/dist/package/types/src/components/index.d.ts +10 -0
  55. package/dist/package/types/src/components/molecules/header/header.d.ts +1 -0
  56. package/dist/package/types/src/components/molecules/header/index.d.ts +1 -0
  57. package/dist/package/types/src/components/molecules/header/styles.css.d.ts +3 -0
  58. package/dist/package/types/src/components/molecules/help-modal/index.d.ts +7 -0
  59. package/dist/package/types/src/components/molecules/help-modal/style.css.d.ts +2 -0
  60. package/dist/package/types/src/components/molecules/reward-token-details/index.d.ts +4 -0
  61. package/dist/package/types/src/components/molecules/reward-token-details/style.css.d.ts +1 -0
  62. package/dist/package/types/src/config/index.d.ts +16 -0
  63. package/dist/package/types/src/domain/index.d.ts +36 -0
  64. package/dist/package/types/src/domain/types/index.d.ts +4 -0
  65. package/dist/package/types/src/domain/types/price.d.ts +6 -0
  66. package/dist/package/types/src/domain/types/tokens.d.ts +2 -0
  67. package/dist/package/types/src/domain/types/wallet.d.ts +25 -0
  68. package/dist/package/types/src/domain/types/yields.d.ts +7 -0
  69. package/dist/package/types/src/hooks/api/use-account-balance.d.ts +5 -0
  70. package/dist/package/types/src/hooks/api/use-filtered-opportunities.d.ts +3 -0
  71. package/dist/package/types/src/hooks/api/use-network-gas.d.ts +4 -0
  72. package/dist/package/types/src/hooks/api/use-opportunities.d.ts +2 -0
  73. package/dist/package/types/src/hooks/api/use-prices.d.ts +4 -0
  74. package/dist/package/types/src/hooks/api/use-selected-stake-price.d.ts +6 -0
  75. package/dist/package/types/src/hooks/api/use-stake-enter-and-txs-construct.d.ts +8 -0
  76. package/dist/package/types/src/hooks/index.d.ts +6 -0
  77. package/dist/package/types/src/hooks/use-color-scheme.d.ts +1 -0
  78. package/dist/package/types/src/hooks/use-debounce.d.ts +1 -0
  79. package/dist/package/types/src/hooks/use-location-transition-animation/index.d.ts +5 -0
  80. package/dist/package/types/src/hooks/use-location-transition-animation/style.css.d.ts +2 -0
  81. package/dist/package/types/src/hooks/use-logout.d.ts +1 -0
  82. package/dist/package/types/src/hooks/use-previous.d.ts +1 -0
  83. package/dist/package/types/src/hooks/use-reset-app.d.ts +1 -0
  84. package/dist/package/types/src/hooks/use-root-element.d.ts +1 -0
  85. package/dist/package/types/src/hooks/use-saved-ref.d.ts +2 -0
  86. package/dist/package/types/src/hooks/use-shared-mutation.d.ts +2 -0
  87. package/dist/package/types/src/hooks/use-sk-wallet.d.ts +2 -0
  88. package/dist/package/types/src/hooks/use-toggle-theme.d.ts +1 -0
  89. package/dist/package/types/src/hooks/use-webview-connect-machine.d.ts +72 -0
  90. package/dist/package/types/src/index.bundle.d.ts +2 -0
  91. package/dist/package/types/src/index.package.d.ts +3 -0
  92. package/dist/package/types/src/main.d.ts +1 -0
  93. package/dist/package/types/src/pages/complete/index.d.ts +1 -0
  94. package/dist/package/types/src/pages/complete/use-complete.d.ts +13 -0
  95. package/dist/package/types/src/pages/components/index.d.ts +2 -0
  96. package/dist/package/types/src/pages/components/layout/index.d.ts +6 -0
  97. package/dist/package/types/src/pages/components/layout/style.css.d.ts +1 -0
  98. package/dist/package/types/src/pages/components/page-container.d.ts +2 -0
  99. package/dist/package/types/src/pages/details/components/footer.d.ts +5 -0
  100. package/dist/package/types/src/pages/details/components/select-opportunity.d.ts +12 -0
  101. package/dist/package/types/src/pages/details/components/select-validator.d.ts +7 -0
  102. package/dist/package/types/src/pages/details/components/styles.css.d.ts +4 -0
  103. package/dist/package/types/src/pages/details/index.d.ts +1 -0
  104. package/dist/package/types/src/pages/details/style.css.d.ts +6 -0
  105. package/dist/package/types/src/pages/details/types.d.ts +9 -0
  106. package/dist/package/types/src/pages/details/use-details.d.ts +46 -0
  107. package/dist/package/types/src/pages/index.d.ts +5 -0
  108. package/dist/package/types/src/pages/positions/index.d.ts +1 -0
  109. package/dist/package/types/src/pages/positions/styles.css.d.ts +4 -0
  110. package/dist/package/types/src/pages/positions/use-positions.d.ts +17 -0
  111. package/dist/package/types/src/pages/review/index.d.ts +1 -0
  112. package/dist/package/types/src/pages/review/style.css.d.ts +2 -0
  113. package/dist/package/types/src/pages/review/use-review.d.ts +16 -0
  114. package/dist/package/types/src/pages/steps/errors.d.ts +18 -0
  115. package/dist/package/types/src/pages/steps/index.d.ts +1 -0
  116. package/dist/package/types/src/pages/steps/styles.css.d.ts +5 -0
  117. package/dist/package/types/src/pages/steps/types.d.ts +14 -0
  118. package/dist/package/types/src/pages/steps/use-steps-machine.d.ts +344 -0
  119. package/dist/package/types/src/pages/steps/use-steps.d.ts +17 -0
  120. package/dist/package/types/src/polyfills.d.ts +1 -0
  121. package/dist/package/types/src/providers/cosmos/config.d.ts +303 -0
  122. package/dist/package/types/src/providers/cosmos/provider.d.ts +2 -0
  123. package/dist/package/types/src/providers/cosmos/wallet-connect/chain-wallet.d.ts +5 -0
  124. package/dist/package/types/src/providers/cosmos/wallet-connect/client.d.ts +3 -0
  125. package/dist/package/types/src/providers/cosmos/wallet-connect/index.d.ts +3 -0
  126. package/dist/package/types/src/providers/cosmos/wallet-connect/main-wallet.d.ts +5 -0
  127. package/dist/package/types/src/providers/cosmos/wallet-connect/registry.d.ts +2 -0
  128. package/dist/package/types/src/providers/ethereum/config.d.ts +6 -0
  129. package/dist/package/types/src/providers/ethereum/provider.d.ts +2 -0
  130. package/dist/package/types/src/providers/index.d.ts +2 -0
  131. package/dist/package/types/src/providers/rainbow-kit.d.ts +5 -0
  132. package/dist/package/types/src/providers/settings.d.ts +10 -0
  133. package/dist/package/types/src/providers/theme-wrapper.d.ts +8 -0
  134. package/dist/package/types/src/providers/wagmi/index.d.ts +7 -0
  135. package/dist/package/types/src/services/query-client.d.ts +2 -0
  136. package/dist/package/types/src/state/app-state.d.ts +7 -0
  137. package/dist/package/types/src/state/derived-app-state.d.ts +18 -0
  138. package/dist/package/types/src/state/index.d.ts +2 -0
  139. package/dist/package/types/src/state/types.d.ts +34 -0
  140. package/dist/package/types/src/style.css.d.ts +1 -0
  141. package/dist/package/types/src/styles/index.d.ts +1 -0
  142. package/dist/package/types/src/styles/theme/atoms.css.d.ts +124 -0
  143. package/dist/package/types/src/styles/theme/contract.css.d.ts +668 -0
  144. package/dist/package/types/src/styles/theme/global.css.d.ts +1 -0
  145. package/dist/package/types/src/styles/theme/index.d.ts +2 -0
  146. package/dist/package/types/src/styles/theme/properties.d.ts +472 -0
  147. package/dist/package/types/src/styles/tokens/breakpoints.d.ts +7 -0
  148. package/dist/package/types/src/styles/tokens/colors.d.ts +52 -0
  149. package/dist/package/types/src/styles/tokens/fonts.d.ts +6 -0
  150. package/dist/package/types/src/styles/tokens/radii.d.ts +17 -0
  151. package/dist/package/types/src/styles/tokens/space.d.ts +31 -0
  152. package/dist/package/types/src/styles/tokens/typography.d.ts +77 -0
  153. package/dist/package/types/src/styles/tokens/z-indices.d.ts +13 -0
  154. package/dist/package/types/src/translation/index.d.ts +103 -0
  155. package/dist/package/types/src/types/index.d.ts +1 -0
  156. package/dist/package/types/src/types/utils.d.ts +5 -0
  157. package/dist/package/types/src/types/window.d.ts +10 -0
  158. package/dist/package/types/src/utils/index.d.ts +5 -0
  159. package/dist/package/types/src/utils/mappers.d.ts +9 -0
  160. package/package.json +119 -0
@@ -0,0 +1 @@
1
+ export declare const useToggleTheme: () => void;
@@ -0,0 +1,72 @@
1
+ import { $$t } from "@cassiozen/usestatemachine/dist/types";
2
+ export declare const useWebViewConnectMachine: () => [state: {
3
+ value: "connect";
4
+ context: {
5
+ timeoutId: number | null;
6
+ };
7
+ event: import("@cassiozen/usestatemachine/dist/types").Machine.EntryEventForStateValue<{
8
+ schema: {
9
+ context: {
10
+ [$$t]: {
11
+ timeoutId: number | null;
12
+ };
13
+ };
14
+ };
15
+ initial: "connect";
16
+ context: {
17
+ timeoutId: null;
18
+ };
19
+ states: {
20
+ connect: {
21
+ on: {
22
+ DONE: "done";
23
+ };
24
+ effect: unknown;
25
+ };
26
+ done: {
27
+ on: {
28
+ CONNECT: "connect";
29
+ };
30
+ effect: unknown;
31
+ };
32
+ };
33
+ }, "connect">;
34
+ nextEventsT: "DONE"[];
35
+ nextEvents: ("DONE" | "CONNECT")[];
36
+ } | {
37
+ value: "done";
38
+ context: {
39
+ timeoutId: number | null;
40
+ };
41
+ event: {
42
+ type: "DONE";
43
+ };
44
+ nextEventsT: "CONNECT"[];
45
+ nextEvents: ("DONE" | "CONNECT")[];
46
+ }, send: import("@cassiozen/usestatemachine/dist/types").Machine.Send<{
47
+ schema: {
48
+ context: {
49
+ [$$t]: {
50
+ timeoutId: number | null;
51
+ };
52
+ };
53
+ };
54
+ initial: "connect";
55
+ context: {
56
+ timeoutId: null;
57
+ };
58
+ states: {
59
+ connect: {
60
+ on: {
61
+ DONE: "done";
62
+ };
63
+ effect: unknown;
64
+ };
65
+ done: {
66
+ on: {
67
+ CONNECT: "connect";
68
+ };
69
+ effect: unknown;
70
+ };
71
+ };
72
+ }>];
@@ -0,0 +1,2 @@
1
+ export { renderSKWidget } from "./App";
2
+ export { darkTheme, lightTheme } from "./styles";
@@ -0,0 +1,3 @@
1
+ export { SKApp } from "./App";
2
+ export { wagmiConfigObj } from "./providers/wagmi";
3
+ export { darkTheme, lightTheme } from "./styles";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare const CompletePage: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ export declare const useComplete: () => {
2
+ network: string;
3
+ amount: string;
4
+ token: import("@stakekit/api-hooks").TokenDto | null;
5
+ rewardTokenDetails: {
6
+ logoUri: string | null;
7
+ symbol: string | null;
8
+ providerName: string | null;
9
+ } | null;
10
+ metadata: import("@stakekit/api-hooks").YieldMetadataDto | null;
11
+ onClick: () => void;
12
+ onViewTransactionClick: () => void;
13
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./layout";
2
+ export * from "./page-container";
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export type OutletContext = [
3
+ string,
4
+ React.Dispatch<React.SetStateAction<string>>
5
+ ];
6
+ export declare const Layout: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const container: string;
@@ -0,0 +1,2 @@
1
+ import { PropsWithChildren } from "react";
2
+ export declare const PageContainer: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ type FooterProps = {
2
+ description: string | null;
3
+ };
4
+ export declare const Footer: ({ description }: FooterProps) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,12 @@
1
+ import { Maybe } from "purify-ts";
2
+ import { State } from "../../../state/types";
3
+ import { SelectedStakeData } from "../types";
4
+ import { SelectModalProps } from "../../../components";
5
+ import { YieldOpportunityDto } from "@stakekit/api-hooks";
6
+ export declare const SelectOpportunity: ({ selectedStake, selectedStakeData, onSearch, onItemSelect, onSelectOpportunityClose, }: {
7
+ selectedStake: State["selectedStake"];
8
+ selectedStakeData: Maybe<SelectedStakeData>;
9
+ onSearch: SelectModalProps["onSearch"];
10
+ onItemSelect: (item: YieldOpportunityDto) => void;
11
+ onSelectOpportunityClose: () => void;
12
+ }) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,7 @@
1
+ import { Maybe } from "purify-ts";
2
+ import { ValidatorDto } from "@stakekit/api-hooks";
3
+ export declare const SelectValidator: ({ validators, selectedValidator, onValidatorSelect, }: {
4
+ validators: ValidatorDto[] | undefined;
5
+ selectedValidator: Maybe<ValidatorDto>;
6
+ onValidatorSelect: (item: ValidatorDto) => void;
7
+ }) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ export declare const selectItemText: string;
2
+ export declare const triggerStyles: string;
3
+ export declare const validatorVirtuosoContainer: string;
4
+ export declare const hideScrollbar: string;
@@ -0,0 +1 @@
1
+ export declare const Details: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export declare const tokenLogo: string;
2
+ export declare const breakWord: string;
3
+ export declare const modalItemNameContainer: string;
4
+ export declare const defaultColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
5
+ export declare const defaultColorContainer: string;
6
+ export declare const validatorSelectContainer: string;
@@ -0,0 +1,9 @@
1
+ import { YieldOpportunityDto } from "@stakekit/api-hooks";
2
+ import { yieldTypesMap } from "../../domain/types";
3
+ export type SelectedStakeData = {
4
+ [Key in keyof typeof yieldTypesMap]: {
5
+ type: Key;
6
+ title: (typeof yieldTypesMap)[Key]["title"];
7
+ items: YieldOpportunityDto[];
8
+ };
9
+ };
@@ -0,0 +1,46 @@
1
+ import BigNumber from "bignumber.js";
2
+ import { Maybe } from "purify-ts";
3
+ import { ValidatorDto, YieldOpportunityDto } from "@stakekit/api-hooks";
4
+ import { SelectedStakeData } from "./types";
5
+ export declare const useDetails: () => {
6
+ availableTokens: string;
7
+ formattedPrice: string;
8
+ symbol: string;
9
+ selectedStakeData: Maybe<SelectedStakeData>;
10
+ selectedStake: Maybe<YieldOpportunityDto>;
11
+ onItemSelect: (item: YieldOpportunityDto) => void;
12
+ onStakeAmountChange: (value: Maybe<BigNumber>) => void;
13
+ estimatedRewards: Maybe<{
14
+ percentage: string;
15
+ yearly: string;
16
+ monthly: string;
17
+ }>;
18
+ yieldType: string;
19
+ onMaxClick: () => void;
20
+ stakeAmount: Maybe<BigNumber>;
21
+ isFetching: boolean;
22
+ accountBalanceIsFetching: boolean;
23
+ isOverLimit: boolean;
24
+ isBellowLimit: boolean;
25
+ buttonDisabled: boolean;
26
+ onClick: () => void;
27
+ footerItems: {
28
+ description: null;
29
+ } | {
30
+ description: string;
31
+ };
32
+ onSearch: (value: string) => void;
33
+ validators: ValidatorDto[] | undefined;
34
+ onValidatorSelect: (item: ValidatorDto) => void;
35
+ selectedValidator: Maybe<ValidatorDto>;
36
+ isError: boolean;
37
+ buttonText: string;
38
+ rewardToken: Maybe<{
39
+ logoUri: string | null;
40
+ symbol: string | null;
41
+ providerName: string | null;
42
+ }>;
43
+ onSelectOpportunityClose: () => void;
44
+ onStakeEnterIsLoading: boolean;
45
+ selectedStakeYieldType: "staking" | "liquid-staking" | "lending" | "vault" | null;
46
+ };
@@ -0,0 +1,5 @@
1
+ export * from "./complete";
2
+ export * from "./details";
3
+ export * from "./review";
4
+ export * from "./steps";
5
+ export * from "./components";
@@ -0,0 +1 @@
1
+ export declare const Positions: () => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ export declare const divider: string;
2
+ export declare const mainContainer: string;
3
+ export declare const topTableContainer: string;
4
+ export declare const tableGrid: string;
@@ -0,0 +1,17 @@
1
+ export declare const usePositions: () => {
2
+ isLoading: boolean;
3
+ tableData: {
4
+ type: import("@stakekit/api-hooks").BalanceTypes;
5
+ amount: string;
6
+ date?: string | undefined;
7
+ pricePerShare: string;
8
+ pendingActions: import("@stakekit/api-hooks").PendingActionDto[];
9
+ token: import("@stakekit/api-hooks").TokenDto;
10
+ validatorAddress?: string | undefined;
11
+ addresses: import("@stakekit/api-hooks").AddressesDto;
12
+ args?: import("@stakekit/api-hooks").ValidatorAddressesDto | undefined;
13
+ integrationId: string;
14
+ balances: import("@stakekit/api-hooks").YieldBalanceDto[];
15
+ }[] | undefined;
16
+ dataMap: Map<string, import("@stakekit/api-hooks").YieldOpportunityDto> | null;
17
+ };
@@ -0,0 +1 @@
1
+ export declare const ReviewPage: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare const spanStyle: string;
2
+ export declare const feeStyles: string;
@@ -0,0 +1,16 @@
1
+ import { Maybe } from "purify-ts";
2
+ export declare const useReview: () => {
3
+ tokenNetwork: string;
4
+ amount: string;
5
+ interestRate: string;
6
+ fee: string;
7
+ token: import("@stakekit/api-hooks").TokenDto | null;
8
+ yieldType: string;
9
+ onClick: () => void;
10
+ rewardToken: Maybe<{
11
+ logoUri: string | null;
12
+ symbol: string | null;
13
+ providerName: string | null;
14
+ }>;
15
+ metadata: import("@stakekit/api-hooks").YieldMetadataDto | null;
16
+ };
@@ -0,0 +1,18 @@
1
+ export declare class SendTransactionError extends Error {
2
+ name: string;
3
+ }
4
+ export declare class SubmitError extends Error {
5
+ name: string;
6
+ }
7
+ export declare class GetStakeSessionError extends Error {
8
+ name: string;
9
+ }
10
+ export declare class TransactionConstructError extends Error {
11
+ name: string;
12
+ }
13
+ export declare class MissingHashError extends Error {
14
+ name: string;
15
+ }
16
+ export declare class TransactionDecodeError extends Error {
17
+ name: string;
18
+ }
@@ -0,0 +1 @@
1
+ export declare const StepsPage: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare const stepsAfter: string;
2
+ export declare const stepsAfterMuted: string;
3
+ export declare const stepsBefore: string;
4
+ export declare const stepsBeforeMuted: string;
5
+ export declare const halfOpacityAfter: string;
@@ -0,0 +1,14 @@
1
+ import { Codec, GetType } from "purify-ts";
2
+ export declare const unsignedTransactionCodec: Codec<{
3
+ data: `0x${string}`;
4
+ to: string;
5
+ gasLimit: bigint;
6
+ from: string;
7
+ value: bigint | undefined;
8
+ nonce: number;
9
+ type: number;
10
+ maxFeePerGas: bigint | undefined;
11
+ maxPriorityFeePerGas: bigint | undefined;
12
+ chainId: number;
13
+ }>;
14
+ export type UnsignedTransaction = GetType<typeof unsignedTransactionCodec>;
@@ -0,0 +1,344 @@
1
+ import { $$t } from "@cassiozen/usestatemachine/dist/types";
2
+ import { GetStakeSessionError, SendTransactionError, SubmitError } from "./errors";
3
+ export declare const useStepsMachine: () => [state: {
4
+ value: "idle";
5
+ context: {
6
+ signError: Error | GetStakeSessionError | SendTransactionError | SubmitError | null;
7
+ txCheckError: GetStakeSessionError | null;
8
+ txCheckTimeoutId: number | null;
9
+ urls: string[];
10
+ };
11
+ event: {
12
+ type: "$$initial";
13
+ };
14
+ nextEventsT: "START"[];
15
+ nextEvents: ("START" | "SIGN_RETRY" | "SIGN_SUCCESS" | "TX_CHECK_RETRY" | "SIGN_ERROR" | "TX_CHECK_SUCCESS" | "TX_CHECK_ERROR")[];
16
+ } | {
17
+ value: "done";
18
+ context: {
19
+ signError: Error | GetStakeSessionError | SendTransactionError | SubmitError | null;
20
+ txCheckError: GetStakeSessionError | null;
21
+ txCheckTimeoutId: number | null;
22
+ urls: string[];
23
+ };
24
+ event: {
25
+ type: "TX_CHECK_SUCCESS";
26
+ };
27
+ nextEventsT: never[];
28
+ nextEvents: ("START" | "SIGN_RETRY" | "SIGN_SUCCESS" | "TX_CHECK_RETRY" | "SIGN_ERROR" | "TX_CHECK_SUCCESS" | "TX_CHECK_ERROR")[];
29
+ } | {
30
+ value: "signLoading";
31
+ context: {
32
+ signError: Error | GetStakeSessionError | SendTransactionError | SubmitError | null;
33
+ txCheckError: GetStakeSessionError | null;
34
+ txCheckTimeoutId: number | null;
35
+ urls: string[];
36
+ };
37
+ event: import("@cassiozen/usestatemachine/dist/types").Machine.EntryEventForStateValue<{
38
+ initial: "idle";
39
+ schema: {
40
+ context: {
41
+ [$$t]: {
42
+ signError: Error | GetStakeSessionError | SendTransactionError | SubmitError | null;
43
+ txCheckError: GetStakeSessionError | null;
44
+ txCheckTimeoutId: number | null;
45
+ urls: string[];
46
+ };
47
+ };
48
+ events: {
49
+ START: {
50
+ [$$t]: {
51
+ id: string;
52
+ };
53
+ };
54
+ SIGN_RETRY: {
55
+ [$$t]: {
56
+ id: string;
57
+ };
58
+ };
59
+ SIGN_SUCCESS: {
60
+ [$$t]: {
61
+ id: string;
62
+ };
63
+ };
64
+ RETRY: {
65
+ [$$t]: {
66
+ id: string;
67
+ };
68
+ };
69
+ TX_CHECK_RETRY: {
70
+ [$$t]: {
71
+ id: string;
72
+ };
73
+ };
74
+ };
75
+ };
76
+ context: {
77
+ signError: null;
78
+ txCheckError: null;
79
+ txCheckTimeoutId: null;
80
+ urls: never[];
81
+ };
82
+ states: {
83
+ idle: {
84
+ on: {
85
+ START: "signLoading";
86
+ };
87
+ };
88
+ signLoading: {
89
+ on: {
90
+ SIGN_SUCCESS: "txCheckLoading";
91
+ SIGN_ERROR: "signError";
92
+ };
93
+ effect: unknown;
94
+ };
95
+ signError: {
96
+ on: {
97
+ SIGN_RETRY: "signLoading";
98
+ };
99
+ };
100
+ txCheckLoading: {
101
+ on: {
102
+ TX_CHECK_SUCCESS: "done";
103
+ TX_CHECK_ERROR: "txCheckError";
104
+ TX_CHECK_RETRY: "txCheckRetry";
105
+ };
106
+ effect: unknown;
107
+ };
108
+ txCheckRetry: {
109
+ on: {
110
+ TX_CHECK_RETRY: "txCheckLoading";
111
+ };
112
+ effect: unknown;
113
+ };
114
+ txCheckError: {
115
+ on: {
116
+ TX_CHECK_RETRY: "txCheckLoading";
117
+ };
118
+ };
119
+ done: {};
120
+ };
121
+ }, "signLoading">;
122
+ nextEventsT: ("SIGN_SUCCESS" | "SIGN_ERROR")[];
123
+ nextEvents: ("START" | "SIGN_RETRY" | "SIGN_SUCCESS" | "TX_CHECK_RETRY" | "SIGN_ERROR" | "TX_CHECK_SUCCESS" | "TX_CHECK_ERROR")[];
124
+ } | {
125
+ value: "txCheckLoading";
126
+ context: {
127
+ signError: Error | GetStakeSessionError | SendTransactionError | SubmitError | null;
128
+ txCheckError: GetStakeSessionError | null;
129
+ txCheckTimeoutId: number | null;
130
+ urls: string[];
131
+ };
132
+ event: import("@cassiozen/usestatemachine/dist/types").Machine.EntryEventForStateValue<{
133
+ initial: "idle";
134
+ schema: {
135
+ context: {
136
+ [$$t]: {
137
+ signError: Error | GetStakeSessionError | SendTransactionError | SubmitError | null;
138
+ txCheckError: GetStakeSessionError | null;
139
+ txCheckTimeoutId: number | null;
140
+ urls: string[];
141
+ };
142
+ };
143
+ events: {
144
+ START: {
145
+ [$$t]: {
146
+ id: string;
147
+ };
148
+ };
149
+ SIGN_RETRY: {
150
+ [$$t]: {
151
+ id: string;
152
+ };
153
+ };
154
+ SIGN_SUCCESS: {
155
+ [$$t]: {
156
+ id: string;
157
+ };
158
+ };
159
+ RETRY: {
160
+ [$$t]: {
161
+ id: string;
162
+ };
163
+ };
164
+ TX_CHECK_RETRY: {
165
+ [$$t]: {
166
+ id: string;
167
+ };
168
+ };
169
+ };
170
+ };
171
+ context: {
172
+ signError: null;
173
+ txCheckError: null;
174
+ txCheckTimeoutId: null;
175
+ urls: never[];
176
+ };
177
+ states: {
178
+ idle: {
179
+ on: {
180
+ START: "signLoading";
181
+ };
182
+ };
183
+ signLoading: {
184
+ on: {
185
+ SIGN_SUCCESS: "txCheckLoading";
186
+ SIGN_ERROR: "signError";
187
+ };
188
+ effect: unknown;
189
+ };
190
+ signError: {
191
+ on: {
192
+ SIGN_RETRY: "signLoading";
193
+ };
194
+ };
195
+ txCheckLoading: {
196
+ on: {
197
+ TX_CHECK_SUCCESS: "done";
198
+ TX_CHECK_ERROR: "txCheckError";
199
+ TX_CHECK_RETRY: "txCheckRetry";
200
+ };
201
+ effect: unknown;
202
+ };
203
+ txCheckRetry: {
204
+ on: {
205
+ TX_CHECK_RETRY: "txCheckLoading";
206
+ };
207
+ effect: unknown;
208
+ };
209
+ txCheckError: {
210
+ on: {
211
+ TX_CHECK_RETRY: "txCheckLoading";
212
+ };
213
+ };
214
+ done: {};
215
+ };
216
+ }, "txCheckLoading">;
217
+ nextEventsT: ("TX_CHECK_RETRY" | "TX_CHECK_SUCCESS" | "TX_CHECK_ERROR")[];
218
+ nextEvents: ("START" | "SIGN_RETRY" | "SIGN_SUCCESS" | "TX_CHECK_RETRY" | "SIGN_ERROR" | "TX_CHECK_SUCCESS" | "TX_CHECK_ERROR")[];
219
+ } | {
220
+ value: "signError";
221
+ context: {
222
+ signError: Error | GetStakeSessionError | SendTransactionError | SubmitError | null;
223
+ txCheckError: GetStakeSessionError | null;
224
+ txCheckTimeoutId: number | null;
225
+ urls: string[];
226
+ };
227
+ event: {
228
+ type: "SIGN_ERROR";
229
+ };
230
+ nextEventsT: "SIGN_RETRY"[];
231
+ nextEvents: ("START" | "SIGN_RETRY" | "SIGN_SUCCESS" | "TX_CHECK_RETRY" | "SIGN_ERROR" | "TX_CHECK_SUCCESS" | "TX_CHECK_ERROR")[];
232
+ } | {
233
+ value: "txCheckError";
234
+ context: {
235
+ signError: Error | GetStakeSessionError | SendTransactionError | SubmitError | null;
236
+ txCheckError: GetStakeSessionError | null;
237
+ txCheckTimeoutId: number | null;
238
+ urls: string[];
239
+ };
240
+ event: {
241
+ type: "TX_CHECK_ERROR";
242
+ };
243
+ nextEventsT: "TX_CHECK_RETRY"[];
244
+ nextEvents: ("START" | "SIGN_RETRY" | "SIGN_SUCCESS" | "TX_CHECK_RETRY" | "SIGN_ERROR" | "TX_CHECK_SUCCESS" | "TX_CHECK_ERROR")[];
245
+ } | {
246
+ value: "txCheckRetry";
247
+ context: {
248
+ signError: Error | GetStakeSessionError | SendTransactionError | SubmitError | null;
249
+ txCheckError: GetStakeSessionError | null;
250
+ txCheckTimeoutId: number | null;
251
+ urls: string[];
252
+ };
253
+ event: import("@cassiozen/usestatemachine/dist/types").O.ShallowClean<{
254
+ type: "TX_CHECK_RETRY";
255
+ } & {
256
+ id: string;
257
+ }>;
258
+ nextEventsT: "TX_CHECK_RETRY"[];
259
+ nextEvents: ("START" | "SIGN_RETRY" | "SIGN_SUCCESS" | "TX_CHECK_RETRY" | "SIGN_ERROR" | "TX_CHECK_SUCCESS" | "TX_CHECK_ERROR")[];
260
+ }, send: import("@cassiozen/usestatemachine/dist/types").Machine.Send<{
261
+ initial: "idle";
262
+ schema: {
263
+ context: {
264
+ [$$t]: {
265
+ signError: Error | GetStakeSessionError | SendTransactionError | SubmitError | null;
266
+ txCheckError: GetStakeSessionError | null;
267
+ txCheckTimeoutId: number | null;
268
+ urls: string[];
269
+ };
270
+ };
271
+ events: {
272
+ START: {
273
+ [$$t]: {
274
+ id: string;
275
+ };
276
+ };
277
+ SIGN_RETRY: {
278
+ [$$t]: {
279
+ id: string;
280
+ };
281
+ };
282
+ SIGN_SUCCESS: {
283
+ [$$t]: {
284
+ id: string;
285
+ };
286
+ };
287
+ RETRY: {
288
+ [$$t]: {
289
+ id: string;
290
+ };
291
+ };
292
+ TX_CHECK_RETRY: {
293
+ [$$t]: {
294
+ id: string;
295
+ };
296
+ };
297
+ };
298
+ };
299
+ context: {
300
+ signError: null;
301
+ txCheckError: null;
302
+ txCheckTimeoutId: null;
303
+ urls: never[];
304
+ };
305
+ states: {
306
+ idle: {
307
+ on: {
308
+ START: "signLoading";
309
+ };
310
+ };
311
+ signLoading: {
312
+ on: {
313
+ SIGN_SUCCESS: "txCheckLoading";
314
+ SIGN_ERROR: "signError";
315
+ };
316
+ effect: unknown;
317
+ };
318
+ signError: {
319
+ on: {
320
+ SIGN_RETRY: "signLoading";
321
+ };
322
+ };
323
+ txCheckLoading: {
324
+ on: {
325
+ TX_CHECK_SUCCESS: "done";
326
+ TX_CHECK_ERROR: "txCheckError";
327
+ TX_CHECK_RETRY: "txCheckRetry";
328
+ };
329
+ effect: unknown;
330
+ };
331
+ txCheckRetry: {
332
+ on: {
333
+ TX_CHECK_RETRY: "txCheckLoading";
334
+ };
335
+ effect: unknown;
336
+ };
337
+ txCheckError: {
338
+ on: {
339
+ TX_CHECK_RETRY: "txCheckLoading";
340
+ };
341
+ };
342
+ done: {};
343
+ };
344
+ }>];