This is an experimental repo, testing blending the Frontend / Sveltle work that needs refactoring and changing around, houdini, graphQL, Staknet libs etc. with the smart contracts / Backend.
Ultimately this repo will be removed and the two seperate FE / BE repos will be where the project rests.
But for now if you want to check this out:-
You will need to pull the submodule containing the cairo code, either:
git clone --recurse-submodules [email protected]:ArchetypalTech/TheOrugginTrail-DoJo.git
or assuming you cloned this without the --recurse-submodules
flag
git submodule init && git submodules update
it's a cairo/starknet/rust project
it uses the Dojo Framework so you'll need a working install of that tooling.
the best way to do this is using asdf
asdf getting started
install the dojo stuff you need using asdf dojo asdf that should give you the dojo-plugin.
now install dojo, ND you need the dojo-plugin installed by the above link for this to work.
asdf install dojo 0.7.2
you also need scarb
asdf install scarb 2.5.4
you should now have the right versions of the tools installed and you can check by running
asdf current
at the root of the repo.
you should see:
dojo 0.7.2 some/path/...
scarb 2.5.4 some/path/...
it will also say no version set for starknet-foundry but this seems not to matter.
now prepare to die from fun!
from the root of the project pnpm deploy:local
if you want to monitor the backgrounded processes use mprocs
so from the output of the above command look for the 2 l_path's and then:
mprocs "tail -f <l_pathForKatana>" "tail -f <l_pathForTorii>"
that will tail both logs into your terminal.
Then call the output contract
sozo execute --manifest-path ./tot-dojo/Scarb.toml the_oruggin_trail::systems::outputter::outputter updateOutput --calldata str:"foo"
NOTE if you are running in the root then you will need the --manifest-path