@nexus-cross/crossx-sdk-react 1.0.0 → 1.0.2-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/README.md +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -192,7 +192,7 @@ function AdvancedPanel() {
|
|
|
192
192
|
// eth_call로 ERC-20 balanceOf 직접 호출
|
|
193
193
|
const data = '0x70a08231000000000000000000000000' +
|
|
194
194
|
walletAddress!.slice(2).toLowerCase().padStart(64, '0');
|
|
195
|
-
const raw = await sdk.
|
|
195
|
+
const raw = await sdk.walletRpc(
|
|
196
196
|
'eth_call',
|
|
197
197
|
[{ to: '0x9f85c7b5d7637e18f946cc8af9c131318c6833d9', data }, 'latest'],
|
|
198
198
|
'eip155:612044'
|
|
@@ -351,7 +351,7 @@ const {
|
|
|
351
351
|
| `sdk.sendTransactionAndWait(chainId, tx)` | 전송 + Receipt 폴링 |
|
|
352
352
|
| `sdk.getBalance(chainId)` | 네이티브 잔액 조회 |
|
|
353
353
|
| `sdk.getNonce(chainId)` | 현재 nonce 조회 |
|
|
354
|
-
| `sdk.
|
|
354
|
+
| `sdk.walletRpc(method, params, chainId)` | 범용 JSON-RPC 호출 |
|
|
355
355
|
| `sdk.getProvider(chainId)` | EIP-1193 Provider 반환 |
|
|
356
356
|
| `sdk.createWallet()` | 수동 지갑 생성 |
|
|
357
357
|
| `sdk.setTheme('dark')` | 확인 모달 테마 런타임 전환 (`themeTokens` 오버라이드 유지) |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexus-cross/crossx-sdk-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2-beta.1",
|
|
4
4
|
"description": "CROSSx React SDK - React Hooks and Components for Embedded Wallet",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"react": "^18.0.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@nexus-cross/crossx-sdk-core": "1.0.
|
|
36
|
+
"@nexus-cross/crossx-sdk-core": "1.0.2-beta.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/react": "^18.2.48",
|