ethereum-package icon indicating copy to clipboard operation
ethereum-package copied to clipboard

How to Modify Initial Asset Allocation: Specifying Different Wallets and Redefining the Initial Asset Quantity

Open cx6226301 opened this issue 11 months ago • 2 comments

I am trying to modify the PRE_FUNDED_ACCOUNTS in the file \src\prelaunch_data_generator\genesis_constants\genesis_constants.star. The format I used is correct, but after starting the project, the initialization allocates 1 billion units of the main currency to each of 20 accounts. These 20 accounts are generated based on the mnemonic phrase specified in the DEFAULT_MNEMONIC parameter in \src\package_io\constants.star, which corresponds to the first 20 wallets.

My questions are:

How can I specify other wallets to receive the initial assets instead of these 20 wallets?

Where can I redefine the initial allocation of 1 billion units of the main currency?

First of all, I would like to thank the open-source developers for their contributions. Secondly, I would appreciate it if you could help me resolve this confusion. Thank you!

cx6226301 avatar Jan 09 '25 09:01 cx6226301

Question 2:

Additionally, I have packaged the browser (Blockscout) into a Docker image. After starting the project with Kurtosis, how can I modify the Blockscout code without affecting the operation of the entire project?

cx6226301 avatar Jan 09 '25 09:01 cx6226301

Q1. Please have a look at the prefunded_accounts section in the README. You can specify funds and addresses there. Q2. Have a look at blockscout_params and then under image/verif_image/frontend_image. You can specify the new image to use there. In case you want to modify the code itself, then please modify src/blockscout/blockscout_launcher.star in a local copy and then run with kurtosis run . --args-file...., this will tell kurtosis to use your local changes instead of the remote git repository

parithosh avatar Jan 14 '25 08:01 parithosh