mirror of
https://github.com/getwax/bundler.git
synced 2026-01-09 23:57:58 -05:00
* 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
21 lines
824 B
TypeScript
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
|