@turtleclub/opportunities 0.1.0-beta.12 → 0.1.0-beta.121
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 +460 -0
- package/README.md +179 -0
- package/package.json +9 -12
- package/src/components/index.ts +1 -1
- package/src/deposit/NativeDepositSection.tsx +222 -0
- package/src/deposit/TemporalWrapper.tsx +84 -0
- package/src/{components → deposit/components}/balances-data-table.tsx +6 -0
- package/src/deposit/components/index.ts +3 -0
- package/src/deposit/components/swap-input-v3.tsx +209 -0
- package/src/deposit/components/token-selector-v3.tsx +122 -0
- package/src/deposit/index.ts +4 -0
- package/src/index.ts +12 -6
- package/src/opportunity-actions/OpportunityActions.tsx +216 -0
- package/src/opportunity-actions/index.ts +1 -0
- package/src/opportunity-table/components/opportunities-table.tsx +39 -24
- package/src/route-details/index.ts +6 -0
- package/src/route-details/route-details-v2.tsx +137 -0
- package/src/route-details/route-details.tsx +5 -4
- package/src/route-details/types.ts +7 -0
- package/src/transaction-status/hooks/useTransactionQueue.ts +1 -1
- package/src/withdraw/NativeWithdrawSection.tsx +148 -0
- package/src/withdraw/components/index.ts +1 -0
- package/src/withdraw/components/withdraw-token-selector.tsx +50 -0
- package/src/withdraw/index.ts +2 -0
- package/src/cover-offer/components/CoverOfferCard.tsx +0 -291
- package/src/cover-offer/components/CoverRequestForm.tsx +0 -152
- package/src/cover-offer/components/NexusCoverSection.tsx +0 -65
- package/src/cover-offer/constants.ts +0 -6
- package/src/cover-offer/hooks/useCoverQuote.ts +0 -124
- package/src/cover-offer/hooks/useNexusProduct.ts +0 -74
- package/src/cover-offer/hooks/useNexusPurchase.ts +0 -94
- package/src/cover-offer/index.ts +0 -6
- package/src/cover-offer/types/index.ts +0 -49
- package/src/cover-offer/utils/index.ts +0 -45
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,466 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.1.0-beta.121](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.120...@turtleclub/opportunities@0.1.0-beta.121) (2026-03-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
9
|
+
|
|
10
|
+
# [0.1.0-beta.120](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.119...@turtleclub/opportunities@0.1.0-beta.120) (2026-03-09)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
13
|
+
|
|
14
|
+
# [0.1.0-beta.119](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.118...@turtleclub/opportunities@0.1.0-beta.119) (2026-03-05)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
17
|
+
|
|
18
|
+
# [0.1.0-beta.118](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.117...@turtleclub/opportunities@0.1.0-beta.118) (2026-03-05)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
21
|
+
|
|
22
|
+
# [0.1.0-beta.117](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.116...@turtleclub/opportunities@0.1.0-beta.117) (2026-03-05)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
25
|
+
|
|
26
|
+
# [0.1.0-beta.116](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.115...@turtleclub/opportunities@0.1.0-beta.116) (2026-03-05)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
29
|
+
|
|
30
|
+
# [0.1.0-beta.115](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.114...@turtleclub/opportunities@0.1.0-beta.115) (2026-03-04)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
33
|
+
|
|
34
|
+
# [0.1.0-beta.114](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.113...@turtleclub/opportunities@0.1.0-beta.114) (2026-03-03)
|
|
35
|
+
|
|
36
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
37
|
+
|
|
38
|
+
# [0.1.0-beta.113](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.112...@turtleclub/opportunities@0.1.0-beta.113) (2026-03-03)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
41
|
+
|
|
42
|
+
# [0.1.0-beta.112](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.111...@turtleclub/opportunities@0.1.0-beta.112) (2026-03-02)
|
|
43
|
+
|
|
44
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
45
|
+
|
|
46
|
+
# [0.1.0-beta.111](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.110...@turtleclub/opportunities@0.1.0-beta.111) (2026-03-02)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
49
|
+
|
|
50
|
+
# [0.1.0-beta.110](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.109...@turtleclub/opportunities@0.1.0-beta.110) (2026-02-27)
|
|
51
|
+
|
|
52
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
53
|
+
|
|
54
|
+
# [0.1.0-beta.109](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.108...@turtleclub/opportunities@0.1.0-beta.109) (2026-02-26)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
57
|
+
|
|
58
|
+
# [0.1.0-beta.108](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.107...@turtleclub/opportunities@0.1.0-beta.108) (2026-02-26)
|
|
59
|
+
|
|
60
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
61
|
+
|
|
62
|
+
# [0.1.0-beta.107](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.106...@turtleclub/opportunities@0.1.0-beta.107) (2026-02-26)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
65
|
+
|
|
66
|
+
# [0.1.0-beta.106](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.105...@turtleclub/opportunities@0.1.0-beta.106) (2026-02-23)
|
|
67
|
+
|
|
68
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
69
|
+
|
|
70
|
+
# [0.1.0-beta.105](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.104...@turtleclub/opportunities@0.1.0-beta.105) (2026-02-23)
|
|
71
|
+
|
|
72
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
73
|
+
|
|
74
|
+
# [0.1.0-beta.104](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.103...@turtleclub/opportunities@0.1.0-beta.104) (2026-02-20)
|
|
75
|
+
|
|
76
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
77
|
+
|
|
78
|
+
# [0.1.0-beta.103](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.102...@turtleclub/opportunities@0.1.0-beta.103) (2026-02-19)
|
|
79
|
+
|
|
80
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
81
|
+
|
|
82
|
+
# [0.1.0-beta.102](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.101...@turtleclub/opportunities@0.1.0-beta.102) (2026-02-18)
|
|
83
|
+
|
|
84
|
+
### Features
|
|
85
|
+
|
|
86
|
+
- add deposit modes flag behavior ([#268](https://github.com/turtle-dao/turtle-tools/issues/268)) ([3665a0e](https://github.com/turtle-dao/turtle-tools/commit/3665a0ee55546b88fbbb668956a86d8a831c648e))
|
|
87
|
+
|
|
88
|
+
# [0.1.0-beta.101](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.100...@turtleclub/opportunities@0.1.0-beta.101) (2026-02-17)
|
|
89
|
+
|
|
90
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
91
|
+
|
|
92
|
+
# [0.1.0-beta.100](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.99...@turtleclub/opportunities@0.1.0-beta.100) (2026-02-16)
|
|
93
|
+
|
|
94
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
95
|
+
|
|
96
|
+
# [0.1.0-beta.99](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.98...@turtleclub/opportunities@0.1.0-beta.99) (2026-02-13)
|
|
97
|
+
|
|
98
|
+
### Bug Fixes
|
|
99
|
+
|
|
100
|
+
- **withdraw:** improve withdraw ([#264](https://github.com/turtle-dao/turtle-tools/issues/264)) ([36f3c7b](https://github.com/turtle-dao/turtle-tools/commit/36f3c7b95f16bd17809ca74538e10128387534b8))
|
|
101
|
+
|
|
102
|
+
# [0.1.0-beta.98](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.97...@turtleclub/opportunities@0.1.0-beta.98) (2026-02-13)
|
|
103
|
+
|
|
104
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
105
|
+
|
|
106
|
+
# [0.1.0-beta.97](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.96...@turtleclub/opportunities@0.1.0-beta.97) (2026-02-13)
|
|
107
|
+
|
|
108
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
109
|
+
|
|
110
|
+
# [0.1.0-beta.96](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.95...@turtleclub/opportunities@0.1.0-beta.96) (2026-02-11)
|
|
111
|
+
|
|
112
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
113
|
+
|
|
114
|
+
# [0.1.0-beta.95](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.94...@turtleclub/opportunities@0.1.0-beta.95) (2026-02-11)
|
|
115
|
+
|
|
116
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
117
|
+
|
|
118
|
+
# [0.1.0-beta.94](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.93...@turtleclub/opportunities@0.1.0-beta.94) (2026-02-11)
|
|
119
|
+
|
|
120
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
121
|
+
|
|
122
|
+
# [0.1.0-beta.93](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.92...@turtleclub/opportunities@0.1.0-beta.93) (2026-02-11)
|
|
123
|
+
|
|
124
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
125
|
+
|
|
126
|
+
# [0.1.0-beta.92](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.91...@turtleclub/opportunities@0.1.0-beta.92) (2026-02-11)
|
|
127
|
+
|
|
128
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
129
|
+
|
|
130
|
+
# [0.1.0-beta.91](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.90...@turtleclub/opportunities@0.1.0-beta.91) (2026-02-11)
|
|
131
|
+
|
|
132
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
133
|
+
|
|
134
|
+
# [0.1.0-beta.90](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.89...@turtleclub/opportunities@0.1.0-beta.90) (2026-02-11)
|
|
135
|
+
|
|
136
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
137
|
+
|
|
138
|
+
# [0.1.0-beta.89](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.88...@turtleclub/opportunities@0.1.0-beta.89) (2026-02-11)
|
|
139
|
+
|
|
140
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
141
|
+
|
|
142
|
+
# [0.1.0-beta.88](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.87...@turtleclub/opportunities@0.1.0-beta.88) (2026-02-11)
|
|
143
|
+
|
|
144
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
145
|
+
|
|
146
|
+
# [0.1.0-beta.87](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.86...@turtleclub/opportunities@0.1.0-beta.87) (2026-02-11)
|
|
147
|
+
|
|
148
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
149
|
+
|
|
150
|
+
# [0.1.0-beta.86](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.85...@turtleclub/opportunities@0.1.0-beta.86) (2026-02-11)
|
|
151
|
+
|
|
152
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
153
|
+
|
|
154
|
+
# [0.1.0-beta.85](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.84...@turtleclub/opportunities@0.1.0-beta.85) (2026-02-11)
|
|
155
|
+
|
|
156
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
157
|
+
|
|
158
|
+
# [0.1.0-beta.84](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.83...@turtleclub/opportunities@0.1.0-beta.84) (2026-02-09)
|
|
159
|
+
|
|
160
|
+
### Features
|
|
161
|
+
|
|
162
|
+
- create covers package. Nexus mutual improvements ([#242](https://github.com/turtle-dao/turtle-tools/issues/242)) ([487f2e6](https://github.com/turtle-dao/turtle-tools/commit/487f2e6c816779f6a097b28eb258f216294b6e48))
|
|
163
|
+
|
|
164
|
+
# [0.1.0-beta.83](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.82...@turtleclub/opportunities@0.1.0-beta.83) (2026-02-09)
|
|
165
|
+
|
|
166
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
167
|
+
|
|
168
|
+
# [0.1.0-beta.82](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.81...@turtleclub/opportunities@0.1.0-beta.82) (2026-02-05)
|
|
169
|
+
|
|
170
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
171
|
+
|
|
172
|
+
# [0.1.0-beta.81](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.80...@turtleclub/opportunities@0.1.0-beta.81) (2026-02-05)
|
|
173
|
+
|
|
174
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
175
|
+
|
|
176
|
+
# [0.1.0-beta.80](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.79...@turtleclub/opportunities@0.1.0-beta.80) (2026-02-05)
|
|
177
|
+
|
|
178
|
+
### Bug Fixes
|
|
179
|
+
|
|
180
|
+
- enhance input handling in SwapInputV3 component ([#254](https://github.com/turtle-dao/turtle-tools/issues/254)) ([5e1d371](https://github.com/turtle-dao/turtle-tools/commit/5e1d371c1ad689acb8887d7dc1000443e6fbbc8f))
|
|
181
|
+
|
|
182
|
+
# [0.1.0-beta.79](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.78...@turtleclub/opportunities@0.1.0-beta.79) (2026-02-04)
|
|
183
|
+
|
|
184
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
185
|
+
|
|
186
|
+
# [0.1.0-beta.78](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.77...@turtleclub/opportunities@0.1.0-beta.78) (2026-02-03)
|
|
187
|
+
|
|
188
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
189
|
+
|
|
190
|
+
# [0.1.0-beta.77](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.76...@turtleclub/opportunities@0.1.0-beta.77) (2026-02-03)
|
|
191
|
+
|
|
192
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
193
|
+
|
|
194
|
+
# [0.1.0-beta.76](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.75...@turtleclub/opportunities@0.1.0-beta.76) (2026-02-03)
|
|
195
|
+
|
|
196
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
197
|
+
|
|
198
|
+
# [0.1.0-beta.75](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.74...@turtleclub/opportunities@0.1.0-beta.75) (2026-02-03)
|
|
199
|
+
|
|
200
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
201
|
+
|
|
202
|
+
# [0.1.0-beta.74](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.73...@turtleclub/opportunities@0.1.0-beta.74) (2026-02-03)
|
|
203
|
+
|
|
204
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
205
|
+
|
|
206
|
+
# [0.1.0-beta.73](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.72...@turtleclub/opportunities@0.1.0-beta.73) (2026-02-02)
|
|
207
|
+
|
|
208
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
209
|
+
|
|
210
|
+
# [0.1.0-beta.72](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.71...@turtleclub/opportunities@0.1.0-beta.72) (2026-01-30)
|
|
211
|
+
|
|
212
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
213
|
+
|
|
214
|
+
# [0.1.0-beta.71](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.70...@turtleclub/opportunities@0.1.0-beta.71) (2026-01-30)
|
|
215
|
+
|
|
216
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
217
|
+
|
|
218
|
+
# [0.1.0-beta.70](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.69...@turtleclub/opportunities@0.1.0-beta.70) (2026-01-30)
|
|
219
|
+
|
|
220
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
221
|
+
|
|
222
|
+
# [0.1.0-beta.69](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.68...@turtleclub/opportunities@0.1.0-beta.69) (2026-01-30)
|
|
223
|
+
|
|
224
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
225
|
+
|
|
226
|
+
# [0.1.0-beta.68](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.67...@turtleclub/opportunities@0.1.0-beta.68) (2026-01-29)
|
|
227
|
+
|
|
228
|
+
### Bug Fixes
|
|
229
|
+
|
|
230
|
+
- update default slippage and reset form on deposit mode change ([#240](https://github.com/turtle-dao/turtle-tools/issues/240)) ([5e43f30](https://github.com/turtle-dao/turtle-tools/commit/5e43f30956823b24d29bcdd1e23a7f4fc0108a3e))
|
|
231
|
+
|
|
232
|
+
# [0.1.0-beta.67](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.66...@turtleclub/opportunities@0.1.0-beta.67) (2026-01-29)
|
|
233
|
+
|
|
234
|
+
### Bug Fixes
|
|
235
|
+
|
|
236
|
+
- layout shift and metadata still present ([45cc1a5](https://github.com/turtle-dao/turtle-tools/commit/45cc1a54ae8bd69d1d715e7b0e3093d376a904f4))
|
|
237
|
+
|
|
238
|
+
# [0.1.0-beta.66](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.65...@turtleclub/opportunities@0.1.0-beta.66) (2026-01-29)
|
|
239
|
+
|
|
240
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
241
|
+
|
|
242
|
+
# [0.1.0-beta.65](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.64...@turtleclub/opportunities@0.1.0-beta.65) (2026-01-28)
|
|
243
|
+
|
|
244
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
245
|
+
|
|
246
|
+
# [0.1.0-beta.64](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.63...@turtleclub/opportunities@0.1.0-beta.64) (2026-01-28)
|
|
247
|
+
|
|
248
|
+
### Features
|
|
249
|
+
|
|
250
|
+
- add deposit mode query param ([#238](https://github.com/turtle-dao/turtle-tools/issues/238)) ([752f8f1](https://github.com/turtle-dao/turtle-tools/commit/752f8f12b86564615c8ad15129a828812f0cc4db))
|
|
251
|
+
|
|
252
|
+
# [0.1.0-beta.63](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.62...@turtleclub/opportunities@0.1.0-beta.63) (2026-01-28)
|
|
253
|
+
|
|
254
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
255
|
+
|
|
256
|
+
# [0.1.0-beta.62](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.61...@turtleclub/opportunities@0.1.0-beta.62) (2026-01-28)
|
|
257
|
+
|
|
258
|
+
### Features
|
|
259
|
+
|
|
260
|
+
- implement turtle-basic UI scaffold with platform adapters ([#235](https://github.com/turtle-dao/turtle-tools/issues/235)) ([89dea4b](https://github.com/turtle-dao/turtle-tools/commit/89dea4b944a4e1dda8ae11ae17b6848ef1c81fa6))
|
|
261
|
+
|
|
262
|
+
# [0.1.0-beta.61](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.60...@turtleclub/opportunities@0.1.0-beta.61) (2026-01-28)
|
|
263
|
+
|
|
264
|
+
### Features
|
|
265
|
+
|
|
266
|
+
- deposit improvements ([#234](https://github.com/turtle-dao/turtle-tools/issues/234)) ([aef8505](https://github.com/turtle-dao/turtle-tools/commit/aef8505b0768f9aeea65b7499dcb090553dd69df))
|
|
267
|
+
|
|
268
|
+
# [0.1.0-beta.60](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.59...@turtleclub/opportunities@0.1.0-beta.60) (2026-01-27)
|
|
269
|
+
|
|
270
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
271
|
+
|
|
272
|
+
# [0.1.0-beta.59](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.58...@turtleclub/opportunities@0.1.0-beta.59) (2026-01-23)
|
|
273
|
+
|
|
274
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
275
|
+
|
|
276
|
+
# [0.1.0-beta.58](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.57...@turtleclub/opportunities@0.1.0-beta.58) (2026-01-23)
|
|
277
|
+
|
|
278
|
+
### Features
|
|
279
|
+
|
|
280
|
+
- native deposit section ([#231](https://github.com/turtle-dao/turtle-tools/issues/231)) ([b05278e](https://github.com/turtle-dao/turtle-tools/commit/b05278ee2eb7b77429e50140e08ca00eb6d2745d))
|
|
281
|
+
|
|
282
|
+
# [0.1.0-beta.57](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.56...@turtleclub/opportunities@0.1.0-beta.57) (2026-01-21)
|
|
283
|
+
|
|
284
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
285
|
+
|
|
286
|
+
# [0.1.0-beta.56](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.55...@turtleclub/opportunities@0.1.0-beta.56) (2026-01-20)
|
|
287
|
+
|
|
288
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
289
|
+
|
|
290
|
+
# [0.1.0-beta.55](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.54...@turtleclub/opportunities@0.1.0-beta.55) (2026-01-20)
|
|
291
|
+
|
|
292
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
293
|
+
|
|
294
|
+
# [0.1.0-beta.54](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.53...@turtleclub/opportunities@0.1.0-beta.54) (2026-01-19)
|
|
295
|
+
|
|
296
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
297
|
+
|
|
298
|
+
# [0.1.0-beta.53](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.52...@turtleclub/opportunities@0.1.0-beta.53) (2026-01-19)
|
|
299
|
+
|
|
300
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
301
|
+
|
|
302
|
+
# [0.1.0-beta.52](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.51...@turtleclub/opportunities@0.1.0-beta.52) (2026-01-19)
|
|
303
|
+
|
|
304
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
305
|
+
|
|
306
|
+
# [0.1.0-beta.51](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.50...@turtleclub/opportunities@0.1.0-beta.51) (2026-01-16)
|
|
307
|
+
|
|
308
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
309
|
+
|
|
310
|
+
# [0.1.0-beta.50](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.49...@turtleclub/opportunities@0.1.0-beta.50) (2026-01-16)
|
|
311
|
+
|
|
312
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
313
|
+
|
|
314
|
+
# [0.1.0-beta.49](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.48...@turtleclub/opportunities@0.1.0-beta.49) (2026-01-16)
|
|
315
|
+
|
|
316
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
317
|
+
|
|
318
|
+
# [0.1.0-beta.48](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.47...@turtleclub/opportunities@0.1.0-beta.48) (2026-01-14)
|
|
319
|
+
|
|
320
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
321
|
+
|
|
322
|
+
# [0.1.0-beta.47](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.46...@turtleclub/opportunities@0.1.0-beta.47) (2026-01-14)
|
|
323
|
+
|
|
324
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
325
|
+
|
|
326
|
+
# [0.1.0-beta.46](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.45...@turtleclub/opportunities@0.1.0-beta.46) (2026-01-14)
|
|
327
|
+
|
|
328
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
329
|
+
|
|
330
|
+
# [0.1.0-beta.45](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.44...@turtleclub/opportunities@0.1.0-beta.45) (2026-01-13)
|
|
331
|
+
|
|
332
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
333
|
+
|
|
334
|
+
# [0.1.0-beta.44](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.43...@turtleclub/opportunities@0.1.0-beta.44) (2026-01-13)
|
|
335
|
+
|
|
336
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
337
|
+
|
|
338
|
+
# [0.1.0-beta.43](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.42...@turtleclub/opportunities@0.1.0-beta.43) (2026-01-13)
|
|
339
|
+
|
|
340
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
341
|
+
|
|
342
|
+
# [0.1.0-beta.42](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.41...@turtleclub/opportunities@0.1.0-beta.42) (2026-01-13)
|
|
343
|
+
|
|
344
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
345
|
+
|
|
346
|
+
# [0.1.0-beta.41](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.40...@turtleclub/opportunities@0.1.0-beta.41) (2026-01-13)
|
|
347
|
+
|
|
348
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
349
|
+
|
|
350
|
+
# [0.1.0-beta.40](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.39...@turtleclub/opportunities@0.1.0-beta.40) (2026-01-13)
|
|
351
|
+
|
|
352
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
353
|
+
|
|
354
|
+
# [0.1.0-beta.39](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.38...@turtleclub/opportunities@0.1.0-beta.39) (2026-01-12)
|
|
355
|
+
|
|
356
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
357
|
+
|
|
358
|
+
# [0.1.0-beta.38](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.37...@turtleclub/opportunities@0.1.0-beta.38) (2026-01-12)
|
|
359
|
+
|
|
360
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
361
|
+
|
|
362
|
+
# [0.1.0-beta.37](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.36...@turtleclub/opportunities@0.1.0-beta.37) (2026-01-09)
|
|
363
|
+
|
|
364
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
365
|
+
|
|
366
|
+
# [0.1.0-beta.36](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.35...@turtleclub/opportunities@0.1.0-beta.36) (2026-01-09)
|
|
367
|
+
|
|
368
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
369
|
+
|
|
370
|
+
# [0.1.0-beta.35](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.34...@turtleclub/opportunities@0.1.0-beta.35) (2026-01-09)
|
|
371
|
+
|
|
372
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
373
|
+
|
|
374
|
+
# [0.1.0-beta.34](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.33...@turtleclub/opportunities@0.1.0-beta.34) (2026-01-08)
|
|
375
|
+
|
|
376
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
377
|
+
|
|
378
|
+
# [0.1.0-beta.33](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.32...@turtleclub/opportunities@0.1.0-beta.33) (2026-01-08)
|
|
379
|
+
|
|
380
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
381
|
+
|
|
382
|
+
# [0.1.0-beta.32](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.31...@turtleclub/opportunities@0.1.0-beta.32) (2026-01-07)
|
|
383
|
+
|
|
384
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
385
|
+
|
|
386
|
+
# [0.1.0-beta.31](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.30...@turtleclub/opportunities@0.1.0-beta.31) (2026-01-07)
|
|
387
|
+
|
|
388
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
389
|
+
|
|
390
|
+
# [0.1.0-beta.30](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.29...@turtleclub/opportunities@0.1.0-beta.30) (2026-01-07)
|
|
391
|
+
|
|
392
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
393
|
+
|
|
394
|
+
# [0.1.0-beta.29](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.28...@turtleclub/opportunities@0.1.0-beta.29) (2026-01-07)
|
|
395
|
+
|
|
396
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
397
|
+
|
|
398
|
+
# [0.1.0-beta.28](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.27...@turtleclub/opportunities@0.1.0-beta.28) (2026-01-07)
|
|
399
|
+
|
|
400
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
401
|
+
|
|
402
|
+
# [0.1.0-beta.27](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.26...@turtleclub/opportunities@0.1.0-beta.27) (2026-01-07)
|
|
403
|
+
|
|
404
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
405
|
+
|
|
406
|
+
# [0.1.0-beta.26](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.25...@turtleclub/opportunities@0.1.0-beta.26) (2026-01-07)
|
|
407
|
+
|
|
408
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
409
|
+
|
|
410
|
+
# [0.1.0-beta.25](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.24...@turtleclub/opportunities@0.1.0-beta.25) (2026-01-06)
|
|
411
|
+
|
|
412
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
413
|
+
|
|
414
|
+
# [0.1.0-beta.24](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.23...@turtleclub/opportunities@0.1.0-beta.24) (2026-01-05)
|
|
415
|
+
|
|
416
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
417
|
+
|
|
418
|
+
# [0.1.0-beta.23](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.22...@turtleclub/opportunities@0.1.0-beta.23) (2026-01-02)
|
|
419
|
+
|
|
420
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
421
|
+
|
|
422
|
+
# [0.1.0-beta.22](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.21...@turtleclub/opportunities@0.1.0-beta.22) (2025-12-31)
|
|
423
|
+
|
|
424
|
+
### Features
|
|
425
|
+
|
|
426
|
+
- support USDC and cbBTC cover tokens, persist cover requests, migrate to React Query ([#209](https://github.com/turtle-dao/turtle-tools/issues/209)) ([c225999](https://github.com/turtle-dao/turtle-tools/commit/c225999f1b913e15af6fd7956242097897d5d8ce))
|
|
427
|
+
|
|
428
|
+
# [0.1.0-beta.21](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.20...@turtleclub/opportunities@0.1.0-beta.21) (2025-12-31)
|
|
429
|
+
|
|
430
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
431
|
+
|
|
432
|
+
# [0.1.0-beta.20](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.19...@turtleclub/opportunities@0.1.0-beta.20) (2025-12-30)
|
|
433
|
+
|
|
434
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
435
|
+
|
|
436
|
+
# [0.1.0-beta.19](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.18...@turtleclub/opportunities@0.1.0-beta.19) (2025-12-23)
|
|
437
|
+
|
|
438
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
439
|
+
|
|
440
|
+
# [0.1.0-beta.18](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.17...@turtleclub/opportunities@0.1.0-beta.18) (2025-12-23)
|
|
441
|
+
|
|
442
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
443
|
+
|
|
444
|
+
# [0.1.0-beta.17](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.16...@turtleclub/opportunities@0.1.0-beta.17) (2025-12-23)
|
|
445
|
+
|
|
446
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
447
|
+
|
|
448
|
+
# [0.1.0-beta.16](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.15...@turtleclub/opportunities@0.1.0-beta.16) (2025-12-23)
|
|
449
|
+
|
|
450
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
451
|
+
|
|
452
|
+
# [0.1.0-beta.15](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.14...@turtleclub/opportunities@0.1.0-beta.15) (2025-12-19)
|
|
453
|
+
|
|
454
|
+
### Features
|
|
455
|
+
|
|
456
|
+
- fix Nexus Cover Purchase. Detect if LP is a nexus member ([#203](https://github.com/turtle-dao/turtle-tools/issues/203)) ([9e05425](https://github.com/turtle-dao/turtle-tools/commit/9e05425f0315f93f27e4d6b01b72faeb15783163))
|
|
457
|
+
|
|
458
|
+
# [0.1.0-beta.14](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.13...@turtleclub/opportunities@0.1.0-beta.14) (2025-12-17)
|
|
459
|
+
|
|
460
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
461
|
+
|
|
462
|
+
# [0.1.0-beta.13](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.12...@turtleclub/opportunities@0.1.0-beta.13) (2025-12-17)
|
|
463
|
+
|
|
464
|
+
**Note:** Version bump only for package @turtleclub/opportunities
|
|
465
|
+
|
|
6
466
|
# [0.1.0-beta.12](https://github.com/turtle-dao/turtle-tools/compare/@turtleclub/opportunities@0.1.0-beta.11...@turtleclub/opportunities@0.1.0-beta.12) (2025-12-16)
|
|
7
467
|
|
|
8
468
|
**Note:** Version bump only for package @turtleclub/opportunities
|
package/README.md
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# @turtleclub/opportunities
|
|
2
|
+
|
|
3
|
+
React components for interacting with Turtle Club opportunities, including deposits, withdrawals, and transaction status tracking.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @turtleclub/opportunities
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Components
|
|
12
|
+
|
|
13
|
+
### NativeDepositSection
|
|
14
|
+
|
|
15
|
+
A complete deposit interface component for opportunities that handles token selection, balance fetching, and deposit execution.
|
|
16
|
+
|
|
17
|
+
#### Props
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
interface NativeDepositSectionProps {
|
|
21
|
+
// Required
|
|
22
|
+
opportunity: Opportunity; // The opportunity to deposit into
|
|
23
|
+
address: string | undefined; // User's wallet address
|
|
24
|
+
distributorId: string; // Distributor ID for attribution
|
|
25
|
+
executeTransaction: (tx: TransactionRequest) => Promise<string | undefined>;
|
|
26
|
+
|
|
27
|
+
// Optional
|
|
28
|
+
onDepositSuccess?: () => void; // Callback after successful deposit
|
|
29
|
+
tokenDisplayMode?: 'deposit-tokens' | 'all-chain-tokens'; // Default: 'deposit-tokens'
|
|
30
|
+
showZeroBalances?: boolean; // Show tokens with 0 balance. Default: false
|
|
31
|
+
showExcludedTokens?: boolean; // Show excluded/blacklisted tokens. Default: false
|
|
32
|
+
renderAssetSelector?: (props: AssetSelectorProps) => ReactNode; // Custom token selector
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
#### Token Display Modes
|
|
37
|
+
|
|
38
|
+
- **`deposit-tokens`** (default): Only shows tokens from `opportunity.depositTokens`
|
|
39
|
+
- **`all-chain-tokens`**: Shows all tokens on the chain that the user has balance for
|
|
40
|
+
|
|
41
|
+
#### Basic Usage
|
|
42
|
+
|
|
43
|
+
```tsx
|
|
44
|
+
import { NativeDepositSection } from '@turtleclub/opportunities';
|
|
45
|
+
import { useMultichainSendTransaction } from '@turtleclub/multichain';
|
|
46
|
+
|
|
47
|
+
function DepositPage({ opportunity, address }) {
|
|
48
|
+
const { sendTransaction, waitForReceipt } = useMultichainSendTransaction();
|
|
49
|
+
|
|
50
|
+
const executeTransaction = async (tx) => {
|
|
51
|
+
const hash = await sendTransaction({
|
|
52
|
+
to: tx.to,
|
|
53
|
+
data: tx.data,
|
|
54
|
+
value: tx.value ? BigInt(tx.value) : undefined,
|
|
55
|
+
});
|
|
56
|
+
if (hash) await waitForReceipt(hash);
|
|
57
|
+
return hash;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
return (
|
|
61
|
+
<NativeDepositSection
|
|
62
|
+
opportunity={opportunity}
|
|
63
|
+
address={address}
|
|
64
|
+
distributorId="your-distributor-id"
|
|
65
|
+
executeTransaction={executeTransaction}
|
|
66
|
+
onDepositSuccess={() => console.log('Deposit completed!')}
|
|
67
|
+
/>
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
#### With Custom Asset Selector
|
|
73
|
+
|
|
74
|
+
```tsx
|
|
75
|
+
import { NativeDepositSection, type AssetSelectorProps } from '@turtleclub/opportunities';
|
|
76
|
+
|
|
77
|
+
function CustomAssetSelector({ tokens, selectedToken, onTokenChange, isLoading }: AssetSelectorProps) {
|
|
78
|
+
return (
|
|
79
|
+
<div className="custom-selector">
|
|
80
|
+
{tokens.map((token) => (
|
|
81
|
+
<button
|
|
82
|
+
key={token.address}
|
|
83
|
+
onClick={() => onTokenChange(token.address)}
|
|
84
|
+
className={selectedToken === token.address ? 'selected' : ''}
|
|
85
|
+
>
|
|
86
|
+
{token.symbol} - {token.balance}
|
|
87
|
+
</button>
|
|
88
|
+
))}
|
|
89
|
+
</div>
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function DepositPage({ opportunity, address }) {
|
|
94
|
+
return (
|
|
95
|
+
<NativeDepositSection
|
|
96
|
+
opportunity={opportunity}
|
|
97
|
+
address={address}
|
|
98
|
+
distributorId="your-distributor-id"
|
|
99
|
+
executeTransaction={executeTransaction}
|
|
100
|
+
renderAssetSelector={(props) => <CustomAssetSelector {...props} />}
|
|
101
|
+
/>
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
#### Show All Chain Tokens
|
|
107
|
+
|
|
108
|
+
```tsx
|
|
109
|
+
<NativeDepositSection
|
|
110
|
+
opportunity={opportunity}
|
|
111
|
+
address={address}
|
|
112
|
+
distributorId="your-distributor-id"
|
|
113
|
+
executeTransaction={executeTransaction}
|
|
114
|
+
tokenDisplayMode="all-chain-tokens"
|
|
115
|
+
showZeroBalances={true}
|
|
116
|
+
/>
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Features
|
|
120
|
+
|
|
121
|
+
- **Auto-selection**: Automatically selects the token with the highest balance
|
|
122
|
+
- **Native token support**: Handles both ERC20 and native tokens (ETH, MATIC, etc.)
|
|
123
|
+
- **USD value display**: Shows real-time USD equivalent of the amount
|
|
124
|
+
- **Insufficient balance detection**: Validates balance before allowing deposit
|
|
125
|
+
- **Max button**: Quick-fill maximum available balance
|
|
126
|
+
- **Geo-blocking**: Integrates with GeoCheckBlocker for geographic restrictions
|
|
127
|
+
- **Loading states**: Shows loading indicators while fetching balances
|
|
128
|
+
|
|
129
|
+
### Dependencies
|
|
130
|
+
|
|
131
|
+
This component uses the following hooks from `@turtleclub/hooks`:
|
|
132
|
+
|
|
133
|
+
- `useGetOnChainBalance` - Fetches on-chain token balances
|
|
134
|
+
- `useBalance` - Fetches consolidated balances from multiple sources
|
|
135
|
+
- `useTokenBalance` - Calculates USD value and validates amounts
|
|
136
|
+
- `useEarnDeposit` - Handles the deposit transaction flow
|
|
137
|
+
|
|
138
|
+
## Other Components
|
|
139
|
+
|
|
140
|
+
### GeoCheckBlocker
|
|
141
|
+
|
|
142
|
+
Wraps content that should be blocked in certain geographic regions.
|
|
143
|
+
|
|
144
|
+
### ConfirmButton
|
|
145
|
+
|
|
146
|
+
Button component with confirmation state for critical actions.
|
|
147
|
+
|
|
148
|
+
## Types
|
|
149
|
+
|
|
150
|
+
```typescript
|
|
151
|
+
// Re-exported from @turtleclub/hooks
|
|
152
|
+
export type { Opportunity, TransactionRequest } from '@turtleclub/hooks';
|
|
153
|
+
|
|
154
|
+
// Component-specific types
|
|
155
|
+
export interface AssetSelectorProps {
|
|
156
|
+
tokens: SwapInputToken[];
|
|
157
|
+
selectedToken: string | undefined;
|
|
158
|
+
onTokenChange: (address: string) => void;
|
|
159
|
+
isLoading: boolean;
|
|
160
|
+
}
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## Testing
|
|
164
|
+
|
|
165
|
+
The showcase app includes a testing page at `/actions` where you can:
|
|
166
|
+
|
|
167
|
+
1. Connect a wallet (EVM, Solana, or TON)
|
|
168
|
+
2. Test NativeDepositSection with different configurations
|
|
169
|
+
3. Toggle between token display modes
|
|
170
|
+
4. Test with zero balance visibility
|
|
171
|
+
|
|
172
|
+
Run the showcase:
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
cd apps/showcase
|
|
176
|
+
pnpm dev
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
Navigate to `http://localhost:3000/actions` to test the component.
|