ERC-20
Overview
Max Total Supply
3,150,000,000 PHV
Holders
806
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PathHiveNetworkProxy
Compiler Version
v0.4.25+commit.59dbf8f1
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-01-10 */ pragma solidity ^0.4.25; contract Ownable { address public owner; constructor() public { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } } contract Role is Ownable { struct AdminGroup { mapping (address => bool) administers; mapping (address => uint) administerListIndex; address[] administerList; mapping (address => bool) pausers; mapping (address => uint) pauserListIndex; address[] pauserList; } AdminGroup private adminGroup; modifier administerAndAbove() { require(isAdminister(msg.sender) || msg.sender == owner); _; } modifier pauserAndAbove() { require(isPauser(msg.sender) || isAdminister(msg.sender) || msg.sender == owner); _; } function isAdminister(address account) public view returns (bool) { return adminGroup.administers[account]; } function addAdminister(address account) public onlyOwner { require(!isAdminister(account)); require(!isPauser(account)); if (account == owner) { revert(); } adminGroup.administers[account] = true; adminGroup.administerListIndex[account] = adminGroup.administerList.push(account)-1; emit AdministerAdded(account); } function removeAdminister(address account) public onlyOwner { require(isAdminister(account)); require(!isPauser(account)); if (adminGroup.administerListIndex[account]==0){ require(adminGroup.administerList[0] == account); } if (adminGroup.administerListIndex[account] >= adminGroup.administerList.length) return; adminGroup.administers[account] = false; for (uint i = adminGroup.administerListIndex[account]; i<adminGroup.administerList.length-1; i++){ adminGroup.administerList[i] = adminGroup.administerList[i+1]; adminGroup.administerListIndex[adminGroup.administerList[i+1]] = adminGroup.administerListIndex[adminGroup.administerList[i+1]]-1; } delete adminGroup.administerList[adminGroup.administerList.length-1]; delete adminGroup.administerListIndex[account]; adminGroup.administerList.length--; emit AdministerRemoved(account); } function getAdministerList() view public returns(address[]) { return adminGroup.administerList; } function isPauser(address account) public view returns (bool) { return adminGroup.pausers[account]; } function addPauser(address account) public onlyOwner { require(!isAdminister(account)); require(!isPauser(account)); require(account != owner); adminGroup.pausers[account] = true; adminGroup.pauserListIndex[account] = adminGroup.pauserList.push(account)-1; emit PauserAdded(account); } function removePauser(address account) public onlyOwner{ require(isPauser(account)); require(!isAdminister(account)); if (adminGroup.pauserListIndex[account]==0){ require(adminGroup.pauserList[0] == account); } if (adminGroup.pauserListIndex[account] >= adminGroup.pauserList.length) return; adminGroup.pausers[account] = false; for (uint i = adminGroup.pauserListIndex[account]; i<adminGroup.pauserList.length-1; i++){ adminGroup.pauserList[i] = adminGroup.pauserList[i+1]; adminGroup.pauserListIndex[adminGroup.pauserList[i+1]] = adminGroup.pauserListIndex[adminGroup.pauserList[i+1]]-1; } delete adminGroup.pauserList[adminGroup.pauserList.length-1]; delete adminGroup.pauserListIndex[account]; adminGroup.pauserList.length--; emit PauserRemoved(account); } function getPauserList() view public returns(address[]) { return adminGroup.pauserList; } event AdministerAdded(address indexed account); event AdministerRemoved(address indexed account); event PauserAdded(address indexed account); event PauserRemoved(address indexed account); } contract Proxy is Role { event Upgraded(address indexed implementation); address internal _linkedContractAddress; function implementation() public view returns (address) { return _linkedContractAddress; } function upgradeTo(address newContractAddress) public administerAndAbove { require(newContractAddress != address(0)); _linkedContractAddress = newContractAddress; emit Upgraded(newContractAddress); } function () payable public { address _implementation = implementation(); require(_implementation != address(0)); bytes memory data = msg.data; assembly { let result := delegatecall(gas, _implementation, add(data, 0x20), mload(data), 0, 0) let size := returndatasize let ptr := mload(0x40) returndatacopy(ptr, 0, size) switch result case 0 { revert(ptr, size) } default { return(ptr, size) } } } } contract PathHiveNetworkProxy is Proxy { string public name = "PathHive Network"; string public symbol = "PHV"; uint8 public decimals = 18; constructor() public {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getAdministerList","outputs":[{"name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newContractAddress","type":"address"}],"name":"upgradeTo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"isPauser","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"addAdminister","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"removePauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getPauserList","outputs":[{"name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"isAdminister","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"addPauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"removeAdminister","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"AdministerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"AdministerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"PauserAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"PauserRemoved","type":"event"}]
Contract Creation Code
60c0604052601060808190527f5061746848697665204e6574776f726b0000000000000000000000000000000060a090815261003e91600891906100b5565b506040805180820190915260038082527f50485600000000000000000000000000000000000000000000000000000000006020909201918252610083916009916100b5565b50600a805460ff1916601217905534801561009d57600080fd5b5060008054600160a060020a03191633179055610150565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100f657805160ff1916838001178555610123565b82800160010185558215610123579182015b82811115610123578251825591602001919060010190610108565b5061012f929150610133565b5090565b61014d91905b8082111561012f5760008155600101610139565b90565b610d9a8061015f6000396000f3006080604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461014c5780630c3e3c58146101d6578063313ce5671461023b5780633659cfe61461026657806346fbf68e146102895780635c60da1b146102be57806368f5d173146102ef5780636b2c0f55146103105780636f741cff146103315780637f5ae3391461034657806382dc1ec4146103675780638da5cb5b1461038857806395d89b411461039d578063de08c364146103b2575b600060606100db6103d3565b9150600160a060020a03821615156100f257600080fd5b6000368080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509050600080825160208401855af43d604051816000823e828015610148578282f35b8282fd5b34801561015857600080fd5b506101616103e3565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019b578181015183820152602001610183565b50505050905090810190601f1680156101c85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101e257600080fd5b506101eb610471565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561022757818101518382015260200161020f565b505050509050019250505060405180910390f35b34801561024757600080fd5b506102506104d6565b6040805160ff9092168252519081900360200190f35b34801561027257600080fd5b50610287600160a060020a03600435166104df565b005b34801561029557600080fd5b506102aa600160a060020a0360043516610567565b604080519115158252519081900360200190f35b3480156102ca57600080fd5b506102d36103d3565b60408051600160a060020a039092168252519081900360200190f35b3480156102fb57600080fd5b50610287600160a060020a0360043516610585565b34801561031c57600080fd5b50610287600160a060020a0360043516610672565b34801561033d57600080fd5b506101eb6108df565b34801561035257600080fd5b506102aa600160a060020a0360043516610942565b34801561037357600080fd5b50610287600160a060020a0360043516610960565b34801561039457600080fd5b506102d3610a51565b3480156103a957600080fd5b50610161610a60565b3480156103be57600080fd5b50610287600160a060020a0360043516610abb565b600754600160a060020a03165b90565b6008805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104695780601f1061043e57610100808354040283529160200191610469565b820191906000526020600020905b81548152906001019060200180831161044c57829003601f168201915b505050505081565b606060016002018054806020026020016040519081016040528092919081815260200182805480156104cc57602002820191906000526020600020905b8154600160a060020a031681526001909101906020018083116104ae575b5050505050905090565b600a5460ff1681565b6104e833610942565b806104fd5750600054600160a060020a031633145b151561050857600080fd5b600160a060020a038116151561051d57600080fd5b60078054600160a060020a031916600160a060020a0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b600160a060020a031660009081526004602052604090205460ff1690565b600054600160a060020a0316331461059c57600080fd5b6105a581610942565b156105af57600080fd5b6105b881610567565b156105c257600080fd5b600054600160a060020a03828116911614156105dd57600080fd5b600160a060020a0381166000818152600160208181526040808420805460ff1916841790556003805493840190557fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b83018054600160a060020a03191686179055600290915280832091909155517fec4da1cb36ed0834c141c0eaccfdc6daff8e3167ed353c1acb3c1de2f34784d39190a250565b60008054600160a060020a0316331461068a57600080fd5b61069382610567565b151561069e57600080fd5b6106a782610942565b156106b157600080fd5b600160a060020a038216600090815260056020526040902054151561070a5760068054600160a060020a038416919060009081106106eb57fe5b600091825260209091200154600160a060020a03161461070a57600080fd5b600654600160a060020a03831660009081526005602052604090205410610730576108db565b50600160a060020a0381166000908152600460209081526040808320805460ff1916905560059091529020545b6006546000190181101561085057600680546001830190811061077c57fe5b60009182526020909120015460068054600160a060020a0390921691839081106107a257fe5b600091825260208220018054600160a060020a031916600160a060020a0393909316929092179091556006805460019260059290918585019081106107e357fe5b6000918252602080832090910154600160a060020a0316835282019290925260400181205460068054939091039260059291906001860190811061082357fe5b6000918252602080832090910154600160a060020a0316835282019290925260400190205560010161075d565b60068054600019810190811061086257fe5b600091825260208083209091018054600160a060020a0319169055600160a060020a038416825260059052604081205560068054906108a5906000198301610d27565b50604051600160a060020a038316907fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e90600090a25b5050565b606060016005018054806020026020016040519081016040528092919081815260200182805480156104cc57602002820191906000526020600020908154600160a060020a031681526001909101906020018083116104ae575050505050905090565b600160a060020a031660009081526001602052604090205460ff1690565b600054600160a060020a0316331461097757600080fd5b61098081610942565b1561098a57600080fd5b61099381610567565b1561099d57600080fd5b600054600160a060020a03828116911614156109b857600080fd5b600160a060020a0381166000818152600460209081526040808320805460ff191660019081179091556006805491820190557ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f81018054600160a060020a03191686179055600590925280832091909155517f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f89190a250565b600054600160a060020a031681565b6009805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104695780601f1061043e57610100808354040283529160200191610469565b60008054600160a060020a03163314610ad357600080fd5b610adc82610942565b1515610ae757600080fd5b610af082610567565b15610afa57600080fd5b600160a060020a0382166000908152600260205260409020541515610b535760038054600160a060020a03841691906000908110610b3457fe5b600091825260209091200154600160a060020a031614610b5357600080fd5b600354600160a060020a03831660009081526002602052604090205410610b79576108db565b50600160a060020a0381166000908152600160209081526040808320805460ff1916905560029091529020545b60035460001901811015610c99576003805460018301908110610bc557fe5b60009182526020909120015460038054600160a060020a039092169183908110610beb57fe5b600091825260208220018054600160a060020a031916600160a060020a039390931692909217909155600380546001926002929091858501908110610c2c57fe5b6000918252602080832090910154600160a060020a03168352820192909252604001812054600380549390910392600292919060018601908110610c6c57fe5b6000918252602080832090910154600160a060020a03168352820192909252604001902055600101610ba6565b600380546000198101908110610cab57fe5b600091825260208083209091018054600160a060020a0319169055600160a060020a03841682526002905260408120556003805490610cee906000198301610d27565b50604051600160a060020a038316907f2b6038688a4e91deb570b21c9c10dbbf78fbf4d946e4cc2fccb9605afee2037190600090a25050565b815481835581811115610d4b57600083815260209020610d4b918101908301610d50565b505050565b6103e091905b80821115610d6a5760008155600101610d56565b50905600a165627a7a72305820cfaeb3050cf5104682fa4af98425207801f0ebff057797fee8433a7826ea3d630029
Deployed Bytecode
0x6080604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461014c5780630c3e3c58146101d6578063313ce5671461023b5780633659cfe61461026657806346fbf68e146102895780635c60da1b146102be57806368f5d173146102ef5780636b2c0f55146103105780636f741cff146103315780637f5ae3391461034657806382dc1ec4146103675780638da5cb5b1461038857806395d89b411461039d578063de08c364146103b2575b600060606100db6103d3565b9150600160a060020a03821615156100f257600080fd5b6000368080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509050600080825160208401855af43d604051816000823e828015610148578282f35b8282fd5b34801561015857600080fd5b506101616103e3565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019b578181015183820152602001610183565b50505050905090810190601f1680156101c85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101e257600080fd5b506101eb610471565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561022757818101518382015260200161020f565b505050509050019250505060405180910390f35b34801561024757600080fd5b506102506104d6565b6040805160ff9092168252519081900360200190f35b34801561027257600080fd5b50610287600160a060020a03600435166104df565b005b34801561029557600080fd5b506102aa600160a060020a0360043516610567565b604080519115158252519081900360200190f35b3480156102ca57600080fd5b506102d36103d3565b60408051600160a060020a039092168252519081900360200190f35b3480156102fb57600080fd5b50610287600160a060020a0360043516610585565b34801561031c57600080fd5b50610287600160a060020a0360043516610672565b34801561033d57600080fd5b506101eb6108df565b34801561035257600080fd5b506102aa600160a060020a0360043516610942565b34801561037357600080fd5b50610287600160a060020a0360043516610960565b34801561039457600080fd5b506102d3610a51565b3480156103a957600080fd5b50610161610a60565b3480156103be57600080fd5b50610287600160a060020a0360043516610abb565b600754600160a060020a03165b90565b6008805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104695780601f1061043e57610100808354040283529160200191610469565b820191906000526020600020905b81548152906001019060200180831161044c57829003601f168201915b505050505081565b606060016002018054806020026020016040519081016040528092919081815260200182805480156104cc57602002820191906000526020600020905b8154600160a060020a031681526001909101906020018083116104ae575b5050505050905090565b600a5460ff1681565b6104e833610942565b806104fd5750600054600160a060020a031633145b151561050857600080fd5b600160a060020a038116151561051d57600080fd5b60078054600160a060020a031916600160a060020a0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b600160a060020a031660009081526004602052604090205460ff1690565b600054600160a060020a0316331461059c57600080fd5b6105a581610942565b156105af57600080fd5b6105b881610567565b156105c257600080fd5b600054600160a060020a03828116911614156105dd57600080fd5b600160a060020a0381166000818152600160208181526040808420805460ff1916841790556003805493840190557fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b83018054600160a060020a03191686179055600290915280832091909155517fec4da1cb36ed0834c141c0eaccfdc6daff8e3167ed353c1acb3c1de2f34784d39190a250565b60008054600160a060020a0316331461068a57600080fd5b61069382610567565b151561069e57600080fd5b6106a782610942565b156106b157600080fd5b600160a060020a038216600090815260056020526040902054151561070a5760068054600160a060020a038416919060009081106106eb57fe5b600091825260209091200154600160a060020a03161461070a57600080fd5b600654600160a060020a03831660009081526005602052604090205410610730576108db565b50600160a060020a0381166000908152600460209081526040808320805460ff1916905560059091529020545b6006546000190181101561085057600680546001830190811061077c57fe5b60009182526020909120015460068054600160a060020a0390921691839081106107a257fe5b600091825260208220018054600160a060020a031916600160a060020a0393909316929092179091556006805460019260059290918585019081106107e357fe5b6000918252602080832090910154600160a060020a0316835282019290925260400181205460068054939091039260059291906001860190811061082357fe5b6000918252602080832090910154600160a060020a0316835282019290925260400190205560010161075d565b60068054600019810190811061086257fe5b600091825260208083209091018054600160a060020a0319169055600160a060020a038416825260059052604081205560068054906108a5906000198301610d27565b50604051600160a060020a038316907fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e90600090a25b5050565b606060016005018054806020026020016040519081016040528092919081815260200182805480156104cc57602002820191906000526020600020908154600160a060020a031681526001909101906020018083116104ae575050505050905090565b600160a060020a031660009081526001602052604090205460ff1690565b600054600160a060020a0316331461097757600080fd5b61098081610942565b1561098a57600080fd5b61099381610567565b1561099d57600080fd5b600054600160a060020a03828116911614156109b857600080fd5b600160a060020a0381166000818152600460209081526040808320805460ff191660019081179091556006805491820190557ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f81018054600160a060020a03191686179055600590925280832091909155517f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f89190a250565b600054600160a060020a031681565b6009805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104695780601f1061043e57610100808354040283529160200191610469565b60008054600160a060020a03163314610ad357600080fd5b610adc82610942565b1515610ae757600080fd5b610af082610567565b15610afa57600080fd5b600160a060020a0382166000908152600260205260409020541515610b535760038054600160a060020a03841691906000908110610b3457fe5b600091825260209091200154600160a060020a031614610b5357600080fd5b600354600160a060020a03831660009081526002602052604090205410610b79576108db565b50600160a060020a0381166000908152600160209081526040808320805460ff1916905560029091529020545b60035460001901811015610c99576003805460018301908110610bc557fe5b60009182526020909120015460038054600160a060020a039092169183908110610beb57fe5b600091825260208220018054600160a060020a031916600160a060020a039390931692909217909155600380546001926002929091858501908110610c2c57fe5b6000918252602080832090910154600160a060020a03168352820192909252604001812054600380549390910392600292919060018601908110610c6c57fe5b6000918252602080832090910154600160a060020a03168352820192909252604001902055600101610ba6565b600380546000198101908110610cab57fe5b600091825260208083209091018054600160a060020a0319169055600160a060020a03841682526002905260408120556003805490610cee906000198301610d27565b50604051600160a060020a038316907f2b6038688a4e91deb570b21c9c10dbbf78fbf4d946e4cc2fccb9605afee2037190600090a25050565b815481835581811115610d4b57600083815260209020610d4b918101908301610d50565b505050565b6103e091905b80821115610d6a5760008155600101610d56565b50905600a165627a7a72305820cfaeb3050cf5104682fa4af98425207801f0ebff057797fee8433a7826ea3d630029
Swarm Source
bzzr://cfaeb3050cf5104682fa4af98425207801f0ebff057797fee8433a7826ea3d63
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.