@nexus-cross/crossx-sdk-core 2.3.10-beta.7 → 2.3.10
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 +6 -6
- package/dist/core/constants.d.ts +1 -1
- package/dist/core/types/chain.d.ts +5 -5
- package/dist/crossx.global +9 -9
- package/dist/index.cjs +11 -11
- package/dist/index.js +9 -9
- 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.10
|
|
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.10", He = "ONEwallet";
|
|
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",
|
|
@@ -36,14 +36,14 @@ function Gt(i) {
|
|
|
36
36
|
}
|
|
37
37
|
const Ae = {
|
|
38
38
|
// ─── CROSS ────────────────────────────────────────────
|
|
39
|
-
|
|
39
|
+
ONE_MAINNET: {
|
|
40
40
|
caipId: "eip155:612055",
|
|
41
41
|
chainId: 612055,
|
|
42
|
-
name: "
|
|
43
|
-
nativeCurrency: { symbol: "
|
|
42
|
+
name: "ONEchain Mainnet",
|
|
43
|
+
nativeCurrency: { symbol: "ONE", decimals: 18 },
|
|
44
44
|
rpcUrl: "https://mainnet.crosstoken.io:22001"
|
|
45
45
|
},
|
|
46
|
-
|
|
46
|
+
ONE_TESTNET: {
|
|
47
47
|
caipId: "eip155:612044",
|
|
48
48
|
chainId: 612044,
|
|
49
49
|
name: "ONEchain Testnet",
|
|
@@ -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.10
|
|
2571
|
+
c.log("[CROSSx SDK] v2.3.10 초기화 중..."), 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.10
|
|
2607
|
+
return this.initialized = !0, c.info("[CROSSx SDK] v2.3.10 초기화 완료"), 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.10
|
|
2627
|
+
sdkVersion: "2.3.10",
|
|
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.10
|
|
2635
|
+
sdkVersion: "2.3.10",
|
|
2636
2636
|
keyId: "key-id-1",
|
|
2637
2637
|
userIdHash: "user-hash-placeholder",
|
|
2638
2638
|
projectId: this._config.projectId
|