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

Feature/bumb eigenware #3

Merged
merged 114 commits into from
Sep 27, 2024
Merged

Feature/bumb eigenware #3

merged 114 commits into from
Sep 27, 2024

Conversation

iStrike7
Copy link
Member

Fixes # .

Motivation

Solution

Open questions

hezhihua81 and others added 30 commits April 8, 2024 15:52
* fix: generate go binding for IndexRegistry

* feat: add IndexRegistry to binding util

* fix: add IndexRegistry contract
* fix some bugs

* add $

* add more chars
…ayr-Labs#204)

* fix task expiration timer: was not being stopped on task completion

* fix blsagg_test.go
…rvice) (Layr-Labs#206)

* update operator-pubkey-serv -> operator-info-serv since it returns socket info now
also updated all other upstream services

* change Socket to be a type defn instead of type alias
* add go report card badge

* run gofmt -s

* fix misspelled words
* fix bug in custom iterator logic - I'm dumb

* print socket info in registerOperator debug statement

* add comment above socket type.. unsure about this one

* refactor updateSocketMapping into a fct

* add return statement instead of relying on no-op
* add reviewer checklist

* add reviewer checklist

* Update .github/PULL_REQUEST_TEMPLATE.md

Co-authored-by: Samuel Laferriere <samlaf92@gmail.com>

---------

Co-authored-by: Samuel Laferriere <samlaf92@gmail.com>
…ayr-Labs#218)

* updates to slogger constructors (text handler now has colored logs)

* fix lint issue

* fix PR template comment
* refactor: move WrapError

* fix: after rebasing

* chore: go fmt

* refactor: simplify returned value for WrapError

* refactor: move WrapError to errors.go

* fix: wrap error

* fix: use w% as placeholder for error
* better error returned

* rename var
* feat: enable creating InstrumentedClient from existing + make some methods public

* Reuse NewInstrumentedClientFromClient in NewInstrumentedClient
Bumps [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2) from 1.26.0 to 1.26.1.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](aws/aws-sdk-go-v2@v1.26.0...v1.26.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [github.com/aws/aws-sdk-go-v2/service/secretsmanager](https://github.com/aws/aws-sdk-go-v2) from 1.28.5 to 1.28.6.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](aws/aws-sdk-go-v2@service/emr/v1.28.5...service/emr/v1.28.6)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/secretsmanager
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Layr-Labs#191)

Bumps [github.com/testcontainers/testcontainers-go](https://github.com/testcontainers/testcontainers-go) from 0.29.1 to 0.30.0.
- [Release notes](https://github.com/testcontainers/testcontainers-go/releases)
- [Commits](testcontainers/testcontainers-go@v0.29.1...v0.30.0)

---
updated-dependencies:
- dependency-name: github.com/testcontainers/testcontainers-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…-Labs#190)

Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) from 1.27.9 to 1.27.11.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](aws/aws-sdk-go-v2@config/v1.27.9...config/v1.27.11)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/config
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…s#219)

Bumps [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum) from 1.13.14 to 1.14.0.
- [Release notes](https://github.com/ethereum/go-ethereum/releases)
- [Commits](ethereum/go-ethereum@v1.13.14...v1.14.0)

---
updated-dependencies:
- dependency-name: github.com/ethereum/go-ethereum
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
renlulu and others added 29 commits August 6, 2024 10:38
Co-authored-by: Madhur Shrimal <madhur.shrimal@gmail.com>
* chore: deprecate earning receiver address

* fix test

* fmt

* testutils

* fix comment
* Update README.md

* Update README.md
* Updated chainio and signer READMEs + some code comments

added gas oracle

refactored txmgr module

added geometric txmgr

make fmt

log -> logger in simple txmgr

add TODO + rename constructor

update geometric txmgr to use sync api

gasoracle refactor

chore: switch to pointer to gasoracle in geometric txmgr
Also added some comments

example: add example test for geometric txmgr

fix(geometric_example_test): start anvil container

refactor(geometric txmgr): delete gasoracle and add its methods to geometric txmgr directly

make fmt

fix(lint): remove no longer used variable hundred

wip moving geometric to its own subdir

simplify privatekey_wallet

delete old moved files

add geometric txmgr metrics interface + noop metrics

docs: add default values in geometric txmgr params comment

test(geometric txmgr): add first simple test for geometric txmgr

test(geometric txmgr): add some basic tx sending tests

feat(ecdsa): add KeyAndAddressFromHexKey helper function

feat(geometric txmgr): add integration test scaffold with 1 simple tx sending test

fix(geometric txmgr): remove unneeded mutex

test(geometric txmgr): add parallel mining logic to fakeEthBackend.SendTransaction to test parallel sending of txs

feat(geometrix txmgr): refactor queryTicketDuration to be a param instead of a fixed const

refactor(txmgr test harness): refactor into a mining goroutine

fix(geometric txmgr test): use mutex to get rid of race condition

refactor(geometric txmgr params): made all params public fields

feat(geometric txmgr test): added congestedBlocks field to test network congestion where txs need to get bumped
also made tests run fast by setting txmgr's GetTxReceiptTickerDuration to 100ms instead of the default 3s

fix(geometric txmgr): bug in ensureAnyTxBroadcasted
ethereum.NotFound errors were not handled properly, causing txs to never get bumped

feat(geometric txmgr test): added congested network test

* fix(geometric txmgr test): race condition to set congested blocks

* fix compilation errors from prev rebase

* make fmt

* fix(geometric txmgr): make ethBackend interface private

* doc(geometri  txmgr): add default GetTxReceiptTickerDuration param as comment

* chore(geometric txmgr): remove no longer used GasPricePercentageMultiplier param

* doc(geometrix txmgr): comment ProcessTransaction -> processTransaction

Co-authored-by: Madhur Shrimal <madhur.shrimal@gmail.com>

* chore(geometric txmgr): move code around to make it cleaner

* chore(geometric txmgr): use utils.WrapError everywhere instead of fmt.Errorf

* doc(geometric txmgr): added comment saying that we (probably) can delete while iterating over go map

* make fmt

* make fmt

* refactor(geometric txmgr): change gas/gastip params to use floats instead of percentages

* docs(geometric txmgr): add comments for the ensureAnyTxBroadcasted/Confirmed fcts

* fix(typo): READMD -> README

* make fmt

* refactor(geometric txmgr): simplify code by only calling ensureAnyTxBroadcasted for fireblock wallet

* fix(geometric txmgr): revert to old (correct) code for catching timeout errors

* make fmt

* refactor(ecdsa/utils): use strings.TrimPrefix to trim 0x prefix

* delete(metrics.go): duplicate file, no longer needed

* refactor(geometric txmgr): rename fct with clearer name for self-documentation

* doc(geometric txmgr): fix comment that was not true

* doc(geometric txmgr): correct comment

* test(geometric txmgr): add test for sending tx with incorrect nonce

* test(geometric txmgr): added parallel test that sends nonces in reverse order

* doc(geometric txmgr): add comment explaining that processTransaction is goroutine safe

* chore(geometric txmgr): uncomment code that was commented while debugging

---------

Co-authored-by: Madhur Shrimal <madhur.shrimal@gmail.com>
* refactor: support non-blocking verfion for calling contracts

* chore: add comment for dummy txn receipt

* chore: fix comment
* chore: update middleware to latest operator set

* make fmt

* add another method
* feat: return quorum registration detail

* fix: check if ith bit is set

* refactor: use map instead of array

* chore: revert back to use array
… socket) (Layr-Labs#334)

* feat: support start/stop block number for querying operator info

* refactor: use Opts struct

* refactor: use struct instead of pointer to avoid panic
* chore: move regex compilation out from func

* chore: test util funcs
* feat: improve bls aggregtion service logging

* refactor: logs

* chore: fix whitespace

---------

Co-authored-by: Tatu <65305492+srosati@users.noreply.github.com>
* getOperatorsAvsState test read input from json

* parse test output from json

* add json path as a test parameter

* rename json pubkey

* add test data path as env variable

* remove output data from json

* delete json file

* move test to compliance folder

* revert changes on chaincaller tests

* add json in put to bls_agg test

* refactor default inputs

* add json input to TestEgnAddrsWithServiceManagerFlag
* fix + testcase

* add warn log

* undo eigenlayer-middleware submodule change

* change warn log to info

* add sam's comment for clarity

Co-authored-by: Samuel Laferriere <samlaf92@gmail.com>

* run make fmt

* reorder check

* revert prior commit

---------

Co-authored-by: Samuel Laferriere <samlaf92@gmail.com>
…s#343)

* fix: race condition when querying registered operators data

* fix: move the startBlock copying inside of each function

* change the loop index variable so that it is initialized from a copy of startBlock

* docs: add explanatory comment

* format
@iStrike7 iStrike7 merged commit 8566e71 into develop Sep 27, 2024
4 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.