Skip to content

Commit

Permalink
New Slot marco, sozo build unity ran, dojo v0.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandoDrRobot committed Jul 5, 2024
1 parent 6d2246a commit 8dac3a3
Show file tree
Hide file tree
Showing 14 changed files with 86 additions and 22 deletions.
8 changes: 4 additions & 4 deletions Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ version = 1

[[package]]
name = "dojo"
version = "0.7.1"
source = "git+https://github.com/dojoengine/dojo?tag=v0.7.1#c4a1feadf1d5c5ecf9593b50c1a2ca2856ae2313"
version = "0.7.3"
source = "git+https://github.com/dojoengine/dojo?tag=v0.7.3#e8539d5b199efbd51c89c75da32f6592de5d9262"
dependencies = [
"dojo_plugin",
]

[[package]]
name = "dojo_plugin"
version = "0.3.11"
source = "git+https://github.com/dojoengine/dojo?tag=v0.3.11#1e651b5d4d3b79b14a7d8aa29a92062fcb9e6659"
version = "0.4.1"
source = "git+https://github.com/dojoengine/dojo?tag=v0.7.2#3da5cad9fdd39b81551e0668015d88262e6c5fc4"

[[package]]
name = "dojo_starter"
Expand Down
9 changes: 4 additions & 5 deletions Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@ version = "0.7.0"
sierra-replace-ids = true

[dependencies]
dojo = { git = "https://github.com/dojoengine/dojo", tag = "v0.7.1" }
dojo = { git = "https://github.com/dojoengine/dojo", tag = "v0.7.3" }

[[target.dojo]]

[tool.dojo]
initializer_class_hash = "0xbeef"

[tool.dojo.env]
rpc_url = "https://api.cartridge.gg/x/bytebeast/katana"
rpc_url = "https://api.cartridge.gg/x/marco/katana"
# Default account for katana with seed = 0
account_address = "0x69562e297da25abcc1fd34e53b4a534e939fcc445f946e8d8d2bcb3e0e44e44"
private_key = "0x4710e214ec335128592d179195a0b52a641d32bdb780803f30f6ee5805783c4"
world_address = "0xb4079627ebab1cd3cf9fd075dda1ad2454a7a448bf659591f259efa2519b18" # Uncomment and update this line with your world address.
account_address = "0x582021b1274d3a25c376c985e7bcb65d33969e40c05e3e09ec9a8dde465e54d"
private_key = "0xa7b80f0a434182514c99801ea62ed240c11fb6eb15f237bc48617a6456e6cf"

[tool.dojo.world]
name = "bytebeast"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by dojo-bindgen on Fri, 5 Jul 2024 15:17:15 +0000. Do not modify this file manually.
// Generated by dojo-bindgen on Fri, 5 Jul 2024 19:07:48 +0000. Do not modify this file manually.
using System;
using System.Threading.Tasks;
using Dojo;
Expand Down Expand Up @@ -82,6 +82,8 @@ public async Task<FieldElement> attack(Account account, FieldElement beast_id, u
});
}



// Call the `createBeast` system with the specified Account and calldata
// Returns the transaction hash. Use `WaitForTransaction` to wait for the transaction to be confirmed.
public async Task<FieldElement> createBeast(Account account, FieldElement beast_id, FieldElement beast_type, uint hp, uint currentHp, ulong mp, ulong currentMp, ulong strength, ulong defense, FieldElement equipped_weapon, byte wpn_power, FieldElement equipped_armor, ulong armor_power, ulong experience_to_nex_level) {
Expand Down
63 changes: 63 additions & 0 deletions bindings/unity/Models/Beast.gen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
// Generated by dojo-bindgen on Fri, 5 Jul 2024 19:07:48 +0000. Do not modify this file manually.
using System;
using Dojo;
using Dojo.Starknet;
using System.Reflection;
using System.Linq;
using System.Collections.Generic;
using Enum = Dojo.Starknet.Enum;


// Model definition for `dojo_starter::models::beast::Beast` model
public class Beast : ModelInstance {
[ModelField("beast_id")]
public FieldElement beast_id;

[ModelField("player_id")]
public FieldElement player_id;

[ModelField("beast_type")]
public FieldElement beast_type;

[ModelField("hp")]
public uint hp;

[ModelField("currentHp")]
public uint currentHp;

[ModelField("mp")]
public ulong mp;

[ModelField("currentMp")]
public ulong currentMp;

[ModelField("strength")]
public ulong strength;

[ModelField("defense")]
public ulong defense;

[ModelField("equipped_weapon")]
public FieldElement equipped_weapon;

[ModelField("wpn_power")]
public byte wpn_power;

[ModelField("equipped_armor")]
public FieldElement equipped_armor;

[ModelField("armor_power")]
public ulong armor_power;

[ModelField("experience_to_nex_level")]
public ulong experience_to_nex_level;

// Start is called before the first frame update
void Start() {
}

// Update is called once per frame
void Update() {
}
}

2 changes: 1 addition & 1 deletion bindings/unity/Models/DirectionsAvailable.gen.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by dojo-bindgen on Fri, 5 Jul 2024 15:17:15 +0000. Do not modify this file manually.
// Generated by dojo-bindgen on Fri, 5 Jul 2024 19:07:48 +0000. Do not modify this file manually.
using System;
using Dojo;
using Dojo.Starknet;
Expand Down
2 changes: 1 addition & 1 deletion bindings/unity/Models/Moved.gen.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by dojo-bindgen on Fri, 5 Jul 2024 15:17:15 +0000. Do not modify this file manually.
// Generated by dojo-bindgen on Fri, 5 Jul 2024 19:07:48 +0000. Do not modify this file manually.
using System;
using Dojo;
using Dojo.Starknet;
Expand Down
2 changes: 1 addition & 1 deletion bindings/unity/Models/Moves.gen.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by dojo-bindgen on Fri, 5 Jul 2024 15:17:15 +0000. Do not modify this file manually.
// Generated by dojo-bindgen on Fri, 5 Jul 2024 19:07:48 +0000. Do not modify this file manually.
using System;
using Dojo;
using Dojo.Starknet;
Expand Down
2 changes: 1 addition & 1 deletion bindings/unity/Models/Position.gen.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by dojo-bindgen on Fri, 5 Jul 2024 15:17:15 +0000. Do not modify this file manually.
// Generated by dojo-bindgen on Fri, 5 Jul 2024 19:07:48 +0000. Do not modify this file manually.
using System;
using Dojo;
using Dojo.Starknet;
Expand Down
4 changes: 2 additions & 2 deletions manifests/dev/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1000,12 +1000,12 @@
}
],
"address": "0xb4079627ebab1cd3cf9fd075dda1ad2454a7a448bf659591f259efa2519b18",
"transaction_hash": "0x4b6f028e019c8db1a07e76a6183b677fba9cac8d269220207da8b9c06514638",
"transaction_hash": "0x1b742662789fd8beacdbd09dffe71d20ffa0c630237849a85e4be476d2c1f45",
"block_number": 3,
"seed": "dojo_starter",
"metadata": {
"profile_name": "dev",
"rpc_url": "https://api.cartridge.gg/x/bytebeast/katana"
"rpc_url": "https://api.cartridge.gg/x/marco/katana"
},
"name": "dojo::world::world"
},
Expand Down
4 changes: 2 additions & 2 deletions manifests/dev/manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ class_hash = "0x3f63cecdc4964acafb921ba2934c6507d1b3c344edb64c2762cf08053169ab9"
original_class_hash = "0x3f63cecdc4964acafb921ba2934c6507d1b3c344edb64c2762cf08053169ab9"
abi = "manifests/dev/abis/deployments/dojo_world_world.json"
address = "0xb4079627ebab1cd3cf9fd075dda1ad2454a7a448bf659591f259efa2519b18"
transaction_hash = "0x4b6f028e019c8db1a07e76a6183b677fba9cac8d269220207da8b9c06514638"
transaction_hash = "0x1b742662789fd8beacdbd09dffe71d20ffa0c630237849a85e4be476d2c1f45"
block_number = 3
seed = "dojo_starter"
name = "dojo::world::world"

[world.metadata]
profile_name = "dev"
rpc_url = "https://api.cartridge.gg/x/bytebeast/katana"
rpc_url = "https://api.cartridge.gg/x/marco/katana"

[base]
kind = "Class"
Expand Down
2 changes: 1 addition & 1 deletion scripts/attack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -euo pipefail
pushd $(dirname "$0")/..

export RPC_URL="https://api.cartridge.gg/x/bytebeast/katana"
export RPC_URL="https://api.cartridge.gg/x/marco/katana"

export WORLD_ADDRESS=$(cat ./manifests/dev/manifest.json | jq -r '.world.address')

Expand Down
2 changes: 1 addition & 1 deletion scripts/default_auth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ check_cmd() {

need_cmd jq

export RPC_URL="https://api.cartridge.gg/x/bytebeast/katana"
export RPC_URL="https://api.cartridge.gg/x/marco/katana"

export WORLD_ADDRESS=$(cat ./manifests/dev/manifest.json | jq -r '.world.address')

Expand Down
2 changes: 1 addition & 1 deletion scripts/move.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -euo pipefail
pushd $(dirname "$0")/..

export RPC_URL="https://api.cartridge.gg/x/bytebeast/katana";
export RPC_URL="https://api.cartridge.gg/x/marco/katana";

export WORLD_ADDRESS=$(cat ./manifests/dev/manifest.json | jq -r '.world.address')

Expand Down
2 changes: 1 addition & 1 deletion scripts/spawn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -euo pipefail
pushd $(dirname "$0")/..

export RPC_URL="https://api.cartridge.gg/x/bytebeast/katana"
export RPC_URL="https://api.cartridge.gg/x/marco/katana"

export WORLD_ADDRESS=$(cat ./manifests/dev/manifest.json | jq -r '.world.address')

Expand Down

0 comments on commit 8dac3a3

Please sign in to comment.