@tuwaio/evm-sdk 0.1.9 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +15 -3
  2. package/package.json +9 -9
package/README.md CHANGED
@@ -25,7 +25,7 @@ It securely wraps `viem` and `@wagmi/core`, providing standardized adapters for
25
25
  - **🔐 Headless SIWX Auth**: Provides the EVM-native message signer (`createEvmSiwxSigner`) for seamless CAIP-122 authentication (`@tuwaio/evm-sdk/siwx`).
26
26
 
27
27
  > [!WARNING]
28
- > **SIWE Deprecation Notice**: Legacy SIWE authorization flows in Satellite are **deprecated**. Migrate to `@tuwaio/evm-sdk/siwx` (`createEvmSiwxSigner`) and `@tuwaio/sdk/siwx/server` for multi-chain CAIP-122 authentication.
28
+ > **SIWX Migration Notice**: Legacy SIWE authorization flows in Satellite are **deprecated**. Migrate to `@tuwaio/evm-sdk/siwx` (`createEvmSiwxSigner`) and `@tuwaio/sdk/siwx/server` for multi-chain CAIP-122 authentication.
29
29
 
30
30
  ---
31
31
 
@@ -136,6 +136,7 @@ import { SatelliteConnectProvider } from '@tuwaio/sdk/satellite';
136
136
  import { NovaConnectProvider } from '@tuwaio/sdk/nova-connect';
137
137
  import { satelliteEVMAdapter } from '@tuwaio/evm-sdk/satellite';
138
138
  import { EVMConnectorsWatcher } from '@tuwaio/evm-sdk/nova-connect';
139
+ import { useSiwxSession } from '@tuwaio/sdk/siwx';
139
140
 
140
141
  import { appEVMChains, wagmiConfig } from '@/configs/appConfig';
141
142
  import { usePulsarStore } from '@/hooks/usePulsarStore';
@@ -144,20 +145,31 @@ import { NovaTransactionsProvider } from '@/providers/NovaTransactionsProvider';
144
145
  export function AppProviders({ children }: { children: React.ReactNode }) {
145
146
  const getAdapter = usePulsarStore((s) => s.getAdapter);
146
147
  const transactionsPool = usePulsarStore((s) => s.transactionsPool);
148
+ const siwxSession = useSiwxSession();
147
149
 
148
150
  return (
149
151
  <SatelliteConnectProvider adapter={[satelliteEVMAdapter(wagmiConfig, appEVMChains)]} autoConnect={true}>
150
- <EVMConnectorsWatcher wagmiConfig={wagmiConfig} />
152
+ <EVMConnectorsWatcher wagmiConfig={wagmiConfig} siwx={siwxSession} />
151
153
 
152
154
  <NovaTransactionsProvider />
153
155
 
154
156
  <NovaConnectProvider
155
157
  appChains={appEVMChains}
156
158
  transactionPool={transactionsPool}
157
- pulsarAdapter={getAdapter() as any}
159
+ pulsarAdapter={getAdapter()}
158
160
  withImpersonated
159
161
  withBalance
160
162
  withChain
163
+ siwx={{
164
+ verifier: async (payload) => {
165
+ const res = await fetch('/api/siwx/verify', {
166
+ method: 'POST',
167
+ headers: { 'Content-Type': 'application/json' },
168
+ body: JSON.stringify(payload),
169
+ });
170
+ return res.ok ? res.json() : null;
171
+ },
172
+ }}
161
173
  >
162
174
  {children}
163
175
  </NovaConnectProvider>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuwaio/evm-sdk",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "private": false,
5
5
  "author": "Oleksandr Tkach",
6
6
  "license": "Apache-2.0",
@@ -99,8 +99,8 @@
99
99
  "dependencies": {
100
100
  "@tuwaio/orbit-evm": "^0.2.22",
101
101
  "@tuwaio/pulsar-evm": "^0.5.10",
102
- "@tuwaio/satellite-evm": "^0.4.2",
103
- "@tuwaio/siwx-evm": "^0.1.1"
102
+ "@tuwaio/satellite-evm": "^0.4.3",
103
+ "@tuwaio/siwx-evm": "^0.2.0"
104
104
  },
105
105
  "peerDependencies": {
106
106
  "@tuwaio/nova-connect": "^0.5.7",
@@ -108,17 +108,17 @@
108
108
  "@tuwaio/satellite-react": "^0.4.5",
109
109
  "@wagmi/core": "3.x.x",
110
110
  "viem": "2.x.x",
111
- "@tuwaio/sdk": "^0.1.9"
111
+ "@tuwaio/sdk": "^0.1.10"
112
112
  },
113
113
  "devDependencies": {
114
- "@tuwaio/nova-connect": "^0.5.7",
115
- "@tuwaio/satellite-core": "^0.4.1",
116
- "@tuwaio/satellite-react": "^0.4.5",
114
+ "@tuwaio/nova-connect": "^0.5.8",
115
+ "@tuwaio/satellite-core": "^0.4.2",
116
+ "@tuwaio/satellite-react": "^0.4.7",
117
117
  "@wagmi/core": "^3.6.4",
118
118
  "tsup": "^8.5.1",
119
119
  "typescript": "^6.0.3",
120
- "viem": "^2.55.11",
121
- "@tuwaio/sdk": "^0.1.9"
120
+ "viem": "^2.55.16",
121
+ "@tuwaio/sdk": "^0.1.10"
122
122
  },
123
123
  "scripts": {
124
124
  "start": "tsup --watch",