cosmos-explorer/src/stores/useDistributionStore.ts
2023-05-14 16:26:18 +08:00

19 lines
397 B
TypeScript

import { defineStore } from 'pinia';
import { useBlockchain } from './useBlockchain';
export const useDistributionStore = defineStore('distributionStore', {
state: () => {
return {};
},
getters: {
blockchain() {
return useBlockchain();
},
},
actions: {
async fetchCommunityPool() {
return this.blockchain.rpc?.getDistributionCommunityPool();
},
},
});