Skip to content

Commit

Permalink
refactor: probabilities cumulative
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Sep 9, 2024
1 parent 05786df commit 4c19d97
Show file tree
Hide file tree
Showing 41 changed files with 6,748 additions and 54 deletions.
2 changes: 1 addition & 1 deletion dojo_dev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ account_address = "0xb3ff441a68610b30fd5e2abbf3a1548eb6ba6f3559f2862bf2dc757e582
private_key = "0x2bbf4f9fd0bbb2e60b0316c1fe0b76cf7a4d0198bd493ced9b8df2a3a24d68a"
#world_address = "0x1ca8e3b7bc101ffd443a1e3b452a4f49607841461b168cb2cc365322722b67" # Uncomment and update this line with your world address.
#world_address = "0x025Ee38b230906EA41B00401cC12bb51f58DC62198cf058a336655696908863D"
world_address = "0x35819a8df0a85781f9d8793ea1b3163e94812d41707a21a6fb586d00e5f7a16"
world_address = "0x590912ee790b7f8211893544bca0742753de0729088d8f1f2e846056670c24c"

[world]
name = "Flippy Flop"
Expand Down
4 changes: 2 additions & 2 deletions dojo_sepolia.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ account_address = "0xb3ff441a68610b30fd5e2abbf3a1548eb6ba6f3559f2862bf2dc757e582
private_key = "0x2bbf4f9fd0bbb2e60b0316c1fe0b76cf7a4d0198bd493ced9b8df2a3a24d68a"
#world_address = "0x1ca8e3b7bc101ffd443a1e3b452a4f49607841461b168cb2cc365322722b67" # Uncomment and update this line with your world address.
#world_address = "0x025Ee38b230906EA41B00401cC12bb51f58DC62198cf058a336655696908863D"
world_address = "0x3e61be69b2e12ba2d5fe6f3b39103014e1c2c708a61704ecdb0e3bb41f8bb3"
world_address = "0x646b1ab8ec4c75c713ad961d864f42eb9a2c5ae4844c0613f9d1fea0e484616"

[world]
name = "Flippy Flop"
description = "The official Dojo Starter guide, the quickest and most streamlined way to get your Dojo Autonomous World up and running. This guide will assist you with the initial setup, from cloning the repository to deploying your world."
cover_uri = "file://assets/cover.png"
icon_uri = "file://assets/icon.png"
website = "https://github.com/dojoengine/dojo-starter"
seed = "flippyflop-sepolia-1000"
seed = "flippyflop-sepolia-powerups"

[namespace]
default = "flippyflop"
Expand Down
Binary file modified indexer.db
Binary file not shown.
5 changes: 5 additions & 0 deletions manifests/dev/base/abis/dojo-world.json
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,11 @@
"type": "core::felt252",
"kind": "data"
},
{
"name": "entity_id",
"type": "core::felt252",
"kind": "data"
},
{
"name": "keys",
"type": "core::array::Span::<core::felt252>",
Expand Down
4 changes: 2 additions & 2 deletions manifests/dev/base/contracts/flippyflop-actions-4407e5f5.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kind = "DojoContract"
class_hash = "0x4b4721d434ce198b907c12463c98a0c437abbf13fc239ffe7393d0adede908"
original_class_hash = "0x4b4721d434ce198b907c12463c98a0c437abbf13fc239ffe7393d0adede908"
class_hash = "0x5ec70ca5380847bcee5398f1bd2adab02c5eb519981f460d206c84231b87e69"
original_class_hash = "0x5ec70ca5380847bcee5398f1bd2adab02c5eb519981f460d206c84231b87e69"
base_class_hash = "0x0"
abi = "manifests/dev/base/abis/contracts/flippyflop-actions-4407e5f5.json"
reads = []
Expand Down
4 changes: 2 additions & 2 deletions manifests/dev/base/dojo-world.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kind = "Class"
class_hash = "0x3d5a55872f626e15bc19b25028141edf707652ccf3f7b1252d308517edd816d"
original_class_hash = "0x3d5a55872f626e15bc19b25028141edf707652ccf3f7b1252d308517edd816d"
class_hash = "0x79b9624eacd7b74e31db18b10fddbd73c010b85cd1b1f56028c24bafa0b1487"
original_class_hash = "0x79b9624eacd7b74e31db18b10fddbd73c010b85cd1b1f56028c24bafa0b1487"
abi = "manifests/dev/base/abis/dojo-world.json"
tag = "dojo-world"
manifest_name = "dojo-world"
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,14 @@
"items": [
{
"type": "function",
"name": "lock_game",
"name": "lock",
"inputs": [],
"outputs": [],
"state_mutability": "external"
},
{
"type": "function",
"name": "unlock_game",
"name": "unlock",
"inputs": [],
"outputs": [],
"state_mutability": "external"
Expand Down
5 changes: 5 additions & 0 deletions manifests/dev/deployment/abis/dojo-world.json
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,11 @@
"type": "core::felt252",
"kind": "data"
},
{
"name": "entity_id",
"type": "core::felt252",
"kind": "data"
},
{
"name": "keys",
"type": "core::array::Span::<core::felt252>",
Expand Down
32 changes: 19 additions & 13 deletions manifests/dev/deployment/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"world": {
"kind": "WorldContract",
"class_hash": "0x3d5a55872f626e15bc19b25028141edf707652ccf3f7b1252d308517edd816d",
"original_class_hash": "0x3d5a55872f626e15bc19b25028141edf707652ccf3f7b1252d308517edd816d",
"class_hash": "0x79b9624eacd7b74e31db18b10fddbd73c010b85cd1b1f56028c24bafa0b1487",
"original_class_hash": "0x79b9624eacd7b74e31db18b10fddbd73c010b85cd1b1f56028c24bafa0b1487",
"abi": [
{
"type": "impl",
Expand Down Expand Up @@ -1004,6 +1004,11 @@
"type": "core::felt252",
"kind": "data"
},
{
"name": "entity_id",
"type": "core::felt252",
"kind": "data"
},
{
"name": "keys",
"type": "core::array::Span::<core::felt252>",
Expand Down Expand Up @@ -1289,8 +1294,8 @@
]
}
],
"address": "0x35819a8df0a85781f9d8793ea1b3163e94812d41707a21a6fb586d00e5f7a16",
"transaction_hash": "0xb1dadb96fa5c3ba9669be4dde41cf58d63557a1f685159e935a1d5fe204bab",
"address": "0x590912ee790b7f8211893544bca0742753de0729088d8f1f2e846056670c24c",
"transaction_hash": "0x864800688fd52f023a5abb1f2f3d1080e1343f1356b157091f30795bd9f90e",
"block_number": 3,
"seed": "flippyflop-katana",
"metadata": {
Expand All @@ -1310,7 +1315,7 @@
"contracts": [
{
"kind": "DojoContract",
"address": "0x59b976a841da5205c6129711d742382d7a3cfd1e3e03cfc62a5eb666393d5d8",
"address": "0x495548f90cb20886b2e910ceb6b02919db5d291098395353ac253ce4b8d0f10",
"class_hash": "0x7c94aef06e9d76934f52e2abaa8e990dd530472a0e554ef916266acb628c946",
"original_class_hash": "0x7c94aef06e9d76934f52e2abaa8e990dd530472a0e554ef916266acb628c946",
"base_class_hash": "0x2427dd10a58850ac9a5ca6ce04b7771b05330fd18f2e481831ad903b969e6b2",
Expand Down Expand Up @@ -2101,7 +2106,7 @@
},
{
"kind": "DojoContract",
"address": "0x2728baa5c7de0dc4b2fd20d71b76edcfb201924f45e11a52906e1fd22293dbd",
"address": "0x1466f792e0394729ebfe0fc3dc8d95ff5eeabf56e0e4fc329bab60851f3bbea",
"class_hash": "0x4b4721d434ce198b907c12463c98a0c437abbf13fc239ffe7393d0adede908",
"original_class_hash": "0x4b4721d434ce198b907c12463c98a0c437abbf13fc239ffe7393d0adede908",
"base_class_hash": "0x2427dd10a58850ac9a5ca6ce04b7771b05330fd18f2e481831ad903b969e6b2",
Expand Down Expand Up @@ -2361,6 +2366,7 @@
"writes": [
"flippyflop-Tile",
"flippyflop-Game",
"flippyflop-Claim",
"flippyflop-ERC20MetadataModel",
"flippyflop-ERC20BalanceModel",
"flippyflop-ERC20AllowanceModel",
Expand All @@ -2378,9 +2384,9 @@
},
{
"kind": "DojoContract",
"address": "0x15305fffbbb7c68cd216912de18257d33645c5e0a70b4f45dd12c15840355ea",
"class_hash": "0x4dba281a1041e66220d62f9df916c03fc0b4c8c19014f9db368c2f5a0c15bad",
"original_class_hash": "0x4dba281a1041e66220d62f9df916c03fc0b4c8c19014f9db368c2f5a0c15bad",
"address": "0x68f97643254ba8b4f111955872d22cdf840661bb8ebf0ef23d3d4b703228748",
"class_hash": "0x192db261dca4aa58ce197a2947f7b0af929b582fe317688f67c19941b41e1a3",
"original_class_hash": "0x192db261dca4aa58ce197a2947f7b0af929b582fe317688f67c19941b41e1a3",
"base_class_hash": "0x2427dd10a58850ac9a5ca6ce04b7771b05330fd18f2e481831ad903b969e6b2",
"abi": [
{
Expand Down Expand Up @@ -2521,14 +2527,14 @@
"items": [
{
"type": "function",
"name": "lock_game",
"name": "lock",
"inputs": [],
"outputs": [],
"state_mutability": "external"
},
{
"type": "function",
"name": "unlock_game",
"name": "unlock",
"inputs": [],
"outputs": [],
"state_mutability": "external"
Expand Down Expand Up @@ -2620,8 +2626,8 @@
"init_calldata": [],
"tag": "flippyflop-game",
"systems": [
"lock_game",
"unlock_game"
"lock",
"unlock"
],
"manifest_name": "flippyflop-game-23e1ad43"
}
Expand Down
23 changes: 12 additions & 11 deletions manifests/dev/deployment/manifest.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[world]
kind = "WorldContract"
class_hash = "0x3d5a55872f626e15bc19b25028141edf707652ccf3f7b1252d308517edd816d"
original_class_hash = "0x3d5a55872f626e15bc19b25028141edf707652ccf3f7b1252d308517edd816d"
class_hash = "0x79b9624eacd7b74e31db18b10fddbd73c010b85cd1b1f56028c24bafa0b1487"
original_class_hash = "0x79b9624eacd7b74e31db18b10fddbd73c010b85cd1b1f56028c24bafa0b1487"
abi = "manifests/dev/deployment/abis/dojo-world.json"
address = "0x35819a8df0a85781f9d8793ea1b3163e94812d41707a21a6fb586d00e5f7a16"
transaction_hash = "0xb1dadb96fa5c3ba9669be4dde41cf58d63557a1f685159e935a1d5fe204bab"
address = "0x590912ee790b7f8211893544bca0742753de0729088d8f1f2e846056670c24c"
transaction_hash = "0x864800688fd52f023a5abb1f2f3d1080e1343f1356b157091f30795bd9f90e"
block_number = 3
seed = "flippyflop-katana"
manifest_name = "dojo-world"
Expand All @@ -23,7 +23,7 @@ manifest_name = "dojo-base"

[[contracts]]
kind = "DojoContract"
address = "0x59b976a841da5205c6129711d742382d7a3cfd1e3e03cfc62a5eb666393d5d8"
address = "0x495548f90cb20886b2e910ceb6b02919db5d291098395353ac253ce4b8d0f10"
class_hash = "0x7c94aef06e9d76934f52e2abaa8e990dd530472a0e554ef916266acb628c946"
original_class_hash = "0x7c94aef06e9d76934f52e2abaa8e990dd530472a0e554ef916266acb628c946"
base_class_hash = "0x2427dd10a58850ac9a5ca6ce04b7771b05330fd18f2e481831ad903b969e6b2"
Expand All @@ -47,7 +47,7 @@ manifest_name = "flippyflop-Flip-6bd3ed9d"

[[contracts]]
kind = "DojoContract"
address = "0x2728baa5c7de0dc4b2fd20d71b76edcfb201924f45e11a52906e1fd22293dbd"
address = "0x1466f792e0394729ebfe0fc3dc8d95ff5eeabf56e0e4fc329bab60851f3bbea"
class_hash = "0x4b4721d434ce198b907c12463c98a0c437abbf13fc239ffe7393d0adede908"
original_class_hash = "0x4b4721d434ce198b907c12463c98a0c437abbf13fc239ffe7393d0adede908"
base_class_hash = "0x2427dd10a58850ac9a5ca6ce04b7771b05330fd18f2e481831ad903b969e6b2"
Expand All @@ -56,6 +56,7 @@ reads = []
writes = [
"flippyflop-Tile",
"flippyflop-Game",
"flippyflop-Claim",
"flippyflop-ERC20MetadataModel",
"flippyflop-ERC20BalanceModel",
"flippyflop-ERC20AllowanceModel",
Expand All @@ -73,18 +74,18 @@ manifest_name = "flippyflop-actions-4407e5f5"

[[contracts]]
kind = "DojoContract"
address = "0x15305fffbbb7c68cd216912de18257d33645c5e0a70b4f45dd12c15840355ea"
class_hash = "0x4dba281a1041e66220d62f9df916c03fc0b4c8c19014f9db368c2f5a0c15bad"
original_class_hash = "0x4dba281a1041e66220d62f9df916c03fc0b4c8c19014f9db368c2f5a0c15bad"
address = "0x68f97643254ba8b4f111955872d22cdf840661bb8ebf0ef23d3d4b703228748"
class_hash = "0x192db261dca4aa58ce197a2947f7b0af929b582fe317688f67c19941b41e1a3"
original_class_hash = "0x192db261dca4aa58ce197a2947f7b0af929b582fe317688f67c19941b41e1a3"
base_class_hash = "0x2427dd10a58850ac9a5ca6ce04b7771b05330fd18f2e481831ad903b969e6b2"
abi = "manifests/dev/deployment/abis/contracts/flippyflop-game-23e1ad43.json"
reads = []
writes = ["flippyflop-Game"]
init_calldata = []
tag = "flippyflop-game"
systems = [
"lock_game",
"unlock_game",
"lock",
"unlock",
]
manifest_name = "flippyflop-game-23e1ad43"

Expand Down
Loading

0 comments on commit 4c19d97

Please sign in to comment.