@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.
- package/README.md +51 -87
- package/dist/core/config.d.ts +9 -46
- package/dist/core/iframe.d.ts +16 -0
- package/dist/dcp-sdk.umd.js +1 -12811
- package/dist/dcp.d.ts +12 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +219 -2
- package/dist/types.d.ts +26 -164
- package/package.json +3 -13
- package/dist/ExchangeController-CbO41bcH.js +0 -217
- package/dist/HelpersUtil-DHm6EVSE.js +0 -120
- package/dist/NavigationUtil-kj9LEOOd.js +0 -8
- package/dist/PhArrowCircleDown-lsK25DCk.js +0 -73
- package/dist/PhArrowClockwise-NeKHZ1co.js +0 -73
- package/dist/PhArrowDown-C9AkNvLs.js +0 -73
- package/dist/PhArrowLeft-RNfIQP1X.js +0 -73
- package/dist/PhArrowRight-DM1tna0G.js +0 -73
- package/dist/PhArrowSquareOut-S5XYbAZj.js +0 -73
- package/dist/PhArrowUp-DmktzOWy.js +0 -73
- package/dist/PhArrowUpRight-BkNeW_5i.js +0 -73
- package/dist/PhArrowsClockwise-CQ4pG76b.js +0 -73
- package/dist/PhArrowsDownUp-H6gxaNM6.js +0 -73
- package/dist/PhArrowsLeftRight-DZSsfMR6.js +0 -73
- package/dist/PhBank-4_9QzqIB.js +0 -73
- package/dist/PhBrowser-B-JSznId.js +0 -73
- package/dist/PhCaretDown-vV5oHMNi.js +0 -73
- package/dist/PhCaretLeft-BLo6Y_f4.js +0 -73
- package/dist/PhCaretRight-CqQN4TT3.js +0 -73
- package/dist/PhCaretUp-Df7UCAHy.js +0 -73
- package/dist/PhCheck-gtpfK4ed.js +0 -73
- package/dist/PhCircleHalf-Uq7dwDYw.js +0 -73
- package/dist/PhClock-SDCW-NmF.js +0 -73
- package/dist/PhCompass-B7hgtdx-.js +0 -73
- package/dist/PhCopy-BcnhyXCy.js +0 -73
- package/dist/PhCreditCard-BJjByVgu.js +0 -73
- package/dist/PhCurrencyDollar-B7ZXqXBy.js +0 -73
- package/dist/PhDesktop-B3VKPuJx.js +0 -73
- package/dist/PhDeviceMobile-Bnd0TYEH.js +0 -73
- package/dist/PhDotsThree-yyMWyZ-R.js +0 -73
- package/dist/PhEnvelope-67uzHbI9.js +0 -73
- package/dist/PhFunnelSimple-B-DCsloI.js +0 -73
- package/dist/PhGlobe-TMm_6qGk.js +0 -73
- package/dist/PhIdentificationCard-CePPD2xc.js +0 -73
- package/dist/PhImage-gY96WtHR.js +0 -73
- package/dist/PhInfo-DRQM_ZDP.js +0 -73
- package/dist/PhLightbulb-B0TxPfZ1.js +0 -73
- package/dist/PhMagnifyingGlass-B8si5_6W.js +0 -73
- package/dist/PhPaperPlaneRight-DVu5PLYd.js +0 -73
- package/dist/PhPlus-BfTsQnUz.js +0 -73
- package/dist/PhPower-CxYUGOWn.js +0 -73
- package/dist/PhPuzzlePiece-CQ4wh0gV.js +0 -73
- package/dist/PhQrCode-BuJ97NYJ.js +0 -73
- package/dist/PhQuestion-kJoP8Mja.js +0 -73
- package/dist/PhQuestionMark-C46ZkFpu.js +0 -73
- package/dist/PhSealCheck-Eh8jVqSN.js +0 -73
- package/dist/PhSignOut-jk97OSVt.js +0 -73
- package/dist/PhSpinner-CiYOhwMg.js +0 -73
- package/dist/PhTrash-pxerMqzd.js +0 -73
- package/dist/PhUser-BMg0VV4A.js +0 -73
- package/dist/PhVault-DYQvx5A-.js +0 -73
- package/dist/PhWarning-NLC5Mj87.js +0 -73
- package/dist/PhWarningCircle-Ch2jU9fA.js +0 -73
- package/dist/PhX-Bx4wpwm3.js +0 -73
- package/dist/SwapController-Ch0FFTEt.js +0 -457
- package/dist/ccip-BrGhNXIM.js +0 -150
- package/dist/core/api.d.ts +0 -39
- package/dist/core/logic.d.ts +0 -2
- package/dist/core/wallet.d.ts +0 -55
- package/dist/data-capture-CpafmuCb.js +0 -490
- package/dist/email-Dcg4jlai.js +0 -344
- package/dist/embedded-wallet-DeoRdAPw.js +0 -820
- package/dist/features-B9Nde43h.js +0 -274
- package/dist/hashTypedData-a7b8tdkO.js +0 -197
- package/dist/if-defined-k21LutCn.js +0 -10
- package/dist/index-9vLw53Xl.js +0 -228
- package/dist/index-B5wUyynz.js +0 -107
- package/dist/index-B8LkUrww.js +0 -86
- package/dist/index-BA0VwKg0.js +0 -8189
- package/dist/index-BB9JJ24N.js +0 -125
- package/dist/index-BCkEvPQ6.js +0 -172
- package/dist/index-BDeO_csr.js +0 -171
- package/dist/index-Bb7babLF.js +0 -1281
- package/dist/index-BjOhprVS.js +0 -199
- package/dist/index-BjyMgZsf.js +0 -218
- package/dist/index-BkThIDLX.js +0 -159
- package/dist/index-BmFs6nb7.js +0 -209
- package/dist/index-C1QEJL-2.js +0 -572
- package/dist/index-C4qc4PdD.js +0 -387
- package/dist/index-CAPvUh14.js +0 -1750
- package/dist/index-CBMU3PTE.js +0 -65
- package/dist/index-CGwPkJLF.js +0 -355
- package/dist/index-CNGEqX3D.js +0 -153
- package/dist/index-CRlCq6IB.js +0 -7981
- package/dist/index-Cg_o-i9X.js +0 -118
- package/dist/index-D1BvhCbI.js +0 -62
- package/dist/index-DFi8TiHc.js +0 -128
- package/dist/index-DLwuveL9.js +0 -555
- package/dist/index-DMn7ktUQ.js +0 -56
- package/dist/index-DOXwtuwa.js +0 -117
- package/dist/index-DPPOW_Tp.js +0 -118
- package/dist/index-DQpzHpW-.js +0 -517
- package/dist/index-DXHg5C-W.js +0 -276
- package/dist/index-DcYjZV4H.js +0 -110
- package/dist/index-DeL88Lwc.js +0 -41655
- package/dist/index-DrWVlf8b.js +0 -46
- package/dist/index-Dsfuc4rB.js +0 -123
- package/dist/index-DuTny38n.js +0 -1175
- package/dist/index-Nfjb6bV0.js +0 -21991
- package/dist/index-WwwdQSN2.js +0 -85
- package/dist/index-Yha9Afch.js +0 -174
- package/dist/index-cbQHN7GC.js +0 -100
- package/dist/index-hyG3cYsv.js +0 -1083
- package/dist/index-qLxmmPaL.js +0 -257
- package/dist/localBatchGatewayRequest-vfcvRH0G.js +0 -91
- package/dist/onramp-BSiyOX4L.js +0 -855
- package/dist/parseSignature-CdCMAPZN.js +0 -3304
- package/dist/pay-with-exchange-CduNoMEz.js +0 -525
- package/dist/property-Bd8U3_QP.js +0 -618
- package/dist/receive-CrmptJlq.js +0 -232
- package/dist/ref-SOwYtCZb.js +0 -107
- package/dist/send-oMcHMEr6.js +0 -1166
- package/dist/socials-C0A4-FbY.js +0 -620
- package/dist/swaps-CbJJ9Ciu.js +0 -1760
- package/dist/transactions-BDfCoBS5.js +0 -37
- package/dist/ui/Modal.d.ts +0 -9
- package/dist/ui/index.d.ts +0 -6
- package/dist/w3m-modal-BjsTkny7.js +0 -1706
package/dist/index-DrWVlf8b.js
DELETED
|
@@ -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);
|
package/dist/index-Dsfuc4rB.js
DELETED
|
@@ -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);
|