Commit Graph

  • 1f01704afd Document the account locking design Mark Spanbroek 2022-02-15 17:30:13 +0100
  • 91a976a007 Prevent withdrawal of locked collateral Mark Spanbroek 2022-02-15 17:18:25 +0100
  • c5fab40535 Account locking Mark Spanbroek 2022-02-15 17:01:54 +0100
  • 61c41e415d Fix test file name Mark Spanbroek 2022-02-14 17:31:16 +0100
  • ab38473688 Slash collateral Mark Spanbroek 2022-02-14 17:19:00 +0100
  • 2f59927b30 Check result of ERC20 transferFrom call Mark Spanbroek 2022-02-14 17:12:05 +0100
  • 9e0d05965d Update collateral totals and balance at the same time Mark Spanbroek 2022-02-14 17:05:05 +0100
  • c86fdfbec1 Withdraw collateral Mark Spanbroek 2022-02-14 16:43:56 +0100
  • 3d50e56fe7 Collateral invariant Mark Spanbroek 2022-02-14 16:19:47 +0100
  • 6e0aded775 Deposit collateral Mark Spanbroek 2022-02-14 15:47:01 +0100
  • a3fedea82e Fix test name Mark Spanbroek 2022-02-16 09:23:44 +0100
  • 8175096c44 Replace Stakes with Collateral Mark Spanbroek 2022-02-15 17:54:19 +0100
  • 78ec94997f Document the account locking design Mark Spanbroek 2022-02-15 17:30:13 +0100
  • 2197124b0e Prevent withdrawal of locked collateral Mark Spanbroek 2022-02-15 17:18:25 +0100
  • c5688fc9b0 Account locking Mark Spanbroek 2022-02-15 17:01:54 +0100
  • ce4fb57a21 Fix test file name Mark Spanbroek 2022-02-14 17:31:16 +0100
  • e01d7ce8ed Slash collateral Mark Spanbroek 2022-02-14 17:19:00 +0100
  • 28c88ac7db Check result of ERC20 transferFrom call Mark Spanbroek 2022-02-14 17:12:05 +0100
  • e1145bec18 Update collateral totals and balance at the same time Mark Spanbroek 2022-02-14 17:05:05 +0100
  • e20eb55c7c Withdraw collateral Mark Spanbroek 2022-02-14 16:43:56 +0100
  • a4754ead20 Collateral invariant Mark Spanbroek 2022-02-14 16:19:47 +0100
  • a813e79ea4 Deposit collateral Mark Spanbroek 2022-02-14 15:47:01 +0100
  • 7bcf3fe92c Run linter before tests Mark Spanbroek 2022-02-09 14:43:09 +0100
  • f7af18eb2d Lint with solhint Mark Spanbroek 2022-02-09 14:37:55 +0100
  • 78755ecaa2 Format using prettier Mark Spanbroek 2022-02-09 14:17:23 +0100
  • 395a90ff01 Run linter before tests Mark Spanbroek 2022-02-09 14:43:09 +0100
  • 52b62214bf Lint with solhint Mark Spanbroek 2022-02-09 14:37:55 +0100
  • 04614a4024 Format using prettier Mark Spanbroek 2022-02-09 14:17:23 +0100
  • 41fd33ac7a Add license Mark Spanbroek 2022-01-10 11:16:47 +0100
  • 0fedd8875f Use standard ABI encoding instead of the non-standard packing mode. Mark Spanbroek 2021-11-24 11:43:31 +0100
  • b9a9be350a Simplify signature of TestToken.mint Mark Spanbroek 2021-11-23 14:34:27 +0100
  • a794141308 Add `npm start` to start development node Mark Spanbroek 2021-11-16 16:15:11 +0100
  • a69a6d6975 Use deployment fixture for Storage contract tests Mark Spanbroek 2021-11-16 14:26:28 +0100
  • 7b16841534 Change test token to allow arbitrary minting Mark Spanbroek 2021-11-16 14:25:42 +0100
  • 9b957b9663 Add hardhat-deploy-ethers plugin Mark Spanbroek 2021-11-16 14:06:37 +0100
  • ce4760608b Add deployment scripts for TestToken and Storage Mark Spanbroek 2021-11-16 13:54:38 +0100
  • 3431f77c82 Add hardhat-deploy plugin Mark Spanbroek 2021-11-16 10:44:13 +0100
  • 14fb5b35ad Add `npm start` to start development node Mark Spanbroek 2021-11-16 16:15:11 +0100
  • 1e3a1b113b Use deployment fixture for Storage contract tests Mark Spanbroek 2021-11-16 14:26:28 +0100
  • 85ed53c37a Change test token to allow arbitrary minting Mark Spanbroek 2021-11-16 14:25:42 +0100
  • 3b0d447262 Add hardhat-deploy-ethers plugin Mark Spanbroek 2021-11-16 14:06:37 +0100
  • 3772975745 Add deployment scripts for TestToken and Storage Mark Spanbroek 2021-11-16 13:54:38 +0100
  • 40ea854c09 Add hardhat-deploy plugin Mark Spanbroek 2021-11-16 10:44:13 +0100
  • f499b8453d Add Readme Mark Spanbroek 2021-11-08 16:07:43 +0100
  • 0c0ee0fad6 MIT license Mark Spanbroek 2021-11-08 16:03:32 +0100
  • 2277fd1366 Add TODO Mark Spanbroek 2021-11-04 14:28:02 +0100
  • 8bb8441bce Slash host stake when too many proofs are missing Mark Spanbroek 2021-11-04 14:19:58 +0100
  • 50bab88447 Allow slashing of stake Mark Spanbroek 2021-11-04 13:16:11 +0100
  • 38fee6d83a Pay host when contract is finished Mark Spanbroek 2021-11-04 11:55:47 +0100
  • d2a3cc4a89 Client pays price when creating contract Mark Spanbroek 2021-11-04 11:40:03 +0100
  • afad0e49ec Mint test tokens for both client and host Mark Spanbroek 2021-11-04 11:32:21 +0100
  • 54cc2987df Ensure that finishing a contract can only be done once Mark Spanbroek 2021-11-04 11:18:05 +0100
  • 8fbb99630c Ensure that starting a contract can only be done once Mark Spanbroek 2021-11-04 10:23:00 +0100
  • aa673ff71c Unlock host stake at end of contract Mark Spanbroek 2021-11-04 10:19:23 +0100
  • d0a22afc3d Extract mining test helpers to separate module Mark Spanbroek 2021-11-04 10:18:09 +0100
  • 6de82709ca Only host can call start on a contract Mark Spanbroek 2021-11-04 09:53:01 +0100
  • 376962322d Only expect proofs when the contract is started Mark Spanbroek 2021-11-04 09:49:07 +0100
  • 7bb949a5cc Wording Mark Spanbroek 2021-11-03 17:20:33 +0100
  • b865d0f4c9 Decrease chance of incidental test failure Mark Spanbroek 2021-11-03 17:15:24 +0100
  • c0fb0c725c Do not require proofs before start of contract Mark Spanbroek 2021-11-03 17:15:03 +0100
  • 8efa9fe162 Stop requiring proofs when contract has ended Mark Spanbroek 2021-11-03 17:02:12 +0100
  • 2784800c3e Add end time to proofs based on contract duration Mark Spanbroek 2021-11-03 13:24:50 +0100
  • 3326c4fe74 Make isProofRequired() work for the current block Mark Spanbroek 2021-11-03 13:18:08 +0100
  • e7f3dc3dae Define contract duration in number of blocks Mark Spanbroek 2021-11-03 11:10:42 +0100
  • 65c3cacb66 Host stake is locked up when contract is created Mark Spanbroek 2021-11-02 12:50:06 +0100
  • d49c75a74b Make amount of stake configurable Mark Spanbroek 2021-11-02 12:45:09 +0100
  • 8736e5a1aa Host has to put up stake before entering into a contract Mark Spanbroek 2021-11-02 11:19:52 +0100
  • 3b6ec4126d Fix comments Mark Spanbroek 2021-11-02 09:46:15 +0100
  • 5eb571fe1c Use 'request' and 'bid' objects in tests Mark Spanbroek 2021-11-02 09:45:49 +0100
  • a5e05018ad Move example values for tests into separate file Mark Spanbroek 2021-11-02 09:04:51 +0100
  • 7b6c6c2fc5 Rename: StorageContracts -> Storage Mark Spanbroek 2021-11-01 16:34:01 +0100
  • eefa23ff02 Change parameter order Mark Spanbroek 2021-11-01 16:23:37 +0100
  • 650f5d1f1a Checking of new storage contracts is moved to Contracts.sol Mark Spanbroek 2021-11-01 16:17:42 +0100
  • aa0def1127 Move timeout validity check to Proofs contract Mark Spanbroek 2021-11-01 15:28:22 +0100
  • d5dede6e6b Change visibility of stake functions to 'internal' Mark Spanbroek 2021-11-01 15:17:19 +0100
  • d1f5ce0786 Extract logic around proofs into separate contract Mark Spanbroek 2021-11-01 12:30:35 +0100
  • c013a37229 Add contract for keeping track of stakes in ERC20 tokens Mark Spanbroek 2021-10-21 14:06:30 +0200
  • 23887f9190 Do not mark proof as missing twice Mark Spanbroek 2021-10-21 10:32:29 +0200
  • c3e85c675a Use bid hash as contract id Mark Spanbroek 2021-10-20 14:28:05 +0200
  • 08cedae4bf Multiple storage contracts in solidity contract Mark Spanbroek 2021-10-20 12:07:35 +0200
  • d005bf7c3c Rename StorageContract -> StorageContracts Mark Spanbroek 2021-10-20 09:04:03 +0200
  • 4913edb6ce Allow anyone to mark missing proofs Mark Spanbroek 2021-10-19 09:37:03 +0200
  • 973b70734f Make test less dependent on exact timing of block timestamp Mark Spanbroek 2021-10-18 16:20:30 +0200
  • 47f0746f06 Add expiration time to bids Mark Spanbroek 2021-10-18 15:29:58 +0200
  • 71efdd36c7 Add (dummy) proof submission Mark Spanbroek 2021-10-18 14:55:59 +0200
  • 01e18ee494 Add continuous integration Mark Spanbroek 2021-10-14 14:54:43 +0200
  • 04b2a31f74 Add hash of data that is to be stored to the contract Mark Spanbroek 2021-10-14 14:49:29 +0200
  • 23a4b84816 Add proof period and timeout to request for storage Mark Spanbroek 2021-10-14 14:01:28 +0200
  • cbf34df013 Require proofs on average once every proof period Mark Spanbroek 2021-10-14 12:37:14 +0200
  • 550fcf4afe Add proof period and timeout to contract Mark Spanbroek 2021-10-14 09:10:57 +0200
  • 31807dfe58 Add TODO's as suggested by Tanguy Mark Spanbroek 2021-10-13 10:21:03 +0200
  • 6ef71f0419 Introduces StorageContract Mark Spanbroek 2021-10-12 16:59:34 +0200
  • 545ed4b011 Add OpenZeppelin contracts Mark Spanbroek 2021-10-12 13:35:41 +0200
  • 44433926bf Hardhat setup Mark Spanbroek 2021-10-12 08:35:24 +0200