diff --git a/go.mod b/go.mod index 703c968b..dbc43228 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/AlecAivazis/survey/v2 v2.3.7 - github.com/Layr-Labs/eigensdk-go v0.1.1 + github.com/Layr-Labs/eigensdk-go v0.1.3-holesky-init-deployment github.com/ethereum/go-ethereum v1.13.14 github.com/stretchr/testify v1.9.0 github.com/urfave/cli/v2 v2.27.1 @@ -31,6 +31,7 @@ require ( github.com/ethereum/c-kzg-4844 v0.4.0 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/go-ole/go-ole v1.3.0 // indirect + github.com/golang-jwt/jwt v3.2.2+incompatible // indirect github.com/google/uuid v1.6.0 // indirect github.com/gorilla/websocket v1.4.2 // indirect github.com/holiman/uint256 v1.2.4 // indirect diff --git a/go.sum b/go.sum index e73e9dba..cf0a6240 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,8 @@ github.com/AlecAivazis/survey/v2 v2.3.7 h1:6I/u8FvytdGsgonrYsVn2t8t4QiRnh6QSTqkk github.com/AlecAivazis/survey/v2 v2.3.7/go.mod h1:xUTIdE4KCOIjsBAE1JYsUPoCqYdZ1reCfTwbto0Fduo= github.com/DataDog/zstd v1.4.5 h1:EndNeuB0l9syBZhut0wns3gV1hL8zX8LIu6ZiVHWLIQ= github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= -github.com/Layr-Labs/eigensdk-go v0.1.1 h1:AjUoieoAtaGxuxOHj6nB2xxuBTrghlYJl3AguICI9kc= -github.com/Layr-Labs/eigensdk-go v0.1.1/go.mod h1:c/yA0hmP2pJILySQLerQnDPcJ5Z3mtyH0hhjQGw3Xrc= +github.com/Layr-Labs/eigensdk-go v0.1.3-holesky-init-deployment h1:GxIR6nBV+lCgBfS/Bu6NPFg5hqf2jUnXUDHznWyh9Ro= +github.com/Layr-Labs/eigensdk-go v0.1.3-holesky-init-deployment/go.mod h1:J+d9zxN4VyMtchmsPzGASFcCjpnh1eT4aE2ggiqOz/g= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63nhn5WAunQHLTznkw5W8b1Xc0dNjp83s= @@ -76,6 +76,8 @@ github.com/gofrs/flock v0.8.1 h1:+gYjHKf32LDeiEEFhQaotPbLuUXjY5ZqxKgXy7n59aw= github.com/gofrs/flock v0.8.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY= +github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb h1:PBC98N2aIaM3XXiurYmW7fx4GZkL8feAMVq7nEjURHk= diff --git a/pkg/operator/register.go b/pkg/operator/register.go index 1c10b4dd..6db2b3b2 100644 --- a/pkg/operator/register.go +++ b/pkg/operator/register.go @@ -3,6 +3,7 @@ package operator import ( "context" "fmt" + wallet "github.com/Layr-Labs/eigensdk-go/chainio/clients/wallet" "math/big" "os" @@ -95,7 +96,11 @@ func RegisterCmd(p utils.Prompter) *cli.Command { if err != nil { return err } - txMgr := txmgr.NewSimpleTxManager(ethClient, logger, sgn, sender) + privateKeyWallet, err := wallet.NewPrivateKeyWallet(ethClient, sgn, sender, logger) + if err != nil { + return err + } + txMgr := txmgr.NewSimpleTxManager(privateKeyWallet, ethClient, logger, sender) noopMetrics := metrics.NewNoopMetrics() diff --git a/pkg/operator/update.go b/pkg/operator/update.go index a06a6acd..6c50884a 100644 --- a/pkg/operator/update.go +++ b/pkg/operator/update.go @@ -3,6 +3,7 @@ package operator import ( "context" "fmt" + "github.com/Layr-Labs/eigensdk-go/chainio/clients/wallet" "github.com/Layr-Labs/eigensdk-go/chainio/txmgr" "github.com/Layr-Labs/eigensdk-go/signerv2" @@ -75,7 +76,12 @@ func UpdateCmd(p utils.Prompter) *cli.Command { if err != nil { return err } - txMgr := txmgr.NewSimpleTxManager(ethClient, logger, sgn, sender) + + privateKeyWallet, err := wallet.NewPrivateKeyWallet(ethClient, sgn, sender, logger) + if err != nil { + return err + } + txMgr := txmgr.NewSimpleTxManager(privateKeyWallet, ethClient, logger, sender) noopMetrics := metrics.NewNoopMetrics()