hydrachain/examples/native/fungible/fungible_contract.py
def transfer(ctx, _to='address', _value='uint256', returns=STATUS):
        """ Standardized Contract API:
        function transfer(address _to, uint256 _value) returns (bool _success)
        """
        log.DEV('In Fungible.transfer')
        if ctx.accounts[ctx.msg_sender] >= _value:
            ctx.accounts[ctx.msg_sender] -= _value
            ctx.accounts[_to] += _value
            ctx.Transfer(ctx.msg_sender, _to, _value)
            return OK
        else:
            return INSUFFICIENTFUNDS
def transfer(ctx, _to='address', _value='uint256', returns=STATUS):
        """ Standardized Contract API:
        function transfer(address _to, uint256 _value) returns (bool _success)
        """
        log.DEV('In Fungible.transfer')
        if ctx.accounts[ctx.msg_sender] >= _value:
            ctx.accounts[ctx.msg_sender] -= _value
            ctx.accounts[_to] += _value
            ctx.Transfer(ctx.msg_sender, _to, _value)
            return OK
        else:
            return INSUFFICIENTFUNDS
def transfer ( ctx , _to = 'address' , _value = 'uint256' , returns = STATUS ) : log . DEV ( 'In Fungible.transfer' ) if ctx . accounts [ ctx . msg_sender ] >= _value : ctx . accounts [ ctx . msg_sender ] -= _value ctx . accounts [ _to ] += _value ctx . Transfer ( ctx . msg_sender , _to , _value ) return OK else : return INSUFFICIENTFUNDS
Standardized Contract API:
        function transfer(address _to, uint256 _value) returns (bool _success)
Standardized Contract API : function transfer ( address _to uint256 _value ) returns ( bool _success )