kopia lustrzana https://github.com/bugout-dev/moonstream
Imx zkevm with it's sepolia for mapi
rodzic
3b4fee53cf
commit
ca8425fbfa
|
@ -37,6 +37,8 @@ export MOONSTREAM_BLAST_WEB3_PROVIDER_URI="https://<connection_path_uri_to_node>
|
|||
export MOONSTREAM_BLAST_SEPOLIA_WEB3_PROVIDER_URI="https://<connection_path_uri_to_node>"
|
||||
export MOONSTREAM_MANTLE_WEB3_PROVIDER_URI="https://<connection_path_uri_to_node>"
|
||||
export MOONSTREAM_MANTLE_SEPOLIA_WEB3_PROVIDER_URI="https://<connection_path_uri_to_node>"
|
||||
export MOONSTREAM_IMX_ZKEVM_WEB3_PROVIDER_URI="https://<connection_path_uri_to_node>"
|
||||
export MOONSTREAM_IMX_ZKEVM_SEPOLIA_WEB3_PROVIDER_URI="https://<connection_path_uri_to_node>"
|
||||
|
||||
export MOONSTREAM_QUERIES_JOURNAL_ID="<bugout_journal_id_where_store_queries_for_executing>"
|
||||
export MOONSTREAM_USAGE_REPORTS_JOURNAL_ID="<bugout_journal_id_where_save_generated_reports>"
|
||||
|
|
|
@ -238,6 +238,50 @@ CANONICAL_SUBSCRIPTION_TYPES = {
|
|||
stripe_price_id=None,
|
||||
active=True,
|
||||
),
|
||||
"mantle_smartcontract": SubscriptionTypeResourceData(
|
||||
id="mantle_smartcontract",
|
||||
name="Mantle smartcontract",
|
||||
blockchain="mantle",
|
||||
choices=["input:address", "tag:erc721"],
|
||||
description="Contracts events and tx_calls of contract of Mantle blockchain.",
|
||||
icon_url="https://static.simiotics.com/moonstream/assets/mantle-logo.png",
|
||||
stripe_product_id=None,
|
||||
stripe_price_id=None,
|
||||
active=True,
|
||||
),
|
||||
"mantle_sepolia_smartcontract": SubscriptionTypeResourceData(
|
||||
id="mantle_sepolia_smartcontract",
|
||||
name="Mantle Sepolia smartcontract",
|
||||
blockchain="mantle_sepolia",
|
||||
choices=["input:address", "tag:erc721"],
|
||||
description="Contracts events and tx_calls of contract of Mantle Sepolia blockchain.",
|
||||
icon_url="https://static.simiotics.com/moonstream/assets/mantle-sepolia-logo.png",
|
||||
stripe_product_id=None,
|
||||
stripe_price_id=None,
|
||||
active=True,
|
||||
),
|
||||
"imx_zkevm_smartcontract": SubscriptionTypeResourceData(
|
||||
id="imx_zkevm_smartcontract",
|
||||
name="Immutable zkEvm smartcontracts",
|
||||
blockchain="imx_zkevm",
|
||||
choices=["input:address", "tag:erc721"],
|
||||
description="Contracts events and tx_calls of contract of Immutable zkEvm blockchain",
|
||||
icon_url="https://static.simiotics.com/moonstream/assets/immutable-zkevm-icon-grey.png",
|
||||
stripe_product_id=None,
|
||||
stripe_price_id=None,
|
||||
active=True,
|
||||
),
|
||||
"imx_zkevm_sepolia_smartcontract": SubscriptionTypeResourceData(
|
||||
id="imx_zkevm_sepolia_smartcontract",
|
||||
name="Immutable zkEvm Sepolia smartcontracts",
|
||||
blockchain="imx_zkevm_sepolia",
|
||||
choices=["input:address", "tag:erc721"],
|
||||
description="Contracts events and tx_calls of contract of Immutable zkEvm Sepolia blockchain",
|
||||
icon_url="https://static.simiotics.com/moonstream/assets/immutable-zkevm-icon-grey.png",
|
||||
stripe_product_id=None,
|
||||
stripe_price_id=None,
|
||||
active=True,
|
||||
),
|
||||
"ethereum_blockchain": SubscriptionTypeResourceData(
|
||||
id="ethereum_blockchain",
|
||||
name="Ethereum transactions",
|
||||
|
@ -271,28 +315,6 @@ CANONICAL_SUBSCRIPTION_TYPES = {
|
|||
stripe_price_id=None,
|
||||
active=False,
|
||||
),
|
||||
"mantle_smartcontract": SubscriptionTypeResourceData(
|
||||
id="mantle_smartcontract",
|
||||
name="Mantle smartcontract",
|
||||
blockchain="mantle",
|
||||
choices=["input:address", "tag:erc721"],
|
||||
description="Contracts events and tx_calls of contract of Mantle blockchain.",
|
||||
icon_url="https://static.simiotics.com/moonstream/assets/mantle-logo.png",
|
||||
stripe_product_id=None,
|
||||
stripe_price_id=None,
|
||||
active=True,
|
||||
),
|
||||
"mantle_sepolia_smartcontract": SubscriptionTypeResourceData(
|
||||
id="mantle_sepolia_smartcontract",
|
||||
name="Mantle Sepolia smartcontract",
|
||||
blockchain="mantle_sepolia",
|
||||
choices=["input:address", "tag:erc721"],
|
||||
description="Contracts events and tx_calls of contract of Mantle Sepolia blockchain.",
|
||||
icon_url="https://static.simiotics.com/moonstream/assets/mantle-sepolia-logo.png",
|
||||
stripe_product_id=None,
|
||||
stripe_price_id=None,
|
||||
active=True,
|
||||
),
|
||||
"mumbai_blockchain": SubscriptionTypeResourceData(
|
||||
id="mumbai_blockchain",
|
||||
name="Mumbai transactions",
|
||||
|
@ -525,6 +547,39 @@ CANONICAL_SUBSCRIPTION_TYPES = {
|
|||
stripe_price_id=None,
|
||||
active=False,
|
||||
),
|
||||
"sepolia_blockchain": SubscriptionTypeResourceData(
|
||||
id="sepolia_blockchain",
|
||||
name="Sepolia transactions",
|
||||
blockchain="sepolia",
|
||||
choices=["input:address", "tag:erc721"],
|
||||
description="Sepolia chain transactions subscription.",
|
||||
icon_url="https://static.simiotics.com/moonstream/assets/ethereum/eth-diamond-purple.png",
|
||||
stripe_product_id=None,
|
||||
stripe_price_id=None,
|
||||
active=False,
|
||||
),
|
||||
"imx_zkevm_blockchain": SubscriptionTypeResourceData(
|
||||
id="imx_zkevm_blockchain",
|
||||
name="Immutable zkEvm transactions",
|
||||
blockchain="imx_zkevm",
|
||||
choices=["input:address", "tag:erc721"],
|
||||
description="Immutable zkEvm chain transactions subscription.",
|
||||
icon_url="https://static.simiotics.com/moonstream/assets/immutable-zkevm-icon-grey.png",
|
||||
stripe_product_id=None,
|
||||
stripe_price_id=None,
|
||||
active=False,
|
||||
),
|
||||
"imx_zkevm_sepolia_blockchain": SubscriptionTypeResourceData(
|
||||
id="imx_zkevm_sepolia_blockchain",
|
||||
name="Immutable zkEvm Sepolia transactions",
|
||||
blockchain="imx_zkevm_sepolia",
|
||||
choices=["input:address", "tag:erc721"],
|
||||
description="Immutable zkEvm Sepolia chain transactions subscription.",
|
||||
icon_url="https://static.simiotics.com/moonstream/assets/immutable-zkevm-icon-grey.png",
|
||||
stripe_product_id=None,
|
||||
stripe_price_id=None,
|
||||
active=False,
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -168,7 +168,6 @@ if MOONSTREAM_ZKSYNC_ERA_SEPOLIA_WEB3_PROVIDER_URI == "":
|
|||
"MOONSTREAM_ZKSYNC_ERA_SEPOLIA_WEB3_PROVIDER_URI env variable is not set"
|
||||
)
|
||||
|
||||
|
||||
MOONSTREAM_ARBITRUM_ONE_WEB3_PROVIDER_URI = os.environ.get(
|
||||
"MOONSTREAM_ARBITRUM_ONE_WEB3_PROVIDER_URI", ""
|
||||
)
|
||||
|
@ -252,6 +251,22 @@ if MOONSTREAM_MANTLE_SEPOLIA_WEB3_PROVIDER_URI == "":
|
|||
"MOONSTREAM_MANTLE_SEPOLIA_WEB3_PROVIDER_URI env variable is not set"
|
||||
)
|
||||
|
||||
MOONSTREAM_IMX_ZKEVM_WEB3_PROVIDER_URI = os.environ.get(
|
||||
"MOONSTREAM_IMX_ZKEVM_WEB3_PROVIDER_URI", ""
|
||||
)
|
||||
if MOONSTREAM_IMX_ZKEVM_WEB3_PROVIDER_URI == "":
|
||||
raise ValueError(
|
||||
"MOONSTREAM_IMX_ZKEVM_WEB3_PROVIDER_URI environment variable must be set"
|
||||
)
|
||||
|
||||
MOONSTREAM_IMX_ZKEVM_SEPOLIA_WEB3_PROVIDER_URI = os.environ.get(
|
||||
"MOONSTREAM_IMX_ZKEVM_SEPOLIA_WEB3_PROVIDER_URI", ""
|
||||
)
|
||||
if MOONSTREAM_IMX_ZKEVM_SEPOLIA_WEB3_PROVIDER_URI == "":
|
||||
raise ValueError(
|
||||
"MOONSTREAM_IMX_ZKEVM_SEPOLIA_WEB3_PROVIDER_URI environment variable must be set"
|
||||
)
|
||||
|
||||
## QueryAPI
|
||||
|
||||
MOONSTREAM_S3_QUERIES_BUCKET = os.environ.get("MOONSTREAM_S3_QUERIES_BUCKET", "")
|
||||
|
|
|
@ -21,6 +21,8 @@ from .settings import (
|
|||
MOONSTREAM_BLAST_SEPOLIA_WEB3_PROVIDER_URI,
|
||||
MOONSTREAM_BLAST_WEB3_PROVIDER_URI,
|
||||
MOONSTREAM_ETHEREUM_WEB3_PROVIDER_URI,
|
||||
MOONSTREAM_IMX_ZKEVM_SEPOLIA_WEB3_PROVIDER_URI,
|
||||
MOONSTREAM_IMX_ZKEVM_WEB3_PROVIDER_URI,
|
||||
MOONSTREAM_MANTLE_SEPOLIA_WEB3_PROVIDER_URI,
|
||||
MOONSTREAM_MANTLE_WEB3_PROVIDER_URI,
|
||||
MOONSTREAM_MUMBAI_WEB3_PROVIDER_URI,
|
||||
|
@ -118,6 +120,10 @@ def connect(
|
|||
web3_uri = MOONSTREAM_MANTLE_WEB3_PROVIDER_URI
|
||||
elif blockchain_type == AvailableBlockchainType.MANTLE_SEPOLIA:
|
||||
web3_uri = MOONSTREAM_MANTLE_SEPOLIA_WEB3_PROVIDER_URI
|
||||
elif blockchain_type == AvailableBlockchainType.IMX_ZKEVM:
|
||||
web3_uri = MOONSTREAM_IMX_ZKEVM_WEB3_PROVIDER_URI
|
||||
elif blockchain_type == AvailableBlockchainType.IMX_ZKEVM_SEPOLIA:
|
||||
web3_uri = MOONSTREAM_IMX_ZKEVM_SEPOLIA_WEB3_PROVIDER_URI
|
||||
else:
|
||||
raise Exception("Wrong blockchain type provided for web3 URI")
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ Mako==1.2.3
|
|||
MarkupSafe==2.1.1
|
||||
moonstream==0.1.1
|
||||
moonstreamdb==0.4.5
|
||||
moonstreamdb-v3==0.0.13
|
||||
moonstreamdb-v3==0.0.15
|
||||
multiaddr==0.0.9
|
||||
multidict==6.0.2
|
||||
netaddr==0.8.0
|
||||
|
|
|
@ -17,7 +17,7 @@ setup(
|
|||
"fastapi",
|
||||
"moonstream",
|
||||
"moonstreamdb>=0.4.5",
|
||||
"moonstreamdb-v3>=0.0.13",
|
||||
"moonstreamdb-v3>=0.0.15",
|
||||
"humbug",
|
||||
"pydantic==1.10.2",
|
||||
"pyevmasm",
|
||||
|
|
Ładowanie…
Reference in New Issue