Skip to content

v0.2.0 - Rewards v2.1 testnet

Latest
Compare
Choose a tag to compare
@MegaRedHand MegaRedHand released this 10 Feb 22:01
· 33 commits to dev since this release
6c75e89

Notable changes

  • Added functions related to the rewards v2.1 release:

    • ChainReader.GetOperatorSetSplit in chainio/clients/elcontracts

      operatorSplit, err = chainReader.GetOperatorSetSplit(
          context.Background(),
          operatorAddr,
          operatorSet,
      )
    • ChainWriter.SetOperatorSetSplit in chainio/clients/elcontracts

      receipt, err = chainWriter.SetOperatorSetSplit(
          context.Background(),
          operatorAddr,
          operatorSet,
          split,
          waitForReceipt,
      )
  • Removed deprecated functions:

    • NewAVSRegistryContractBindings: use avsregistry.NewBindingsFromConfig instead
    • BuildAvsRegistryChainReader: use avsregistry.NewReaderFromConfig instead
    • BuildAvsRegistryChainSubscriber: use avsregistry.NewSubscriberFromConfig instead
    • BuildAvsRegistryChainWriter: use avsregistry.NewWriterFromConfig instead
    • NewEigenlayerContractBindings: use elcontracts.NewBindingsFromConfig instead
    • BuildELChainReader: use elcontracts.NewReaderFromConfig instead
  • Removed RegisterOperatorInQuorumWithAVSRegistryCoordinator from avsregistry.ChainWriter.

    • Users should use RegisterOperator or interact with bindings directly.
  • Removed panics from some functions. BuildReadClients, BuildAll, NewZapLoggerByConfig, and AvsRegistryServiceChainCaller.GetOperatorsAvsStateAtBlock return errors instead of panicking. The OperatorsInfoServiceInMemory no longer panics (errors are only logged).

  • Added documentation to all functions in chainio/clients/elcontracts and chainio/clients/avsregistry.

  • Added some functions related to slashing. More incoming in a future release.

What's Changed

New Contributors

Full Changelog: v0.1.14...v0.2.0