-
Notifications
You must be signed in to change notification settings - Fork 212
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
Voyager verification support #3093
base: master
Are you sure you want to change the base?
Conversation
fc33b1f
to
1ad6a90
Compare
1ad6a90
to
12da548
Compare
### Voyager | ||
|
||
[Voyager](https://voyager.online/) is the Starknet block explorer. | ||
|
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.
Shouldn't we mention possibility of setting VOYAGER_API_URL
(same for walnut btw)?
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 was mimicking walnut here, but since both aren't mentioned anywhere right now, perhaps we should name it something like VERIFIER_API_URL
for both?
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.
Correct me if I'm wrong, but this will enforce to update the env every time you want to use different verifier? I know it may be a rare case, but theoretically that's how it would look.
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 not sure what you mean here.
I think the users would select verifier using command line arguments. I suspect the env variable was added for easier testing and targeting local verifiers, so it's kind of like a developer mode.
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 not sure what you mean here.
I mean that if there will be VERIFIER_API_URL
(shared between both verifiers), you'll have to change it every time you change verifier.
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.
but change verifier in what sense? Users change verifier through command line argument, the env variable is left unset almost all the time.
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.
but change verifier in what sense?
Let's say you use walnut and you've set VERIFIER_API_URL
to walnut one. Then you switch to voyager, hence you need to change the env again (because env is shared). I know it may be a rare case. Wdyt?
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 know it may be a rare case. Wdyt?
Yes it's rare, because (as a sncast
user) in order to use walnut you don't set any env variable. You pass --verifier walnut
.
The env variable acts as an override so a developer (either walnut, voyager or foundry dev) could target non production instance. IMHO then having single env var makes more sense, but it's not a hill I'm willing to die on ;)
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.
Sure, I'm leaving this 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.
This will submit the contract for verification successfully, but the verification itself will fail as we need to release backend changes for supporting this. Those are in review right now.
-
Can you link this issue/pr?
-
Please add entry there - docs/src/appendix/sncast/verify.md
349c9e2
to
d6d3cef
Compare
@jkopanski Is it ready to re-review? |
This is stolen from scarb-doc example at: https://github.com/software-mansion/scarb/tree/main/extensions/scarb-doc
Co-authored-by: kkawula <[email protected]>
Co-authored-by: kkawula <[email protected]>
eb9bb11
to
df4b5d7
Compare
Closes #2287
This will submit the contract for verification successfully, but the verification itself will fail as we need to release backend changes for supporting this. Those are in review right now.
Introduced changes
verifier
argument parameter:voyager
to verify using Voyager block explorerChecklist
CHANGELOG.md