@directcryptopay/sdk 0.1.0

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 (141) hide show
  1. package/README.md +357 -0
  2. package/dist/ConstantsUtil-B-_-u8aQ.js +6 -0
  3. package/dist/add-KF4m4jFK.js +19 -0
  4. package/dist/all-wallets-D6NAjQgX.js +10 -0
  5. package/dist/app-store-D7TTn-EO.js +21 -0
  6. package/dist/apple-DjX2E2hE.js +22 -0
  7. package/dist/arrow-bottom-C0YrNJYB.js +12 -0
  8. package/dist/arrow-bottom-circle-Dlxvx_XG.js +15 -0
  9. package/dist/arrow-left-x8_-lUyK.js +12 -0
  10. package/dist/arrow-right-BTZybj80.js +12 -0
  11. package/dist/arrow-top-LzH7iLCp.js +12 -0
  12. package/dist/bank-23jp-IV_.js +18 -0
  13. package/dist/browser-EjoorDid.js +18 -0
  14. package/dist/card-DGgWwtwC.js +18 -0
  15. package/dist/ccip-BMANewTU.js +150 -0
  16. package/dist/checkmark-B1qcQhBo.js +15 -0
  17. package/dist/checkmark-bold-Cyc4IEEJ.js +12 -0
  18. package/dist/chevron-bottom-ClHs08rB.js +12 -0
  19. package/dist/chevron-left-O8h_551_.js +12 -0
  20. package/dist/chevron-right-DP3xpyIA.js +12 -0
  21. package/dist/chevron-top-CuwkBUs9.js +12 -0
  22. package/dist/chrome-store-zfT_aJ3R.js +65 -0
  23. package/dist/clock-DHZqivIS.js +12 -0
  24. package/dist/close-Cp9rNAw4.js +12 -0
  25. package/dist/coinPlaceholder-U7-T1KKQ.js +12 -0
  26. package/dist/compass-Ds5-PRSR.js +12 -0
  27. package/dist/copy-Jg4HdIMf.js +19 -0
  28. package/dist/core/api.d.ts +30 -0
  29. package/dist/core/config.d.ts +59 -0
  30. package/dist/core/logic.d.ts +2 -0
  31. package/dist/core/wallet.d.ts +34 -0
  32. package/dist/cursor-DmMevduB.js +7 -0
  33. package/dist/cursor-transparent-Dn9-1SV8.js +16 -0
  34. package/dist/dcp-sdk.umd.js +12000 -0
  35. package/dist/dcp.d.ts +10 -0
  36. package/dist/desktop-C4udXXlZ.js +13 -0
  37. package/dist/disconnect-wd1BYLxt.js +12 -0
  38. package/dist/discord-DthxuCAP.js +21 -0
  39. package/dist/email-B3jSnUFE.js +696 -0
  40. package/dist/embedded-wallet-CJHmoBI2.js +468 -0
  41. package/dist/etherscan-Cjp4xfMW.js +10 -0
  42. package/dist/exclamation-triangle-CRNR5WOy.js +8 -0
  43. package/dist/extension-Cydk0mZt.js +12 -0
  44. package/dist/external-link-CuPTAoq9.js +12 -0
  45. package/dist/facebook-CghqXmdf.js +30 -0
  46. package/dist/farcaster-BREqMX4y.js +16 -0
  47. package/dist/filters-Dn_Ys7ew.js +12 -0
  48. package/dist/github-C-A7JmIY.js +22 -0
  49. package/dist/google-CCdM_naE.js +22 -0
  50. package/dist/hashTypedData-D2Qmzscs.js +197 -0
  51. package/dist/help-circle-DIH4vyj3.js +16 -0
  52. package/dist/id-DkJ0gBuy.js +16 -0
  53. package/dist/if-defined-BciplFKz.js +744 -0
  54. package/dist/image-qMjyiXM0.js +8 -0
  55. package/dist/index--3Zp0jAb.js +45 -0
  56. package/dist/index-1adX-Fit.js +65 -0
  57. package/dist/index-AvC0IGDl.js +7864 -0
  58. package/dist/index-B2-vKLd8.js +276 -0
  59. package/dist/index-B2iDt0TJ.js +146 -0
  60. package/dist/index-B5zkXsLJ.js +320 -0
  61. package/dist/index-B7K86vWu.js +1742 -0
  62. package/dist/index-BBkcvSiY.js +511 -0
  63. package/dist/index-BdjxQs66.js +181 -0
  64. package/dist/index-Bijd4_Ns.js +294 -0
  65. package/dist/index-BpXOsxzU.js +387 -0
  66. package/dist/index-C1QEJL-2.js +572 -0
  67. package/dist/index-C27dwOyE.js +243 -0
  68. package/dist/index-C4BX3QW8.js +58 -0
  69. package/dist/index-CMPIqsB1.js +170 -0
  70. package/dist/index-CTYngdl0.js +21991 -0
  71. package/dist/index-CUdQyyFn.js +51 -0
  72. package/dist/index-CX60z_g2.js +573 -0
  73. package/dist/index-CppCc1n8.js +65 -0
  74. package/dist/index-CqVegmN4.js +559 -0
  75. package/dist/index-CuiyMA8F.js +78 -0
  76. package/dist/index-CwB_qRfM.js +305 -0
  77. package/dist/index-CxOF7GqE.js +265 -0
  78. package/dist/index-D-IzHD_8.js +54 -0
  79. package/dist/index-DRNiFv9I.js +218 -0
  80. package/dist/index-Da8oZh8H.js +838 -0
  81. package/dist/index-DiHImG4L.js +44236 -0
  82. package/dist/index-DmOMXRG1.js +181 -0
  83. package/dist/index-DoSYqTQg.js +199 -0
  84. package/dist/index-DpHXq5_E.js +603 -0
  85. package/dist/index-DtCsAVBg.js +78 -0
  86. package/dist/index-Ij6XA6_4.js +77 -0
  87. package/dist/index-SzyBYfzA.js +8490 -0
  88. package/dist/index-eW8y-mXH.js +257 -0
  89. package/dist/index-fxzIDZsb.js +75 -0
  90. package/dist/index-lbhz9evJ.js +97 -0
  91. package/dist/index.d.ts +3 -0
  92. package/dist/index.js +4 -0
  93. package/dist/info-DMIGgjkL.js +7 -0
  94. package/dist/info-circle-CJuIKZSx.js +16 -0
  95. package/dist/lightbulb-qFT6WEWV.js +7 -0
  96. package/dist/localBatchGatewayRequest-CsMVMFBc.js +91 -0
  97. package/dist/mail-DoYgQvOt.js +12 -0
  98. package/dist/mobile-URtsh7o-.js +13 -0
  99. package/dist/more-DoQd10TF.js +15 -0
  100. package/dist/network-placeholder-BBA2Ue6C.js +18 -0
  101. package/dist/nftPlaceholder-C9RXWz9k.js +12 -0
  102. package/dist/off-YcuDQczT.js +12 -0
  103. package/dist/onramp-BfqDIx4o.js +1279 -0
  104. package/dist/parseSignature-280HB24T.js +3560 -0
  105. package/dist/play-store-sFaloG_r.js +36 -0
  106. package/dist/plus-l0wekSht.js +17 -0
  107. package/dist/qr-code-CihrUU4G.js +10 -0
  108. package/dist/receive-dfY1Cu-g.js +186 -0
  109. package/dist/recycle-horizontal-nXu6YaPw.js +13 -0
  110. package/dist/ref-huAzXCX0.js +41 -0
  111. package/dist/refresh-D2ZbVeNC.js +12 -0
  112. package/dist/reown-logo-BMaTMJmc.js +16 -0
  113. package/dist/search-YVM9q3J-.js +12 -0
  114. package/dist/secp256k1-BrysY3Sv.js +1302 -0
  115. package/dist/secp256k1-DPQgTBwQ.js +1510 -0
  116. package/dist/send-BwQZPKxI.js +19 -0
  117. package/dist/send-GyetMVu1.js +1038 -0
  118. package/dist/socials-B0W91J9k.js +574 -0
  119. package/dist/swapHorizontal-Dy_oQEkp.js +12 -0
  120. package/dist/swapHorizontalBold-C4JpaMpc.js +12 -0
  121. package/dist/swapHorizontalMedium-D5NuVZFh.js +20 -0
  122. package/dist/swapHorizontalRoundedBold-Bq4P2MCj.js +12 -0
  123. package/dist/swapVertical-CVQ8Mg03.js +12 -0
  124. package/dist/swaps-CA04SSdK.js +1637 -0
  125. package/dist/telegram-BP4SgW_L.js +20 -0
  126. package/dist/three-dots-BJYGJ-dQ.js +9 -0
  127. package/dist/transactions-Bq-98Tsg.js +37 -0
  128. package/dist/twitch-DTATWo9M.js +22 -0
  129. package/dist/twitterIcon-D5UWPInb.js +10 -0
  130. package/dist/types.d.ts +128 -0
  131. package/dist/ui/Modal.d.ts +9 -0
  132. package/dist/ui/index.d.ts +6 -0
  133. package/dist/verify-Byvj8Wi1.js +12 -0
  134. package/dist/verify-filled-B40taNm0.js +12 -0
  135. package/dist/w3m-modal-HV6SE74G.js +1037 -0
  136. package/dist/wallet-Cp-6Kk88.js +12 -0
  137. package/dist/wallet-placeholder-C3juwA9o.js +18 -0
  138. package/dist/walletconnect-CRkIiLCx.js +36 -0
  139. package/dist/warning-circle-DtvCLwG4.js +16 -0
  140. package/dist/x-Cqyx5eCt.js +16 -0
  141. package/package.json +70 -0
@@ -0,0 +1,320 @@
1
+ import { cz as g, cC as v, cD as y, cA as f, cB as d, cy as m } from "./index-DiHImG4L.js";
2
+ import { n, c as b } from "./if-defined-BciplFKz.js";
3
+ import "./index-CUdQyyFn.js";
4
+ import "./index-fxzIDZsb.js";
5
+ const z = g`
6
+ :host {
7
+ position: relative;
8
+ }
9
+
10
+ button {
11
+ display: flex;
12
+ justify-content: center;
13
+ align-items: center;
14
+ height: 48px;
15
+ width: 100%;
16
+ background-color: var(--wui-color-accent-glass-010);
17
+ border-radius: var(--wui-border-radius-xs);
18
+ border: 1px solid var(--wui-color-accent-glass-010);
19
+ transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
20
+ will-change: background-color;
21
+ }
22
+
23
+ wui-tooltip {
24
+ padding: 7px var(--wui-spacing-s) 8px var(--wui-spacing-s);
25
+ position: absolute;
26
+ top: -8px;
27
+ left: 50%;
28
+ transform: translate(-50%, -100%);
29
+ opacity: 0;
30
+ display: none;
31
+ }
32
+
33
+ @media (hover: hover) and (pointer: fine) {
34
+ button:hover:enabled {
35
+ background-color: var(--wui-color-accent-glass-015);
36
+ }
37
+
38
+ button:active:enabled {
39
+ background-color: var(--wui-color-accent-glass-020);
40
+ }
41
+ }
42
+ `;
43
+ var x = function(o, t, i, r) {
44
+ var a = arguments.length, e = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, i) : r, s;
45
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(o, t, i, r);
46
+ else for (var l = o.length - 1; l >= 0; l--) (s = o[l]) && (e = (a < 3 ? s(e) : a > 3 ? s(t, i, e) : s(t, i)) || e);
47
+ return a > 3 && e && Object.defineProperty(t, i, e), e;
48
+ };
49
+ let w = class extends f {
50
+ constructor() {
51
+ super(...arguments), this.text = "", this.icon = "card";
52
+ }
53
+ render() {
54
+ return d`<button>
55
+ <wui-icon color="accent-100" name=${this.icon} size="lg"></wui-icon>
56
+ </button>`;
57
+ }
58
+ };
59
+ w.styles = [v, y, z];
60
+ x([
61
+ n()
62
+ ], w.prototype, "text", void 0);
63
+ x([
64
+ n()
65
+ ], w.prototype, "icon", void 0);
66
+ w = x([
67
+ b("wui-icon-button")
68
+ ], w);
69
+ const $ = m`<svg width="86" height="96" fill="none">
70
+ <path
71
+ d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z"
72
+ />
73
+ </svg>`, S = m`<svg viewBox="0 0 48 54" fill="none">
74
+ <path
75
+ d="M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z"
76
+ />
77
+ </svg>`, I = m`
78
+ <svg fill="none" viewBox="0 0 36 40">
79
+ <path
80
+ d="M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.61 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z"
81
+ />
82
+ </svg>
83
+ `, k = g`
84
+ :host {
85
+ position: relative;
86
+ border-radius: inherit;
87
+ display: flex;
88
+ justify-content: center;
89
+ align-items: center;
90
+ width: var(--local-width);
91
+ height: var(--local-height);
92
+ }
93
+
94
+ :host([data-round='true']) {
95
+ background: var(--wui-color-gray-glass-002);
96
+ border-radius: 100%;
97
+ outline: 1px solid var(--wui-color-gray-glass-005);
98
+ }
99
+
100
+ svg {
101
+ position: absolute;
102
+ top: 0;
103
+ left: 0;
104
+ width: 100%;
105
+ height: 100%;
106
+ z-index: 1;
107
+ fill: var(--wui-color-gray-glass-002);
108
+ }
109
+
110
+ svg > path {
111
+ stroke: var(--local-stroke);
112
+ }
113
+
114
+ wui-image {
115
+ width: 100%;
116
+ height: 100%;
117
+ -webkit-clip-path: var(--local-path);
118
+ clip-path: var(--local-path);
119
+ background: var(--wui-color-gray-glass-002);
120
+ }
121
+
122
+ wui-icon {
123
+ transform: translateY(-5%);
124
+ width: var(--local-icon-size);
125
+ height: var(--local-icon-size);
126
+ }
127
+ `;
128
+ var h = function(o, t, i, r) {
129
+ var a = arguments.length, e = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, i) : r, s;
130
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(o, t, i, r);
131
+ else for (var l = o.length - 1; l >= 0; l--) (s = o[l]) && (e = (a < 3 ? s(e) : a > 3 ? s(t, i, e) : s(t, i)) || e);
132
+ return a > 3 && e && Object.defineProperty(t, i, e), e;
133
+ };
134
+ let c = class extends f {
135
+ constructor() {
136
+ super(...arguments), this.size = "md", this.name = "uknown", this.networkImagesBySize = {
137
+ sm: I,
138
+ md: S,
139
+ lg: $
140
+ }, this.selected = !1, this.round = !1;
141
+ }
142
+ render() {
143
+ return this.round ? (this.dataset.round = "true", this.style.cssText = `
144
+ --local-width: var(--wui-spacing-3xl);
145
+ --local-height: var(--wui-spacing-3xl);
146
+ --local-icon-size: var(--wui-spacing-l);
147
+ `) : this.style.cssText = `
148
+
149
+ --local-path: var(--wui-path-network-${this.size});
150
+ --local-width: var(--wui-width-network-${this.size});
151
+ --local-height: var(--wui-height-network-${this.size});
152
+ --local-icon-size: var(--wui-icon-size-network-${this.size});
153
+ `, d`${this.templateVisual()} ${this.svgTemplate()} `;
154
+ }
155
+ svgTemplate() {
156
+ return this.round ? null : this.networkImagesBySize[this.size];
157
+ }
158
+ templateVisual() {
159
+ return this.imageSrc ? d`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>` : d`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`;
160
+ }
161
+ };
162
+ c.styles = [v, k];
163
+ h([
164
+ n()
165
+ ], c.prototype, "size", void 0);
166
+ h([
167
+ n()
168
+ ], c.prototype, "name", void 0);
169
+ h([
170
+ n({ type: Object })
171
+ ], c.prototype, "networkImagesBySize", void 0);
172
+ h([
173
+ n()
174
+ ], c.prototype, "imageSrc", void 0);
175
+ h([
176
+ n({ type: Boolean })
177
+ ], c.prototype, "selected", void 0);
178
+ h([
179
+ n({ type: Boolean })
180
+ ], c.prototype, "round", void 0);
181
+ c = h([
182
+ b("wui-network-image")
183
+ ], c);
184
+ const j = g`
185
+ :host {
186
+ position: relative;
187
+ background-color: var(--wui-color-gray-glass-002);
188
+ display: flex;
189
+ justify-content: center;
190
+ align-items: center;
191
+ width: var(--local-size);
192
+ height: var(--local-size);
193
+ border-radius: inherit;
194
+ border-radius: var(--local-border-radius);
195
+ }
196
+
197
+ :host > wui-flex {
198
+ overflow: hidden;
199
+ border-radius: inherit;
200
+ border-radius: var(--local-border-radius);
201
+ }
202
+
203
+ :host::after {
204
+ content: '';
205
+ position: absolute;
206
+ top: 0;
207
+ bottom: 0;
208
+ left: 0;
209
+ right: 0;
210
+ border-radius: inherit;
211
+ border: 1px solid var(--wui-color-gray-glass-010);
212
+ pointer-events: none;
213
+ }
214
+
215
+ :host([name='Extension'])::after {
216
+ border: 1px solid var(--wui-color-accent-glass-010);
217
+ }
218
+
219
+ :host([data-wallet-icon='allWallets']) {
220
+ background-color: var(--wui-all-wallets-bg-100);
221
+ }
222
+
223
+ :host([data-wallet-icon='allWallets'])::after {
224
+ border: 1px solid var(--wui-color-accent-glass-010);
225
+ }
226
+
227
+ wui-icon[data-parent-size='inherit'] {
228
+ width: 75%;
229
+ height: 75%;
230
+ align-items: center;
231
+ }
232
+
233
+ wui-icon[data-parent-size='sm'] {
234
+ width: 18px;
235
+ height: 18px;
236
+ }
237
+
238
+ wui-icon[data-parent-size='md'] {
239
+ width: 24px;
240
+ height: 24px;
241
+ }
242
+
243
+ wui-icon[data-parent-size='lg'] {
244
+ width: 42px;
245
+ height: 42px;
246
+ }
247
+
248
+ wui-icon[data-parent-size='full'] {
249
+ width: 100%;
250
+ height: 100%;
251
+ }
252
+
253
+ :host > wui-icon-box {
254
+ position: absolute;
255
+ overflow: hidden;
256
+ right: -1px;
257
+ bottom: -2px;
258
+ z-index: 1;
259
+ border: 2px solid var(--wui-color-bg-150, #1e1f1f);
260
+ padding: 1px;
261
+ }
262
+ `;
263
+ var p = function(o, t, i, r) {
264
+ var a = arguments.length, e = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, i) : r, s;
265
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(o, t, i, r);
266
+ else for (var l = o.length - 1; l >= 0; l--) (s = o[l]) && (e = (a < 3 ? s(e) : a > 3 ? s(t, i, e) : s(t, i)) || e);
267
+ return a > 3 && e && Object.defineProperty(t, i, e), e;
268
+ };
269
+ let u = class extends f {
270
+ constructor() {
271
+ super(...arguments), this.size = "md", this.name = "", this.installed = !1, this.badgeSize = "xs";
272
+ }
273
+ render() {
274
+ let t = "xxs";
275
+ return this.size === "lg" ? t = "m" : this.size === "md" ? t = "xs" : t = "xxs", this.style.cssText = `
276
+ --local-border-radius: var(--wui-border-radius-${t});
277
+ --local-size: var(--wui-wallet-image-size-${this.size});
278
+ `, this.walletIcon && (this.dataset.walletIcon = this.walletIcon), d`
279
+ <wui-flex justifyContent="center" alignItems="center"> ${this.templateVisual()} </wui-flex>
280
+ `;
281
+ }
282
+ templateVisual() {
283
+ return this.imageSrc ? d`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>` : this.walletIcon ? d`<wui-icon
284
+ data-parent-size="md"
285
+ size="md"
286
+ color="inherit"
287
+ name=${this.walletIcon}
288
+ ></wui-icon>` : d`<wui-icon
289
+ data-parent-size=${this.size}
290
+ size="inherit"
291
+ color="inherit"
292
+ name="walletPlaceholder"
293
+ ></wui-icon>`;
294
+ }
295
+ };
296
+ u.styles = [y, v, j];
297
+ p([
298
+ n()
299
+ ], u.prototype, "size", void 0);
300
+ p([
301
+ n()
302
+ ], u.prototype, "name", void 0);
303
+ p([
304
+ n()
305
+ ], u.prototype, "imageSrc", void 0);
306
+ p([
307
+ n()
308
+ ], u.prototype, "walletIcon", void 0);
309
+ p([
310
+ n({ type: Boolean })
311
+ ], u.prototype, "installed", void 0);
312
+ p([
313
+ n()
314
+ ], u.prototype, "badgeSize", void 0);
315
+ u = p([
316
+ b("wui-wallet-image")
317
+ ], u);
318
+ export {
319
+ S as n
320
+ };