Contracts maintaince
This commit is contained in:
parent
30e0dcea6e
commit
e43f8e5228
|
@ -1,4 +1,4 @@
|
|||
pragma solidity ^0.4.23;
|
||||
pragma solidity ^0.4.24;
|
||||
|
||||
contract Controlled {
|
||||
/// @notice The address of the controller is the only address that can call
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
pragma solidity ^0.4.21;
|
||||
pragma solidity ^0.4.24;
|
||||
|
||||
/**
|
||||
* @notice Uses ethereum signed messages
|
||||
|
@ -18,8 +18,8 @@ contract MessageSigned {
|
|||
bytes32 _signHash,
|
||||
bytes _messageSignature
|
||||
)
|
||||
pure
|
||||
internal
|
||||
pure
|
||||
returns(address)
|
||||
{
|
||||
uint8 v;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
pragma solidity ^0.4.23;
|
||||
pragma solidity ^0.4.24;
|
||||
|
||||
/// @dev `Owned` is a base level contract that assigns an `owner` that can be
|
||||
/// later changed
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
pragma solidity ^0.4.23;
|
||||
pragma solidity ^0.4.24;
|
||||
|
||||
/**
|
||||
* Math operations with safety checks
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
pragma solidity ^0.4.21;
|
||||
pragma solidity ^0.4.24;
|
||||
|
||||
interface ENS {
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
pragma solidity ^0.4.18;
|
||||
pragma solidity ^0.4.24;
|
||||
|
||||
import "./ENS.sol";
|
||||
|
||||
|
@ -44,7 +44,7 @@ contract ENSRegistry is ENS {
|
|||
* @param owner The address of the new owner.
|
||||
*/
|
||||
function setSubnodeOwner(bytes32 node, bytes32 label, address owner) public only_owner(node) {
|
||||
bytes32 subnode = keccak256(node, label);
|
||||
bytes32 subnode = keccak256(abi.encodePacked(node, label));
|
||||
emit NewOwner(node, label, owner);
|
||||
records[subnode].owner = owner;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
pragma solidity ^0.4.18;
|
||||
pragma solidity ^0.4.24;
|
||||
|
||||
import './ENS.sol';
|
||||
import "./ENS.sol";
|
||||
|
||||
/**
|
||||
* A simple resolver anyone can use; only allows the owner of a node to set its
|
||||
|
@ -53,7 +53,7 @@ contract PublicResolver {
|
|||
* Constructor.
|
||||
* @param ensAddr The ENS registrar contract.
|
||||
*/
|
||||
function PublicResolver(ENS ensAddr) public {
|
||||
constructor(ENS ensAddr) public {
|
||||
ens = ensAddr;
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,7 @@ contract PublicResolver {
|
|||
*/
|
||||
function setAddr(bytes32 node, address addr) public only_owner(node) {
|
||||
records[node].addr = addr;
|
||||
AddrChanged(node, addr);
|
||||
emit AddrChanged(node, addr);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -78,7 +78,7 @@ contract PublicResolver {
|
|||
*/
|
||||
function setContent(bytes32 node, bytes32 hash) public only_owner(node) {
|
||||
records[node].content = hash;
|
||||
ContentChanged(node, hash);
|
||||
emit ContentChanged(node, hash);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -89,7 +89,7 @@ contract PublicResolver {
|
|||
*/
|
||||
function setMultihash(bytes32 node, bytes hash) public only_owner(node) {
|
||||
records[node].multihash = hash;
|
||||
MultihashChanged(node, hash);
|
||||
emit MultihashChanged(node, hash);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -100,7 +100,7 @@ contract PublicResolver {
|
|||
*/
|
||||
function setName(bytes32 node, string name) public only_owner(node) {
|
||||
records[node].name = name;
|
||||
NameChanged(node, name);
|
||||
emit NameChanged(node, name);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -116,7 +116,7 @@ contract PublicResolver {
|
|||
require(((contentType - 1) & contentType) == 0);
|
||||
|
||||
records[node].abis[contentType] = data;
|
||||
ABIChanged(node, contentType);
|
||||
emit ABIChanged(node, contentType);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -127,7 +127,7 @@ contract PublicResolver {
|
|||
*/
|
||||
function setPubkey(bytes32 node, bytes32 x, bytes32 y) public only_owner(node) {
|
||||
records[node].pubkey = PublicKey(x, y);
|
||||
PubkeyChanged(node, x, y);
|
||||
emit PubkeyChanged(node, x, y);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -139,7 +139,7 @@ contract PublicResolver {
|
|||
*/
|
||||
function setText(bytes32 node, string key, string value) public only_owner(node) {
|
||||
records[node].text[key] = value;
|
||||
TextChanged(node, key, key);
|
||||
emit TextChanged(node, key, key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
pragma solidity ^0.4.18;
|
||||
pragma solidity ^0.4.24;
|
||||
|
||||
contract ResolverInterface {
|
||||
function PublicResolver(address ensAddr) public;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
pragma solidity ^0.4.11;
|
||||
pragma solidity ^0.4.24;
|
||||
|
||||
contract ApproveAndCallFallBack {
|
||||
function receiveApproval(address from, uint256 _amount, address _token, bytes _data) public;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
pragma solidity ^0.4.23;
|
||||
pragma solidity ^0.4.24;
|
||||
|
||||
import "./ERC20Token.sol";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
pragma solidity ^0.4.23;
|
||||
pragma solidity ^0.4.24;
|
||||
|
||||
// Abstract contract for the full ERC 20 Token standard
|
||||
// https://github.com/ethereum/EIPs/issues/20
|
||||
|
|
Loading…
Reference in New Issue