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

feat: pump and dump implementation #485

Merged
merged 18 commits into from
Jan 23, 2025
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
db842b7
feat: initial game implementation
rupansh Dec 27, 2024
ac587c2
feat(individual_user_template): add liquidity pools
rupansh Dec 27, 2024
49a2ff4
feat(individual_user_template/pump_n_dump): add more helpers for cf w…
rupansh Dec 29, 2024
65f8d46
feat(individual_user_template/pump_n_dump): add staking function
rupansh Dec 29, 2024
40a09d5
chore: add integration tests for pump n dump game
rupansh Jan 6, 2025
c1e93c5
feat!(individual_user_template): update pump_n_dump for frontend queries
rupansh Jan 6, 2025
464c93d
refactor!(individual_user_template/pump_n_dump): add separate logic f…
rupansh Jan 6, 2025
ea21135
feat(individual_user_template/pump_n_dump): add net earnings
rupansh Jan 17, 2025
8a33d04
refactor(individual_user_template): segregate gdollr balance between …
rupansh Jan 20, 2025
6b9cebc
fix(individual_user_template): fix balance deduction
rupansh Jan 20, 2025
db85ad0
fix(individual_user_template): reduce canister complexity
rupansh Jan 20, 2025
8159867
fix: fix testcontainers build
rupansh Jan 20, 2025
7d9dc69
fix(individual_user_template/update_session_type): properly use known…
rupansh Jan 20, 2025
f875cae
fix(docker): fix populate_posts
rupansh Jan 20, 2025
be23b55
refactor!(individual_user_template/pump_n_dump): require login to red…
rupansh Jan 22, 2025
c7851ed
refactor(individual_user_template): remove login requirement from pum…
rupansh Jan 22, 2025
01484e5
Merge remote-tracking branch 'origin/main' into rupansh/p-and-d
rupansh Jan 23, 2025
85eb818
fix(individual_user_template/post_upgrade): fix deserialization of he…
rupansh-sekar-yral Jan 23, 2025
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
Prev Previous commit
Next Next commit
fix: fix testcontainers build
rupansh committed Jan 20, 2025
commit 8159867a85d264eacb31965b8711ce62cd203994
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ RUN apt-get install wget --no-install-recommends

RUN cargo install candid-extractor --locked

RUN dfx extension install sns
RUN dfx extension install sns --version 0.4.7

RUN dfx identity import --storage-mode=plaintext admin ./scripts/canisters/docker/local-admin.pem
RUN dfx identity use admin
1 change: 0 additions & 1 deletion scripts/canisters/docker/deploy.sh
Original file line number Diff line number Diff line change
@@ -2,6 +2,5 @@

dfx start --background --artificial-delay 0

scripts/canisters/local_deploy/setup_icp_ledger.sh
scripts/canisters/local_deploy/install_all_canisters.sh -s
scripts/canisters/docker/populate_posts.sh
4 changes: 2 additions & 2 deletions scripts/canisters/docker/populate_posts.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

USER_CANISTER_RAW="$(dfx canister call user_index get_requester_principals_canister_id_create_if_not_exists_and_optionally_allow_referrer "(null)")"
USER_CANISTER_RAW="$(dfx canister call user_index get_requester_principals_canister_id_create_if_not_exists "()")"
export USER_CANISTER="$(echo $USER_CANISTER_RAW | awk '{print $2}' | sed 's/\")//g' | sed 's/\"//g')"

echo "Populating videos to $USER_CANISTER (this might take a bit)"
@@ -10,7 +10,7 @@ add_post() {
hashtags = vec { \"test123\"; \"test231\"; \"hashtag2\"; };
description = \"Test Post 123\";
video_uid = \"$1\";
creator_consent_for_inclusion_in_hot_or_not = false;
creator_consent_for_inclusion_in_hot_or_not = true;
is_nsfw = false
})"
}
4 changes: 2 additions & 2 deletions scripts/canisters/local_deploy/install_all_canisters.sh
Original file line number Diff line number Diff line change
@@ -103,7 +103,7 @@ dfx canister install user_index --argument "(record {
})"
scripts/canisters/local_deploy/create_pool_of_individual_canister_user_index.sh

dfx canister update-settings user_index --set-controller $(dfx canister id platform_orchestrator) --yes
dfx canister call platform_orchestrator register_new_subnet_orchestrator "(principal \"$(dfx canister id user_index)\", true)"
dfx canister update-settings user_index --set-controller $(dfx canister id platform_orchestrator) --yes
dfx canister call platform_orchestrator register_new_subnet_orchestrator "(principal \"$(dfx canister id user_index)\", true)"