@dynamic-labs-sdk/bitcoin 0.1.0-alpha.18
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 +466 -0
- package/README.md +15 -0
- package/index.cjs.d.ts +1 -0
- package/index.cjs.js +39 -0
- package/index.esm.d.ts +1 -0
- package/index.esm.js +35 -0
- package/package.json +20 -0
- package/src/BitcoinNetworkProvider.types.d.ts +8 -0
- package/src/BitcoinNetworkProvider.types.d.ts.map +1 -0
- package/src/BitcoinWalletAccount.types.d.ts +8 -0
- package/src/BitcoinWalletAccount.types.d.ts.map +1 -0
- package/src/addBitcoinExtension/addBitcoinExtension.d.ts +10 -0
- package/src/addBitcoinExtension/addBitcoinExtension.d.ts.map +1 -0
- package/src/addBitcoinExtension/index.d.ts +2 -0
- package/src/addBitcoinExtension/index.d.ts.map +1 -0
- package/src/constants.d.ts +3 -0
- package/src/constants.d.ts.map +1 -0
- package/src/exports/index.d.ts +6 -0
- package/src/exports/index.d.ts.map +1 -0
- package/src/isBitcoinNetworkProvider/index.d.ts +2 -0
- package/src/isBitcoinNetworkProvider/index.d.ts.map +1 -0
- package/src/isBitcoinNetworkProvider/isBitcoinNetworkProvider.d.ts +10 -0
- package/src/isBitcoinNetworkProvider/isBitcoinNetworkProvider.d.ts.map +1 -0
- package/src/isBitcoinWalletAccount/index.d.ts +2 -0
- package/src/isBitcoinWalletAccount/index.d.ts.map +1 -0
- package/src/isBitcoinWalletAccount/isBitcoinWalletAccount.d.ts +10 -0
- package/src/isBitcoinWalletAccount/isBitcoinWalletAccount.d.ts.map +1 -0
- package/src/registerBitcoinNetworkProviderBuilder/index.d.ts +2 -0
- package/src/registerBitcoinNetworkProviderBuilder/index.d.ts.map +1 -0
- package/src/registerBitcoinNetworkProviderBuilder/registerBitcoinNetworkProviderBuilder.d.ts +3 -0
- package/src/registerBitcoinNetworkProviderBuilder/registerBitcoinNetworkProviderBuilder.d.ts.map +1 -0
- package/src/utils/createBitcoinNetworkProvider/createBitcoinNetworkProvider.d.ts +4 -0
- package/src/utils/createBitcoinNetworkProvider/createBitcoinNetworkProvider.d.ts.map +1 -0
- package/src/utils/createBitcoinNetworkProvider/index.d.ts +2 -0
- package/src/utils/createBitcoinNetworkProvider/index.d.ts.map +1 -0
- package/src/utils/fetchBtcBalance/fetchBtcBalance.d.ts +4 -0
- package/src/utils/fetchBtcBalance/fetchBtcBalance.d.ts.map +1 -0
- package/src/utils/fetchBtcBalance/index.d.ts +2 -0
- package/src/utils/fetchBtcBalance/index.d.ts.map +1 -0
- package/src/utils/getMempoolApiUrl/getMempoolApiUrl.d.ts +2 -0
- package/src/utils/getMempoolApiUrl/getMempoolApiUrl.d.ts.map +1 -0
- package/src/utils/getMempoolApiUrl/index.d.ts +2 -0
- package/src/utils/getMempoolApiUrl/index.d.ts.map +1 -0
- package/src/utils/satoshisToBtc/index.d.ts +2 -0
- package/src/utils/satoshisToBtc/index.d.ts.map +1 -0
- package/src/utils/satoshisToBtc/satoshisToBtc.d.ts +2 -0
- package/src/utils/satoshisToBtc/satoshisToBtc.d.ts.map +1 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
## 0.1.0-alpha.18 (2025-10-08)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- Add TypeDoc for JavaScript SDK API Reference Documentation ([#512](https://github.com/dynamic-labs/dynamic-sdk/pull/512))
|
|
6
|
+
|
|
7
|
+
## 0.1.0-alpha.17 (2025-10-02)
|
|
8
|
+
|
|
9
|
+
### 🩹 Fixes
|
|
10
|
+
|
|
11
|
+
- add return type to connect with wallet provider ([#497](https://github.com/dynamic-labs/dynamic-sdk/pull/497))
|
|
12
|
+
|
|
13
|
+
## 0.1.0-alpha.16 (2025-10-01)
|
|
14
|
+
|
|
15
|
+
### 🚀 Features
|
|
16
|
+
|
|
17
|
+
- logout user when session expires ([#47](https://github.com/dynamic-labs/dynamic-sdk/pull/47))
|
|
18
|
+
- add sms verification ([#78](https://github.com/dynamic-labs/dynamic-sdk/pull/78))
|
|
19
|
+
- raise changed events for state variables ([#79](https://github.com/dynamic-labs/dynamic-sdk/pull/79))
|
|
20
|
+
- allow extending the client ([#80](https://github.com/dynamic-labs/dynamic-sdk/pull/80))
|
|
21
|
+
- allow manual init of client ([#88](https://github.com/dynamic-labs/dynamic-sdk/pull/88))
|
|
22
|
+
- add signMessage ([#111](https://github.com/dynamic-labs/dynamic-sdk/pull/111))
|
|
23
|
+
- support social sign in ([#123](https://github.com/dynamic-labs/dynamic-sdk/pull/123))
|
|
24
|
+
- add updateUser function ([#138](https://github.com/dynamic-labs/dynamic-sdk/pull/138))
|
|
25
|
+
- add acknowledgeRecoveryCodes function ([#139](https://github.com/dynamic-labs/dynamic-sdk/pull/139))
|
|
26
|
+
- add getMfaDevices function ([#140](https://github.com/dynamic-labs/dynamic-sdk/pull/140))
|
|
27
|
+
- add deleteMfaDevice function ([#141](https://github.com/dynamic-labs/dynamic-sdk/pull/141))
|
|
28
|
+
- add registerTotpMfaDevice function ([#142](https://github.com/dynamic-labs/dynamic-sdk/pull/142))
|
|
29
|
+
- add getMfaRecoveryCodes function ([#143](https://github.com/dynamic-labs/dynamic-sdk/pull/143))
|
|
30
|
+
- cache project settings for connected users ([#148](https://github.com/dynamic-labs/dynamic-sdk/pull/148))
|
|
31
|
+
- add createNewMfaRecoveryCodes function ([#144](https://github.com/dynamic-labs/dynamic-sdk/pull/144))
|
|
32
|
+
- add setDefaultMfaDevice function ([#149](https://github.com/dynamic-labs/dynamic-sdk/pull/149))
|
|
33
|
+
- add support for solana wallet standard ([#133](https://github.com/dynamic-labs/dynamic-sdk/pull/133))
|
|
34
|
+
- add primary wallet account ([#128](https://github.com/dynamic-labs/dynamic-sdk/pull/128))
|
|
35
|
+
- add authTotpMfaDevice function ([#146](https://github.com/dynamic-labs/dynamic-sdk/pull/146))
|
|
36
|
+
- add authMfaRecoveryCode function ([#147](https://github.com/dynamic-labs/dynamic-sdk/pull/147))
|
|
37
|
+
- add new getMultichainBalances api method ([#219](https://github.com/dynamic-labs/dynamic-sdk/pull/219))
|
|
38
|
+
- adds authenticated event ([#222](https://github.com/dynamic-labs/dynamic-sdk/pull/222))
|
|
39
|
+
- raise an error if different dynamic packages are on different versions ([#253](https://github.com/dynamic-labs/dynamic-sdk/pull/253))
|
|
40
|
+
- add signInWithExternalJwt function ([#263](https://github.com/dynamic-labs/dynamic-sdk/pull/263))
|
|
41
|
+
- add network provider registry and API ([#266](https://github.com/dynamic-labs/dynamic-sdk/pull/266))
|
|
42
|
+
- add ethereum netowrk providers ([#267](https://github.com/dynamic-labs/dynamic-sdk/pull/267))
|
|
43
|
+
- add solana network provider ([#268](https://github.com/dynamic-labs/dynamic-sdk/pull/268))
|
|
44
|
+
- add proveWalletAccountOwnership function ([#295](https://github.com/dynamic-labs/dynamic-sdk/pull/295))
|
|
45
|
+
- format evm wallet addresses to conform to eip55 ([#300](https://github.com/dynamic-labs/dynamic-sdk/pull/300))
|
|
46
|
+
- add viem public client ([#272](https://github.com/dynamic-labs/dynamic-sdk/pull/272))
|
|
47
|
+
- add getSolanaConnection ([#275](https://github.com/dynamic-labs/dynamic-sdk/pull/275))
|
|
48
|
+
- add dynamic waas evm extension ([#299](https://github.com/dynamic-labs/dynamic-sdk/pull/299))
|
|
49
|
+
- add refreshUser function ([#332](https://github.com/dynamic-labs/dynamic-sdk/pull/332))
|
|
50
|
+
- add get network method ([#321](https://github.com/dynamic-labs/dynamic-sdk/pull/321))
|
|
51
|
+
- add createWaasWallet function ([#343](https://github.com/dynamic-labs/dynamic-sdk/pull/343))
|
|
52
|
+
- allow switching network ([#323](https://github.com/dynamic-labs/dynamic-sdk/pull/323))
|
|
53
|
+
- introduce getBalance and getBalanceForAddress ([#335](https://github.com/dynamic-labs/dynamic-sdk/pull/335))
|
|
54
|
+
- add delegateWaasKeyShares function ([#353](https://github.com/dynamic-labs/dynamic-sdk/pull/353))
|
|
55
|
+
- add updateWaasPassword function ([#354](https://github.com/dynamic-labs/dynamic-sdk/pull/354))
|
|
56
|
+
- add exportWaasClientKeyshares function ([#355](https://github.com/dynamic-labs/dynamic-sdk/pull/355))
|
|
57
|
+
- add importWaasPrivateKey function ([#356](https://github.com/dynamic-labs/dynamic-sdk/pull/356))
|
|
58
|
+
- add refreshWaasWalletAccountShares function ([#357](https://github.com/dynamic-labs/dynamic-sdk/pull/357))
|
|
59
|
+
- add backupWaasKeySharesToGoogleDrive function ([#358](https://github.com/dynamic-labs/dynamic-sdk/pull/358))
|
|
60
|
+
- add exportWaasPrivateKey function ([#359](https://github.com/dynamic-labs/dynamic-sdk/pull/359))
|
|
61
|
+
- add isWaasWalletAccount function ([#365](https://github.com/dynamic-labs/dynamic-sdk/pull/365))
|
|
62
|
+
- add createWalletClientForWalletAccount function ([#367](https://github.com/dynamic-labs/dynamic-sdk/pull/367))
|
|
63
|
+
- add connectAndVerifyWithWalletProvider function ([#385](https://github.com/dynamic-labs/dynamic-sdk/pull/385))
|
|
64
|
+
- add event listening for wallet providers ([#389](https://github.com/dynamic-labs/dynamic-sdk/pull/389))
|
|
65
|
+
- expose the session expires at date ([#420](https://github.com/dynamic-labs/dynamic-sdk/pull/420))
|
|
66
|
+
- refresh user when cookies are enabled ([#430](https://github.com/dynamic-labs/dynamic-sdk/pull/430))
|
|
67
|
+
- introduce waitForClientInitialized ([#436](https://github.com/dynamic-labs/dynamic-sdk/pull/436))
|
|
68
|
+
- introduce isMobile helper utility ([#441](https://github.com/dynamic-labs/dynamic-sdk/pull/441))
|
|
69
|
+
- persist unverified wallets in local storage ([#448](https://github.com/dynamic-labs/dynamic-sdk/pull/448))
|
|
70
|
+
- **QNTM-3387:** add sui base infrastructure and core client ([#240](https://github.com/dynamic-labs/dynamic-sdk/pull/240))
|
|
71
|
+
- **SIN-7:** Add Signin with Passkey ([#201](https://github.com/dynamic-labs/dynamic-sdk/pull/201))
|
|
72
|
+
- **wallets:** adds methods to connect and verify a wallet ([#99](https://github.com/dynamic-labs/dynamic-sdk/pull/99))
|
|
73
|
+
|
|
74
|
+
### 🩹 Fixes
|
|
75
|
+
|
|
76
|
+
- make the client package public ([#74](https://github.com/dynamic-labs/dynamic-sdk/pull/74))
|
|
77
|
+
- properly export state changed events ([#85](https://github.com/dynamic-labs/dynamic-sdk/pull/85))
|
|
78
|
+
- client core accidentally sharing state among different instances ([#89](https://github.com/dynamic-labs/dynamic-sdk/pull/89))
|
|
79
|
+
- support server side rendering ([#92](https://github.com/dynamic-labs/dynamic-sdk/pull/92))
|
|
80
|
+
- use correct import path for commonjs ([#125](https://github.com/dynamic-labs/dynamic-sdk/pull/125))
|
|
81
|
+
- ensure change events are fired only when state changes ([#168](https://github.com/dynamic-labs/dynamic-sdk/pull/168))
|
|
82
|
+
- solana integration ([#169](https://github.com/dynamic-labs/dynamic-sdk/pull/169))
|
|
83
|
+
- throw when attempting to set undefined prop in storage ([#200](https://github.com/dynamic-labs/dynamic-sdk/pull/200))
|
|
84
|
+
- allow the api call to include cookie credentials ([#209](https://github.com/dynamic-labs/dynamic-sdk/pull/209))
|
|
85
|
+
- convert api headers to get api headers ([#211](https://github.com/dynamic-labs/dynamic-sdk/pull/211))
|
|
86
|
+
- import zod mini using namespace ([#214](https://github.com/dynamic-labs/dynamic-sdk/pull/214))
|
|
87
|
+
- bind fetch to window ([#265](https://github.com/dynamic-labs/dynamic-sdk/pull/265))
|
|
88
|
+
- update default API base URL ([#296](https://github.com/dynamic-labs/dynamic-sdk/pull/296))
|
|
89
|
+
- remove version pin on sdk-api-core ([#351](https://github.com/dynamic-labs/dynamic-sdk/pull/351))
|
|
90
|
+
- sending transaction with solana ([#381](https://github.com/dynamic-labs/dynamic-sdk/pull/381))
|
|
91
|
+
- set client version to project settings api call ([#414](https://github.com/dynamic-labs/dynamic-sdk/pull/414))
|
|
92
|
+
- logout with wallet standard sol wallets ([#423](https://github.com/dynamic-labs/dynamic-sdk/pull/423))
|
|
93
|
+
- logout user when any api call fails with 401 ([#432](https://github.com/dynamic-labs/dynamic-sdk/pull/432))
|
|
94
|
+
- logout for connected only wallets ([#437](https://github.com/dynamic-labs/dynamic-sdk/pull/437))
|
|
95
|
+
- ensure server side rendering will not trigger any api call ([#445](https://github.com/dynamic-labs/dynamic-sdk/pull/445))
|
|
96
|
+
- handle 401 when initializing the SDK ([#446](https://github.com/dynamic-labs/dynamic-sdk/pull/446))
|
|
97
|
+
- 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))
|
|
98
|
+
- logout user only when it fails to refresh user with cookies ([#451](https://github.com/dynamic-labs/dynamic-sdk/pull/451))
|
|
99
|
+
- 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))
|
|
100
|
+
- **mfa:** make device id optional ([#175](https://github.com/dynamic-labs/dynamic-sdk/pull/175))
|
|
101
|
+
- **mfa:** allow create mfa options to authTotpMfaDevice ([#178](https://github.com/dynamic-labs/dynamic-sdk/pull/178))
|
|
102
|
+
|
|
103
|
+
### 🔧 Refactors
|
|
104
|
+
|
|
105
|
+
- rename initializationManager to asyncTrack ([#26](https://github.com/dynamic-labs/dynamic-sdk/pull/26))
|
|
106
|
+
- modularize DynamicCoreState with global interface ([#93](https://github.com/dynamic-labs/dynamic-sdk/pull/93))
|
|
107
|
+
- add setVerifyResponse ([#106](https://github.com/dynamic-labs/dynamic-sdk/pull/106))
|
|
108
|
+
- rename set verify response function ([#122](https://github.com/dynamic-labs/dynamic-sdk/pull/122))
|
|
109
|
+
- clean up social implementation ([#145](https://github.com/dynamic-labs/dynamic-sdk/pull/145))
|
|
110
|
+
- reorganize exports index file ([#303](https://github.com/dynamic-labs/dynamic-sdk/pull/303))
|
|
111
|
+
- rename events folder to clientEvents ([#305](https://github.com/dynamic-labs/dynamic-sdk/pull/305))
|
|
112
|
+
- dry network provider type ([#308](https://github.com/dynamic-labs/dynamic-sdk/pull/308))
|
|
113
|
+
- rename types files to include the features name ([#319](https://github.com/dynamic-labs/dynamic-sdk/pull/319))
|
|
114
|
+
- use evm instead of other terms ([#306](https://github.com/dynamic-labs/dynamic-sdk/pull/306))
|
|
115
|
+
- rename net configuration to net data ([#322](https://github.com/dynamic-labs/dynamic-sdk/pull/322))
|
|
116
|
+
- move waas-utils to client package ([#342](https://github.com/dynamic-labs/dynamic-sdk/pull/342))
|
|
117
|
+
- assert signed session id in getSignedSessionId ([#361](https://github.com/dynamic-labs/dynamic-sdk/pull/361))
|
|
118
|
+
- add consumeMfaTokenIfRequiredForAction function ([#363](https://github.com/dynamic-labs/dynamic-sdk/pull/363))
|
|
119
|
+
- waas sign message defined in waas provider ([#377](https://github.com/dynamic-labs/dynamic-sdk/pull/377))
|
|
120
|
+
- ban chain enum ([#386](https://github.com/dynamic-labs/dynamic-sdk/pull/386))
|
|
121
|
+
- ban misplaced waas exports ([#387](https://github.com/dynamic-labs/dynamic-sdk/pull/387))
|
|
122
|
+
- also apply lint-tsc for specfiles ([#399](https://github.com/dynamic-labs/dynamic-sdk/pull/399))
|
|
123
|
+
- require client to always be passed as a param for internal code ([#401](https://github.com/dynamic-labs/dynamic-sdk/pull/401))
|
|
124
|
+
- linter rule for addExtension functions ([#433](https://github.com/dynamic-labs/dynamic-sdk/pull/433))
|
|
125
|
+
- improve demo ui and organization ([#434](https://github.com/dynamic-labs/dynamic-sdk/pull/434))
|
|
126
|
+
- misc improvements ([#438](https://github.com/dynamic-labs/dynamic-sdk/pull/438))
|
|
127
|
+
- add linter rule for unpinned dependencies ([#439](https://github.com/dynamic-labs/dynamic-sdk/pull/439))
|
|
128
|
+
- rework captcha code for demo ([#449](https://github.com/dynamic-labs/dynamic-sdk/pull/449))
|
|
129
|
+
- rename schemas ([#471](https://github.com/dynamic-labs/dynamic-sdk/pull/471))
|
|
130
|
+
|
|
131
|
+
## 0.1.0-alpha.15 (2025-10-01)
|
|
132
|
+
|
|
133
|
+
This was a version bump only, there were no code changes.
|
|
134
|
+
|
|
135
|
+
## 0.1.0-alpha.14 (2025-09-30)
|
|
136
|
+
|
|
137
|
+
This was a version bump only, there were no code changes.
|
|
138
|
+
|
|
139
|
+
## 0.1.0-alpha.13 (2025-09-30)
|
|
140
|
+
|
|
141
|
+
### 🚀 Features
|
|
142
|
+
|
|
143
|
+
- persist unverified wallets in local storage ([#448](https://github.com/dynamic-labs/dynamic-sdk/pull/448))
|
|
144
|
+
|
|
145
|
+
### 🩹 Fixes
|
|
146
|
+
|
|
147
|
+
- 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))
|
|
148
|
+
|
|
149
|
+
### 🔧 Refactors
|
|
150
|
+
|
|
151
|
+
- rename schemas ([#471](https://github.com/dynamic-labs/dynamic-sdk/pull/471))
|
|
152
|
+
|
|
153
|
+
## 0.1.0-alpha.12 (2025-09-23)
|
|
154
|
+
|
|
155
|
+
This was a version bump only, there were no code changes.
|
|
156
|
+
|
|
157
|
+
## 0.1.0-alpha.11 (2025-09-23)
|
|
158
|
+
|
|
159
|
+
### 🩹 Fixes
|
|
160
|
+
|
|
161
|
+
- 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))
|
|
162
|
+
- logout user only when it fails to refresh user with cookies ([#451](https://github.com/dynamic-labs/dynamic-sdk/pull/451))
|
|
163
|
+
|
|
164
|
+
### 🔧 Refactors
|
|
165
|
+
|
|
166
|
+
- rework captcha code for demo ([#449](https://github.com/dynamic-labs/dynamic-sdk/pull/449))
|
|
167
|
+
|
|
168
|
+
## 0.1.0-alpha.10 (2025-09-22)
|
|
169
|
+
|
|
170
|
+
### 🩹 Fixes
|
|
171
|
+
|
|
172
|
+
- ensure server side rendering will not trigger any api call ([#445](https://github.com/dynamic-labs/dynamic-sdk/pull/445))
|
|
173
|
+
- handle 401 when initializing the SDK ([#446](https://github.com/dynamic-labs/dynamic-sdk/pull/446))
|
|
174
|
+
|
|
175
|
+
## 0.1.0-alpha.9 (2025-09-19)
|
|
176
|
+
|
|
177
|
+
### 🚀 Features
|
|
178
|
+
|
|
179
|
+
- refresh user when cookies are enabled ([#430](https://github.com/dynamic-labs/dynamic-sdk/pull/430))
|
|
180
|
+
- introduce waitForClientInitialized ([#436](https://github.com/dynamic-labs/dynamic-sdk/pull/436))
|
|
181
|
+
- introduce isMobile helper utility ([#441](https://github.com/dynamic-labs/dynamic-sdk/pull/441))
|
|
182
|
+
|
|
183
|
+
### 🩹 Fixes
|
|
184
|
+
|
|
185
|
+
- logout user when any api call fails with 401 ([#432](https://github.com/dynamic-labs/dynamic-sdk/pull/432))
|
|
186
|
+
- logout for connected only wallets ([#437](https://github.com/dynamic-labs/dynamic-sdk/pull/437))
|
|
187
|
+
|
|
188
|
+
### 🔧 Refactors
|
|
189
|
+
|
|
190
|
+
- linter rule for addExtension functions ([#433](https://github.com/dynamic-labs/dynamic-sdk/pull/433))
|
|
191
|
+
- improve demo ui and organization ([#434](https://github.com/dynamic-labs/dynamic-sdk/pull/434))
|
|
192
|
+
- misc improvements ([#438](https://github.com/dynamic-labs/dynamic-sdk/pull/438))
|
|
193
|
+
- add linter rule for unpinned dependencies ([#439](https://github.com/dynamic-labs/dynamic-sdk/pull/439))
|
|
194
|
+
|
|
195
|
+
## 0.1.0-alpha.8 (2025-09-15)
|
|
196
|
+
|
|
197
|
+
This was a version bump only, there were no code changes.
|
|
198
|
+
|
|
199
|
+
## 0.1.0-alpha.7 (2025-09-12)
|
|
200
|
+
|
|
201
|
+
### 🩹 Fixes
|
|
202
|
+
|
|
203
|
+
- logout with wallet standard sol wallets ([#423](https://github.com/dynamic-labs/dynamic-sdk/pull/423))
|
|
204
|
+
|
|
205
|
+
## 0.1.0-alpha.6 (2025-09-11)
|
|
206
|
+
|
|
207
|
+
### 🚀 Features
|
|
208
|
+
|
|
209
|
+
- add captcha support
|
|
210
|
+
|
|
211
|
+
## 0.1.0-alpha.5 (2025-09-11)
|
|
212
|
+
|
|
213
|
+
### 🚀 Features
|
|
214
|
+
|
|
215
|
+
- expose the session expires at date ([#420](https://github.com/dynamic-labs/dynamic-sdk/pull/420))
|
|
216
|
+
|
|
217
|
+
## 0.1.0-alpha.4 (2025-09-10)
|
|
218
|
+
|
|
219
|
+
### 🩹 Fixes
|
|
220
|
+
|
|
221
|
+
- set client version to project settings api call ([#414](https://github.com/dynamic-labs/dynamic-sdk/pull/414))
|
|
222
|
+
|
|
223
|
+
## 0.1.0-alpha.3 (2025-09-09)
|
|
224
|
+
|
|
225
|
+
This was a version bump only, there were no code changes.
|
|
226
|
+
|
|
227
|
+
## 0.1.0-alpha.2 (2025-09-08)
|
|
228
|
+
|
|
229
|
+
This was a version bump only, there were no code changes.
|
|
230
|
+
|
|
231
|
+
## 0.1.0-alpha.1 (2025-09-02)
|
|
232
|
+
|
|
233
|
+
This was a version bump only, there were no code changes.
|
|
234
|
+
|
|
235
|
+
## 0.1.0-alpha.0 (2025-09-02)
|
|
236
|
+
|
|
237
|
+
### 🚀 Features
|
|
238
|
+
|
|
239
|
+
- add connectAndVerifyWithWalletProvider function ([#385](https://github.com/dynamic-labs/dynamic-sdk/pull/385))
|
|
240
|
+
- add event listening for wallet providers ([#389](https://github.com/dynamic-labs/dynamic-sdk/pull/389))
|
|
241
|
+
|
|
242
|
+
### 🩹 Fixes
|
|
243
|
+
|
|
244
|
+
- sending transaction with solana ([#381](https://github.com/dynamic-labs/dynamic-sdk/pull/381))
|
|
245
|
+
|
|
246
|
+
### 🔧 Refactors
|
|
247
|
+
|
|
248
|
+
- waas sign message defined in waas provider ([#377](https://github.com/dynamic-labs/dynamic-sdk/pull/377))
|
|
249
|
+
- ban chain enum ([#386](https://github.com/dynamic-labs/dynamic-sdk/pull/386))
|
|
250
|
+
- ban misplaced waas exports ([#387](https://github.com/dynamic-labs/dynamic-sdk/pull/387))
|
|
251
|
+
|
|
252
|
+
## 0.0.1-alpha.27 (2025-08-29)
|
|
253
|
+
|
|
254
|
+
### 🚀 Features
|
|
255
|
+
|
|
256
|
+
- allow switching network ([#323](https://github.com/dynamic-labs/dynamic-sdk/pull/323))
|
|
257
|
+
- introduce getBalance and getBalanceForAddress ([#335](https://github.com/dynamic-labs/dynamic-sdk/pull/335))
|
|
258
|
+
- add delegateWaasKeyShares function ([#353](https://github.com/dynamic-labs/dynamic-sdk/pull/353))
|
|
259
|
+
- add updateWaasPassword function ([#354](https://github.com/dynamic-labs/dynamic-sdk/pull/354))
|
|
260
|
+
- add exportWaasClientKeyshares function ([#355](https://github.com/dynamic-labs/dynamic-sdk/pull/355))
|
|
261
|
+
- add importWaasPrivateKey function ([#356](https://github.com/dynamic-labs/dynamic-sdk/pull/356))
|
|
262
|
+
- add refreshWaasWalletAccountShares function ([#357](https://github.com/dynamic-labs/dynamic-sdk/pull/357))
|
|
263
|
+
- add backupWaasKeySharesToGoogleDrive function ([#358](https://github.com/dynamic-labs/dynamic-sdk/pull/358))
|
|
264
|
+
- add exportWaasPrivateKey function ([#359](https://github.com/dynamic-labs/dynamic-sdk/pull/359))
|
|
265
|
+
- add isWaasWalletAccount function ([#365](https://github.com/dynamic-labs/dynamic-sdk/pull/365))
|
|
266
|
+
- add createWalletClientForWalletAccount function ([#367](https://github.com/dynamic-labs/dynamic-sdk/pull/367))
|
|
267
|
+
|
|
268
|
+
### 🔧 Refactors
|
|
269
|
+
|
|
270
|
+
- assert signed session id in getSignedSessionId ([#361](https://github.com/dynamic-labs/dynamic-sdk/pull/361))
|
|
271
|
+
- add consumeMfaTokenIfRequiredForAction function ([#363](https://github.com/dynamic-labs/dynamic-sdk/pull/363))
|
|
272
|
+
|
|
273
|
+
## 0.0.1-alpha.26 (2025-08-27)
|
|
274
|
+
|
|
275
|
+
### 🩹 Fixes
|
|
276
|
+
|
|
277
|
+
- remove version pin on sdk-api-core ([#351](https://github.com/dynamic-labs/dynamic-sdk/pull/351))
|
|
278
|
+
|
|
279
|
+
## 0.0.1-alpha.25 (2025-08-27)
|
|
280
|
+
|
|
281
|
+
### 🚀 Features
|
|
282
|
+
|
|
283
|
+
- add ethereum netowrk providers ([#267](https://github.com/dynamic-labs/dynamic-sdk/pull/267))
|
|
284
|
+
- add solana network provider ([#268](https://github.com/dynamic-labs/dynamic-sdk/pull/268))
|
|
285
|
+
- add proveWalletAccountOwnership function ([#295](https://github.com/dynamic-labs/dynamic-sdk/pull/295))
|
|
286
|
+
- format evm wallet addresses to conform to eip55 ([#300](https://github.com/dynamic-labs/dynamic-sdk/pull/300))
|
|
287
|
+
- add viem public client ([#272](https://github.com/dynamic-labs/dynamic-sdk/pull/272))
|
|
288
|
+
- add getSolanaConnection ([#275](https://github.com/dynamic-labs/dynamic-sdk/pull/275))
|
|
289
|
+
- add dynamic waas evm extension ([#299](https://github.com/dynamic-labs/dynamic-sdk/pull/299))
|
|
290
|
+
- add refreshUser function ([#332](https://github.com/dynamic-labs/dynamic-sdk/pull/332))
|
|
291
|
+
- add get network method ([#321](https://github.com/dynamic-labs/dynamic-sdk/pull/321))
|
|
292
|
+
|
|
293
|
+
### 🩹 Fixes
|
|
294
|
+
|
|
295
|
+
- update default API base URL ([#296](https://github.com/dynamic-labs/dynamic-sdk/pull/296))
|
|
296
|
+
|
|
297
|
+
### 🔧 Refactors
|
|
298
|
+
|
|
299
|
+
- reorganize exports index file ([#303](https://github.com/dynamic-labs/dynamic-sdk/pull/303))
|
|
300
|
+
- rename events folder to clientEvents ([#305](https://github.com/dynamic-labs/dynamic-sdk/pull/305))
|
|
301
|
+
- dry network provider type ([#308](https://github.com/dynamic-labs/dynamic-sdk/pull/308))
|
|
302
|
+
- rename types files to include the features name ([#319](https://github.com/dynamic-labs/dynamic-sdk/pull/319))
|
|
303
|
+
- use evm instead of other terms ([#306](https://github.com/dynamic-labs/dynamic-sdk/pull/306))
|
|
304
|
+
- rename net configuration to net data ([#322](https://github.com/dynamic-labs/dynamic-sdk/pull/322))
|
|
305
|
+
- move waas-utils to client package ([#342](https://github.com/dynamic-labs/dynamic-sdk/pull/342))
|
|
306
|
+
|
|
307
|
+
## 0.0.1-alpha.24 (2025-08-14)
|
|
308
|
+
|
|
309
|
+
This was a version bump only, there were no code changes.
|
|
310
|
+
|
|
311
|
+
## 0.0.1-alpha.23 (2025-08-14)
|
|
312
|
+
|
|
313
|
+
This was a version bump only, there were no code changes.
|
|
314
|
+
|
|
315
|
+
## 0.0.1-alpha.22 (2025-08-13)
|
|
316
|
+
|
|
317
|
+
This was a version bump only, there were no code changes.
|
|
318
|
+
|
|
319
|
+
## 0.0.1-alpha.21 (2025-08-12)
|
|
320
|
+
|
|
321
|
+
### 🚀 Features
|
|
322
|
+
|
|
323
|
+
- add signInWithExternalJwt function ([#263](https://github.com/dynamic-labs/dynamic-sdk/pull/263))
|
|
324
|
+
|
|
325
|
+
### 🩹 Fixes
|
|
326
|
+
|
|
327
|
+
- bind fetch to window ([#265](https://github.com/dynamic-labs/dynamic-sdk/pull/265))
|
|
328
|
+
|
|
329
|
+
## 0.0.1-alpha.20 (2025-08-06)
|
|
330
|
+
|
|
331
|
+
### 🚀 Features
|
|
332
|
+
|
|
333
|
+
- raise an error if different dynamic packages are on different versions ([#253](https://github.com/dynamic-labs/dynamic-sdk/pull/253))
|
|
334
|
+
|
|
335
|
+
## 0.0.1-alpha.19 (2025-07-23)
|
|
336
|
+
|
|
337
|
+
This was a version bump only, there were no code changes.
|
|
338
|
+
|
|
339
|
+
## 0.0.1-alpha.18 (2025-07-22)
|
|
340
|
+
|
|
341
|
+
This was a version bump only, there were no code changes.
|
|
342
|
+
|
|
343
|
+
## 0.0.1-alpha.17 (2025-07-22)
|
|
344
|
+
|
|
345
|
+
This was a version bump only, there were no code changes.
|
|
346
|
+
|
|
347
|
+
## 0.0.1-alpha.16 (2025-07-14)
|
|
348
|
+
|
|
349
|
+
### 🚀 Features
|
|
350
|
+
|
|
351
|
+
- add new getMultichainBalances api method ([#219](https://github.com/dynamic-labs/dynamic-sdk/pull/219))
|
|
352
|
+
- adds authenticated event ([#222](https://github.com/dynamic-labs/dynamic-sdk/pull/222))
|
|
353
|
+
|
|
354
|
+
## 0.0.1-alpha.15 (2025-07-14)
|
|
355
|
+
|
|
356
|
+
### 🚀 Features
|
|
357
|
+
|
|
358
|
+
- **SIN-7:** Add Signin with Passkey ([#201](https://github.com/dynamic-labs/dynamic-sdk/pull/201))
|
|
359
|
+
|
|
360
|
+
## 0.0.1-alpha.14 (2025-07-11)
|
|
361
|
+
|
|
362
|
+
### 🩹 Fixes
|
|
363
|
+
|
|
364
|
+
- import zod mini using namespace ([#214](https://github.com/dynamic-labs/dynamic-sdk/pull/214))
|
|
365
|
+
|
|
366
|
+
## 0.0.1-alpha.13 (2025-07-09)
|
|
367
|
+
|
|
368
|
+
### 🩹 Fixes
|
|
369
|
+
|
|
370
|
+
- convert api headers to get api headers ([#211](https://github.com/dynamic-labs/dynamic-sdk/pull/211))
|
|
371
|
+
|
|
372
|
+
## 0.0.1-alpha.12 (2025-07-09)
|
|
373
|
+
|
|
374
|
+
### 🩹 Fixes
|
|
375
|
+
|
|
376
|
+
- allow the api call to include cookie credentials ([#209](https://github.com/dynamic-labs/dynamic-sdk/pull/209))
|
|
377
|
+
|
|
378
|
+
## 0.0.1-alpha.11 (2025-07-08)
|
|
379
|
+
|
|
380
|
+
This was a version bump only, there were no code changes.
|
|
381
|
+
|
|
382
|
+
## 0.0.1-alpha.10 (2025-07-08)
|
|
383
|
+
|
|
384
|
+
This was a version bump only, there were no code changes.
|
|
385
|
+
|
|
386
|
+
## 0.0.1-alpha.9 (2025-07-08)
|
|
387
|
+
|
|
388
|
+
### 🩹 Fixes
|
|
389
|
+
|
|
390
|
+
- throw when attempting to set undefined prop in storage ([#200](https://github.com/dynamic-labs/dynamic-sdk/pull/200))
|
|
391
|
+
|
|
392
|
+
## 0.0.1-alpha.8 (2025-07-03)
|
|
393
|
+
|
|
394
|
+
This was a version bump only, there were no code changes.
|
|
395
|
+
|
|
396
|
+
## 0.0.1-alpha.7 (2025-07-02)
|
|
397
|
+
|
|
398
|
+
### 🩹 Fixes
|
|
399
|
+
|
|
400
|
+
- **mfa:** make device id optional ([#175](https://github.com/dynamic-labs/dynamic-sdk/pull/175))
|
|
401
|
+
- **mfa:** allow create mfa options to authTotpMfaDevice ([#178](https://github.com/dynamic-labs/dynamic-sdk/pull/178))
|
|
402
|
+
|
|
403
|
+
## 0.0.1-alpha.6 (2025-06-30)
|
|
404
|
+
|
|
405
|
+
### 🚀 Features
|
|
406
|
+
|
|
407
|
+
- add support for solana wallet standard ([#133](https://github.com/dynamic-labs/dynamic-sdk/pull/133))
|
|
408
|
+
- add support social sign in ([#123](https://github.com/dynamic-labs/dynamic-sdk/pull/123))
|
|
409
|
+
- 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))
|
|
410
|
+
- add methods to connect and verify a wallet ([#99](https://github.com/dynamic-labs/dynamic-sdk/pull/99))
|
|
411
|
+
- add signMessage ([#111](https://github.com/dynamic-labs/dynamic-sdk/pull/111))
|
|
412
|
+
- add primary wallet account ([#128](https://github.com/dynamic-labs/dynamic-sdk/pull/128))
|
|
413
|
+
- cache project settings for connected users ([#148](https://github.com/dynamic-labs/dynamic-sdk/pull/148))
|
|
414
|
+
- add updateUser function ([#138](https://github.com/dynamic-labs/dynamic-sdk/pull/138))
|
|
415
|
+
|
|
416
|
+
### 🩹 Fixes
|
|
417
|
+
|
|
418
|
+
- use correct import path for commonjs ([#125](https://github.com/dynamic-labs/dynamic-sdk/pull/125))
|
|
419
|
+
- ensure change events are fired only when state changes ([#168](https://github.com/dynamic-labs/dynamic-sdk/pull/168))
|
|
420
|
+
|
|
421
|
+
### 🔧 Refactors
|
|
422
|
+
|
|
423
|
+
- modularize DynamicCoreState with global interface ([#93](https://github.com/dynamic-labs/dynamic-sdk/pull/93))
|
|
424
|
+
- add setVerifyResponse ([#106](https://github.com/dynamic-labs/dynamic-sdk/pull/106))
|
|
425
|
+
- rename set verify response function ([#122](https://github.com/dynamic-labs/dynamic-sdk/pull/122))
|
|
426
|
+
|
|
427
|
+
## 0.0.1-alpha.5 (2025-06-04)
|
|
428
|
+
|
|
429
|
+
### 🩹 Fixes
|
|
430
|
+
|
|
431
|
+
- support server side rendering ([#92](https://github.com/dynamic-labs/dynamic-sdk/pull/92))
|
|
432
|
+
|
|
433
|
+
## 0.0.1-alpha.4 (2025-05-28)
|
|
434
|
+
|
|
435
|
+
### 🚀 Features
|
|
436
|
+
|
|
437
|
+
- allow manual init of client ([#88](https://github.com/dynamic-labs/dynamic-sdk/pull/88))
|
|
438
|
+
|
|
439
|
+
### 🩹 Fixes
|
|
440
|
+
|
|
441
|
+
- client core accidentally sharing state among different instances ([#89](https://github.com/dynamic-labs/dynamic-sdk/pull/89))
|
|
442
|
+
|
|
443
|
+
## 0.0.1-alpha.3 (2025-05-27)
|
|
444
|
+
|
|
445
|
+
### 🩹 Fixes
|
|
446
|
+
|
|
447
|
+
- properly export state changed events ([#85](https://github.com/dynamic-labs/dynamic-sdk/pull/85))
|
|
448
|
+
|
|
449
|
+
## 0.0.1-alpha.2 (2025-05-26)
|
|
450
|
+
|
|
451
|
+
### 🚀 Features
|
|
452
|
+
|
|
453
|
+
- logout user when session expires ([#47](https://github.com/dynamic-labs/dynamic-sdk/pull/47))
|
|
454
|
+
- add sms verification ([#78](https://github.com/dynamic-labs/dynamic-sdk/pull/78))
|
|
455
|
+
- raise changed events for state variables ([#79](https://github.com/dynamic-labs/dynamic-sdk/pull/79))
|
|
456
|
+
- allow extending the client ([#80](https://github.com/dynamic-labs/dynamic-sdk/pull/80))
|
|
457
|
+
|
|
458
|
+
## 0.0.1-alpha.1 (2025-05-19)
|
|
459
|
+
|
|
460
|
+
### 🩹 Fixes
|
|
461
|
+
|
|
462
|
+
- make the client package public ([#74](https://github.com/dynamic-labs/dynamic-sdk/pull/74))
|
|
463
|
+
|
|
464
|
+
## 0.0.1-alpha.0 (2025-05-16)
|
|
465
|
+
|
|
466
|
+
Initial release of the Dynamic SDK.
|
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# @dynamic-labs-sdk/bitcoin
|
|
2
|
+
|
|
3
|
+
This package contains the Bitcoin integration for the Dynamic SDK.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { addBitcoinExtension } from '@dynamic-labs-sdk/bitcoin';
|
|
9
|
+
import { createDynamicClient } from '@dynamic-labs-sdk/client';
|
|
10
|
+
|
|
11
|
+
const dynamicClient = createDynamicClient({
|
|
12
|
+
environmentId: '123',
|
|
13
|
+
});
|
|
14
|
+
addBitcoinExtension(dynamicClient);
|
|
15
|
+
```
|
package/index.cjs.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/exports/index";
|
package/index.cjs.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var assertPackageVersion = require('@dynamic-labs-sdk/assert-package-version');
|
|
4
|
+
var core = require('@dynamic-labs-sdk/client/core');
|
|
5
|
+
|
|
6
|
+
var name = "@dynamic-labs-sdk/bitcoin";
|
|
7
|
+
var version = "0.1.0-alpha.18";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Adds the Bitcoin extension to the Dynamic client.
|
|
11
|
+
*
|
|
12
|
+
* This is a convenience function that adds support for a variety of Bitcoin wallets,
|
|
13
|
+
* like MagicEden, Xverse, Unisat, and more.
|
|
14
|
+
*
|
|
15
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
16
|
+
*/ // eslint-disable-next-line custom-rules/check-add-extension-pattern
|
|
17
|
+
const addBitcoinExtension = (client = core.getDefaultClient())=>{
|
|
18
|
+
core.getCore(client).logger.debug('addBitcoinExtension');
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Type guard function to check if a network provider is a Bitcoin network provider.
|
|
23
|
+
*
|
|
24
|
+
* @param networkProvider - The network provider to check.
|
|
25
|
+
* @returns True if the network provider is a Bitcoin network provider, false otherwise.
|
|
26
|
+
*/ const isBitcoinNetworkProvider = (networkProvider)=>networkProvider.chain === 'BTC';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Type guard function to check if a wallet account is a Bitcoin wallet account.
|
|
30
|
+
*
|
|
31
|
+
* @param walletAccount - The wallet account to check.
|
|
32
|
+
* @returns True if the wallet account is a Bitcoin wallet account, false otherwise.
|
|
33
|
+
*/ const isBitcoinWalletAccount = (walletAccount)=>walletAccount.chain === 'BTC';
|
|
34
|
+
|
|
35
|
+
assertPackageVersion.assertPackageVersion(name, version);
|
|
36
|
+
|
|
37
|
+
exports.addBitcoinExtension = addBitcoinExtension;
|
|
38
|
+
exports.isBitcoinNetworkProvider = isBitcoinNetworkProvider;
|
|
39
|
+
exports.isBitcoinWalletAccount = isBitcoinWalletAccount;
|
package/index.esm.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/exports/index";
|
package/index.esm.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { assertPackageVersion } from '@dynamic-labs-sdk/assert-package-version';
|
|
2
|
+
import { getDefaultClient, getCore } from '@dynamic-labs-sdk/client/core';
|
|
3
|
+
|
|
4
|
+
var name = "@dynamic-labs-sdk/bitcoin";
|
|
5
|
+
var version = "0.1.0-alpha.18";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Adds the Bitcoin extension to the Dynamic client.
|
|
9
|
+
*
|
|
10
|
+
* This is a convenience function that adds support for a variety of Bitcoin wallets,
|
|
11
|
+
* like MagicEden, Xverse, Unisat, and more.
|
|
12
|
+
*
|
|
13
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
14
|
+
*/ // eslint-disable-next-line custom-rules/check-add-extension-pattern
|
|
15
|
+
const addBitcoinExtension = (client = getDefaultClient())=>{
|
|
16
|
+
getCore(client).logger.debug('addBitcoinExtension');
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Type guard function to check if a network provider is a Bitcoin network provider.
|
|
21
|
+
*
|
|
22
|
+
* @param networkProvider - The network provider to check.
|
|
23
|
+
* @returns True if the network provider is a Bitcoin network provider, false otherwise.
|
|
24
|
+
*/ const isBitcoinNetworkProvider = (networkProvider)=>networkProvider.chain === 'BTC';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Type guard function to check if a wallet account is a Bitcoin wallet account.
|
|
28
|
+
*
|
|
29
|
+
* @param walletAccount - The wallet account to check.
|
|
30
|
+
* @returns True if the wallet account is a Bitcoin wallet account, false otherwise.
|
|
31
|
+
*/ const isBitcoinWalletAccount = (walletAccount)=>walletAccount.chain === 'BTC';
|
|
32
|
+
|
|
33
|
+
assertPackageVersion(name, version);
|
|
34
|
+
|
|
35
|
+
export { addBitcoinExtension, isBitcoinNetworkProvider, isBitcoinWalletAccount };
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dynamic-labs-sdk/bitcoin",
|
|
3
|
+
"version": "0.1.0-alpha.18",
|
|
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.18",
|
|
18
|
+
"@dynamic-labs-sdk/client": "0.1.0-alpha.18"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BaseNetworkProvider } from '@dynamic-labs-sdk/client/core';
|
|
2
|
+
export type BitcoinNetworkProvider = BaseNetworkProvider<'BTC'>;
|
|
3
|
+
declare global {
|
|
4
|
+
interface NetworkProviderMap {
|
|
5
|
+
BTC: BitcoinNetworkProvider;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=BitcoinNetworkProvider.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BitcoinNetworkProvider.types.d.ts","sourceRoot":"","sources":["../../../../packages/bitcoin/src/BitcoinNetworkProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;AAEhE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,kBAAkB;QAC1B,GAAG,EAAE,sBAAsB,CAAC;KAC7B;CACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BaseWalletAccount } from '@dynamic-labs-sdk/client/core';
|
|
2
|
+
export type BitcoinWalletAccount = BaseWalletAccount<'BTC'>;
|
|
3
|
+
declare global {
|
|
4
|
+
interface WalletAccountMap {
|
|
5
|
+
BTC: BitcoinWalletAccount;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=BitcoinWalletAccount.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BitcoinWalletAccount.types.d.ts","sourceRoot":"","sources":["../../../../packages/bitcoin/src/BitcoinWalletAccount.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;AAE5D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,gBAAgB;QACxB,GAAG,EAAE,oBAAoB,CAAC;KAC3B;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adds the Bitcoin extension to the Dynamic client.
|
|
3
|
+
*
|
|
4
|
+
* This is a convenience function that adds support for a variety of Bitcoin wallets,
|
|
5
|
+
* like MagicEden, Xverse, Unisat, and more.
|
|
6
|
+
*
|
|
7
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8
|
+
*/
|
|
9
|
+
export declare const addBitcoinExtension: (client?: any) => void;
|
|
10
|
+
//# sourceMappingURL=addBitcoinExtension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addBitcoinExtension.d.ts","sourceRoot":"","sources":["../../../../../packages/bitcoin/src/addBitcoinExtension/addBitcoinExtension.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,eAAO,MAAM,mBAAmB,oBAAkC,IAEjE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/bitcoin/src/addBitcoinExtension/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../packages/bitcoin/src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,8BAA8B,CAAC;AAC3D,eAAO,MAAM,uBAAuB,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { addBitcoinExtension } from '../addBitcoinExtension';
|
|
2
|
+
export type { BitcoinNetworkProvider } from '../BitcoinNetworkProvider.types';
|
|
3
|
+
export type { BitcoinWalletAccount } from '../BitcoinWalletAccount.types';
|
|
4
|
+
export { isBitcoinNetworkProvider } from '../isBitcoinNetworkProvider';
|
|
5
|
+
export { isBitcoinWalletAccount } from '../isBitcoinWalletAccount';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/bitcoin/src/exports/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,YAAY,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/bitcoin/src/isBitcoinNetworkProvider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { NetworkProvider } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { BitcoinNetworkProvider } from '../BitcoinNetworkProvider.types';
|
|
3
|
+
/**
|
|
4
|
+
* Type guard function to check if a network provider is a Bitcoin network provider.
|
|
5
|
+
*
|
|
6
|
+
* @param networkProvider - The network provider to check.
|
|
7
|
+
* @returns True if the network provider is a Bitcoin network provider, false otherwise.
|
|
8
|
+
*/
|
|
9
|
+
export declare const isBitcoinNetworkProvider: (networkProvider: NetworkProvider) => networkProvider is BitcoinNetworkProvider;
|
|
10
|
+
//# sourceMappingURL=isBitcoinNetworkProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isBitcoinNetworkProvider.d.ts","sourceRoot":"","sources":["../../../../../packages/bitcoin/src/isBitcoinNetworkProvider/isBitcoinNetworkProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,oBAClB,eAAe,KAC/B,eAAe,IAAI,sBAAyD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/bitcoin/src/isBitcoinWalletAccount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WalletAccount } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { BitcoinWalletAccount } from '../BitcoinWalletAccount.types';
|
|
3
|
+
/**
|
|
4
|
+
* Type guard function to check if a wallet account is a Bitcoin wallet account.
|
|
5
|
+
*
|
|
6
|
+
* @param walletAccount - The wallet account to check.
|
|
7
|
+
* @returns True if the wallet account is a Bitcoin wallet account, false otherwise.
|
|
8
|
+
*/
|
|
9
|
+
export declare const isBitcoinWalletAccount: (walletAccount: WalletAccount) => walletAccount is BitcoinWalletAccount;
|
|
10
|
+
//# sourceMappingURL=isBitcoinWalletAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isBitcoinWalletAccount.d.ts","sourceRoot":"","sources":["../../../../../packages/bitcoin/src/isBitcoinWalletAccount/isBitcoinWalletAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE1E;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,kBAClB,aAAa,KAC3B,aAAa,IAAI,oBAAqD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/bitcoin/src/registerBitcoinNetworkProviderBuilder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC"}
|
package/src/registerBitcoinNetworkProviderBuilder/registerBitcoinNetworkProviderBuilder.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerBitcoinNetworkProviderBuilder.d.ts","sourceRoot":"","sources":["../../../../../packages/bitcoin/src/registerBitcoinNetworkProviderBuilder/registerBitcoinNetworkProviderBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAK9D,eAAO,MAAM,qCAAqC,WACxC,aAAa,KACpB,IAeF,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NetworkData } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { BitcoinNetworkProvider } from '../../BitcoinNetworkProvider.types';
|
|
3
|
+
export declare const createBitcoinNetworkProvider: (networkData: NetworkData) => BitcoinNetworkProvider;
|
|
4
|
+
//# sourceMappingURL=createBitcoinNetworkProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createBitcoinNetworkProvider.d.ts","sourceRoot":"","sources":["../../../../../../packages/bitcoin/src/utils/createBitcoinNetworkProvider/createBitcoinNetworkProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAGjF,eAAO,MAAM,4BAA4B,gBAC1B,WAAW,KACvB,sBAOD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/bitcoin/src/utils/createBitcoinNetworkProvider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchBtcBalance.d.ts","sourceRoot":"","sources":["../../../../../../packages/bitcoin/src/utils/fetchBtcBalance/fetchBtcBalance.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,iBAEzB;IACD,OAAO,EAAE,MAAM,CAAC;CACjB,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CA4BxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/bitcoin/src/utils/fetchBtcBalance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMempoolApiUrl.d.ts","sourceRoot":"","sources":["../../../../../../packages/bitcoin/src/utils/getMempoolApiUrl/getMempoolApiUrl.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,YAAa,MAAM,sEACqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/bitcoin/src/utils/getMempoolApiUrl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/bitcoin/src/utils/satoshisToBtc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"satoshisToBtc.d.ts","sourceRoot":"","sources":["../../../../../../packages/bitcoin/src/utils/satoshisToBtc/satoshisToBtc.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,aAAc,MAAM,WAAyB,CAAC"}
|