forked from LaconicNetwork/cosmos-explorer
add group
This commit is contained in:
parent
cca765b4ab
commit
274a915f32
0
src/modules/[chain]/group/index.vue
Normal file
0
src/modules/[chain]/group/index.vue
Normal file
9
src/stores/useGroupStore.ts
Normal file
9
src/stores/useGroupStore.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { defineStore } from 'pinia';
|
||||
|
||||
export const useStoreName = defineStore('group', {
|
||||
state: () => {
|
||||
return {};
|
||||
},
|
||||
getters: {},
|
||||
actions: {},
|
||||
});
|
||||
43
src/types/group.ts
Normal file
43
src/types/group.ts
Normal file
@ -0,0 +1,43 @@
|
||||
export interface Group {
|
||||
admin: string,
|
||||
created_at: string,
|
||||
id: string,
|
||||
metadata: string,
|
||||
total_weight: string,
|
||||
version: string
|
||||
}
|
||||
|
||||
export interface GroupPolicy {
|
||||
}
|
||||
|
||||
export interface GroupTallyResult {
|
||||
abstain_count: string,
|
||||
no_count: string,
|
||||
no_with_veto_count: string,
|
||||
yes_count: string
|
||||
}
|
||||
|
||||
export interface GroupProposal {
|
||||
executor_result: string,
|
||||
final_tally_result: GroupTallyResult,
|
||||
group_policy_address: string,
|
||||
group_policy_version: string,
|
||||
group_version: string,
|
||||
id: string,
|
||||
messages: any[],
|
||||
metadata: string,
|
||||
proposers: string[],
|
||||
status: string,
|
||||
submit_time: string,
|
||||
summary: string,
|
||||
title: string,
|
||||
voting_period_end: string
|
||||
}
|
||||
|
||||
export interface GroupVote {
|
||||
metadata: string,
|
||||
option: string,
|
||||
proposal_id: string,
|
||||
submit_time: string,
|
||||
voter: string
|
||||
}
|
||||
@ -8,4 +8,5 @@ export * from './gov'
|
||||
export * from './staking'
|
||||
export * from './transaction'
|
||||
export * from './ibc'
|
||||
export * from './slashing'
|
||||
export * from './slashing'
|
||||
export * from './group'
|
||||
Loading…
Reference in New Issue
Block a user