Cosmos · Schema

Cosmos SDK tendermint.types.LightClientAttackEvidence Schemas

JSON Schema definitions for the tendermint.types.LightClientAttackEvidence module of the Cosmos SDK gRPC-gateway REST API.

BlockchainCosmosIBCStakingGovernanceDeFiWeb3
View JSON Schema on GitHub

JSON Schema

tendermint-types-LightClientAttackEvidence.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Cosmos SDK tendermint.types.LightClientAttackEvidence Schemas",
  "description": "JSON Schema definitions for the tendermint.types.LightClientAttackEvidence module of the Cosmos SDK gRPC-gateway REST API.",
  "definitions": {
    "tendermint.types.LightClientAttackEvidence": {
      "type": "object",
      "properties": {
        "conflictingBlock": {
          "type": "object",
          "properties": {
            "signedHeader": {
              "type": "object",
              "properties": {
                "header": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "title": "basic block info",
                      "type": "object",
                      "properties": {
                        "block": {
                          "type": "string",
                          "format": "uint64"
                        },
                        "app": {
                          "type": "string",
                          "format": "uint64"
                        }
                      },
                      "description": "Consensus captures the consensus rules for processing a block in the blockchain,\nincluding all blockchain data structures and the rules of the application's\nstate transition machine."
                    },
                    "chainId": {
                      "type": "string"
                    },
                    "height": {
                      "type": "string",
                      "format": "int64"
                    },
                    "time": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "lastBlockId": {
                      "type": "object",
                      "properties": {
                        "hash": {
                          "type": "string",
                          "format": "byte"
                        },
                        "partSetHeader": {
                          "type": "object",
                          "properties": {
                            "total": {
                              "type": "integer",
                              "format": "int64"
                            },
                            "hash": {
                              "type": "string",
                              "format": "byte"
                            }
                          },
                          "title": "PartsetHeader"
                        }
                      },
                      "title": "BlockID"
                    },
                    "lastCommitHash": {
                      "type": "string",
                      "format": "byte",
                      "description": "commit from validators from the last block",
                      "title": "hashes of block data"
                    },
                    "dataHash": {
                      "type": "string",
                      "format": "byte",
                      "title": "transactions"
                    },
                    "validatorsHash": {
                      "type": "string",
                      "format": "byte",
                      "description": "validators for the current block",
                      "title": "hashes from the app output from the prev block"
                    },
                    "nextValidatorsHash": {
                      "type": "string",
                      "format": "byte",
                      "title": "validators for the next block"
                    },
                    "consensusHash": {
                      "type": "string",
                      "format": "byte",
                      "title": "consensus params for current block"
                    },
                    "appHash": {
                      "type": "string",
                      "format": "byte",
                      "title": "state after txs from the previous block"
                    },
                    "lastResultsHash": {
                      "type": "string",
                      "format": "byte",
                      "title": "root hash of all results from the txs from the previous block"
                    },
                    "evidenceHash": {
                      "type": "string",
                      "format": "byte",
                      "description": "evidence included in the block",
                      "title": "consensus info"
                    },
                    "proposerAddress": {
                      "type": "string",
                      "format": "byte",
                      "title": "original proposer of the block"
                    }
                  },
                  "description": "Header defines the structure of a block header."
                },
                "commit": {
                  "type": "object",
                  "properties": {
                    "height": {
                      "type": "string",
                      "format": "int64"
                    },
                    "round": {
                      "type": "integer",
                      "format": "int32"
                    },
                    "blockId": {
                      "type": "object",
                      "properties": {
                        "hash": {
                          "type": "string",
                          "format": "byte"
                        },
                        "partSetHeader": {
                          "type": "object",
                          "properties": {
                            "total": {
                              "type": "integer",
                              "format": "int64"
                            },
                            "hash": {
                              "type": "string",
                              "format": "byte"
                            }
                          },
                          "title": "PartsetHeader"
                        }
                      },
                      "title": "BlockID"
                    },
                    "signatures": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "blockIdFlag": {
                            "type": "string",
                            "enum": [
                              "BLOCK_ID_FLAG_UNKNOWN",
                              "BLOCK_ID_FLAG_ABSENT",
                              "BLOCK_ID_FLAG_COMMIT",
                              "BLOCK_ID_FLAG_NIL"
                            ],
                            "default": "BLOCK_ID_FLAG_UNKNOWN",
                            "description": "- BLOCK_ID_FLAG_UNKNOWN: indicates an error condition\n - BLOCK_ID_FLAG_ABSENT: the vote was not received\n - BLOCK_ID_FLAG_COMMIT: voted for the block that received the majority\n - BLOCK_ID_FLAG_NIL: voted for nil",
                            "title": "BlockIdFlag indicates which BlockID the signature is for"
                          },
                          "validatorAddress": {
                            "type": "string",
                            "format": "byte"
                          },
                          "timestamp": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "signature": {
                            "type": "string",
                            "format": "byte"
                          }
                        },
                        "description": "CommitSig is a part of the Vote included in a Commit."
                      }
                    }
                  },
                  "description": "Commit contains the evidence that a block was committed by a set of validators."
                }
              }
            },
            "validatorSet": {
              "type": "object",
              "properties": {
                "validators": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "address": {
                        "type": "string",
                        "format": "byte"
                      },
                      "pubKey": {
                        "type": "object",
                        "properties": {
                          "ed25519": {
                            "type": "string",
                            "format": "byte"
                          },
                          "secp256k1": {
                            "type": "string",
                            "format": "byte"
                          }
                        },
                        "title": "PublicKey defines the keys available for use with Validators"
                      },
                      "votingPower": {
                        "type": "string",
                        "format": "int64"
                      },
                      "proposerPriority": {
                        "type": "string",
                        "format": "int64"
                      }
                    }
                  }
                },
                "proposer": {
                  "type": "object",
                  "properties": {
                    "address": {
                      "type": "string",
                      "format": "byte"
                    },
                    "pubKey": {
                      "type": "object",
                      "properties": {
                        "ed25519": {
                          "type": "string",
                          "format": "byte"
                        },
                        "secp256k1": {
                          "type": "string",
                          "format": "byte"
                        }
                      },
                      "title": "PublicKey defines the keys available for use with Validators"
                    },
                    "votingPower": {
                      "type": "string",
                      "format": "int64"
                    },
                    "proposerPriority": {
                      "type": "string",
                      "format": "int64"
                    }
                  }
                },
                "totalVotingPower": {
                  "type": "string",
                  "format": "int64"
                }
              }
            }
          }
        },
        "commonHeight": {
          "type": "string",
          "format": "int64"
        },
        "byzantineValidators": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string",
                "format": "byte"
              },
              "pubKey": {
                "type": "object",
                "properties": {
                  "ed25519": {
                    "type": "string",
                    "format": "byte"
                  },
                  "secp256k1": {
                    "type": "string",
                    "format": "byte"
                  }
                },
                "title": "PublicKey defines the keys available for use with Validators"
              },
              "votingPower": {
                "type": "string",
                "format": "int64"
              },
              "proposerPriority": {
                "type": "string",
                "format": "int64"
              }
            }
          }
        },
        "totalVotingPower": {
          "type": "string",
          "format": "int64"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "description": "LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client."
    }
  }
}