Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrencev committed Dec 9, 2024
0 parents commit 4187ae7
Show file tree
Hide file tree
Showing 68 changed files with 12,490 additions and 0 deletions.
187 changes: 187 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
# StarkNet / Cairo
artifacts/abis/*.json
artifacts/*.json

/.vscode

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env.local
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
.DS_Store

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

node_modules/
.next

*.tsbuildinfo

.turbo

**/.pnpm-debug.log*

**/storybook-static/

# vite
**/vite.config.*.timestamp-*

**/.venv
**/__pycache__

# Generated by Cargo
# will have compiled files and executables
**/debug/
**/target/
**/abi/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
**/*.pdb

# Scarb
**/Scarb.lock

# StarkNet Foundry
**/.snfoundry_cache/

# IDEs and editors
**/.vscode/
**/.idea/

# Logs
**/log/

lcov.info

account.json
keystore.json
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# @cartridge/controller-presets

This package contains preset configurations for Cartridge Controller themes and session scopes.

## Overview

The presets package provides ready-to-use configurations for:

- Controller themes (colors, icons, branding)
- Session scopes and permissions
- ERC20 token metadata

## Adding a preset

The configs are auto-generated from source files. To update:

1. Modify the source files in `src/`
2. Run `pnpm build` to build the package
11 changes: 11 additions & 0 deletions configs/blob-arena/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"origin": "https://www.blobarena.xyz",
"theme": {
"colors": {
"primary": "#980f06"
},
"cover": "/whitelabel/blob-arena/cover.png",
"icon": "/whitelabel/blob-arena/icon.png",
"name": "Blob Arena"
}
}
Binary file added configs/blob-arena/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added configs/blob-arena/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions configs/cartridge/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"origin": "*",
"theme": {
"name": "Cartridge",
"icon": "/whitelabel/cartridge/icon.svg",
"cover": {
"light": "/whitelabel/cartridge/cover-light.png",
"dark": "/whitelabel/cartridge/cover-dark.png"
}
}
}
Binary file added configs/cartridge/cover-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added configs/cartridge/cover-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added configs/cartridge/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions configs/cartridge/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions configs/dark-shuffle/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"origin": "https://darkshuffle.dev",
"theme": {
"colors": {
"primary": "#F59100"
},
"cover": "/whitelabel/dark-shuffle/cover.png",
"icon": "/whitelabel/dark-shuffle/icon.svg",
"name": "Dark Shuffle"
}
}
Binary file added configs/dark-shuffle/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions configs/dark-shuffle/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
84 changes: 84 additions & 0 deletions configs/dope-wars/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"origin": "dopewars.game",
"policies": {
"contracts": {
"0x051Fea4450Da9D6aeE758BDEbA88B2f665bCbf549D2C61421AA724E9AC0Ced8F": {
"name": "VRF Provider",
"description": "Provides verifiable random functions",
"methods": [
{
"name": "Request Random",
"description": "Request a random number",
"entrypoint": "request_random"
}
]
},
"0x0410466536b5ae074f7fea81e5533b8134a9fa08b3dd077dd9db08f64997d113": {
"name": "Paper Token",
"description": "Manages paper approvals",
"methods": [
{
"name": "Approve",
"description": "Approve paper usage",
"entrypoint": "approve"
}
]
},
"0x044a23BbfE03FFe90D3C23Fb6e5A8AD0341036C039363DfA6F3513278Aa51fCA": {
"name": "Game Contract",
"description": "Core game mechanics",
"methods": [
{
"name": "Create Game",
"description": "Start a new game",
"entrypoint": "create_game"
},
{
"name": "Travel",
"description": "Travel to a new location",
"entrypoint": "travel"
},
{
"name": "Decide",
"description": "Make a game decision",
"entrypoint": "decide"
},
{
"name": "End Game",
"description": "End the current game",
"entrypoint": "end_game"
}
]
},
"0x0412445e644070C69fEa16b964cC81Cd6dEBF6A4DBf683E2E9686a45ad088de8": {
"name": "Laundromat Contract",
"description": "Manages game scoring and laundering",
"methods": [
{
"name": "Register Score",
"description": "Register a game score",
"entrypoint": "register_score"
},
{
"name": "Claim",
"description": "Claim rewards",
"entrypoint": "claim"
},
{
"name": "Launder",
"description": "Launder resources",
"entrypoint": "launder"
}
]
}
}
},
"theme": {
"colors": {
"primary": "#11ED83"
},
"cover": "/whitelabel/dope-wars/cover.png",
"icon": "/whitelabel/dope-wars/icon.png",
"name": "Dope Wars"
}
}
Binary file added configs/dope-wars/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added configs/dope-wars/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4187ae7

Please sign in to comment.