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: print available accounts on startup #39

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

jakim929
Copy link
Contributor

@jakim929 jakim929 commented Jul 10, 2024

closes #10

overview

  • added mnemonic and derivation path as config that is passed down to anvil
  • added modules to generate private keys / addresses from mnemonic

startup now looks like

INFO [07-10|11:13:02.144] starting supersim
INFO [07-10|11:13:02.144] starting anvil                           chain.id=1
INFO [07-10|11:13:02.147] starting anvil                           chain.id=10
INFO [07-10|11:13:02.159] starting anvil                           chain.id=30
INFO [07-10|11:13:02.172] listening on 127.0.0.1:8546              chain.id=1
INFO [07-10|11:13:02.172] listening on 127.0.0.1:9546              chain.id=10
INFO [07-10|11:13:02.172] listening on 127.0.0.1:9556              chain.id=30
INFO [07-10|11:13:02.281] supersim is ready
INFO [07-10|11:13:02.292]

Available Accounts
-----------------------
(0): 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
(1): 0x70997970C51812dc3A010C7d01b50e0d17dc79C8
(2): 0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC
(3): 0x90F79bf6EB2c4f870365E785982E1f101E93b906
(4): 0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65
(5): 0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc
(6): 0x976EA74026E726554dB657fA54763abd0C3a0aa9
(7): 0x14dC79964da2C08b23698B3D3cc7Ca32193d9955
(8): 0x23618e81E3f5cdF7f54C3d65f7FBc0aBf5B21E8f
(9): 0xa0Ee7A142d267C1f36714E4a8F75612F20a79720


Private Keys
-----------------------
(0): 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
(1): 0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
(2): 0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a
(3): 0x7c852118294e51e653712a81e05800f419141751be58f605c371e15141b007a6
(4): 0x47e179ec197488593b187f80a00eb0da91f1b9d0b13f8733639f19c30a34926a
(5): 0x8b3a350cf5c34c9194ca85829a2df0ec3153be0318b5e2d3348e872092edffba
(6): 0x92db14e403b83dfe3df233f83dfa3a0d7096f21ca9b0d6d6b8d88b2b4ec1564e
(7): 0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356
(8): 0xdbda1821b80551c9d65939329250298aa3472ba22feea921c0cf5d620ea67b97
(9): 0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6


Supersim Config
-----------------------
L1:
  Chain ID: 1    RPC: http://127.0.0.1:8546
L2:
  Chain ID: 10    RPC: http://127.0.0.1:9546
  Chain ID: 30    RPC: http://127.0.0.1:9556

@jakim929
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @jakim929 and the rest of your teammates on Graphite Graphite

supersim.go Outdated Show resolved Hide resolved
@jakim929 jakim929 force-pushed the 07-09-feat_print_available_accounts_on_startup branch 3 times, most recently from 5fc3004 to 07e5977 Compare July 10, 2024 15:20
@jakim929 jakim929 marked this pull request as ready for review July 10, 2024 15:20
@jakim929 jakim929 requested a review from a team as a code owner July 10, 2024 15:20
@jakim929 jakim929 force-pushed the 07-09-feat_print_available_accounts_on_startup branch from 07e5977 to c8845ae Compare July 10, 2024 15:22
@jakim929 jakim929 force-pushed the 07-09-feat_print_available_accounts_on_startup branch from c8845ae to 63b1b7b Compare July 10, 2024 16:42
hdaccount/derivation_path.go Outdated Show resolved Hide resolved
hdaccount/hd_account_store.go Outdated Show resolved Hide resolved
hdaccount/hd_account_store.go Show resolved Hide resolved
supersim.go Show resolved Hide resolved
@jakim929 jakim929 force-pushed the 07-09-feat_print_available_accounts_on_startup branch from 63b1b7b to 8563981 Compare July 11, 2024 00:52
@jakim929 jakim929 requested a review from tremarkley July 11, 2024 00:52
hdaccount/hd_account_store.go Show resolved Hide resolved
Copy link
Contributor

@hamdiallam hamdiallam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Left 1 suggestion to try simplify config

anvil/anvil.go Show resolved Hide resolved
@jakim929 jakim929 force-pushed the 07-09-feat_print_available_accounts_on_startup branch from 8563981 to d2d50f9 Compare July 11, 2024 15:39
supersim_test.go Outdated Show resolved Hide resolved
@jakim929 jakim929 force-pushed the 07-09-feat_print_available_accounts_on_startup branch 4 times, most recently from 0aaffac to f6af0af Compare July 11, 2024 18:31
@jakim929 jakim929 force-pushed the 07-09-feat_print_available_accounts_on_startup branch from f6af0af to 916a2a4 Compare July 11, 2024 18:32
@jakim929 jakim929 merged commit 3faa12f into main Jul 11, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

orchestrator: startup logging
4 participants