Skip to content

Commit d273ae8

Browse files
chore: remove earning receiver address (#184)
* chore: remove earning reciever address * update dev contract * Remove from test
1 parent db3f34b commit d273ae8

File tree

7 files changed

+3
-23
lines changed

7 files changed

+3
-23
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/Layr-Labs/eigenlayer-contracts v0.3.0-holesky-rewards
88
github.com/Layr-Labs/eigenlayer-rewards-proofs v0.2.9
99
github.com/Layr-Labs/eigenpod-proofs-generation v0.0.14-stable.0.20240730152248-5c11a259293e
10-
github.com/Layr-Labs/eigensdk-go v0.1.10-0.20240730214828-67787e959b72
10+
github.com/Layr-Labs/eigensdk-go v0.1.10-0.20240806213237-f9be5dc855c8
1111
github.com/blang/semver/v4 v4.0.0
1212
github.com/consensys/gnark-crypto v0.12.1
1313
github.com/ethereum/go-ethereum v1.14.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ github.com/Layr-Labs/eigenlayer-rewards-proofs v0.2.9 h1:ahO1P23KLLcBChXs/n5bqik
1212
github.com/Layr-Labs/eigenlayer-rewards-proofs v0.2.9/go.mod h1:xqqlbOAuApoPi+NgnqJB5JtTY05V+8IpP/4JZEctUAw=
1313
github.com/Layr-Labs/eigenpod-proofs-generation v0.0.14-stable.0.20240730152248-5c11a259293e h1:DvW0/kWHV9mZsbH2KOjEHKTSIONNPUj6X05FJvUohy4=
1414
github.com/Layr-Labs/eigenpod-proofs-generation v0.0.14-stable.0.20240730152248-5c11a259293e/go.mod h1:T7tYN8bTdca2pkMnz9G2+ZwXYWw5gWqQUIu4KLgC/vM=
15-
github.com/Layr-Labs/eigensdk-go v0.1.10-0.20240730214828-67787e959b72 h1:krZ1dl1LG1+jQenIpHDg293epaomxPeQdKMTpcridSw=
16-
github.com/Layr-Labs/eigensdk-go v0.1.10-0.20240730214828-67787e959b72/go.mod h1:XcLVDtlB1vOPj63D236b451+SC75B8gwgkpNhYHSxNs=
15+
github.com/Layr-Labs/eigensdk-go v0.1.10-0.20240806213237-f9be5dc855c8 h1:Yu9Fhlriq0zB5zo9yS8vN5CvLpydhVwHxLWjAuIetP0=
16+
github.com/Layr-Labs/eigensdk-go v0.1.10-0.20240806213237-f9be5dc855c8/go.mod h1:XcLVDtlB1vOPj63D236b451+SC75B8gwgkpNhYHSxNs=
1717
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=
1818
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
1919
github.com/Microsoft/hcsshim v0.11.4 h1:68vKo2VN8DE9AdN4tnkWnmdhqdbpUFM8OF3Airm7fz8=

pkg/operator/config/create.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -148,20 +148,6 @@ func promptOperatorInfo(config *types.OperatorConfig, p utils.Prompter) (types.O
148148
// TODO(madhur): Remove this once we have the feature working and want to prompt users for this address
149149
config.Operator.DelegationApproverAddress = eigensdkTypes.ZeroAddress
150150

151-
// Prompt and set earnings address
152-
earningsAddress, err := p.InputString(
153-
"Enter your earnings address (default to your operator address):",
154-
config.Operator.Address,
155-
"",
156-
func(s string) error {
157-
return validateAddressIsNonZeroAndValid(s)
158-
},
159-
)
160-
if err != nil {
161-
return types.OperatorConfig{}, err
162-
}
163-
config.Operator.EarningsReceiverAddress = earningsAddress
164-
165151
// Prompt for eth node
166152
rpcUrl, err := p.InputString("Enter your ETH rpc url:", "http://localhost:8545", "",
167153
func(s string) error { return nil },

pkg/operator/config/operator-config-example.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ operator:
66
# This is the standard Ethereum address format (ex: 0x6a8c0D554a694899041E52a91B4EC3Ff23d8aBD5) of your operator
77
# which is the ecdsa key you created or imported using EigenLayer CLI
88
address:
9-
# This is the standard Ethereum address format (ex: 0x6a8c0D554a694899041E52a91B4EC3Ff23d8aBD5)
10-
# This is the address where your operator will receive earnings. This could be same as operator address
11-
earnings_receiver_address:
129
# This is the standard Ethereum address format (0x...)
1310
# This is the address which operator will use to approve delegation requests from stakers.
1411
# if set, this address must sign and approve new delegation from Stakers to this Operator

pkg/operator/status.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ func printOperatorDetails(operator eigensdkTypes.Operator) {
131131
fmt.Println()
132132
fmt.Println("--------------------------- Operator Details ---------------------------")
133133
fmt.Printf("Address: %s\n", operator.Address)
134-
fmt.Printf("Earnings Receiver Address: %s\n", operator.EarningsReceiverAddress)
135134
fmt.Printf("Delegation Approver Address: %s\n", operator.DelegationApproverAddress)
136135
fmt.Printf("Staker Opt Out Window Blocks: %d\n", operator.StakerOptOutWindowBlocks)
137136
fmt.Println("------------------------------------------------------------------------")

tests/keystore/operator-ci.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
operator:
22
address: 0xcaB1b44dd1f1C265405878Ac1179cd94D0dBA634
3-
earnings_receiver_address: 0xcaB1b44dd1f1C265405878Ac1179cd94D0dBA634
43
delegation_approver_address: 0xcaB1b44dd1f1C265405878Ac1179cd94D0dBA634
54
staker_opt_out_window_blocks: 0
65
metadata_url: https://madhur-test-public.s3.us-east-2.amazonaws.com/metadata.json

tests/web3signer/operator-ci.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
operator:
22
address: 0x7dbc809c1ec153d45ffb0c75fb4fded68e34699e
3-
earnings_receiver_address: 0x7dbc809c1ec153d45ffb0c75fb4fded68e34699e
43
delegation_approver_address: 0xcaB1b44dd1f1C265405878Ac1179cd94D0dBA634
54
staker_opt_out_window_blocks: 0
65
metadata_url: https://madhur-test-public.s3.us-east-2.amazonaws.com/metadata.json

0 commit comments

Comments
 (0)