2022-11-24 13:05:33 -03:00

21 lines
446 B
TypeScript

import { defineStore } from "pinia";
export const useEtherStore = defineStore("ether", {
state: () => ({
walletAddress: "",
balance: "",
depositList: {},
}),
actions: {
setWalletAddress(walletAddress: string) {
this.walletAddress = walletAddress;
},
setBalance(balance: string) {
this.balance = balance;
},
setDepositList(depositList: {}) {
this.depositList = depositList;
},
},
});