@coinbase/cdp-core 0.0.80 → 0.0.81
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.native.js +15 -13
- package/dist/esm/index.native10.js +1 -1
- package/dist/esm/index.native11.js +1 -1
- package/dist/esm/index.native12.js +1 -1
- package/dist/esm/index.native122.js +1 -1
- package/dist/esm/index.native123.js +1 -1
- package/dist/esm/index.native125.js +6 -6
- package/dist/esm/index.native13.js +1 -1
- package/dist/esm/index.native14.js +1 -1
- package/dist/esm/index.native155.js +1 -1
- package/dist/esm/index.native16.js +1 -1
- package/dist/esm/index.native162.js +20 -4
- package/dist/esm/index.native163.js +10 -21
- package/dist/esm/index.native164.js +19 -9
- package/dist/esm/index.native165.js +89 -15
- package/dist/esm/index.native166.js +19 -92
- package/dist/esm/index.native167.js +115 -18
- package/dist/esm/index.native168.js +5 -118
- package/dist/esm/index.native17.js +1 -1
- package/dist/esm/index.native172.js +38 -7
- package/dist/esm/index.native174.js +67 -375
- package/dist/esm/index.native175.js +34 -835
- package/dist/esm/index.native176.js +20 -38
- package/dist/esm/index.native177.js +8 -2
- package/dist/esm/index.native178.js +2 -70
- package/dist/esm/index.native179.js +373 -30
- package/dist/esm/index.native18.js +1 -1
- package/dist/esm/index.native180.js +835 -20
- package/dist/esm/index.native182.js +18 -2
- package/dist/esm/index.native183.js +28 -109
- package/dist/esm/index.native184.js +8 -2
- package/dist/esm/index.native185.js +11 -18
- package/dist/esm/index.native186.js +13 -28
- package/dist/esm/index.native187.js +10 -8
- package/dist/esm/index.native188.js +17 -11
- package/dist/esm/index.native189.js +80 -12
- package/dist/esm/index.native19.js +1 -1
- package/dist/esm/index.native190.js +2 -10
- package/dist/esm/index.native191.js +108 -16
- package/dist/esm/index.native192.js +2 -81
- package/dist/esm/index.native194.js +2 -2
- package/dist/esm/index.native195.js +2 -2
- package/dist/esm/index.native196.js +2 -2
- package/dist/esm/index.native20.js +1 -1
- package/dist/esm/index.native21.js +1 -1
- package/dist/esm/index.native22.js +1 -1
- package/dist/esm/index.native23.js +1 -1
- package/dist/esm/index.native24.js +1 -1
- package/dist/esm/index.native25.js +1 -1
- package/dist/esm/index.native26.js +1 -1
- package/dist/esm/index.native28.js +1 -1
- package/dist/esm/index.native29.js +1 -1
- package/dist/esm/index.native3.js +1 -1
- package/dist/esm/index.native30.js +1 -1
- package/dist/esm/index.native31.js +1 -1
- package/dist/esm/index.native32.js +1 -1
- package/dist/esm/index.native33.js +1 -1
- package/dist/esm/index.native37.js +1 -1
- package/dist/esm/index.native39.js +1 -1
- package/dist/esm/index.native4.js +1 -1
- package/dist/esm/index.native46.js +27 -31
- package/dist/esm/index.native47.js +31 -27
- package/dist/esm/index.native49.js +1 -1
- package/dist/esm/index.native5.js +1 -1
- package/dist/esm/index.native50.js +1 -1
- package/dist/esm/index.native60.js +1 -1
- package/dist/esm/index.native69.js +3 -3
- package/dist/esm/index.native72.js +1 -1
- package/dist/esm/index.native73.js +1 -1
- package/dist/esm/index.native74.js +1 -1
- package/dist/esm/index.native78.js +377 -2
- package/dist/esm/index.native79.js +29 -2
- package/dist/esm/index.native80.js +26 -374
- package/dist/esm/index.native81.js +2 -29
- package/dist/esm/index.native82.js +2 -29
- package/dist/esm/index.native9.js +1 -1
- package/dist/esm/index.web.js +9 -7
- package/dist/esm/index.web10.js +2 -2
- package/dist/esm/index.web11.js +2 -2
- package/dist/esm/index.web12.js +2 -2
- package/dist/esm/index.web13.js +1 -1
- package/dist/esm/index.web15.js +1 -1
- package/dist/esm/index.web154.js +1 -1
- package/dist/esm/index.web16.js +1 -1
- package/dist/esm/index.web17.js +1 -1
- package/dist/esm/index.web171.js +38 -7
- package/dist/esm/index.web173.js +67 -375
- package/dist/esm/index.web174.js +34 -835
- package/dist/esm/index.web175.js +20 -38
- package/dist/esm/index.web176.js +8 -2
- package/dist/esm/index.web177.js +2 -70
- package/dist/esm/index.web178.js +373 -30
- package/dist/esm/index.web179.js +835 -20
- package/dist/esm/index.web18.js +1 -1
- package/dist/esm/index.web19.js +1 -1
- package/dist/esm/index.web193.js +2 -2
- package/dist/esm/index.web194.js +2 -2
- package/dist/esm/index.web195.js +2 -2
- package/dist/esm/index.web20.js +2 -2
- package/dist/esm/index.web21.js +2 -2
- package/dist/esm/index.web22.js +2 -2
- package/dist/esm/index.web23.js +2 -2
- package/dist/esm/index.web24.js +2 -2
- package/dist/esm/index.web25.js +2 -2
- package/dist/esm/index.web27.js +1 -1
- package/dist/esm/index.web28.js +2 -2
- package/dist/esm/index.web29.js +2 -2
- package/dist/esm/index.web3.js +1 -1
- package/dist/esm/index.web30.js +3 -3
- package/dist/esm/index.web31.js +2 -2
- package/dist/esm/index.web32.js +2 -2
- package/dist/esm/index.web36.js +1 -1
- package/dist/esm/index.web38.js +2 -2
- package/dist/esm/index.web47.js +1 -1
- package/dist/esm/index.web48.js +27 -31
- package/dist/esm/index.web49.js +32 -3
- package/dist/esm/index.web5.js +1 -1
- package/dist/esm/index.web50.js +3 -9
- package/dist/esm/index.web51.js +8 -64
- package/dist/esm/index.web52.js +47 -70
- package/dist/esm/index.web53.js +87 -23
- package/dist/esm/index.web54.js +23 -17
- package/dist/esm/index.web55.js +16 -26
- package/dist/esm/index.web62.js +1 -1
- package/dist/esm/index.web70.js +1 -1
- package/dist/esm/index.web8.js +1 -1
- package/dist/esm/index.web9.js +7 -7
- package/dist/native/index.native.js +15 -13
- package/dist/native/index.native10.js +1 -1
- package/dist/native/index.native11.js +1 -1
- package/dist/native/index.native12.js +1 -1
- package/dist/native/index.native122.js +1 -1
- package/dist/native/index.native123.js +1 -1
- package/dist/native/index.native125.js +6 -6
- package/dist/native/index.native13.js +1 -1
- package/dist/native/index.native14.js +1 -1
- package/dist/native/index.native155.js +1 -1
- package/dist/native/index.native16.js +1 -1
- package/dist/native/index.native162.js +20 -4
- package/dist/native/index.native163.js +10 -21
- package/dist/native/index.native164.js +19 -9
- package/dist/native/index.native165.js +89 -15
- package/dist/native/index.native166.js +19 -92
- package/dist/native/index.native167.js +115 -18
- package/dist/native/index.native168.js +5 -118
- package/dist/native/index.native17.js +1 -1
- package/dist/native/index.native172.js +38 -7
- package/dist/native/index.native174.js +67 -375
- package/dist/native/index.native175.js +34 -835
- package/dist/native/index.native176.js +20 -38
- package/dist/native/index.native177.js +8 -2
- package/dist/native/index.native178.js +2 -70
- package/dist/native/index.native179.js +373 -30
- package/dist/native/index.native18.js +1 -1
- package/dist/native/index.native180.js +835 -20
- package/dist/native/index.native182.js +18 -2
- package/dist/native/index.native183.js +28 -109
- package/dist/native/index.native184.js +8 -2
- package/dist/native/index.native185.js +11 -18
- package/dist/native/index.native186.js +13 -28
- package/dist/native/index.native187.js +10 -8
- package/dist/native/index.native188.js +17 -11
- package/dist/native/index.native189.js +80 -12
- package/dist/native/index.native19.js +1 -1
- package/dist/native/index.native190.js +2 -10
- package/dist/native/index.native191.js +108 -16
- package/dist/native/index.native192.js +2 -81
- package/dist/native/index.native194.js +2 -2
- package/dist/native/index.native195.js +2 -2
- package/dist/native/index.native196.js +2 -2
- package/dist/native/index.native20.js +1 -1
- package/dist/native/index.native21.js +1 -1
- package/dist/native/index.native22.js +1 -1
- package/dist/native/index.native23.js +1 -1
- package/dist/native/index.native24.js +1 -1
- package/dist/native/index.native25.js +1 -1
- package/dist/native/index.native26.js +1 -1
- package/dist/native/index.native28.js +1 -1
- package/dist/native/index.native29.js +1 -1
- package/dist/native/index.native3.js +1 -1
- package/dist/native/index.native30.js +1 -1
- package/dist/native/index.native31.js +1 -1
- package/dist/native/index.native32.js +1 -1
- package/dist/native/index.native33.js +1 -1
- package/dist/native/index.native37.js +1 -1
- package/dist/native/index.native39.js +1 -1
- package/dist/native/index.native4.js +1 -1
- package/dist/native/index.native46.js +27 -31
- package/dist/native/index.native47.js +31 -27
- package/dist/native/index.native49.js +1 -1
- package/dist/native/index.native5.js +1 -1
- package/dist/native/index.native50.js +1 -1
- package/dist/native/index.native60.js +1 -1
- package/dist/native/index.native69.js +3 -3
- package/dist/native/index.native72.js +1 -1
- package/dist/native/index.native73.js +1 -1
- package/dist/native/index.native74.js +1 -1
- package/dist/native/index.native78.js +377 -2
- package/dist/native/index.native79.js +29 -2
- package/dist/native/index.native80.js +26 -374
- package/dist/native/index.native81.js +2 -29
- package/dist/native/index.native82.js +2 -29
- package/dist/native/index.native9.js +1 -1
- package/dist/native-types/index.d.ts +1 -0
- package/dist/native-types/index.native.d.ts +1 -0
- package/dist/native-types/index.web.d.ts +1 -0
- package/dist/native-types/version.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.native.d.ts +1 -0
- package/dist/types/index.web.d.ts +1 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/web/index.web.js +9 -7
- package/dist/web/index.web10.js +2 -2
- package/dist/web/index.web11.js +2 -2
- package/dist/web/index.web12.js +2 -2
- package/dist/web/index.web13.js +1 -1
- package/dist/web/index.web15.js +1 -1
- package/dist/web/index.web154.js +1 -1
- package/dist/web/index.web16.js +1 -1
- package/dist/web/index.web17.js +1 -1
- package/dist/web/index.web171.js +38 -7
- package/dist/web/index.web173.js +67 -375
- package/dist/web/index.web174.js +34 -835
- package/dist/web/index.web175.js +20 -38
- package/dist/web/index.web176.js +8 -2
- package/dist/web/index.web177.js +2 -70
- package/dist/web/index.web178.js +373 -30
- package/dist/web/index.web179.js +835 -20
- package/dist/web/index.web18.js +1 -1
- package/dist/web/index.web19.js +1 -1
- package/dist/web/index.web193.js +2 -2
- package/dist/web/index.web194.js +2 -2
- package/dist/web/index.web195.js +2 -2
- package/dist/web/index.web20.js +2 -2
- package/dist/web/index.web21.js +2 -2
- package/dist/web/index.web22.js +2 -2
- package/dist/web/index.web23.js +2 -2
- package/dist/web/index.web24.js +2 -2
- package/dist/web/index.web25.js +2 -2
- package/dist/web/index.web27.js +1 -1
- package/dist/web/index.web28.js +2 -2
- package/dist/web/index.web29.js +2 -2
- package/dist/web/index.web3.js +1 -1
- package/dist/web/index.web30.js +3 -3
- package/dist/web/index.web31.js +2 -2
- package/dist/web/index.web32.js +2 -2
- package/dist/web/index.web36.js +1 -1
- package/dist/web/index.web38.js +2 -2
- package/dist/web/index.web47.js +1 -1
- package/dist/web/index.web48.js +27 -31
- package/dist/web/index.web49.js +32 -3
- package/dist/web/index.web5.js +1 -1
- package/dist/web/index.web50.js +3 -9
- package/dist/web/index.web51.js +8 -64
- package/dist/web/index.web52.js +47 -70
- package/dist/web/index.web53.js +87 -23
- package/dist/web/index.web54.js +23 -17
- package/dist/web/index.web55.js +16 -26
- package/dist/web/index.web62.js +1 -1
- package/dist/web/index.web70.js +1 -1
- package/dist/web/index.web8.js +1 -1
- package/dist/web/index.web9.js +7 -7
- package/dist/web-types/index.d.ts +1 -0
- package/dist/web-types/index.native.d.ts +1 -0
- package/dist/web-types/index.web.d.ts +1 -0
- package/dist/web-types/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import { initiateAuthentication as e } from "@coinbase/cdp-api-client";
|
|
|
2
2
|
import { Analytics as n } from "./index.native2.js";
|
|
3
3
|
import "./index.native3.js";
|
|
4
4
|
import { getPlatformOAuth as i } from "./index.native8.js";
|
|
5
|
-
import { getCoreAuthManager as r, getConfig as o } from "./index.
|
|
5
|
+
import { getCoreAuthManager as r, getConfig as o } from "./index.native46.js";
|
|
6
6
|
async function g() {
|
|
7
7
|
if (n.sendActionCallEvent({ name: "link_apple" }), !await r().isSignedIn())
|
|
8
8
|
throw new Error("User must be signed in to link an Apple account");
|
|
@@ -4,7 +4,7 @@ import "./index.native3.js";
|
|
|
4
4
|
import { toAuthStateUser as m } from "./index.native52.js";
|
|
5
5
|
import { InternalError as A } from "./index.native42.js";
|
|
6
6
|
import { validateUserAuthState as d } from "./index.native61.js";
|
|
7
|
-
import { getCoreAuthManager as h, getConfig as f } from "./index.
|
|
7
|
+
import { getCoreAuthManager as h, getConfig as f } from "./index.native46.js";
|
|
8
8
|
async function U() {
|
|
9
9
|
i.sendActionCallEvent({ name: "create_evm_eoa_account" });
|
|
10
10
|
const t = h(), { user: e, authState: a } = d(
|
|
@@ -3,7 +3,7 @@ import { Analytics as h } from "./index.native2.js";
|
|
|
3
3
|
import "./index.native3.js";
|
|
4
4
|
import { toAuthStateUser as f } from "./index.native52.js";
|
|
5
5
|
import { InternalError as l } from "./index.native42.js";
|
|
6
|
-
import { getCoreAuthManager as S, getConfig as E } from "./index.
|
|
6
|
+
import { getCoreAuthManager as S, getConfig as E } from "./index.native46.js";
|
|
7
7
|
import { createEvmEoaAccount as g } from "./index.native21.js";
|
|
8
8
|
import { validateUserAuthState as v } from "./index.native61.js";
|
|
9
9
|
async function _(r) {
|
|
@@ -4,7 +4,7 @@ import "./index.native3.js";
|
|
|
4
4
|
import { toAuthStateUser as l } from "./index.native52.js";
|
|
5
5
|
import { InternalError as m } from "./index.native42.js";
|
|
6
6
|
import { validateUserAuthState as A } from "./index.native61.js";
|
|
7
|
-
import { getCoreAuthManager as d, getConfig as h } from "./index.
|
|
7
|
+
import { getCoreAuthManager as d, getConfig as h } from "./index.native46.js";
|
|
8
8
|
async function C() {
|
|
9
9
|
i.sendActionCallEvent({ name: "create_solana_account" });
|
|
10
10
|
const t = d(), { user: e, authState: r } = A(
|
|
@@ -2,7 +2,7 @@ import { sendEvmAssetWithEndUserAccount as o } from "@coinbase/cdp-api-client";
|
|
|
2
2
|
import { Analytics as s } from "./index.native2.js";
|
|
3
3
|
import "./index.native3.js";
|
|
4
4
|
import { withAuth as c } from "./index.native53.js";
|
|
5
|
-
import { getConfig as n, getCoreAuthManager as m } from "./index.
|
|
5
|
+
import { getConfig as n, getCoreAuthManager as m } from "./index.native46.js";
|
|
6
6
|
const A = async (t) => (s.sendActionCallEvent({ name: "send_evm_eoa_usdc" }), n().useMock ? {
|
|
7
7
|
transactionHash: "0x0"
|
|
8
8
|
} : c(t, m(), async ({ user: a, walletSecretId: e }) => {
|
|
@@ -2,7 +2,7 @@ import { sendEvmAssetWithEndUserAccount as m } from "@coinbase/cdp-api-client";
|
|
|
2
2
|
import { Analytics as n } from "./index.native2.js";
|
|
3
3
|
import "./index.native3.js";
|
|
4
4
|
import { withAuth as u } from "./index.native53.js";
|
|
5
|
-
import { getConfig as t, getCoreAuthManager as c } from "./index.
|
|
5
|
+
import { getConfig as t, getCoreAuthManager as c } from "./index.native46.js";
|
|
6
6
|
const f = async (r) => (n.sendActionCallEvent({ name: "send_evm_smart_account_usdc" }), t().useMock ? {
|
|
7
7
|
userOpHash: "0x0"
|
|
8
8
|
} : u(r, c(), async ({ user: a, walletSecretId: s }) => {
|
|
@@ -2,7 +2,7 @@ import { sendSolanaAssetWithEndUserAccount as o } from "@coinbase/cdp-api-client
|
|
|
2
2
|
import { Analytics as s } from "./index.native2.js";
|
|
3
3
|
import "./index.native3.js";
|
|
4
4
|
import { withAuth as c } from "./index.native53.js";
|
|
5
|
-
import { getConfig as n, getCoreAuthManager as i } from "./index.
|
|
5
|
+
import { getConfig as n, getCoreAuthManager as i } from "./index.native46.js";
|
|
6
6
|
const f = async (t) => {
|
|
7
7
|
s.sendActionCallEvent({ name: "send_solana_usdc" });
|
|
8
8
|
const e = t.network ?? "solana";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getMfaConfig as t } from "@coinbase/cdp-api-client";
|
|
2
2
|
import { Analytics as n } from "./index.native2.js";
|
|
3
3
|
import "./index.native3.js";
|
|
4
|
-
import { getConfig as e } from "./index.
|
|
4
|
+
import { getConfig as e } from "./index.native46.js";
|
|
5
5
|
const s = async () => (n.sendActionCallEvent({ name: "get_mfa_config" }), e().useMock ? {
|
|
6
6
|
projectId: e().projectId,
|
|
7
7
|
enabled: !1,
|
|
@@ -3,7 +3,7 @@ import { Analytics as s } from "./index.native2.js";
|
|
|
3
3
|
import "./index.native3.js";
|
|
4
4
|
import { withAuth as l } from "./index.native53.js";
|
|
5
5
|
import { validateUserAuthState as d } from "./index.native61.js";
|
|
6
|
-
import { getConfig as o, getCoreAuthManager as p } from "./index.
|
|
6
|
+
import { getConfig as o, getCoreAuthManager as p } from "./index.native46.js";
|
|
7
7
|
const g = async () => {
|
|
8
8
|
if (s.sendActionCallEvent({ name: "record_mfa_enrollment_prompted" }), o().useMock)
|
|
9
9
|
return {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { __require as r } from "./index.
|
|
1
|
+
import { __require as r } from "./index.native177.js";
|
|
2
2
|
r();
|
|
@@ -3,7 +3,7 @@ import { Analytics as u } from "./index.native2.js";
|
|
|
3
3
|
import "./index.native3.js";
|
|
4
4
|
import { withAuth as i } from "./index.native53.js";
|
|
5
5
|
import { validateUserAuthState as c } from "./index.native61.js";
|
|
6
|
-
import { getConfig as o, getCoreAuthManager as p } from "./index.
|
|
6
|
+
import { getConfig as o, getCoreAuthManager as p } from "./index.native46.js";
|
|
7
7
|
import { validatePhoneNumber as h } from "./index.native43.js";
|
|
8
8
|
async function l(t) {
|
|
9
9
|
const e = await s(
|
|
@@ -5,7 +5,7 @@ import { toAuthStateUser as i } from "./index.native52.js";
|
|
|
5
5
|
import { withAuth as f } from "./index.native53.js";
|
|
6
6
|
import { mockUser as l } from "./index.native56.js";
|
|
7
7
|
import { validateUserAuthState as c } from "./index.native61.js";
|
|
8
|
-
import { getConfig as o, getCoreAuthManager as h } from "./index.
|
|
8
|
+
import { getConfig as o, getCoreAuthManager as h } from "./index.native46.js";
|
|
9
9
|
const S = async (e) => {
|
|
10
10
|
if (u.sendActionCallEvent({ name: "submit_mfa_enrollment" }), o().useMock)
|
|
11
11
|
return {
|
|
@@ -2,7 +2,7 @@ import { initiateMfaVerification as e } from "@coinbase/cdp-api-client";
|
|
|
2
2
|
import { Analytics as r } from "./index.native2.js";
|
|
3
3
|
import "./index.native3.js";
|
|
4
4
|
import { withAuth as o } from "./index.native53.js";
|
|
5
|
-
import { getConfig as i, getCoreAuthManager as n } from "./index.
|
|
5
|
+
import { getConfig as i, getCoreAuthManager as n } from "./index.native46.js";
|
|
6
6
|
const u = async (t) => {
|
|
7
7
|
if (r.sendActionCallEvent({ name: "initiate_mfa_verification" }), !i().useMock)
|
|
8
8
|
return o({}, n(), async ({ user: a }) => {
|
|
@@ -3,7 +3,7 @@ import { Analytics as f } from "./index.native2.js";
|
|
|
3
3
|
import "./index.native3.js";
|
|
4
4
|
import { withAuth as m } from "./index.native53.js";
|
|
5
5
|
import { resolvePendingMfaVerification as t } from "./index.native35.js";
|
|
6
|
-
import { getConfig as e, getCoreAuthManager as a } from "./index.
|
|
6
|
+
import { getConfig as e, getCoreAuthManager as a } from "./index.native46.js";
|
|
7
7
|
const g = async (i) => {
|
|
8
8
|
if (f.sendActionCallEvent({ name: "submit_mfa_verification" }), e().useMock) {
|
|
9
9
|
t();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIError as u, ErrorType as l } from "@coinbase/cdp-api-client";
|
|
2
2
|
import { MfaError as m } from "./index.native42.js";
|
|
3
|
-
import { getCoreAuthManager as a } from "./index.
|
|
3
|
+
import { getCoreAuthManager as a } from "./index.native46.js";
|
|
4
4
|
import { hasRegisteredMfaListeners as i, triggerMfaVerification as o } from "./index.native35.js";
|
|
5
5
|
import { isEnrolledInMfa as M, getEnrolledMfaMethods as E } from "./index.native36.js";
|
|
6
6
|
const h = 300, n = () => {
|
|
@@ -5,7 +5,7 @@ import { toAuthState as d } from "./index.native52.js";
|
|
|
5
5
|
import "viem";
|
|
6
6
|
import { getPlatformCrypto as l } from "./index.native8.js";
|
|
7
7
|
import { sortKeys as w } from "./index.native57.js";
|
|
8
|
-
import { getCoreOAuthManager as m } from "./index.
|
|
8
|
+
import { getCoreOAuthManager as m } from "./index.native46.js";
|
|
9
9
|
const h = 60 * 1e3, y = {
|
|
10
10
|
maxRetries: 3,
|
|
11
11
|
baseDelayMs: 1e3,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModuleResolutionError as n } from "./index.native42.js";
|
|
2
|
-
import { decodeBase64 as c, encodeBase64 as a } from "./index.
|
|
2
|
+
import { decodeBase64 as c, encodeBase64 as a } from "./index.native47.js";
|
|
3
3
|
import "@coinbase/cdp-api-client";
|
|
4
4
|
import "viem";
|
|
5
5
|
const l = {
|
|
@@ -1,34 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const h = e[t], n = t + 1 < e.length ? e[t + 1] : 0, s = t + 2 < e.length ? e[t + 2] : 0, o = h << 16 | n << 8 | s;
|
|
10
|
-
r += c.charAt(o >> 18 & 63), r += c.charAt(o >> 12 & 63), r += t + 1 < e.length ? c.charAt(o >> 6 & 63) : "=", r += t + 2 < e.length ? c.charAt(o & 63) : "=";
|
|
11
|
-
}
|
|
1
|
+
import "@coinbase/cdp-api-client";
|
|
2
|
+
import "viem";
|
|
3
|
+
let r = null, n = null, e = null;
|
|
4
|
+
const a = (t) => {
|
|
5
|
+
r = t;
|
|
6
|
+
}, g = () => {
|
|
7
|
+
if (!r)
|
|
8
|
+
throw new Error("SDK not initialized");
|
|
12
9
|
return r;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const s = r[t[n]] || 0, o = r[t[n + 1]] || 0, l = r[t[n + 2]] || 0, f = r[t[n + 3]] || 0, i = s << 18 | o << 12 | l << 6 | f;
|
|
27
|
-
h.push(i >> 16 & 255), n + 2 < t.length && h.push(i >> 8 & 255), n + 3 < t.length && h.push(i & 255);
|
|
28
|
-
}
|
|
29
|
-
return new Uint8Array(h);
|
|
30
|
-
}
|
|
10
|
+
}, l = (t) => {
|
|
11
|
+
n = t;
|
|
12
|
+
}, u = () => {
|
|
13
|
+
if (!n)
|
|
14
|
+
throw new Error("SDK not initialized");
|
|
15
|
+
return n;
|
|
16
|
+
}, h = (t) => {
|
|
17
|
+
e = t;
|
|
18
|
+
}, s = () => {
|
|
19
|
+
if (!e)
|
|
20
|
+
throw new Error("SDK not initialized");
|
|
21
|
+
return e;
|
|
22
|
+
};
|
|
31
23
|
export {
|
|
32
|
-
g as
|
|
33
|
-
|
|
24
|
+
g as getConfig,
|
|
25
|
+
u as getCoreAuthManager,
|
|
26
|
+
s as getCoreOAuthManager,
|
|
27
|
+
a as setConfig,
|
|
28
|
+
l as setCoreAuthManager,
|
|
29
|
+
h as setCoreOAuthManager
|
|
34
30
|
};
|
|
@@ -1,30 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
function a(e) {
|
|
2
|
+
if (typeof btoa < "u")
|
|
3
|
+
return btoa(
|
|
4
|
+
Array.from(e).map((t) => String.fromCharCode(t)).join("")
|
|
5
|
+
);
|
|
6
|
+
const c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
7
|
+
let r = "";
|
|
8
|
+
for (let t = 0; t < e.length; t += 3) {
|
|
9
|
+
const h = e[t], n = t + 1 < e.length ? e[t + 1] : 0, s = t + 2 < e.length ? e[t + 2] : 0, o = h << 16 | n << 8 | s;
|
|
10
|
+
r += c.charAt(o >> 18 & 63), r += c.charAt(o >> 12 & 63), r += t + 1 < e.length ? c.charAt(o >> 6 & 63) : "=", r += t + 2 < e.length ? c.charAt(o & 63) : "=";
|
|
11
|
+
}
|
|
9
12
|
return r;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
}
|
|
14
|
+
function g(e) {
|
|
15
|
+
if (typeof atob < "u") {
|
|
16
|
+
const n = atob(e), s = new Uint8Array(n.length);
|
|
17
|
+
for (let o = 0; o < n.length; o++)
|
|
18
|
+
s[o] = n.charCodeAt(o);
|
|
19
|
+
return s;
|
|
20
|
+
}
|
|
21
|
+
const c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", r = {};
|
|
22
|
+
for (let n = 0; n < c.length; n++)
|
|
23
|
+
r[c[n]] = n;
|
|
24
|
+
const t = e.replace(/[^A-Za-z0-9+/]/g, ""), h = [];
|
|
25
|
+
for (let n = 0; n < t.length; n += 4) {
|
|
26
|
+
const s = r[t[n]] || 0, o = r[t[n + 1]] || 0, l = r[t[n + 2]] || 0, f = r[t[n + 3]] || 0, i = s << 18 | o << 12 | l << 6 | f;
|
|
27
|
+
h.push(i >> 16 & 255), n + 2 < t.length && h.push(i >> 8 & 255), n + 3 < t.length && h.push(i & 255);
|
|
28
|
+
}
|
|
29
|
+
return new Uint8Array(h);
|
|
30
|
+
}
|
|
23
31
|
export {
|
|
24
|
-
g as
|
|
25
|
-
|
|
26
|
-
s as getCoreOAuthManager,
|
|
27
|
-
a as setConfig,
|
|
28
|
-
l as setCoreAuthManager,
|
|
29
|
-
h as setCoreOAuthManager
|
|
32
|
+
g as decodeBase64,
|
|
33
|
+
a as encodeBase64
|
|
30
34
|
};
|
|
@@ -2,7 +2,7 @@ import { AuthManager as r } from "./index.native39.js";
|
|
|
2
2
|
import { CustomAuthManager as o } from "./index.native50.js";
|
|
3
3
|
import "@coinbase/cdp-api-client";
|
|
4
4
|
import "viem";
|
|
5
|
-
import { getConfig as n } from "./index.
|
|
5
|
+
import { getConfig as n } from "./index.native46.js";
|
|
6
6
|
function a(t) {
|
|
7
7
|
return n().customAuth?.getJwt ? new o(t) : new r(t);
|
|
8
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as u from "expo-web-browser";
|
|
2
2
|
import { WebBrowserResultType as o } from "expo-web-browser";
|
|
3
|
-
import { getCoreOAuthManager as s, getConfig as l } from "./index.
|
|
3
|
+
import { getCoreOAuthManager as s, getConfig as l } from "./index.native46.js";
|
|
4
4
|
const d = {
|
|
5
5
|
getRedirectUrl: () => {
|
|
6
6
|
const e = l().nativeOAuthCallback;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AuthManager as a } from "./index.native39.js";
|
|
2
|
-
import { getConfig as o } from "./index.
|
|
2
|
+
import { getConfig as o } from "./index.native46.js";
|
|
3
3
|
import { CustomAuthError as s } from "./index.native40.js";
|
|
4
4
|
const n = 60 * 60 * 1e3;
|
|
5
5
|
class l extends a {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getTransactionEncoder as u, getTransactionDecoder as f, address as g } from "@solana/kit";
|
|
2
2
|
import { getCurrentUserSync as l } from "./index.native14.js";
|
|
3
3
|
import { signSolanaTransaction as m } from "./index.native10.js";
|
|
4
|
-
import { encodeBase64 as T, decodeBase64 as h } from "./index.
|
|
4
|
+
import { encodeBase64 as T, decodeBase64 as h } from "./index.native47.js";
|
|
5
5
|
function E(n) {
|
|
6
6
|
const o = l();
|
|
7
7
|
if (!o || !o.solanaAccountObjects?.length)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DisconnectedError as l, from as d } from "./index.
|
|
1
|
+
import { DisconnectedError as l, from as d } from "./index.native78.js";
|
|
2
2
|
import { validateRequest as h, EIP1193ProviderError as m, STANDARD_ERROR_CODES as _ } from "./index.native45.js";
|
|
3
|
-
import { createEOAHandlers as p } from "./index.
|
|
4
|
-
import { createSmartAccountHandlers as g } from "./index.
|
|
3
|
+
import { createEOAHandlers as p } from "./index.native79.js";
|
|
4
|
+
import { createSmartAccountHandlers as g } from "./index.native80.js";
|
|
5
5
|
import "viem";
|
|
6
6
|
import "zustand";
|
|
7
7
|
import "@coinbase/cdp-api-client";
|
|
@@ -5,7 +5,7 @@ import { getAccessTokenExpiration as I, getAccessToken as S } from "./index.nati
|
|
|
5
5
|
import { ensureMfaVerified as p } from "./index.native37.js";
|
|
6
6
|
import { DEFAULT_SECURE_IFRAME_BASE_PATH as A, SECURE_IFRAME_KEY_EXPORT_EVENT_TYPE as n, DEFAULT_SECURE_IFRAME_THEME as k } from "./index.native131.js";
|
|
7
7
|
import { validateSecureIframeEnvironment as y, createIframe as x, calculateSecureIframeHeight as U, buildKeyExportIframeUrl as w, getSecureIframeOrigin as v, isSecureIframeKeyExportMessage as R, sendSecureIframeMessage as u } from "./index.native132.js";
|
|
8
|
-
import { getConfig as b } from "./index.
|
|
8
|
+
import { getConfig as b } from "./index.native46.js";
|
|
9
9
|
let s = null;
|
|
10
10
|
const C = async () => (s || (s = S({ forceRefresh: !0 }).finally(() => {
|
|
11
11
|
s = null;
|