Skip to content

Commit

Permalink
candids
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-medicala-yral committed Oct 14, 2024
1 parent b2a4bd6 commit 8f7f90f
Showing 1 changed file with 45 additions and 43 deletions.
88 changes: 45 additions & 43 deletions src/canister/individual_user_template/can.did
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ type AirdropDistribution = record { airdrop_neurons : vec NeuronDistribution };
type BetDetails = record {
bet_direction : BetDirection;
bet_maker_canister_id : principal;
bet_maker_informed_status : opt BetMakerInformedStatus;
amount : nat64;
payout : BetPayout;
};
type BetDirection = variant { Hot; Not };
type BetMakerInformedStatus = variant { InformedSuccessfully; Failed : text };
type BetOnCurrentlyViewingPostError = variant {
UserPrincipalNotSet;
InsufficientBalance;
Expand Down Expand Up @@ -284,6 +286,7 @@ type Post = record {
likes : vec principal;
video_uid : text;
home_feed_score : FeedScore;
slots_left_to_be_computed : blob;
view_stats : PostViewStatistics;
hot_or_not_details : opt HotOrNotDetails;
};
Expand Down Expand Up @@ -345,33 +348,34 @@ type RejectionCode = variant {
};
type Result = variant { Ok : bool; Err : text };
type Result_1 = variant { Ok : nat64; Err : text };
type Result_10 = variant { Ok : SystemTime; Err : text };
type Result_11 = variant {
type Result_10 = variant { Ok : Post; Err };
type Result_11 = variant { Ok : SystemTime; Err : text };
type Result_12 = variant {
Ok : vec PostDetailsForFrontend;
Err : GetPostsOfUserProfileError;
};
type Result_12 = variant { Ok : SessionType; Err : text };
type Result_13 = variant { Ok : vec SuccessHistoryItemV1; Err : text };
type Result_14 = variant { Ok : vec principal; Err : PaginationError };
type Result_15 = variant {
type Result_13 = variant { Ok : SessionType; Err : text };
type Result_14 = variant { Ok : vec SuccessHistoryItemV1; Err : text };
type Result_15 = variant { Ok : vec principal; Err : PaginationError };
type Result_16 = variant {
Ok : vec record { nat64; TokenEvent };
Err : PaginationError;
};
type Result_16 = variant { Ok : vec WatchHistoryItem; Err : text };
type Result_17 = variant { Ok : vec text; Err : NamespaceErrors };
type Result_18 = variant { Ok : vec record { nat64; nat8 }; Err : text };
type Result_19 = variant { Ok; Err : MigrationErrors };
type Result_17 = variant { Ok : vec WatchHistoryItem; Err : text };
type Result_18 = variant { Ok : vec text; Err : NamespaceErrors };
type Result_19 = variant { Ok : vec record { nat64; nat8 }; Err : text };
type Result_2 = variant { Ok : bool; Err : CdaoTokenError };
type Result_20 = variant { Ok; Err : CdaoTokenError };
type Result_20 = variant { Ok; Err : MigrationErrors };
type Result_21 = variant { Committed : Committed; Aborted : record {} };
type Result_22 = variant { Ok : Ok; Err : GovernanceError };
type Result_23 = variant { Ok : text; Err : text };
type Result_24 = variant {
type Result_23 = variant { Ok; Err : CdaoTokenError };
type Result_24 = variant { Ok : text; Err : text };
type Result_25 = variant {
Ok : UserProfileDetailsForFrontend;
Err : UpdateProfileDetailsError;
};
type Result_25 = variant { Ok; Err : text };
type Result_26 = variant { Ok; Err : UpdateProfileSetUniqueUsernameError };
type Result_26 = variant { Ok; Err : text };
type Result_27 = variant { Ok; Err : UpdateProfileSetUniqueUsernameError };
type Result_3 = variant {
Ok : BettingStatus;
Err : BetOnCurrentlyViewingPostError;
Expand All @@ -381,7 +385,7 @@ type Result_5 = variant { Ok : opt text; Err : NamespaceErrors };
type Result_6 = variant { Ok; Err : NamespaceErrors };
type Result_7 = variant { Ok : DeployedCdaoCanisters; Err : CdaoDeployError };
type Result_8 = variant { Ok : bool; Err : FollowAnotherUserProfileError };
type Result_9 = variant { Ok : Post; Err };
type Result_9 = variant { Ok : BetDetails; Err : text };
type RoomBetPossibleOutcomes = variant { HotWon; BetOngoing; Draw; NotWon };
type RoomDetails = record {
total_hot_bets : nat64;
Expand Down Expand Up @@ -548,7 +552,6 @@ service : (IndividualUserTemplateInitArgs) -> {
check_and_update_scores_and_share_with_post_cache_if_difference_beyond_threshold : (
vec nat64,
) -> ();
claim_airdrop : (principal) -> ();
clear_snapshot : () -> ();
create_a_namespace : (text) -> (Result_4);
delete_key_value_pair : (nat64, text) -> (Result_5);
Expand All @@ -557,8 +560,9 @@ service : (IndividualUserTemplateInitArgs) -> {
deployed_cdao_canisters : () -> (vec DeployedCdaoCanisters) query;
do_i_follow_this_user : (FolloweeArg) -> (Result_8) query;
download_snapshot : (nat64, nat64) -> (blob) query;
get_bet_details_for_a_user_on_a_post : (principal, nat64) -> (Result_9) query;
get_device_identities : () -> (vec DeviceIdentity) query;
get_entire_individual_post_detail_by_id : (nat64) -> (Result_9) query;
get_entire_individual_post_detail_by_id : (nat64) -> (Result_10) query;
get_hot_or_not_bet_details_for_this_post : (nat64) -> (BettingStatus) query;
get_hot_or_not_bets_placed_by_this_profile_with_pagination : (nat64) -> (
vec PlacedBetDetail,
Expand All @@ -567,14 +571,14 @@ service : (IndividualUserTemplateInitArgs) -> {
opt PlacedBetDetail,
) query;
get_individual_post_details_by_id : (nat64) -> (PostDetailsForFrontend) query;
get_last_access_time : () -> (Result_10) query;
get_last_canister_functionality_access_time : () -> (Result_10) query;
get_last_access_time : () -> (Result_11) query;
get_last_canister_functionality_access_time : () -> (Result_11) query;
get_ml_feed_cache_paginated : (nat64, nat64) -> (vec MLFeedCacheItem) query;
get_posts_of_this_user_profile_with_pagination : (nat64, nat64) -> (
Result_11,
Result_12,
) query;
get_posts_of_this_user_profile_with_pagination_cursor : (nat64, nat64) -> (
Result_11,
Result_12,
) query;
get_principals_that_follow_this_profile_paginated : (opt nat64) -> (
vec record { nat64; FollowEntryDetail },
Expand All @@ -586,68 +590,66 @@ service : (IndividualUserTemplateInitArgs) -> {
get_profile_details_v2 : () -> (UserProfileDetailsForFrontendV2) query;
get_rewarded_for_referral : (principal, principal) -> ();
get_rewarded_for_signing_up : () -> ();
get_session_type : () -> (Result_12) query;
get_session_type : () -> (Result_13) query;
get_stable_memory_size : () -> (nat64) query;
get_success_history : () -> (Result_13) query;
get_success_history : () -> (Result_14) query;
get_token_roots_of_this_user_with_pagination_cursor : (nat64, nat64) -> (
Result_14,
Result_15,
) query;
get_user_caniser_cycle_balance : () -> (nat) query;
get_user_utility_token_transaction_history_with_pagination : (
nat64,
nat64,
) -> (Result_15) query;
) -> (Result_16) query;
get_utility_token_balance : () -> (nat64) query;
get_version : () -> (text) query;
get_version_number : () -> (nat64) query;
get_watch_history : () -> (Result_16) query;
get_watch_history : () -> (Result_17) query;
get_well_known_principal_value : (KnownPrincipalType) -> (
opt principal,
) query;
http_request : (HttpRequest) -> (HttpResponse) query;
is_airdrop_claimed : (principal) -> (bool) query;
list_namespace_keys : (nat64) -> (Result_17) query;
list_namespace_keys : (nat64) -> (Result_18) query;
list_namespaces : (nat64, nat64) -> (vec NamespaceForFrontend) query;
load_snapshot : (nat64) -> ();
once_reenqueue_timers_for_pending_bet_outcomes : () -> (Result_18);
once_reenqueue_timers_for_pending_bet_outcomes : () -> (Result_19);
read_key_value_pair : (nat64, text) -> (Result_5) query;
receive_and_save_snaphot : (nat64, blob) -> ();
receive_bet_from_bet_makers_canister : (PlaceBetArg, principal) -> (Result_3);
receive_bet_winnings_when_distributed : (nat64, BetOutcomeForBetMaker) -> ();
receive_data_from_hotornot : (principal, nat64, vec Post) -> (Result_19);
request_airdrop : (principal, opt blob, nat) -> (Result_20);
receive_data_from_hotornot : (principal, nat64, vec Post) -> (Result_20);
return_cycles_to_user_index_canister : (opt nat) -> ();
save_snapshot_json : () -> (nat32);
settle_neurons_fund_participation : (
SettleNeuronsFundParticipationRequest,
) -> (SettleNeuronsFundParticipationResponse);
transfer_token_to_user_canister : (principal, principal, opt blob, nat) -> (
Result_20,
Result_23,
);
transfer_tokens_and_posts : (principal, principal) -> (Result_19);
update_last_access_time : () -> (Result_23);
transfer_tokens_and_posts : (principal, principal) -> (Result_20);
update_last_access_time : () -> (Result_24);
update_last_canister_functionality_access_time : () -> ();
update_ml_feed_cache : (vec MLFeedCacheItem) -> (Result_23);
update_ml_feed_cache : (vec MLFeedCacheItem) -> (Result_24);
update_post_add_view_details : (nat64, PostViewDetailsFromFrontend) -> ();
update_post_as_ready_to_view : (nat64) -> ();
update_post_increment_share_count : (nat64) -> (nat64);
update_post_status : (nat64, PostStatus) -> ();
update_post_toggle_like_status_by_caller : (nat64) -> (bool);
update_profile_display_details : (UserProfileUpdateDetailsFromFrontend) -> (
Result_24,
Result_25,
);
update_profile_owner : (opt principal) -> (Result_25);
update_profile_set_unique_username_once : (text) -> (Result_26);
update_profile_owner : (opt principal) -> (Result_26);
update_profile_set_unique_username_once : (text) -> (Result_27);
update_profiles_i_follow_toggle_list_with_specified_profile : (
FolloweeArg,
) -> (Result_8);
update_profiles_that_follow_me_toggle_list_with_specified_profile : (
FollowerArg,
) -> (Result_8);
update_referrer_details : (UserCanisterDetails) -> (Result_23);
update_session_type : (SessionType) -> (Result_23);
update_success_history : (SuccessHistoryItemV1) -> (Result_23);
update_watch_history : (WatchHistoryItem) -> (Result_23);
update_referrer_details : (UserCanisterDetails) -> (Result_24);
update_session_type : (SessionType) -> (Result_24);
update_success_history : (SuccessHistoryItemV1) -> (Result_24);
update_watch_history : (WatchHistoryItem) -> (Result_24);
update_well_known_principal : (KnownPrincipalType, principal) -> ();
write_key_value_pair : (nat64, text, text) -> (Result_5);
write_multiple_key_value_pairs : (nat64, vec record { text; text }) -> (
Expand Down

0 comments on commit 8f7f90f

Please sign in to comment.