Skip to content

Commit

Permalink
Explain about the nil in blockNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
damiramirez committed Jan 31, 2025
1 parent 4301544 commit f2dee95
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions chainio/clients/elcontracts/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ type RemovePendingAdminRequest struct {
// READER TYPES

// 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
OperatorAddress common.Address
Expand All @@ -99,6 +100,7 @@ type OperatorResponse struct {
}

// StrategyRequest represents a request that requires a strategy's address
// If `BlockNumber` is nil, the latest block will be used
type StrategyRequest struct {
BlockNumber *big.Int
StrategyAddress common.Address
Expand All @@ -124,6 +126,7 @@ type OperatorRegisterResponse struct {
}

// StakerRequest represents a request that requires a staker's address
// If `BlockNumber` is nil, the latest block will be used
type StakerRequest struct {
BlockNumber *big.Int
StakerAddress common.Address
Expand All @@ -140,14 +143,15 @@ type DelegateOperatorResponse struct {
OperatorAddress common.Address
}

// SharesInStrategyRequest represents a request that requires a strategy's address and an operator's address
// SharesInStrategyRequest represents a request that requires both strategy's address and operator's address
// If `BlockNumber` is nil, the latest block will be used
type SharesInStrategyRequest struct {
BlockNumber *big.Int
OperatorAddress common.Address
StrategyAddress common.Address
}

// ShareResponse contains the shares
// ShareResponse contains the numbers of shares
type SharesResponse struct {
Shares *big.Int
}

0 comments on commit f2dee95

Please sign in to comment.