Add typing on views layer
Co-authored-by: geovanne97 <geovannessaraiva97@gmail.com>
This commit is contained in:
@@ -11,10 +11,7 @@ import { formatEther, parseEther } from "ethers/lib/utils";
|
||||
// Buyer Flow methods //
|
||||
|
||||
// Make lock
|
||||
const addLock = async (
|
||||
depositId: BigNumber,
|
||||
amount: number
|
||||
): Promise<any> => {
|
||||
const addLock = async (depositId: BigNumber, amount: number): Promise<any> => {
|
||||
const etherStore = useEtherStore();
|
||||
|
||||
const provider = getProvider();
|
||||
|
||||
@@ -42,7 +42,9 @@ const getNetworksLiquidity = async (): Promise<void> => {
|
||||
console.log(depositListMumbai);
|
||||
};
|
||||
|
||||
const getValidDeposits = async (contract?: Contract): Promise<ValidDeposit[]> => {
|
||||
const getValidDeposits = async (
|
||||
contract?: Contract
|
||||
): Promise<ValidDeposit[]> => {
|
||||
let p2pContract: Contract;
|
||||
|
||||
if (contract) {
|
||||
|
||||
Reference in New Issue
Block a user