Skip to content
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(cli): verify command #2662

Merged
merged 69 commits into from
Apr 25, 2024
Merged
Changes from 1 commit
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
41adf1d
feat(cli): verify command
yonadaa Apr 15, 2024
8a95d38
feat: testing example on holesky
yonadaa Apr 15, 2024
ed21e92
chore: remove filter
yonadaa Apr 15, 2024
4776836
feat: verify based on folder
yonadaa Apr 15, 2024
20ba4ef
refactor: get contracts
yonadaa Apr 15, 2024
3fe79c5
fix: promise.all
yonadaa Apr 15, 2024
14fa5b6
fix: system
yonadaa Apr 15, 2024
973ef3e
fix: get systems from world config
yonadaa Apr 15, 2024
b7f082b
feat: modules
yonadaa Apr 15, 2024
0974aa4
feat: use cwd
yonadaa Apr 16, 2024
663b738
chore: remove old rpc
yonadaa Apr 16, 2024
38bbb1c
chore: changeset
yonadaa Apr 16, 2024
255add6
refactor: no worldAddress
yonadaa Apr 17, 2024
41783a5
refactor: get world factory contracts
yonadaa Apr 17, 2024
f48f29c
refactor: contract
yonadaa Apr 17, 2024
d63a067
fix: brackets, options
yonadaa Apr 17, 2024
5419673
feat: verify world
yonadaa Apr 17, 2024
1bd2885
refactor: rpc url
yonadaa Apr 17, 2024
005dcc7
worlds.json
yonadaa Apr 17, 2024
436242f
docs: worldaddress
yonadaa Apr 17, 2024
ebe5775
refactor: hardcoded deployer
yonadaa Apr 17, 2024
05dd33a
refactor: require worldaddress
yonadaa Apr 17, 2024
7edceaf
feat: verifier
yonadaa Apr 17, 2024
f2b7b3c
refactor: names
yonadaa Apr 17, 2024
503511a
refactor: getWorldFactoryContracts
yonadaa Apr 17, 2024
3561ff3
refactor: seperate file
yonadaa Apr 17, 2024
49a0b22
docs: change description to mud config
yonadaa Apr 17, 2024
b4a39e4
Merge remote-tracking branch 'origin/main' into yonadaaa/verify-world
yonadaa Apr 18, 2024
f404cce
refactor: move verify contract to seperate file
yonadaa Apr 18, 2024
26dd948
feat: verifier url
yonadaa Apr 18, 2024
1e497a6
refactor: push
yonadaa Apr 18, 2024
1819319
refactor: verificationOptions
yonadaa Apr 18, 2024
9e65089
fix: option
yonadaa Apr 18, 2024
ba67a3b
refactor: use v2 config more
yonadaa Apr 18, 2024
1b0d2b9
rename: config
yonadaa Apr 18, 2024
f186580
chore: comment
yonadaa Apr 18, 2024
e7aacf9
feat: promise.all
yonadaa Apr 18, 2024
29c3bcc
feat: pqueue
yonadaa Apr 18, 2024
4b160a5
reset example
yonadaa Apr 18, 2024
6977d45
refactor: constant
yonadaa Apr 18, 2024
de481cf
fix: type error
yonadaa Apr 18, 2024
3d62480
fix: world address is required
yonadaa Apr 18, 2024
3ef2a30
delete process.exit comment
yonadaa Apr 18, 2024
3d9d25b
refactor: default salt
yonadaa Apr 18, 2024
e90af40
refactor: verify takes union type
yonadaa Apr 18, 2024
0f8147d
refactor
yonadaa Apr 18, 2024
544f7af
Merge remote-tracking branch 'origin/main' into yonadaaa/verify-world
yonadaa Apr 19, 2024
d7f3652
Merge remote-tracking branch 'origin/main' into yonadaaa/verify-world
yonadaa Apr 22, 2024
94833f1
Merge remote-tracking branch 'origin/main' into yonadaaa/verify-world
yonadaa Apr 24, 2024
c7e2ae5
refactor: map to add tasks
yonadaa Apr 24, 2024
bdc1122
Merge remote-tracking branch 'origin/main' into yonadaaa/verify-world
yonadaa Apr 24, 2024
e84d7cc
gm
yonadaa Apr 24, 2024
2ecfec4
feat: use getDeployer
yonadaa Apr 24, 2024
7ffb401
fix: types
yonadaa Apr 24, 2024
12afd82
docs: comment
yonadaa Apr 24, 2024
d613460
refactor: rpc
yonadaa Apr 24, 2024
1165867
chore: prettier
yonadaa Apr 24, 2024
dc0411a
refactor: verify folder
yonadaa Apr 24, 2024
e90e221
refactor: address type
yonadaa Apr 24, 2024
a2a30be
refactor: verify contract takes address
yonadaa Apr 24, 2024
2f8e065
tweak
yonadaa Apr 24, 2024
3f9b08b
feat: figure out if proxy
yonadaa Apr 24, 2024
7ec78cb
docs: add comment on proxy
yonadaa Apr 24, 2024
1eba103
refactor: infer types
yonadaa Apr 24, 2024
2b9f85d
Merge remote-tracking branch 'origin/main' into yonadaaa/verify-world
yonadaa Apr 25, 2024
9099bee
fix: world address should be verified as proxy
yonadaa Apr 25, 2024
a37f051
fix: proxy verifies proxy and implementation
yonadaa Apr 25, 2024
18e24dc
chore: remove unused arg
yonadaa Apr 25, 2024
29b9233
refactor: no public client
yonadaa Apr 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor
yonadaa committed Apr 18, 2024
commit 0f8147d2b35a8571283cb78b1d63ebc0f2a03c3e
11 changes: 4 additions & 7 deletions packages/cli/src/verifyContract.ts
Original file line number Diff line number Diff line change
@@ -17,19 +17,16 @@ type VerifyContractOptions = {
type ForgeOptions = { profile?: string; silent?: boolean; env?: NodeJS.ProcessEnv; cwd?: string };

export async function verifyContract(options: VerifyContractOptions, forgeOptions?: ForgeOptions) {
const args = [
"verify-contract",
const address =
"address" in options
? options.address
: getCreate2Address({
from: options.from,
bytecode: options.bytecode,
salt,
}),
options.name,
"--rpc-url",
options.rpc,
];
});

const args = ["verify-contract", address, options.name, "--rpc-url", options.rpc];

if (options.verifier) {
args.push("--verifier", options.verifier);