|
@@ -1,18 +1,22 @@
|
|
|
-import {ethers} from "hardhat";
|
|
|
|
|
-
|
|
|
|
|
-import { network } from "hardhat";
|
|
|
|
|
|
|
+import { web3 } from "hardhat";
|
|
|
|
|
+import deployer from '../.secret'
|
|
|
|
|
+const hre = require('hardhat')
|
|
|
|
|
|
|
|
describe('Univ3 Test', () => {
|
|
describe('Univ3 Test', () => {
|
|
|
-
|
|
|
|
|
it('Parse ether test', async () => {
|
|
it('Parse ether test', async () => {
|
|
|
- console.log(ethers.utils.parseEther('2.123456789'))
|
|
|
|
|
|
|
+ console.log(web3.utils.toWei('1', 'gwei'))
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
it('Get block number test', async () => {
|
|
it('Get block number test', async () => {
|
|
|
- console.log(await ethers.provider.getBlockNumber())
|
|
|
|
|
|
|
+ console.log(await web3.eth.getBlockNumber())
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ it('Get balance test', async () => {
|
|
|
|
|
+ console.log(hre.network)
|
|
|
|
|
+ console.log(deployer)
|
|
|
|
|
+
|
|
|
|
|
+ // console.log(await web3.eth.getBalance(accountList[0]))
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- // it('Get balance test', async () => {
|
|
|
|
|
- // console.log(ethers.provider.getBalance())
|
|
|
|
|
- // })
|
|
|
|
|
|
|
+ it('Transfer test')
|
|
|
})
|
|
})
|