-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add cainome abigen to sozo * feat: add cainome abigen to torii * fix: adjust test and fmt * fix: remove additional calldata input * feat(katana-rpc): add ContractErrorData when it applies * fix: fix tests * fix: adjust indexes for executor call results * fix: restore Scarb.lock and add .tool-versions * chore: bump cainome to 0.1.5 * fix: embed world and executor ABI in .git * chore: bump cainome to 0.1.7 * chore: update Scarb.lock * docs: update README for contract ABI * fix: fmt clippy from merge * fix: fix PR comments * fix: fix typo after test being run * fix: fix Scarb.lock version
- Loading branch information
Showing
22 changed files
with
1,046 additions
and
381 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
scarb 2.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Embedded ABI for contracts | ||
|
||
Currently, the ABIs for `world` and `executor` are embedded in the repo. | ||
To build them, consider the following: | ||
|
||
1. Change directory into `examples/spawn-and-move` at the root of the workspace. | ||
2. Build the example with `sozo`. | ||
3. Extract the ABI key only for `world` and `executor`: | ||
``` | ||
sozo build | ||
jq .abi ./target/dev/dojo\:\:world\:\:world.json > ../../crates/dojo-world/src/contracts/abi/world.json | ||
jq .abi ./target/dev/dojo\:\:executor\:\:executor.json > ../../crates/dojo-world/src/contracts/abi/executor.json | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
[ | ||
{ | ||
"type": "impl", | ||
"name": "Executor", | ||
"interface_name": "dojo::executor::IExecutor" | ||
}, | ||
{ | ||
"type": "struct", | ||
"name": "core::array::Span::<core::felt252>", | ||
"members": [ | ||
{ | ||
"name": "snapshot", | ||
"type": "@core::array::Array::<core::felt252>" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "interface", | ||
"name": "dojo::executor::IExecutor", | ||
"items": [ | ||
{ | ||
"type": "function", | ||
"name": "call", | ||
"inputs": [ | ||
{ | ||
"name": "class_hash", | ||
"type": "core::starknet::class_hash::ClassHash" | ||
}, | ||
{ | ||
"name": "entrypoint", | ||
"type": "core::felt252" | ||
}, | ||
{ | ||
"name": "calldata", | ||
"type": "core::array::Span::<core::felt252>" | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"type": "core::array::Span::<core::felt252>" | ||
} | ||
], | ||
"state_mutability": "view" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "event", | ||
"name": "dojo::executor::executor::Event", | ||
"kind": "enum", | ||
"variants": [] | ||
} | ||
] |
Oops, something went wrong.