Skip to content

Commit bb54ef6

Browse files
committed
support devnet for proposal creation
1 parent 728efff commit bb54ef6

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

utils/create-add-validator-proposal.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,20 @@ def main():
1111
STAKING_CONTRACT = sys.argv[2]
1212
FEE_RECIPIENT = sys.argv[3]
1313

14-
is_mainnet = input('Are you using mainnet? (y/n): ').lower() == 'y'
15-
api_url = 'https://api.kiln.fi/v1/eth/onchain/v1/keys' if is_mainnet else 'https://api.testnet.kiln.fi/v1/eth/onchain/v1/keys'
1614

15+
api_url = ""
16+
chain = input('Enter the chain (1 for mainnet, 2 for testnet, 3 for devnet): ')
17+
if chain == '1':
18+
api_url = 'https://api.kiln.fi/v1/eth/onchain/v1/keys'
19+
if chain == '2':
20+
api_url = 'https://api.testnet.kiln.fi/v1/eth/onchain/v1/keys'
21+
if chain == '3':
22+
api_url = 'https://api.devnet.kiln.fi/v1/eth/onchain/v1/keys'
23+
else:
24+
print('Invalid chain. Please enter 1 for mainnet, 2 for testnet, or 3 for devnet.')
25+
sys.exit(1)
26+
27+
1728
api_token = input('Enter the Kiln API token: ')
1829

1930
total_count = input('Enter the total number of validators to create: ')

0 commit comments

Comments
 (0)