Schematic initial setup

pull/604/head
kompotkot 2022-05-10 11:28:24 +00:00
rodzic bcb5214a84
commit 18b5665c93
3 zmienionych plików z 57 dodań i 0 usunięć

4
db/.gitignore vendored
Wyświetl plik

@ -186,3 +186,7 @@ alembic.dev.ini
alembic.prod.ini
alembic.moonstreamdb.ini
alembic.docker.ini
# Schematic
srv/*
.schematic.env

29
db/scm.nix 100644
Wyświetl plik

@ -0,0 +1,29 @@
with builtins;
let
scm_repos = [
(getEnv "SCM_GIT")
(fetchGit {
url = "git@gitlab.com:deltaex/schematic.git";
rev = "0d9227335ad83e0ed9a62d82375c1e85aadcc08d";
})
];
scm_repo = head (filter (x: x != "") scm_repos);
scm = (import scm_repo {
verbose = true;
repos = [
"."
(getEnv "MDP_GIT")
(fetchGit {
url = "git@gitlab.com:mixrank/mdp.git";
rev = "e40498c4c8098f1e5f932ed1425623aec2752945";
allRefs = true;
})
] ++ scm_repos;
});
in rec {
schematic = scm.shell.overrideAttrs ( oldAttrs : {
shellHook = oldAttrs.shellHook + ''
[ -n "$ENV" -a "$ENV" != "dev" ] && export BUGSNAG=2b987ca13cd93a4931bb746aace204fb
'';
});
}

24
db/sync_conf.yml 100644
Wyświetl plik

@ -0,0 +1,24 @@
- namespace: public
tablename: alembic_exploration_version
included: false
- namespace: public
tablename: esd_event_signatures
- namespace: public
tablename: esd_function_signatures
- namespace: public
tablename: ethereum_blocks
- namespace: public
tablename: ethereum_labels
- namespace: public
tablename: ethereum_labels_v1
included: false
- namespace: public
tablename: ethereum_transactions
- namespace: public
tablename: opensea_crawler_state
- namespace: public
tablename: polygon_blocks
- namespace: public
tablename: polygon_labels
- namespace: public
tablename: polygon_transactions