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.

59 lines
1.1 KiB

  1. package core
  2. import (
  3. "github.com/tendermint/tendermint/account"
  4. sm "github.com/tendermint/tendermint/state"
  5. "github.com/tendermint/tendermint/types"
  6. )
  7. type ResponseGenPrivAccount struct {
  8. PrivAccount *account.PrivAccount
  9. }
  10. type ResponseGetAccount struct {
  11. Account *account.Account
  12. }
  13. type ResponseListAccounts struct {
  14. BlockHeight uint
  15. Accounts []*account.Account
  16. }
  17. type ResponseBlockchainInfo struct {
  18. LastHeight uint
  19. BlockMetas []*types.BlockMeta
  20. }
  21. type ResponseGetBlock struct {
  22. BlockMeta *types.BlockMeta
  23. Block *types.Block
  24. }
  25. // curl -H 'content-type: text/plain;' http://127.0.0.1:8888/submit_tx?tx=...
  26. type ResponseBroadcastTx struct {
  27. Receipt Receipt
  28. }
  29. type ResponseStatus struct {
  30. GenesisHash []byte
  31. Network string
  32. LatestBlockHash []byte
  33. LatestBlockHeight uint
  34. LatestBlockTime int64 // nano
  35. }
  36. type ResponseNetInfo struct {
  37. NumPeers int
  38. Listening bool
  39. Network string
  40. }
  41. type ResponseSignTx struct {
  42. Tx types.Tx
  43. }
  44. type ResponseListValidators struct {
  45. BlockHeight uint
  46. BondedValidators []*sm.Validator
  47. UnbondingValidators []*sm.Validator
  48. }