@nexus-cross/crossx-sdk-core 2.3.3-beta.4 → 2.3.7-beta.1
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/adapters/wallet/RNBridgeWalletProviderAdapter.d.ts +15 -1
- package/dist/core/config/environments.d.ts +6 -0
- package/dist/core/constants.d.ts +11 -1
- package/dist/core/types/chain.d.ts +2 -2
- package/dist/core/types/connectOtherWallet.d.ts +0 -5
- package/dist/core/types/index.d.ts +1 -1
- package/dist/crossx.global +82 -85
- package/dist/index.cjs +93 -96
- package/dist/index.d.ts +1 -1
- package/dist/index.js +685 -634
- package/dist/sdk/services/PinOrchestrator.d.ts +7 -0
- package/package.json +1 -1
|
@@ -18,6 +18,13 @@ export declare class RNBridgeWalletProviderAdapter implements WalletProviderPort
|
|
|
18
18
|
* 만료된 세션이 sign/send 에 사용되는 것을 차단한다.
|
|
19
19
|
*/
|
|
20
20
|
private readonly assertBridgeSessionActive;
|
|
21
|
+
/**
|
|
22
|
+
* dApp 이 configure({ appName }) 로 지정한 앱 이름.
|
|
23
|
+
* native bridge sign/send 요청에 dappName 으로 실어, 지갑 확인 화면이
|
|
24
|
+
* 페이지 <title> fallback 대신 앱 이름을 표시하도록 한다.
|
|
25
|
+
* 미지정 시 undefined → native 가 title fallback.
|
|
26
|
+
*/
|
|
27
|
+
private readonly getAppName;
|
|
21
28
|
checkWallet?: () => Promise<WalletCheckResult>;
|
|
22
29
|
prepare?: (action: PrepareAction, context: PrepareContext) => Promise<PrepareResult>;
|
|
23
30
|
migrateWallet?: (pin: string, sub: string) => Promise<WalletData>;
|
|
@@ -44,7 +51,14 @@ export declare class RNBridgeWalletProviderAdapter implements WalletProviderPort
|
|
|
44
51
|
* native 위임 직전 호출하며, 세션 만료 시 SESSION_EXPIRED 를 throw 한다.
|
|
45
52
|
* 만료된 세션이 sign/send 에 사용되는 것을 차단한다.
|
|
46
53
|
*/
|
|
47
|
-
assertBridgeSessionActive?: () => void
|
|
54
|
+
assertBridgeSessionActive?: () => void,
|
|
55
|
+
/**
|
|
56
|
+
* dApp 이 configure({ appName }) 로 지정한 앱 이름.
|
|
57
|
+
* native bridge sign/send 요청에 dappName 으로 실어, 지갑 확인 화면이
|
|
58
|
+
* 페이지 <title> fallback 대신 앱 이름을 표시하도록 한다.
|
|
59
|
+
* 미지정 시 undefined → native 가 title fallback.
|
|
60
|
+
*/
|
|
61
|
+
getAppName?: () => string | undefined);
|
|
48
62
|
/** native delegation 가능 여부 (인증 + bridge 메서드 존재) 한 번에 판정 */
|
|
49
63
|
private shouldUseBridge;
|
|
50
64
|
signMessage(userId: string, chainId: string, message: string, index?: number, uuid?: string, from?: string): Promise<SignResponse>;
|
|
@@ -15,6 +15,12 @@ export interface EnvironmentUrls {
|
|
|
15
15
|
walletGatewayUrl: string;
|
|
16
16
|
/** 지갑 portrait 이미지 CDN 기본 URL */
|
|
17
17
|
portraitBaseUrl: string;
|
|
18
|
+
/**
|
|
19
|
+
* 공용 remote-config(S3/CDN) 기본 URL. app-launcher와 동일한 디렉터리를
|
|
20
|
+
* 공유하며, `chains.json`(chainId → { name, nativeSymbol }) 등 표시용
|
|
21
|
+
* 설정을 여기서 읽는다. dev/staging은 staging CDN을 공유한다.
|
|
22
|
+
*/
|
|
23
|
+
contentsBaseUrl: string;
|
|
18
24
|
}
|
|
19
25
|
export declare const ENVIRONMENTS: Record<SDKEnvironment, EnvironmentUrls>;
|
|
20
26
|
/**
|
package/dist/core/constants.d.ts
CHANGED
|
@@ -37,4 +37,14 @@ export declare const CHAIN_FALLBACK_RETRY_MS: number;
|
|
|
37
37
|
*/
|
|
38
38
|
export declare const MNEMONIC_ADDRESS_LIMIT = 100;
|
|
39
39
|
/** Token History API clientVersion (registerTokenHistory 호출 시 전송) */
|
|
40
|
-
export declare const SDK_CLIENT_VERSION = "crossx-sdk-js/2.3.
|
|
40
|
+
export declare const SDK_CLIENT_VERSION = "crossx-sdk-js/2.3.7-beta.1";
|
|
41
|
+
/**
|
|
42
|
+
* 사용자에게 노출되는 지갑 브랜드명 — 단일 소스(Single Source of Truth).
|
|
43
|
+
*
|
|
44
|
+
* 로그인 모달 타이틀·wagmi connector name·"Connect Other Wallets" 라벨 등
|
|
45
|
+
* 화면 표기는 모두 이 상수를 참조합니다. 표기 변경 시 이 값만 바꾸면 됩니다.
|
|
46
|
+
*
|
|
47
|
+
* 주의: connector `id`('crossx')·class명(`CROSSxSDK`) 등 내부 식별자는 별개이며
|
|
48
|
+
* 여기서 바꾸지 않습니다.
|
|
49
|
+
*/
|
|
50
|
+
export declare const WALLET_BRAND_NAME = "ONEwallet";
|
|
@@ -35,9 +35,9 @@ export declare const CHAIN_REGISTRY: {
|
|
|
35
35
|
readonly CROSS_TESTNET: {
|
|
36
36
|
readonly caipId: "eip155:612044";
|
|
37
37
|
readonly chainId: 612044;
|
|
38
|
-
readonly name: "
|
|
38
|
+
readonly name: "ONEchain Testnet";
|
|
39
39
|
readonly nativeCurrency: {
|
|
40
|
-
readonly symbol: "
|
|
40
|
+
readonly symbol: "tONE";
|
|
41
41
|
readonly decimals: 18;
|
|
42
42
|
};
|
|
43
43
|
readonly rpcUrl: "https://testnet.crosstoken.io:22001";
|