Skip to content

Commit

Permalink
Remove blockNumber from structs
Browse files Browse the repository at this point in the history
  • Loading branch information
damiramirez committed Feb 3, 2025
1 parent a26d120 commit 6180e32
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions chainio/clients/elcontracts/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,46 +85,40 @@ type RemovePendingAdminRequest struct {
WaitForReceipt bool
}

// TxOption represents a Ethereum transaction option.
type TxOption struct {
Opts *bind.TransactOpts
}

// OperatorRequest represents a request that requires an operator's address.
// If `BlockNumber` is nil, the latest block will be used
type OperatorRequest struct {
BlockNumber *big.Int
Operator types.Operator
WaitForReceipt bool
}

// OperatorMetadataRequest represents a request that updates operator metadata.
// If `BlockNumber` is nil, the latest block will be used
type OperatorMetadataRequest struct {
BlockNumber *big.Int
OperatorAddress common.Address
Uri string
WaitForReceipt bool
}

// DepositRequest represents a request to deposit funds into a strategy.
// If `BlockNumber` is nil, the latest block will be used
type DepositRequest struct {
BlockNumber *big.Int
StrategyAddress common.Address
Amount *big.Int
WaitForReceipt bool
}

// ClaimerRequest represents a request to set a claimer
// If `BlockNumber` is nil, the latest block will be used
type ClaimerRequest struct {
BlockNumber *big.Int
ClaimerAddress common.Address
WaitForReceipt bool
}

// ClaimProcessRequest represents a request to process a claim for rewards.
// If `BlockNumber` is nil, the latest block will be used
type ClaimProcessRequest struct {
BlockNumber *big.Int
Claim rewardscoordinator.IRewardsCoordinatorTypesRewardsMerkleClaim
Expand All @@ -140,19 +134,15 @@ type ClaimsProcessRequest struct {
}

// OperatorAVSSplitRequest represents a request to set an operator's AVS split.
// If `BlockNumber` is nil, the latest block will be used
type OperatorAVSSplitRequest struct {
BlockNumber *big.Int
OperatorAddress common.Address
AVSAddress common.Address
Split uint16
WaitForReceipt bool
}

// OperatorPISplitRequest represents a request to set an operator's Programmatic Incentive split.
// If `BlockNumber` is nil, the latest block will be used
type OperatorPISplitRequest struct {
BlockNumber *big.Int
OperatorAddress common.Address
Split uint16
WaitForReceipt bool
Expand Down

0 comments on commit 6180e32

Please sign in to comment.