@coinbase/cdp-core 0.0.115 → 0.0.117
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/dist/esm/index.web10.js +53 -55
- package/dist/esm/index.web110.js +2 -2
- package/dist/esm/index.web126.js +12 -12
- package/dist/esm/index.web128.js +1 -1
- package/dist/esm/index.web129.js +1 -1
- package/dist/esm/index.web131.js +12 -12
- package/dist/esm/index.web132.js +12 -12
- package/dist/esm/index.web133.js +1 -1
- package/dist/esm/index.web135.js +4 -4
- package/dist/esm/index.web138.js +1 -1
- package/dist/esm/index.web139.js +1 -1
- package/dist/esm/index.web140.js +5 -5
- package/dist/esm/index.web141.js +50 -43
- package/dist/esm/index.web142.js +10 -4
- package/dist/esm/index.web143.js +2 -13
- package/dist/esm/index.web144.js +45 -12
- package/dist/esm/index.web145.js +13 -54
- package/dist/esm/index.web146.js +12 -10
- package/dist/esm/index.web147.js +12 -2
- package/dist/esm/index.web148.js +5 -45
- package/dist/esm/index.web149.js +46 -12
- package/dist/esm/index.web150.js +15 -2
- package/dist/esm/index.web151.js +29 -2
- package/dist/esm/index.web152.js +7 -13
- package/dist/esm/index.web153.js +3 -55
- package/dist/esm/index.web154.js +28 -6
- package/dist/esm/index.web155.js +8 -21
- package/dist/esm/index.web156.js +7 -17
- package/dist/esm/index.web157.js +79 -44
- package/dist/esm/index.web158.js +28 -3
- package/dist/esm/index.web159.js +3 -3
- package/dist/esm/index.web160.js +15 -34
- package/dist/esm/index.web161.js +4 -12
- package/dist/esm/index.web162.js +14 -4
- package/dist/esm/index.web163.js +18 -27
- package/dist/esm/index.web164.js +61 -6
- package/dist/esm/index.web165.js +17 -32
- package/dist/esm/index.web166.js +21 -10
- package/dist/esm/index.web167.js +8 -55
- package/dist/esm/index.web168.js +41 -41
- package/dist/esm/index.web169.js +7 -127
- package/dist/esm/index.web170.js +19 -103
- package/dist/esm/index.web171.js +2 -7
- package/dist/esm/index.web172.js +2 -3
- package/dist/esm/index.web173.js +13 -78
- package/dist/esm/index.web174.js +56 -2
- package/dist/esm/index.web175.js +7 -2
- package/dist/esm/index.web176.js +18 -34
- package/dist/esm/index.web177.js +16 -5
- package/dist/esm/index.web178.js +42 -31
- package/dist/esm/index.web179.js +3 -14
- package/dist/esm/index.web180.js +3 -34
- package/dist/esm/index.web181.js +33 -17
- package/dist/esm/index.web182.js +12 -8
- package/dist/esm/index.web183.js +4 -10
- package/dist/esm/index.web184.js +28 -11
- package/dist/esm/index.web185.js +6 -13
- package/dist/esm/index.web186.js +32 -5
- package/dist/esm/index.web187.js +13 -5
- package/dist/esm/index.web188.js +55 -10
- package/dist/esm/index.web189.js +42 -14
- package/dist/esm/index.web190.js +126 -27
- package/dist/esm/index.web191.js +104 -7
- package/dist/esm/index.web192.js +6 -3
- package/dist/esm/index.web193.js +3 -29
- package/dist/esm/index.web194.js +78 -8
- package/dist/esm/index.web195.js +2 -8
- package/dist/esm/index.web196.js +2 -81
- package/dist/esm/index.web197.js +35 -26
- package/dist/esm/index.web198.js +6 -3
- package/dist/esm/index.web199.js +34 -15
- package/dist/esm/index.web2.js +2 -2
- package/dist/esm/index.web200.js +14 -4
- package/dist/esm/index.web201.js +34 -14
- package/dist/esm/index.web202.js +17 -18
- package/dist/esm/index.web203.js +8 -61
- package/dist/esm/index.web204.js +10 -17
- package/dist/esm/index.web205.js +11 -23
- package/dist/esm/index.web206.js +13 -8
- package/dist/esm/index.web207.js +5 -42
- package/dist/esm/index.web208.js +5 -8
- package/dist/esm/index.web209.js +10 -20
- package/dist/esm/index.web210.js +2 -39
- package/dist/esm/index.web211.js +109 -2
- package/dist/esm/index.web212.js +2 -70
- package/dist/esm/index.web213.js +20 -34
- package/dist/esm/index.web214.js +10 -15
- package/dist/esm/index.web215.js +20 -8
- package/dist/esm/index.web216.js +94 -2
- package/dist/esm/index.web217.js +21 -361
- package/dist/esm/index.web218.js +118 -853
- package/dist/esm/index.web219.js +101 -106
- package/dist/esm/index.web220.js +79 -2
- package/dist/esm/index.web221.js +79 -2
- package/dist/esm/index.web222.js +7 -103
- package/dist/esm/index.web223.js +2 -79
- package/dist/esm/index.web224.js +360 -78
- package/dist/esm/index.web225.js +852 -20
- package/dist/esm/index.web226.js +39 -10
- package/dist/esm/index.web227.js +2 -20
- package/dist/esm/index.web228.js +70 -94
- package/dist/esm/index.web229.js +35 -21
- package/dist/esm/index.web230.js +13 -116
- package/dist/esm/index.web231.js +21 -2
- package/dist/esm/index.web232.js +2 -2
- package/dist/esm/index.web233.js +20 -2
- package/dist/esm/index.web234.js +30 -18
- package/dist/esm/index.web235.js +7 -2
- package/dist/esm/index.web236.js +44 -17
- package/dist/esm/index.web237.js +3 -6
- package/dist/esm/index.web238.js +17 -32
- package/dist/esm/index.web239.js +28 -4
- package/dist/esm/index.web240.js +7 -46
- package/dist/esm/index.web241.js +11 -18
- package/dist/esm/index.web242.js +13 -28
- package/dist/esm/index.web243.js +10 -8
- package/dist/esm/index.web244.js +17 -11
- package/dist/esm/index.web245.js +80 -12
- package/dist/esm/index.web246.js +2 -10
- package/dist/esm/index.web247.js +2 -17
- package/dist/esm/index.web248.js +2 -81
- package/dist/esm/index.web251.js +1 -1
- package/dist/esm/index.web3.js +1 -1
- package/dist/esm/index.web9.js +1 -1
- package/dist/native/index.native11.js +1 -1
- package/dist/native/index.native112.js +2 -2
- package/dist/native/index.native116.js +3 -3
- package/dist/native/index.native12.js +55 -57
- package/dist/native/index.native128.js +6 -6
- package/dist/native/index.native129.js +100 -371
- package/dist/native/index.native130.js +379 -2
- package/dist/native/index.native131.js +28 -65
- package/dist/native/index.native132.js +28 -364
- package/dist/native/index.native133.js +2 -108
- package/dist/native/index.native134.js +65 -28
- package/dist/native/index.native135.js +364 -28
- package/dist/native/index.native136.js +1 -1
- package/dist/native/index.native138.js +4 -4
- package/dist/native/index.native141.js +1 -1
- package/dist/native/index.native142.js +1 -1
- package/dist/native/index.native143.js +2 -2
- package/dist/native/index.native145.js +2 -5
- package/dist/native/index.native146.js +2 -36
- package/dist/native/index.native147.js +4 -67
- package/dist/native/index.native148.js +12 -13
- package/dist/native/index.native149.js +11 -27
- package/dist/native/index.native150.js +54 -7
- package/dist/native/index.native151.js +10 -3
- package/dist/native/index.native152.js +2 -28
- package/dist/native/index.native153.js +45 -9
- package/dist/native/index.native154.js +13 -7
- package/dist/native/index.native155.js +36 -80
- package/dist/native/index.native156.js +65 -25
- package/dist/native/index.native157.js +13 -3
- package/dist/native/index.native158.js +18 -5
- package/dist/native/index.native159.js +7 -4
- package/dist/native/index.native160.js +3 -13
- package/dist/native/index.native161.js +24 -16
- package/dist/native/index.native162.js +8 -60
- package/dist/native/index.native163.js +7 -17
- package/dist/native/index.native164.js +77 -21
- package/dist/native/index.native165.js +27 -8
- package/dist/native/index.native166.js +3 -41
- package/dist/native/index.native167.js +14 -7
- package/dist/native/index.native168.js +4 -20
- package/dist/native/index.native169.js +14 -2
- package/dist/native/index.native170.js +20 -2
- package/dist/native/index.native171.js +58 -52
- package/dist/native/index.native172.js +17 -10
- package/dist/native/index.native173.js +24 -2
- package/dist/native/index.native174.js +9 -45
- package/dist/native/index.native175.js +41 -13
- package/dist/native/index.native176.js +7 -13
- package/dist/native/index.native177.js +19 -54
- package/dist/native/index.native178.js +13 -6
- package/dist/native/index.native179.js +54 -20
- package/dist/native/index.native180.js +6 -11
- package/dist/native/index.native181.js +20 -16
- package/dist/native/index.native182.js +16 -44
- package/dist/native/index.native183.js +45 -3
- package/dist/native/index.native184.js +3 -3
- package/dist/native/index.native185.js +3 -34
- package/dist/native/index.native186.js +32 -10
- package/dist/native/index.native187.js +12 -4
- package/dist/native/index.native188.js +4 -28
- package/dist/native/index.native189.js +28 -6
- package/dist/native/index.native190.js +6 -32
- package/dist/native/index.native191.js +31 -11
- package/dist/native/index.native192.js +10 -53
- package/dist/native/index.native193.js +54 -41
- package/dist/native/index.native194.js +42 -127
- package/dist/native/index.native195.js +125 -102
- package/dist/native/index.native196.js +104 -6
- package/dist/native/index.native197.js +7 -3
- package/dist/native/index.native198.js +3 -79
- package/dist/native/index.native199.js +79 -2
- package/dist/native/index.native200.js +2 -2
- package/dist/native/index.native201.js +2 -13
- package/dist/native/index.native202.js +2 -2
- package/dist/native/index.native203.js +1 -1
- package/dist/native/index.native204.js +1 -1
- package/dist/native/index.native206.js +1 -1
- package/dist/native/index.native207.js +2 -2
- package/dist/native/index.native208.js +2 -2
- package/dist/native/index.native209.js +2 -2
- package/dist/native/index.native218.js +103 -7
- package/dist/native/index.native219.js +79 -2
- package/dist/native/index.native220.js +78 -360
- package/dist/native/index.native221.js +20 -852
- package/dist/native/index.native222.js +10 -39
- package/dist/native/index.native223.js +20 -2
- package/dist/native/index.native224.js +94 -70
- package/dist/native/index.native225.js +21 -35
- package/dist/native/index.native226.js +116 -13
- package/dist/native/index.native227.js +38 -46
- package/dist/native/index.native228.js +2 -21
- package/dist/native/index.native229.js +70 -10
- package/dist/native/index.native230.js +34 -19
- package/dist/native/index.native231.js +13 -92
- package/dist/native/index.native232.js +8 -21
- package/dist/native/index.native233.js +2 -118
- package/dist/native/index.native234.js +356 -16
- package/dist/native/index.native235.js +853 -2
- package/dist/native/index.native236.js +18 -17
- package/dist/native/index.native237.js +2 -79
- package/dist/native/index.native238.js +18 -102
- package/dist/native/index.native239.js +4 -4
- package/dist/native/index.native240.js +2 -2
- package/dist/native/index.native241.js +3 -78
- package/dist/native/index.native242.js +47 -2
- package/dist/native/index.native243.js +2 -2
- package/dist/native/index.native244.js +2 -2
- package/dist/native/index.native245.js +2 -4
- package/dist/native/index.native252.js +1 -1
- package/dist/native/index.native255.js +1 -1
- package/dist/native/index.native3.js +1 -1
- package/dist/native/index.native86.js +1 -1
- package/dist/native-types/version.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/web/index.web10.js +53 -55
- package/dist/web/index.web110.js +2 -2
- package/dist/web/index.web126.js +12 -12
- package/dist/web/index.web128.js +1 -1
- package/dist/web/index.web129.js +1 -1
- package/dist/web/index.web131.js +12 -12
- package/dist/web/index.web132.js +12 -12
- package/dist/web/index.web133.js +1 -1
- package/dist/web/index.web135.js +4 -4
- package/dist/web/index.web138.js +1 -1
- package/dist/web/index.web139.js +1 -1
- package/dist/web/index.web140.js +5 -5
- package/dist/web/index.web141.js +50 -43
- package/dist/web/index.web142.js +10 -4
- package/dist/web/index.web143.js +2 -13
- package/dist/web/index.web144.js +45 -12
- package/dist/web/index.web145.js +13 -54
- package/dist/web/index.web146.js +12 -10
- package/dist/web/index.web147.js +12 -2
- package/dist/web/index.web148.js +5 -45
- package/dist/web/index.web149.js +46 -12
- package/dist/web/index.web150.js +15 -2
- package/dist/web/index.web151.js +29 -2
- package/dist/web/index.web152.js +7 -13
- package/dist/web/index.web153.js +3 -55
- package/dist/web/index.web154.js +28 -6
- package/dist/web/index.web155.js +8 -21
- package/dist/web/index.web156.js +7 -17
- package/dist/web/index.web157.js +79 -44
- package/dist/web/index.web158.js +28 -3
- package/dist/web/index.web159.js +3 -3
- package/dist/web/index.web160.js +15 -34
- package/dist/web/index.web161.js +4 -12
- package/dist/web/index.web162.js +14 -4
- package/dist/web/index.web163.js +18 -27
- package/dist/web/index.web164.js +61 -6
- package/dist/web/index.web165.js +17 -32
- package/dist/web/index.web166.js +21 -10
- package/dist/web/index.web167.js +8 -55
- package/dist/web/index.web168.js +41 -41
- package/dist/web/index.web169.js +7 -127
- package/dist/web/index.web170.js +19 -103
- package/dist/web/index.web171.js +2 -7
- package/dist/web/index.web172.js +2 -3
- package/dist/web/index.web173.js +13 -78
- package/dist/web/index.web174.js +56 -2
- package/dist/web/index.web175.js +7 -2
- package/dist/web/index.web176.js +18 -34
- package/dist/web/index.web177.js +16 -5
- package/dist/web/index.web178.js +42 -31
- package/dist/web/index.web179.js +3 -14
- package/dist/web/index.web180.js +3 -34
- package/dist/web/index.web181.js +33 -17
- package/dist/web/index.web182.js +12 -8
- package/dist/web/index.web183.js +4 -10
- package/dist/web/index.web184.js +28 -11
- package/dist/web/index.web185.js +6 -13
- package/dist/web/index.web186.js +32 -5
- package/dist/web/index.web187.js +13 -5
- package/dist/web/index.web188.js +55 -10
- package/dist/web/index.web189.js +42 -14
- package/dist/web/index.web190.js +126 -27
- package/dist/web/index.web191.js +104 -7
- package/dist/web/index.web192.js +6 -3
- package/dist/web/index.web193.js +3 -29
- package/dist/web/index.web194.js +78 -8
- package/dist/web/index.web195.js +2 -8
- package/dist/web/index.web196.js +2 -81
- package/dist/web/index.web197.js +35 -26
- package/dist/web/index.web198.js +6 -3
- package/dist/web/index.web199.js +34 -15
- package/dist/web/index.web2.js +2 -2
- package/dist/web/index.web200.js +14 -4
- package/dist/web/index.web201.js +34 -14
- package/dist/web/index.web202.js +17 -18
- package/dist/web/index.web203.js +8 -61
- package/dist/web/index.web204.js +10 -17
- package/dist/web/index.web205.js +11 -23
- package/dist/web/index.web206.js +13 -8
- package/dist/web/index.web207.js +5 -42
- package/dist/web/index.web208.js +5 -8
- package/dist/web/index.web209.js +10 -20
- package/dist/web/index.web210.js +2 -39
- package/dist/web/index.web211.js +109 -2
- package/dist/web/index.web212.js +2 -70
- package/dist/web/index.web213.js +20 -34
- package/dist/web/index.web214.js +10 -15
- package/dist/web/index.web215.js +20 -8
- package/dist/web/index.web216.js +94 -2
- package/dist/web/index.web217.js +21 -361
- package/dist/web/index.web218.js +118 -853
- package/dist/web/index.web219.js +101 -106
- package/dist/web/index.web220.js +79 -2
- package/dist/web/index.web221.js +79 -2
- package/dist/web/index.web222.js +7 -103
- package/dist/web/index.web223.js +2 -79
- package/dist/web/index.web224.js +360 -78
- package/dist/web/index.web225.js +852 -20
- package/dist/web/index.web226.js +39 -10
- package/dist/web/index.web227.js +2 -20
- package/dist/web/index.web228.js +70 -94
- package/dist/web/index.web229.js +35 -21
- package/dist/web/index.web230.js +13 -116
- package/dist/web/index.web231.js +21 -2
- package/dist/web/index.web232.js +2 -2
- package/dist/web/index.web233.js +20 -2
- package/dist/web/index.web234.js +30 -18
- package/dist/web/index.web235.js +7 -2
- package/dist/web/index.web236.js +44 -17
- package/dist/web/index.web237.js +3 -6
- package/dist/web/index.web238.js +17 -32
- package/dist/web/index.web239.js +28 -4
- package/dist/web/index.web240.js +7 -46
- package/dist/web/index.web241.js +11 -18
- package/dist/web/index.web242.js +13 -28
- package/dist/web/index.web243.js +10 -8
- package/dist/web/index.web244.js +17 -11
- package/dist/web/index.web245.js +80 -12
- package/dist/web/index.web246.js +2 -10
- package/dist/web/index.web247.js +2 -17
- package/dist/web/index.web248.js +2 -81
- package/dist/web/index.web251.js +1 -1
- package/dist/web/index.web3.js +1 -1
- package/dist/web/index.web9.js +1 -1
- package/dist/web-types/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { configureCdpApiClient as
|
|
2
|
-
import { Analytics as
|
|
1
|
+
import { configureCdpApiClient as j, setAuthManager as k, getMfaConfig as C, APIError as g, getProjectConfig as v } from "@coinbase/cdp-api-client";
|
|
2
|
+
import { Analytics as s } from "./index.native2.js";
|
|
3
3
|
import "./index.native3.js";
|
|
4
|
-
import { createAuthManager as
|
|
5
|
-
import { OAuthManager as
|
|
6
|
-
import { MockAuthManager as
|
|
4
|
+
import { createAuthManager as M } from "./index.native117.js";
|
|
5
|
+
import { OAuthManager as S } from "./index.native118.js";
|
|
6
|
+
import { MockAuthManager as y } from "./index.native119.js";
|
|
7
7
|
import { MockOAuthManager as P } from "./index.native120.js";
|
|
8
8
|
import { getAttestationModule as w } from "./index.native95.js";
|
|
9
|
-
import { getPlatformServices as
|
|
10
|
-
import { getConfig as
|
|
9
|
+
import { getPlatformServices as m } from "./index.native10.js";
|
|
10
|
+
import { getConfig as n, setCoreAuthManager as h, setCoreOAuthManager as I, setMfaConfig as A, setProjectConfig as b, getCoreAuthManager as _, setConfig as E } from "./index.native76.js";
|
|
11
11
|
import "viem";
|
|
12
|
-
const
|
|
12
|
+
const U = async (t) => {
|
|
13
13
|
if (!t.projectId)
|
|
14
14
|
throw new Error("Project ID is required");
|
|
15
|
-
t.disableAnalytics === void 0 || t.disableAnalytics === !1 ? (
|
|
15
|
+
t.disableAnalytics === void 0 || t.disableAnalytics === !1 ? (s.developerIdentifier = t.projectId, s.isUsingMocks = t.useMock === !0, s.isProduction = !t.basePath || t.basePath === "https://api.cdp.coinbase.com/platform") : s.enabled = !1;
|
|
16
16
|
let i;
|
|
17
17
|
try {
|
|
18
|
-
i =
|
|
18
|
+
i = n().projectId !== t.projectId;
|
|
19
19
|
} catch {
|
|
20
20
|
i = !0;
|
|
21
21
|
}
|
|
22
|
-
if (
|
|
23
|
-
|
|
24
|
-
projectId:
|
|
22
|
+
if (E(t), n().useMock) {
|
|
23
|
+
h(new y(n().projectId)), I(new P()), A({
|
|
24
|
+
projectId: n().projectId,
|
|
25
25
|
enabled: !1,
|
|
26
26
|
totpConfig: { enabled: !1 },
|
|
27
27
|
smsConfig: { enabled: !1 },
|
|
@@ -30,92 +30,90 @@ const H = async (t) => {
|
|
|
30
30
|
requireVerificationOnLogin: !1,
|
|
31
31
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
32
32
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
33
|
-
}),
|
|
34
|
-
projectId:
|
|
33
|
+
}), b({
|
|
34
|
+
projectId: n().projectId,
|
|
35
35
|
name: "Mock Project",
|
|
36
36
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
37
37
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
38
38
|
});
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
-
let
|
|
41
|
+
let a, d = !1;
|
|
42
42
|
try {
|
|
43
|
-
const e =
|
|
44
|
-
|
|
43
|
+
const e = m();
|
|
44
|
+
e.secureStorage ? (d = !0, a = {
|
|
45
45
|
getRefreshToken: () => e.secureStorage.getItem("cdp_refresh_token"),
|
|
46
46
|
setRefreshToken: (o) => e.secureStorage.setItem("cdp_refresh_token", o),
|
|
47
47
|
removeRefreshToken: () => e.secureStorage.removeItem("cdp_refresh_token")
|
|
48
|
-
} :
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
removeRefreshToken: () => e.storage.removeItem("cdp_refresh_token")
|
|
54
|
-
}
|
|
55
|
-
);
|
|
48
|
+
}) : a = {
|
|
49
|
+
getRefreshToken: () => e.storage.getItem("cdp_refresh_token"),
|
|
50
|
+
setRefreshToken: (o) => e.storage.setItem("cdp_refresh_token", o),
|
|
51
|
+
removeRefreshToken: () => e.storage.removeItem("cdp_refresh_token")
|
|
52
|
+
};
|
|
56
53
|
} catch {
|
|
57
|
-
|
|
54
|
+
s.sendSessionRefreshEvent({
|
|
58
55
|
name: "refresh_token_storage_not_initialized"
|
|
59
|
-
}),
|
|
56
|
+
}), a = void 0;
|
|
60
57
|
}
|
|
61
|
-
let r,
|
|
58
|
+
let r, c, u;
|
|
62
59
|
try {
|
|
63
|
-
const e =
|
|
64
|
-
|
|
60
|
+
const e = m();
|
|
61
|
+
u = e.deviceInfo?.getPlatform?.(), e.attestation && (r = e.attestation, c = e.deviceInfo?.getAppBundleId?.());
|
|
65
62
|
} catch {
|
|
66
63
|
r = void 0;
|
|
67
64
|
}
|
|
68
|
-
if (
|
|
69
|
-
debugging:
|
|
70
|
-
basePath:
|
|
71
|
-
refreshTokenStorage:
|
|
72
|
-
|
|
65
|
+
if (j({
|
|
66
|
+
debugging: n().debugging,
|
|
67
|
+
basePath: n().basePath,
|
|
68
|
+
refreshTokenStorage: a,
|
|
69
|
+
retryTokenReads: d,
|
|
70
|
+
platform: u,
|
|
73
71
|
appAttestation: r && {
|
|
74
72
|
isEnabled: () => r.isEnabled,
|
|
75
|
-
appIdentifier:
|
|
73
|
+
appIdentifier: c,
|
|
76
74
|
generateAssertion: r.generateAssertion.bind(r)
|
|
77
75
|
}
|
|
78
76
|
}), i) {
|
|
79
|
-
const e = new
|
|
80
|
-
|
|
81
|
-
const o =
|
|
82
|
-
|
|
77
|
+
const e = new S();
|
|
78
|
+
I(e);
|
|
79
|
+
const o = M(n().projectId);
|
|
80
|
+
h(o), k(o);
|
|
83
81
|
}
|
|
84
|
-
const [,
|
|
85
|
-
|
|
82
|
+
const [, f, l] = await Promise.allSettled([
|
|
83
|
+
_().ensureInitialized(),
|
|
86
84
|
(async () => {
|
|
87
85
|
try {
|
|
88
|
-
return await
|
|
86
|
+
return await C(t.projectId);
|
|
89
87
|
} catch (e) {
|
|
90
|
-
return (!(e instanceof
|
|
88
|
+
return (!(e instanceof g) || e.statusCode !== 404) && console.warn("Failed to get MFA config", e), null;
|
|
91
89
|
}
|
|
92
90
|
})(),
|
|
93
91
|
(async () => {
|
|
94
92
|
try {
|
|
95
|
-
return await
|
|
93
|
+
return await v(t.projectId);
|
|
96
94
|
} catch (e) {
|
|
97
|
-
return (!(e instanceof
|
|
95
|
+
return (!(e instanceof g) || e.statusCode !== 404) && console.warn("Failed to get project config", e), null;
|
|
98
96
|
}
|
|
99
97
|
})()
|
|
100
98
|
]);
|
|
101
|
-
if (
|
|
102
|
-
const e =
|
|
103
|
-
if (
|
|
104
|
-
const o =
|
|
99
|
+
if (f.status === "fulfilled" && f.value && A(f.value), l.status === "fulfilled" && l.value) {
|
|
100
|
+
const e = l.value;
|
|
101
|
+
if (b(e), e.appAttestation && r && c) {
|
|
102
|
+
const o = O(e.appAttestation, c);
|
|
105
103
|
o !== null && (w() || console.warn(
|
|
106
104
|
"[Attestation] Project config has attestation enabled for this app, but no attestation provider is registered. Install @coinbase/cdp-app-attest and add `import '@coinbase/cdp-app-attest'` to your app's entry point."
|
|
107
|
-
), r.isEnabled = !0, r.cloudProjectNumber = o.cloudProjectNumber, r.initialize().catch((
|
|
105
|
+
), r.isEnabled = !0, r.cloudProjectNumber = o.cloudProjectNumber, r.initialize().catch((p) => {
|
|
108
106
|
console.error(
|
|
109
107
|
"[Attestation] Background initialization failed:",
|
|
110
|
-
|
|
108
|
+
p instanceof Error ? p.message : String(p)
|
|
111
109
|
);
|
|
112
110
|
}));
|
|
113
111
|
}
|
|
114
112
|
}
|
|
115
|
-
},
|
|
116
|
-
const
|
|
117
|
-
return
|
|
113
|
+
}, O = (t, i) => {
|
|
114
|
+
const a = t.android?.find((r) => r.identifier === i);
|
|
115
|
+
return a ? { cloudProjectNumber: a.googleProjectNumber } : t.ios?.find((r) => r.identifier === i) ? {} : null;
|
|
118
116
|
};
|
|
119
117
|
export {
|
|
120
|
-
|
|
118
|
+
U as initialize
|
|
121
119
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { serializeAuthorizationList as v } from "./index.
|
|
1
|
+
import { serializeAuthorizationList as v } from "./index.native182.js";
|
|
2
2
|
import { blobsToCommitments as H } from "./index.native208.js";
|
|
3
3
|
import { blobsToProofs as V } from "./index.native209.js";
|
|
4
4
|
import { commitmentsToVersionedHashes as k } from "./index.native210.js";
|
|
5
5
|
import { toBlobSidecars as B } from "./index.native211.js";
|
|
6
|
-
import { concatHex as T } from "./index.
|
|
7
|
-
import { trim as F } from "./index.
|
|
8
|
-
import { numberToHex as s, bytesToHex as S } from "./index.
|
|
9
|
-
import { toRlp as b } from "./index.
|
|
10
|
-
import { assertTransactionEIP1559 as _, assertTransactionEIP2930 as C, assertTransactionEIP4844 as R, assertTransactionEIP7702 as Y, assertTransactionLegacy as j } from "./index.
|
|
6
|
+
import { concatHex as T } from "./index.native184.js";
|
|
7
|
+
import { trim as F } from "./index.native190.js";
|
|
8
|
+
import { numberToHex as s, bytesToHex as S } from "./index.native183.js";
|
|
9
|
+
import { toRlp as b } from "./index.native194.js";
|
|
10
|
+
import { assertTransactionEIP1559 as _, assertTransactionEIP2930 as C, assertTransactionEIP4844 as R, assertTransactionEIP7702 as Y, assertTransactionLegacy as j } from "./index.native199.js";
|
|
11
11
|
import { getTransactionType as q } from "./index.native205.js";
|
|
12
12
|
import { serializeAccessList as h } from "./index.native207.js";
|
|
13
13
|
function re(e, t) {
|
|
@@ -1,379 +1,108 @@
|
|
|
1
|
-
import "./index.
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
Object.defineProperty(i, "code", {
|
|
82
|
-
enumerable: !0,
|
|
83
|
-
configurable: !0,
|
|
84
|
-
writable: !0,
|
|
85
|
-
value: 4200
|
|
86
|
-
});
|
|
87
|
-
class c extends u {
|
|
88
|
-
constructor({ message: e = "The provider is disconnected from all chains." } = {}) {
|
|
89
|
-
super(4900, e), Object.defineProperty(this, "code", {
|
|
90
|
-
enumerable: !0,
|
|
91
|
-
configurable: !0,
|
|
92
|
-
writable: !0,
|
|
93
|
-
value: 4900
|
|
94
|
-
}), Object.defineProperty(this, "name", {
|
|
95
|
-
enumerable: !0,
|
|
96
|
-
configurable: !0,
|
|
97
|
-
writable: !0,
|
|
98
|
-
value: "Provider.DisconnectedError"
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
Object.defineProperty(c, "code", {
|
|
103
|
-
enumerable: !0,
|
|
104
|
-
configurable: !0,
|
|
105
|
-
writable: !0,
|
|
106
|
-
value: 4900
|
|
107
|
-
});
|
|
108
|
-
class l extends u {
|
|
109
|
-
constructor({ message: e = "The provider is not connected to the requested chain." } = {}) {
|
|
110
|
-
super(4901, e), Object.defineProperty(this, "code", {
|
|
111
|
-
enumerable: !0,
|
|
112
|
-
configurable: !0,
|
|
113
|
-
writable: !0,
|
|
114
|
-
value: 4901
|
|
115
|
-
}), Object.defineProperty(this, "name", {
|
|
116
|
-
enumerable: !0,
|
|
117
|
-
configurable: !0,
|
|
118
|
-
writable: !0,
|
|
119
|
-
value: "Provider.ChainDisconnectedError"
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
Object.defineProperty(l, "code", {
|
|
124
|
-
enumerable: !0,
|
|
125
|
-
configurable: !0,
|
|
126
|
-
writable: !0,
|
|
127
|
-
value: 4901
|
|
128
|
-
});
|
|
129
|
-
class d extends u {
|
|
130
|
-
constructor({ message: e = "An error occurred when attempting to switch chain." } = {}) {
|
|
131
|
-
super(4902, e), Object.defineProperty(this, "code", {
|
|
132
|
-
enumerable: !0,
|
|
133
|
-
configurable: !0,
|
|
134
|
-
writable: !0,
|
|
135
|
-
value: 4902
|
|
136
|
-
}), Object.defineProperty(this, "name", {
|
|
137
|
-
enumerable: !0,
|
|
138
|
-
configurable: !0,
|
|
139
|
-
writable: !0,
|
|
140
|
-
value: "Provider.SwitchChainError"
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
Object.defineProperty(d, "code", {
|
|
145
|
-
enumerable: !0,
|
|
146
|
-
configurable: !0,
|
|
147
|
-
writable: !0,
|
|
148
|
-
value: 4902
|
|
149
|
-
});
|
|
150
|
-
class b extends u {
|
|
151
|
-
constructor({ message: e = "This Wallet does not support a capability that was not marked as optional." } = {}) {
|
|
152
|
-
super(5700, e), Object.defineProperty(this, "code", {
|
|
153
|
-
enumerable: !0,
|
|
154
|
-
configurable: !0,
|
|
155
|
-
writable: !0,
|
|
156
|
-
value: 5700
|
|
157
|
-
}), Object.defineProperty(this, "name", {
|
|
158
|
-
enumerable: !0,
|
|
159
|
-
configurable: !0,
|
|
160
|
-
writable: !0,
|
|
161
|
-
value: "Provider.UnsupportedNonOptionalCapabilityError"
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
Object.defineProperty(b, "code", {
|
|
166
|
-
enumerable: !0,
|
|
167
|
-
configurable: !0,
|
|
168
|
-
writable: !0,
|
|
169
|
-
value: 5700
|
|
170
|
-
});
|
|
171
|
-
class s extends u {
|
|
172
|
-
constructor({ message: e = "This Wallet does not support the requested chain ID." } = {}) {
|
|
173
|
-
super(5710, e), Object.defineProperty(this, "code", {
|
|
174
|
-
enumerable: !0,
|
|
175
|
-
configurable: !0,
|
|
176
|
-
writable: !0,
|
|
177
|
-
value: 5710
|
|
178
|
-
}), Object.defineProperty(this, "name", {
|
|
179
|
-
enumerable: !0,
|
|
180
|
-
configurable: !0,
|
|
181
|
-
writable: !0,
|
|
182
|
-
value: "Provider.UnsupportedChainIdError"
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
Object.defineProperty(s, "code", {
|
|
187
|
-
enumerable: !0,
|
|
188
|
-
configurable: !0,
|
|
189
|
-
writable: !0,
|
|
190
|
-
value: 5710
|
|
191
|
-
});
|
|
192
|
-
class f extends u {
|
|
193
|
-
constructor({ message: e = "There is already a bundle submitted with this ID." } = {}) {
|
|
194
|
-
super(5720, e), Object.defineProperty(this, "code", {
|
|
195
|
-
enumerable: !0,
|
|
196
|
-
configurable: !0,
|
|
197
|
-
writable: !0,
|
|
198
|
-
value: 5720
|
|
199
|
-
}), Object.defineProperty(this, "name", {
|
|
200
|
-
enumerable: !0,
|
|
201
|
-
configurable: !0,
|
|
202
|
-
writable: !0,
|
|
203
|
-
value: "Provider.DuplicateIdError"
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
Object.defineProperty(f, "code", {
|
|
208
|
-
enumerable: !0,
|
|
209
|
-
configurable: !0,
|
|
210
|
-
writable: !0,
|
|
211
|
-
value: 5720
|
|
212
|
-
});
|
|
213
|
-
class p extends u {
|
|
214
|
-
constructor({ message: e = "This bundle id is unknown / has not been submitted." } = {}) {
|
|
215
|
-
super(5730, e), Object.defineProperty(this, "code", {
|
|
216
|
-
enumerable: !0,
|
|
217
|
-
configurable: !0,
|
|
218
|
-
writable: !0,
|
|
219
|
-
value: 5730
|
|
220
|
-
}), Object.defineProperty(this, "name", {
|
|
221
|
-
enumerable: !0,
|
|
222
|
-
configurable: !0,
|
|
223
|
-
writable: !0,
|
|
224
|
-
value: "Provider.UnknownBundleIdError"
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
Object.defineProperty(p, "code", {
|
|
229
|
-
enumerable: !0,
|
|
230
|
-
configurable: !0,
|
|
231
|
-
writable: !0,
|
|
232
|
-
value: 5730
|
|
233
|
-
});
|
|
234
|
-
class h extends u {
|
|
235
|
-
constructor({ message: e = "The call bundle is too large for the Wallet to process." } = {}) {
|
|
236
|
-
super(5740, e), Object.defineProperty(this, "code", {
|
|
237
|
-
enumerable: !0,
|
|
238
|
-
configurable: !0,
|
|
239
|
-
writable: !0,
|
|
240
|
-
value: 5740
|
|
241
|
-
}), Object.defineProperty(this, "name", {
|
|
242
|
-
enumerable: !0,
|
|
243
|
-
configurable: !0,
|
|
244
|
-
writable: !0,
|
|
245
|
-
value: "Provider.BundleTooLargeError"
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
Object.defineProperty(h, "code", {
|
|
250
|
-
enumerable: !0,
|
|
251
|
-
configurable: !0,
|
|
252
|
-
writable: !0,
|
|
253
|
-
value: 5740
|
|
254
|
-
});
|
|
255
|
-
class m extends u {
|
|
256
|
-
constructor({ message: e = "The Wallet can support atomicity after an upgrade, but the user rejected the upgrade." } = {}) {
|
|
257
|
-
super(5750, e), Object.defineProperty(this, "code", {
|
|
258
|
-
enumerable: !0,
|
|
259
|
-
configurable: !0,
|
|
260
|
-
writable: !0,
|
|
261
|
-
value: 5750
|
|
262
|
-
}), Object.defineProperty(this, "name", {
|
|
263
|
-
enumerable: !0,
|
|
264
|
-
configurable: !0,
|
|
265
|
-
writable: !0,
|
|
266
|
-
value: "Provider.AtomicReadyWalletRejectedUpgradeError"
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
Object.defineProperty(m, "code", {
|
|
271
|
-
enumerable: !0,
|
|
272
|
-
configurable: !0,
|
|
273
|
-
writable: !0,
|
|
274
|
-
value: 5750
|
|
275
|
-
});
|
|
276
|
-
class w extends u {
|
|
277
|
-
constructor({ message: e = "The wallet does not support atomic execution but the request requires it." } = {}) {
|
|
278
|
-
super(5760, e), Object.defineProperty(this, "code", {
|
|
279
|
-
enumerable: !0,
|
|
280
|
-
configurable: !0,
|
|
281
|
-
writable: !0,
|
|
282
|
-
value: 5760
|
|
283
|
-
}), Object.defineProperty(this, "name", {
|
|
284
|
-
enumerable: !0,
|
|
285
|
-
configurable: !0,
|
|
286
|
-
writable: !0,
|
|
287
|
-
value: "Provider.AtomicityNotSupportedError"
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
Object.defineProperty(w, "code", {
|
|
292
|
-
enumerable: !0,
|
|
293
|
-
configurable: !0,
|
|
294
|
-
writable: !0,
|
|
295
|
-
value: 5760
|
|
296
|
-
});
|
|
297
|
-
function q(r, e = {}) {
|
|
298
|
-
const { includeEvents: t = !0 } = e;
|
|
299
|
-
if (!r)
|
|
300
|
-
throw new E();
|
|
301
|
-
return {
|
|
302
|
-
...t ? {
|
|
303
|
-
on: r.on?.bind(r),
|
|
304
|
-
removeListener: r.removeListener?.bind(r)
|
|
305
|
-
} : {},
|
|
306
|
-
async request(v) {
|
|
307
|
-
try {
|
|
308
|
-
const o = await r.request(v);
|
|
309
|
-
return o && typeof o == "object" && "jsonrpc" in o ? y(o) : o;
|
|
310
|
-
} catch (o) {
|
|
311
|
-
throw O(o);
|
|
1
|
+
import { Analytics as u } from "./index.native2.js";
|
|
2
|
+
import "./index.native3.js";
|
|
3
|
+
import { getCurrentUserSync as b } from "./index.native46.js";
|
|
4
|
+
import "@coinbase/cdp-api-client";
|
|
5
|
+
import "jose";
|
|
6
|
+
import "viem";
|
|
7
|
+
import "./index.native100.js";
|
|
8
|
+
import { getConfig as S } from "./index.native76.js";
|
|
9
|
+
import { getAccessToken as A } from "./index.native26.js";
|
|
10
|
+
import { getAccessTokenExpiration as j } from "./index.native27.js";
|
|
11
|
+
import { ensureMfaVerified as y } from "./index.native85.js";
|
|
12
|
+
import { DEFAULT_SECURE_IFRAME_BASE_PATH as w, SECURE_IFRAME_KEY_EXPORT_EVENT_TYPE as n, DEFAULT_SECURE_IFRAME_THEME as k } from "./index.native155.js";
|
|
13
|
+
import { validateSecureIframeEnvironment as g, createIframe as x, calculateSecureIframeHeight as U, buildKeyExportIframeUrl as L, getSecureIframeOrigin as v, isSecureIframeKeyExportMessage as R, sendSecureIframeMessage as l } from "./index.native156.js";
|
|
14
|
+
import "./index.native101.js";
|
|
15
|
+
import "@solana/web3.js";
|
|
16
|
+
import "bs58";
|
|
17
|
+
let c = null;
|
|
18
|
+
const C = async () => (c || (c = A({ forceRefresh: !0 }).finally(() => {
|
|
19
|
+
c = null;
|
|
20
|
+
})), c);
|
|
21
|
+
async function h(e) {
|
|
22
|
+
const r = x(e.target), I = U(e.theme), m = S().secureIframeBasePath || w;
|
|
23
|
+
r.setAttribute("allow", "clipboard-read; clipboard-write"), r.style.border = "none", r.style.display = "none", r.style.height = `${I}px`, r.src = L({ projectId: e.projectId, basePath: m });
|
|
24
|
+
const d = v(m);
|
|
25
|
+
let f = !1;
|
|
26
|
+
const E = () => {
|
|
27
|
+
f || (f = !0, window.removeEventListener("message", p), r.parentNode && r.parentNode.removeChild(r));
|
|
28
|
+
}, p = async (a) => {
|
|
29
|
+
if (a.source !== r.contentWindow || !d || a.origin !== d) return;
|
|
30
|
+
const i = a.data;
|
|
31
|
+
if (R(i))
|
|
32
|
+
switch (i.type) {
|
|
33
|
+
case n.LISTENING: {
|
|
34
|
+
try {
|
|
35
|
+
const t = b();
|
|
36
|
+
if (!t) {
|
|
37
|
+
e.onStatusUpdate?.("error", "User not authenticated");
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const o = await C(), s = await j();
|
|
41
|
+
l(r, {
|
|
42
|
+
type: n.GET_PRIVATE_KEY,
|
|
43
|
+
payload: {
|
|
44
|
+
address: e.address,
|
|
45
|
+
type: e.type,
|
|
46
|
+
authState: {
|
|
47
|
+
accessToken: o || "",
|
|
48
|
+
expiresAt: s || 0,
|
|
49
|
+
user: t
|
|
50
|
+
},
|
|
51
|
+
theme: {
|
|
52
|
+
...k,
|
|
53
|
+
...e.theme || {}
|
|
54
|
+
},
|
|
55
|
+
config: {
|
|
56
|
+
action: e.action,
|
|
57
|
+
label: e.label,
|
|
58
|
+
copiedLabel: e.copiedLabel,
|
|
59
|
+
ejectLabel: e.ejectLabel ?? "Eject wallet",
|
|
60
|
+
ejectingLabel: e.ejectingLabel ?? "Ejecting…",
|
|
61
|
+
ejectedLabel: e.ejectedLabel ?? "Ejected",
|
|
62
|
+
icon: e.icon,
|
|
63
|
+
ejectIcon: e.ejectIcon,
|
|
64
|
+
fullWidth: e.fullWidth
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
} catch (t) {
|
|
69
|
+
e.onStatusUpdate?.(
|
|
70
|
+
"error",
|
|
71
|
+
t instanceof Error ? "Error requesting private key: " + t.message : "Error requesting private key"
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
case n.STATUS: {
|
|
77
|
+
const { status: t, message: o, operation: s, errorType: T, correlationId: _ } = i.payload;
|
|
78
|
+
t === "ready" && (r.style.display = "block"), t === "expired" && (r.style.display = "none", E()), e.onStatusUpdate?.(t, o, { operation: s, errorType: T, correlationId: _ });
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
312
81
|
}
|
|
82
|
+
};
|
|
83
|
+
return window.addEventListener("message", p), {
|
|
84
|
+
iframe: r,
|
|
85
|
+
cleanup: E,
|
|
86
|
+
updateTheme: (a) => {
|
|
87
|
+
l(r, {
|
|
88
|
+
type: n.THEME,
|
|
89
|
+
payload: { theme: a }
|
|
90
|
+
});
|
|
91
|
+
},
|
|
92
|
+
showEject: () => {
|
|
93
|
+
l(r, {
|
|
94
|
+
type: n.SHOW_EJECT
|
|
95
|
+
});
|
|
313
96
|
}
|
|
314
97
|
};
|
|
315
98
|
}
|
|
316
|
-
function
|
|
317
|
-
|
|
318
|
-
if (e instanceof g) {
|
|
319
|
-
if (!e.data)
|
|
320
|
-
return e;
|
|
321
|
-
const { code: t } = e.data;
|
|
322
|
-
if (t === c.code)
|
|
323
|
-
return new c(e);
|
|
324
|
-
if (t === l.code)
|
|
325
|
-
return new l(e);
|
|
326
|
-
if (t === n.code)
|
|
327
|
-
return new n(e);
|
|
328
|
-
if (t === a.code)
|
|
329
|
-
return new a(e);
|
|
330
|
-
if (t === i.code)
|
|
331
|
-
return new i(e);
|
|
332
|
-
if (t === d.code)
|
|
333
|
-
return new d(e);
|
|
334
|
-
if (t === m.code)
|
|
335
|
-
return new m(e);
|
|
336
|
-
if (t === w.code)
|
|
337
|
-
return new w(e);
|
|
338
|
-
if (t === h.code)
|
|
339
|
-
return new h(e);
|
|
340
|
-
if (t === p.code)
|
|
341
|
-
return new p(e);
|
|
342
|
-
if (t === f.code)
|
|
343
|
-
return new f(e);
|
|
344
|
-
if (t === s.code)
|
|
345
|
-
return new s(e);
|
|
346
|
-
if (t === b.code)
|
|
347
|
-
return new b(e);
|
|
348
|
-
}
|
|
349
|
-
return e;
|
|
99
|
+
async function Q(e) {
|
|
100
|
+
return u.sendActionCallEvent({ name: "create_evm_key_export_iframe" }), g(), await y(), h({ ...e, type: "evm" });
|
|
350
101
|
}
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
super("`provider` is undefined."), Object.defineProperty(this, "name", {
|
|
354
|
-
enumerable: !0,
|
|
355
|
-
configurable: !0,
|
|
356
|
-
writable: !0,
|
|
357
|
-
value: "Provider.IsUndefinedError"
|
|
358
|
-
});
|
|
359
|
-
}
|
|
102
|
+
async function Z(e) {
|
|
103
|
+
return u.sendActionCallEvent({ name: "create_solana_key_export_iframe" }), g(), await y(), h({ ...e, type: "solana" });
|
|
360
104
|
}
|
|
361
105
|
export {
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
h as BundleTooLargeError,
|
|
365
|
-
l as ChainDisconnectedError,
|
|
366
|
-
c as DisconnectedError,
|
|
367
|
-
f as DuplicateIdError,
|
|
368
|
-
E as IsUndefinedError,
|
|
369
|
-
u as ProviderRpcError,
|
|
370
|
-
d as SwitchChainError,
|
|
371
|
-
a as UnauthorizedError,
|
|
372
|
-
p as UnknownBundleIdError,
|
|
373
|
-
s as UnsupportedChainIdError,
|
|
374
|
-
i as UnsupportedMethodError,
|
|
375
|
-
b as UnsupportedNonOptionalCapabilityError,
|
|
376
|
-
n as UserRejectedRequestError,
|
|
377
|
-
q as from,
|
|
378
|
-
O as parseError
|
|
106
|
+
Q as createEvmKeyExportIframe,
|
|
107
|
+
Z as createSolanaKeyExportIframe
|
|
379
108
|
};
|