Skip to content

Commit

Permalink
deploy dev
Browse files Browse the repository at this point in the history
  • Loading branch information
notV4l committed Dec 4, 2023
1 parent dbd41ef commit 27a4f9c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
13 changes: 7 additions & 6 deletions Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,22 @@ auth = "./scripts/default_auth.sh dev"
auth_staging = "./scripts/default_auth.sh staging"
auth_prod = "./scripts/default_auth.sh prod"
migrate = "sozo -P dev migrate && scarb run gendojo && scarb run auth"
migrate_staging = "sozo -P staging migrate"
# migrate_staging = "sozo -P staging migrate"
migrate_staging = "sozo migrate --rpc-url https://api.cartridge.gg/x/ryodev/katana --account-address 0x6e857786bbd1652857d673836c41e0544d9d5ecd3e7a1bbde744e328b8cc2f6 --private-key 0x5e9d85de083b7ddd3029c44de2997ceba8384074bbebb66696a1b507f0466fc"
migrate_prod = "sozo -P prod migrate"

[profile.dev.tool.dojo.env]
rpc_url = "http://localhost:5050"
account_address = "0x517ececd29116499f4a1b64b094da79ba08dfd54a3edaa316134c41f8160973"
private_key = "0x1800000000300000180000000000030000000000003006001800006600"
# [profile.dev.tool.dojo.env]
# rpc_url = "http://localhost:5050"
# account_address = "0x517ececd29116499f4a1b64b094da79ba08dfd54a3edaa316134c41f8160973"
# private_key = "0x1800000000300000180000000000030000000000003006001800006600"

[profile.staging.tool.dojo.env]
rpc_url = "https://api.cartridge.gg/x/ryodev/katana"
account_address = "0x6e857786bbd1652857d673836c41e0544d9d5ecd3e7a1bbde744e328b8cc2f6"
private_key = "0x5e9d85de083b7ddd3029c44de2997ceba8384074bbebb66696a1b507f0466fc"

# seed 420
[profile.prod.tool.dojo.env]
# [profile.prod.tool.dojo.env]
# account_address = "0x6e857786bbd1652857d673836c41e0544d9d5ecd3e7a1bbde744e328b8cc2f6"
# private_key = "0x5e9d85de083b7ddd3029c44de2997ceba8384074bbebb66696a1b507f0466fc"
# rpc_url = "https://api.cartridge.gg/x/ryo/katana"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/leaderboard.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl LeaderboardManagerImpl of LeaderboardManagerTrait {

fn get_next_version_timestamp() -> u64 {
let current_timestamp = starknet::info::get_block_timestamp();
current_timestamp + ONE_HOUR
current_timestamp + (6 * ONE_HOUR)
}

fn on_game_start(self: LeaderboardManager) -> u32 {
Expand Down
6 changes: 3 additions & 3 deletions web/.env.production
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
# NEXT_PUBLIC_ACCOUNT_CLASS_HASH="0x04d07e40e93398ed3c76981e72dd1fd22557a78ce36c0515f679e27f0bb5bc5f"

NEXT_PUBLIC_DISABLE_MEDIAPLAYER_AUTOPLAY="false"
NEXT_PUBLIC_RPC_ENDPOINT="https://api.cartridge.gg/x/ryo/katana"
NEXT_PUBLIC_GRAPHQL_ENDPOINT="https://api.cartridge.gg/x/ryo/torii/graphql"
NEXT_PUBLIC_GRAPHQL_ENDPOINT_WS="wss://api.cartridge.gg/x/ryo/torii/graphql/ws"
NEXT_PUBLIC_RPC_ENDPOINT="https://api.cartridge.gg/x/ryodev/katana"
NEXT_PUBLIC_GRAPHQL_ENDPOINT="https://api.cartridge.gg/x/ryodev/torii/graphql"
NEXT_PUBLIC_GRAPHQL_ENDPOINT_WS="wss://api.cartridge.gg/x/ryodev/torii/graphql/ws"
NEXT_PUBLIC_ADMIN_ADDRESS="0x6e857786bbd1652857d673836c41e0544d9d5ecd3e7a1bbde744e328b8cc2f6"
NEXT_PUBLIC_ADMIN_PRIVATE_KEY="0x5e9d85de083b7ddd3029c44de2997ceba8384074bbebb66696a1b507f0466fc"
NEXT_PUBLIC_ACCOUNT_CLASS_HASH="0x04d07e40e93398ed3c76981e72dd1fd22557a78ce36c0515f679e27f0bb5bc5f"

0 comments on commit 27a4f9c

Please sign in to comment.