forked from LaconicNetwork/cosmos-explorer
19 lines
397 B
TypeScript
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();
|
|
},
|
|
},
|
|
});
|