{"action":"opened","issue":{"url":"https://api.github.com/repos/OpenSTFoundation/openst-protocol/issues/165","repository_url":"https://api.github.com/repos/OpenSTFoundation/openst-protocol","labels_url":"https://api.github.com/repos/OpenSTFoundation/openst-protocol/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/OpenSTFoundation/openst-protocol/issues/165/comments","events_url":"https://api.github.com/repos/OpenSTFoundation/openst-protocol/issues/165/events","html_url":"https://github.com/OpenSTFoundation/openst-protocol/issues/165","id":335827734,"node_id":"MDU6SXNzdWUzMzU4Mjc3MzQ=","number":165,"title":"Update blocks to wait logic.","user":{"login":"deepesh-kn","id":17645038,"node_id":"MDQ6VXNlcjE3NjQ1MDM4","avatar_url":"https://avatars0.githubusercontent.com/u/17645038?v=4","gravatar_id":"","url":"https://api.github.com/users/deepesh-kn","html_url":"https://github.com/deepesh-kn","followers_url":"https://api.github.com/users/deepesh-kn/followers","following_url":"https://api.github.com/users/deepesh-kn/following{/other_user}","gists_url":"https://api.github.com/users/deepesh-kn/gists{/gist_id}","starred_url":"https://api.github.com/users/deepesh-kn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepesh-kn/subscriptions","organizations_url":"https://api.github.com/users/deepesh-kn/orgs","repos_url":"https://api.github.com/users/deepesh-kn/repos","events_url":"https://api.github.com/users/deepesh-kn/events{/privacy}","received_events_url":"https://api.github.com/users/deepesh-kn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"deepesh-kn","id":17645038,"node_id":"MDQ6VXNlcjE3NjQ1MDM4","avatar_url":"https://avatars0.githubusercontent.com/u/17645038?v=4","gravatar_id":"","url":"https://api.github.com/users/deepesh-kn","html_url":"https://github.com/deepesh-kn","followers_url":"https://api.github.com/users/deepesh-kn/followers","following_url":"https://api.github.com/users/deepesh-kn/following{/other_user}","gists_url":"https://api.github.com/users/deepesh-kn/gists{/gist_id}","starred_url":"https://api.github.com/users/deepesh-kn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepesh-kn/subscriptions","organizations_url":"https://api.github.com/users/deepesh-kn/orgs","repos_url":"https://api.github.com/users/deepesh-kn/repos","events_url":"https://api.github.com/users/deepesh-kn/events{/privacy}","received_events_url":"https://api.github.com/users/deepesh-kn/received_events","type":"User","site_admin":false},"assignees":[{"login":"deepesh-kn","id":17645038,"node_id":"MDQ6VXNlcjE3NjQ1MDM4","avatar_url":"https://avatars0.githubusercontent.com/u/17645038?v=4","gravatar_id":"","url":"https://api.github.com/users/deepesh-kn","html_url":"https://github.com/deepesh-kn","followers_url":"https://api.github.com/users/deepesh-kn/followers","following_url":"https://api.github.com/users/deepesh-kn/following{/other_user}","gists_url":"https://api.github.com/users/deepesh-kn/gists{/gist_id}","starred_url":"https://api.github.com/users/deepesh-kn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepesh-kn/subscriptions","organizations_url":"https://api.github.com/users/deepesh-kn/orgs","repos_url":"https://api.github.com/users/deepesh-kn/repos","events_url":"https://api.github.com/users/deepesh-kn/events{/privacy}","received_events_url":"https://api.github.com/users/deepesh-kn/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-06-26T13:46:52Z","updated_at":"2018-06-26T13:46:52Z","closed_at":null,"author_association":"MEMBER","body":"\r\n1. Introduce a wait time with Core:latestStateRootBlockHeight of the opposite chain\r\n\r\n2. Constructor of Core.sol, OpenSTValue.sol and OpenSTUtility.sol pass a new parameter uint256 _blockTime which is set by the interaction layer when deploying the contracts; for OpenSTValue/Utility this is the blocktime of the current chain; for the Core.sol contract, this is the blocktime of the alternate chain.\r\n\r\n3. Introduce new constants TIME_TO_WAIT_SHORT, TIME_TO_WAIT_LONG all uint256, respectively expressed in seconds as 1 hour and two weeks in OpenSTValue and OpenSTUtility.\r\n\r\n4. Introduce new constants TIME_TO_WAIT of uint256, expressed in seconds as 5 days in Core.\r\n\r\n5. Remove the constants BLOCKS_TO_WAIT_SHORT and BLOCKS_TO_WAIT_LONG and replace them with public variables blocksToWaitShort and blocksToWaitLong. \r\n\r\n6. The constructors must then set blocksToWaitX = TIME_TO_WAIT_X / _blockTime\r\n\r\n_MOSA-65_"}}
{"actor":{"display_login":"deepesh-kn"}}