Skip to content

Commit

Permalink
chore: cleanup, structure improvments, simplified build scripts, remo…
Browse files Browse the repository at this point in the history
…ve git submodules
  • Loading branch information
xadahiya committed Sep 25, 2024
1 parent 3b8dcc6 commit f805cd5
Show file tree
Hide file tree
Showing 23 changed files with 174 additions and 567 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
release:
types: ['published']
push:
branches: [ "dockerify", "testnet_pretask", "testnet_5_pairs", "zkevm_quests", "eth_uniswapv2"]
branches: [ "dockerify"]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
Expand All @@ -19,7 +19,7 @@ env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: powerloom/pooler
IMAGE_NAME: powerloom/snapshotter-core


jobs:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ uniswapTokenData
config/*settings.json
**/*.backup
.vscode/*
snapshotter-lite-local-collector
config
computes
7 changes: 0 additions & 7 deletions .gitmodules

This file was deleted.

Empty file modified Dockerfile
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ https://github.com/PowerLoom/pooler/blob/d8b7be32ad329e8dcf0a7e5c1b27862894bc990
"projectId": "pairContract_trade_volume"
},
"processor": {
"module": "snapshotter.modules.computes.aggregate.single_uniswap_trade_volume_24h",
"module": "computes.aggregate.single_uniswap_trade_volume_24h",
"class_name": "AggregateTradeVolumeProcessor"
}
}
Expand Down
31 changes: 31 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash
source .env
rm -rf logs/snapshotter/*;
rm -rf logs/local-collector/*;

if [ "$SNAPSHOT_CONFIG_REPO" ]; then
echo "Found SNAPSHOT_CONFIG_REPO ${SNAPSHOT_CONFIG_REPO}";
rm -rf config;
git clone $SNAPSHOT_CONFIG_REPO config;
cd config;
if [ "$SNAPSHOT_CONFIG_REPO_BRANCH" ]; then
echo "Found SNAPSHOT_CONFIG_REPO_BRANCH ${SNAPSHOT_CONFIG_REPO_BRANCH}";
git checkout $SNAPSHOT_CONFIG_REPO_BRANCH;
fi
cd ../;
fi

if [ "$SNAPSHOTTER_COMPUTE_REPO" ]; then
echo "Found SNAPSHOTTER_COMPUTE_REPO ${SNAPSHOTTER_COMPUTE_REPO}";
rm -rf snapshotter/modules/computes;
cd snapshotter/modules/;
git clone $SNAPSHOTTER_COMPUTE_REPO computes;
cd computes;
if [ "$SNAPSHOTTER_COMPUTE_REPO_BRANCH" ]; then
echo "Found SNAPSHOTTER_COMPUTE_REPO_BRANCH ${SNAPSHOTTER_COMPUTE_REPO_BRANCH}";
git checkout $SNAPSHOTTER_COMPUTE_REPO_BRANCH;
fi
cd ../../../;
fi

echo "bootstrapping complete!";
214 changes: 0 additions & 214 deletions build-dev.sh

This file was deleted.

1 change: 0 additions & 1 deletion build-docker.sh

This file was deleted.

Loading

0 comments on commit f805cd5

Please sign in to comment.