More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
View more zero value Internal Transactions in Advanced View mode
Loading...
Loading
Contract Name:
Otherside
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity)
/** *Submitted for verification at moonriver.moonscan.io on 2022-03-04 */ // Sources flattened with hardhat v2.6.5 https://hardhat.org // File @openzeppelin/contracts/utils/introspection/[email protected] // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @openzeppelin/contracts/token/ERC1155/[email protected] pragma solidity ^0.8.0; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); } // File @openzeppelin/contracts/utils/introspection/[email protected] pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File @openzeppelin/contracts/token/ERC1155/utils/[email protected] pragma solidity ^0.8.0; /** * @dev _Available since v3.1._ */ abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } } // File @openzeppelin/contracts/token/ERC1155/utils/[email protected] pragma solidity ^0.8.0; /** * @dev _Available since v3.1._ */ contract ERC1155Holder is ERC1155Receiver { function onERC1155Received( address, address, uint256, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] memory, uint256[] memory, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155BatchReceived.selector; } } // File contracts/Otherside.sol pragma solidity ^0.8.0; // Black hole for tokens contract Otherside is ERC1155Holder { receive() external payable {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b50610474806100206000396000f3fe6080604052600436106100385760003560e01c806301ffc9a714610044578063bc197c8114610079578063f23a6e61146100d757600080fd5b3661003f57005b600080fd5b34801561005057600080fd5b5061006461005f366004610185565b61011c565b60405190151581526020015b60405180910390f35b34801561008557600080fd5b506100be61009436600461032f565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b6040516001600160e01b03199091168152602001610070565b3480156100e357600080fd5b506100be6100f23660046103d9565b7ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b60006001600160e01b031982167f4e2312e000000000000000000000000000000000000000000000000000000000148061017f57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60006020828403121561019757600080fd5b81356001600160e01b0319811681146101af57600080fd5b9392505050565b803573ffffffffffffffffffffffffffffffffffffffff811681146101da57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610237576102376101df565b604052919050565b600082601f83011261025057600080fd5b8135602067ffffffffffffffff82111561026c5761026c6101df565b8160051b61027b82820161020e565b928352848101820192828101908785111561029557600080fd5b83870192505b848310156102b45782358252918301919083019061029b565b979650505050505050565b600082601f8301126102d057600080fd5b813567ffffffffffffffff8111156102ea576102ea6101df565b6102fd601f8201601f191660200161020e565b81815284602083860101111561031257600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561034757600080fd5b610350866101b6565b945061035e602087016101b6565b9350604086013567ffffffffffffffff8082111561037b57600080fd5b61038789838a0161023f565b9450606088013591508082111561039d57600080fd5b6103a989838a0161023f565b935060808801359150808211156103bf57600080fd5b506103cc888289016102bf565b9150509295509295909350565b600080600080600060a086880312156103f157600080fd5b6103fa866101b6565b9450610408602087016101b6565b93506040860135925060608601359150608086013567ffffffffffffffff81111561043257600080fd5b6103cc888289016102bf56fea2646970667358221220fadbcf998c94a4c2e287e1bea37908aefc7e52bdcc5edec413d930f761b0780a64736f6c63430008090033
Deployed Bytecode
0x6080604052600436106100385760003560e01c806301ffc9a714610044578063bc197c8114610079578063f23a6e61146100d757600080fd5b3661003f57005b600080fd5b34801561005057600080fd5b5061006461005f366004610185565b61011c565b60405190151581526020015b60405180910390f35b34801561008557600080fd5b506100be61009436600461032f565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b6040516001600160e01b03199091168152602001610070565b3480156100e357600080fd5b506100be6100f23660046103d9565b7ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b60006001600160e01b031982167f4e2312e000000000000000000000000000000000000000000000000000000000148061017f57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60006020828403121561019757600080fd5b81356001600160e01b0319811681146101af57600080fd5b9392505050565b803573ffffffffffffffffffffffffffffffffffffffff811681146101da57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610237576102376101df565b604052919050565b600082601f83011261025057600080fd5b8135602067ffffffffffffffff82111561026c5761026c6101df565b8160051b61027b82820161020e565b928352848101820192828101908785111561029557600080fd5b83870192505b848310156102b45782358252918301919083019061029b565b979650505050505050565b600082601f8301126102d057600080fd5b813567ffffffffffffffff8111156102ea576102ea6101df565b6102fd601f8201601f191660200161020e565b81815284602083860101111561031257600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561034757600080fd5b610350866101b6565b945061035e602087016101b6565b9350604086013567ffffffffffffffff8082111561037b57600080fd5b61038789838a0161023f565b9450606088013591508082111561039d57600080fd5b6103a989838a0161023f565b935060808801359150808211156103bf57600080fd5b506103cc888289016102bf565b9150509295509295909350565b600080600080600060a086880312156103f157600080fd5b6103fa866101b6565b9450610408602087016101b6565b93506040860135925060608601359150608086013567ffffffffffffffff81111561043257600080fd5b6103cc888289016102bf56fea2646970667358221220fadbcf998c94a4c2e287e1bea37908aefc7e52bdcc5edec413d930f761b0780a64736f6c63430008090033
Deployed Bytecode Sourcemap
5658:75:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4640:223;;;;;;;;;;-1:-1:-1;4640:223:0;;;;;:::i;:::-;;:::i;:::-;;;516:14:1;;509:22;491:41;;479:2;464:18;4640:223:0;;;;;;;;5306:255;;;;;;;;;;-1:-1:-1;5306:255:0;;;;;:::i;:::-;5517:36;5306:255;;;;;;;;;;;-1:-1:-1;;;;;;3575:79:1;;;3557:98;;3545:2;3530:18;5306:255:0;3413:248:1;5071:227:0;;;;;;;;;;-1:-1:-1;5071:227:0;;;;;:::i;:::-;5259:31;5071:227;;;;;;;;4640:223;4742:4;-1:-1:-1;;;;;;4766:49:0;;4781:34;4766:49;;:89;;-1:-1:-1;4311:25:0;-1:-1:-1;;;;;;4296:40:0;;;4819:36;4759:96;4640:223;-1:-1:-1;;4640:223:0:o;14:332:1:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;180:9;167:23;-1:-1:-1;;;;;;223:5:1;219:78;212:5;209:89;199:117;;312:1;309;302:12;199:117;335:5;14:332;-1:-1:-1;;;14:332:1:o;543:196::-;611:20;;671:42;660:54;;650:65;;640:93;;729:1;726;719:12;640:93;543:196;;;:::o;744:184::-;796:77;793:1;786:88;893:4;890:1;883:15;917:4;914:1;907:15;933:275;1004:2;998:9;1069:2;1050:13;;-1:-1:-1;;1046:27:1;1034:40;;1104:18;1089:34;;1125:22;;;1086:62;1083:88;;;1151:18;;:::i;:::-;1187:2;1180:22;933:275;;-1:-1:-1;933:275:1:o;1213:712::-;1267:5;1320:3;1313:4;1305:6;1301:17;1297:27;1287:55;;1338:1;1335;1328:12;1287:55;1374:6;1361:20;1400:4;1423:18;1419:2;1416:26;1413:52;;;1445:18;;:::i;:::-;1491:2;1488:1;1484:10;1514:28;1538:2;1534;1530:11;1514:28;:::i;:::-;1576:15;;;1646;;;1642:24;;;1607:12;;;;1678:15;;;1675:35;;;1706:1;1703;1696:12;1675:35;1742:2;1734:6;1730:15;1719:26;;1754:142;1770:6;1765:3;1762:15;1754:142;;;1836:17;;1824:30;;1787:12;;;;1874;;;;1754:142;;;1914:5;1213:712;-1:-1:-1;;;;;;;1213:712:1:o;1930:530::-;1972:5;2025:3;2018:4;2010:6;2006:17;2002:27;1992:55;;2043:1;2040;2033:12;1992:55;2079:6;2066:20;2105:18;2101:2;2098:26;2095:52;;;2127:18;;:::i;:::-;2171:55;2214:2;2195:13;;-1:-1:-1;;2191:27:1;2220:4;2187:38;2171:55;:::i;:::-;2251:2;2242:7;2235:19;2297:3;2290:4;2285:2;2277:6;2273:15;2269:26;2266:35;2263:55;;;2314:1;2311;2304:12;2263:55;2379:2;2372:4;2364:6;2360:17;2353:4;2344:7;2340:18;2327:55;2427:1;2402:16;;;2420:4;2398:27;2391:38;;;;2406:7;1930:530;-1:-1:-1;;;1930:530:1:o;2465:943::-;2619:6;2627;2635;2643;2651;2704:3;2692:9;2683:7;2679:23;2675:33;2672:53;;;2721:1;2718;2711:12;2672:53;2744:29;2763:9;2744:29;:::i;:::-;2734:39;;2792:38;2826:2;2815:9;2811:18;2792:38;:::i;:::-;2782:48;;2881:2;2870:9;2866:18;2853:32;2904:18;2945:2;2937:6;2934:14;2931:34;;;2961:1;2958;2951:12;2931:34;2984:61;3037:7;3028:6;3017:9;3013:22;2984:61;:::i;:::-;2974:71;;3098:2;3087:9;3083:18;3070:32;3054:48;;3127:2;3117:8;3114:16;3111:36;;;3143:1;3140;3133:12;3111:36;3166:63;3221:7;3210:8;3199:9;3195:24;3166:63;:::i;:::-;3156:73;;3282:3;3271:9;3267:19;3254:33;3238:49;;3312:2;3302:8;3299:16;3296:36;;;3328:1;3325;3318:12;3296:36;;3351:51;3394:7;3383:8;3372:9;3368:24;3351:51;:::i;:::-;3341:61;;;2465:943;;;;;;;;:::o;3666:606::-;3770:6;3778;3786;3794;3802;3855:3;3843:9;3834:7;3830:23;3826:33;3823:53;;;3872:1;3869;3862:12;3823:53;3895:29;3914:9;3895:29;:::i;:::-;3885:39;;3943:38;3977:2;3966:9;3962:18;3943:38;:::i;:::-;3933:48;;4028:2;4017:9;4013:18;4000:32;3990:42;;4079:2;4068:9;4064:18;4051:32;4041:42;;4134:3;4123:9;4119:19;4106:33;4162:18;4154:6;4151:30;4148:50;;;4194:1;4191;4184:12;4148:50;4217:49;4258:7;4249:6;4238:9;4234:22;4217:49;:::i
Swarm Source
ipfs://fadbcf998c94a4c2e287e1bea37908aefc7e52bdcc5edec413d930f761b0780a
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.