2020-11-16 16:55:04 +00:00
|
|
|
const { expect } = require("chai");
|
2020-11-04 17:09:34 +00:00
|
|
|
const hre = require("hardhat");
|
2020-11-16 16:55:04 +00:00
|
|
|
const { ethers } = hre;
|
2020-11-04 17:09:34 +00:00
|
|
|
|
|
|
|
async function getWallets() {
|
|
|
|
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,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = getWallets;
|