@nexus-cross/crossx-sdk-react 2.3.10-beta.7 → 2.3.11-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.
Files changed (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -70,12 +70,12 @@ function WalletActions() {
70
70
  const { address, signMessage, sendTransaction, isLoading, error } = useWallet();
71
71
 
72
72
  const handleSign = async () => {
73
- const result = await signMessage(ChainId.CROSS_MAINNET, 'Hello CROSSx!');
73
+ const result = await signMessage(ChainId.ONE_MAINNET, 'Hello CROSSx!');
74
74
  console.log('Signature:', result.signature);
75
75
  };
76
76
 
77
77
  const handleSend = async () => {
78
- const result = await sendTransaction(ChainId.CROSS_MAINNET, {
78
+ const result = await sendTransaction(ChainId.ONE_MAINNET, {
79
79
  from: address!,
80
80
  to: '0x...',
81
81
  value: '0x2386f26fc10000',
@@ -193,7 +193,7 @@ const {
193
193
 
194
194
  | Parameter | Type | Example |
195
195
  |-----------|------|---------|
196
- | `chainId` | `string` | `ChainId.CROSS_MAINNET` |
196
+ | `chainId` | `string` | `ChainId.ONE_MAINNET` |
197
197
  | `message` | `string` | `'Hello CROSSx!'` |
198
198
 
199
199
  Returns: `{ chainId, signature, message, address }`
@@ -246,8 +246,8 @@ Available methods via `sdk`:
246
246
  ```ts
247
247
  import { ChainId } from '@nexus-cross/crossx-sdk-react';
248
248
 
249
- ChainId.CROSS_MAINNET // 'eip155:612055'
250
- ChainId.CROSS_TESTNET // 'eip155:612044'
249
+ ChainId.ONE_MAINNET // 'eip155:612055'
250
+ ChainId.ONE_TESTNET // 'eip155:612044'
251
251
  ```
252
252
 
253
253
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-cross/crossx-sdk-react",
3
- "version": "2.3.10-beta.7",
3
+ "version": "2.3.11-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",
@@ -34,7 +34,7 @@
34
34
  "react": "^18.0.0"
35
35
  },
36
36
  "dependencies": {
37
- "@nexus-cross/crossx-sdk-core": "2.3.10-beta.7"
37
+ "@nexus-cross/crossx-sdk-core": "2.3.11-beta.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/react": "^18.2.48",