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

ref: remove some endpoints from previous quests #83

Merged
merged 2 commits into from
Sep 29, 2023
Merged
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
4 changes: 2 additions & 2 deletions src/endpoints/quests/avnu/claimable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ use starknet::{
use std::sync::Arc;

const QUEST_ID: u32 = 3;
const TASK_IDS: &[u32] = &[12, 13, 14, 15];
const LAST_TASK: u32 = TASK_IDS[3];
const TASK_IDS: &[u32] = &[12, 13, 15];
const LAST_TASK: u32 = TASK_IDS[2];
const NFT_LEVEL: u32 = 6;

#[derive(Deserialize)]
Expand Down
1 change: 0 additions & 1 deletion src/endpoints/quests/avnu/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
pub mod claimable;
pub mod discord_fw_callback;
pub mod verify_swap;
pub mod verify_twitter_fw;
pub mod verify_twitter_rt;
24 changes: 0 additions & 24 deletions src/endpoints/quests/avnu/verify_twitter_fw.rs

This file was deleted.

4 changes: 2 additions & 2 deletions src/endpoints/quests/jediswap/claimable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ use starknet::{
use std::sync::Arc;

const QUEST_ID: u32 = 2;
const TASK_IDS: &[u32] = &[8, 9, 10, 11];
const LAST_TASK: u32 = TASK_IDS[3];
const TASK_IDS: &[u32] = &[9, 10, 11];
const LAST_TASK: u32 = TASK_IDS[2];
const NFT_LEVEL: u32 = 5;

#[derive(Deserialize)]
Expand Down
1 change: 0 additions & 1 deletion src/endpoints/quests/jediswap/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
pub mod claimable;
pub mod verify_added_liquidity;
pub mod verify_has_root_domain;
pub mod verify_twitter_fw;
pub mod verify_twitter_rt;
16 changes: 0 additions & 16 deletions src/endpoints/quests/jediswap/verify_has_root_domain.rs

This file was deleted.

4 changes: 2 additions & 2 deletions src/endpoints/quests/sithswap/claimable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ use starknet::{
use std::sync::Arc;

const QUEST_ID: u32 = 5;
const TASK_IDS: &[u32] = &[19, 20, 21, 22];
const LAST_TASK: u32 = TASK_IDS[3];
const TASK_IDS: &[u32] = &[20, 21, 22];
const LAST_TASK: u32 = TASK_IDS[2];
const NFT_LEVEL: u32 = 7;

#[derive(Deserialize)]
Expand Down
1 change: 0 additions & 1 deletion src/endpoints/quests/sithswap/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
pub mod claimable;
pub mod verify_added_liquidity;
pub mod verify_has_root_domain;
pub mod verify_twitter_fw;
pub mod verify_twitter_rt;
16 changes: 0 additions & 16 deletions src/endpoints/quests/sithswap/verify_has_root_domain.rs

This file was deleted.

4 changes: 2 additions & 2 deletions src/endpoints/quests/zklend/claimable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ use starknet::{
use std::sync::Arc;

const QUEST_ID: u32 = 6;
const TASK_IDS: &[u32] = &[23, 24, 26, 27];
const LAST_TASK: u32 = TASK_IDS[3];
const TASK_IDS: &[u32] = &[24, 26, 27];
const LAST_TASK: u32 = TASK_IDS[2];
const NFT_LEVEL: u32 = 8;

#[derive(Deserialize)]
Expand Down
1 change: 0 additions & 1 deletion src/endpoints/quests/zklend/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
pub mod claimable;
pub mod verify_borrow;
pub mod verify_has_root_domain;
pub mod verify_twitter_fw;
pub mod verify_twitter_rt;
16 changes: 0 additions & 16 deletions src/endpoints/quests/zklend/verify_has_root_domain.rs

This file was deleted.

16 changes: 0 additions & 16 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ async fn main() {
"/quests/starknetid/verify_socials",
get(endpoints::quests::starknetid::verify_socials::handler),
)
.route(
"/quests/jediswap/verify_has_root_domain",
get(endpoints::quests::jediswap::verify_has_root_domain::handler),
)
.route(
"/quests/jediswap/verify_added_liquidity",
get(endpoints::quests::jediswap::verify_added_liquidity::handler),
Expand All @@ -119,10 +115,6 @@ async fn main() {
"/quests/jediswap/claimable",
get(endpoints::quests::jediswap::claimable::handler),
)
.route(
"/quests/zklend/verify_has_root_domain",
get(endpoints::quests::zklend::verify_has_root_domain::handler),
)
.route(
"/quests/zklend/verify_borrow",
get(endpoints::quests::zklend::verify_borrow::handler),
Expand All @@ -139,10 +131,6 @@ async fn main() {
"/quests/zklend/claimable",
get(endpoints::quests::zklend::claimable::handler),
)
.route(
"/quests/avnu/verify_twitter_fw",
get(endpoints::quests::avnu::verify_twitter_fw::handler),
)
.route(
"/quests/avnu/verify_twitter_rt",
get(endpoints::quests::avnu::verify_twitter_rt::handler),
Expand Down Expand Up @@ -175,10 +163,6 @@ async fn main() {
"/quests/tribe/claimable",
get(endpoints::quests::tribe::claimable::handler),
)
.route(
"/quests/sithswap/verify_has_root_domain",
get(endpoints::quests::sithswap::verify_has_root_domain::handler),
)
.route(
"/quests/sithswap/verify_twitter_fw",
get(endpoints::quests::sithswap::verify_twitter_fw::handler),
Expand Down