Skip to content

Commit

Permalink
Update project templates
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Jan 5, 2025
1 parent a348a0a commit e3b84cc
Show file tree
Hide file tree
Showing 122 changed files with 398 additions and 176 deletions.
4 changes: 2 additions & 2 deletions src/demo_blank/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ all: ## Run an entire CI pipeline
##

install: ## Install dependencies
pdm install
uv sync --all-extras --all-groups

update: ## Update dependencies
pdm update
dipdup self update -q
uv sync --all-extras --all-groups

format: ## Format with all tools
make black
Expand Down
4 changes: 2 additions & 2 deletions src/demo_blank/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ docker-compose up
To set up the development environment:

```shell
pdm install
$(pdm venv activate)
make install
source .venv/bin/activate
```

Run `make all` to run full CI check or `make help` to see other available commands.
12 changes: 11 additions & 1 deletion src/demo_blank/configs/dipdup.sqlite.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
database:
kind: sqlite
path: ${SQLITE_PATH:-/tmp/demo_blank.sqlite}
path: ${SQLITE_PATH:-/tmp/demo_blank.sqlite}

sentry:
dsn: ${SENTRY_DSN:-''}
environment: ${SENTRY_ENVIRONMENT:-''}

prometheus:
host: 0.0.0.0

api:
host: 0.0.0.0
2 changes: 1 addition & 1 deletion src/demo_blank/configs/replay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ replay:
postgres_data_path: /var/lib/postgresql/data
hasura_image: hasura/graphql-engine:latest
line_length: 120
package_manager: pdm
package_manager: uv
2 changes: 2 additions & 0 deletions src/demo_blank/deploy/sqlite.env.default
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# This env file was generated automatically by DipDup. Do not edit it!
# Create a copy with .env extension, fill it with your values and run DipDup with `--env-file` option.
#
SENTRY_DSN=''
SENTRY_ENVIRONMENT=''
SQLITE_PATH=/tmp/demo_blank.sqlite
2 changes: 1 addition & 1 deletion src/demo_blank/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies = [
"dipdup>=8,<9",
]

[tool.pdm.dev-dependencies]
[dependency-groups]
dev = [
"black",
"ruff",
Expand Down
4 changes: 2 additions & 2 deletions src/demo_evm_events/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ all: ## Run an entire CI pipeline
##

install: ## Install dependencies
pdm install
uv sync --all-extras --all-groups

update: ## Update dependencies
pdm update
dipdup self update -q
uv sync --all-extras --all-groups

format: ## Format with all tools
make black
Expand Down
4 changes: 2 additions & 2 deletions src/demo_evm_events/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ docker-compose up
To set up the development environment:

```shell
pdm install
$(pdm venv activate)
make install
source .venv/bin/activate
```

Run `make all` to run full CI check or `make help` to see other available commands.
12 changes: 11 additions & 1 deletion src/demo_evm_events/configs/dipdup.sqlite.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
database:
kind: sqlite
path: ${SQLITE_PATH:-/tmp/demo_evm_events.sqlite}
path: ${SQLITE_PATH:-/tmp/demo_evm_events.sqlite}

sentry:
dsn: ${SENTRY_DSN:-''}
environment: ${SENTRY_ENVIRONMENT:-''}

prometheus:
host: 0.0.0.0

api:
host: 0.0.0.0
2 changes: 1 addition & 1 deletion src/demo_evm_events/configs/replay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ replay:
postgres_data_path: /var/lib/postgresql/data
hasura_image: hasura/graphql-engine:latest
line_length: 120
package_manager: pdm
package_manager: uv
2 changes: 2 additions & 0 deletions src/demo_evm_events/deploy/sqlite.env.default
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ ETHERSCAN_URL=https://api.etherscan.io/api
NODE_API_KEY=''
NODE_URL=https://eth-mainnet.g.alchemy.com/v2
NODE_WS_URL=wss://eth-mainnet.g.alchemy.com/v2
SENTRY_DSN=''
SENTRY_ENVIRONMENT=''
SQLITE_PATH=/tmp/demo_evm_events.sqlite
SUBSQUID_URL=https://v2.archive.subsquid.io/network/ethereum-mainnet
2 changes: 1 addition & 1 deletion src/demo_evm_events/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies = [
"dipdup>=8,<9",
]

[tool.pdm.dev-dependencies]
[dependency-groups]
dev = [
"black",
"ruff",
Expand Down
4 changes: 2 additions & 2 deletions src/demo_evm_transactions/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ all: ## Run an entire CI pipeline
##

install: ## Install dependencies
pdm install
uv sync --all-extras --all-groups

update: ## Update dependencies
pdm update
dipdup self update -q
uv sync --all-extras --all-groups

format: ## Format with all tools
make black
Expand Down
4 changes: 2 additions & 2 deletions src/demo_evm_transactions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ docker-compose up
To set up the development environment:

```shell
pdm install
$(pdm venv activate)
make install
source .venv/bin/activate
```

Run `make all` to run full CI check or `make help` to see other available commands.
12 changes: 11 additions & 1 deletion src/demo_evm_transactions/configs/dipdup.sqlite.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
database:
kind: sqlite
path: ${SQLITE_PATH:-/tmp/demo_evm_transactions.sqlite}
path: ${SQLITE_PATH:-/tmp/demo_evm_transactions.sqlite}

sentry:
dsn: ${SENTRY_DSN:-''}
environment: ${SENTRY_ENVIRONMENT:-''}

prometheus:
host: 0.0.0.0

api:
host: 0.0.0.0
2 changes: 1 addition & 1 deletion src/demo_evm_transactions/configs/replay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ replay:
postgres_data_path: /var/lib/postgresql/data
hasura_image: hasura/graphql-engine:latest
line_length: 120
package_manager: pdm
package_manager: uv
2 changes: 2 additions & 0 deletions src/demo_evm_transactions/deploy/sqlite.env.default
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ ETHERSCAN_URL=https://api.etherscan.io/api
NODE_API_KEY=''
NODE_URL=https://eth-mainnet.g.alchemy.com/v2
NODE_WS_URL=wss://eth-mainnet.g.alchemy.com/v2
SENTRY_DSN=''
SENTRY_ENVIRONMENT=''
SQLITE_PATH=/tmp/demo_evm_transactions.sqlite
SUBSQUID_URL=https://v2.archive.subsquid.io/network/ethereum-mainnet
2 changes: 1 addition & 1 deletion src/demo_evm_transactions/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies = [
"dipdup>=8,<9",
]

[tool.pdm.dev-dependencies]
[dependency-groups]
dev = [
"black",
"ruff",
Expand Down
4 changes: 2 additions & 2 deletions src/demo_evm_uniswap/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ all: ## Run an entire CI pipeline
##

install: ## Install dependencies
pdm install
uv sync --all-extras --all-groups

update: ## Update dependencies
pdm update
dipdup self update -q
uv sync --all-extras --all-groups

format: ## Format with all tools
make black
Expand Down
4 changes: 2 additions & 2 deletions src/demo_evm_uniswap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ docker-compose up
To set up the development environment:

```shell
pdm install
$(pdm venv activate)
make install
source .venv/bin/activate
```

Run `make all` to run full CI check or `make help` to see other available commands.
12 changes: 11 additions & 1 deletion src/demo_evm_uniswap/configs/dipdup.sqlite.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
database:
kind: sqlite
path: ${SQLITE_PATH:-/tmp/demo_evm_uniswap.sqlite}
path: ${SQLITE_PATH:-/tmp/demo_evm_uniswap.sqlite}

sentry:
dsn: ${SENTRY_DSN:-''}
environment: ${SENTRY_ENVIRONMENT:-''}

prometheus:
host: 0.0.0.0

api:
host: 0.0.0.0
2 changes: 1 addition & 1 deletion src/demo_evm_uniswap/configs/replay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ replay:
postgres_data_path: /home/postgres/pgdata/data
hasura_image: hasura/graphql-engine:latest
line_length: 120
package_manager: pdm
package_manager: uv
2 changes: 2 additions & 0 deletions src/demo_evm_uniswap/deploy/sqlite.env.default
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ ETHERSCAN_URL=https://api.etherscan.io/api
NODE_API_KEY=''
NODE_URL=https://eth-mainnet.g.alchemy.com/v2
NODE_WS_URL=wss://eth-mainnet.g.alchemy.com/v2
SENTRY_DSN=''
SENTRY_ENVIRONMENT=''
SQLITE_PATH=/tmp/demo_evm_uniswap.sqlite
SUBSQUID_URL=https://v2.archive.subsquid.io/network/ethereum-mainnet
2 changes: 1 addition & 1 deletion src/demo_evm_uniswap/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies = [
"dipdup>=8,<9",
]

[tool.pdm.dev-dependencies]
[dependency-groups]
dev = [
"black",
"ruff",
Expand Down
4 changes: 2 additions & 2 deletions src/demo_starknet_events/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ all: ## Run an entire CI pipeline
##

install: ## Install dependencies
pdm install
uv sync --all-extras --all-groups

update: ## Update dependencies
pdm update
dipdup self update -q
uv sync --all-extras --all-groups

format: ## Format with all tools
make black
Expand Down
4 changes: 2 additions & 2 deletions src/demo_starknet_events/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ docker-compose up
To set up the development environment:

```shell
pdm install
$(pdm venv activate)
make install
source .venv/bin/activate
```

Run `make all` to run full CI check or `make help` to see other available commands.
12 changes: 11 additions & 1 deletion src/demo_starknet_events/configs/dipdup.sqlite.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
database:
kind: sqlite
path: ${SQLITE_PATH:-/tmp/demo_starknet_events.sqlite}
path: ${SQLITE_PATH:-/tmp/demo_starknet_events.sqlite}

sentry:
dsn: ${SENTRY_DSN:-''}
environment: ${SENTRY_ENVIRONMENT:-''}

prometheus:
host: 0.0.0.0

api:
host: 0.0.0.0
2 changes: 1 addition & 1 deletion src/demo_starknet_events/configs/replay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ replay:
postgres_data_path: /var/lib/postgresql/data
hasura_image: hasura/graphql-engine:latest
line_length: 120
package_manager: pdm
package_manager: uv
2 changes: 2 additions & 0 deletions src/demo_starknet_events/deploy/sqlite.env.default
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
#
NODE_API_KEY=''
NODE_URL=https://starknet-mainnet.g.alchemy.com/v2
SENTRY_DSN=''
SENTRY_ENVIRONMENT=''
SQLITE_PATH=/tmp/demo_starknet_events.sqlite
SUBSQUID_URL=https://v2.archive.subsquid.io/network/starknet-mainnet
2 changes: 1 addition & 1 deletion src/demo_starknet_events/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies = [
"dipdup>=8,<9",
]

[tool.pdm.dev-dependencies]
[dependency-groups]
dev = [
"black",
"ruff",
Expand Down
4 changes: 2 additions & 2 deletions src/demo_substrate_events/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ all: ## Run an entire CI pipeline
##

install: ## Install dependencies
pdm install
uv sync --all-extras --all-groups

update: ## Update dependencies
pdm update
dipdup self update -q
uv sync --all-extras --all-groups

format: ## Format with all tools
make black
Expand Down
4 changes: 2 additions & 2 deletions src/demo_substrate_events/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ docker-compose up
To set up the development environment:

```shell
pdm install
$(pdm venv activate)
make install
source .venv/bin/activate
```

Run `make all` to run full CI check or `make help` to see other available commands.
3 changes: 1 addition & 2 deletions src/demo_substrate_events/abi/assethub/v601.json
Original file line number Diff line number Diff line change
Expand Up @@ -2474,8 +2474,7 @@
"Twox64Concat"
],
"key_vec": [
"[U8; 4]",
"Vec<U8>"
"Tuple:[U8; 4]Vec<U8>"
],
"value": "AccountId",
"keys_id": 178,
Expand Down
3 changes: 1 addition & 2 deletions src/demo_substrate_events/abi/assethub/v700.json
Original file line number Diff line number Diff line change
Expand Up @@ -2460,8 +2460,7 @@
"Twox64Concat"
],
"key_vec": [
"[U8; 4]",
"Vec<U8>"
"Tuple:[U8; 4]Vec<U8>"
],
"value": "AccountId",
"keys_id": 176,
Expand Down
12 changes: 11 additions & 1 deletion src/demo_substrate_events/configs/dipdup.sqlite.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
database:
kind: sqlite
path: ${SQLITE_PATH:-/tmp/demo_substrate_events.sqlite}
path: ${SQLITE_PATH:-/tmp/demo_substrate_events.sqlite}

sentry:
dsn: ${SENTRY_DSN:-''}
environment: ${SENTRY_ENVIRONMENT:-''}

prometheus:
host: 0.0.0.0

api:
host: 0.0.0.0
2 changes: 1 addition & 1 deletion src/demo_substrate_events/configs/replay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ replay:
postgres_data_path: /var/lib/postgresql/data
hasura_image: hasura/graphql-engine:latest
line_length: 120
package_manager: pdm
package_manager: uv
Loading

0 comments on commit e3b84cc

Please sign in to comment.