Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
TestInterface
Compiler Version
v0.8.14+commit.80d49f37
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-06-10 */ //SPDX-License-Identifier: MIT pragma solidity ^0.8.10; interface IRayRay { function ownerOf(uint256 tokenId) external returns (address); function balanceOf(address owner) external returns (uint256); function tokenOfOwnerByIndex(address owner, uint256 index) external returns (uint256); } contract TestInterface { address public RAY_RAYS_CONTRACT = 0x8d4E2435c262eB6df10E5e4672A8f07E42D8d67e; function ownerOfRayRay(uint256 id) external returns (address) { return IRayRay(RAY_RAYS_CONTRACT).ownerOf(id); } function rayRayBalance(address _a) external returns (uint256) { return IRayRay(RAY_RAYS_CONTRACT).balanceOf(_a); } function walletOfOwner(address _a) external returns (uint256[] memory) { IRayRay rr = IRayRay(RAY_RAYS_CONTRACT); uint256 tokenCount = rr.balanceOf(_a); uint256[] memory tokensId = new uint256[](tokenCount); for(uint256 i; i < tokenCount; i++){ tokensId[i] = rr.tokenOfOwnerByIndex(_a, i); } return tokensId; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"RAY_RAYS_CONTRACT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOfRayRay","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_a","type":"address"}],"name":"rayRayBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_a","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052738d4e2435c262eb6df10e5e4672a8f07e42d8d67e6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555034801561006457600080fd5b5061080a806100746000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063152ee09614610051578063438b630014610081578063498889cf146100b1578063ed716a37146100e1575b600080fd5b61006b60048036038101906100669190610466565b6100ff565b60405161007891906104d4565b60405180910390f35b61009b6004803603810190610096919061051b565b6101a5565b6040516100a89190610606565b60405180910390f35b6100cb60048036038101906100c6919061051b565b610361565b6040516100d89190610637565b60405180910390f35b6100e9610407565b6040516100f691906104d4565b60405180910390f35b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161015b9190610637565b6020604051808303816000875af115801561017a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019e9190610667565b9050919050565b606060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b815260040161020891906104d4565b6020604051808303816000875af1158015610227573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061024b91906106a9565b905060008167ffffffffffffffff811115610269576102686106d6565b5b6040519080825280602002602001820160405280156102975781602001602082028036833780820191505090505b50905060005b82811015610355578373ffffffffffffffffffffffffffffffffffffffff16632f745c5987836040518363ffffffff1660e01b81526004016102e0929190610705565b6020604051808303816000875af11580156102ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032391906106a9565b8282815181106103365761033561072e565b5b602002602001018181525050808061034d9061078c565b91505061029d565b50809350505050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b81526004016103bd91906104d4565b6020604051808303816000875af11580156103dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040091906106a9565b9050919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080fd5b6000819050919050565b61044381610430565b811461044e57600080fd5b50565b6000813590506104608161043a565b92915050565b60006020828403121561047c5761047b61042b565b5b600061048a84828501610451565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006104be82610493565b9050919050565b6104ce816104b3565b82525050565b60006020820190506104e960008301846104c5565b92915050565b6104f8816104b3565b811461050357600080fd5b50565b600081359050610515816104ef565b92915050565b6000602082840312156105315761053061042b565b5b600061053f84828501610506565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61057d81610430565b82525050565b600061058f8383610574565b60208301905092915050565b6000602082019050919050565b60006105b382610548565b6105bd8185610553565b93506105c883610564565b8060005b838110156105f95781516105e08882610583565b97506105eb8361059b565b9250506001810190506105cc565b5085935050505092915050565b6000602082019050818103600083015261062081846105a8565b905092915050565b61063181610430565b82525050565b600060208201905061064c6000830184610628565b92915050565b600081519050610661816104ef565b92915050565b60006020828403121561067d5761067c61042b565b5b600061068b84828501610652565b91505092915050565b6000815190506106a38161043a565b92915050565b6000602082840312156106bf576106be61042b565b5b60006106cd84828501610694565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060408201905061071a60008301856104c5565b6107276020830184610628565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061079782610430565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036107c9576107c861075d565b5b60018201905091905056fea26469706673582212202b9968561f2910b7e5d75d4e2fddd815906d129f11f6ced171d73ac277affb3d64736f6c634300080e0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063152ee09614610051578063438b630014610081578063498889cf146100b1578063ed716a37146100e1575b600080fd5b61006b60048036038101906100669190610466565b6100ff565b60405161007891906104d4565b60405180910390f35b61009b6004803603810190610096919061051b565b6101a5565b6040516100a89190610606565b60405180910390f35b6100cb60048036038101906100c6919061051b565b610361565b6040516100d89190610637565b60405180910390f35b6100e9610407565b6040516100f691906104d4565b60405180910390f35b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161015b9190610637565b6020604051808303816000875af115801561017a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019e9190610667565b9050919050565b606060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b815260040161020891906104d4565b6020604051808303816000875af1158015610227573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061024b91906106a9565b905060008167ffffffffffffffff811115610269576102686106d6565b5b6040519080825280602002602001820160405280156102975781602001602082028036833780820191505090505b50905060005b82811015610355578373ffffffffffffffffffffffffffffffffffffffff16632f745c5987836040518363ffffffff1660e01b81526004016102e0929190610705565b6020604051808303816000875af11580156102ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032391906106a9565b8282815181106103365761033561072e565b5b602002602001018181525050808061034d9061078c565b91505061029d565b50809350505050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b81526004016103bd91906104d4565b6020604051808303816000875af11580156103dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040091906106a9565b9050919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080fd5b6000819050919050565b61044381610430565b811461044e57600080fd5b50565b6000813590506104608161043a565b92915050565b60006020828403121561047c5761047b61042b565b5b600061048a84828501610451565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006104be82610493565b9050919050565b6104ce816104b3565b82525050565b60006020820190506104e960008301846104c5565b92915050565b6104f8816104b3565b811461050357600080fd5b50565b600081359050610515816104ef565b92915050565b6000602082840312156105315761053061042b565b5b600061053f84828501610506565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61057d81610430565b82525050565b600061058f8383610574565b60208301905092915050565b6000602082019050919050565b60006105b382610548565b6105bd8185610553565b93506105c883610564565b8060005b838110156105f95781516105e08882610583565b97506105eb8361059b565b9250506001810190506105cc565b5085935050505092915050565b6000602082019050818103600083015261062081846105a8565b905092915050565b61063181610430565b82525050565b600060208201905061064c6000830184610628565b92915050565b600081519050610661816104ef565b92915050565b60006020828403121561067d5761067c61042b565b5b600061068b84828501610652565b91505092915050565b6000815190506106a38161043a565b92915050565b6000602082840312156106bf576106be61042b565b5b60006106cd84828501610694565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060408201905061071a60008301856104c5565b6107276020830184610628565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061079782610430565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036107c9576107c861075d565b5b60018201905091905056fea26469706673582212202b9968561f2910b7e5d75d4e2fddd815906d129f11f6ced171d73ac277affb3d64736f6c634300080e0033
Deployed Bytecode Sourcemap
306:779:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;424:126;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;694:386;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;558:128;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;338:77;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;424:126;477:7;512:17;;;;;;;;;;;504:34;;;539:2;504:38;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;497:45;;424:126;;;:::o;694:386::-;747:16;776:10;797:17;;;;;;;;;;;776:39;;826:18;847:2;:12;;;860:2;847:16;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;826:37;;876:25;918:10;904:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;876:53;;944:9;940:105;959:10;955:1;:14;940:105;;;1004:2;:22;;;1027:2;1031:1;1004:29;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;990:8;999:1;990:11;;;;;;;;:::i;:::-;;;;;;;:43;;;;;971:3;;;;;:::i;:::-;;;;940:105;;;;1064:8;1057:15;;;;;694:386;;;:::o;558:128::-;611:7;646:17;;;;;;;;;;;638:36;;;675:2;638:40;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;631:47;;558:128;;;:::o;338:77::-;;;;;;;;;;;;:::o;88:117:1:-;197:1;194;187:12;334:77;371:7;400:5;389:16;;334:77;;;:::o;417:122::-;490:24;508:5;490:24;:::i;:::-;483:5;480:35;470:63;;529:1;526;519:12;470:63;417:122;:::o;545:139::-;591:5;629:6;616:20;607:29;;645:33;672:5;645:33;:::i;:::-;545:139;;;;:::o;690:329::-;749:6;798:2;786:9;777:7;773:23;769:32;766:119;;;804:79;;:::i;:::-;766:119;924:1;949:53;994:7;985:6;974:9;970:22;949:53;:::i;:::-;939:63;;895:117;690:329;;;;:::o;1025:126::-;1062:7;1102:42;1095:5;1091:54;1080:65;;1025:126;;;:::o;1157:96::-;1194:7;1223:24;1241:5;1223:24;:::i;:::-;1212:35;;1157:96;;;:::o;1259:118::-;1346:24;1364:5;1346:24;:::i;:::-;1341:3;1334:37;1259:118;;:::o;1383:222::-;1476:4;1514:2;1503:9;1499:18;1491:26;;1527:71;1595:1;1584:9;1580:17;1571:6;1527:71;:::i;:::-;1383:222;;;;:::o;1611:122::-;1684:24;1702:5;1684:24;:::i;:::-;1677:5;1674:35;1664:63;;1723:1;1720;1713:12;1664:63;1611:122;:::o;1739:139::-;1785:5;1823:6;1810:20;1801:29;;1839:33;1866:5;1839:33;:::i;:::-;1739:139;;;;:::o;1884:329::-;1943:6;1992:2;1980:9;1971:7;1967:23;1963:32;1960:119;;;1998:79;;:::i;:::-;1960:119;2118:1;2143:53;2188:7;2179:6;2168:9;2164:22;2143:53;:::i;:::-;2133:63;;2089:117;1884:329;;;;:::o;2219:114::-;2286:6;2320:5;2314:12;2304:22;;2219:114;;;:::o;2339:184::-;2438:11;2472:6;2467:3;2460:19;2512:4;2507:3;2503:14;2488:29;;2339:184;;;;:::o;2529:132::-;2596:4;2619:3;2611:11;;2649:4;2644:3;2640:14;2632:22;;2529:132;;;:::o;2667:108::-;2744:24;2762:5;2744:24;:::i;:::-;2739:3;2732:37;2667:108;;:::o;2781:179::-;2850:10;2871:46;2913:3;2905:6;2871:46;:::i;:::-;2949:4;2944:3;2940:14;2926:28;;2781:179;;;;:::o;2966:113::-;3036:4;3068;3063:3;3059:14;3051:22;;2966:113;;;:::o;3115:732::-;3234:3;3263:54;3311:5;3263:54;:::i;:::-;3333:86;3412:6;3407:3;3333:86;:::i;:::-;3326:93;;3443:56;3493:5;3443:56;:::i;:::-;3522:7;3553:1;3538:284;3563:6;3560:1;3557:13;3538:284;;;3639:6;3633:13;3666:63;3725:3;3710:13;3666:63;:::i;:::-;3659:70;;3752:60;3805:6;3752:60;:::i;:::-;3742:70;;3598:224;3585:1;3582;3578:9;3573:14;;3538:284;;;3542:14;3838:3;3831:10;;3239:608;;;3115:732;;;;:::o;3853:373::-;3996:4;4034:2;4023:9;4019:18;4011:26;;4083:9;4077:4;4073:20;4069:1;4058:9;4054:17;4047:47;4111:108;4214:4;4205:6;4111:108;:::i;:::-;4103:116;;3853:373;;;;:::o;4232:118::-;4319:24;4337:5;4319:24;:::i;:::-;4314:3;4307:37;4232:118;;:::o;4356:222::-;4449:4;4487:2;4476:9;4472:18;4464:26;;4500:71;4568:1;4557:9;4553:17;4544:6;4500:71;:::i;:::-;4356:222;;;;:::o;4584:143::-;4641:5;4672:6;4666:13;4657:22;;4688:33;4715:5;4688:33;:::i;:::-;4584:143;;;;:::o;4733:351::-;4803:6;4852:2;4840:9;4831:7;4827:23;4823:32;4820:119;;;4858:79;;:::i;:::-;4820:119;4978:1;5003:64;5059:7;5050:6;5039:9;5035:22;5003:64;:::i;:::-;4993:74;;4949:128;4733:351;;;;:::o;5090:143::-;5147:5;5178:6;5172:13;5163:22;;5194:33;5221:5;5194:33;:::i;:::-;5090:143;;;;:::o;5239:351::-;5309:6;5358:2;5346:9;5337:7;5333:23;5329:32;5326:119;;;5364:79;;:::i;:::-;5326:119;5484:1;5509:64;5565:7;5556:6;5545:9;5541:22;5509:64;:::i;:::-;5499:74;;5455:128;5239:351;;;;:::o;5596:180::-;5644:77;5641:1;5634:88;5741:4;5738:1;5731:15;5765:4;5762:1;5755:15;5782:332;5903:4;5941:2;5930:9;5926:18;5918:26;;5954:71;6022:1;6011:9;6007:17;5998:6;5954:71;:::i;:::-;6035:72;6103:2;6092:9;6088:18;6079:6;6035:72;:::i;:::-;5782:332;;;;;:::o;6120:180::-;6168:77;6165:1;6158:88;6265:4;6262:1;6255:15;6289:4;6286:1;6279:15;6306:180;6354:77;6351:1;6344:88;6451:4;6448:1;6441:15;6475:4;6472:1;6465:15;6492:233;6531:3;6554:24;6572:5;6554:24;:::i;:::-;6545:33;;6600:66;6593:5;6590:77;6587:103;;6670:18;;:::i;:::-;6587:103;6717:1;6710:5;6706:13;6699:20;;6492:233;;;:::o
Swarm Source
ipfs://2b9968561f2910b7e5d75d4e2fddd815906d129f11f6ced171d73ac277affb3d
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.