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