Skip to content

Commit

Permalink
Add CosmosBlockResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
gemcoder21 committed Jan 3, 2024
1 parent d149be3 commit fcedc81
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions blockchain/src/cosmos/models/cosmos_node_info.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#[typeshare]
struct CosmosNodeInfo {
network: String,
struct CosmosBlockResponse {
block: CosmosBlock,
}

#[typeshare]
struct CosmosNodeInfoResponse {
default_node_info: CosmosNodeInfo,
struct CosmosBlock {
header: CosmosHeader,
}

#[typeshare]
struct CosmosHeader {
chain_id: String,
}

0 comments on commit fcedc81

Please sign in to comment.