Commit Graph

48 Commits

Author SHA1 Message Date
ChronosX88
ae9c21baaf
Refactor and cleanup consensus code architecture 2021-04-30 22:55:12 +03:00
ChronosX88
e0f004ea5d
Cover DioneStaking by 100% with unit tests 2021-04-28 23:13:22 +03:00
ChronosX88
8a07edcb06
Add missing asserts, add some events, fix vulnerability with transfering tokens 2021-04-28 23:12:51 +03:00
ChronosX88
b11eef4df1
Add one more test case for DioneOracle 2021-04-27 22:53:08 +03:00
ChronosX88
e0051ce982
Cover DioneDispute by 100% with unit tests 2021-04-27 22:11:34 +03:00
ChronosX88
7c3e726df1
Disallow beginning dispute when beginner isn't Dione miner 2021-04-27 22:10:13 +03:00
ChronosX88
0045c96940
Add hardhat-coverage and eth-gas-reporter Hardhat plugins 2021-04-27 22:09:37 +03:00
ChronosX88
6a389f1b5d
Add more unit tests for DioneDispute 2021-04-27 21:24:24 +03:00
ChronosX88
4c15285e74
Fix some things in DioneOracle unit test 2021-04-27 21:24:14 +03:00
ChronosX88
8dbd84e00b
Fix checking request deadline when submitting result in DioneOracle 2021-04-27 21:23:53 +03:00
ChronosX88
6a3349a9ee
Disallow voting in dispute for miner against whom dispute has beginned 2021-04-27 21:22:09 +03:00
ChronosX88
f8576cffea
[DioneDispute] Change type of sum property in Dispute struct, add missing checks and add minStake check 2021-04-27 21:10:40 +03:00
ChronosX88
857c21a232
Add more unit tests for DioneOracle, add enabling/disabling logging for contracts deployment 2021-04-27 18:52:28 +03:00
ChronosX88
6e87bbe644
Write basic unit test for DioneOracle smart contract 2021-04-27 01:03:23 +03:00
ChronosX88
301de34cc3
Remove delay for DioneDispute unit test 2021-04-27 01:01:20 +03:00
ChronosX88
c74ec4db26
Remove callback address/method id from NewOracleRequest event properties 2021-04-27 01:01:04 +03:00
ChronosX88
4395f94b68
Update .gitignore 2021-04-27 00:53:39 +03:00
ChronosX88
2b05af3037
Refactor contract deployment code 2021-04-22 21:30:51 +03:00
ChronosX88
bfce1b715a
Add unit test for DioneDispute contract 2021-04-21 00:40:47 +03:00
ChronosX88
0114f53f6d
Fix slashMiner in DioneStaking 2021-04-21 00:40:27 +03:00
ChronosX88
4b3aa6df57
Fix unexpected reverts and implement customizable vote window time in DioneDispute contract 2021-04-21 00:39:47 +03:00
ChronosX88
fb22d3c4e3
Return Mediator contract back 2021-04-19 22:46:49 +03:00
ChronosX88
f0ecad1cbf
Reduce params count for submission in DioneOracle contract, fix small stupid bugs in dione 2021-04-19 22:46:17 +03:00
ChronosX88
9fcd925dcb
Cleanup eth-contracts 2021-04-15 02:14:13 +03:00
ChronosX88
03f1b85170
Drop Embark, move to Hardhat, write fully automated deployment script 2021-04-15 02:04:28 +03:00
ChronosX88
1f83763b70
Update .gitignore 2021-04-15 02:01:07 +03:00
ChronosX88
2441d2ca40
Implement deriving eth private key from mnemonic phrase 2021-04-15 00:04:21 +03:00
ChronosX88
8618f631f4
Prepare eth contracts for Solidity 0.8.X, migrate to Embark framework 2021-04-14 00:22:30 +03:00
ChronosX88
35e7994da7
Implement basic version of dispute manager, slightly refactor consensus package 2021-03-15 23:39:52 +03:00
ChronosX88
56c23a9087
Cleanup old contracts from eth-contracts folder 2021-03-05 22:42:09 +03:00
ChronosX88
06122ccd82
Fix syntax errors in DioneDispute smart-contract 2021-03-04 21:22:29 +03:00
ChronosX88
ebc29c2078
Remove calling slashMiner when dispute result has any value 2021-03-03 01:05:29 +03:00
ChronosX88
8ead31a45e
Add simple miner slashing algorithm, add error messages to DioneDispute.sol 2021-03-03 01:04:19 +03:00
ChronosX88
21e50dd13a
Implement DioneDispute contract 2021-02-26 22:53:43 +03:00
bahadylbekov
a42776be67 add: filecoin message validation, secp signature 2020-12-02 17:03:39 +03:00
bahadylbekov
b4c03da4ba add: DioneOracle contract to replace Aggregator and OracleEmitter with simple oracle requests storage 2020-11-30 03:22:18 +03:00
bahadylbekov
cc034cc884 fix: Proof-of-Stake mining reward on sending data to Aggregator contract 2020-11-25 21:54:59 +03:00
ChronosX88
b5893b03f4
Implement dynamic RPC client method managing 2020-11-24 01:59:27 +04:00
bahadylbekov
52ec8dbd35 add: filecoin api schema, eth-contracts types changes 2020-11-23 19:53:44 +03:00
bahadylbekov
78e4ec34a6 fix: aggregator contract 2020-11-15 13:16:38 +03:00
bahadylbekov
3e68466665 fix: changed aggregator contract logic, dioneStaking contract, filecoin client 2020-11-14 14:25:14 +03:00
ChronosX88
ffa03747d8
Update .gitignore (ignore *.abi) 2020-11-14 14:00:40 +04:00
bahadylbekov
2551affae0 add: solana rpc, solana program subscription, miner beacon entries usage, fixed DioneStaking smart contract 2020-11-13 17:04:10 +03:00
ChronosX88
4435868b42
[Smart Contracts] Refactor minerStake() function in DioneStaking - remove address argument and use msg.sender 2020-11-12 18:20:27 +04:00
bahadylbekov
9219e483a1 add: integrate DioneStaking contract into ethereum client and node store 2020-10-30 08:23:08 +03:00
bahadylbekov
9b8c4eb012 add: dione token, dione staking contract, timelock contract, fix wallet and consensus leader 2020-10-30 06:41:19 +03:00
bahadylbekov
aa6a44b9e9 fix: add Ownable.sol smart contract 2020-08-04 20:24:46 +02:00
bahadylbekov
cfc246a3a1 add: ethereum rpc wallet operation, send transaction method, smart contracts golang artifacts 2020-08-04 20:19:42 +02:00