Skip to content

Commit

Permalink
420 & 421
Browse files Browse the repository at this point in the history
  • Loading branch information
notV4l committed Mar 23, 2024
1 parent 2d356c6 commit 2c658f9
Show file tree
Hide file tree
Showing 25 changed files with 934 additions and 872 deletions.
26 changes: 23 additions & 3 deletions Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,43 @@ token = { git = "https://github.com/dojoengine/origami", tag = "v0.6.0-alpha.3"
katana = "katana --disable-fee --invoke-max-steps 999999999"
build = "sozo build && scarb run gendojo"
gendojo = "./scripts/gen.sh"

# auth
auth = "./scripts/default_auth.sh dev"
auth_staging = "./scripts/default_auth.sh staging"
auth_ryo420 = "./scripts/default_auth.sh ryo420"
auth_ryo421 = "./scripts/default_auth.sh ryo421"
auth_prod = "./scripts/default_auth.sh prod"

# migrate
migrate = "sozo -P dev migrate && scarb run gendojo && scarb run auth"
migrate_staging = "sozo -P staging build && sozo -P staging migrate && scarb run auth_staging"
migrate_ryo420 = "sozo -P ryo420 build && sozo -P ryo420 migrate && scarb run auth_ryo420"
migrate_ryo421 = "sozo -P ryo421 build && sozo -P ryo421 migrate && scarb run auth_ryo421"
migrate_prod = "sozo -P prod migrate"

# slot ryo420
slot_ryo420_katana="slot d create ryo420 katana --seed 420 --version v0.6.0-alpha.3 --chain-id KATANA_SLOT_420"
slot_ryo420_torii="slot d create ryo420 torii --rpc https://api.cartridge.gg/x/ryo420/katana -s 0 --version v0.6.0-alpha.3 --world 0x8d9e00f20d1d9039e26f3cec29892c11c611314d508188d5be88019be48a7d"

# slot ryo421
slot_ryo421_katana="slot d create ryo421 katana --seed 421 --version v0.6.0-alpha.3 --chain-id KATANA_SLOT_421"
slot_ryo421_torii="slot d create ryo421 torii --rpc https://api.cartridge.gg/x/ryo421/katana -s 0 --version v0.6.0-alpha.3 --world 0x8d9e00f20d1d9039e26f3cec29892c11c611314d508188d5be88019be48a7d"


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

[profile.staging.tool.dojo.env]
[profile.ryo420.tool.dojo.env]
rpc_url = "https://api.cartridge.gg/x/ryo420/katana"
account_address = "0x754d8bc62099e306ab40deb98accc3e717eb1a7b8838060c6312c6e8f8ee1d7"
private_key = "0x2f9a2435c3195dfa3c2f8290de5347e0da48193fd6d6d80320f0201a0964b8c"

[profile.ryo421.tool.dojo.env]
rpc_url = "https://api.cartridge.gg/x/ryo421/katana"
account_address = "0x7d806fc9478c73c60fac37c27888771bdb3092c21eb93452277e7673954d034"
private_key = "0x784b1dd14d761c414c6394fccca3ca1d1b0cac187e88122e4b06378f9e8c515"

[profile.prod.tool.dojo.env]
rpc_url = "https://api.cartridge.gg/x/ryo420/katana"
account_address = "0x795abc2a2d5866f75c58025741329973db20966d1add5dd2a9fbdf0bb8a0266"
Expand Down
2 changes: 1 addition & 1 deletion src/config/game.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn initialize_game_config(world: IWorldDispatcher) {
world,
GameConfig {
key: GAME_CONFIG_KEY,
cash: 690,
cash: 1421, // 690
health: 100, // 100,
max_turns: 42,
max_wanted_shopping: 5,
Expand Down
7 changes: 0 additions & 7 deletions web/.env.development
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
NEXT_PUBLIC_DISABLE_MEDIAPLAYER_AUTOPLAY="true"
NEXT_PUBLIC_RPC_ENDPOINT="http://localhost:5050"
NEXT_PUBLIC_GRAPHQL_ENDPOINT="http://localhost:8080/graphql"
NEXT_PUBLIC_GRAPHQL_ENDPOINT_WS="ws://localhost:8080/graphql/ws"
NEXT_PUBLIC_ADMIN_ADDRESS="0x6162896d1d7ab204c7ccac6dd5f8e9e7c25ecd5ae4fcb4ad32e57786bb46e03"
NEXT_PUBLIC_ADMIN_PRIVATE_KEY="0x1800000000300000180000000000030000000000003006001800006600"
NEXT_PUBLIC_ACCOUNT_CLASS_HASH="0x05400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c"

13 changes: 0 additions & 13 deletions web/.env.production
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
# NEXT_PUBLIC_DISABLE_MEDIAPLAYER_AUTOPLAY="false"
# NEXT_PUBLIC_RPC_ENDPOINT="https://api.cartridge.gg/x/rollyourown/katana"
# NEXT_PUBLIC_GRAPHQL_ENDPOINT="https://api.cartridge.gg/x/rollyourown/torii"
# NEXT_PUBLIC_ADMIN_ADDRESS="0x6162896d1d7ab204c7ccac6dd5f8e9e7c25ecd5ae4fcb4ad32e57786bb46e03"
# NEXT_PUBLIC_ADMIN_PRIVATE_KEY="0x1800000000300000180000000000030000000000003006001800006600"
# NEXT_PUBLIC_ACCOUNT_CLASS_HASH="0x05400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c"

NEXT_PUBLIC_DISABLE_MEDIAPLAYER_AUTOPLAY="false"
NEXT_PUBLIC_RPC_ENDPOINT="https://api.cartridge.gg/x/ryo420/katana"
NEXT_PUBLIC_GRAPHQL_ENDPOINT="https://api.cartridge.gg/x/ryo420/torii/graphql"
NEXT_PUBLIC_GRAPHQL_ENDPOINT_WS="wss://api.cartridge.gg/x/ryo420/torii/graphql/ws"
NEXT_PUBLIC_ADMIN_ADDRESS="0x795abc2a2d5866f75c58025741329973db20966d1add5dd2a9fbdf0bb8a0266"
NEXT_PUBLIC_ADMIN_PRIVATE_KEY="0x2e8ac99614186737cefc47effe03134f5a19c6dc2443c16510d3384769f9c78"
NEXT_PUBLIC_ACCOUNT_CLASS_HASH="0x05400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c"
4 changes: 2 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@starknet-react/core": "^2.4.0",
"@vercel/analytics": "^1.0.2",
"eslint": "8.36.0",
"eslint-config-next": "14.1.0",
"eslint-config-next": "14.1.4",
"framer-motion": "^10.5.0",
"get-starknet-core": "^3.2.0",
"graphql": "^16.3.0",
Expand All @@ -39,7 +39,7 @@
"howler": "^2.2.3",
"mobx": "^6.10.2",
"mobx-react-lite": "^4.0.5",
"next": "14.2.0-canary.33",
"next": "14.1.4",
"next-pwa": "^5.6.0",
"react": "^18.2.0",
"react-countdown": "^2.3.5",
Expand Down
Loading

0 comments on commit 2c658f9

Please sign in to comment.