cosmos-explorer/src/stores/useDistributionStore.ts
2023-04-06 08:17:40 +08:00

19 lines
441 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()
}
}
})