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

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

Open
cx6226301 opened this issue Jan 9, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@cx6226301
Copy link

cx6226301 commented Jan 9, 2025

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 cx6226301 added the bug Something isn't working label Jan 9, 2025
@cx6226301
Copy link
Author

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?

@parithosh
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@cx6226301 @parithosh and others