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

CoW: add config zk-drop-apps #211

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 104 additions & 1 deletion space-configs/demo/cow-swap.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// 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";
import { Network } from "@/src/libs/contracts/networks";

export default {
metadata: {
name: "Cow Swap",
name: "CoW Swap",
description:
"This Space is dedicated to Cow Swap, a DEX aggregator. Cow Traders and Holders will get access to gifts and premium features.",
image: "space_cow_swap_pfp_500x500.png",
Expand Down Expand Up @@ -137,5 +138,107 @@ export default {
},
},
},
{
type: "zkDrop",
metadata: {
name: "Astronaut CoW NFT",
slug: "zk-drop-astronaut",
description: "Prove you are a Golden Trader or Holder to claim your Astronaut CoW NFT.",
tags: ["NT-NFT"],
image: "cow_app_store_zkdrop_astronaut_500x500.png",
createdAt: new Date("2023-07-12T10:00"),
isTransferable: false,
},
sismoConnectRequest: {
appId: "0x90e7e9cee2de45bd484985e63f69b946",
authRequests: [{ authType: AuthType.VAULT }],
claimRequests: [{ groupId: "0x70c30e9a9abdb5fd41ba9e9cb7f50173", value: 3 },],
impersonateAddresses: ["0x7fee439ed7a6bb1b8e7ca1ffdb0a5ca8d993c030"],
},
templateConfig: {
nftMetadata: {
name: "Astronaut CoW NFT",
description: "Claimable by users that have held ≥ 56.8k COW on July 1, 2023 or swapped ≥ 37 times on CoW Swap between January 1, 2023 and July 1, 2023.",
image: "nft_cow_astronaut_1000x1000.png",
symbol: "GoldenCoWNFT",
},
chains: [
{
contractAddress: "0xA8b0D38E909798C7c2C9eCF5cDA3476e8C7EC410",
name: "mumbai",
relayerEnabled: true,
},
],
step2CtaText: "Claim your Astronaut CoW NFT",
},
},
{
type: "zkDrop",
metadata: {
name: "Moon Calf CoW NFT",
slug: "zk-drop-moon-calf",
description: "Prove you are a Silver Trader or Holder to claim your Moon Calf CoW NFT.",
tags: ["NT-NFT"],
image: "cow_app_store_zkdrop_moon_calf_500x500.png",
createdAt: new Date("2023-07-12T10:00"),
isTransferable: false,
},
sismoConnectRequest: {
appId: "0x436fac93e62ef34f5b9867391f36ce4f",
authRequests: [{ authType: AuthType.VAULT }],
claimRequests: [{ groupId: "0x70c30e9a9abdb5fd41ba9e9cb7f50173", value: 2 },],
impersonateAddresses: ["0x7fee439ed7a6bb1b8e7ca1ffdb0a5ca8d993c030"],
},
templateConfig: {
nftMetadata: {
name: "Moon Calf CoW NFT",
description: "Claimable by users that have held ≥ 26.5k COW on July 1, 2023 or swapped ≥ 6 times on CoW Swap between January 1, 2023 and July 1, 2023.",
image: "nft_cow_moon_calf_1000x1000.png",
symbol: "SilverCoWNFT",
},
chains: [
{
contractAddress: "",
name: "mumbai",
relayerEnabled: true,
},
],
step2CtaText: "Claim your Moon Calf CoW NFT",
},
},
{
type: "zkDrop",
metadata: {
name: "Meadow CoW NFT",
slug: "zk-drop-meadow",
description: "Prove you are a Bronze Trader or Holder to claim your Meadow CoW NFT.",
tags: ["NT-NFT"],
image: "cow_app_store_zkdrop_meadow_500x500.png",
createdAt: new Date("2023-07-12T10:00"),
isTransferable: false,
},
sismoConnectRequest: {
appId: "0xd9f2e3f04273addd0c72e2a9f59cc37e",
authRequests: [{ authType: AuthType.VAULT }],
claimRequests: [{ groupId: "0x70c30e9a9abdb5fd41ba9e9cb7f50173", value: 1 },],
impersonateAddresses: ["0x7fee439ed7a6bb1b8e7ca1ffdb0a5ca8d993c030"],
},
templateConfig: {
nftMetadata: {
name: "Meadow CoW NFT",
description: "Claimable by users that have held ≥ 2k COW on July 1, 2023 or swapped ≥ 2 times on CoW Swap between January 1, 2023 and July 1, 2023.",
image: "nft_cow_meadow_1000x1000.png",
symbol: "BronzeCoWNFT",
},
chains: [
{
contractAddress: "",
name: "mumbai",
relayerEnabled: true,
},
],
step2CtaText: "Claim your Meadow CoW NFT",
},
},
],
} as SpaceConfig;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/nft_cow_meadow_1000x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
100 changes: 100 additions & 0 deletions space-configs/main/cow-swap.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// 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";
import { Network } from "@/src/libs/contracts/networks";

export default {
metadata: {
Expand Down Expand Up @@ -138,5 +139,104 @@ export default {
endDate: new Date("2023-07-19T18:00Z"),
},
},
{
type: "zkDrop",
metadata: {
name: "Astronaut CoW NFT",
slug: "zk-drop-astronaut",
description: "Prove you are a Golden Trader or Holder to claim your Astronaut CoW NFT.",
tags: ["NT-NFT"],
image: "cow_app_store_zkdrop_astronaut_500x500.png",
createdAt: new Date("2023-07-12T10:00"),
isTransferable: false,
},
sismoConnectRequest: {
appId: "0x90e7e9cee2de45bd484985e63f69b946",
authRequests: [{ authType: AuthType.VAULT }],
claimRequests: [{ groupId: "0x70c30e9a9abdb5fd41ba9e9cb7f50173", value: 3 },],
},
templateConfig: {
nftMetadata: {
name: "Astronaut CoW NFT",
description: "Claimable by users that have held ≥ 56.8k COW on July 1, 2023 or swapped ≥ 37 times on CoW Swap between January 1, 2023 and July 1, 2023.",
image: "nft_cow_astronaut_1000x1000.png",
symbol: "GoldenCoWNFT",
},
chains: [
{
contractAddress: "",
name: "gnosis",
relayerEnabled: true,
},
],
step2CtaText: "Claim your Astronaut CoW NFT",
},
},
{
type: "zkDrop",
metadata: {
name: "Moon Calf CoW NFT",
slug: "zk-drop-moon-calf",
description: "Prove you are a Silver Trader or Holder to claim your Moon Calf CoW NFT.",
tags: ["NT-NFT"],
image: "cow_app_store_zkdrop_moon_calf_500x500.png",
createdAt: new Date("2023-07-12T10:00"),
isTransferable: false,
},
sismoConnectRequest: {
appId: "0x436fac93e62ef34f5b9867391f36ce4f",
authRequests: [{ authType: AuthType.VAULT }],
claimRequests: [{ groupId: "0x70c30e9a9abdb5fd41ba9e9cb7f50173", value: 2 },],
},
templateConfig: {
nftMetadata: {
name: "Moon Calf CoW NFT",
description: "Claimable by users that have held ≥ 26.5k COW on July 1, 2023 or swapped ≥ 6 times on CoW Swap between January 1, 2023 and July 1, 2023.",
image: "nft_cow_moon_calf_1000x1000.png",
symbol: "SilverCoWNFT",
},
chains: [
{
contractAddress: "",
name: "gnosis",
relayerEnabled: true,
},
],
step2CtaText: "Claim your Moon Calf CoW NFT",
},
},
{
type: "zkDrop",
metadata: {
name: "Meadow CoW NFT",
slug: "zk-drop-meadow",
description: "Prove you are a Bronze Trader or Holder to claim your Meadow CoW NFT.",
tags: ["NT-NFT"],
image: "cow_app_store_zkdrop_meadow_500x500.png",
createdAt: new Date("2023-07-12T10:00"),
isTransferable: false,
},
sismoConnectRequest: {
appId: "0xd9f2e3f04273addd0c72e2a9f59cc37e",
authRequests: [{ authType: AuthType.VAULT }],
claimRequests: [{ groupId: "0x70c30e9a9abdb5fd41ba9e9cb7f50173", value: 1 },],
},
templateConfig: {
nftMetadata: {
name: "Meadow CoW NFT",
description: "Claimable by users that have held ≥ 2k COW on July 1, 2023 or swapped ≥ 2 times on CoW Swap between January 1, 2023 and July 1, 2023.",
image: "nft_cow_meadow_1000x1000.png",
symbol: "BronzeCoWNFT",
},
chains: [
{
contractAddress: "",
name: "gnosis",
relayerEnabled: true,
},
],
step2CtaText: "Claim your Meadow CoW NFT",
},
},
],
} as SpaceConfig;