@prohetamine/redstone 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/PhArrowCircleDown-BR-zH4LC.js +14 -0
  2. package/dist/PhArrowCircleDown-Sb38khBy.mjs +73 -0
  3. package/dist/PhArrowClockwise-BE5j9P0Z.mjs +73 -0
  4. package/dist/PhArrowClockwise-BRaehQGe.js +14 -0
  5. package/dist/PhArrowDown-B_WmmmY9.js +14 -0
  6. package/dist/PhArrowDown-CFEyR2dR.mjs +73 -0
  7. package/dist/PhArrowLeft-CYfU7NZj.mjs +73 -0
  8. package/dist/PhArrowLeft-CkEd70hm.js +14 -0
  9. package/dist/PhArrowRight-C07Qkx86.js +14 -0
  10. package/dist/PhArrowRight-EermNu0V.mjs +73 -0
  11. package/dist/PhArrowSquareOut-BjTBfzOP.js +14 -0
  12. package/dist/PhArrowSquareOut-DZwTtw54.mjs +73 -0
  13. package/dist/PhArrowUp-DB4CCSss.js +14 -0
  14. package/dist/PhArrowUp-xTpLFQkg.mjs +73 -0
  15. package/dist/PhArrowUpRight-CQbvn6NO.mjs +73 -0
  16. package/dist/PhArrowUpRight-GpCIMsAh.js +14 -0
  17. package/dist/PhArrowsClockwise-BgcIUg-Z.js +14 -0
  18. package/dist/PhArrowsClockwise-DnUYZTVx.mjs +73 -0
  19. package/dist/PhArrowsDownUp-C8KXUqtu.js +14 -0
  20. package/dist/PhArrowsDownUp-DgoprEe2.mjs +73 -0
  21. package/dist/PhArrowsLeftRight-CahChzCj.js +14 -0
  22. package/dist/PhArrowsLeftRight-FD4AZiLh.mjs +73 -0
  23. package/dist/PhBank-DIqIL4x_.js +14 -0
  24. package/dist/PhBank-DbQOQ9zJ.mjs +73 -0
  25. package/dist/PhBrowser-BCBXK2IM.mjs +73 -0
  26. package/dist/PhBrowser-laCKtn7T.js +14 -0
  27. package/dist/PhCaretDown-CnjP-QjZ.mjs +73 -0
  28. package/dist/PhCaretDown-DDe42xDU.js +14 -0
  29. package/dist/PhCaretLeft-Cskc5OY9.js +14 -0
  30. package/dist/PhCaretLeft-DkuXxjf_.mjs +73 -0
  31. package/dist/PhCaretRight-CBWpghxt.mjs +73 -0
  32. package/dist/PhCaretRight-DNgI5w_B.js +14 -0
  33. package/dist/PhCaretUp-CQ-OztBV.mjs +73 -0
  34. package/dist/PhCaretUp-CUZ4g_Me.js +14 -0
  35. package/dist/PhCheck-BVV_Dwfo.js +14 -0
  36. package/dist/PhCheck-t515emYS.mjs +73 -0
  37. package/dist/PhCircleHalf-BuQTmrKW.mjs +73 -0
  38. package/dist/PhCircleHalf-DDC7rige.js +14 -0
  39. package/dist/PhClock-BqynEKWl.js +14 -0
  40. package/dist/PhClock-D6XkTmM_.mjs +73 -0
  41. package/dist/PhCompass-2QeeX5Ad.mjs +73 -0
  42. package/dist/PhCompass-BsuJwXAE.js +14 -0
  43. package/dist/PhCopy-CO34-_xD.mjs +73 -0
  44. package/dist/PhCopy-MVqtRS6X.js +14 -0
  45. package/dist/PhCreditCard-Dq4kdjCw.js +14 -0
  46. package/dist/PhCreditCard-bfnqYflD.mjs +73 -0
  47. package/dist/PhCurrencyDollar-6k8UWxal.js +14 -0
  48. package/dist/PhCurrencyDollar-BekVYPtC.mjs +73 -0
  49. package/dist/PhDesktop-BkNzf3rT.mjs +73 -0
  50. package/dist/PhDesktop-CfsXQ0vC.js +14 -0
  51. package/dist/PhDeviceMobile-BT3Mg_b0.mjs +73 -0
  52. package/dist/PhDeviceMobile-BnrrDrwf.js +14 -0
  53. package/dist/PhDotsThree-6LRvhAcL.js +14 -0
  54. package/dist/PhDotsThree-kpf2OKxJ.mjs +73 -0
  55. package/dist/PhEnvelope-CHsfC2e0.js +14 -0
  56. package/dist/PhEnvelope-UFKpKtwf.mjs +73 -0
  57. package/dist/PhFunnelSimple-CdAqSIhK.mjs +73 -0
  58. package/dist/PhFunnelSimple-JAk7X9Wo.js +14 -0
  59. package/dist/PhGlobe-B3RYXl8h.mjs +73 -0
  60. package/dist/PhGlobe-Tfs4MfpG.js +14 -0
  61. package/dist/PhIdentificationCard-Dqmd6eY1.js +14 -0
  62. package/dist/PhIdentificationCard-rSq59Czm.mjs +73 -0
  63. package/dist/PhImage-aEryzfCi.js +14 -0
  64. package/dist/PhImage-ynsEnFd_.mjs +73 -0
  65. package/dist/PhInfo-B7lsWl6m.mjs +73 -0
  66. package/dist/PhInfo-D6oUrWpA.js +14 -0
  67. package/dist/PhLightbulb-FQDaMMqu.mjs +73 -0
  68. package/dist/PhLightbulb-qbEduhPa.js +14 -0
  69. package/dist/PhMagnifyingGlass-COdRH2k5.js +14 -0
  70. package/dist/PhMagnifyingGlass-_NXk13-0.mjs +73 -0
  71. package/dist/PhPaperPlaneRight-BYi7SorW.mjs +73 -0
  72. package/dist/PhPaperPlaneRight-DrpVAQOZ.js +14 -0
  73. package/dist/PhPlus-25KQTPHG.mjs +73 -0
  74. package/dist/PhPlus-BhUXef08.js +14 -0
  75. package/dist/PhPower-BKl7gzsB.mjs +73 -0
  76. package/dist/PhPower-BNJf1AGQ.js +14 -0
  77. package/dist/PhPuzzlePiece-BkZeF8CX.js +14 -0
  78. package/dist/PhPuzzlePiece-BqUI4GRs.mjs +73 -0
  79. package/dist/PhQrCode-C-tqZKPP.mjs +73 -0
  80. package/dist/PhQrCode-C0v0iXQN.js +14 -0
  81. package/dist/PhQuestion-BBAiRWgt.js +14 -0
  82. package/dist/PhQuestion-CtYvffyD.mjs +73 -0
  83. package/dist/PhQuestionMark-BNbtL2yx.mjs +73 -0
  84. package/dist/PhQuestionMark-BvGUBZ1h.js +14 -0
  85. package/dist/PhSealCheck-B0TEqWpq.mjs +73 -0
  86. package/dist/PhSealCheck-BwNkuF7G.js +14 -0
  87. package/dist/PhSignOut-C1rMSNaS.js +14 -0
  88. package/dist/PhSignOut-HX2_BVsD.mjs +73 -0
  89. package/dist/PhSpinner-CoDYLYOX.mjs +73 -0
  90. package/dist/PhSpinner-nmsGWDQl.js +14 -0
  91. package/dist/PhTrash-CALlKx3e.js +14 -0
  92. package/dist/PhTrash-DeQHS8ZP.mjs +73 -0
  93. package/dist/PhUser-CA0e5OPI.js +14 -0
  94. package/dist/PhUser-Cy5EY3vX.mjs +73 -0
  95. package/dist/PhVault-DdXjVOO9.mjs +73 -0
  96. package/dist/PhVault-DqxV75cz.js +14 -0
  97. package/dist/PhWallet-CeQrfGYc.mjs +73 -0
  98. package/dist/PhWallet-CyCuEs2U.js +14 -0
  99. package/dist/PhWarning-BKaHv_wT.mjs +73 -0
  100. package/dist/PhWarning-C7oj86bY.js +14 -0
  101. package/dist/PhWarningCircle-8MWw-QgE.mjs +73 -0
  102. package/dist/PhWarningCircle-CrNPXGj4.js +14 -0
  103. package/dist/PhX-9lsrXjyl.js +14 -0
  104. package/dist/PhX-DgXr_Fb0.mjs +73 -0
  105. package/dist/ReownAuthentication-Bfv31LzI.mjs +274 -0
  106. package/dist/ReownAuthentication-d8aYgGOq.js +5 -0
  107. package/dist/SwapController-4lzoYsYr.js +1 -0
  108. package/dist/SwapController-DjzUWRyQ.mjs +462 -0
  109. package/dist/ccip-CvwbEhki.js +1 -0
  110. package/dist/ccip-TuO68NeE.mjs +150 -0
  111. package/dist/data-capture-BwdjH2vc.mjs +489 -0
  112. package/dist/data-capture-xVUNZJ2T.js +242 -0
  113. package/dist/email-BCZObJCY.js +90 -0
  114. package/dist/email-m-wo60fN.mjs +338 -0
  115. package/dist/embedded-wallet-CGSri-4g.js +410 -0
  116. package/dist/embedded-wallet-DdZmv5qP.mjs +808 -0
  117. package/dist/features-BJ8kNaE8.js +1 -0
  118. package/dist/features-CJ34oImB.mjs +6 -0
  119. package/dist/index-4lfXeo30.js +132 -0
  120. package/dist/index-B6Mg114Z.mjs +69182 -0
  121. package/dist/index-BX7gAgT3.mjs +35 -0
  122. package/dist/index-BYQqNbCe.js +1 -0
  123. package/dist/index-BmdHwtJo.js +1 -0
  124. package/dist/index-BvUx3ULC.js +78 -0
  125. package/dist/index-CD-QGO70.mjs +196 -0
  126. package/dist/index-CJtXfdoM.mjs +29621 -0
  127. package/dist/index-CMzdgE-y.mjs +215 -0
  128. package/dist/index-CjZQCcwG.js +7203 -0
  129. package/dist/index-D7VuOaCI.js +19 -0
  130. package/dist/index-DV7SQwgn.mjs +2688 -0
  131. package/dist/index-DVf4BnNh.mjs +352 -0
  132. package/dist/index-DhN9vL4k.js +138 -0
  133. package/dist/index-DvllakY0.mjs +274 -0
  134. package/dist/index-Ho06VKh2.mjs +151 -0
  135. package/dist/index-a8mS2Eh1.js +1062 -0
  136. package/dist/index-aamBi9Tu.js +1 -0
  137. package/dist/index.cjs.js +1 -0
  138. package/dist/index.es.js +14 -0
  139. package/dist/onramp-DLlhSPQg.js +422 -0
  140. package/dist/onramp-k-EAEepC.mjs +842 -0
  141. package/dist/parseSignature-D1tZHglo.js +16 -0
  142. package/dist/parseSignature-DM0lwcDr.mjs +8883 -0
  143. package/dist/pay-with-exchange---G2M1Ag.js +280 -0
  144. package/dist/pay-with-exchange-CFIcUXUe.mjs +512 -0
  145. package/dist/property-Bd8U3_QP.mjs +618 -0
  146. package/dist/property-DissjCbZ.js +27 -0
  147. package/dist/receive-B9LCljO6.mjs +228 -0
  148. package/dist/receive-E8H6GDOX.js +131 -0
  149. package/dist/send-B-AooLph.js +554 -0
  150. package/dist/send-DZd_xhsd.mjs +1155 -0
  151. package/dist/socials-ChWFLEFe.mjs +611 -0
  152. package/dist/socials-YSUYSh8o.js +250 -0
  153. package/dist/swaps-DpR9W9Ld.js +1050 -0
  154. package/dist/swaps-Du7-Ui_V.mjs +1752 -0
  155. package/dist/transactions-DhsK5-QJ.mjs +35 -0
  156. package/dist/transactions-VPsz2OLe.js +16 -0
  157. package/dist/w3m-modal-DhomfjKU.js +891 -0
  158. package/dist/w3m-modal-KuYD-zqQ.mjs +1759 -0
  159. package/package.json +51 -0
  160. package/readme.md +1 -0
@@ -0,0 +1,215 @@
1
+ import { P as t, A as m, a as d } from "./index-DV7SQwgn.mjs";
2
+ import { W as z, b as B, c as G } from "./index-DV7SQwgn.mjs";
3
+ const U = 3e5;
4
+ async function E(e) {
5
+ return t.handleOpenPay(e);
6
+ }
7
+ async function p(e, n = U) {
8
+ if (n <= 0)
9
+ throw new m(d.INVALID_PAYMENT_CONFIG, "Timeout must be greater than 0");
10
+ try {
11
+ await E(e);
12
+ } catch (s) {
13
+ throw s instanceof m ? s : new m(d.UNABLE_TO_INITIATE_PAYMENT, s.message);
14
+ }
15
+ return new Promise((s, b) => {
16
+ let r = !1;
17
+ const i = setTimeout(() => {
18
+ r || (r = !0, c(), b(new m(d.GENERIC_PAYMENT_ERROR, "Payment timeout")));
19
+ }, n);
20
+ function o() {
21
+ if (r)
22
+ return;
23
+ const a = t.state.currentPayment, u = t.state.error, C = t.state.isPaymentInProgress;
24
+ if ((a == null ? void 0 : a.status) === "SUCCESS") {
25
+ r = !0, c(), clearTimeout(i), s({
26
+ success: !0,
27
+ result: a.result
28
+ });
29
+ return;
30
+ }
31
+ if ((a == null ? void 0 : a.status) === "FAILED") {
32
+ r = !0, c(), clearTimeout(i), s({
33
+ success: !1,
34
+ error: u || "Payment failed"
35
+ });
36
+ return;
37
+ }
38
+ u && !C && !a && (r = !0, c(), clearTimeout(i), s({
39
+ success: !1,
40
+ error: u
41
+ }));
42
+ }
43
+ const y = l("currentPayment", o), S = l("error", o), D = l("isPaymentInProgress", o), c = T([
44
+ y,
45
+ S,
46
+ D
47
+ ]);
48
+ o();
49
+ });
50
+ }
51
+ function P() {
52
+ return t.getExchanges();
53
+ }
54
+ function w() {
55
+ var e;
56
+ return (e = t.state.currentPayment) == null ? void 0 : e.result;
57
+ }
58
+ function h() {
59
+ return t.state.error;
60
+ }
61
+ function k() {
62
+ return t.state.isPaymentInProgress;
63
+ }
64
+ function l(e, n) {
65
+ return t.subscribeKey(e, n);
66
+ }
67
+ function T(e) {
68
+ return () => {
69
+ e.forEach((n) => {
70
+ try {
71
+ n();
72
+ } catch {
73
+ }
74
+ });
75
+ };
76
+ }
77
+ const g = {
78
+ network: "eip155:8453",
79
+ asset: "native",
80
+ metadata: {
81
+ name: "Ethereum",
82
+ symbol: "ETH",
83
+ decimals: 18
84
+ }
85
+ }, A = {
86
+ network: "eip155:8453",
87
+ asset: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
88
+ metadata: {
89
+ name: "USD Coin",
90
+ symbol: "USDC",
91
+ decimals: 6
92
+ }
93
+ }, I = {
94
+ network: "eip155:84532",
95
+ asset: "native",
96
+ metadata: {
97
+ name: "Ethereum",
98
+ symbol: "ETH",
99
+ decimals: 18
100
+ }
101
+ }, N = {
102
+ network: "eip155:1",
103
+ asset: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
104
+ metadata: {
105
+ name: "USD Coin",
106
+ symbol: "USDC",
107
+ decimals: 6
108
+ }
109
+ }, x = {
110
+ network: "eip155:10",
111
+ asset: "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
112
+ metadata: {
113
+ name: "USD Coin",
114
+ symbol: "USDC",
115
+ decimals: 6
116
+ }
117
+ }, v = {
118
+ network: "eip155:42161",
119
+ asset: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
120
+ metadata: {
121
+ name: "USD Coin",
122
+ symbol: "USDC",
123
+ decimals: 6
124
+ }
125
+ }, F = {
126
+ network: "eip155:137",
127
+ asset: "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
128
+ metadata: {
129
+ name: "USD Coin",
130
+ symbol: "USDC",
131
+ decimals: 6
132
+ }
133
+ }, K = {
134
+ network: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
135
+ asset: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
136
+ metadata: {
137
+ name: "USD Coin",
138
+ symbol: "USDC",
139
+ decimals: 6
140
+ }
141
+ }, R = {
142
+ network: "eip155:1",
143
+ asset: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
144
+ metadata: {
145
+ name: "Tether USD",
146
+ symbol: "USDT",
147
+ decimals: 6
148
+ }
149
+ }, Y = {
150
+ network: "eip155:10",
151
+ asset: "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
152
+ metadata: {
153
+ name: "Tether USD",
154
+ symbol: "USDT",
155
+ decimals: 6
156
+ }
157
+ }, q = {
158
+ network: "eip155:42161",
159
+ asset: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
160
+ metadata: {
161
+ name: "Tether USD",
162
+ symbol: "USDT",
163
+ decimals: 6
164
+ }
165
+ }, _ = {
166
+ network: "eip155:137",
167
+ asset: "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
168
+ metadata: {
169
+ name: "Tether USD",
170
+ symbol: "USDT",
171
+ decimals: 6
172
+ }
173
+ }, M = {
174
+ network: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
175
+ asset: "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
176
+ metadata: {
177
+ name: "Tether USD",
178
+ symbol: "USDT",
179
+ decimals: 6
180
+ }
181
+ }, O = {
182
+ network: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
183
+ asset: "native",
184
+ metadata: {
185
+ name: "Solana",
186
+ symbol: "SOL",
187
+ decimals: 9
188
+ }
189
+ };
190
+ export {
191
+ t as PayController,
192
+ z as W3mPayLoadingView,
193
+ B as W3mPayQuoteView,
194
+ G as W3mPayView,
195
+ v as arbitrumUSDC,
196
+ q as arbitrumUSDT,
197
+ g as baseETH,
198
+ I as baseSepoliaETH,
199
+ A as baseUSDC,
200
+ N as ethereumUSDC,
201
+ R as ethereumUSDT,
202
+ P as getExchanges,
203
+ k as getIsPaymentInProgress,
204
+ h as getPayError,
205
+ w as getPayResult,
206
+ E as openPay,
207
+ x as optimismUSDC,
208
+ Y as optimismUSDT,
209
+ p as pay,
210
+ F as polygonUSDC,
211
+ _ as polygonUSDT,
212
+ O as solanaSOL,
213
+ K as solanaUSDC,
214
+ M as solanaUSDT
215
+ };