Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ptisserand/workshop-template
Template for starknet.dart workshop
https://github.com/ptisserand/workshop-template
Last synced: about 1 month ago
JSON representation
Template for starknet.dart workshop
- Host: GitHub
- URL: https://github.com/ptisserand/workshop-template
- Owner: ptisserand
- Created: 2023-07-19T16:52:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-20T10:15:08.000Z (over 1 year ago)
- Last Synced: 2024-04-14T20:06:59.176Z (7 months ago)
- Language: Dart
- Size: 81.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Template for starknet.dart workshop
## Dependencies
- [scarb](https://docs.swmansion.com/scarb)
- [starkli](https://book.starkli.rs/)
- [poetry](https://python-poetry.org/)
### Version management:
Scarb version is managed with [asdf](https://asdf-vm.com/guide/getting-started.html)
Python is managed with [pyenv](https://github.com/pyenv/pyenv)## Directories
### app
Contains `pubspec_overrides.yaml` to force `starknet` and `starknet_builder` coming from github.
### contracts
Contains source code for Cairo contract
### devnet
Contains setup to run a local devnet.
To start devnet:
```
$ make devnet
```If you have an issue when declaring a contract, it could be related to permission of starknet compiler in cairo-lang package.
You can run the following command to fix it:
```
make fixup
```The path to directory containing starknet compilers when using poetry should be:
`${HOME}/.cache/pypoetry/virtualenvs/${env_name}/lib/${python_version}/site-packages/starkware/starknet/compiler/v1/bin`### tool
Contains a dart script to extract ABI part from a Sierra json file.
Usage:
```
$ dart pub get
$ dart run ./bin/extract_sierra_json.dart --input SIERRA.json --output ABI.json
```