@tuwaio/nova-connect 1.0.0-fix-test-alpha.6.2ae3a34 → 1.0.0-fix-test-alpha.7.eac112e

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 +15 -34
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -57,11 +57,12 @@ yarn add @tuwaio/nova-connect @tuwaio/satellite-core @tuwaio/orbit-core @tuwaio/
57
57
  ```tsx
58
58
  import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
59
59
  import { satelliteEVMAdapter } from '@tuwaio/satellite-evm';
60
- import { EVMWalletsWatcher, SatelliteConnectProvider, SolanaWalletsWatcher } from '@tuwaio/satellite-react';
60
+ import { EVMWalletsWatcher, SatelliteConnectProvider, SolanaWalletsWatcher } from '@tuwaio/nova-connect';
61
61
  import { initializeSolanaMobileConnectors, satelliteSolanaAdapter } from '@tuwaio/satellite-solana';
62
+ import { createDefaultTransports, initAllConnectors } from '@tuwaio/satellite-evm';
63
+ import { createConfig } from '@wagmi/core';
62
64
  import { ReactNode } from 'react';
63
65
  import { WagmiProvider } from 'wagmi';
64
- import { createWagmiConfig } from '@tuwaio/satellite-evm';
65
66
  import { Chain, mainnet, polygon, arbitrum } from 'viem/chains';
66
67
 
67
68
  export const appConfig = {
@@ -74,8 +75,11 @@ export const solanaRPCUrls = {
74
75
 
75
76
  export const appEVMChains = [mainnet, polygon, arbitrum] as readonly [Chain, ...Chain[]];
76
77
 
77
- export const wagmiConfig = createWagmiConfig({
78
- ...appConfig,
78
+ export const wagmiConfig = createConfig({
79
+ connectors: initAllConnectors({
80
+ ...appConfig,
81
+ }),
82
+ transports: createDefaultTransports(appEVMChains),
79
83
  chains: appEVMChains,
80
84
  ssr: true,
81
85
  syncConnectedChain: true,
@@ -106,25 +110,20 @@ export function Providers({ children }: { children: ReactNode }) {
106
110
  }
107
111
  ```
108
112
 
109
- ### Using NovaConnectButton
113
+ ### Using ConnectButton
110
114
 
111
115
  ```tsx
112
- import { NovaConnectButton } from '@tuwaio/nova-connect';
113
- import { SatelliteStoreContext } from '@tuwaio/satellite-react';
114
- import { useContext } from 'react';
116
+ import { ConnectButton } from '@tuwaio/nova-connect';
115
117
 
116
118
  function App() {
117
- const store = useContext(SatelliteStoreContext);
118
-
119
119
  return (
120
120
  <div>
121
- <NovaConnectButton
122
- store={store}
121
+ <ConnectButton
123
122
  appChains={appEVMChains}
124
123
  solanaRPCUrls={solanaRPCUrls}
124
+ withImpersonated
125
125
  withBalance
126
126
  withChain
127
- withImpersonated
128
127
  />
129
128
  </div>
130
129
  );
@@ -137,26 +136,10 @@ function App() {
137
136
 
138
137
  Nova Connect provides three levels of customization:
139
138
 
140
- ### Basic Customization
141
-
142
- ```tsx
143
- <NovaConnectButton
144
- store={store}
145
- appChains={appEVMChains}
146
- solanaRPCUrls={solanaRPCUrls}
147
- className="custom-button"
148
- labels={{
149
- connectWallet: 'Connect Wallet',
150
- disconnect: 'Disconnect',
151
- }}
152
- />
153
- ```
154
-
155
139
  ### Advanced Customization
156
140
 
157
141
  ```tsx
158
- <NovaConnectButton
159
- store={store}
142
+ <ConnectButton
160
143
  appChains={appEVMChains}
161
144
  solanaRPCUrls={solanaRPCUrls}
162
145
  customization={{
@@ -179,7 +162,6 @@ Nova Connect provides three levels of customization:
179
162
 
180
163
  ```tsx
181
164
  <NovaConnectButton
182
- store={store}
183
165
  appChains={appEVMChains}
184
166
  solanaRPCUrls={solanaRPCUrls}
185
167
  customization={{
@@ -212,7 +194,7 @@ Nova Connect provides three levels of customization:
212
194
 
213
195
  ## 🧩 Key Components
214
196
 
215
- ### 1. **NovaConnectButton**
197
+ ### 1. **ConnectButton**
216
198
 
217
199
  - Main component for wallet connection.
218
200
  - Built-in support for balance display and network selector.
@@ -243,8 +225,7 @@ const customLabels = {
243
225
  // ... other labels
244
226
  };
245
227
 
246
- <NovaConnectButton
247
- store={store}
228
+ <NovaConnectProvider
248
229
  labels={customLabels}
249
230
  // ... other props
250
231
  />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuwaio/nova-connect",
3
- "version": "1.0.0-fix-test-alpha.6.2ae3a34",
3
+ "version": "1.0.0-fix-test-alpha.7.eac112e",
4
4
  "private": false,
5
5
  "author": "Oleksandr Tkach",
6
6
  "license": "Apache-2.0",
@@ -212,8 +212,8 @@
212
212
  "tw-animate-css": "^1.4.0",
213
213
  "typescript": "^5.9.3",
214
214
  "tsup": "^8.5.0",
215
- "@tuwaio/nova-core": "^1.0.0-fix-test-alpha.6.2ae3a34",
216
- "@tuwaio/nova-transactions": "^1.0.0-fix-test-alpha.6.2ae3a34"
215
+ "@tuwaio/nova-core": "^1.0.0-fix-test-alpha.7.eac112e",
216
+ "@tuwaio/nova-transactions": "^1.0.0-fix-test-alpha.7.eac112e"
217
217
  },
218
218
  "scripts": {
219
219
  "start": "tsup src/index.ts --watch",