Commit 666bccb
feat: Remove SpokePool v2 functionality (#456)
* feat: Remove non-USS functionality from SpokePool
This PR showcases how we will remove all non-USS functionality in the spoke pools once all non-USS deposits are fills, fills are refunded, and roots are executed.
This PR reduces the bytecode significantly and means we can use the full optimizer runs setting for compiling these new contracts
* Remove Deposit and SlowRelay tests
Signed-off-by: nicholaspai <npai.nyc@gmail.com>
* WIP
* WIP
* Update utils.ts
* Add back Deposit functions
* add back legacy deposit unit tests
* Update hardhat.config.ts
* fix tests
* Update package.json
* fix
Signed-off-by: nicholaspai <npai.nyc@gmail.com>
* Add depositUSSNow, replace error strings with custom error types, fix tests
* Fix
* Fix tests
* Update SpokePool.Deposit.ts
* feat: Remove all "USS" references in contracts
This PR implements a simple find-and-replace of "USS" with "V3" to make it more clear that this is a new version of the Across protocol
that supports new features such as cross-chain token-swaps. USS is an internal code name for "Universal Settlement Service" but this is
not neccessariy the language that will be used to market this product. So, renaming to V3 makes these contract changes more of a blank
slate.
* Replace USS with V3
* Remove UBA references
* fix tests
* merge master
* fix tests
* change depositV3Now to take in exclusivity deadline
* Fix
* Update Ovm_SpokePool.sol
* Update Ovm_SpokePool.sol
* add back depositfor, remove special polygon spoke pool compiler rules
* update hardhat-zksolc
* Update test/SpokePool.Deposit.ts
Co-authored-by: Paul <108695806+pxrl@users.noreply.github.com>
* Update hardhat.config.ts
---------
Signed-off-by: nicholaspai <npai.nyc@gmail.com>
Co-authored-by: nicholaspai <npai.nyc@gmail.com>
Co-authored-by: nicholaspai <9457025+nicholaspai@users.noreply.github.com>1 parent a4d2e20 commit 666bccb
File tree
31 files changed
+475
-3852
lines changed- contracts
- interfaces
- test
- scripts
- test
- chain-specific-spokepools
- fixtures
- gas-analytics
- merkle-distributor
31 files changed
+475
-3852
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 44 | | |
61 | 45 | | |
62 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| 57 | + | |
| 58 | + | |
54 | 59 | | |
55 | 60 | | |
56 | 61 | | |
| |||
80 | 85 | | |
81 | 86 | | |
82 | 87 | | |
83 | | - | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
| |||
169 | 173 | | |
170 | 174 | | |
171 | 175 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
54 | 60 | | |
55 | 61 | | |
56 | 62 | | |
| |||
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
62 | | - | |
| 68 | + | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
| |||
143 | 149 | | |
144 | 150 | | |
145 | 151 | | |
146 | | - | |
147 | | - | |
| 152 | + | |
| 153 | + | |
148 | 154 | | |
149 | 155 | | |
150 | 156 | | |
| |||
153 | 159 | | |
154 | 160 | | |
155 | 161 | | |
156 | | - | |
| 162 | + | |
157 | 163 | | |
158 | 164 | | |
159 | 165 | | |
| |||
254 | 260 | | |
255 | 261 | | |
256 | 262 | | |
257 | | - | |
| 263 | + | |
258 | 264 | | |
259 | 265 | | |
0 commit comments