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: batch deposit script #159

Merged
merged 1 commit into from
Feb 18, 2025
Merged

Conversation

pinebit
Copy link
Contributor

@pinebit pinebit commented Feb 13, 2025

Summary

Improved DepositScript to take deposit-data.json as is and deposit for all entries via specified ObolValidatorManager contract.

Details

Example log:

Reading deposit data from file: ./script/data/deposit-data.json
  Number of deposit records: 10
  Deposit at index 0 for amount of 32 ether:
    PK: 850396760f3f712b3259a6ba5bb3c41f1bf2764d69d1b644170619a0b59222993153fc3cce0f562b2f155550936a9be5
    WC: 020000000000000000000000ac1598a535a2bd49a0b9779ae45e958b3893589c
  Deposit at index 1 for amount of 32 ether:
    PK: 86f12251242ebf253674c61665c45592b747c249778c608437bb7e99afeabe66d155dd5b2b213e04021dd136ca11d9dc
    WC: 020000000000000000000000ac1598a535a2bd49a0b9779ae45e958b3893589c
  Deposit at index 2 for amount of 32 ether:
    PK: 920a9c403e8090fc0db0b9fba1e50d2aac48f371ec77dd7ae98e5c573af6f42f2c5dc0a52537436ff0caca1e49a72b8b
    WC: 020000000000000000000000ac1598a535a2bd49a0b9779ae45e958b3893589c
  Deposit at index 3 for amount of 32 ether:
    PK: a446a836c4f14af126f8778a98e55ad4e465315bea717bbdac738cb7266bcb9203ded80fe39e3b74d2f0d8b06dd02c22
    WC: 020000000000000000000000ac1598a535a2bd49a0b9779ae45e958b3893589c
  Deposit at index 4 for amount of 32 ether:
    PK: a4ea1d65fd9493e081defb27999729bfc99f999d534675d573381920bf37cbc579763dfda6491a4cfe0adb40cae6790a
    WC: 020000000000000000000000ac1598a535a2bd49a0b9779ae45e958b3893589c
  Deposit at index 5 for amount of 32 ether:
    PK: a63196643ab977b539c7c7d722f49245d756c2b62d558cabc14a4755f0b22e17864f8f4fba5ec6207c0d2c9f5749a7fc
    WC: 020000000000000000000000ac1598a535a2bd49a0b9779ae45e958b3893589c
  Deposit at index 6 for amount of 32 ether:
    PK: b0a2fb632002c676c0072fd45b82009d63a9e4d02f81e4b522770b7790ad1ad24ecf8b97160cc2eb8d4b9b4fb183fb4c
    WC: 020000000000000000000000ac1598a535a2bd49a0b9779ae45e958b3893589c
  Deposit at index 7 for amount of 32 ether:
    PK: b10e0b7aad2ee76447625d6b8c86f8c4355693cce7f7d82c195d9612bdc45eed5add7728b242db1af9fd10f7848c9716
    WC: 020000000000000000000000ac1598a535a2bd49a0b9779ae45e958b3893589c
  Deposit at index 8 for amount of 32 ether:
    PK: b3505ffd10569fa7dde8a79d2118bf25edb30f0a8cea11618de8f16cd632d302e70bbecd354d7778cc0ee94ef4d81a3d
    WC: 020000000000000000000000ac1598a535a2bd49a0b9779ae45e958b3893589c
  Deposit at index 9 for amount of 32 ether:
    PK: b53ef636461f21082122313c84806b010cb1c74472f4ca41bd59d407c1c70f58a4cb98e11d9afc02e6b992350acad939
    WC: 020000000000000000000000ac1598a535a2bd49a0b9779ae45e958b3893589c
  Total amount will be deposited: 320 ether
  Currently staked amount: 0 ether

How to test it

forge test

ticket: none

@pinebit pinebit merged commit a97d3df into release/v0.2 Feb 18, 2025
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.

2 participants