Commit 0a488cc
authored
Adjustments to the wallet proposal generator (#3788)
Refs: threshold-network/tbtc-v2#781
Depends on: threshold-network/tbtc-v2#788 (the
`client-build-test-publish` job will become green once 788 is merged and
a new `tbtc-v2@development` package with `RedemptionWatchtower` artifact
will be published to npm)
The optimistic redemption upgrade introduces a veto mechanism
(threshold-network/tbtc-v2#788) that enforces a
processing delay on each redemption request. The exact delay value
depends on the number of objections raised against the given redemption
request. The `WalletProposalValidator` contract has been modified to
include validation of that delay factor. The first change
ed9c4ae introduces the same for the
redemption proposal generator. This ensures the generator issues
proposals that conform to the on-chain validation rules and coordination
windows are not being wasted.
By the way, we are taking an opportunity to optimize the deposit sweep
proposal generation. The `WalletProposalValidator` contract enforces the
minimum age of a deposit that can become part of the proposal. The
proposal generator
was missing this check and was often producing invalid proposals that
were violating the on-chain minimum deposit age rule. We fix that in
55be487.File tree
21 files changed
+10602
-43
lines changed- pkg
- chain/ethereum
- tbtc/gen
- _address
- abi
- cmd
- contract
- tbtcpg
- internal/test
- testdata
21 files changed
+10602
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
197 | 232 | | |
198 | 233 | | |
199 | 234 | | |
200 | 235 | | |
201 | 236 | | |
202 | 237 | | |
203 | 238 | | |
| 239 | + | |
204 | 240 | | |
205 | 241 | | |
206 | 242 | | |
| |||
2040 | 2076 | | |
2041 | 2077 | | |
2042 | 2078 | | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
Whitespace-only changes.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2893 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments