Skip to content

Commit

Permalink
Added license in the contract and updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gulshanvasnani committed Dec 21, 2018
1 parent 8735258 commit aff1bde
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions contracts/gateway/GatewayBase.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
pragma solidity ^0.5.0;

// Copyright 2018 OpenST Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ----------------------------------------------------------------------------
// Origin Chain: Gateway Contract
//
// http://www.simpletoken.org/
//
// ----------------------------------------------------------------------------

import "./EIP20Interface.sol";
import "../lib/MessageBus.sol";
import "../StateRootInterface.sol";
Expand All @@ -8,7 +29,6 @@ import "../lib/IsMemberInterface.sol";
import "../lib/Organized.sol";
import "../lib/SafeMath.sol";


/**
* @title GatewayBase contract.
*
Expand Down Expand Up @@ -154,15 +174,17 @@ contract GatewayBase is Organized {
bounty = _bounty;
}


/* External functions */

/**
* @notice proveGateway can be called by anyone to verify merkle proof of
* @notice This can be called by anyone to verify merkle proof of
* gateway/co-gateway contract address. Trust factor is brought by
* stateRoots mapping. It's important to note that in replay calls of
* proveGateway bytes _rlpParentNodes variable is not validated. In
* this case input storage root derived from merkle proof account
* nodes is verified with stored storage root of given blockHeight.
* state roots of the contract which implements StateRootInterface.
* It's important to note that in replay calls of proveGateway
* bytes _rlpParentNodes variable is not validated. In this case
* input storage root derived from merkle proof account nodes is
* verified with stored storage root of given blockHeight.
* GatewayProven event has parameter wasAlreadyProved to
* differentiate between first call and replay calls.
*
Expand Down

0 comments on commit aff1bde

Please sign in to comment.