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
|
|
|
|
2020-11-15 14:08:12 +00:00
|
|
|
module.exports = async function () {
|
2020-11-04 17:09:34 +00:00
|
|
|
let userWallet;
|
|
|
|
let userAddress;
|
2020-11-27 12:38:13 +00:00
|
|
|
let gelatoProvider;
|
2020-11-04 17:09:34 +00:00
|
|
|
let gelatoProviderAddress;
|
2020-11-27 12:38:13 +00:00
|
|
|
let executor;
|
2020-11-04 17:09:34 +00:00
|
|
|
let gelatoExecutorAddress;
|
|
|
|
|
2020-11-27 12:38:13 +00:00
|
|
|
[userWallet, gelatoProvider, executor] = await ethers.getSigners();
|
2020-11-04 17:09:34 +00:00
|
|
|
userAddress = await userWallet.getAddress();
|
2020-11-27 12:38:13 +00:00
|
|
|
gelatoProviderAddress = await gelatoProvider.getAddress();
|
|
|
|
gelatoExecutorAddress = await executor.getAddress();
|
2020-11-04 17:09:34 +00:00
|
|
|
|
|
|
|
// Hardhat default wallets prefilled with 100 ETH
|
|
|
|
expect(await userWallet.getBalance()).to.be.gt(ethers.utils.parseEther("10"));
|
|
|
|
|
|
|
|
return {
|
|
|
|
userWallet: userWallet,
|
|
|
|
userAddress: userAddress,
|
2020-11-27 12:38:13 +00:00
|
|
|
gelatoProvider: gelatoProvider,
|
2020-11-04 17:09:34 +00:00
|
|
|
gelatoProviderAddress: gelatoProviderAddress,
|
2020-11-27 12:38:13 +00:00
|
|
|
executor: executor,
|
2020-11-04 17:09:34 +00:00
|
|
|
gelatoExecutorAddress: gelatoExecutorAddress,
|
|
|
|
};
|
2020-11-15 14:08:12 +00:00
|
|
|
};
|