Files
bundler/packages/client/test/ERC4337EthersProvider.test.ts
Alex Forshtat a1d487478c AA-41: ERC-4337 Provider, Bundler Server and a Docker Image (#1)
* Initial commit with lerna AA-4337 provider, bundler and helper contract

* Initial CircleCI workflow

* Initial commit for eslint task

* Initial bundler class decomposition

* Initial migration to commander.js

* Transaction is sent by MethodHandler

* Get transaction receipt by requestID

* Create yarn script for Flows with Hardhat-node, Bundler as separate processes

* Add server-side error handling to avoid unreadable errors (still WIP)

* Add docker step

* Added docker-compose.yml file

* Enable depcheck task
2022-08-23 16:20:21 +02:00

21 lines
824 B
TypeScript

// import { expect } from 'chai'
// import hre from 'hardhat'
// import { time } from '@nomicfoundation/hardhat-network-helpers'
//
// describe('Lock', function () {
// it('Should set the right unlockTime', async function () {
// const lockedAmount = 1_000_000_000
// const ONE_YEAR_IN_SECS = 365 * 24 * 60 * 60
// const unlockTime = (await time.latest()) + ONE_YEAR_IN_SECS
//
// // deploy a lock contract where funds can be withdrawn
// // one year in the future
// const Lock = await hre.ethers.getContractFactory('Lock')
// const lock = await Lock.deploy(unlockTime, { value: lockedAmount })
//
// // assert that the value is correct
// expect(await lock.unlockTime()).to.equal(unlockTime)
// })
// })
// should throw timeout exception if user operation is not mined after x time