mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 19:36:44 +01:00
API add bids endpoint
This commit is contained in:
@@ -198,6 +198,18 @@ func parseTokenFilters(c querier) ([]common.TokenID, []string, string, error) {
|
||||
return tokensIDs, symbols, nameStr, nil
|
||||
}
|
||||
|
||||
func parseBidFilters(c querier) (*uint, *ethCommon.Address, error) {
|
||||
slotNum, err := parseQueryUint("slotNum", nil, 0, maxUint32, c)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
bidderAddr, err := parseQueryEthAddr("bidderAddr", c)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
return slotNum, bidderAddr, nil
|
||||
}
|
||||
|
||||
// Param parsers
|
||||
|
||||
type paramer interface {
|
||||
|
||||
Reference in New Issue
Block a user