forked from LaconicNetwork/cosmos-explorer
fixed issue
This commit is contained in:
parent
9039c08a5f
commit
90a20deceb
@ -203,4 +203,30 @@ export const DEFAULT: RequestRegistry = {
|
||||
url: '/interchain_security/ccv/provider/consumer_validators/{chain_id}',
|
||||
adapter,
|
||||
},
|
||||
|
||||
group_groups: {
|
||||
url: '/cosmos/group/v1/groups',
|
||||
adapter,
|
||||
},
|
||||
group_groups_by_admin: {
|
||||
url: '/cosmos/group/v1/groups_by_admin/{admin}',
|
||||
adapter,
|
||||
},
|
||||
group_groups_by_member: {
|
||||
url: '/cosmos/group/v1/groups_by_member/{address}',
|
||||
adapter,
|
||||
},
|
||||
group_proposal: {
|
||||
url: '/cosmos/group/v1/proposal/{proposal_id}',
|
||||
adapter,
|
||||
},
|
||||
group_proposal_tally: {
|
||||
url: '/cosmos/group/v1/proposals/{proposal_id}/tally',
|
||||
adapter,
|
||||
},
|
||||
group_proposals_by_group_policy: {
|
||||
url: '/cosmos/group/v1/proposals_by_group_policy/{address}',
|
||||
adapter,
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
@ -9,8 +9,9 @@ import type {
|
||||
GroupProposal,
|
||||
GroupTallyResult,
|
||||
NodeInfo,
|
||||
PageResponse,
|
||||
PaginabledAccounts,
|
||||
PaginatedGroupProposals,
|
||||
PaginatedGroups,
|
||||
PaginatedIBCChannels,
|
||||
PaginatedIBCConnections,
|
||||
PaginatedTendermintValidator,
|
||||
@ -130,12 +131,12 @@ export interface RequestRegistry extends AbstractRegistry {
|
||||
|
||||
params: Request<{param: any}>;
|
||||
|
||||
group_groups: Request<PageResponse<Group>>;
|
||||
group_groups_by_admin: Request<PageResponse<Group>>;
|
||||
group_groups_by_member: Request<PageResponse<Group>>;
|
||||
group_groups: Request<PaginatedGroups>;
|
||||
group_groups_by_admin: Request<PaginatedGroups>;
|
||||
group_groups_by_member: Request<PaginatedGroups>;
|
||||
group_proposal: Request<{ proposal: GroupProposal }>;
|
||||
group_proposal_tally: Request<{ tally: GroupTallyResult }>;
|
||||
group_proposals_by_group_policy: Request<PageResponse<GroupProposal>>;
|
||||
group_proposals_by_group_policy: Request<PaginatedGroupProposals>;
|
||||
|
||||
tx_txs: Request<PaginatedTxs>;
|
||||
tx_txs_block: Request<Tx>;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<script lang="ts">
|
||||
<script lang="ts" setup>
|
||||
import { fromBech32, fromHex, toBech32 } from '@cosmjs/encoding';
|
||||
|
||||
let x = toBech32("neutronvaloper1", fromHex("3363E8F97B02ECC00289E72173D827543047ACDA"))
|
||||
@ -8,5 +8,5 @@ console.log(x)
|
||||
console.log(op)
|
||||
</script>
|
||||
<template>
|
||||
<div>address: {{ x }}</div>
|
||||
<div>address: </div>
|
||||
</template>
|
||||
@ -1,3 +1,5 @@
|
||||
import type { PaginatedResponse } from "./common";
|
||||
|
||||
export interface Group {
|
||||
admin: string,
|
||||
created_at: string,
|
||||
@ -41,3 +43,12 @@ export interface GroupVote {
|
||||
submit_time: string,
|
||||
voter: string
|
||||
}
|
||||
|
||||
export interface PaginatedGroups extends PaginatedResponse {
|
||||
groups: Group[];
|
||||
}
|
||||
|
||||
export interface PaginatedGroupProposals extends PaginatedResponse {
|
||||
proposals: GroupProposal[];
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user