mirror of https://github.com/nucypher/nucypher.git
updates chainlist permitted for condition evaluation to include adopter needs.
parent
c6bd041b64
commit
1e4a3c6939
|
@ -68,6 +68,7 @@ POA_CHAINS = {
|
||||||
42, # Kovan
|
42, # Kovan
|
||||||
77, # Sokol
|
77, # Sokol
|
||||||
100, # xDAI
|
100, # xDAI
|
||||||
|
10200, # gnosis/chiado,
|
||||||
137, # Polygon/Mainnet
|
137, # Polygon/Mainnet
|
||||||
80001, # "Polygon/Mumbai"
|
80001, # "Polygon/Mumbai"
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,13 +21,26 @@ from nucypher.policy.conditions.exceptions import (
|
||||||
from nucypher.policy.conditions.lingo import ReturnValueTest
|
from nucypher.policy.conditions.lingo import ReturnValueTest
|
||||||
from nucypher.policy.conditions.utils import CamelCaseSchema, camel_case_to_snake
|
from nucypher.policy.conditions.utils import CamelCaseSchema, camel_case_to_snake
|
||||||
|
|
||||||
|
# TODO: Move this to a more appropriate location,
|
||||||
|
# but be sure to change the mocks in tests too.
|
||||||
# Permitted blockchains for condition evaluation
|
# Permitted blockchains for condition evaluation
|
||||||
_CONDITION_CHAINS = (
|
|
||||||
1, # ethereum/mainnet
|
_CONDITION_CHAINS = {
|
||||||
5, # ethereum/goerli
|
1: "ethereum/mainnet",
|
||||||
137, # polygon/mainnet
|
5: "ethereum/goerli",
|
||||||
80001 # polygon/mumbai
|
11155111: "ethereum/sepolia",
|
||||||
)
|
137: "polygon/mainnet",
|
||||||
|
80001: "polygon/mumbai",
|
||||||
|
10: "optimism/mainnet",
|
||||||
|
69: "optimism/kovan",
|
||||||
|
420: "optimism/goerli",
|
||||||
|
42161: "arbitrum/mainnet",
|
||||||
|
421613: "arbitrum/goerli",
|
||||||
|
100: "gnosis/mainnet",
|
||||||
|
10200: "gnosis/chiado",
|
||||||
|
534352: "scroll/mainnet",
|
||||||
|
534351: "scroll/sepolia",
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
def _resolve_abi(
|
def _resolve_abi(
|
||||||
|
|
Loading…
Reference in New Issue