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

Add support for Gatekeeper Guard #15

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

TYRONEMICHAEL
Copy link

Hey @MarkSackerberg ,

Thanks for all the work on this. I am creating a PR that adds support for the Gatekeeper Guard. Let me know if you need anything from me?

Copy link

vercel bot commented Jan 16, 2024

Someone is attempting to deploy a commit to a Personal Account owned by @MarkSackerberg on Vercel.

@MarkSackerberg first needs to authorize it.

@MarkSackerberg
Copy link
Owner

Hey @TYRONEMICHAEL ,
thank you for the PR!
I've given it a devnet testrun with this gatekeeper config:

 "gatekeeper": {
    "gatekeeperNetwork": "ignREusXmGrscGNUesoU9mxfds9AiYTezUKex2PsZV6",
    "expireOnUse": false
}

Unfortunately the mint fails with:
Program logged: "AnchorError { error_name: "GatewayTokenInvalid", error_code_number: 6023, error_msg: "Gateway token is not valid", error_origin: Some(Source(Source { filename: "program/src/guards/gatekeeper.rs", line: 63 })), compared_values: None }, Candy Guard Botting is taxed at 10000000 lamports"

I assume this is not expected behaviour?
Which config did you use for testing?

@TYRONEMICHAEL
Copy link
Author

Hey @TYRONEMICHAEL , thank you for the PR! I've given it a devnet testrun with this gatekeeper config:

 "gatekeeper": {
    "gatekeeperNetwork": "ignREusXmGrscGNUesoU9mxfds9AiYTezUKex2PsZV6",
    "expireOnUse": false
}

Unfortunately the mint fails with: Program logged: "AnchorError { error_name: "GatewayTokenInvalid", error_code_number: 6023, error_msg: "Gateway token is not valid", error_origin: Some(Source(Source { filename: "program/src/guards/gatekeeper.rs", line: 63 })), compared_values: None }, Candy Guard Botting is taxed at 10000000 lamports"

I assume this is not expected behaviour? Which config did you use for testing?

Hey @MarkSackerberg,

I will look into this today. The only difference I see immediately is that my config was set to "expireOnUse": true. Did you go through the captcha flow before signing the mint TX? i.e did you have to sign twice, once for the GT token, and second for the Mint?

@MarkSackerberg
Copy link
Owner

No, I just had to sign the mint TX.

@TYRONEMICHAEL
Copy link
Author

TYRONEMICHAEL commented Jan 19, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants