-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(script): add dev deploy and config scripts #2
Conversation
LCOV of commit
|
76646e0
to
e82ed1e
Compare
f8643fd
to
b4221bc
Compare
b4221bc
to
2d36bb9
Compare
bcd7b3d
to
ea158dc
Compare
Changes to gas cost
🧾 Summary (20% most significant diffs)
Full diff report 👇
|
8b6dd2c
to
55a447f
Compare
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.
Fixing submodules must be done in a separate PR
Done in this PR: #5 |
bb8adbc
to
f8d4238
Compare
a8ce4b3
to
e3bf133
Compare
131d27e
to
4130092
Compare
|
||
import { ICreateXLike } from "../deploy/interfaces/ICreateXLike.sol"; | ||
|
||
contract Utils { |
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.
Could be a library
deploy-local-spoke: | ||
FOUNDRY_PROFILE=production forge script script/deploy/dev/DeployDevSpoke.s.sol:DeployDevSpoke --private-key $(DEV_PRIVATE_KEY) --rpc-url localhost --skip test --non-interactive --broadcast -v | ||
|
||
deploy-dev-sepolia: |
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.
I'm concerned about this approach. It doesn't scale well since adding a new chain requires to duplicate all those commands and it's easy to make a copy-paste mistake.
Is it possible to just pass a chain name and read all the required information from json config?
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.
We can refactor later but we should still keep one command per network.
|
||
import { Utils } from "../helpers/Utils.sol"; | ||
|
||
contract CastBase is Script, Utils { |
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.
I don't think it's should be called Cast
. cast
is just a command-line tool, and we're not using it to call the script. Since it sends cross-chain transactions Send
is more descriptive name
No description provided.