kopia lustrzana https://github.com/bugout-dev/moonstream
Black format
rodzic
dc08573174
commit
b969e01b1c
|
@ -47,11 +47,7 @@ app.add_middleware(
|
|||
|
||||
whitelist_paths: Dict[str, str] = {}
|
||||
whitelist_paths.update(DOCS_PATHS)
|
||||
whitelist_paths.update(
|
||||
{
|
||||
"/subscriptions/types": "GET"
|
||||
}
|
||||
)
|
||||
whitelist_paths.update({"/subscriptions/types": "GET"})
|
||||
app.add_middleware(BroodAuthMiddleware, whitelist=whitelist_paths)
|
||||
|
||||
|
||||
|
|
|
@ -16,13 +16,9 @@ MOONSTREAM_DATA_JOURNAL_ID = os.environ.get("MOONSTREAM_DATA_JOURNAL_ID")
|
|||
if MOONSTREAM_DATA_JOURNAL_ID is None:
|
||||
raise ValueError("MOONSTREAM_DATA_JOURNAL_ID environment variable must be set")
|
||||
|
||||
MOONSTREAM_ADMIN_ACCESS_TOKEN = os.environ.get(
|
||||
"MOONSTREAM_ADMIN_ACCESS_TOKEN"
|
||||
)
|
||||
MOONSTREAM_ADMIN_ACCESS_TOKEN = os.environ.get("MOONSTREAM_ADMIN_ACCESS_TOKEN")
|
||||
if MOONSTREAM_ADMIN_ACCESS_TOKEN is None:
|
||||
raise ValueError(
|
||||
"MOONSTREAM_ADMIN_ACCESS_TOKEN environment variable must be set"
|
||||
)
|
||||
raise ValueError("MOONSTREAM_ADMIN_ACCESS_TOKEN environment variable must be set")
|
||||
|
||||
# Origin
|
||||
RAW_ORIGINS = os.environ.get("MOONSTREAM_CORS_ALLOWED_ORIGINS")
|
||||
|
|
|
@ -177,6 +177,7 @@ def crawl_blocks_executor(
|
|||
for error in errors:
|
||||
print(f"- {error}")
|
||||
|
||||
|
||||
def process_contract_deployments() -> List[Tuple[str, str]]:
|
||||
"""
|
||||
Checks for new smart contracts that have been deployed to the blockchain but not registered in
|
||||
|
|
Ładowanie…
Reference in New Issue