Overview
APE Balance
0.6006 APE
APE Value
$0.92 (@ $1.53/APE)More Info
Private Name Tags
ContractCreator
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
5634773 | 4 days ago | Contract Creation | 0 APE |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
GasZipV2
Compiler Version
v0.8.26+commit.8a97fa7a
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.17; contract GasZipV2 { event Deposit(address from, uint256 chains, uint256 amount, bytes32 to); address public owner; constructor(address _owner) { owner = _owner; } function deposit(uint256 chains, bytes32 to) payable external { require(msg.value != 0, "No Value"); emit Deposit(msg.sender, chains, msg.value, to); } function deposit(uint256 chains, address to) payable external { require(msg.value != 0, "No Value"); emit Deposit(msg.sender, chains, msg.value, bytes32(bytes20(uint160(to)))); } function withdraw(address token) external { require(msg.sender == owner); if (token == address(0)) { owner.call{value: address(this).balance}(""); } else { IERC20(token).transfer(owner, IERC20(token).balanceOf(address(this))); } } function newOwner(address _owner) external { require(msg.sender == owner); owner = _owner; } } interface IERC20 { function balanceOf(address) external view returns (uint256); function transfer(address, uint256) external returns (bool); }
{ "remappings": [ "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/" ], "optimizer": { "enabled": true, "runs": 50000 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "evmVersion": "shanghai", "viaIR": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"chains","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"to","type":"bytes32"}],"name":"Deposit","type":"event"},{"inputs":[{"internalType":"uint256","name":"chains","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"chains","type":"uint256"},{"internalType":"bytes32","name":"to","type":"bytes32"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"newOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052348015600e575f80fd5b50604051610661380380610661833981016040819052602b91604e565b5f80546001600160a01b0319166001600160a01b03929092169190911790556079565b5f60208284031215605d575f80fd5b81516001600160a01b03811681146072575f80fd5b9392505050565b6105db806100865f395ff3fe608060405260043610610058575f3560e01c8063859524541161004157806385952454146100905780638da5cb5b146100af578063c9630cb014610103575f80fd5b806351cff8d91461005c5780636e553f651461007d575b5f80fd5b348015610067575f80fd5b5061007b610076366004610505565b610116565b005b61007b61008b366004610525565b6102e4565b34801561009b575f80fd5b5061007b6100aa366004610505565b6103c5565b3480156100ba575f80fd5b505f546100da9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b61007b61011136600461054f565b61042d565b5f5473ffffffffffffffffffffffffffffffffffffffff163314610138575f80fd5b73ffffffffffffffffffffffffffffffffffffffff81166101b5575f805460405173ffffffffffffffffffffffffffffffffffffffff9091169147919081818185875af1925050503d805f81146101aa576040519150601f19603f3d011682016040523d82523d5f602084013e6101af565b606091505b50505050565b5f546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8381169263a9059cbb9291169083906370a0823190602401602060405180830381865afa15801561022b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061024f919061056f565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff909216600483015260248201526044016020604051808303815f875af11580156102bc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102e09190610586565b5050565b345f03610352576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f4e6f2056616c756500000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b60408051338152602081018490523491810191909152606082811b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016908201527f7921786f0ead54b0a0502b86991470e5c4790dadc22242f4ff071f361e8e6c68906080015b60405180910390a15050565b5f5473ffffffffffffffffffffffffffffffffffffffff1633146103e7575f80fd5b5f80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b345f03610496576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f4e6f2056616c75650000000000000000000000000000000000000000000000006044820152606401610349565b60408051338152602081018490523491810191909152606081018290527f7921786f0ead54b0a0502b86991470e5c4790dadc22242f4ff071f361e8e6c68906080016103b9565b803573ffffffffffffffffffffffffffffffffffffffff81168114610500575f80fd5b919050565b5f60208284031215610515575f80fd5b61051e826104dd565b9392505050565b5f8060408385031215610536575f80fd5b82359150610546602084016104dd565b90509250929050565b5f8060408385031215610560575f80fd5b50508035926020909101359150565b5f6020828403121561057f575f80fd5b5051919050565b5f60208284031215610596575f80fd5b8151801515811461051e575f80fdfea2646970667358221220ed1ba6bac95a8383757d60d6bf9186abf457ca5a87ebd1de03b3a8806efb3f5d64736f6c634300081a00330000000000000000000000004c968f6beecf1906710b08e8b472b8ba6e75f957
Deployed Bytecode
0x608060405260043610610058575f3560e01c8063859524541161004157806385952454146100905780638da5cb5b146100af578063c9630cb014610103575f80fd5b806351cff8d91461005c5780636e553f651461007d575b5f80fd5b348015610067575f80fd5b5061007b610076366004610505565b610116565b005b61007b61008b366004610525565b6102e4565b34801561009b575f80fd5b5061007b6100aa366004610505565b6103c5565b3480156100ba575f80fd5b505f546100da9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b61007b61011136600461054f565b61042d565b5f5473ffffffffffffffffffffffffffffffffffffffff163314610138575f80fd5b73ffffffffffffffffffffffffffffffffffffffff81166101b5575f805460405173ffffffffffffffffffffffffffffffffffffffff9091169147919081818185875af1925050503d805f81146101aa576040519150601f19603f3d011682016040523d82523d5f602084013e6101af565b606091505b50505050565b5f546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8381169263a9059cbb9291169083906370a0823190602401602060405180830381865afa15801561022b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061024f919061056f565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff909216600483015260248201526044016020604051808303815f875af11580156102bc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102e09190610586565b5050565b345f03610352576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f4e6f2056616c756500000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b60408051338152602081018490523491810191909152606082811b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016908201527f7921786f0ead54b0a0502b86991470e5c4790dadc22242f4ff071f361e8e6c68906080015b60405180910390a15050565b5f5473ffffffffffffffffffffffffffffffffffffffff1633146103e7575f80fd5b5f80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b345f03610496576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f4e6f2056616c75650000000000000000000000000000000000000000000000006044820152606401610349565b60408051338152602081018490523491810191909152606081018290527f7921786f0ead54b0a0502b86991470e5c4790dadc22242f4ff071f361e8e6c68906080016103b9565b803573ffffffffffffffffffffffffffffffffffffffff81168114610500575f80fd5b919050565b5f60208284031215610515575f80fd5b61051e826104dd565b9392505050565b5f8060408385031215610536575f80fd5b82359150610546602084016104dd565b90509250929050565b5f8060408385031215610560575f80fd5b50508035926020909101359150565b5f6020828403121561057f575f80fd5b5051919050565b5f60208284031215610596575f80fd5b8151801515811461051e575f80fdfea2646970667358221220ed1ba6bac95a8383757d60d6bf9186abf457ca5a87ebd1de03b3a8806efb3f5d64736f6c634300081a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004c968f6beecf1906710b08e8b472b8ba6e75f957
-----Decoded View---------------
Arg [0] : _owner (address): 0x4c968f6bEecf1906710b08e8B472b8Ba6E75F957
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000004c968f6beecf1906710b08e8b472b8ba6e75f957
Deployed Bytecode Sourcemap
62:990:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;642:290;;;;;;;;;;-1:-1:-1;642:290:0;;;;;:::i;:::-;;:::i;:::-;;438:198;;;;;;:::i;:::-;;:::i;938:112::-;;;;;;;;;;-1:-1:-1;938:112:0;;;;;:::i;:::-;;:::i;169:20::-;;;;;;;;;;-1:-1:-1;169:20:0;;;;;;;;;;;887:42:1;875:55;;;857:74;;845:2;830:18;169:20:0;;;;;;;261:171;;;;;;:::i;:::-;;:::i;642:290::-;716:5;;;;702:10;:19;694:28;;;;;;736:19;;;732:194;;771:5;;;:44;;:5;;;;;789:21;;771:44;;:5;:44;789:21;771:5;:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;642:290;:::o;732:194::-;869:5;;876:38;;;;;908:4;876:38;;;857:74:1;846:22:0;;;;;;;869:5;;;846:22;;876:23;;830:18:1;;876:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;846:69;;;;;;;;;;1844:42:1;1832:55;;;846:69:0;;;1814:74:1;1904:18;;;1897:34;1787:18;;846:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;642:290;:::o;438:198::-;518:9;531:1;518:14;510:35;;;;;;;2426:2:1;510:35:0;;;2408:21:1;2465:1;2445:18;;;2438:29;2503:10;2483:18;;;2476:38;2531:18;;510:35:0;;;;;;;;;560:69;;;568:10;2791:74:1;;2896:2;2881:18;;2874:34;;;588:9:0;2924:18:1;;;2917:34;;;;607:20:0;;;;599:29;;2967:18:1;;;2960:34;560:69:0;;2778:3:1;2763:19;560:69:0;;;;;;;;438:198;;:::o;938:112::-;1013:5;;;;999:10;:19;991:28;;;;;;1029:5;:14;;;;;;;;;;;;;;;938:112::o;261:171::-;341:9;354:1;341:14;333:35;;;;;;;2426:2:1;333:35:0;;;2408:21:1;2465:1;2445:18;;;2438:29;2503:10;2483:18;;;2476:38;2531:18;;333:35:0;2224:331:1;333:35:0;383:42;;;391:10;2791:74:1;;2896:2;2881:18;;2874:34;;;411:9:0;2924:18:1;;;2917:34;;;;2982:2;2967:18;;2960:34;;;383:42:0;;2778:3:1;2763:19;383:42:0;2560:440:1;14:196;82:20;;142:42;131:54;;121:65;;111:93;;200:1;197;190:12;111:93;14:196;;;:::o;215:186::-;274:6;327:2;315:9;306:7;302:23;298:32;295:52;;;343:1;340;333:12;295:52;366:29;385:9;366:29;:::i;:::-;356:39;215:186;-1:-1:-1;;;215:186:1:o;406:300::-;474:6;482;535:2;523:9;514:7;510:23;506:32;503:52;;;551:1;548;541:12;503:52;596:23;;;-1:-1:-1;662:38:1;696:2;681:18;;662:38;:::i;:::-;652:48;;406:300;;;;;:::o;942:294::-;1010:6;1018;1071:2;1059:9;1050:7;1046:23;1042:32;1039:52;;;1087:1;1084;1077:12;1039:52;-1:-1:-1;;1132:23:1;;;1226:2;1211:18;;;1198:32;;-1:-1:-1;942:294:1:o;1451:184::-;1521:6;1574:2;1562:9;1553:7;1549:23;1545:32;1542:52;;;1590:1;1587;1580:12;1542:52;-1:-1:-1;1613:16:1;;1451:184;-1:-1:-1;1451:184:1:o;1942:277::-;2009:6;2062:2;2050:9;2041:7;2037:23;2033:32;2030:52;;;2078:1;2075;2068:12;2030:52;2110:9;2104:16;2163:5;2156:13;2149:21;2142:5;2139:32;2129:60;;2185:1;2182;2175:12
Swarm Source
ipfs://ed1ba6bac95a8383757d60d6bf9186abf457ca5a87ebd1de03b3a8806efb3f5d
Loading...
Loading
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.