19 lines
461 B
JavaScript
19 lines
461 B
JavaScript
import { defineStore } from "pinia";
|
|
import MemeBurnerJson from "@/assets/contracts/MemeBurner.json";
|
|
|
|
export const useMemeburnerStore = defineStore("memeburner", {
|
|
state: () => ({
|
|
config: MemeBurnerJson,
|
|
contract: null,
|
|
}),
|
|
getters: {},
|
|
actions: {
|
|
async getCurrentRound() {
|
|
return await this.contract.methods.currentRound().call();
|
|
},
|
|
async getGoal(roundnumber) {
|
|
return await this.contract.methods.rounds(roundnumber).call();
|
|
},
|
|
},
|
|
});
|