Skip to content

Commit

Permalink
cmc_bullish task typo fix. (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-myles authored Oct 30, 2024
1 parent aa0165b commit f52294a
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 33 deletions.
6 changes: 3 additions & 3 deletions cmd/santa-sleigh/api/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ const docTemplate = `{
"join_twitter_multiversx",
"join_twitter_xportal",
"join_telegram_multiversx",
"join_bulllish_cmc",
"join_bullish_cmc",
"join_ion_cmc",
"join_watchlist_cmc",
"join_portfolio_coingecko",
Expand Down Expand Up @@ -621,7 +621,7 @@ const docTemplate = `{
"join_twitter_multiversx",
"join_twitter_xportal",
"join_telegram_multiversx",
"join_bulllish_cmc",
"join_bullish_cmc",
"join_ion_cmc",
"join_watchlist_cmc",
"join_portfolio_coingecko",
Expand Down Expand Up @@ -925,7 +925,7 @@ const docTemplate = `{
"join_twitter_multiversx",
"join_twitter_xportal",
"join_telegram_multiversx",
"join_bulllish_cmc",
"join_bullish_cmc",
"join_ion_cmc",
"join_watchlist_cmc",
"join_portfolio_coingecko",
Expand Down
6 changes: 3 additions & 3 deletions cmd/santa-sleigh/api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
"join_twitter_multiversx",
"join_twitter_xportal",
"join_telegram_multiversx",
"join_bulllish_cmc",
"join_bullish_cmc",
"join_ion_cmc",
"join_watchlist_cmc",
"join_portfolio_coingecko",
Expand Down Expand Up @@ -614,7 +614,7 @@
"join_twitter_multiversx",
"join_twitter_xportal",
"join_telegram_multiversx",
"join_bulllish_cmc",
"join_bullish_cmc",
"join_ion_cmc",
"join_watchlist_cmc",
"join_portfolio_coingecko",
Expand Down Expand Up @@ -918,7 +918,7 @@
"join_twitter_multiversx",
"join_twitter_xportal",
"join_telegram_multiversx",
"join_bulllish_cmc",
"join_bullish_cmc",
"join_ion_cmc",
"join_watchlist_cmc",
"join_portfolio_coingecko",
Expand Down
6 changes: 3 additions & 3 deletions cmd/santa-sleigh/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ definitions:
- join_twitter_multiversx
- join_twitter_xportal
- join_telegram_multiversx
- join_bulllish_cmc
- join_bullish_cmc
- join_ion_cmc
- join_watchlist_cmc
- join_portfolio_coingecko
Expand Down Expand Up @@ -568,7 +568,7 @@ paths:
- join_twitter_multiversx
- join_twitter_xportal
- join_telegram_multiversx
- join_bulllish_cmc
- join_bullish_cmc
- join_ion_cmc
- join_watchlist_cmc
- join_portfolio_coingecko
Expand Down Expand Up @@ -776,7 +776,7 @@ paths:
- join_twitter_multiversx
- join_twitter_xportal
- join_telegram_multiversx
- join_bulllish_cmc
- join_bullish_cmc
- join_ion_cmc
- join_watchlist_cmc
- join_portfolio_coingecko
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_callfluent,signup_sauces,signup_sealsend,join_twitter_multiversx,join_twitter_xportal,join_telegram_multiversx,join_bulllish_cmc,join_ion_cmc,join_watchlist_cmc,join_portfolio_coingecko,join_holdcoin,join_human"` //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_callfluent,signup_sauces,signup_sealsend,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"` //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_callfluent,signup_sauces,signup_sealsend,join_twitter_multiversx,join_twitter_xportal,join_telegram_multiversx,join_bulllish_cmc,join_ion_cmc,join_watchlist_cmc,join_portfolio_coingecko,join_holdcoin,join_human)
// @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_callfluent,signup_sauces,signup_sealsend,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)
// @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_callfluent,signup_sauces,signup_sealsend,join_twitter_multiversx,join_twitter_xportal,join_telegram_multiversx,join_bulllish_cmc,join_ion_cmc,join_watchlist_cmc,join_portfolio_coingecko,join_holdcoin,join_human)
// @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_callfluent,signup_sauces,signup_sealsend,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)
// @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: 1 addition & 1 deletion cmd/santa/api/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ const docTemplate = `{
"join_twitter_multiversx",
"join_twitter_xportal",
"join_telegram_multiversx",
"join_bulllish_cmc",
"join_bullish_cmc",
"join_ion_cmc",
"join_watchlist_cmc",
"join_portfolio_coingecko",
Expand Down
2 changes: 1 addition & 1 deletion cmd/santa/api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@
"join_twitter_multiversx",
"join_twitter_xportal",
"join_telegram_multiversx",
"join_bulllish_cmc",
"join_bullish_cmc",
"join_ion_cmc",
"join_watchlist_cmc",
"join_portfolio_coingecko",
Expand Down
2 changes: 1 addition & 1 deletion cmd/santa/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ definitions:
- join_twitter_multiversx
- join_twitter_xportal
- join_telegram_multiversx
- join_bulllish_cmc
- join_bullish_cmc
- join_ion_cmc
- join_watchlist_cmc
- join_portfolio_coingecko
Expand Down
13 changes: 8 additions & 5 deletions 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.414.0
github.com/ice-blockchain/eskimo v1.416.0
github.com/ice-blockchain/wintr v1.154.0
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.9.0
Expand Down Expand Up @@ -33,7 +33,7 @@ require (
github.com/KyleBanks/depth v1.2.1 // indirect
github.com/MicahParks/keyfunc v1.9.0 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/Microsoft/hcsshim v0.12.8 // indirect
github.com/Microsoft/hcsshim v0.12.9 // indirect
github.com/andybalholm/brotli v1.1.1 // indirect
github.com/bytedance/sonic v1.12.3 // indirect
github.com/bytedance/sonic/loader v0.2.1 // indirect
Expand All @@ -47,7 +47,10 @@ require (
github.com/containerd/cgroups/v3 v3.0.3 // indirect
github.com/containerd/containerd v1.7.23 // indirect
github.com/containerd/continuity v0.4.4 // indirect
github.com/containerd/errdefs v0.3.0 // indirect
github.com/containerd/errdefs/pkg v0.3.0 // indirect
github.com/containerd/log v0.1.0 // indirect
github.com/containerd/typeurl/v2 v2.2.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/distribution/reference v0.6.0 // indirect
github.com/docker/distribution v2.8.3+incompatible // indirect
Expand Down Expand Up @@ -78,7 +81,7 @@ require (
github.com/golang-jwt/jwt/v5 v5.2.1 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/pprof v0.0.0-20241023014458-598669927662 // indirect
github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db // indirect
github.com/google/s2a-go v0.1.8 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
Expand Down Expand Up @@ -110,7 +113,7 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/onsi/ginkgo/v2 v2.20.2 // indirect
github.com/onsi/ginkgo/v2 v2.21.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.0 // indirect
github.com/opencontainers/runc v1.2.0 // indirect
Expand Down Expand Up @@ -169,7 +172,7 @@ require (
google.golang.org/genproto/googleapis/api v0.0.0-20241021214115-324edc3d5d38 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241021214115-324edc3d5d38 // indirect
google.golang.org/grpc v1.67.1 // indirect
google.golang.org/grpc/stats/opentelemetry v0.0.0-20241025232817-cb329375b14e // indirect
google.golang.org/grpc/stats/opentelemetry v0.0.0-20241028142157-ada6787961b3 // indirect
google.golang.org/protobuf v1.35.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
Loading

0 comments on commit f52294a

Please sign in to comment.