mirror of
				https://github.com/Instadapp/Gelato-automations.git
				synced 2024-07-29 22:28:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			976 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			976 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const { expect } = require("chai");
 | |
| const hre = require("hardhat");
 | |
| const { ethers } = hre;
 | |
| 
 | |
| module.exports = async function () {
 | |
|   let userWallet;
 | |
|   let userAddress;
 | |
|   let gelatoProviderWallet;
 | |
|   let gelatoProviderAddress;
 | |
|   let gelatoExecutorWallet;
 | |
|   let gelatoExecutorAddress;
 | |
| 
 | |
|   [
 | |
|     userWallet,
 | |
|     gelatoProviderWallet,
 | |
|     gelatoExecutorWallet,
 | |
|   ] = await ethers.getSigners();
 | |
|   userAddress = await userWallet.getAddress();
 | |
|   gelatoProviderAddress = await gelatoProviderWallet.getAddress();
 | |
|   gelatoExecutorAddress = await gelatoExecutorWallet.getAddress();
 | |
| 
 | |
|   // Hardhat default wallets prefilled with 100 ETH
 | |
|   expect(await userWallet.getBalance()).to.be.gt(ethers.utils.parseEther("10"));
 | |
| 
 | |
|   return {
 | |
|     userWallet: userWallet,
 | |
|     userAddress: userAddress,
 | |
|     gelatoProviderWallet: gelatoProviderWallet,
 | |
|     gelatoProviderAddress: gelatoProviderAddress,
 | |
|     gelatoExecutorWallet: gelatoExecutorWallet,
 | |
|     gelatoExecutorAddress: gelatoExecutorAddress,
 | |
|   };
 | |
| };
 | 
