You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.5 KiB

  1. package http
  2. // The types in this file define the JSON encoding for RPC method parameters
  3. // from the client to the server.
  4. import (
  5. "github.com/tendermint/tendermint/libs/bytes"
  6. "github.com/tendermint/tendermint/rpc/coretypes"
  7. )
  8. type abciQueryArgs struct {
  9. Path string `json:"path"`
  10. Data bytes.HexBytes `json:"data"`
  11. Height int64 `json:"height,string"`
  12. Prove bool `json:"prove"`
  13. }
  14. type txArgs struct {
  15. Tx []byte `json:"tx"`
  16. }
  17. type txKeyArgs struct {
  18. TxKey []byte `json:"tx_key"`
  19. }
  20. type unconfirmedArgs struct {
  21. Page *int `json:"page,string,omitempty"`
  22. PerPage *int `json:"per_page,string,omitempty"`
  23. }
  24. type heightArgs struct {
  25. Height *int64 `json:"height,string,omitempty"`
  26. }
  27. type hashArgs struct {
  28. Hash bytes.HexBytes `json:"hash"`
  29. Prove bool `json:"prove,omitempty"`
  30. }
  31. type blockchainInfoArgs struct {
  32. MinHeight int64 `json:"minHeight,string"`
  33. MaxHeight int64 `json:"maxHeight,string"`
  34. }
  35. type genesisChunkArgs struct {
  36. Chunk uint `json:"chunk,string"`
  37. }
  38. type searchArgs struct {
  39. Query string `json:"query"`
  40. Prove bool `json:"prove,omitempty"`
  41. OrderBy string `json:"order_by,omitempty"`
  42. Page *int `json:"page,string,omitempty"`
  43. PerPage *int `json:"per_page,string,omitempty"`
  44. }
  45. type validatorArgs struct {
  46. Height *int64 `json:"height,string,omitempty"`
  47. Page *int `json:"page,string,omitempty"`
  48. PerPage *int `json:"per_page,string,omitempty"`
  49. }
  50. type evidenceArgs struct {
  51. Evidence coretypes.Evidence `json:"evidence"`
  52. }