Skip to content

Commit

Permalink
cow: add configs zkdrop-apps
Browse files Browse the repository at this point in the history
  • Loading branch information
ZKentin committed Jul 12, 2023
1 parent d5f83e4 commit 7d3c660
Show file tree
Hide file tree
Showing 10 changed files with 155 additions and 22 deletions.
90 changes: 79 additions & 11 deletions space-configs/demo/cow-swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,26 +141,26 @@ export default {
{
type: "zkDrop",
metadata: {
name: "Golden Cow Trader NFT",
slug: "zk-drop-golden-trader",
description: "Prove you have swapped ≥ 37 times on CoW to claim your Golden CoW Trader NFT.",
name: "Astronaut CoW NFT",
slug: "zk-drop-astronaut",
description: "Prove you are a Golden Trader or Holder to claim your Astronaut CoW NFT.",
tags: ["NFT"],
image: "cow_app_store_zkdrop_golden_trader_500x500.png",
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: "0x34dba00caed5fbe69db7313adebf1eaf", value: 3 },],
impersonateAddresses: ["0x32ae635f5136adb181a442cc890be39263bc13c8"],
claimRequests: [{ groupId: "0x70c30e9a9abdb5fd41ba9e9cb7f50173", value: 3 },],
impersonateAddresses: ["0x7fee439ed7a6bb1b8e7ca1ffdb0a5ca8d993c030"],
},
templateConfig: {
nftMetadata: {
name: "Golden Cow Trader NFT",
description: "Claimable by users that have swapped ≥ 37 times on CoW between January 1, 2023 and July 1, 2023.",
image: "nft_cow_golden_trader_1000x1000.png",
symbol: "GCoWTraderNFT",
name: "Astronaut CoW NFT",
description: "Claimable by users that have held ≥ 56.8k COW on July 1, 2023 or swapped ≥ 37 times on CoW between January 1, 2023 and July 1, 2023.",
image: "nft_cow_astronaut_1000x1000.png",
symbol: "GoldenCoWNFT",
},
chains: [
{
Expand All @@ -169,7 +169,75 @@ export default {
relayerEnabled: true,
},
],
step2CtaText: "Claim your Golden Cow Trader NFT",
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: ["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 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: ["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 between January 1, 2023 and July 1, 2023.",
image: "nft_cow_bronze_1000x1000.png",
symbol: "BronzeCoWNFT",
},
chains: [
{
contractAddress: "",
name: "mumbai",
relayerEnabled: true,
},
],
step2CtaText: "Claim your Meadow Cow NFT",
},
},
],
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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 not shown.
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.
87 changes: 76 additions & 11 deletions space-configs/main/cow-swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,26 +142,25 @@ export default {
{
type: "zkDrop",
metadata: {
name: "Golden Cow Trader NFT",
slug: "zk-drop-golden-trader",
description: "Prove you have swapped ≥ 37 times on CoW to claim your Golden CoW Trader NFT.",
name: "Astronaut CoW NFT",
slug: "zk-drop-astronaut",
description: "Prove you are a Golden Trader or Holder to claim your Astronaut CoW NFT.",
tags: ["NFT"],
image: "cow_app_store_zkdrop_golden_trader_500x500.png",
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: "0x34dba00caed5fbe69db7313adebf1eaf", value: 3 },],
impersonateAddresses: ["0x32ae635f5136adb181a442cc890be39263bc13c8"],
claimRequests: [{ groupId: "0x70c30e9a9abdb5fd41ba9e9cb7f50173", value: 3 },],
},
templateConfig: {
nftMetadata: {
name: "Golden Cow Trader NFT",
description: "Claimable by users that have swapped ≥ 37 times on CoW between January 1, 2023 and July 1, 2023.",
image: "nft_cow_golden_trader_1000x1000.png",
symbol: "GCoWTraderNFT",
name: "Astronaut CoW NFT",
description: "Claimable by users that have held ≥ 56.8k COW on July 1, 2023 or swapped ≥ 37 times on CoW between January 1, 2023 and July 1, 2023.",
image: "nft_cow_astronaut_1000x1000.png",
symbol: "GoldenCoWNFT",
},
chains: [
{
Expand All @@ -170,7 +169,73 @@ export default {
relayerEnabled: true,
},
],
step2CtaText: "Claim your Golden Cow Trader NFT",
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: ["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 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: ["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 between January 1, 2023 and July 1, 2023.",
image: "nft_cow_bronze_1000x1000.png",
symbol: "BronzeCoWNFT",
},
chains: [
{
contractAddress: "",
name: "gnosis",
relayerEnabled: true,
},
],
step2CtaText: "Claim your Meadow Cow NFT",
},
},
],
Expand Down

0 comments on commit 7d3c660

Please sign in to comment.