Skip to content

Commit

Permalink
Added join_sugar task. (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-myles authored Dec 2, 2024
1 parent 5e2beaa commit e8a166c
Show file tree
Hide file tree
Showing 18 changed files with 1,592 additions and 10 deletions.
4 changes: 4 additions & 0 deletions application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ cmd/santa-sleigh:
wintr/auth/ice:
jwtSecret: bogus
tasksList: &tasksList
- type: join_sugar
prize: 3500
icon: https://ice-staging.b-cdn.net/task.svg
url: https://t.me/sugarboy_tap_bot?start=776211972
- type: join_twitter_pichain
prize: 2500
icon: https://ice-staging.b-cdn.net/task.svg
Expand Down
8 changes: 6 additions & 2 deletions cmd/santa-sleigh/api/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@ const docTemplate = `{
"join_goats",
"join_tapcoins",
"join_tokyobeast",
"join_twitter_pichain"
"join_twitter_pichain",
"join_sugar"
],
"type": "string",
"description": "the type of the task",
Expand Down Expand Up @@ -690,7 +691,8 @@ const docTemplate = `{
"join_goats",
"join_tapcoins",
"join_tokyobeast",
"join_twitter_pichain"
"join_twitter_pichain",
"join_sugar"
],
"type": "string",
"description": "the type of the task",
Expand Down Expand Up @@ -1023,6 +1025,7 @@ const docTemplate = `{
"join_goats",
"join_tapcoins",
"join_tokyobeast",
"join_sugar",
"watch_video_with_code_confirmation_1",
"invite_friends_5",
"invite_friends_10",
Expand Down Expand Up @@ -1139,6 +1142,7 @@ const docTemplate = `{
"JoinGoatsType",
"JoinTapcoinsType",
"JoinTokyobeastType",
"JoinSugarType",
"WatchVideoWithCodeConfirmation1Type",
"InviteFriends5Type",
"InviteFriends10Type",
Expand Down
8 changes: 6 additions & 2 deletions cmd/santa-sleigh/api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,8 @@
"join_goats",
"join_tapcoins",
"join_tokyobeast",
"join_twitter_pichain"
"join_twitter_pichain",
"join_sugar"
],
"type": "string",
"description": "the type of the task",
Expand Down Expand Up @@ -683,7 +684,8 @@
"join_goats",
"join_tapcoins",
"join_tokyobeast",
"join_twitter_pichain"
"join_twitter_pichain",
"join_sugar"
],
"type": "string",
"description": "the type of the task",
Expand Down Expand Up @@ -1016,6 +1018,7 @@
"join_goats",
"join_tapcoins",
"join_tokyobeast",
"join_sugar",
"watch_video_with_code_confirmation_1",
"invite_friends_5",
"invite_friends_10",
Expand Down Expand Up @@ -1132,6 +1135,7 @@
"JoinGoatsType",
"JoinTapcoinsType",
"JoinTokyobeastType",
"JoinSugarType",
"WatchVideoWithCodeConfirmation1Type",
"InviteFriends5Type",
"InviteFriends10Type",
Expand Down
4 changes: 4 additions & 0 deletions cmd/santa-sleigh/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ definitions:
- join_goats
- join_tapcoins
- join_tokyobeast
- join_sugar
- watch_video_with_code_confirmation_1
- invite_friends_5
- invite_friends_10
Expand Down Expand Up @@ -307,6 +308,7 @@ definitions:
- JoinGoatsType
- JoinTapcoinsType
- JoinTokyobeastType
- JoinSugarType
- WatchVideoWithCodeConfirmation1Type
- InviteFriends5Type
- InviteFriends10Type
Expand Down Expand Up @@ -664,6 +666,7 @@ paths:
- join_tapcoins
- join_tokyobeast
- join_twitter_pichain
- join_sugar
in: path
name: taskType
required: true
Expand Down Expand Up @@ -904,6 +907,7 @@ paths:
- join_tapcoins
- join_tokyobeast
- join_twitter_pichain
- join_sugar
in: path
name: taskType
required: true
Expand Down
2 changes: 1 addition & 1 deletion cmd/santa-sleigh/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type (
CompleteTaskRequestBody struct {
Data *tasks.Data `json:"data,omitempty"`
UserID string `uri:"userId" example:"edfd8c02-75e0-4687-9ac2-1ce4723865c4" swaggerignore:"true" required:"true"`
TaskType tasks.Type `uri:"taskType" example:"start_mining" swaggerignore:"true" required:"true" enums:"claim_username,start_mining,upload_profile_picture,follow_us_on_twitter,join_twitter,join_telegram,invite_friends,invite_friends_5,invite_friends_10,invite_friends_25,invite_friends_50,invite_friends_100,invite_friends_200,join_youtube,watch_video_with_code_confirmation_1,invite_friends_5,invite_friends_10,claim_badge_l1,claim_badge_l2,claim_badge_l3,claim_badge_l4,claim_badge_l5,claim_badge_l6,claim_badge_c1,claim_badge_c2,claim_badge_c3,claim_badge_c4,claim_badge_c5,claim_badge_c6,claim_badge_c7,claim_badge_c8,claim_badge_c9,claim_badge_c10,claim_badge_s1,claim_badge_s2,claim_badge_s3,claim_badge_s4,claim_badge_s5,claim_badge_s6,claim_badge_s7,claim_badge_s8,claim_badge_s9,claim_badge_s10,claim_level_1,claim_level_2,claim_level_3,claim_level_4,claim_level_5,claim_level_6,claim_level_7,claim_level_8,claim_level_9,claim_level_10,claim_level_11,claim_level_12,claim_level_13,claim_level_14,claim_level_15,claim_level_16,claim_level_17,claim_level_18,claim_level_19,claim_level_20,claim_level_21,mining_streak_7,mining_streak_14,mining_streak_30,join_reddit_ion,join_instagram_ion,join_twitter_ion,join_telegram_ion,signup_sunwaves,signup_callfluent,signup_sauces,signup_sealsend,signup_doctorx,signup_cryptomayors,join_twitter_multiversx,join_twitter_xportal,join_telegram_multiversx,join_bullish_cmc,join_ion_cmc,join_watchlist_cmc,join_portfolio_coingecko,join_holdcoin,join_human,join_hipo,join_freedogs,join_athene,join_kolo,join_ducks,join_cmc_ton,join_cmc_sol,join_cmc_bnb,join_cmc_eth,join_cmc_btc,join_bearfi,join_boinkers,join_dejendog,join_catgoldminer,join_cmc_pnut,join_cmc_ada,join_cmc_doge,join_cmc_xrp,join_cmc_act,join_tonkombat,join_tonai,join_pigs,join_capybara,join_sidekick,join_iceberg,join_goats,join_tapcoins,join_tokyobeast,join_twitter_pichain"` //nolint:lll // .
TaskType tasks.Type `uri:"taskType" example:"start_mining" swaggerignore:"true" required:"true" enums:"claim_username,start_mining,upload_profile_picture,follow_us_on_twitter,join_twitter,join_telegram,invite_friends,invite_friends_5,invite_friends_10,invite_friends_25,invite_friends_50,invite_friends_100,invite_friends_200,join_youtube,watch_video_with_code_confirmation_1,invite_friends_5,invite_friends_10,claim_badge_l1,claim_badge_l2,claim_badge_l3,claim_badge_l4,claim_badge_l5,claim_badge_l6,claim_badge_c1,claim_badge_c2,claim_badge_c3,claim_badge_c4,claim_badge_c5,claim_badge_c6,claim_badge_c7,claim_badge_c8,claim_badge_c9,claim_badge_c10,claim_badge_s1,claim_badge_s2,claim_badge_s3,claim_badge_s4,claim_badge_s5,claim_badge_s6,claim_badge_s7,claim_badge_s8,claim_badge_s9,claim_badge_s10,claim_level_1,claim_level_2,claim_level_3,claim_level_4,claim_level_5,claim_level_6,claim_level_7,claim_level_8,claim_level_9,claim_level_10,claim_level_11,claim_level_12,claim_level_13,claim_level_14,claim_level_15,claim_level_16,claim_level_17,claim_level_18,claim_level_19,claim_level_20,claim_level_21,mining_streak_7,mining_streak_14,mining_streak_30,join_reddit_ion,join_instagram_ion,join_twitter_ion,join_telegram_ion,signup_sunwaves,signup_callfluent,signup_sauces,signup_sealsend,signup_doctorx,signup_cryptomayors,join_twitter_multiversx,join_twitter_xportal,join_telegram_multiversx,join_bullish_cmc,join_ion_cmc,join_watchlist_cmc,join_portfolio_coingecko,join_holdcoin,join_human,join_hipo,join_freedogs,join_athene,join_kolo,join_ducks,join_cmc_ton,join_cmc_sol,join_cmc_bnb,join_cmc_eth,join_cmc_btc,join_bearfi,join_boinkers,join_dejendog,join_catgoldminer,join_cmc_pnut,join_cmc_ada,join_cmc_doge,join_cmc_xrp,join_cmc_act,join_tonkombat,join_tonai,join_pigs,join_capybara,join_sidekick,join_iceberg,join_goats,join_tapcoins,join_tokyobeast,join_twitter_pichain,join_sugar"` //nolint:lll // .
DryRun bool `form:"dryRun" example:"true" swaggerignore:"true" required:"false"`
}
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/santa-sleigh/santa.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (s *service) GetTasks( //nolint:gocritic // False negative.
// @Accept json
// @Produce json
// @Param Authorization header string true "Insert your access token" default(Bearer <Add access token here>)
// @Param taskType path string true "the type of the task" enums(claim_username,start_mining,upload_profile_picture,join_twitter,join_telegram,invite_friends_5,invite_friends_10,invite_friends_25,invite_friends_50,invite_friends_100,invite_friends_200,join_youtube,watch_video_with_code_confirmation_1,claim_badge_l1,claim_badge_l2,claim_badge_l3,claim_badge_l4,claim_badge_l5,claim_badge_l6,claim_badge_c1,claim_badge_c2,claim_badge_c3,claim_badge_c4,claim_badge_c5,claim_badge_c6,claim_badge_c7,claim_badge_c8,claim_badge_c9,claim_badge_c10,claim_badge_s1,claim_badge_s2,claim_badge_s3,claim_badge_s4,claim_badge_s5,claim_badge_s6,claim_badge_s7,claim_badge_s8,claim_badge_s9,claim_badge_s10,claim_level_1,claim_level_2,claim_level_3,claim_level_4,claim_level_5,claim_level_6,claim_level_7,claim_level_8,claim_level_9,claim_level_10,claim_level_11,claim_level_12,claim_level_13,claim_level_14,claim_level_15,claim_level_16,claim_level_17,claim_level_18,claim_level_19,claim_level_20,claim_level_21,mining_streak_7,mining_streak_14,mining_streak_30,join_reddit_ion,join_instagram_ion,join_twitter_ion,join_telegram_ion,signup_sunwaves,signup_callfluent,signup_sauces,signup_sealsend,singup_doctorx,signup_cryptomayors,join_twitter_multiversx,join_twitter_xportal,join_telegram_multiversx,join_bullish_cmc,join_ion_cmc,join_watchlist_cmc,join_portfolio_coingecko,join_holdcoin,join_human,join_hipo,join_freedogs,join_athene,join_kolo,join_ducks,join_cmc_ton,join_cmc_sol,join_cmc_bnb,join_cmc_eth,join_cmc_btc,join_bearfi,join_boinkers,join_dejendog,join_catgoldminer,join_cmc_pnut,join_cmc_ada,join_cmc_doge,join_cmc_xrp,join_cmc_act,join_tonkombat,join_tonai,join_pigs,join_capybara,join_sidekick,join_iceberg,join_goats,join_tapcoins,join_tokyobeast,join_twitter_pichain)
// @Param taskType path string true "the type of the task" enums(claim_username,start_mining,upload_profile_picture,join_twitter,join_telegram,invite_friends_5,invite_friends_10,invite_friends_25,invite_friends_50,invite_friends_100,invite_friends_200,join_youtube,watch_video_with_code_confirmation_1,claim_badge_l1,claim_badge_l2,claim_badge_l3,claim_badge_l4,claim_badge_l5,claim_badge_l6,claim_badge_c1,claim_badge_c2,claim_badge_c3,claim_badge_c4,claim_badge_c5,claim_badge_c6,claim_badge_c7,claim_badge_c8,claim_badge_c9,claim_badge_c10,claim_badge_s1,claim_badge_s2,claim_badge_s3,claim_badge_s4,claim_badge_s5,claim_badge_s6,claim_badge_s7,claim_badge_s8,claim_badge_s9,claim_badge_s10,claim_level_1,claim_level_2,claim_level_3,claim_level_4,claim_level_5,claim_level_6,claim_level_7,claim_level_8,claim_level_9,claim_level_10,claim_level_11,claim_level_12,claim_level_13,claim_level_14,claim_level_15,claim_level_16,claim_level_17,claim_level_18,claim_level_19,claim_level_20,claim_level_21,mining_streak_7,mining_streak_14,mining_streak_30,join_reddit_ion,join_instagram_ion,join_twitter_ion,join_telegram_ion,signup_sunwaves,signup_callfluent,signup_sauces,signup_sealsend,singup_doctorx,signup_cryptomayors,join_twitter_multiversx,join_twitter_xportal,join_telegram_multiversx,join_bullish_cmc,join_ion_cmc,join_watchlist_cmc,join_portfolio_coingecko,join_holdcoin,join_human,join_hipo,join_freedogs,join_athene,join_kolo,join_ducks,join_cmc_ton,join_cmc_sol,join_cmc_bnb,join_cmc_eth,join_cmc_btc,join_bearfi,join_boinkers,join_dejendog,join_catgoldminer,join_cmc_pnut,join_cmc_ada,join_cmc_doge,join_cmc_xrp,join_cmc_act,join_tonkombat,join_tonai,join_pigs,join_capybara,join_sidekick,join_iceberg,join_goats,join_tapcoins,join_tokyobeast,join_twitter_pichain,join_sugar)
// @Param userId path string true "the id of the user you need progress for"
// @Param language query string false "language of translations for task description"
// @Success 200 {array} tasks.Task
Expand Down
2 changes: 1 addition & 1 deletion cmd/santa-sleigh/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (s *service) setupTasksRoutes(router *server.Router) {
// @Accept json
// @Produce json
// @Param Authorization header string true "Insert your access token" default(Bearer <Add access token here>)
// @Param taskType path string true "the type of the task" enums(claim_username,start_mining,upload_profile_picture,follow_us_on_twitter,join_twitter,join_telegram,invite_friends,invite_friends_5,invite_friends_10,invite_friends_25,invite_friends_50,invite_friends_100,invite_friends_200,join_youtube,watch_video_with_code_confirmation_1,claim_badge_l1,claim_badge_l2,claim_badge_l3,claim_badge_l4,claim_badge_l5,claim_badge_l6,claim_badge_c1,claim_badge_c2,claim_badge_c3,claim_badge_c4,claim_badge_c5,claim_badge_c6,claim_badge_c7,claim_badge_c8,claim_badge_c9,claim_badge_c10,claim_badge_s1,claim_badge_s2,claim_badge_s3,claim_badge_s4,claim_badge_s5,claim_badge_s6,claim_badge_s7,claim_badge_s8,claim_badge_s9,claim_badge_s10,claim_level_1,claim_level_2,claim_level_3,claim_level_4,claim_level_5,claim_level_6,claim_level_7,claim_level_8,claim_level_9,claim_level_10,claim_level_11,claim_level_12,claim_level_13,claim_level_14,claim_level_15,claim_level_16,claim_level_17,claim_level_18,claim_level_19,claim_level_20,claim_level_21,mining_streak_7,mining_streak_14,mining_streak_30,join_reddit_ion,join_instagram_ion,join_twitter_ion,join_telegram_ion,signup_sunwaves,signup_callfluent,signup_sauces,signup_sealsend,signup_doctorx,signup_cryptomayors,join_twitter_multiversx,join_twitter_xportal,join_telegram_multiversx,join_bullish_cmc,join_ion_cmc,join_watchlist_cmc,join_portfolio_coingecko,join_holdcoin,join_human,join_hipo,join_freedogs,join_athene,join_kolo,join_ducks,join_cmc_ton,join_cmc_sol,join_cmc_bnb,join_cmc_eth,join_cmc_btc,join_bearfi,join_boinkers,join_dejendog,join_catgoldminer,join_cmc_pnut,join_cmc_ada,join_cmc_doge,join_cmc_xrp,join_cmc_act,join_tonkombat,join_tonai,join_pigs,join_capybara,join_sidekick,join_iceberg,join_goats,join_tapcoins,join_tokyobeast,join_twitter_pichain)
// @Param taskType path string true "the type of the task" enums(claim_username,start_mining,upload_profile_picture,follow_us_on_twitter,join_twitter,join_telegram,invite_friends,invite_friends_5,invite_friends_10,invite_friends_25,invite_friends_50,invite_friends_100,invite_friends_200,join_youtube,watch_video_with_code_confirmation_1,claim_badge_l1,claim_badge_l2,claim_badge_l3,claim_badge_l4,claim_badge_l5,claim_badge_l6,claim_badge_c1,claim_badge_c2,claim_badge_c3,claim_badge_c4,claim_badge_c5,claim_badge_c6,claim_badge_c7,claim_badge_c8,claim_badge_c9,claim_badge_c10,claim_badge_s1,claim_badge_s2,claim_badge_s3,claim_badge_s4,claim_badge_s5,claim_badge_s6,claim_badge_s7,claim_badge_s8,claim_badge_s9,claim_badge_s10,claim_level_1,claim_level_2,claim_level_3,claim_level_4,claim_level_5,claim_level_6,claim_level_7,claim_level_8,claim_level_9,claim_level_10,claim_level_11,claim_level_12,claim_level_13,claim_level_14,claim_level_15,claim_level_16,claim_level_17,claim_level_18,claim_level_19,claim_level_20,claim_level_21,mining_streak_7,mining_streak_14,mining_streak_30,join_reddit_ion,join_instagram_ion,join_twitter_ion,join_telegram_ion,signup_sunwaves,signup_callfluent,signup_sauces,signup_sealsend,signup_doctorx,signup_cryptomayors,join_twitter_multiversx,join_twitter_xportal,join_telegram_multiversx,join_bullish_cmc,join_ion_cmc,join_watchlist_cmc,join_portfolio_coingecko,join_holdcoin,join_human,join_hipo,join_freedogs,join_athene,join_kolo,join_ducks,join_cmc_ton,join_cmc_sol,join_cmc_bnb,join_cmc_eth,join_cmc_btc,join_bearfi,join_boinkers,join_dejendog,join_catgoldminer,join_cmc_pnut,join_cmc_ada,join_cmc_doge,join_cmc_xrp,join_cmc_act,join_tonkombat,join_tonai,join_pigs,join_capybara,join_sidekick,join_iceberg,join_goats,join_tapcoins,join_tokyobeast,join_twitter_pichain,join_sugar)
// @Param userId path string true "the id of the user that completed the task"
// @Param request body CompleteTaskRequestBody false "Request params. Set it only if task completion requires additional data."
// @Success 200 "ok"
Expand Down
2 changes: 2 additions & 0 deletions cmd/santa/api/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ const docTemplate = `{
"join_goats",
"join_tapcoins",
"join_tokyobeast",
"join_sugar",
"watch_video_with_code_confirmation_1",
"invite_friends_5",
"invite_friends_10",
Expand Down Expand Up @@ -713,6 +714,7 @@ const docTemplate = `{
"JoinGoatsType",
"JoinTapcoinsType",
"JoinTokyobeastType",
"JoinSugarType",
"WatchVideoWithCodeConfirmation1Type",
"InviteFriends5Type",
"InviteFriends10Type",
Expand Down
2 changes: 2 additions & 0 deletions cmd/santa/api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@
"join_goats",
"join_tapcoins",
"join_tokyobeast",
"join_sugar",
"watch_video_with_code_confirmation_1",
"invite_friends_5",
"invite_friends_10",
Expand Down Expand Up @@ -707,6 +708,7 @@
"JoinGoatsType",
"JoinTapcoinsType",
"JoinTokyobeastType",
"JoinSugarType",
"WatchVideoWithCodeConfirmation1Type",
"InviteFriends5Type",
"InviteFriends10Type",
Expand Down
2 changes: 2 additions & 0 deletions cmd/santa/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ definitions:
- join_goats
- join_tapcoins
- join_tokyobeast
- join_sugar
- watch_video_with_code_confirmation_1
- invite_friends_5
- invite_friends_10
Expand Down Expand Up @@ -303,6 +304,7 @@ definitions:
- JoinGoatsType
- JoinTapcoinsType
- JoinTokyobeastType
- JoinSugarType
- WatchVideoWithCodeConfirmation1Type
- InviteFriends5Type
- InviteFriends10Type
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.23
require (
github.com/goccy/go-json v0.10.3
github.com/hashicorp/go-multierror v1.1.1
github.com/ice-blockchain/eskimo v1.433.0
github.com/ice-blockchain/eskimo v1.434.0
github.com/ice-blockchain/wintr v1.154.0
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.10.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+l
github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/ice-blockchain/eskimo v1.433.0 h1:qqusQ2jMNqKK7pb4SUW7e8gTQgCgGT72u2ow+oh8hG4=
github.com/ice-blockchain/eskimo v1.433.0/go.mod h1:qQ3Ku3Asyge6yTfTsvCNV6ziALMduNtp93jEnmnmTGI=
github.com/ice-blockchain/eskimo v1.434.0 h1:tS1Zw6hH4YqF+s7OIuFR5dw8oYcFnNfzPfjbgRwaBGU=
github.com/ice-blockchain/eskimo v1.434.0/go.mod h1:44EGWQqA2PiX8zJ0H3NMhODEyt7TLA1jFDhzJP73Qfc=
github.com/ice-blockchain/go-tarantool-client v0.0.0-20230327200757-4fc71fa3f7bb h1:8TnFP3mc7O+tc44kv2e0/TpZKnEVUaKH+UstwfBwRkk=
github.com/ice-blockchain/go-tarantool-client v0.0.0-20230327200757-4fc71fa3f7bb/go.mod h1:ZsQU7i3mxhgBBu43Oev7WPFbIjP4TniN/b1UPNGbrq8=
github.com/ice-blockchain/wintr v1.154.0 h1:yZSQtAEwGHTSmJ5pXjX0tpui1TNnG615QfpBkhY99a4=
Expand Down
Loading

0 comments on commit e8a166c

Please sign in to comment.