forked from LaconicNetwork/cosmos-explorer
finish tx detail
This commit is contained in:
+50
-1
@@ -1,4 +1,5 @@
|
||||
import type { Key } from "./common"
|
||||
import type { Tx } from "./tx"
|
||||
|
||||
export interface NodeInfo {
|
||||
"default_node_info": {
|
||||
@@ -35,9 +36,57 @@ export interface NodeInfo {
|
||||
"cosmos_sdk_version": string,
|
||||
}
|
||||
}
|
||||
export interface BlockId {
|
||||
"hash": string,
|
||||
"part_set_header": {
|
||||
"total": number,
|
||||
"hash": string
|
||||
}
|
||||
}
|
||||
|
||||
export interface Signature
|
||||
{
|
||||
"block_id_flag": string,
|
||||
"validator_address": string,
|
||||
"timestamp": string,
|
||||
"signature": string,
|
||||
}
|
||||
|
||||
export interface Block {
|
||||
|
||||
"block_id": BlockId,
|
||||
"block": {
|
||||
"header": {
|
||||
"version": {
|
||||
"block": string,
|
||||
"app": string
|
||||
},
|
||||
"chain_id": string,
|
||||
"height": string,
|
||||
"time": string,
|
||||
"last_block_id": BlockId,
|
||||
"last_commit_hash": string,
|
||||
"data_hash": string,
|
||||
"validators_hash": string,
|
||||
"next_validators_hash": string,
|
||||
"consensus_hash": string,
|
||||
"app_hash": string,
|
||||
"last_results_hash": string,
|
||||
"evidence_hash": string,
|
||||
"proposer_address": string,
|
||||
},
|
||||
"data": {
|
||||
"txs": any[]
|
||||
},
|
||||
"evidence": {
|
||||
"evidence": any[]
|
||||
},
|
||||
"last_commit": {
|
||||
"height": string,
|
||||
"round": number,
|
||||
"block_id": BlockId,
|
||||
"signatures": Signature[]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export interface TendermintValidator {
|
||||
|
||||
+5
-1
@@ -8,6 +8,10 @@ export interface Pagination {
|
||||
total?: string;
|
||||
}
|
||||
|
||||
export class PageRequest {
|
||||
limit?: number;
|
||||
}
|
||||
|
||||
export interface PaginatedResponse {
|
||||
pagination: Pagination;
|
||||
}
|
||||
@@ -17,6 +21,6 @@ export class Response<T> {
|
||||
}
|
||||
|
||||
export interface Coin {
|
||||
amount: string|number;
|
||||
amount: string;
|
||||
denom: string;
|
||||
}
|
||||
+4
-6
@@ -44,12 +44,10 @@ export interface GovProposal {
|
||||
}
|
||||
|
||||
export interface Tally {
|
||||
tally: {
|
||||
yes: string,
|
||||
abstain: string,
|
||||
no: string,
|
||||
no_with_veto: string
|
||||
}
|
||||
yes: string,
|
||||
abstain: string,
|
||||
no: string,
|
||||
no_with_veto: string
|
||||
}
|
||||
|
||||
export interface GovVote {
|
||||
|
||||
+2
-1
@@ -5,4 +5,5 @@ export * from './bank'
|
||||
export * from './common'
|
||||
export * from './distribution'
|
||||
export * from './gov'
|
||||
export * from './staking'
|
||||
export * from './staking'
|
||||
export * from './tx'
|
||||
+10
-8
@@ -16,17 +16,19 @@ export interface Validator {
|
||||
},
|
||||
"unbonding_height": string,
|
||||
"unbonding_time": string,
|
||||
"commission": {
|
||||
"commission_rates": {
|
||||
"rate": string,
|
||||
"max_rate": string,
|
||||
"max_change_rate": string
|
||||
},
|
||||
"update_time": string
|
||||
},
|
||||
"commission": CommissionRate,
|
||||
"min_self_delegation": string
|
||||
}
|
||||
|
||||
export interface CommissionRate {
|
||||
"commission_rates": {
|
||||
"rate": string,
|
||||
"max_rate": string,
|
||||
"max_change_rate": string
|
||||
},
|
||||
"update_time": string
|
||||
}
|
||||
|
||||
export interface Delegation {
|
||||
delegation: {
|
||||
delegator_address: string,
|
||||
|
||||
Reference in New Issue
Block a user