partial commit (will be removed)

This commit is contained in:
RcleydsonR
2022-12-28 20:24:41 -03:00
parent c6067fb4eb
commit 59c9eabd30
5 changed files with 92 additions and 58 deletions

View File

@@ -47,4 +47,14 @@ export const useEtherStore = defineStore("ether", {
this.locksExpiredList = locksExpiredList;
},
},
getters: {
getValidDepositByWalletAddress: (state) => {
return (walletAddress: string) =>
state.depositsValidList
.filter((deposit) => deposit.seller == walletAddress)
.sort((a, b) => {
return b.blockNumber - a.blockNumber;
});
},
},
});