Correct name of env variable

pull/342/head
kompotkot 2021-11-08 15:30:11 +00:00
rodzic 731f74d508
commit 1a14005101
3 zmienionych plików z 11 dodań i 10 usunięć

Wyświetl plik

@ -20,7 +20,7 @@ from ..reporter import reporter
from ..settings import (
MOONSTREAM_APPLICATION_ID,
bugout_client as bc,
MOONSTREAM_SMARTCONTRACTS_ABI_BUCKET,
AWS_S3_SMARTCONTRACTS_ABI_BUCKET,
)
from ..web3_provider import yield_web3_provider
@ -120,7 +120,7 @@ async def add_subscription_handler(
)
s3_client = boto3.client("s3")
bucket = MOONSTREAM_SMARTCONTRACTS_ABI_BUCKET
bucket = AWS_S3_SMARTCONTRACTS_ABI_BUCKET
result_bytes = abi.encode("utf-8")
result_key = f"v1/{resource.resource_data['address']}/{resource.id}/abi.json"
@ -137,7 +137,7 @@ async def add_subscription_handler(
update_resource["abi"] = True
update_resource["bucket"] = MOONSTREAM_SMARTCONTRACTS_ABI_BUCKET
update_resource["bucket"] = AWS_S3_SMARTCONTRACTS_ABI_BUCKET
update_resource[
"s3_path"
] = f"v1/{resource.resource_data['address']}/{resource.id}/abi.json"
@ -297,7 +297,7 @@ async def update_subscriptions_handler(
s3_client = boto3.client("s3")
bucket = MOONSTREAM_SMARTCONTRACTS_ABI_BUCKET
bucket = AWS_S3_SMARTCONTRACTS_ABI_BUCKET
result_bytes = abi.encode("utf-8")
result_key = f"v1/{subscription_resource.resource_data['address']}/{subscription_resource.id}/abi.json"
@ -312,7 +312,7 @@ async def update_subscriptions_handler(
update["abi"] = True
update["bucket"] = MOONSTREAM_SMARTCONTRACTS_ABI_BUCKET
update["bucket"] = AWS_S3_SMARTCONTRACTS_ABI_BUCKET
update[
"s3_path"
] = f"v1/{subscription_resource.resource_data['address']}/{subscription_resource.id}/abi.json"

Wyświetl plik

@ -65,8 +65,8 @@ MOONSTREAM_NODE_ETHEREUM_IPC_PORT = os.environ.get(
"MOONSTREAM_NODE_ETHEREUM_IPC_PORT", 8545
)
MOONSTREAM_SMARTCONTRACTS_ABI_BUCKET = os.environ.get(
"MOONSTREAM_SMARTCONTRACTS_ABI_BUCKET"
)
if MOONSTREAM_SMARTCONTRACTS_ABI_BUCKET is None:
raise ValueError("MOONSTREAM_SMARTCONTRACTS_ABI_BUCKET is not set")
AWS_S3_SMARTCONTRACTS_ABI_BUCKET = os.environ.get("AWS_S3_SMARTCONTRACTS_ABI_BUCKET")
if AWS_S3_SMARTCONTRACTS_ABI_BUCKET is None:
raise ValueError(
"AWS_S3_SMARTCONTRACTS_ABI_BUCKET environment variable must be set"
)

Wyświetl plik

@ -7,6 +7,7 @@ export MOONSTREAM_ADMIN_ACCESS_TOKEN="<Access token to application resources>"
export MOONSTREAM_INTERNAL_HOSTED_ZONE_ID="<moonstream_internal_hosted_zone_id>"
export MOONSTREAM_ETHEREUM_WEB3_PROVIDER_URI="<connection_path_uri_to_ethereum_node>"
export AWS_S3_SMARTCONTRACT_BUCKET="<AWS S3 bucket to store smart contracts>"
export AWS_S3_SMARTCONTRACTS_ABI_BUCKET="<AWS S3 bucket to store smart contracts ABI>"
export BUGOUT_BROOD_URL="https://auth.bugout.dev"
export BUGOUT_SPIRE_URL="https://spire.bugout.dev"
export HUMBUG_REPORTER_BACKEND_TOKEN="<Bugout Humbug token for crash reports>"