-
Notifications
You must be signed in to change notification settings - Fork 30
/
aave-chan-initiative.ts
118 lines (117 loc) · 3.86 KB
/
aave-chan-initiative.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// add an images folder in your space folder if you would like Sismo to host your images
import { AuthType } from "@sismo-core/sismo-connect-server";
import { SpaceConfig } from "../types";
export default {
metadata: {
name: "Aave-Chan Initiative",
description:
"This Space is dedicated to the Aave-Chan Initiative (ACI - Aavechan.eth), a delegate platform. Aave users that delegated their governance power to ACI will get access to gifts and premium features.",
image: "space_aave_chan_initiative_pfp_400x400.png",
socialLinks: [
{
type: "twitter",
link: "https://twitter.com/AaveChan",
},
],
},
apps: [
{
type: "zkForm",
metadata: {
slug: "aci-swag",
name: "ACI Chads Swag Claim",
description:
"Enter your delivery address to claim your Aave-Chan Initiative Chads Swag - without doxxing your wallet 👀 Don't forget to share all your levels to get more swags!",
tags: ["Swag"],
image: "aave_chan_initiative_apps_swag_1014x720.png",
createdAt: new Date("2022-07-01T00:00:00.000Z"),
},
sismoConnectRequest: {
appId: "0x02bcb449a6bd1062017cf0315375afdf",
authRequests: [{ authType: AuthType.VAULT }],
claimRequests: [
{
groupId: "0xf0285dcfe412b24a6ac9a1c365b7b35d",
value: 50,
},
{
groupId: "0xf0285dcfe412b24a6ac9a1c365b7b35d",
isOptional: true,
value: 250,
},
{
groupId: "0xf0285dcfe412b24a6ac9a1c365b7b35d",
isOptional: true,
value: 1000,
},
],
impersonateAddresses: ["0x5af25164a0f1207db70727a2c447d6a7b44b89d0", "0x8ab1760889F26cBbf33A75FD2cF1696BFccDc9e6", "dhadrien.sismo.eth", "0xA4C94A6091545e40fc9c3E0982AEc8942E282F38", "0x1b9424ed517f7700e7368e34a9743295a225d889", "0x82fbed074f62386ed43bb816f748e8817bf46ff7", "0xc281bd4db5bf94f02a8525dca954db3895685700", "telegram:dhadrien:1234", "github:dhadrien", "twitter:dhadrien_:2390703980"]
},
templateConfig: {
step2CtaText: "Claim your Swag",
fields: [
{
type: "short-text",
label: "Email",
isRequired: true,
},
{
type: "short-text",
label: "Full name",
placeholder: "P.O Box ok",
isRequired: true,
},
{
type: "short-text",
label: "Street address",
placeholder: "P.O Box ok",
isRequired: true,
},
{
type: "short-text",
label: "City",
isRequired: true,
},
{
type: "short-text",
label: "ZIP code",
isRequired: true,
},
{
type: "short-text",
label: "Country",
isRequired: true,
},
{
type: "short-text",
label: "(Optional) Drop here if you have a weird address",
placeholder: "",
isRequired: false,
},
{
type: "short-text",
label: "(Optional) T-shirt size - only if >= 250 tokens delegated",
placeholder: "XS/S/M/L/XL (EU Sizes)",
helperText: "If you're US, take one Size above your usual one",
isRequired: false,
},
],
congratulationsMessage: {
title: "Congratulations!",
description: "You will receive your exclusive ACI Chads Swag soon 💜",
},
output: {
destination: {
type: "google_sheet",
spreadsheetId: "1XeoiYJjibDi51Ogch5eZTUFRp-SqZ0w2q1Cozs4nqPA",
},
saveAuths: true,
saveClaims: true,
},
},
options: {
isFeatured: true,
},
},
],
} as SpaceConfig;