This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity >=0.4.22 <0.6.0; | |
contract owned { | |
address public owner = msg.sender; | |
uint public creationTime = now; | |
modifier onlyOwner { | |
require( | |
msg.sender == owner, | |
"Access restricted." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.25; | |
contract AccountAddrResolverI { | |
address public addr; | |
address owner; | |
function AccountAddrResolverI(){ | |
owner = msg.sender; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.25; | |
contract AccountAddrResolverI { | |
address public addr; | |
address owner; | |
function AccountAddrResolverI(){ | |
owner = msg.sender; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.25; | |
contract AccountAddrResolverI { | |
address public addr; | |
address owner; | |
function AccountAddrResolverI(){ | |
owner = msg.sender; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.25; | |
contract MappingTest { | |
mapping(uint=>address) public addresses; | |
uint addressRegistryCount; | |
function set(address userAddress) public{ | |
addresses[addressRegistryCount] = userAddress; | |
addressRegistryCount++; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.24; | |
/** | |
* Strings Library | |
* | |
* In summary this is a simple library of string functions which make simple | |
* string operations less tedious in solidity. | |
* | |
* Please be aware these functions can be quite gas heavy so use them only when | |
* necessary not to clog the blockchain with expensive transactions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.avalblock.irohaweb.controller; | |
import com.avalblock.common.exception.BaseException; | |
import com.avalblock.irohaweb.service.interfaces.IIrohaService; | |
import com.google.protobuf.ByteString; | |
import com.google.protobuf.Descriptors; | |
import com.google.protobuf.InvalidProtocolBufferException; | |
import io.grpc.ManagedChannel; | |
import io.grpc.ManagedChannelBuilder; | |
import io.swagger.annotations.ApiOperation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2017 Intel Corporation | |
# | |
# 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, |