@mintmoney/react 0.1.0-alpha.14 → 0.1.0-alpha.21

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 (129) hide show
  1. package/dist/css/styles.css +17 -4
  2. package/dist/esm/api/generated.js +45 -0
  3. package/dist/esm/api/generated.js.map +1 -1
  4. package/dist/esm/api/payments.js +11 -2
  5. package/dist/esm/api/payments.js.map +1 -1
  6. package/dist/esm/api/types.js +7 -1
  7. package/dist/esm/api/types.js.map +1 -1
  8. package/dist/esm/checkout/container.js +1 -1
  9. package/dist/esm/checkout/index.js +8 -2
  10. package/dist/esm/checkout/index.js.map +1 -1
  11. package/dist/esm/checkout/modal.js +29 -12
  12. package/dist/esm/checkout/modal.js.map +1 -1
  13. package/dist/esm/checkout/views/amount-header.js +35 -0
  14. package/dist/esm/checkout/views/amount-header.js.map +1 -0
  15. package/dist/esm/checkout/views/back.js +2 -2
  16. package/dist/esm/checkout/views/back.js.map +1 -1
  17. package/dist/esm/checkout/views/crypto-intent/currency-select.js +48 -0
  18. package/dist/esm/checkout/views/crypto-intent/currency-select.js.map +1 -0
  19. package/dist/esm/checkout/views/crypto-intent/processing.js +25 -23
  20. package/dist/esm/checkout/views/crypto-intent/processing.js.map +1 -1
  21. package/dist/esm/checkout/views/crypto-intent/success.js +30 -9
  22. package/dist/esm/checkout/views/crypto-intent/success.js.map +1 -1
  23. package/dist/esm/checkout/views/crypto-intent/test-payment.js +35 -0
  24. package/dist/esm/checkout/views/crypto-intent/test-payment.js.map +1 -0
  25. package/dist/esm/checkout/views/crypto-intent/wallet-select.js +18 -4
  26. package/dist/esm/checkout/views/crypto-intent/wallet-select.js.map +1 -1
  27. package/dist/esm/checkout/views/failed.js +26 -0
  28. package/dist/esm/checkout/views/failed.js.map +1 -0
  29. package/dist/esm/checkout/views/method-select.js +8 -2
  30. package/dist/esm/checkout/views/method-select.js.map +1 -1
  31. package/dist/esm/checkout/views/restart.js +10 -0
  32. package/dist/esm/checkout/views/restart.js.map +1 -0
  33. package/dist/esm/components/buttons/async-button.js +1 -1
  34. package/dist/esm/components/buttons/async-button.js.map +1 -1
  35. package/dist/esm/components/buttons/index.js +18 -8
  36. package/dist/esm/components/buttons/index.js.map +1 -1
  37. package/dist/esm/components/crypto/currency-selector.js +26 -0
  38. package/dist/esm/components/crypto/currency-selector.js.map +1 -0
  39. package/dist/esm/components/crypto/default-currency-selector.js +57 -0
  40. package/dist/esm/components/crypto/default-currency-selector.js.map +1 -0
  41. package/dist/esm/components/icons/alert.js +3 -3
  42. package/dist/esm/components/icons/alert.js.map +1 -1
  43. package/dist/esm/components/icons/loading.js +7 -1
  44. package/dist/esm/components/icons/loading.js.map +1 -1
  45. package/dist/esm/components/modals/modal.js +1 -1
  46. package/dist/esm/components/modals/modal.js.map +1 -1
  47. package/dist/esm/components/modals/use-modal-with-views.js +11 -2
  48. package/dist/esm/components/modals/use-modal-with-views.js.map +1 -1
  49. package/dist/esm/components/wallet-selector/schemas.js +1 -1
  50. package/dist/esm/components/wallet-selector/store.js +55 -0
  51. package/dist/esm/components/wallet-selector/store.js.map +1 -1
  52. package/dist/esm/components/wallet-selector/util/exceptions.js +1 -1
  53. package/dist/esm/components/wallet-selector/wallets/index.js +1 -3
  54. package/dist/esm/components/wallet-selector/wallets/index.js.map +1 -1
  55. package/dist/esm/components/wallet-selector/wallets/wagmi/index.js +1 -1
  56. package/dist/esm/components/wallet-selector/wallets/wagmi/index.js.map +1 -1
  57. package/dist/esm/config.js +10 -1
  58. package/dist/esm/config.js.map +1 -1
  59. package/dist/esm/index.js +1 -0
  60. package/dist/esm/index.js.map +1 -1
  61. package/dist/esm/state/checkout/store.js +270 -2
  62. package/dist/esm/state/checkout/store.js.map +1 -1
  63. package/dist/types/api/generated.d.ts +272 -6
  64. package/dist/types/api/generated.d.ts.map +1 -1
  65. package/dist/types/api/payments.d.ts +1 -0
  66. package/dist/types/api/payments.d.ts.map +1 -1
  67. package/dist/types/api/types.d.ts +6 -0
  68. package/dist/types/api/types.d.ts.map +1 -1
  69. package/dist/types/checkout/index.d.ts +2 -1
  70. package/dist/types/checkout/index.d.ts.map +1 -1
  71. package/dist/types/checkout/modal.d.ts +2 -0
  72. package/dist/types/checkout/modal.d.ts.map +1 -1
  73. package/dist/types/checkout/views/amount-header.d.ts +8 -0
  74. package/dist/types/checkout/views/amount-header.d.ts.map +1 -0
  75. package/dist/types/checkout/views/back.d.ts +2 -1
  76. package/dist/types/checkout/views/back.d.ts.map +1 -1
  77. package/dist/types/checkout/views/crypto-intent/currency-select.d.ts +3 -0
  78. package/dist/types/checkout/views/crypto-intent/currency-select.d.ts.map +1 -0
  79. package/dist/types/checkout/views/crypto-intent/processing.d.ts.map +1 -1
  80. package/dist/types/checkout/views/crypto-intent/success.d.ts +2 -1
  81. package/dist/types/checkout/views/crypto-intent/success.d.ts.map +1 -1
  82. package/dist/types/checkout/views/crypto-intent/test-payment.d.ts +3 -0
  83. package/dist/types/checkout/views/crypto-intent/test-payment.d.ts.map +1 -0
  84. package/dist/types/checkout/views/crypto-intent/wallet-select.d.ts.map +1 -1
  85. package/dist/types/checkout/views/failed.d.ts +2 -0
  86. package/dist/types/checkout/views/failed.d.ts.map +1 -0
  87. package/dist/types/checkout/views/method-select.d.ts.map +1 -1
  88. package/dist/types/checkout/views/restart.d.ts +4 -0
  89. package/dist/types/checkout/views/restart.d.ts.map +1 -0
  90. package/dist/types/components/buttons/async-button.d.ts.map +1 -1
  91. package/dist/types/components/buttons/index.d.ts +1 -0
  92. package/dist/types/components/buttons/index.d.ts.map +1 -1
  93. package/dist/types/components/crypto/currency-selector.d.ts +11 -0
  94. package/dist/types/components/crypto/currency-selector.d.ts.map +1 -0
  95. package/dist/types/components/crypto/default-currency-selector.d.ts +9 -0
  96. package/dist/types/components/crypto/default-currency-selector.d.ts.map +1 -0
  97. package/dist/types/components/icons/alert.d.ts +2 -1
  98. package/dist/types/components/icons/alert.d.ts.map +1 -1
  99. package/dist/types/components/icons/loading.d.ts.map +1 -1
  100. package/dist/types/components/modals/use-modal-with-views.d.ts.map +1 -1
  101. package/dist/types/components/wallet-selector/store.d.ts +7 -1
  102. package/dist/types/components/wallet-selector/store.d.ts.map +1 -1
  103. package/dist/types/components/wallet-selector/wallets/index.d.ts +1 -3
  104. package/dist/types/components/wallet-selector/wallets/index.d.ts.map +1 -1
  105. package/dist/types/components/wallet-selector/wallets/wagmi/index.d.ts +21 -2
  106. package/dist/types/components/wallet-selector/wallets/wagmi/index.d.ts.map +1 -1
  107. package/dist/types/config.d.ts +7 -0
  108. package/dist/types/config.d.ts.map +1 -1
  109. package/dist/types/index.d.ts +1 -0
  110. package/dist/types/index.d.ts.map +1 -1
  111. package/dist/types/state/checkout/store.d.ts +65 -2
  112. package/dist/types/state/checkout/store.d.ts.map +1 -1
  113. package/package.json +1 -1
  114. package/dist/esm/checkout/views/crypto-intent/curreny.js +0 -25
  115. package/dist/esm/checkout/views/crypto-intent/curreny.js.map +0 -1
  116. package/dist/esm/components/wallet-selector/wallets/address/addressInput.js +0 -17
  117. package/dist/esm/components/wallet-selector/wallets/address/addressInput.js.map +0 -1
  118. package/dist/esm/components/wallet-selector/wallets/address/index.js +0 -75
  119. package/dist/esm/components/wallet-selector/wallets/address/index.js.map +0 -1
  120. package/dist/esm/components/wallet-selector/wallets/recommended/index.js +0 -64
  121. package/dist/esm/components/wallet-selector/wallets/recommended/index.js.map +0 -1
  122. package/dist/types/checkout/views/crypto-intent/curreny.d.ts +0 -3
  123. package/dist/types/checkout/views/crypto-intent/curreny.d.ts.map +0 -1
  124. package/dist/types/components/wallet-selector/wallets/address/addressInput.d.ts +0 -7
  125. package/dist/types/components/wallet-selector/wallets/address/addressInput.d.ts.map +0 -1
  126. package/dist/types/components/wallet-selector/wallets/address/index.d.ts +0 -7
  127. package/dist/types/components/wallet-selector/wallets/address/index.d.ts.map +0 -1
  128. package/dist/types/components/wallet-selector/wallets/recommended/index.d.ts +0 -23
  129. package/dist/types/components/wallet-selector/wallets/recommended/index.d.ts.map +0 -1
@@ -5,6 +5,7 @@ export interface StyledButtonProps {
5
5
  status?: "idle" | "loading" | "success" | "error";
6
6
  onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
7
7
  children?: React.ReactNode;
8
+ size?: "small" | "medium";
8
9
  }
9
10
  declare const StyledButton: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, StyledButtonProps>> & string;
10
11
  export interface ButtonProps extends StyledButtonProps {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAS/D,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAClD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,QAAA,MAAM,YAAY,oPA2EjB,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,iBAAiB;IACpD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,KAAK,CAAC,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M,GAAG,IAAI,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,QAAA,MAAM,MAAM,uFA6FX,CAAC;AAIF,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { CryptoCurrency } from "../../api/types.js";
2
+ type CurrencyRowProps = {
3
+ currency: CryptoCurrency;
4
+ balance: string;
5
+ onSelect: (currency: CryptoCurrency) => Promise<void>;
6
+ buttonVariant: "primary" | "secondary";
7
+ buttonDisabled?: boolean;
8
+ };
9
+ declare const CurrencySelector: ({ currency, balance, onSelect, buttonVariant, buttonDisabled, }: CurrencyRowProps) => import("react/jsx-runtime").JSX.Element;
10
+ export { CurrencySelector };
11
+ //# sourceMappingURL=currency-selector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currency-selector.d.ts","sourceRoot":"","sources":["../../../../src/components/crypto/currency-selector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAoBpD,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,cAAc,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,aAAa,EAAE,SAAS,GAAG,WAAW,CAAC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,gBAAgB,GAAI,iEAMvB,gBAAgB,4CAgClB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { CryptoCurrency } from "../../api/types.js";
2
+ type DefaultCurrencyRowProps = {
3
+ currency: CryptoCurrency;
4
+ balance: string;
5
+ buttonVariant?: "primary" | "secondary";
6
+ };
7
+ declare const DefaultCurrencySelector: ({ currency, balance, buttonVariant, }: DefaultCurrencyRowProps) => import("react/jsx-runtime").JSX.Element;
8
+ export { DefaultCurrencySelector };
9
+ //# sourceMappingURL=default-currency-selector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-currency-selector.d.ts","sourceRoot":"","sources":["../../../../src/components/crypto/default-currency-selector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AA8BpD,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,EAAE,cAAc,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;CACzC,CAAC;AAEF,QAAA,MAAM,uBAAuB,GAAI,uCAI9B,uBAAuB,4CA0CzB,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
@@ -1,6 +1,7 @@
1
1
  interface AlertCircleIconProps {
2
2
  size?: number;
3
+ color?: string;
3
4
  }
4
- declare const AlertCircleIcon: ({ size }: AlertCircleIconProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const AlertCircleIcon: ({ size, color }: AlertCircleIconProps) => import("react/jsx-runtime").JSX.Element;
5
6
  export { AlertCircleIcon };
6
7
  //# sourceMappingURL=alert.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/alert.tsx"],"names":[],"mappings":"AAIA,UAAU,oBAAoB;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAcD,QAAA,MAAM,eAAe,GAAI,UAAe,oBAAoB,4CAqB3D,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/alert.tsx"],"names":[],"mappings":"AAIA,UAAU,oBAAoB;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAaD,QAAA,MAAM,eAAe,GAAI,iBAAsB,oBAAoB,4CAsBlE,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/loading.tsx"],"names":[],"mappings":"AAIA,UAAU,qBAAqB;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAcD,QAAA,MAAM,gBAAgB,GAAI,UAAe,qBAAqB,4CAmB7D,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/loading.tsx"],"names":[],"mappings":"AAIA,UAAU,qBAAqB;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAqBD,QAAA,MAAM,gBAAgB,GAAI,UAAe,qBAAqB,4CAmB7D,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-modal-with-views.d.ts","sourceRoot":"","sources":["../../../../src/components/modals/use-modal-with-views.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAE9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,KAAK,YAAY,GAAG;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAClE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,YAAY,yCAIhB,CAAC;AAEH,eAAO,MAAM,qBAAqB,GAAI,4BAGnC,IAAI,CAAC,kBAAkB,EAAE,aAAa,CAAC,GAAG;IAC3C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,4CAuBA,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAO,YAEnC,CAAC"}
1
+ {"version":3,"file":"use-modal-with-views.d.ts","sourceRoot":"","sources":["../../../../src/components/modals/use-modal-with-views.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAE9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,KAAK,YAAY,GAAG;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAClE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,YAAY,yCAIhB,CAAC;AAEH,eAAO,MAAM,qBAAqB,GAAI,4BAGnC,IAAI,CAAC,kBAAkB,EAAE,aAAa,CAAC,GAAG;IAC3C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,4CA+BA,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAO,YAEnC,CAAC"}
@@ -1,11 +1,15 @@
1
+ import { CryptoCurrency } from "../../api/types.js";
1
2
  import { WalletInterface, WalletProviders } from "./domain.js";
2
3
  export declare enum ACTIONS {
3
- GET_WALLETS = "GET_WALLETS"
4
+ GET_WALLETS = "GET_WALLETS",
5
+ GET_BALANCES = "GET_BALANCES"
4
6
  }
5
7
  interface Actions {
6
8
  initialiseWallets: (initialisers: WalletProviders) => Record<string, WalletInterface>;
7
9
  clearError: (action?: ACTIONS) => void;
8
10
  clearLoading: (action?: ACTIONS) => void;
11
+ fetchBalances: (currencies: CryptoCurrency[]) => Promise<void>;
12
+ setBalances: (balances: Record<string, string>) => void;
9
13
  }
10
14
  type StoreError = {
11
15
  id: string;
@@ -16,6 +20,7 @@ interface WalletState {
16
20
  wallets: Record<string, WalletInterface>;
17
21
  loading: Record<ACTIONS, boolean>;
18
22
  error: Record<ACTIONS, StoreError | null | undefined>;
23
+ balances: Record<string, string>;
19
24
  actions: Actions;
20
25
  }
21
26
  export declare const useWalletStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<WalletState>, "setState"> & {
@@ -23,5 +28,6 @@ export declare const useWalletStore: import("zustand").UseBoundStore<Omit<import
23
28
  setState(nextStateOrUpdater: WalletState | ((state: import("immer").WritableDraft<WalletState>) => void), shouldReplace: true): void;
24
29
  }>;
25
30
  export declare const useWalletActions: () => Actions;
31
+ export declare const useWalletBalances: () => Record<string, string>;
26
32
  export {};
27
33
  //# sourceMappingURL=store.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../src/components/wallet-selector/store.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE/D,oBAAY,OAAO;IACjB,WAAW,gBAAgB;CAC5B;AAED,UAAU,OAAO;IACf,iBAAiB,EAAE,CACjB,YAAY,EAAE,eAAe,KAC1B,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACrC,UAAU,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,YAAY,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C;AAWD,KAAK,UAAU,GAAG;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,UAAU,WAAW;IACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACzC,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,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AO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,cAAc;;;EAwH1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,eAAiD,CAAC;AAC/E,eAAO,MAAM,iBAAiB,8BACa,CAAC"}
@@ -1,5 +1,3 @@
1
- import { AddressWallet } from "./address/index.js";
2
- import { RecommendedWalletInterface } from "./recommended/index.js";
3
1
  import { WagmiWallets } from "./wagmi/index.js";
4
- export { AddressWallet, RecommendedWalletInterface, WagmiWallets };
2
+ export { WagmiWallets };
5
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/wallet-selector/wallets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,0BAA0B,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/wallet-selector/wallets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1,11 +1,30 @@
1
- import { Config } from "@wagmi/core";
1
+ import { Connector, Config } from "@wagmi/core";
2
2
  import { JsonRpcSigner } from "ethers";
3
3
  import React from "react";
4
- import type { WalletInterface } from "../../domain.js";
4
+ import type { Address, Transfer, WalletInterface } from "../../domain.js";
5
5
  import type { Account, Chain, Client, Transport } from "viem";
6
6
  export declare const transferNativeCoin: (wagmiConfig: Config, address: string, amount: number) => Promise<`0x${string}`>;
7
7
  export declare const transferCoins: (wagmiConfig: Config, address: string, amount: number, contractAddress: string, currency: string) => Promise<`0x${string}`>;
8
8
  export declare function clientToSigner(client: Client<Transport, Chain, Account>): JsonRpcSigner;
9
+ export declare class WagmiWalletInterface implements WalletInterface {
10
+ connector: Connector;
11
+ name: string;
12
+ icon?: string;
13
+ installed: boolean;
14
+ wagmiConfig: Config;
15
+ constructor(connector: Connector, wagmiConfig: Config);
16
+ connect(networkId?: number): Promise<`0x${string}`>;
17
+ signMessage(message: string): Promise<`0x${string}`>;
18
+ getAddress(): Promise<`0x${string}` | null>;
19
+ approveTokenTransfer(amount: number, spenderAddress: string, currencyAddress: string): Promise<`0x${string}` | undefined>;
20
+ executeTransfer(transfer: Transfer): Promise<`0x${string}`>;
21
+ getBalance(address: Address, tokenAddress?: Address): Promise<{
22
+ uiAmount: string;
23
+ intAmount: bigint;
24
+ decimals: number;
25
+ }>;
26
+ getSigner(): Promise<JsonRpcSigner>;
27
+ }
9
28
  export declare const WagmiWallets: (config: Config, extraConfig?: {
10
29
  recommendedWallets?: WalletInterface[];
11
30
  allowedWallets?: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet-selector/wallets/wagmi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAYL,MAAM,EACP,MAAM,aAAa,CAAC;AACrB,OAAO,EAAmB,aAAa,EAAE,MAAM,QAAQ,CAAC;AACxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,KAAK,EAAqB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAE9D,eAAO,MAAM,kBAAkB,GAC7B,aAAa,MAAM,EACnB,SAAS,MAAM,EACf,QAAQ,MAAM,2BAiBZ,CAAC;AA8EL,eAAO,MAAM,aAAa,GACxB,aAAa,MAAM,EACnB,SAAS,MAAM,EACf,QAAQ,MAAM,EACd,iBAAiB,MAAM,EACvB,UAAU,MAAM,2BAmBjB,CAAC;AAEF,wBAAgB,cAAc,CAAC,M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,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,UAAQ;IAEjB,WAAW,EAAE,MAAM,CAAC;gBAER,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM;IAO/C,OAAO,CAAC,SAAS,CAAC,EAAE,MAAM;IAc1B,WAAW,CAAC,OAAO,EAAE,MAAM;IAI3B,UAAU;IAIV,oBAAoB,CACxB,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,MAAM,EACtB,eAAe,EAAE,MAAM;IAUnB,eAAe,CAAC,QAAQ,EAAE,QAAQ;IAkBlC,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,YAAY,CAAC,EAAE,OAAO;;;;;IAcnD,SAAS;CAKhB;AAED,eAAO,MAAM,YAAY,GAErB,QAAQ,MAAM,EACd,cAAc;IACZ,kBAAkB,CAAC,EAAE,eAAe,EAAE,CAAC;IACvC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;CACjD,KACA,CAAC,MAAM,eAAe,EAAE,CA8B1B,CAAC"}
@@ -1,14 +1,21 @@
1
+ import { PaymentStatus } from "./api/types.js";
1
2
  import { ThemeConfig } from "./themes/types.js";
3
+ export type CryptoCheckoutConfig = {
4
+ numBlockConfirmations: number;
5
+ paymentConfirmationStatus: PaymentStatus;
6
+ };
2
7
  export type Config = {
3
8
  publicKey: string;
4
9
  checkoutId: string;
5
10
  apiUrl: string;
11
+ cryptoCheckoutConfig: CryptoCheckoutConfig;
6
12
  theme: ThemeConfig;
7
13
  };
8
14
  type ConfigOptions = {
9
15
  apiUrl?: string;
10
16
  checkoutId: string;
11
17
  theme?: Partial<ThemeConfig>;
18
+ cryptoCheckoutConfig?: CryptoCheckoutConfig;
12
19
  };
13
20
  export declare const createConfig: (publicKey: string, options?: ConfigOptions) => Config;
14
21
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,MAAM,MAAM,GAAG;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;CAC9B,CAAC;AAIF,eAAO,MAAM,YAAY,GACvB,WAAW,MAAM,EACjB,UAAU,aAAa,KACtB,MAKF,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,MAAM,oBAAoB,GAAG;IACjC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,yBAAyB,EAAE,aAAa,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC7B,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC7C,CAAC;AAIF,eAAO,MAAM,YAAY,GACvB,WAAW,MAAM,EACjB,UAAU,aAAa,KACtB,MAgBF,CAAC"}
@@ -2,4 +2,5 @@ export * from "./checkout/index.js";
2
2
  export * from "./components/index.js";
3
3
  export * from "./api/index.js";
4
4
  export * from "./themes/index.js";
5
+ export { getPaymentById } from "./api/payments.js";
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,10 +1,26 @@
1
- import { Checkout, CheckoutMethod, CryptoCurrency, Payment, CryptoPaymentAttempt } from "../../api/types.js";
1
+ import { Checkout, CheckoutMethod, CryptoCurrency, Payment, CryptoPaymentAttempt, PaymentStatus } from "../../api/types.js";
2
+ import { WalletInterface, Transfer } from "../../components/wallet-selector/domain.js";
2
3
  export declare enum ACTIONS {
3
4
  GET_CHECKOUT_CONFIG = "GET_CHECKOUT_CONFIG",
4
5
  GET_CRYPTO_CURRENCIES = "GET_CRYPTO_CURRENCIES",
5
6
  CREATE_PAYMENT = "CREATE_PAYMENT",
6
7
  GET_PAYMENT = "GET_PAYMENT",
7
- CREATE_PAYMENT_ATTEMPT = "CREATE_PAYMENT_ATTEMPT"
8
+ CREATE_PAYMENT_ATTEMPT = "CREATE_PAYMENT_ATTEMPT",
9
+ CREATE_TEST_PAYMENT_ATTEMPT = "CREATE_TEST_PAYMENT_ATTEMPT",
10
+ EXECUTE_TRANSFER = "EXECUTE_TRANSFER",
11
+ POLL_PAYMENT = "POLL_PAYMENT",
12
+ CHECK_CHAIN_STATUS = "CHECK_CHAIN_STATUS"
13
+ }
14
+ interface TransferState {
15
+ status: "idle" | "pending" | "failed" | "success";
16
+ error: string | null;
17
+ transactionHash: string | null;
18
+ chainStatus: "pending" | "confirmed" | "failed";
19
+ }
20
+ interface PollingState {
21
+ isPolling: boolean;
22
+ pollCount: number;
23
+ lastPollTime: number | null;
8
24
  }
9
25
  interface CheckoutState {
10
26
  checkoutId: string | null;
@@ -17,6 +33,9 @@ interface CheckoutState {
17
33
  cryptoCurrencies: CryptoCurrency[] | null;
18
34
  loading: Record<ACTIONS, boolean>;
19
35
  error: Record<ACTIONS, string | null | undefined>;
36
+ processing: boolean;
37
+ transfer: TransferState;
38
+ polling: PollingState;
20
39
  }
21
40
  export declare const useCheckoutStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<CheckoutState>, "setState"> & {
22
41
  setState(nextStateOrUpdater: CheckoutState | Partial<CheckoutState> | ((state: import("immer").WritableDraft<CheckoutState>) => void), shouldReplace?: false): void;
@@ -25,6 +44,8 @@ export declare const useCheckoutStore: import("zustand").UseBoundStore<Omit<impo
25
44
  export declare const clearErrors: () => void;
26
45
  export declare const initialiseStore: (payment: Payment) => Promise<void>;
27
46
  export declare const createCheckoutCryptoPaymentAttempt: (currency: CryptoCurrency) => Promise<void>;
47
+ export declare const createSuccessfulTestPaymentAttempt: () => Promise<void>;
48
+ export declare const createFailedTestPaymentAttempt: () => Promise<void>;
28
49
  export declare function getAvailableCheckoutMethods(checkout: Checkout): CheckoutMethod[];
29
50
  export declare const getCheckoutConfig: (checkoutId: string) => Promise<void>;
30
51
  export declare const getPayment: () => Promise<{
@@ -33,6 +54,33 @@ export declare const getPayment: () => Promise<{
33
54
  created_at: string;
34
55
  updated_at: string;
35
56
  checkout_id: string;
57
+ checkout: {
58
+ id: string;
59
+ organization_id: string;
60
+ name: string;
61
+ created_at: string;
62
+ updated_at: string;
63
+ checkout_config: {
64
+ crypto?: {
65
+ enabled?: boolean;
66
+ assets?: {
67
+ chain: string;
68
+ asset: string;
69
+ asset_name: string;
70
+ chain_name: string;
71
+ }[];
72
+ withdrawAddress?: {
73
+ chain: string;
74
+ address: string;
75
+ }[];
76
+ };
77
+ card?: {
78
+ enabled?: boolean;
79
+ };
80
+ };
81
+ is_live: boolean;
82
+ logo_url?: string;
83
+ };
36
84
  organization_id: string;
37
85
  status: "pending" | "confirming_payment" | "paid" | "failed";
38
86
  is_test: boolean;
@@ -59,7 +107,22 @@ export declare const getPayment: () => Promise<{
59
107
  }[];
60
108
  amount: number;
61
109
  } | null>;
110
+ interface TransferWalletInterface {
111
+ getAddress(): Promise<string | null>;
112
+ executeTransfer(config: Transfer): Promise<string | null>;
113
+ }
114
+ export declare const executeTransfer: (wallet: TransferWalletInterface) => Promise<string>;
115
+ export declare const checkChainStatus: (wallet: WalletInterface) => Promise<void>;
116
+ export declare const resetTransfer: () => void;
117
+ export declare const startPaymentPolling: (onPaymentStatusChange: (status: PaymentStatus) => void) => {
118
+ stop: () => void;
119
+ };
120
+ export declare const stopPaymentPolling: () => void;
62
121
  export declare const resetCheckoutStore: () => void;
63
122
  export declare const setCheckoutMethod: (method: CheckoutMethod) => void;
123
+ export declare const setProcessing: (processing: boolean) => void;
124
+ export declare const getProcessing: () => boolean;
125
+ export declare const setSelectedCurrency: (currency: CryptoCurrency | null) => void;
126
+ export declare const isTestMode: () => boolean;
64
127
  export {};
65
128
  //# sourceMappingURL=store.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../src/state/checkout/store.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,QAAQ,EACR,cAAc,EACd,cAAc,EACd,OAAO,EACP,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,oBAAY,OAAO;IACjB,mBAAmB,wBAAwB;IAC3C,qBAAqB,0BAA0B;IAC/C,cAAc,mBAAmB;IACjC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,cAAc,SAIvD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,YAAY,OAAO,SAIhD,CAAC;AAEF,eAAO,MAAM,aAAa,eAEzB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,UAAU,cAAc,GAAG,IAAI,SAIlE,CAAC;AAEF,eAAO,MAAM,UAAU,QAAO,OAQ7B,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mintmoney/react",
3
3
  "description": "React SDK library for the MintMoney payments network",
4
- "version": "0.1.0-alpha.14",
4
+ "version": "0.1.0-alpha.21",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1,25 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useRef } from "react";
3
- import { useModalWithView, SelectableList, Text, Loader, } from "../../../components/index.js";
4
- import { useMintMoneyConfig } from "../../../context.js";
5
- import { useCheckoutStore, ACTIONS, createCheckoutCryptoPaymentAttempt, } from "../../../state/checkout/store.js";
6
- import { ModalViewContainer } from "../../container.js";
7
- const CryptontentSelectCurrencyViewContent = () => {
8
- const modalRef = useRef(null);
9
- const { goToView } = useModalWithView();
10
- const { checkout, cryptoCurrencies, loading } = useCheckoutStore();
11
- const config = useMintMoneyConfig();
12
- const isLoading = loading[ACTIONS.GET_CRYPTO_CURRENCIES] ||
13
- loading[ACTIONS.CREATE_PAYMENT_ATTEMPT];
14
- if (checkout && !checkout.checkout_config.crypto?.enabled)
15
- goToView("failed", { reason: "crypto_not_enabled" });
16
- const handleSelectCurrency = async (currency) => {
17
- await createCheckoutCryptoPaymentAttempt(currency);
18
- goToView("cryptoIntentDirectDetails");
19
- };
20
- if (isLoading)
21
- return _jsx(Loader, {});
22
- return (_jsxs(ModalViewContainer, { ref: modalRef, children: [_jsx(Text, { size: "base", color: config.theme.font.color.tertiary, weight: "normal", children: "Select a currency to complete payment with." }), _jsx(SelectableList, { items: cryptoCurrencies ?? [], getKey: (currency) => currency.asset, getLabel: (currency) => `${currency.chain_name} ${currency.asset_name}`, onSelect: handleSelectCurrency })] }));
23
- };
24
- export { CryptontentSelectCurrencyViewContent };
25
- //# sourceMappingURL=curreny.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"curreny.js","sourceRoot":"","sources":["../../../../../src/checkout/views/crypto-intent/curreny.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAG/B,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,IAAI,EACJ,MAAM,GACP,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EACL,gBAAgB,EAChB,OAAO,EACP,kCAAkC,GACnC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,oCAAoC,GAAG,GAAG,EAAE;IAChD,MAAM,QAAQ,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC9C,MAAM,EAAE,QAAQ,EAAE,GAAG,gBAAgB,EAAE,CAAC;IACxC,MAAM,EAAE,QAAQ,EAAE,gBAAgB,EAAE,OAAO,EAAE,GAAG,gBAAgB,EAAE,CAAC;IACnE,MAAM,MAAM,GAAG,kBAAkB,EAAE,CAAC;IAEpC,MAAM,SAAS,GACb,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC;QACtC,OAAO,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAE1C,IAAI,QAAQ,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO;QACvD,QAAQ,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,oBAAoB,EAAE,CAAC,CAAC;IAEvD,MAAM,oBAAoB,GAAG,KAAK,EAAE,QAAwB,EAAE,EAAE;QAC9D,MAAM,kCAAkC,CAAC,QAAQ,CAAC,CAAC;QACnD,QAAQ,CAAC,2BAA2B,CAAC,CAAC;IACxC,CAAC,CAAC;IAEF,IAAI,SAAS;QAAE,OAAO,KAAC,MAAM,KAAG,CAAC;IAEjC,OAAO,CACL,MAAC,kBAAkB,IAAC,GAAG,EAAE,QAAQ,aAC/B,KAAC,IAAI,IACH,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EACvC,MAAM,EAAE,QAAQ,4DAGX,EAEP,KAAC,cAAc,IACb,KAAK,EAAE,gBAAgB,IAAI,EAAE,EAC7B,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,EACpC,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,QAAQ,CAAC,UAAU,IAAI,QAAQ,CAAC,UAAU,EAAE,EACvE,QAAQ,EAAE,oBAAoB,GAC9B,IACiB,CACtB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
@@ -1,17 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useState } from "react";
3
- import { StyledButton } from "../../../buttons/index.js";
4
- import { Input } from "../../../inputs/index.js";
5
- const AddressInput = ({ onConfirm, validate }) => {
6
- const [address, setAddress] = useState("");
7
- const [error, setError] = useState(null);
8
- const handleAddressChange = (event) => {
9
- setAddress(event.target.value);
10
- if (validate) {
11
- setError(validate(event.target.value));
12
- }
13
- };
14
- return (_jsxs(_Fragment, { children: [_jsx(Input, { type: "text", placeholder: "Your address", value: address, onChange: handleAddressChange }), error && _jsx("p", { className: "mb-2 mt-3 text-sm text-alert-500", children: error }), _jsx(StyledButton, { variant: "primary", onClick: () => onConfirm(address), disabled: !!error, children: "Confirm" })] }));
15
- };
16
- export default AddressInput;
17
- //# sourceMappingURL=addressInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"addressInput.js","sourceRoot":"","sources":["../../../../../../src/components/wallet-selector/wallets/address/addressInput.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAOjD,MAAM,YAAY,GAAG,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAS,EAAE,EAAE;IACtD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC3C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IACxD,MAAM,mBAAmB,GAAG,CAAC,KAA0C,EAAE,EAAE;QACzE,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC/B,IAAI,QAAQ,EAAE,CAAC;YACb,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACzC,CAAC;IACH,CAAC,CAAC;IACF,OAAO,CACL,8BACE,KAAC,KAAK,IACJ,IAAI,EAAC,MAAM,EACX,WAAW,EAAC,cAAc,EAC1B,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,mBAAmB,GAC7B,EACD,KAAK,IAAI,YAAG,SAAS,EAAC,kCAAkC,YAAE,KAAK,GAAK,EACrE,KAAC,YAAY,IACX,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,EACjC,QAAQ,EAAE,CAAC,CAAC,KAAK,wBAGJ,IACd,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,75 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import AddressInput from "./addressInput.js";
3
- import { LinkIcon } from "../../../icons/link.js";
4
- class AddressWalletInterface {
5
- constructor(config) {
6
- Object.defineProperty(this, "name", {
7
- enumerable: true,
8
- configurable: true,
9
- writable: true,
10
- value: void 0
11
- });
12
- Object.defineProperty(this, "icon", {
13
- enumerable: true,
14
- configurable: true,
15
- writable: true,
16
- value: void 0
17
- });
18
- Object.defineProperty(this, "address", {
19
- enumerable: true,
20
- configurable: true,
21
- writable: true,
22
- value: void 0
23
- });
24
- Object.defineProperty(this, "installed", {
25
- enumerable: true,
26
- configurable: true,
27
- writable: true,
28
- value: true
29
- });
30
- Object.defineProperty(this, "config", {
31
- enumerable: true,
32
- configurable: true,
33
- writable: true,
34
- value: void 0
35
- });
36
- Object.defineProperty(this, "handleConfigureConfirm", {
37
- enumerable: true,
38
- configurable: true,
39
- writable: true,
40
- value: (callback, address) => {
41
- // TODO: Validate?
42
- this.address = address;
43
- callback(this);
44
- }
45
- });
46
- this.name = "Send to other address";
47
- this.icon = _jsx(LinkIcon, {});
48
- this.address = null;
49
- this.config = config;
50
- }
51
- async connect() {
52
- return Promise.resolve(this.address);
53
- }
54
- async signMessage() {
55
- return Promise.resolve(null);
56
- }
57
- async getAddress() {
58
- return Promise.resolve(this.address);
59
- }
60
- async executeTransfer() {
61
- return Promise.resolve(null);
62
- }
63
- async getBalance() {
64
- return Promise.resolve({
65
- uiAmount: null,
66
- intAmount: null,
67
- decimals: null,
68
- });
69
- }
70
- renderConfigureStep(callback) {
71
- return (_jsx(AddressInput, { onConfirm: (address) => this.handleConfigureConfirm(callback, address), validate: this.config?.validate }));
72
- }
73
- }
74
- export const AddressWallet = (config) => () => new AddressWalletInterface(config);
75
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/wallet-selector/wallets/address/index.tsx"],"names":[],"mappings":";AAAA,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAG7C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAMlD,MAAM,sBAAsB;IAO1B,YA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AAC;IACJ,CAAC;CACF;AAED,MAAM,CAAC,MAAM,aAAa,GACxB,CAAC,MAAe,EAA2B,EAAE,CAC7C,GAAG,EAAE,CACH,IAAI,sBAAsB,CAAC,MAAM,CAAC,CAAC"}
@@ -1,64 +0,0 @@
1
- /**
2
- * @dev This is intended to be a placeholder for a recommended wallet.
3
- */
4
- export class RecommendedWalletInterface {
5
- constructor(name, url, icon, installed = false) {
6
- Object.defineProperty(this, "name", {
7
- enumerable: true,
8
- configurable: true,
9
- writable: true,
10
- value: ""
11
- });
12
- Object.defineProperty(this, "icon", {
13
- enumerable: true,
14
- configurable: true,
15
- writable: true,
16
- value: ""
17
- });
18
- Object.defineProperty(this, "url", {
19
- enumerable: true,
20
- configurable: true,
21
- writable: true,
22
- value: ""
23
- });
24
- Object.defineProperty(this, "installed", {
25
- enumerable: true,
26
- configurable: true,
27
- writable: true,
28
- value: false
29
- });
30
- this.name = name;
31
- this.url = url;
32
- this.icon = icon;
33
- this.installed = installed;
34
- }
35
- // eslint-disable-next-line @typescript-eslint/require-await
36
- async connect() {
37
- return null;
38
- }
39
- // eslint-disable-next-line @typescript-eslint/require-await
40
- async getBalance() {
41
- return {
42
- uiAmount: null,
43
- intAmount: null,
44
- decimals: null,
45
- };
46
- }
47
- // eslint-disable-next-line @typescript-eslint/require-await
48
- async signMessage() {
49
- return null;
50
- }
51
- // eslint-disable-next-line @typescript-eslint/require-await
52
- async signTransaction() {
53
- return null;
54
- }
55
- // eslint-disable-next-line @typescript-eslint/require-await
56
- async getAddress() {
57
- return null;
58
- }
59
- // eslint-disable-next-line @typescript-eslint/require-await
60
- async executeTransfer() {
61
- return null;
62
- }
63
- }
64
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/wallet-selector/wallets/recommended/index.tsx"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,OAAO,0BAA0B;IAMrC,YACE,IAAY,EACZ,GAAW,EACX,IAAqB,EACrB,SAAS,GAAG,KAAK;QATnB;;;;mBAAO,EAAE;WAAC;QACV;;;;mBAAiC,EAAE;WAAC;QACpC;;;;mBAAM,EAAE;WAAC;QACT;;;;mBAAqB,KAAK;WAAC;QAQzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED,4DAA4D;IAC5D,KAAK,CAAC,OAAO;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IAED,4DAA4D;IAC5D,KAAK,CAAC,UAAU;QACd,OAAO;YACL,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,IAAI;SACf,CAAC;IACJ,CAAC;IAED,4DAA4D;IAC5D,KAAK,CAAC,WAAW;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IAED,4DAA4D;IAC5D,KAAK,CAAC,eAAe;QACnB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,4DAA4D;IAC5D,KAAK,CAAC,UAAU;QACd,OAAO,IAAI,CAAC;IACd,CAAC;IAED,4DAA4D;IAC5D,KAAK,CAAC,eAAe;QACnB,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -1,3 +0,0 @@
1
- declare const CryptontentSelectCurrencyViewContent: () => import("react/jsx-runtime").JSX.Element;
2
- export { CryptontentSelectCurrencyViewContent };
3
- //# sourceMappingURL=curreny.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"curreny.d.ts","sourceRoot":"","sources":["../../../../../src/checkout/views/crypto-intent/curreny.tsx"],"names":[],"mappings":"AAiBA,QAAA,MAAM,oCAAoC,+CAsCzC,CAAC;AAEF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
@@ -1,7 +0,0 @@
1
- type Props = {
2
- onConfirm: (address: string) => void;
3
- validate?: (address: string) => string | null;
4
- };
5
- declare const AddressInput: ({ onConfirm, validate }: Props) => import("react/jsx-runtime").JSX.Element;
6
- export default AddressInput;
7
- //# sourceMappingURL=addressInput.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"addressInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet-selector/wallets/address/addressInput.tsx"],"names":[],"mappings":"AAKA,KAAK,KAAK,GAAG;IACX,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;CAC/C,CAAC;AAEF,QAAA,MAAM,YAAY,GAAI,yBAAyB,KAAK,4CA2BnD,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { WalletInterface } from "../../domain.js";
2
- type Config = {
3
- validate?: (address: string) => string | null;
4
- };
5
- export declare const AddressWallet: (config?: Config) => (() => WalletInterface);
6
- export {};
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet-selector/wallets/address/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGvD,KAAK,MAAM,GAAG;IACZ,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;CAC/C,CAAC;AA2DF,eAAO,MAAM,aAAa,GACvB,SAAS,MAAM,KAAG,CAAC,MAAM,eAAe,CAEL,CAAC"}
@@ -1,23 +0,0 @@
1
- import React from "react";
2
- import type { WalletInterface } from "../../domain.js";
3
- /**
4
- * @dev This is intended to be a placeholder for a recommended wallet.
5
- */
6
- export declare class RecommendedWalletInterface implements WalletInterface {
7
- name: string;
8
- icon: string | React.ReactNode;
9
- url: string;
10
- installed: boolean;
11
- constructor(name: string, url: string, icon: React.ReactNode, installed?: boolean);
12
- connect(): Promise<null>;
13
- getBalance(): Promise<{
14
- uiAmount: null;
15
- intAmount: null;
16
- decimals: null;
17
- }>;
18
- signMessage(): Promise<null>;
19
- signTransaction(): Promise<null>;
20
- getAddress(): Promise<null>;
21
- executeTransfer(): Promise<null>;
22
- }
23
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet-selector/wallets/recommended/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD;;GAEG;AACH,qBAAa,0BAA2B,YAAW,eAAe;IAChE,IAAI,SAAM;IACV,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAM;IACpC,GAAG,SAAM;IACT,SAAS,EAAE,OAAO,CAAS;gBAGzB,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,KAAK,CAAC,SAAS,EACrB,SAAS,UAAQ;IASb,OAAO;IAKP,UAAU;;;;;IASV,WAAW;IAKX,eAAe;IAKf,UAAU;IAKV,eAAe;CAGtB"}