Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
14782345 | 841 days ago | 0.001 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x9FD7a8B4...9021f1B01 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
transactionManager
Compiler Version
v0.8.13+commit.abaa5c0e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-05-15 */ // SPDX-License-Identifier: NONE pragma solidity ^0.8.11; interface IClaim { function initClaim(address _payee, uint256 _amount) external payable; } contract transactionManager{ event GrantRole(bytes32 indexed role, address indexed account); event RevokeRole(bytes32 indexed role, address indexed account); event Claimed(uint256 indexed amount, address indexed payee); mapping(bytes32 => mapping(address => bool)) public roles; bytes32 private constant ADMIN = keccak256(abi.encodePacked("ADMIN")); bytes32 private constant EXEC = keccak256(abi.encodePacked("EXEC")); address payable public owner; // current owner of the contract constructor() { owner = payable(msg.sender); _grantRole(ADMIN, msg.sender); } receive() external payable {} /// @notice Initiates Pool participition in batches. function initPool(uint _amount, address _payee) external onlyRole(ADMIN) { require(msg.sender == owner, "Only Owner can perform this operation."); payable(_payee).transfer(_amount); } /// @notice Initiates claim for specific address. function broadcastClaim(address payable _claimContract, address payable _payee, uint256 _amount) external payable onlyRole(EXEC) { IClaim(_claimContract).initClaim{value: msg.value}(_payee, _amount); emit Claimed(_amount, _payee); } function getBalance() external view returns (uint) { return address(this).balance; } modifier onlyRole(bytes32 _role) { require(roles[_role][msg.sender], "Only EXEC Role can perform this operation."); _; } function _grantRole(bytes32 _role, address _account) internal { roles[_role][_account] = true; emit GrantRole(_role,_account); } function grantRole(bytes32 _role, address _account) external onlyRole(ADMIN) { _grantRole(_role, _account); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"payee","type":"address"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"GrantRole","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"RevokeRole","type":"event"},{"inputs":[{"internalType":"address payable","name":"_claimContract","type":"address"},{"internalType":"address payable","name":"_payee","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"broadcastClaim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_role","type":"bytes32"},{"internalType":"address","name":"_account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_payee","type":"address"}],"name":"initPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"address","name":"","type":"address"}],"name":"roles","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Deployed Bytecode
0x6080604052600436106100595760003560e01c806312065fe0146100655780632f2ff15d146100855780638da5cb5b146100a7578063a93e0523146100df578063e524aa57146100ff578063f8fc08b91461011257600080fd5b3661006057005b600080fd5b34801561007157600080fd5b506040514781526020015b60405180910390f35b34801561009157600080fd5b506100a56100a0366004610444565b61015a565b005b3480156100b357600080fd5b506001546100c7906001600160a01b031681565b6040516001600160a01b03909116815260200161007c565b3480156100eb57600080fd5b506100a56100fa366004610444565b6101d1565b6100a561010d366004610474565b6102d5565b34801561011e57600080fd5b5061014a61012d366004610444565b600060208181529281526040808220909352908152205460ff1681565b604051901515815260200161007c565b6040516420a226a4a760d91b602082015260250160408051601f198184030181529181528151602092830120600081815280845282812033825290935291205460ff166101c25760405162461bcd60e51b81526004016101b9906104b5565b60405180910390fd5b6101cc83836103d3565b505050565b6040516420a226a4a760d91b602082015260250160408051601f198184030181529181528151602092830120600081815280845282812033825290935291205460ff166102305760405162461bcd60e51b81526004016101b9906104b5565b6001546001600160a01b031633146102995760405162461bcd60e51b815260206004820152602660248201527f4f6e6c79204f776e65722063616e20706572666f726d2074686973206f70657260448201526530ba34b7b71760d11b60648201526084016101b9565b6040516001600160a01b0383169084156108fc029085906000818181858888f193505050501580156102cf573d6000803e3d6000fd5b50505050565b604051634558454360e01b602082015260240160408051601f198184030181529181528151602092830120600081815280845282812033825290935291205460ff166103335760405162461bcd60e51b81526004016101b9906104b5565b6040516332bf612d60e21b81526001600160a01b0384811660048301526024820184905285169063cafd84b49034906044016000604051808303818588803b15801561037e57600080fd5b505af1158015610392573d6000803e3d6000fd5b50506040516001600160a01b03871693508592507f6aa3eac93d079e5e100b1029be716caa33586c96aa4baac390669fb5c2a212129150600090a350505050565b6000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916600117905551909184917f5a06360d65acf95e98445dc834f205063424c636e65418d928cdfabc33a953999190a35050565b6001600160a01b038116811461044157600080fd5b50565b6000806040838503121561045757600080fd5b8235915060208301356104698161042c565b809150509250929050565b60008060006060848603121561048957600080fd5b83356104948161042c565b925060208401356104a48161042c565b929592945050506040919091013590565b6020808252602a908201527f4f6e6c79204558454320526f6c652063616e20706572666f726d20746869732060408201526937b832b930ba34b7b71760b11b60608201526080019056fea2646970667358221220b3636a92244e878c53df1f027db88685119428a3af4b06663969a7353c6ad93764736f6c634300080d0033
Deployed Bytecode Sourcemap
164:1820:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1442:98;;;;;;;;;;-1:-1:-1;1442:98:0;;1511:21;160:25:1;;148:2;133:18;1442:98:0;;;;;;;;1858:123;;;;;;;;;;-1:-1:-1;1858:123:0;;;;;:::i;:::-;;:::i;:::-;;624:28;;;;;;;;;;-1:-1:-1;624:28:0;;;;-1:-1:-1;;;;;624:28:0;;;;;;-1:-1:-1;;;;;832:32:1;;;814:51;;802:2;787:18;624:28:0;652:219:1;900:206:0;;;;;;;;;;-1:-1:-1;900:206:0;;;;;:::i;:::-;;:::i;1169:265::-;;;;;;:::i;:::-;;:::i;408:57::-;;;;;;;;;;-1:-1:-1;408:57:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;1838:14:1;;1831:22;1813:41;;1801:2;1786:18;408:57:0;1673:187:1;1858:123:0;517:25;;-1:-1:-1;;;517:25:0;;;2067:20:1;2103:11;;517:25:0;;;-1:-1:-1;;517:25:0;;;;;;;;;507:36;;517:25;507:36;;;;1600:5;:12;;;;;;;;;1613:10;1600:24;;;;;;;;;;1592:79;;;;-1:-1:-1;;;1592:79:0;;;;;;;:::i;:::-;;;;;;;;;1946:27:::1;1957:5;1964:8;1946:10;:27::i;:::-;1858:123:::0;;;:::o;900:206::-;517:25;;-1:-1:-1;;;517:25:0;;;2067:20:1;2103:11;;517:25:0;;;-1:-1:-1;;517:25:0;;;;;;;;;507:36;;517:25;507:36;;;;1600:5;:12;;;;;;;;;1613:10;1600:24;;;;;;;;;;1592:79;;;;-1:-1:-1;;;1592:79:0;;;;;;;:::i;:::-;1006:5:::1;::::0;-1:-1:-1;;;;;1006:5:0::1;992:10;:19;984:70;;;::::0;-1:-1:-1;;;984:70:0;;2738:2:1;984:70:0::1;::::0;::::1;2720:21:1::0;2777:2;2757:18;;;2750:30;2816:34;2796:18;;;2789:62;-1:-1:-1;;;2867:18:1;;;2860:36;2913:19;;984:70:0::1;2536:402:1::0;984:70:0::1;1065:33;::::0;-1:-1:-1;;;;;1065:24:0;::::1;::::0;:33;::::1;;;::::0;1090:7;;1065:33:::1;::::0;;;1090:7;1065:24;:33;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;900:206:::0;;;:::o;1169:265::-;592:24;;-1:-1:-1;;;592:24:0;;;3145:19:1;3180:11;;592:24:0;;;-1:-1:-1;;592:24:0;;;;;;;;;582:35;;592:24;582:35;;;;1600:5;:12;;;;;;;;;1613:10;1600:24;;;;;;;;;;1592:79;;;;-1:-1:-1;;;1592:79:0;;;;;;;:::i;:::-;1309:67:::1;::::0;-1:-1:-1;;;1309:67:0;;-1:-1:-1;;;;;3402:32:1;;;1309:67:0::1;::::0;::::1;3384:51:1::0;3451:18;;;3444:34;;;1309:32:0;::::1;::::0;::::1;::::0;1349:9:::1;::::0;3357:18:1;;1309:67:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;1392:24:0::1;::::0;-1:-1:-1;;;;;1392:24:0;::::1;::::0;-1:-1:-1;1400:7:0;;-1:-1:-1;1392:24:0::1;::::0;-1:-1:-1;1392:24:0;;::::1;1169:265:::0;;;;:::o;1699:151::-;1772:5;:12;;;;;;;;;;;-1:-1:-1;;;;;1772:22:0;;;;;;;;;;:29;;-1:-1:-1;;1772:29:0;1797:4;1772:29;;;1817:25;1772:22;;1778:5;;1817:25;;1772:5;1817:25;1699:151;;:::o;196:131:1:-;-1:-1:-1;;;;;271:31:1;;261:42;;251:70;;317:1;314;307:12;251:70;196:131;:::o;332:315::-;400:6;408;461:2;449:9;440:7;436:23;432:32;429:52;;;477:1;474;467:12;429:52;513:9;500:23;490:33;;573:2;562:9;558:18;545:32;586:31;611:5;586:31;:::i;:::-;636:5;626:15;;;332:315;;;;;:::o;1196:472::-;1289:6;1297;1305;1358:2;1346:9;1337:7;1333:23;1329:32;1326:52;;;1374:1;1371;1364:12;1326:52;1413:9;1400:23;1432:31;1457:5;1432:31;:::i;:::-;1482:5;-1:-1:-1;1539:2:1;1524:18;;1511:32;1552:33;1511:32;1552:33;:::i;:::-;1196:472;;1604:7;;-1:-1:-1;;;1658:2:1;1643:18;;;;1630:32;;1196:472::o;2125:406::-;2327:2;2309:21;;;2366:2;2346:18;;;2339:30;2405:34;2400:2;2385:18;;2378:62;-1:-1:-1;;;2471:2:1;2456:18;;2449:40;2521:3;2506:19;;2125:406::o
Swarm Source
ipfs://b3636a92244e878c53df1f027db88685119428a3af4b06663969a7353c6ad937
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.