@directcryptopay/sdk 0.2.4 → 0.3.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 (127) hide show
  1. package/README.md +51 -87
  2. package/dist/core/config.d.ts +9 -46
  3. package/dist/core/iframe.d.ts +16 -0
  4. package/dist/dcp-sdk.umd.js +1 -12811
  5. package/dist/dcp.d.ts +12 -5
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.js +219 -2
  8. package/dist/types.d.ts +26 -164
  9. package/package.json +3 -13
  10. package/dist/ExchangeController-CbO41bcH.js +0 -217
  11. package/dist/HelpersUtil-DHm6EVSE.js +0 -120
  12. package/dist/NavigationUtil-kj9LEOOd.js +0 -8
  13. package/dist/PhArrowCircleDown-lsK25DCk.js +0 -73
  14. package/dist/PhArrowClockwise-NeKHZ1co.js +0 -73
  15. package/dist/PhArrowDown-C9AkNvLs.js +0 -73
  16. package/dist/PhArrowLeft-RNfIQP1X.js +0 -73
  17. package/dist/PhArrowRight-DM1tna0G.js +0 -73
  18. package/dist/PhArrowSquareOut-S5XYbAZj.js +0 -73
  19. package/dist/PhArrowUp-DmktzOWy.js +0 -73
  20. package/dist/PhArrowUpRight-BkNeW_5i.js +0 -73
  21. package/dist/PhArrowsClockwise-CQ4pG76b.js +0 -73
  22. package/dist/PhArrowsDownUp-H6gxaNM6.js +0 -73
  23. package/dist/PhArrowsLeftRight-DZSsfMR6.js +0 -73
  24. package/dist/PhBank-4_9QzqIB.js +0 -73
  25. package/dist/PhBrowser-B-JSznId.js +0 -73
  26. package/dist/PhCaretDown-vV5oHMNi.js +0 -73
  27. package/dist/PhCaretLeft-BLo6Y_f4.js +0 -73
  28. package/dist/PhCaretRight-CqQN4TT3.js +0 -73
  29. package/dist/PhCaretUp-Df7UCAHy.js +0 -73
  30. package/dist/PhCheck-gtpfK4ed.js +0 -73
  31. package/dist/PhCircleHalf-Uq7dwDYw.js +0 -73
  32. package/dist/PhClock-SDCW-NmF.js +0 -73
  33. package/dist/PhCompass-B7hgtdx-.js +0 -73
  34. package/dist/PhCopy-BcnhyXCy.js +0 -73
  35. package/dist/PhCreditCard-BJjByVgu.js +0 -73
  36. package/dist/PhCurrencyDollar-B7ZXqXBy.js +0 -73
  37. package/dist/PhDesktop-B3VKPuJx.js +0 -73
  38. package/dist/PhDeviceMobile-Bnd0TYEH.js +0 -73
  39. package/dist/PhDotsThree-yyMWyZ-R.js +0 -73
  40. package/dist/PhEnvelope-67uzHbI9.js +0 -73
  41. package/dist/PhFunnelSimple-B-DCsloI.js +0 -73
  42. package/dist/PhGlobe-TMm_6qGk.js +0 -73
  43. package/dist/PhIdentificationCard-CePPD2xc.js +0 -73
  44. package/dist/PhImage-gY96WtHR.js +0 -73
  45. package/dist/PhInfo-DRQM_ZDP.js +0 -73
  46. package/dist/PhLightbulb-B0TxPfZ1.js +0 -73
  47. package/dist/PhMagnifyingGlass-B8si5_6W.js +0 -73
  48. package/dist/PhPaperPlaneRight-DVu5PLYd.js +0 -73
  49. package/dist/PhPlus-BfTsQnUz.js +0 -73
  50. package/dist/PhPower-CxYUGOWn.js +0 -73
  51. package/dist/PhPuzzlePiece-CQ4wh0gV.js +0 -73
  52. package/dist/PhQrCode-BuJ97NYJ.js +0 -73
  53. package/dist/PhQuestion-kJoP8Mja.js +0 -73
  54. package/dist/PhQuestionMark-C46ZkFpu.js +0 -73
  55. package/dist/PhSealCheck-Eh8jVqSN.js +0 -73
  56. package/dist/PhSignOut-jk97OSVt.js +0 -73
  57. package/dist/PhSpinner-CiYOhwMg.js +0 -73
  58. package/dist/PhTrash-pxerMqzd.js +0 -73
  59. package/dist/PhUser-BMg0VV4A.js +0 -73
  60. package/dist/PhVault-DYQvx5A-.js +0 -73
  61. package/dist/PhWarning-NLC5Mj87.js +0 -73
  62. package/dist/PhWarningCircle-Ch2jU9fA.js +0 -73
  63. package/dist/PhX-Bx4wpwm3.js +0 -73
  64. package/dist/SwapController-Ch0FFTEt.js +0 -457
  65. package/dist/ccip-BrGhNXIM.js +0 -150
  66. package/dist/core/api.d.ts +0 -39
  67. package/dist/core/logic.d.ts +0 -2
  68. package/dist/core/wallet.d.ts +0 -55
  69. package/dist/data-capture-CpafmuCb.js +0 -490
  70. package/dist/email-Dcg4jlai.js +0 -344
  71. package/dist/embedded-wallet-DeoRdAPw.js +0 -820
  72. package/dist/features-B9Nde43h.js +0 -274
  73. package/dist/hashTypedData-a7b8tdkO.js +0 -197
  74. package/dist/if-defined-k21LutCn.js +0 -10
  75. package/dist/index-9vLw53Xl.js +0 -228
  76. package/dist/index-B5wUyynz.js +0 -107
  77. package/dist/index-B8LkUrww.js +0 -86
  78. package/dist/index-BA0VwKg0.js +0 -8189
  79. package/dist/index-BB9JJ24N.js +0 -125
  80. package/dist/index-BCkEvPQ6.js +0 -172
  81. package/dist/index-BDeO_csr.js +0 -171
  82. package/dist/index-Bb7babLF.js +0 -1281
  83. package/dist/index-BjOhprVS.js +0 -199
  84. package/dist/index-BjyMgZsf.js +0 -218
  85. package/dist/index-BkThIDLX.js +0 -159
  86. package/dist/index-BmFs6nb7.js +0 -209
  87. package/dist/index-C1QEJL-2.js +0 -572
  88. package/dist/index-C4qc4PdD.js +0 -387
  89. package/dist/index-CAPvUh14.js +0 -1750
  90. package/dist/index-CBMU3PTE.js +0 -65
  91. package/dist/index-CGwPkJLF.js +0 -355
  92. package/dist/index-CNGEqX3D.js +0 -153
  93. package/dist/index-CRlCq6IB.js +0 -7981
  94. package/dist/index-Cg_o-i9X.js +0 -118
  95. package/dist/index-D1BvhCbI.js +0 -62
  96. package/dist/index-DFi8TiHc.js +0 -128
  97. package/dist/index-DLwuveL9.js +0 -555
  98. package/dist/index-DMn7ktUQ.js +0 -56
  99. package/dist/index-DOXwtuwa.js +0 -117
  100. package/dist/index-DPPOW_Tp.js +0 -118
  101. package/dist/index-DQpzHpW-.js +0 -517
  102. package/dist/index-DXHg5C-W.js +0 -276
  103. package/dist/index-DcYjZV4H.js +0 -110
  104. package/dist/index-DeL88Lwc.js +0 -41655
  105. package/dist/index-DrWVlf8b.js +0 -46
  106. package/dist/index-Dsfuc4rB.js +0 -123
  107. package/dist/index-DuTny38n.js +0 -1175
  108. package/dist/index-Nfjb6bV0.js +0 -21991
  109. package/dist/index-WwwdQSN2.js +0 -85
  110. package/dist/index-Yha9Afch.js +0 -174
  111. package/dist/index-cbQHN7GC.js +0 -100
  112. package/dist/index-hyG3cYsv.js +0 -1083
  113. package/dist/index-qLxmmPaL.js +0 -257
  114. package/dist/localBatchGatewayRequest-vfcvRH0G.js +0 -91
  115. package/dist/onramp-BSiyOX4L.js +0 -855
  116. package/dist/parseSignature-CdCMAPZN.js +0 -3304
  117. package/dist/pay-with-exchange-CduNoMEz.js +0 -525
  118. package/dist/property-Bd8U3_QP.js +0 -618
  119. package/dist/receive-CrmptJlq.js +0 -232
  120. package/dist/ref-SOwYtCZb.js +0 -107
  121. package/dist/send-oMcHMEr6.js +0 -1166
  122. package/dist/socials-C0A4-FbY.js +0 -620
  123. package/dist/swaps-CbJJ9Ciu.js +0 -1760
  124. package/dist/transactions-BDfCoBS5.js +0 -37
  125. package/dist/ui/Modal.d.ts +0 -9
  126. package/dist/ui/index.d.ts +0 -6
  127. package/dist/w3m-modal-BjsTkny7.js +0 -1706
@@ -1,46 +0,0 @@
1
- import { cU as p, cV as d, cX as f, cY as l } from "./index-DeL88Lwc.js";
2
- import { n as m, c as h } from "./index-DuTny38n.js";
3
- const x = p`
4
- :host {
5
- position: relative;
6
- display: flex;
7
- width: 100%;
8
- height: 1px;
9
- background-color: ${({ tokens: e }) => e.theme.borderPrimary};
10
- justify-content: center;
11
- align-items: center;
12
- }
13
-
14
- :host > wui-text {
15
- position: absolute;
16
- padding: 0px 8px;
17
- background-color: ${({ tokens: e }) => e.theme.backgroundPrimary};
18
- transition: background-color ${({ durations: e }) => e.lg}
19
- ${({ easings: e }) => e["ease-out-power-2"]};
20
- will-change: background-color;
21
- }
22
- `;
23
- var u = function(e, r, o, n) {
24
- var i = arguments.length, t = i < 3 ? r : n === null ? n = Object.getOwnPropertyDescriptor(r, o) : n, a;
25
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(e, r, o, n);
26
- else for (var s = e.length - 1; s >= 0; s--) (a = e[s]) && (t = (i < 3 ? a(t) : i > 3 ? a(r, o, t) : a(r, o)) || t);
27
- return i > 3 && t && Object.defineProperty(r, o, t), t;
28
- };
29
- let c = class extends f {
30
- constructor() {
31
- super(...arguments), this.text = "";
32
- }
33
- render() {
34
- return l`${this.template()}`;
35
- }
36
- template() {
37
- return this.text ? l`<wui-text variant="md-regular" color="secondary">${this.text}</wui-text>` : null;
38
- }
39
- };
40
- c.styles = [d, x];
41
- u([
42
- m()
43
- ], c.prototype, "text", void 0);
44
- c = u([
45
- h("wui-separator")
46
- ], c);
@@ -1,123 +0,0 @@
1
- import { cU as u, cV as p, cX as m, cY as c } from "./index-DeL88Lwc.js";
2
- import { n as s, c as f } from "./index-DuTny38n.js";
3
- import "./index-DFi8TiHc.js";
4
- import "./index-Cg_o-i9X.js";
5
- const w = u`
6
- :host {
7
- position: relative;
8
- background-color: ${({ tokens: e }) => e.theme.foregroundTertiary};
9
- display: flex;
10
- justify-content: center;
11
- align-items: center;
12
- border-radius: inherit;
13
- border-radius: var(--local-border-radius);
14
- }
15
-
16
- :host([data-image='true']) {
17
- background-color: transparent;
18
- }
19
-
20
- :host > wui-flex {
21
- overflow: hidden;
22
- border-radius: inherit;
23
- border-radius: var(--local-border-radius);
24
- }
25
-
26
- :host([data-size='sm']) {
27
- width: 32px;
28
- height: 32px;
29
- }
30
-
31
- :host([data-size='md']) {
32
- width: 40px;
33
- height: 40px;
34
- }
35
-
36
- :host([data-size='lg']) {
37
- width: 56px;
38
- height: 56px;
39
- }
40
-
41
- :host([name='Extension'])::after {
42
- border: 1px solid ${({ colors: e }) => e.accent010};
43
- }
44
-
45
- :host([data-wallet-icon='allWallets'])::after {
46
- border: 1px solid ${({ colors: e }) => e.accent010};
47
- }
48
-
49
- wui-icon[data-parent-size='inherit'] {
50
- width: 75%;
51
- height: 75%;
52
- align-items: center;
53
- }
54
-
55
- wui-icon[data-parent-size='sm'] {
56
- width: 32px;
57
- height: 32px;
58
- }
59
-
60
- wui-icon[data-parent-size='md'] {
61
- width: 40px;
62
- height: 40px;
63
- }
64
-
65
- :host > wui-icon-box {
66
- position: absolute;
67
- overflow: hidden;
68
- right: -1px;
69
- bottom: -2px;
70
- z-index: 1;
71
- border: 2px solid ${({ tokens: e }) => e.theme.backgroundPrimary};
72
- padding: 1px;
73
- }
74
- `;
75
- var r = function(e, t, o, n) {
76
- var l = arguments.length, a = l < 3 ? t : n === null ? n = Object.getOwnPropertyDescriptor(t, o) : n, d;
77
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, o, n);
78
- else for (var h = e.length - 1; h >= 0; h--) (d = e[h]) && (a = (l < 3 ? d(a) : l > 3 ? d(t, o, a) : d(t, o)) || a);
79
- return l > 3 && a && Object.defineProperty(t, o, a), a;
80
- };
81
- let i = class extends m {
82
- constructor() {
83
- super(...arguments), this.size = "md", this.name = "", this.installed = !1, this.badgeSize = "xs";
84
- }
85
- render() {
86
- let t = "1";
87
- return this.size === "lg" ? t = "4" : this.size === "md" ? t = "2" : this.size === "sm" && (t = "1"), this.style.cssText = `
88
- --local-border-radius: var(--apkt-borderRadius-${t});
89
- `, this.dataset.size = this.size, this.imageSrc && (this.dataset.image = "true"), this.walletIcon && (this.dataset.walletIcon = this.walletIcon), c`
90
- <wui-flex justifyContent="center" alignItems="center"> ${this.templateVisual()} </wui-flex>
91
- `;
92
- }
93
- templateVisual() {
94
- return this.imageSrc ? c`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>` : this.walletIcon ? c`<wui-icon size="md" color="default" name=${this.walletIcon}></wui-icon>` : c`<wui-icon
95
- data-parent-size=${this.size}
96
- size="inherit"
97
- color="inherit"
98
- name="wallet"
99
- ></wui-icon>`;
100
- }
101
- };
102
- i.styles = [p, w];
103
- r([
104
- s()
105
- ], i.prototype, "size", void 0);
106
- r([
107
- s()
108
- ], i.prototype, "name", void 0);
109
- r([
110
- s()
111
- ], i.prototype, "imageSrc", void 0);
112
- r([
113
- s()
114
- ], i.prototype, "walletIcon", void 0);
115
- r([
116
- s({ type: Boolean })
117
- ], i.prototype, "installed", void 0);
118
- r([
119
- s()
120
- ], i.prototype, "badgeSize", void 0);
121
- i = r([
122
- f("wui-wallet-image")
123
- ], i);