Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial implementation of Bitcoin depositor (tBTC Depositor) #91
Initial implementation of Bitcoin depositor (tBTC Depositor) #91
Changes from 131 commits
f57fe76
a6d27d4
a95e09d
9733704
c1b4b12
6f48f76
27fb5ff
d409aea
e719485
4ea8617
be66889
e9af2ac
c2720af
74c7c30
fda93b7
dee6db3
f24ccb8
53e33f0
0648cb9
9ee08d6
a111eba
81d9831
6f722e9
f009b3c
a9945a8
b20f02b
81aa38e
b6f52f4
b918ee8
0909d82
4ca73bf
89d6df3
8ed2a3b
7c2fea3
5bd8a40
c4c19b3
01c8feb
4d5cdbb
2b9b222
8b5fdc8
c78ec0a
e1e9a1e
3d168b1
a06822a
2c39ed5
a82393e
6d8d8c7
2a401f0
83da0c4
5283f1e
10bcee4
d5fe01f
4dc776f
10c4126
9e9d975
0c151ac
610abb5
1d3cea3
850f980
cbf198b
e8227ab
e14ff0e
debc8dc
873e1cd
1237ced
f541f7d
8fdab6f
fac63fd
bcb127e
defea02
ec35bed
60740dd
68f58b4
932bd1b
c73e98d
4c72591
563cca9
e3afe46
abfe788
14e0c65
8c02617
ecdf80f
c95f17a
7741b92
a56117e
e3cbfdc
3485752
a72344c
7295110
e30ff01
3e69dcd
f4b4c27
b3949fe
4f4dd4a
7a13d75
005435d
29d054a
9d745ce
313d193
0b03bae
fbbf10d
327c9f4
f226b56
7f94c44
ac3f268
e7b7e07
628de75
7529547
18dc65c
6f48b16
55087ae
3e1f42c
0ff413a
28b65a2
c03c37a
79f4d43
48f6c37
591a9b3
e0b8d6c
ea20b43
879eab5
4489d12
e3ff790
c99f286
0355f7c
cfaec75
0ca396b
c2b54db
c0c0746
0e72db4
6fc9ea9
2e03a62
46ae9a1
a335dad
cebb35e
a4b85c8
b6eea22
54a2427
e4d3062
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Large diffs are not rendered by default.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not biggy, but did you consider using
func.skip
just like we use for example in00_resolve_testing_erc4626.ts
? This way we'd need to almost duplicate this file, but we avoid logic in the deployment contracts and no need to use"test": "HARDHAT_TEST=true hardhat test"
in package.json. Up to you.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I wanted to achieve here is to deploy the contract but if the deployment is invoked for unit test execution use the alternative
AcreBitcoinDepositorHarness
contract. So the script should be executed always, just with a different contract.I'm not sure what would be the best way to do it with the
func.skip
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, I know what you're trying to achieve. My proposition was having two deployment files:
03_deploy_acre_bitcoin_depositor.ts
and03_test_deploy_acre_bitcoin_depositor.ts
. In the first one we add skip if the network is hardhat. For the latter script we can add skip in case the network is other than hardhat. This way the logic from deployment script and package.json will go away. Anyway, this is just another option, non blocker and up to you.