@dynamic-labs-sdk/zerodev 0.1.0-alpha.13
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/CHANGELOG.md +328 -0
- package/README.md +16 -0
- package/index.cjs.d.ts +1 -0
- package/index.cjs.js +54 -0
- package/index.esm.d.ts +1 -0
- package/index.esm.js +51 -0
- package/package.json +28 -0
- package/src/addZerodevExtension/addZerodevExtension.d.ts +10 -0
- package/src/addZerodevExtension/addZerodevExtension.d.ts.map +1 -0
- package/src/addZerodevExtension/index.d.ts +2 -0
- package/src/addZerodevExtension/index.d.ts.map +1 -0
- package/src/constants.d.ts +12 -0
- package/src/constants.d.ts.map +1 -0
- package/src/exports/index.d.ts +3 -0
- package/src/exports/index.d.ts.map +1 -0
- package/src/getSignerForSmartWalletAccount/getSignerForSmartWalletAccount.d.ts +17 -0
- package/src/getSignerForSmartWalletAccount/getSignerForSmartWalletAccount.d.ts.map +1 -0
- package/src/getSignerForSmartWalletAccount/index.d.ts +2 -0
- package/src/getSignerForSmartWalletAccount/index.d.ts.map +1 -0
- package/src/utils/getEcdsaValidator/getEcdsaValidator.d.ts +13 -0
- package/src/utils/getEcdsaValidator/getEcdsaValidator.d.ts.map +1 -0
- package/src/utils/getEcdsaValidator/index.d.ts +2 -0
- package/src/utils/getEcdsaValidator/index.d.ts.map +1 -0
- package/src/utils/getEntryPoint/getEntryPoint.d.ts +2 -0
- package/src/utils/getEntryPoint/getEntryPoint.d.ts.map +1 -0
- package/src/utils/getEntryPoint/index.d.ts +2 -0
- package/src/utils/getEntryPoint/index.d.ts.map +1 -0
- package/src/utils/getKernelVersion/getKernelVersion.d.ts +10 -0
- package/src/utils/getKernelVersion/getKernelVersion.d.ts.map +1 -0
- package/src/utils/getKernelVersion/index.d.ts +2 -0
- package/src/utils/getKernelVersion/index.d.ts.map +1 -0
- package/src/utils/getPaymasterConfig/getPaymasterConfig.d.ts +18 -0
- package/src/utils/getPaymasterConfig/getPaymasterConfig.d.ts.map +1 -0
- package/src/utils/getPaymasterConfig/index.d.ts +2 -0
- package/src/utils/getPaymasterConfig/index.d.ts.map +1 -0
- package/src/utils/getZerodevChainProviderForNetworkId/getZerodevChainProviderForNetworkId.d.ts +7 -0
- package/src/utils/getZerodevChainProviderForNetworkId/getZerodevChainProviderForNetworkId.d.ts.map +1 -0
- package/src/utils/getZerodevChainProviderForNetworkId/index.d.ts +2 -0
- package/src/utils/getZerodevChainProviderForNetworkId/index.d.ts.map +1 -0
- package/src/utils/getZerodevProviderFromSettings/getZerodevProviderFromSettings.d.ts +3 -0
- package/src/utils/getZerodevProviderFromSettings/getZerodevProviderFromSettings.d.ts.map +1 -0
- package/src/utils/getZerodevProviderFromSettings/index.d.ts +2 -0
- package/src/utils/getZerodevProviderFromSettings/index.d.ts.map +1 -0
- package/src/utils/getZerodevRpc/getZerodevRpc.d.ts +10 -0
- package/src/utils/getZerodevRpc/getZerodevRpc.d.ts.map +1 -0
- package/src/utils/getZerodevRpc/index.d.ts +2 -0
- package/src/utils/getZerodevRpc/index.d.ts.map +1 -0
- package/src/utils/shouldUseEIP7702/index.d.ts +2 -0
- package/src/utils/shouldUseEIP7702/index.d.ts.map +1 -0
- package/src/utils/shouldUseEIP7702/shouldUseEIP7702.d.ts +7 -0
- package/src/utils/shouldUseEIP7702/shouldUseEIP7702.d.ts.map +1 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
## 0.1.0-alpha.13 (2025-09-30)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- persist unverified wallets in local storage ([#448](https://github.com/dynamic-labs/dynamic-sdk/pull/448))
|
|
6
|
+
|
|
7
|
+
### 🩹 Fixes
|
|
8
|
+
|
|
9
|
+
- update how wallet account id is computed to support multiple wallet accounts with the same address ([#481](https://github.com/dynamic-labs/dynamic-sdk/pull/481))
|
|
10
|
+
|
|
11
|
+
### 🔧 Refactors
|
|
12
|
+
|
|
13
|
+
- rename schemas ([#471](https://github.com/dynamic-labs/dynamic-sdk/pull/471))
|
|
14
|
+
|
|
15
|
+
## 0.1.0-alpha.12 (2025-09-23)
|
|
16
|
+
|
|
17
|
+
This was a version bump only, there were no code changes.
|
|
18
|
+
|
|
19
|
+
## 0.1.0-alpha.11 (2025-09-23)
|
|
20
|
+
|
|
21
|
+
### 🩹 Fixes
|
|
22
|
+
|
|
23
|
+
- logout user when any api call fails with 401 " ([#432](https://github.com/dynamic-labs/dynamic-sdk/pull/432), [#450](https://github.com/dynamic-labs/dynamic-sdk/pull/450))
|
|
24
|
+
- logout user only when it fails to refresh user with cookies ([#451](https://github.com/dynamic-labs/dynamic-sdk/pull/451))
|
|
25
|
+
|
|
26
|
+
### 🔧 Refactors
|
|
27
|
+
|
|
28
|
+
- rework captcha code for demo ([#449](https://github.com/dynamic-labs/dynamic-sdk/pull/449))
|
|
29
|
+
|
|
30
|
+
## 0.1.0-alpha.10 (2025-09-22)
|
|
31
|
+
|
|
32
|
+
### 🩹 Fixes
|
|
33
|
+
|
|
34
|
+
- ensure server side rendering will not trigger any api call ([#445](https://github.com/dynamic-labs/dynamic-sdk/pull/445))
|
|
35
|
+
- handle 401 when initializing the SDK ([#446](https://github.com/dynamic-labs/dynamic-sdk/pull/446))
|
|
36
|
+
|
|
37
|
+
## 0.1.0-alpha.9 (2025-09-19)
|
|
38
|
+
|
|
39
|
+
### 🚀 Features
|
|
40
|
+
|
|
41
|
+
- refresh user when cookies are enabled ([#430](https://github.com/dynamic-labs/dynamic-sdk/pull/430))
|
|
42
|
+
- introduce waitForClientInitialized ([#436](https://github.com/dynamic-labs/dynamic-sdk/pull/436))
|
|
43
|
+
- introduce isMobile helper utility ([#441](https://github.com/dynamic-labs/dynamic-sdk/pull/441))
|
|
44
|
+
|
|
45
|
+
### 🩹 Fixes
|
|
46
|
+
|
|
47
|
+
- logout user when any api call fails with 401 ([#432](https://github.com/dynamic-labs/dynamic-sdk/pull/432))
|
|
48
|
+
- logout for connected only wallets ([#437](https://github.com/dynamic-labs/dynamic-sdk/pull/437))
|
|
49
|
+
|
|
50
|
+
### 🔧 Refactors
|
|
51
|
+
|
|
52
|
+
- linter rule for addExtension functions ([#433](https://github.com/dynamic-labs/dynamic-sdk/pull/433))
|
|
53
|
+
- improve demo ui and organization ([#434](https://github.com/dynamic-labs/dynamic-sdk/pull/434))
|
|
54
|
+
- misc improvements ([#438](https://github.com/dynamic-labs/dynamic-sdk/pull/438))
|
|
55
|
+
- add linter rule for unpinned dependencies ([#439](https://github.com/dynamic-labs/dynamic-sdk/pull/439))
|
|
56
|
+
|
|
57
|
+
## 0.1.0-alpha.8 (2025-09-15)
|
|
58
|
+
|
|
59
|
+
This was a version bump only, there were no code changes.
|
|
60
|
+
|
|
61
|
+
## 0.1.0-alpha.7 (2025-09-12)
|
|
62
|
+
|
|
63
|
+
### 🩹 Fixes
|
|
64
|
+
|
|
65
|
+
- logout with wallet standard sol wallets ([#423](https://github.com/dynamic-labs/dynamic-sdk/pull/423))
|
|
66
|
+
|
|
67
|
+
## 0.1.0-alpha.6 (2025-09-11)
|
|
68
|
+
|
|
69
|
+
### 🚀 Features
|
|
70
|
+
|
|
71
|
+
- add captcha support
|
|
72
|
+
|
|
73
|
+
## 0.1.0-alpha.5 (2025-09-11)
|
|
74
|
+
|
|
75
|
+
### 🚀 Features
|
|
76
|
+
|
|
77
|
+
- expose the session expires at date ([#420](https://github.com/dynamic-labs/dynamic-sdk/pull/420))
|
|
78
|
+
|
|
79
|
+
## 0.1.0-alpha.4 (2025-09-10)
|
|
80
|
+
|
|
81
|
+
### 🩹 Fixes
|
|
82
|
+
|
|
83
|
+
- set client version to project settings api call ([#414](https://github.com/dynamic-labs/dynamic-sdk/pull/414))
|
|
84
|
+
|
|
85
|
+
## 0.1.0-alpha.3 (2025-09-09)
|
|
86
|
+
|
|
87
|
+
This was a version bump only, there were no code changes.
|
|
88
|
+
|
|
89
|
+
## 0.1.0-alpha.2 (2025-09-08)
|
|
90
|
+
|
|
91
|
+
This was a version bump only, there were no code changes.
|
|
92
|
+
|
|
93
|
+
## 0.1.0-alpha.1 (2025-09-02)
|
|
94
|
+
|
|
95
|
+
This was a version bump only, there were no code changes.
|
|
96
|
+
|
|
97
|
+
## 0.1.0-alpha.0 (2025-09-02)
|
|
98
|
+
|
|
99
|
+
### 🚀 Features
|
|
100
|
+
|
|
101
|
+
- add connectAndVerifyWithWalletProvider function ([#385](https://github.com/dynamic-labs/dynamic-sdk/pull/385))
|
|
102
|
+
- add event listening for wallet providers ([#389](https://github.com/dynamic-labs/dynamic-sdk/pull/389))
|
|
103
|
+
|
|
104
|
+
### 🩹 Fixes
|
|
105
|
+
|
|
106
|
+
- sending transaction with solana ([#381](https://github.com/dynamic-labs/dynamic-sdk/pull/381))
|
|
107
|
+
|
|
108
|
+
### 🔧 Refactors
|
|
109
|
+
|
|
110
|
+
- waas sign message defined in waas provider ([#377](https://github.com/dynamic-labs/dynamic-sdk/pull/377))
|
|
111
|
+
- ban chain enum ([#386](https://github.com/dynamic-labs/dynamic-sdk/pull/386))
|
|
112
|
+
- ban misplaced waas exports ([#387](https://github.com/dynamic-labs/dynamic-sdk/pull/387))
|
|
113
|
+
|
|
114
|
+
## 0.0.1-alpha.27 (2025-08-29)
|
|
115
|
+
|
|
116
|
+
### 🚀 Features
|
|
117
|
+
|
|
118
|
+
- allow switching network ([#323](https://github.com/dynamic-labs/dynamic-sdk/pull/323))
|
|
119
|
+
- introduce getBalance and getBalanceForAddress ([#335](https://github.com/dynamic-labs/dynamic-sdk/pull/335))
|
|
120
|
+
- add delegateWaasKeyShares function ([#353](https://github.com/dynamic-labs/dynamic-sdk/pull/353))
|
|
121
|
+
- add updateWaasPassword function ([#354](https://github.com/dynamic-labs/dynamic-sdk/pull/354))
|
|
122
|
+
- add exportWaasClientKeyshares function ([#355](https://github.com/dynamic-labs/dynamic-sdk/pull/355))
|
|
123
|
+
- add importWaasPrivateKey function ([#356](https://github.com/dynamic-labs/dynamic-sdk/pull/356))
|
|
124
|
+
- add refreshWaasWalletAccountShares function ([#357](https://github.com/dynamic-labs/dynamic-sdk/pull/357))
|
|
125
|
+
- add backupWaasKeySharesToGoogleDrive function ([#358](https://github.com/dynamic-labs/dynamic-sdk/pull/358))
|
|
126
|
+
- add exportWaasPrivateKey function ([#359](https://github.com/dynamic-labs/dynamic-sdk/pull/359))
|
|
127
|
+
- add isWaasWalletAccount function ([#365](https://github.com/dynamic-labs/dynamic-sdk/pull/365))
|
|
128
|
+
- add createWalletClientForWalletAccount function ([#367](https://github.com/dynamic-labs/dynamic-sdk/pull/367))
|
|
129
|
+
|
|
130
|
+
### 🔧 Refactors
|
|
131
|
+
|
|
132
|
+
- assert signed session id in getSignedSessionId ([#361](https://github.com/dynamic-labs/dynamic-sdk/pull/361))
|
|
133
|
+
- add consumeMfaTokenIfRequiredForAction function ([#363](https://github.com/dynamic-labs/dynamic-sdk/pull/363))
|
|
134
|
+
|
|
135
|
+
## 0.0.1-alpha.26 (2025-08-27)
|
|
136
|
+
|
|
137
|
+
### 🩹 Fixes
|
|
138
|
+
|
|
139
|
+
- remove version pin on sdk-api-core ([#351](https://github.com/dynamic-labs/dynamic-sdk/pull/351))
|
|
140
|
+
|
|
141
|
+
## 0.0.1-alpha.25 (2025-08-27)
|
|
142
|
+
|
|
143
|
+
### 🚀 Features
|
|
144
|
+
|
|
145
|
+
- add ethereum netowrk providers ([#267](https://github.com/dynamic-labs/dynamic-sdk/pull/267))
|
|
146
|
+
- add solana network provider ([#268](https://github.com/dynamic-labs/dynamic-sdk/pull/268))
|
|
147
|
+
- add proveWalletAccountOwnership function ([#295](https://github.com/dynamic-labs/dynamic-sdk/pull/295))
|
|
148
|
+
- format evm wallet addresses to conform to eip55 ([#300](https://github.com/dynamic-labs/dynamic-sdk/pull/300))
|
|
149
|
+
- add viem public client ([#272](https://github.com/dynamic-labs/dynamic-sdk/pull/272))
|
|
150
|
+
- add getSolanaConnection ([#275](https://github.com/dynamic-labs/dynamic-sdk/pull/275))
|
|
151
|
+
- add dynamic waas evm extension ([#299](https://github.com/dynamic-labs/dynamic-sdk/pull/299))
|
|
152
|
+
- add refreshUser function ([#332](https://github.com/dynamic-labs/dynamic-sdk/pull/332))
|
|
153
|
+
- add get network method ([#321](https://github.com/dynamic-labs/dynamic-sdk/pull/321))
|
|
154
|
+
|
|
155
|
+
### 🩹 Fixes
|
|
156
|
+
|
|
157
|
+
- update default API base URL ([#296](https://github.com/dynamic-labs/dynamic-sdk/pull/296))
|
|
158
|
+
|
|
159
|
+
### 🔧 Refactors
|
|
160
|
+
|
|
161
|
+
- reorganize exports index file ([#303](https://github.com/dynamic-labs/dynamic-sdk/pull/303))
|
|
162
|
+
- rename events folder to clientEvents ([#305](https://github.com/dynamic-labs/dynamic-sdk/pull/305))
|
|
163
|
+
- dry network provider type ([#308](https://github.com/dynamic-labs/dynamic-sdk/pull/308))
|
|
164
|
+
- rename types files to include the features name ([#319](https://github.com/dynamic-labs/dynamic-sdk/pull/319))
|
|
165
|
+
- use evm instead of other terms ([#306](https://github.com/dynamic-labs/dynamic-sdk/pull/306))
|
|
166
|
+
- rename net configuration to net data ([#322](https://github.com/dynamic-labs/dynamic-sdk/pull/322))
|
|
167
|
+
- move waas-utils to client package ([#342](https://github.com/dynamic-labs/dynamic-sdk/pull/342))
|
|
168
|
+
|
|
169
|
+
## 0.0.1-alpha.24 (2025-08-14)
|
|
170
|
+
|
|
171
|
+
This was a version bump only, there were no code changes.
|
|
172
|
+
|
|
173
|
+
## 0.0.1-alpha.23 (2025-08-14)
|
|
174
|
+
|
|
175
|
+
This was a version bump only, there were no code changes.
|
|
176
|
+
|
|
177
|
+
## 0.0.1-alpha.22 (2025-08-13)
|
|
178
|
+
|
|
179
|
+
This was a version bump only, there were no code changes.
|
|
180
|
+
|
|
181
|
+
## 0.0.1-alpha.21 (2025-08-12)
|
|
182
|
+
|
|
183
|
+
### 🚀 Features
|
|
184
|
+
|
|
185
|
+
- add signInWithExternalJwt function ([#263](https://github.com/dynamic-labs/dynamic-sdk/pull/263))
|
|
186
|
+
|
|
187
|
+
### 🩹 Fixes
|
|
188
|
+
|
|
189
|
+
- bind fetch to window ([#265](https://github.com/dynamic-labs/dynamic-sdk/pull/265))
|
|
190
|
+
|
|
191
|
+
## 0.0.1-alpha.20 (2025-08-06)
|
|
192
|
+
|
|
193
|
+
### 🚀 Features
|
|
194
|
+
|
|
195
|
+
- raise an error if different dynamic packages are on different versions ([#253](https://github.com/dynamic-labs/dynamic-sdk/pull/253))
|
|
196
|
+
|
|
197
|
+
## 0.0.1-alpha.19 (2025-07-23)
|
|
198
|
+
|
|
199
|
+
This was a version bump only, there were no code changes.
|
|
200
|
+
|
|
201
|
+
## 0.0.1-alpha.18 (2025-07-22)
|
|
202
|
+
|
|
203
|
+
This was a version bump only, there were no code changes.
|
|
204
|
+
|
|
205
|
+
## 0.0.1-alpha.17 (2025-07-22)
|
|
206
|
+
|
|
207
|
+
This was a version bump only, there were no code changes.
|
|
208
|
+
|
|
209
|
+
## 0.0.1-alpha.16 (2025-07-14)
|
|
210
|
+
|
|
211
|
+
### 🚀 Features
|
|
212
|
+
|
|
213
|
+
- add new getMultichainBalances api method ([#219](https://github.com/dynamic-labs/dynamic-sdk/pull/219))
|
|
214
|
+
- adds authenticated event ([#222](https://github.com/dynamic-labs/dynamic-sdk/pull/222))
|
|
215
|
+
|
|
216
|
+
## 0.0.1-alpha.15 (2025-07-14)
|
|
217
|
+
|
|
218
|
+
### 🚀 Features
|
|
219
|
+
|
|
220
|
+
- **SIN-7:** Add Signin with Passkey ([#201](https://github.com/dynamic-labs/dynamic-sdk/pull/201))
|
|
221
|
+
|
|
222
|
+
## 0.0.1-alpha.14 (2025-07-11)
|
|
223
|
+
|
|
224
|
+
### 🩹 Fixes
|
|
225
|
+
|
|
226
|
+
- import zod mini using namespace ([#214](https://github.com/dynamic-labs/dynamic-sdk/pull/214))
|
|
227
|
+
|
|
228
|
+
## 0.0.1-alpha.13 (2025-07-09)
|
|
229
|
+
|
|
230
|
+
### 🩹 Fixes
|
|
231
|
+
|
|
232
|
+
- convert api headers to get api headers ([#211](https://github.com/dynamic-labs/dynamic-sdk/pull/211))
|
|
233
|
+
|
|
234
|
+
## 0.0.1-alpha.12 (2025-07-09)
|
|
235
|
+
|
|
236
|
+
### 🩹 Fixes
|
|
237
|
+
|
|
238
|
+
- allow the api call to include cookie credentials ([#209](https://github.com/dynamic-labs/dynamic-sdk/pull/209))
|
|
239
|
+
|
|
240
|
+
## 0.0.1-alpha.11 (2025-07-08)
|
|
241
|
+
|
|
242
|
+
This was a version bump only, there were no code changes.
|
|
243
|
+
|
|
244
|
+
## 0.0.1-alpha.10 (2025-07-08)
|
|
245
|
+
|
|
246
|
+
This was a version bump only, there were no code changes.
|
|
247
|
+
|
|
248
|
+
## 0.0.1-alpha.9 (2025-07-08)
|
|
249
|
+
|
|
250
|
+
### 🩹 Fixes
|
|
251
|
+
|
|
252
|
+
- throw when attempting to set undefined prop in storage ([#200](https://github.com/dynamic-labs/dynamic-sdk/pull/200))
|
|
253
|
+
|
|
254
|
+
## 0.0.1-alpha.8 (2025-07-03)
|
|
255
|
+
|
|
256
|
+
This was a version bump only, there were no code changes.
|
|
257
|
+
|
|
258
|
+
## 0.0.1-alpha.7 (2025-07-02)
|
|
259
|
+
|
|
260
|
+
### 🩹 Fixes
|
|
261
|
+
|
|
262
|
+
- **mfa:** make device id optional ([#175](https://github.com/dynamic-labs/dynamic-sdk/pull/175))
|
|
263
|
+
- **mfa:** allow create mfa options to authTotpMfaDevice ([#178](https://github.com/dynamic-labs/dynamic-sdk/pull/178))
|
|
264
|
+
|
|
265
|
+
## 0.0.1-alpha.6 (2025-06-30)
|
|
266
|
+
|
|
267
|
+
### 🚀 Features
|
|
268
|
+
|
|
269
|
+
- add support for solana wallet standard ([#133](https://github.com/dynamic-labs/dynamic-sdk/pull/133))
|
|
270
|
+
- add support social sign in ([#123](https://github.com/dynamic-labs/dynamic-sdk/pull/123))
|
|
271
|
+
- add support for TOTP MFA ([#139](https://github.com/dynamic-labs/dynamic-sdk/pull/139))([#140](https://github.com/dynamic-labs/dynamic-sdk/pull/140))([#141](https://github.com/dynamic-labs/dynamic-sdk/pull/141))([#142](https://github.com/dynamic-labs/dynamic-sdk/pull/142))([#143](https://github.com/dynamic-labs/dynamic-sdk/pull/143))([#144](https://github.com/dynamic-labs/dynamic-sdk/pull/144))([#149](https://github.com/dynamic-labs/dynamic-sdk/pull/149))([#146](https://github.com/dynamic-labs/dynamic-sdk/pull/146))([#147](https://github.com/dynamic-labs/dynamic-sdk/pull/147))
|
|
272
|
+
- add methods to connect and verify a wallet ([#99](https://github.com/dynamic-labs/dynamic-sdk/pull/99))
|
|
273
|
+
- add signMessage ([#111](https://github.com/dynamic-labs/dynamic-sdk/pull/111))
|
|
274
|
+
- add primary wallet account ([#128](https://github.com/dynamic-labs/dynamic-sdk/pull/128))
|
|
275
|
+
- cache project settings for connected users ([#148](https://github.com/dynamic-labs/dynamic-sdk/pull/148))
|
|
276
|
+
- add updateUser function ([#138](https://github.com/dynamic-labs/dynamic-sdk/pull/138))
|
|
277
|
+
|
|
278
|
+
### 🩹 Fixes
|
|
279
|
+
|
|
280
|
+
- use correct import path for commonjs ([#125](https://github.com/dynamic-labs/dynamic-sdk/pull/125))
|
|
281
|
+
- ensure change events are fired only when state changes ([#168](https://github.com/dynamic-labs/dynamic-sdk/pull/168))
|
|
282
|
+
|
|
283
|
+
### 🔧 Refactors
|
|
284
|
+
|
|
285
|
+
- modularize DynamicCoreState with global interface ([#93](https://github.com/dynamic-labs/dynamic-sdk/pull/93))
|
|
286
|
+
- add setVerifyResponse ([#106](https://github.com/dynamic-labs/dynamic-sdk/pull/106))
|
|
287
|
+
- rename set verify response function ([#122](https://github.com/dynamic-labs/dynamic-sdk/pull/122))
|
|
288
|
+
|
|
289
|
+
## 0.0.1-alpha.5 (2025-06-04)
|
|
290
|
+
|
|
291
|
+
### 🩹 Fixes
|
|
292
|
+
|
|
293
|
+
- support server side rendering ([#92](https://github.com/dynamic-labs/dynamic-sdk/pull/92))
|
|
294
|
+
|
|
295
|
+
## 0.0.1-alpha.4 (2025-05-28)
|
|
296
|
+
|
|
297
|
+
### 🚀 Features
|
|
298
|
+
|
|
299
|
+
- allow manual init of client ([#88](https://github.com/dynamic-labs/dynamic-sdk/pull/88))
|
|
300
|
+
|
|
301
|
+
### 🩹 Fixes
|
|
302
|
+
|
|
303
|
+
- client core accidentally sharing state among different instances ([#89](https://github.com/dynamic-labs/dynamic-sdk/pull/89))
|
|
304
|
+
|
|
305
|
+
## 0.0.1-alpha.3 (2025-05-27)
|
|
306
|
+
|
|
307
|
+
### 🩹 Fixes
|
|
308
|
+
|
|
309
|
+
- properly export state changed events ([#85](https://github.com/dynamic-labs/dynamic-sdk/pull/85))
|
|
310
|
+
|
|
311
|
+
## 0.0.1-alpha.2 (2025-05-26)
|
|
312
|
+
|
|
313
|
+
### 🚀 Features
|
|
314
|
+
|
|
315
|
+
- logout user when session expires ([#47](https://github.com/dynamic-labs/dynamic-sdk/pull/47))
|
|
316
|
+
- add sms verification ([#78](https://github.com/dynamic-labs/dynamic-sdk/pull/78))
|
|
317
|
+
- raise changed events for state variables ([#79](https://github.com/dynamic-labs/dynamic-sdk/pull/79))
|
|
318
|
+
- allow extending the client ([#80](https://github.com/dynamic-labs/dynamic-sdk/pull/80))
|
|
319
|
+
|
|
320
|
+
## 0.0.1-alpha.1 (2025-05-19)
|
|
321
|
+
|
|
322
|
+
### 🩹 Fixes
|
|
323
|
+
|
|
324
|
+
- make the client package public ([#74](https://github.com/dynamic-labs/dynamic-sdk/pull/74))
|
|
325
|
+
|
|
326
|
+
## 0.0.1-alpha.0 (2025-05-16)
|
|
327
|
+
|
|
328
|
+
Initial release of the Dynamic SDK.
|
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# @dynamic-labs-sdk/zerodev
|
|
2
|
+
|
|
3
|
+
This package contains the zerodev integration for the Dynamic SDK to add support for Account Abstraction.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { createDynamicClient } from '@dynamic-labs-sdk/client';
|
|
9
|
+
import { addZerodevExtension } from '@dynamic-labs-sdk/zerodev';
|
|
10
|
+
|
|
11
|
+
const dynamicClient = createDynamicClient({
|
|
12
|
+
environmentId: '123',
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
addZerodevExtension(dynamicClient);
|
|
16
|
+
```
|
package/index.cjs.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/exports/index";
|
package/index.cjs.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var assertPackageVersion = require('@dynamic-labs-sdk/assert-package-version');
|
|
4
|
+
var core = require('@dynamic-labs-sdk/client/core');
|
|
5
|
+
var client = require('@dynamic-labs-sdk/client');
|
|
6
|
+
var evm = require('@dynamic-labs-sdk/evm');
|
|
7
|
+
var viem = require('@dynamic-labs-sdk/evm/viem');
|
|
8
|
+
|
|
9
|
+
var name = "@dynamic-labs-sdk/zerodev";
|
|
10
|
+
var version = "0.1.0-alpha.13";
|
|
11
|
+
|
|
12
|
+
const ZERODEV_EXTENSION_KEY = 'zerodev';
|
|
13
|
+
/**
|
|
14
|
+
* Adds the ZeroDev extension to the Dynamic client.
|
|
15
|
+
*
|
|
16
|
+
* This extension enables Account Abstraction integration with ZeroDev
|
|
17
|
+
*
|
|
18
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
19
|
+
*/ const addZerodevExtension = (client = core.getDefaultClient())=>{
|
|
20
|
+
if (core.hasExtension({
|
|
21
|
+
extensionKey: ZERODEV_EXTENSION_KEY
|
|
22
|
+
}, client)) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
core.registerExtension({
|
|
26
|
+
extensionKey: ZERODEV_EXTENSION_KEY
|
|
27
|
+
}, client);
|
|
28
|
+
// TODO: implement
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Gets a WalletClient instance for the EOA of the smart wallet account.
|
|
33
|
+
* You can use this signer to sign EVM transactions.
|
|
34
|
+
*
|
|
35
|
+
* @param params.smartWalletAccount - The EVM smart wallet account to get the signer for.
|
|
36
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
37
|
+
* @returns A promise that resolves to an WalletClient instance.
|
|
38
|
+
* @throws NoSmartWalletAccountSignerFoundError When the signer wallet account is not found for the given smart wallet account.
|
|
39
|
+
*/ const getSignerForSmartWalletAccount = ({ smartWalletAccount }, client$1 = core.getDefaultClient())=>{
|
|
40
|
+
const signerWalletAccount = client.getSignerWalletAccountForSmartWalletAccount({
|
|
41
|
+
smartWalletAccount
|
|
42
|
+
}, client$1);
|
|
43
|
+
if (!signerWalletAccount || !evm.isEvmWalletAccount(signerWalletAccount)) {
|
|
44
|
+
throw new client.NoSmartWalletAccountSignerFoundError(smartWalletAccount.address);
|
|
45
|
+
}
|
|
46
|
+
return viem.createWalletClientForWalletAccount({
|
|
47
|
+
walletAccount: signerWalletAccount
|
|
48
|
+
}, client$1);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
assertPackageVersion.assertPackageVersion(name, version);
|
|
52
|
+
|
|
53
|
+
exports.addZerodevExtension = addZerodevExtension;
|
|
54
|
+
exports.getSignerForSmartWalletAccount = getSignerForSmartWalletAccount;
|
package/index.esm.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/exports/index";
|
package/index.esm.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { assertPackageVersion } from '@dynamic-labs-sdk/assert-package-version';
|
|
2
|
+
import { getDefaultClient, hasExtension, registerExtension } from '@dynamic-labs-sdk/client/core';
|
|
3
|
+
import { getSignerWalletAccountForSmartWalletAccount, NoSmartWalletAccountSignerFoundError } from '@dynamic-labs-sdk/client';
|
|
4
|
+
import { isEvmWalletAccount } from '@dynamic-labs-sdk/evm';
|
|
5
|
+
import { createWalletClientForWalletAccount } from '@dynamic-labs-sdk/evm/viem';
|
|
6
|
+
|
|
7
|
+
var name = "@dynamic-labs-sdk/zerodev";
|
|
8
|
+
var version = "0.1.0-alpha.13";
|
|
9
|
+
|
|
10
|
+
const ZERODEV_EXTENSION_KEY = 'zerodev';
|
|
11
|
+
/**
|
|
12
|
+
* Adds the ZeroDev extension to the Dynamic client.
|
|
13
|
+
*
|
|
14
|
+
* This extension enables Account Abstraction integration with ZeroDev
|
|
15
|
+
*
|
|
16
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
17
|
+
*/ const addZerodevExtension = (client = getDefaultClient())=>{
|
|
18
|
+
if (hasExtension({
|
|
19
|
+
extensionKey: ZERODEV_EXTENSION_KEY
|
|
20
|
+
}, client)) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
registerExtension({
|
|
24
|
+
extensionKey: ZERODEV_EXTENSION_KEY
|
|
25
|
+
}, client);
|
|
26
|
+
// TODO: implement
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Gets a WalletClient instance for the EOA of the smart wallet account.
|
|
31
|
+
* You can use this signer to sign EVM transactions.
|
|
32
|
+
*
|
|
33
|
+
* @param params.smartWalletAccount - The EVM smart wallet account to get the signer for.
|
|
34
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
35
|
+
* @returns A promise that resolves to an WalletClient instance.
|
|
36
|
+
* @throws NoSmartWalletAccountSignerFoundError When the signer wallet account is not found for the given smart wallet account.
|
|
37
|
+
*/ const getSignerForSmartWalletAccount = ({ smartWalletAccount }, client = getDefaultClient())=>{
|
|
38
|
+
const signerWalletAccount = getSignerWalletAccountForSmartWalletAccount({
|
|
39
|
+
smartWalletAccount
|
|
40
|
+
}, client);
|
|
41
|
+
if (!signerWalletAccount || !isEvmWalletAccount(signerWalletAccount)) {
|
|
42
|
+
throw new NoSmartWalletAccountSignerFoundError(smartWalletAccount.address);
|
|
43
|
+
}
|
|
44
|
+
return createWalletClientForWalletAccount({
|
|
45
|
+
walletAccount: signerWalletAccount
|
|
46
|
+
}, client);
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
assertPackageVersion(name, version);
|
|
50
|
+
|
|
51
|
+
export { addZerodevExtension, getSignerForSmartWalletAccount };
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dynamic-labs-sdk/zerodev",
|
|
3
|
+
"version": "0.1.0-alpha.13",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./index.cjs.js",
|
|
6
|
+
"module": "./index.esm.js",
|
|
7
|
+
"types": "./index.esm.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./package.json": "./package.json",
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./index.esm.d.ts",
|
|
12
|
+
"import": "./index.esm.js",
|
|
13
|
+
"default": "./index.cjs.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@dynamic-labs-sdk/assert-package-version": "0.1.0-alpha.13",
|
|
18
|
+
"@dynamic-labs-sdk/client": "0.1.0-alpha.13",
|
|
19
|
+
"@dynamic-labs-sdk/evm": "0.1.0-alpha.13",
|
|
20
|
+
"@dynamic-labs/sdk-api-core": "0.0.762",
|
|
21
|
+
"@zerodev/ecdsa-validator": "5.4.9",
|
|
22
|
+
"@zerodev/multi-chain-ecdsa-validator": "5.4.5",
|
|
23
|
+
"@zerodev/sdk": "5.4.36"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"viem": "^2.28.4"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const ZERODEV_EXTENSION_KEY = "zerodev";
|
|
2
|
+
/**
|
|
3
|
+
* Adds the ZeroDev extension to the Dynamic client.
|
|
4
|
+
*
|
|
5
|
+
* This extension enables Account Abstraction integration with ZeroDev
|
|
6
|
+
*
|
|
7
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8
|
+
*/
|
|
9
|
+
export declare const addZerodevExtension: (client?: any) => void;
|
|
10
|
+
//# sourceMappingURL=addZerodevExtension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addZerodevExtension.d.ts","sourceRoot":"","sources":["../../../../../packages/zerodev/src/addZerodevExtension/addZerodevExtension.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB,YAAY,CAAC;AAE/C;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,wBAQ/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/zerodev/src/addZerodevExtension/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { KERNEL_VERSION_TYPE } from '@zerodev/sdk/types';
|
|
2
|
+
import type { EntryPointVersion } from 'viem/account-abstraction';
|
|
3
|
+
export declare const ZERODEV_RPC_BASE_URL = "https://rpc.zerodev.app/api/v2";
|
|
4
|
+
export declare const KERNEL_VERSION_MAP: {
|
|
5
|
+
readonly v3_3: import("@zerodev/sdk/types").KERNEL_V3_VERSION_TYPE;
|
|
6
|
+
readonly v3_2: import("@zerodev/sdk/types").KERNEL_V3_VERSION_TYPE;
|
|
7
|
+
readonly v3_1: import("@zerodev/sdk/types").KERNEL_V3_VERSION_TYPE;
|
|
8
|
+
readonly v3_0: import("@zerodev/sdk/types").KERNEL_V3_VERSION_TYPE;
|
|
9
|
+
readonly v2_4: import("@zerodev/sdk/types").KERNEL_V2_VERSION_TYPE;
|
|
10
|
+
};
|
|
11
|
+
export declare const ENTRY_POINT_VERSION_MAP: Record<EntryPointVersion, KERNEL_VERSION_TYPE>;
|
|
12
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../packages/zerodev/src/constants.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,oBAAoB,mCAAmC,CAAC;AAErE,eAAO,MAAM,kBAAkB;;;;;;CAMrB,CAAC;AAEX,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAC1C,iBAAiB,EACjB,mBAAmB,CAKX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/zerodev/src/exports/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type EvmWalletAccount } from '@dynamic-labs-sdk/evm';
|
|
2
|
+
import type { Account, Chain, Transport, WalletClient } from 'viem';
|
|
3
|
+
type GetSignerForSmartWalletAccountParams = {
|
|
4
|
+
smartWalletAccount: EvmWalletAccount;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Gets a WalletClient instance for the EOA of the smart wallet account.
|
|
8
|
+
* You can use this signer to sign EVM transactions.
|
|
9
|
+
*
|
|
10
|
+
* @param params.smartWalletAccount - The EVM smart wallet account to get the signer for.
|
|
11
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
12
|
+
* @returns A promise that resolves to an WalletClient instance.
|
|
13
|
+
* @throws NoSmartWalletAccountSignerFoundError When the signer wallet account is not found for the given smart wallet account.
|
|
14
|
+
*/
|
|
15
|
+
export declare const getSignerForSmartWalletAccount: ({ smartWalletAccount }: GetSignerForSmartWalletAccountParams, client?: any) => Promise<WalletClient<Transport, Chain, Account>>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=getSignerForSmartWalletAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSignerForSmartWalletAccount.d.ts","sourceRoot":"","sources":["../../../../../packages/zerodev/src/getSignerForSmartWalletAccount/getSignerForSmartWalletAccount.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,gBAAgB,EAEtB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpE,KAAK,oCAAoC,GAAG;IAC1C,kBAAkB,EAAE,gBAAgB,CAAC;CACtC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B,2BACjB,oCAAoC,mBAE3D,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,CAgBjD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/zerodev/src/getSignerForSmartWalletAccount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { EntryPointType, GetKernelVersion, Signer } from '@zerodev/sdk/types';
|
|
2
|
+
import type { Client } from 'viem';
|
|
3
|
+
import type { EntryPointVersion } from 'viem/account-abstraction';
|
|
4
|
+
type GetEcdsaValidatorParams = {
|
|
5
|
+
ecdsaProviderType?: string;
|
|
6
|
+
entryPoint: EntryPointType<EntryPointVersion>;
|
|
7
|
+
kernelVersion: GetKernelVersion<EntryPointVersion>;
|
|
8
|
+
publicClient: Client;
|
|
9
|
+
signer: Signer;
|
|
10
|
+
};
|
|
11
|
+
export declare const getEcdsaValidator: ({ ecdsaProviderType, publicClient, signer, entryPoint, kernelVersion, }: GetEcdsaValidatorParams) => Promise<import("@zerodev/sdk").KernelValidator<"MultiChainECDSAValidator">> | Promise<import("@zerodev/sdk").KernelValidator<"ECDSAValidator">>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=getEcdsaValidator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEcdsaValidator.d.ts","sourceRoot":"","sources":["../../../../../../packages/zerodev/src/utils/getEcdsaValidator/getEcdsaValidator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,MAAM,EACP,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,KAAK,uBAAuB,GAAG;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAC;IAC9C,aAAa,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;IACnD,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,iBAAiB,4EAM3B,uBAAuB,oJAYzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/zerodev/src/utils/getEcdsaValidator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEntryPoint.d.ts","sourceRoot":"","sources":["../../../../../../packages/zerodev/src/utils/getEntryPoint/getEntryPoint.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,gBAAiB,MAAM,4GAOhD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/zerodev/src/utils/getEntryPoint/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ProviderKernelVersionEnum } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { EntryPointType } from '@zerodev/sdk/types';
|
|
3
|
+
import type { EntryPointVersion } from 'viem/account-abstraction';
|
|
4
|
+
type GetKernelVersionParams = {
|
|
5
|
+
entryPoint: EntryPointType<EntryPointVersion>;
|
|
6
|
+
kernelVersion: ProviderKernelVersionEnum | undefined;
|
|
7
|
+
};
|
|
8
|
+
export declare const getKernelVersion: ({ kernelVersion, entryPoint, }: GetKernelVersionParams) => "0.3.0" | "0.3.1" | "0.3.2" | "0.3.3" | "0.0.2" | "0.2.2" | "0.2.3" | "0.2.4";
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=getKernelVersion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getKernelVersion.d.ts","sourceRoot":"","sources":["../../../../../../packages/zerodev/src/utils/getKernelVersion/getKernelVersion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAE5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAIlE,KAAK,sBAAsB,GAAG;IAC5B,UAAU,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAC;IAC9C,aAAa,EAAE,yBAAyB,GAAG,SAAS,CAAC;CACtD,CAAC;AAEF,eAAO,MAAM,gBAAgB,mCAG1B,sBAAsB,kFAexB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/zerodev/src/utils/getKernelVersion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Hex, Chain as ViemChain } from 'viem';
|
|
2
|
+
import type { GetPaymasterDataParameters } from 'viem/account-abstraction';
|
|
3
|
+
type GetPaymasterConfigProps = {
|
|
4
|
+
chain: ViemChain;
|
|
5
|
+
/**
|
|
6
|
+
* The address the ERC20 token to use for the paymaster.
|
|
7
|
+
* If not provided, the paymaster will use the default gas token for the chain.
|
|
8
|
+
*/
|
|
9
|
+
gasTokenAddress?: Hex;
|
|
10
|
+
paymasterRpc: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const getPaymasterConfig: ({ chain, gasTokenAddress, paymasterRpc, }: GetPaymasterConfigProps) => {
|
|
13
|
+
paymaster: {
|
|
14
|
+
getPaymasterData: (params: GetPaymasterDataParameters) => Promise<import("@zerodev/sdk").SponsorUserOperationReturnType>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=getPaymasterConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPaymasterConfig.d.ts","sourceRoot":"","sources":["../../../../../../packages/zerodev/src/utils/getPaymasterConfig/getPaymasterConfig.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAEpD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAE3E,KAAK,uBAAuB,GAAG;IAC7B,KAAK,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,kBAAkB,8CAI5B,uBAAuB;;mCACU,0BAA0B;;CAiB7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/zerodev/src/utils/getPaymasterConfig/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
package/src/utils/getZerodevChainProviderForNetworkId/getZerodevChainProviderForNetworkId.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DynamicClient } from '@dynamic-labs-sdk/client';
|
|
2
|
+
type GetZerodevChainProviderForNetworkIdProps = {
|
|
3
|
+
networkId: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const getZerodevChainProviderForNetworkId: ({ networkId }: GetZerodevChainProviderForNetworkIdProps, client: DynamicClient) => any;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=getZerodevChainProviderForNetworkId.d.ts.map
|
package/src/utils/getZerodevChainProviderForNetworkId/getZerodevChainProviderForNetworkId.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getZerodevChainProviderForNetworkId.d.ts","sourceRoot":"","sources":["../../../../../../packages/zerodev/src/utils/getZerodevChainProviderForNetworkId/getZerodevChainProviderForNetworkId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAI9D,KAAK,wCAAwC,GAAG;IAC9C,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,mCAAmC,kBAC/B,wCAAwC,UAC/C,aAAa,QAOtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/zerodev/src/utils/getZerodevChainProviderForNetworkId/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getZerodevProviderFromSettings.d.ts","sourceRoot":"","sources":["../../../../../../packages/zerodev/src/utils/getZerodevProviderFromSettings/getZerodevProviderFromSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,8BAA8B,WAAY,aAAa,QAenE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/zerodev/src/utils/getZerodevProviderFromSettings/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DynamicClient } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import { ZerodevBundlerProvider } from '@dynamic-labs/sdk-api-core';
|
|
3
|
+
type GetZerodevRpcParams = {
|
|
4
|
+
bundlerProvider?: ZerodevBundlerProvider;
|
|
5
|
+
networkId: string;
|
|
6
|
+
rpcType: 'paymaster' | 'bundler';
|
|
7
|
+
};
|
|
8
|
+
export declare const getZerodevRpc: ({ networkId, bundlerProvider, rpcType }: GetZerodevRpcParams, client: DynamicClient) => any;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=getZerodevRpc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getZerodevRpc.d.ts","sourceRoot":"","sources":["../../../../../../packages/zerodev/src/utils/getZerodevRpc/getZerodevRpc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAMpE,KAAK,mBAAmB,GAAG;IACzB,eAAe,CAAC,EAAE,sBAAsB,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,WAAW,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,aAAa,4CACiB,mBAAmB,UACpD,aAAa,QA2BtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/zerodev/src/utils/getZerodevRpc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/zerodev/src/utils/shouldUseEIP7702/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type DynamicClient, type WalletAccount } from '@dynamic-labs-sdk/client';
|
|
2
|
+
type ShouldUseEIP7702Params = {
|
|
3
|
+
smartWalletAccount: WalletAccount;
|
|
4
|
+
};
|
|
5
|
+
export declare const shouldUseEIP7702: ({ smartWalletAccount }: ShouldUseEIP7702Params, client: DynamicClient) => any;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=shouldUseEIP7702.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shouldUseEIP7702.d.ts","sourceRoot":"","sources":["../../../../../../packages/zerodev/src/utils/shouldUseEIP7702/shouldUseEIP7702.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,aAAa,EAEnB,MAAM,0BAA0B,CAAC;AAKlC,KAAK,sBAAsB,GAAG;IAC5B,kBAAkB,EAAE,aAAa,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,2BACH,sBAAsB,UACtC,aAAa,QAqBtB,CAAC"}
|