Commit Graph

401 Commits

Author SHA1 Message Date
Gerardo Nardelli 7b629ea7a3 Add bridge contract checks on ERC677BridgeToken 2018-09-28 10:28:33 -03:00
Gerardo Nardelli 45db0ff5ae Revert token transfer if bridge method call fails 2018-09-27 17:22:30 -03:00
Gerardo Nardelli ac473ca5dc Add bridge contract reference on ERC677BridgeToken 2018-09-27 16:39:06 -03:00
Gerardo Nardelli 750d2e2b9f Update mintedTotally method name on block reward contract 2018-09-25 15:50:58 -03:00
Gerardo Nardelli 353a429831 Add totalMintedCoins method on BlockReward contract 2018-09-25 14:59:11 -03:00
Franco Victorio 817d1c73c9 Add totalMintedCoins to IBlockReward 2018-09-25 13:06:45 -03:00
Gerardo Nardelli 2a5a199152 Add gasPrice on initialize foreign erc-to-native 2018-09-24 10:23:05 -03:00
Gerardo Nardelli fdf9d39abd Update BasicBridge version to 2.1.0 2018-09-24 09:09:53 -03:00
Gerardo Nardelli c36af23bf2 Fix setBlockRewardContract method 2018-09-21 16:33:33 -03:00
Gerardo Nardelli 2c7db37a6d Add erc20-to-native bridge mode method 2018-09-20 16:17:55 -03:00
Gerardo Nardelli 845dd82172 Add erc20-to-native contracts 2018-09-20 16:17:12 -03:00
Gerardo Nardelli 04a0e2a5dc Add BlockReward test contract 2018-09-20 16:16:59 -03:00
Gerardo Nardelli 2cc71aa4b4 Update contract versions 2018-09-18 10:47:33 -03:00
Gerardo Nardelli efd3796134 Rename Token version variable 2018-09-18 10:36:06 -03:00
Gerardo Nardelli 75af893dc8 Rename BridgeValidators version variable 2018-09-18 10:32:25 -03:00
Gerardo Nardelli 0e8f8b3f08 Remove unused var 2018-09-18 10:28:21 -03:00
Gerardo Nardelli 4bb8e9df21 Fix variable name on validators and token contract 2018-09-17 16:34:25 -03:00
Gerardo Nardelli bfec92ae12 Remove bridge mode field from eternalStorage 2018-09-17 16:22:34 -03:00
Gerardo Nardelli af7cc8dcbb Add version field on bridge, validators and token contracts 2018-09-17 15:33:16 -03:00
Gerardo Nardelli 2c22760538 Add bridge mode field 2018-09-14 15:58:57 -03:00
Roman Storm 5d91e0f55f
1.Add requireBlockConfirmations to initialize ForeingBridgeErcToErc
2. Pass BRIDGEABLE_TOKEN_NAME, Symbol, Decimals as env vars to Native to erc mode
3. Update docs
4. Update tests
2018-08-20 22:47:27 -07:00
Franco Victorio 3edf7837a7 Add requiredMessageLength method to BasicHomeBridge contract 2018-08-16 15:03:55 -03:00
Roman Storm 57d16f2b81
Merge pull request #57 from rstormsf/double_spending
Double spending fix
2018-08-03 11:53:47 -07:00
Roman Storm b74003c96e
add additional check for contract address 2018-07-31 16:01:42 -07:00
Roman Storm 1e237e16d4
Merge pull request #51 from rstormsf/patch234
Prevent an attack to send cross chain transfer using contract without payable fallback
2018-07-26 14:04:07 -07:00
Gerardo Nardelli 2c0e9dd2c2 Update BridgeValidators contract 2018-07-26 14:34:47 -03:00
Roman Storm 57dfe2285f
Double spending fix 2018-07-23 19:58:08 -07:00
Roman Storm bb1611b468
remove code dublication 2018-07-11 13:12:48 -07:00
Roman Storm 0c01b48f46
audit request 2018-07-09 21:19:45 -07:00
Roman Storm 3e7560d08e
add feature on token transfer invoke contractFallback silently 2018-07-06 16:50:27 -07:00
Roman Storm aeb2e1dd7e
Audit enhacements 2018-07-02 18:45:58 -07:00
Roman Storm 078014e499 Add more abstraction for ERC677Bridge 2018-06-18 21:05:47 -07:00
Roman Storm 1da503d7f0 fix npm run test build 2018-06-11 22:59:51 -07:00
Roman Storm e9a4c8ec05 rename POA20 2018-06-11 22:36:29 -07:00
Roman Storm 0da0ade2fd finish refactoring 2018-06-11 20:33:16 -07:00
Roman Storm 7d9065124f refactor foreign bridge 2018-06-11 19:56:01 -07:00
Roman Storm f34620e8ae WIP: refactor v1 2018-06-11 18:56:07 -07:00
Roman Storm 362e9860c6 clean up 2018-05-21 20:14:51 -07:00
Roman Storm 91f501563d Merge branch 'v2' of github.com:poanetwork/poa-parity-bridge-contracts into v2 2018-05-21 20:13:44 -07:00
Alexander Kolotov 87f6d54f87 changes applied under PR #40 propagated to submitSignature method 2018-05-21 16:57:46 +03:00
Alexander Kolotov ed3db608cd provide number of required signatures in CollectedSignatures event
CollectedSignatures event extended to provide number of signatures used to confirm a particular deposit transaction as so the bridge instance could use this number to fetch the corresponding number of signatures from the contract
2018-05-21 16:50:40 +03:00
Roman Storm 9de3aa03ab Fixed #39. 2018-05-19 21:09:51 -07:00
Roman Storm 6ba32e2866 hide requiredSignatures 2018-05-18 17:05:14 -07:00
Roman Storm c7b3b1fe3e shorten message length 2018-05-17 09:58:35 -07:00
Roman Storm a49b1bd74c make tests happy 2018-05-16 20:12:16 -07:00
Roman Storm 4cd20a7756 add some changes 2018-05-10 18:19:01 -04:00
Roman Storm 188357798c dirty reverse bridge for v2 2018-05-10 16:53:19 -04:00
Roman Storm 4698f7c67c remove unused return var 2018-05-08 11:05:37 -04:00
Roman Storm 564fdd9d85 0.4.23 bump and deployment logging optimization 2018-05-07 00:31:16 -07:00
Roman Storm ff5b49753b Merge branch 'proxy' 2018-05-06 11:38:26 -07:00
Roman Storm ae4126a9d4 apply comments from PR 2018-05-06 10:38:51 -07:00
Roman Storm e323377953 fix compiler warning,
convert this to address(this)
2018-05-05 21:13:29 -07:00
Roman Storm 0c2e5e2d61 add check for requiredSignatures 2018-05-05 20:59:33 -07:00
Roman Storm 35e5b7b08b add safety memory allocation 2018-05-05 20:58:49 -07:00
Roman Storm 277cdabe07 optmize gas usage in Proxy.sol
Closes #29
2018-05-05 20:39:07 -07:00
Roman Storm b928a0eb0c add gasPrice, required Confirmations, add events
update deployment script
2018-05-05 19:05:29 -07:00
Roman Storm 5d35780388 optimize gas cost 2018-05-05 19:04:35 -07:00
Roman Storm 27123afdf9 1. Upgrade openzeppelin to 1.9.0
2. Fix claimTokens on Foreign side
3. Fix compiler warnings
2018-04-27 16:34:53 -07:00
Roman Storm 7bd9ac3f81 1. Handle deposits and signatures if requiredSignatures is changed
2. Update deployment strategy. Use plain json http request and wait for receipt.
2018-04-27 10:26:24 -07:00
Roman Storm 73a01cebf0 apply PR comments 2018-04-26 17:21:43 -07:00
Roman Storm b572717af8 Apply comments from PR#20 2018-04-26 11:28:05 -07:00
Roman Storm 75c8338a07 Audit feedback. Multiple change requests 2018-04-25 22:15:11 -07:00
Roman Storm 7ab6c35e21 fix bridge and deployment 2018-04-25 21:00:36 -07:00
Roman Storm 6910bfc882 Audit feedback
add msg.data.length == 0
2018-04-24 15:46:37 -07:00
Roman Storm af0b337a79 don't call super 2018-04-24 15:37:34 -07:00
Roman Storm 810470ebae Audit feedback: fix bug when requiredSignatures has changed 2018-04-24 15:30:43 -07:00
Roman Storm 303218cf9e add claimTokens func to POA20 and ForeignBridge 2018-04-23 12:15:27 -07:00
Roman Storm 1f1281ed8c Audit feedback:
Fix upgradeToAndCall
2018-04-19 12:03:46 -07:00
Roman Storm 848656d61f remove unneccesary modifiers for finishminting 2018-04-18 12:58:44 -07:00
Roman Storm d4e9d831dc Audit feedback
1. fix transferAndCall returns bool
2. Remove finishMinting method
2018-04-18 12:45:53 -07:00
Roman Storm ea0915eb0e make messagesSigned public 2018-04-17 14:31:24 -07:00
Roman Storm 3d184533e3 make depositsSigned public so the parity-bridge can check before sending a tx 2018-04-17 13:47:40 -07:00
Roman Storm e7880e4946 use `emit` 2018-04-16 13:21:33 -07:00
Roman Storm e98134ba7f bump version 2018-04-16 13:11:35 -07:00
Roman Storm a22b8713a1 add check in BridgeValidators and remove it from Ownable 2018-04-13 14:22:41 -07:00
Roman Storm 69b97796f6 closes #12 2018-04-13 14:22:12 -07:00
Roman Storm abccf2b63a Audit feedback: remove unneccesary check in Bridges in initialize 2018-04-13 14:10:57 -07:00
Roman Storm bcd608479f Audit feedback:
remove unneccesary check and add check for Ownable
2018-04-13 14:10:22 -07:00
Roman Storm 3a4c663d84 remove PausableTOken from POA20 2018-04-13 14:09:38 -07:00
Roman Storm 987dc06cbb Add MIN_PER_TX into Home and Foreign bridges 2018-04-06 18:40:09 -04:00
Roman Storm de8ac84efc LevelK auditors pointed out an unnecessary contract variables that were inherited from zeppelinos
https://github.com/zeppelinos/labs/pull/49/files
2018-03-30 17:50:51 -07:00
Roman Storm 40a07ebd12 Add tests for BridgeValidators 2018-03-28 20:27:41 -07:00
Roman Storm 807f2a9526 add maxPerTx limit on Foreign Side 2018-03-27 21:25:54 -07:00
Roman Storm 7daaee86e6 Add max per tx 2018-03-27 16:38:30 -07:00
Roman Storm 4c8c1063cd Fix an issue with wrong submittion of setNumDepositsSigned wrong hash was passed in.
Add more unit tests
2018-03-27 15:52:10 -07:00
Roman Storm 7c00bd163f 1. flatten EternalProxy contract
2. Tests for POA20 token
2018-03-22 21:07:31 -07:00
Roman Storm e49979600b Fix consistency in event params 2018-03-19 21:39:28 -07:00
Roman Storm a390ac95be Add param for Withdrawal on Home 2018-03-18 18:22:24 -07:00
Roman Storm 6ef828c7b0 Add tx hash to the deposit event 2018-03-15 16:13:16 -07:00
Roman Storm fb28fd067c make contracts upgradeable 2018-03-13 23:21:54 -07:00
Roman Storm 5eaa480b23 Make BridgeValidators upgradeable 2018-03-13 00:30:51 -07:00
Roman Storm f99f21a02c Fix hasEnoughSignatures method. 2018-03-12 22:05:50 -07:00
Roman Storm 7d1df24f03 remove homeGasPrice from HomeBridge 2018-03-12 15:02:50 -07:00
Roman Storm 48c782f5e5 Add hasEnoughSignatures back to working condition 2018-03-12 14:52:51 -07:00
Roman Storm a3e884c6a6 Add daily Limits 2018-03-11 13:12:49 -07:00
Roman Storm 54e34c578d Apply comments enhancements 2018-03-11 12:37:37 -07:00
Roman Storm cb33ddbb3b Fix #9. Extend tracebility of deposits transactions 2018-03-03 14:20:05 +01:00
Roman Storm b0344021b4 1. Add ERC677 support
2. Add governance for validators
3. Make Home and Foreign Bridges operated from ValidatorsContract
2018-03-03 00:38:42 +01:00
Roman Storm d597765865 WIP add Validators 2018-02-21 21:52:11 -08:00
Roman Storm c499d7f936 WIP - Add POA20, change ForeignBridge 2018-02-13 00:30:29 -08:00
Roman Storm 56bd7ce067 Init 2018-02-12 21:11:21 -08:00