@nexus-cross/crossx-sdk-core 2.3.10 → 2.3.11
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/core/constants.d.ts +2 -2
- package/dist/core/utils/walletBrowser.d.ts +7 -5
- package/dist/crossx.global +4 -4
- package/dist/index.cjs +4 -4
- package/dist/index.js +9 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ class _ extends Error {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
const Ot = 2e3, Je = 6e4, Lt = 1e3, Dt = 1e4, Mt = "0x77359400", Ze = "0x3B9ACA00", Qe = 130, We = 6, et = 18, tt = 3e4, $t = 5 * 60 * 1e3, Ft = 30 * 1e3, De = 100, Bt = "crossx-sdk-js/2.3.
|
|
19
|
+
const Ot = 2e3, Je = 6e4, Lt = 1e3, Dt = 1e4, Mt = "0x77359400", Ze = "0x3B9ACA00", Qe = 130, We = 6, et = 18, tt = 3e4, $t = 5 * 60 * 1e3, Ft = 30 * 1e3, De = 100, Bt = "crossx-sdk-js/2.3.11", He = "ONEpocket";
|
|
20
20
|
var ge = /* @__PURE__ */ ((i) => (i.MetaMask = "io.metamask", i.Binance = "com.binance.wallet", i.CROSSx = "crossx", i))(ge || {});
|
|
21
21
|
const Ut = {
|
|
22
22
|
"io.metamask": "MetaMask",
|
|
@@ -395,7 +395,7 @@ const c = {
|
|
|
395
395
|
login_selector_connect_other_wallets_desc: "Connect your existing Web3 wallet to manage your assets.",
|
|
396
396
|
// ── Migration modal ──────────────────────────────────────────
|
|
397
397
|
migration_found_title: "Existing Wallet Found",
|
|
398
|
-
migration_found_description: "An existing
|
|
398
|
+
migration_found_description: "An existing wallet was found. Would you like to recover it?",
|
|
399
399
|
migration_recover_button: "Recover",
|
|
400
400
|
migration_skip_button: "Skip",
|
|
401
401
|
// ── Recovery PIN input modal (migration — CROSSx 4-digit PIN) ─
|
|
@@ -2568,7 +2568,7 @@ const ce = class ce extends Qt {
|
|
|
2568
2568
|
}
|
|
2569
2569
|
async _doInitialize(e) {
|
|
2570
2570
|
var r, t;
|
|
2571
|
-
c.log("[CROSSx SDK] v2.3.
|
|
2571
|
+
c.log("[CROSSx SDK] v2.3.11 초기화 중..."), this.confirmation.setMessages(Q(this._config.locale));
|
|
2572
2572
|
try {
|
|
2573
2573
|
const s = Ge();
|
|
2574
2574
|
this.internalConfig.oauthServiceUrl = s.oauthServiceUrl, this.internalConfig.legacyOauthServiceUrl = s.legacyOauthServiceUrl, this.internalConfig.authApiUrl = s.authApiUrl, this.internalConfig.walletGatewayUrl = s.walletGatewayUrl, this.adapterConfig.gatewayUrl = s.walletGatewayUrl, (t = (r = this.crypto).setJWKSEndpoint) == null || t.call(r, `${s.authApiUrl}/.well-known/jwks.json`);
|
|
@@ -2604,7 +2604,7 @@ const ce = class ce extends Qt {
|
|
|
2604
2604
|
throw u;
|
|
2605
2605
|
}
|
|
2606
2606
|
}
|
|
2607
|
-
return this.initialized = !0, c.info("[CROSSx SDK] v2.3.
|
|
2607
|
+
return this.initialized = !0, c.info("[CROSSx SDK] v2.3.11 초기화 완료"), this.emit("initialized", { restored: !!(l != null && l.success) }), l ?? null;
|
|
2608
2608
|
} catch (s) {
|
|
2609
2609
|
throw new _(d.AUTH_NOT_INITIALIZED, "SDK 초기화에 실패했습니다", s);
|
|
2610
2610
|
}
|
|
@@ -2624,7 +2624,7 @@ const ce = class ce extends Qt {
|
|
|
2624
2624
|
c.log("[CROSSx] RN Bridge 감지 — Handshake 시도"), c.info("[CROSSx][RNBridge trace] Bootstrap config", {
|
|
2625
2625
|
appId: this._config.projectId,
|
|
2626
2626
|
appVersion: "1.0.0",
|
|
2627
|
-
sdkVersion: "2.3.
|
|
2627
|
+
sdkVersion: "2.3.11",
|
|
2628
2628
|
keyId: "key-id-1",
|
|
2629
2629
|
userIdHash: "user-hash-placeholder",
|
|
2630
2630
|
projectId: this._config.projectId
|
|
@@ -2632,7 +2632,7 @@ const ce = class ce extends Qt {
|
|
|
2632
2632
|
const e = new j({
|
|
2633
2633
|
appId: this._config.projectId,
|
|
2634
2634
|
appVersion: "1.0.0",
|
|
2635
|
-
sdkVersion: "2.3.
|
|
2635
|
+
sdkVersion: "2.3.11",
|
|
2636
2636
|
keyId: "key-id-1",
|
|
2637
2637
|
userIdHash: "user-hash-placeholder",
|
|
2638
2638
|
projectId: this._config.projectId
|
|
@@ -4430,7 +4430,8 @@ class Tr {
|
|
|
4430
4430
|
}
|
|
4431
4431
|
const Rr = [
|
|
4432
4432
|
/CROSSx\/([\d.]+)/i,
|
|
4433
|
-
/ONE\s?wallet[^\s/]*\/([\d.]+)/i
|
|
4433
|
+
/ONE\s?wallet[^\s/]*\/([\d.]+)/i,
|
|
4434
|
+
/ONE\s?pocket[^\s/]*\/([\d.]+)/i
|
|
4434
4435
|
];
|
|
4435
4436
|
function Ke() {
|
|
4436
4437
|
return typeof window > "u" ? void 0 : window;
|
|
@@ -4968,7 +4969,7 @@ class ae {
|
|
|
4968
4969
|
if (this._walletStatusCache !== null ? (r = this._walletStatusCache, this._walletStatusCache = null, c.log("[CROSSx] getOrCreateWallet — 캐시된 상태 사용:", r)) : (c.log("[CROSSx] GET /mnemonic/check — 지갑 상태 확인"), r = await this.checkWallet(), this._walletStatusCache = null), r === "migration_required")
|
|
4969
4970
|
throw c.log("[CROSSx] migration_required → MIGRATION_BACKUP_EXISTS throw"), new _(
|
|
4970
4971
|
d.MIGRATION_BACKUP_EXISTS,
|
|
4971
|
-
"
|
|
4972
|
+
"기존 지갑 백업이 존재합니다. 마이그레이션을 진행해 주세요."
|
|
4972
4973
|
);
|
|
4973
4974
|
if (r === "exists") {
|
|
4974
4975
|
c.log("[CROSSx] 기존 지갑 발견 — POST /mnemonic/address(0)로 주소 조회");
|