Skip to content

Commit

Permalink
feat: Warpcast invite app PR (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
kugusha authored Jul 22, 2023
1 parent e7e4788 commit b64e200
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
Binary file added space-configs/images/farcaster_space_pfp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added space-configs/images/warpcaster_invite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
77 changes: 77 additions & 0 deletions space-configs/main/farcaster_space.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
import { SpaceConfig } from "../types";
import { AuthType } from "@sismo-core/sismo-connect-server";

// UPDATE HERE ↓↓↓
export default {
metadata: {
name: "Farcaster protocol", // UPDATE HERE
description:
"Space dedicated to Farcaster protocol.", // UPDATE HERE
image: "farcaster_space_pfp.png", // UPDATE HERE
socialLinks: [
{
type: "link",
link: "https://www.farcaster.xyz/", // UPDATE HERE
},
],
},
apps: [
{
// NO UPDATE. Template type
type: "zkForm",
// UPDATE. App information
metadata: {
name: "Warpcast invite for EthCC[6] Attendees", // UPDATE. Your app name
slug: "warpcast-invite", // UPDATE. Your app name in the form of a slug (no spaces allowed). It will be the last part in the URL, eg: apps.sismo.io/sismo/swag-lottery
description:
"Prove you have attended EthCC[6] and claim your Warpcast invite.", // UPDATE. The description is used for SEO and social media preview of your app
image: "warpcaster_invite.png", // UPDATE. Image for your app, to be placed in the images folder
tags: ["warpcast"], // UPDATE. Add one or two tags to describe your app
createdAt: new Date("2022-07-22T00:00:00.000Z"), // UPDATE. Edit the date here to today's date YYYY-MM-DD
// lastUpdateAt: new Date("2022-07-01T00:00:00.000Z"), // UPDATE OR REMOVE. Edit the date here to last update date YYYY-MM-DD
},
// UPDATE. Sismo Connect request, see "Cheatsheet: Build Your Sismo Connect Request"
sismoConnectRequest: {
appId: "0x18aefc6c64fd2be0f4cb4cc0d16c9792", // NO UPDATE. Sismo Connect appId is automatically created based on your app metadata
authRequests: [{ authType: AuthType.VAULT }], // UPDATE OR REMOVE. Select auth
claimRequests: [{ groupId: "0x3a027cf4f8a0c300a3ba1592caa2cb08" }], // UPDATE OR REMOVE. Select group
},
// UPDATE. Config for zkForm
templateConfig: {
step1CtaText: "Sign in with Sismo", // UPDATE OR REMOVE. 1st step text when users click on the app, "Sign in with Sismo" by default
step2CtaText: "Get your Warpcast invite", // UPDATE. 2nd step button text, on submitting the form
appDescription: "Prove that you hold EthCC[6] Attendees POAP, share your email and receive an invite to Warpcast.", // UPDATE OR REMOVE. Description for your app
// UPDATE OR REMOVE. Form fields
fields: [
{
type: "short-text", // NO UPDATE. Your field type
label: "Email", // UPDATE. Your field name
placeholder: "The invite will be sent to you via email.", // UPDATE OR REMOVE. Your helper text
isRequired: true, // UPDATE OR REMOVE. Field required or not, true by default
},
],
// UPDATE OR REMOVE. Success form message
congratulationsMessage: {
title: "Congrats!", // UPDATE. Your title
description: "Your invite will be sent to you via email shortly 💜 ", // UPDATE. Your message
},
// UPDATE OR REMOVE. User selection
// userSelection: { type: "Lottery", maxNumberOfEntries: 10, numberOfWinners: 10 }, // UPDATE. Your type: "Lottery" or "FCFS". If "FCFS", only use parameter "maxNumberOfUsers". See Parameters explanation below.
// UPDATE. Data storage
output: {
destination: {
type: "google_sheet", // NO UPDATE.
spreadsheetId: "1Jl_pdYjOlGie8mqLVpRMpY3JDHVEPYKBaP9qOHCcoK0", // UPDATE. See "Add your App in the Sismo App Store"
},
// saveAuths: true, // UPDATE OR REMOVE. Save Auths outputs in spreadsheet
// saveClaims: true, // UPDATE OR REMOVE. Save Claims outputs in spreadsheet
},
},
// UPDATE OR REMOVE. App dates
options: {
// startDate: new Date("2023-05-12T18:00"), // UPDATE OR REMOVE. Your start date YYYY-MM-DD
endDate: new Date("2023-08-22T18:00"), // UPDATE OR REMOVE. Your end date YYYY-MM-DD
},
},
],
} as SpaceConfig;

2 comments on commit b64e200

@vercel
Copy link

@vercel vercel bot commented on b64e200 Jul 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on b64e200 Jul 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.