GetUncleByBlockHashAndIndex.php 991 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * This file is part of web3.php package.
  4. *
  5. * (c) Kuan-Cheng,Lai <alk03073135@gmail.com>
  6. *
  7. * @author Peter Lai <alk03073135@gmail.com>
  8. * @license MIT
  9. */
  10. namespace Web3\Methods\Eth;
  11. use InvalidArgumentException;
  12. use Web3\Methods\EthMethod;
  13. use Web3\Validators\BlockHashValidator;
  14. use Web3\Validators\QuantityValidator;
  15. use Web3\Formatters\HexFormatter;
  16. use Web3\Formatters\QuantityFormatter;
  17. class GetUncleByBlockHashAndIndex extends EthMethod
  18. {
  19. /**
  20. * validators
  21. *
  22. * @var array
  23. */
  24. protected $validators = [
  25. BlockHashValidator::class, QuantityValidator::class
  26. ];
  27. /**
  28. * inputFormatters
  29. *
  30. * @var array
  31. */
  32. protected $inputFormatters = [
  33. HexFormatter::class, QuantityFormatter::class
  34. ];
  35. /**
  36. * outputFormatters
  37. *
  38. * @var array
  39. */
  40. protected $outputFormatters = [];
  41. /**
  42. * defaultValues
  43. *
  44. * @var array
  45. */
  46. protected $defaultValues = [];
  47. }