Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: mainnet registry addresses #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions symb.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ class ChainType(click.ParamType):
"17000": "holesky",
"sepolia": "sepolia",
"11155111": "sepolia",
# 'mainnet': 'mainnet',
# '1': 'mainnet',
'mainnet': 'mainnet',
'1': 'mainnet',
}

def convert(self, value, param, ctx):
Expand Down Expand Up @@ -211,11 +211,11 @@ class SymbioticCLI:
"vault_factory": "0x407A039D94948484D356eFB765b3c74382A050B4",
},
"mainnet": {
"op_registry": "0x0000000000000000000000000000000000000000",
"net_registry": "0x0000000000000000000000000000000000000000",
"op_registry": "0xAd817a6Bc954F678451A71363f04150FDD81Af9F",
"net_registry": "0xC773b1011461e7314CF05f97d95aa8e92C1Fd8aA",
"op_vault_opt_in": "0x0000000000000000000000000000000000000000",
"op_net_opt_in": "0x0000000000000000000000000000000000000000",
"middleware_service": "0x0000000000000000000000000000000000000000",
"middleware_service": "0xD7dC9B366c027743D90761F71858BCa83C6899Ad",
"vault_factory": "0x0000000000000000000000000000000000000000",
},
}
Expand Down Expand Up @@ -1178,7 +1178,7 @@ def process_request(self, request_text):
@click.group()
@click.option(
"--chain",
default="holesky",
default="mainnet",
type=chain_type,
show_default=True,
help="Chain ID to use.",
Expand Down Expand Up @@ -1732,6 +1732,10 @@ def withdrawals_claimed(ctx, vault_address, epoch, address):
def register_network(ctx, private_key, ledger, ledger_address):
"""Register the signer as a network."""

if not private_key and not ledger:
print("Private key or ledger is required")
return

ctx.obj.process_write_transaction(
private_key,
ledger,
Expand Down Expand Up @@ -1955,6 +1959,10 @@ def set_resolver(
def register_operator(ctx, private_key, ledger, ledger_address):
"""Register the signer as an operator."""

if not private_key and not ledger:
print("Private key or ledger is required")
return

ctx.obj.process_write_transaction(
private_key,
ledger,
Expand Down