-
Notifications
You must be signed in to change notification settings - Fork 44
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 contest bot webhook #10529
base: master
Are you sure you want to change the base?
Add contest bot webhook #10529
Conversation
|
||
// This webhook processes the "cast.created" event | ||
// triggered when the contest bot is mentioned on farcaster | ||
export function FarcasterContestBotMentionedWebhook(): Command< |
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.
Commands should be using imperative names describing the action, for consistency. In this case we are relaying Neynar events to the Outbox... so, we should probably start a convention here like RelayFarcasterContestBotMentioned
or something similar that's easy to find when looking for all relays
Link to Issue
Closes: #10375
Closes: #10628
Description of Changes
Test Plan
ContestBotMentioned (YourName)
<your ngrok domain>/api/integration/farcaster/CastUpvoteAction
948630
Set envs:
NEYNAR_BOT_UUID
(from Neynar, CW Local app)NEYNAR_CONTEST_BOT_MENTIONED_WEBHOOK_SECRET
(from Neynar, CW Local app)CONTEST_BOT_NAMESPACE
(namespace must be created by bot wallet)CONTEST_BOT_PRIVATE_KEY
(same as thePRIVATE_KEY
)On warpcast, post cast to commondemo bot:
hey @commondemo create a contest with the token 0x429ae85883f82203D736e8fc203A455990745ca1 with 25% of prize amount allocated to voters and a third to each of three winners. The contest title is “new contest 123”. Use the following image https://placehold.co/600x400/EEE/31343C
Wait a few second for a reply– confirm that it's a contest frame posted by the bot
Deployment Plan
Set envs:
NEYNAR_BOT_UUID
NEYNAR_CONTEST_BOT_MENTIONED_WEBHOOK_SECRET
CONTEST_BOT_NAMESPACE
CONTEST_BOT_PRIVATE_KEY
Other Considerations
N/A