add group

This commit is contained in:
liangping 2025-04-07 08:50:44 +08:00
parent cca765b4ab
commit 274a915f32
4 changed files with 54 additions and 1 deletions

View File

View 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
View 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
}

View File

@ -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'