feat: add lock release method at blockchain util

Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
This commit is contained in:
RcleydsonR
2022-12-07 18:46:01 -03:00
parent e7ca40c30f
commit 1027744a83
2 changed files with 144 additions and 82 deletions

View File

@@ -4,14 +4,19 @@ export const useEtherStore = defineStore("ether", {
state: () => ({
walletAddress: "",
balance: "",
// Depósitos válidos para compra
depositsValidList: [{}],
depositsValidList: [] as any[],
// Depósitos adicionados na blockchain
depositsAddedList: [{}],
depositsAddedList: [] as any[],
// Depósitos expirados na blockchain
depositsExpiredList: [{}],
depositsExpiredList: [] as any[],
// Locks adicionados na blockchain
locksAddedList: [{}],
locksAddedList: [] as any[],
// Locks 'released' na blockchain
locksReleasedList: [] as any[],
// Locks expirados na blockchain
locksExpiredList: [] as any[]
}),
actions: {
setWalletAddress(walletAddress: string) {
@@ -32,5 +37,11 @@ export const useEtherStore = defineStore("ether", {
setLocksAddedList(locksAddedList: any[]) {
this.locksAddedList = locksAddedList;
},
setLocksReleasedList(locksReleasedList: any[]) {
this.locksReleasedList = locksReleasedList;
},
setLocksExpiredList(locksExpiredList: any[]) {
this.locksExpiredList = locksExpiredList;
},
},
});
});