Contract 0x721ff9e58831b698efd26b9ac744cf8f0aaecbc2

Contract Overview

Balance:
0 BNB
Txn Hash
Block
From
To
Value [Txn Fee]
0x4a7e94807b8affad224a2af0ed3d862dcfdcc708f3e08446276577877cbe58c9101229552021-06-28 7:43:4030 days 2 hrs ago0xfd0c67edd5e4ce03cd8397dc748b19b0a5c0f645 IN  0x721ff9e58831b698efd26b9ac744cf8f0aaecbc20 BNB0.21271389
0xda8ae9b8e6094891951453ea9f52e202947fd90347800621e07d0e2c1e606627101229522021-06-28 7:43:3130 days 2 hrs ago0xfd0c67edd5e4ce03cd8397dc748b19b0a5c0f645 IN  0x721ff9e58831b698efd26b9ac744cf8f0aaecbc20 BNB0.21271389
0x53491779a2f8863f11e4175f31a2ad3d8730aefb1359c577535cae6642f0079c101229512021-06-28 7:43:2830 days 2 hrs ago0xfd0c67edd5e4ce03cd8397dc748b19b0a5c0f645 IN  0x721ff9e58831b698efd26b9ac744cf8f0aaecbc20 BNB0.21271389
0xdbfe2b8681bfffa97879b00a160ac14baa48cb92bf257bc0528b0f289b07cc8487701102021-05-12 6:56:1277 days 3 hrs ago0xfd0c67edd5e4ce03cd8397dc748b19b0a5c0f645 IN  0x721ff9e58831b698efd26b9ac744cf8f0aaecbc20 BNB0.21271389
0xf179c0c54fa1d9d3936e57ea9215d72fefa1578b782bcbab53418088c6a2ee6887701092021-05-12 6:56:0977 days 3 hrs ago0xfd0c67edd5e4ce03cd8397dc748b19b0a5c0f645 IN  0x721ff9e58831b698efd26b9ac744cf8f0aaecbc20 BNB0.21271389
0x0533afca4b2abadaeb91a796c8f20f15b79352e35aa61439d6edf63a6c753d7f87701072021-05-12 6:56:0377 days 3 hrs ago0xfd0c67edd5e4ce03cd8397dc748b19b0a5c0f645 IN  0x721ff9e58831b698efd26b9ac744cf8f0aaecbc20 BNB0.21271389
0x68e2b33845a3d490378fb395479a6211ea7eae51ffdfdf656f995f09ba92d6df87701062021-05-12 6:56:0077 days 3 hrs ago0xfd0c67edd5e4ce03cd8397dc748b19b0a5c0f645 IN  0x721ff9e58831b698efd26b9ac744cf8f0aaecbc20 BNB0.21271389
0x33dd90e77ff7483ef4c86daa691a6f02a28d182fbc84856cca236e8f9bd8543c87701052021-05-12 6:55:5777 days 3 hrs ago0xfd0c67edd5e4ce03cd8397dc748b19b0a5c0f645 IN  0x721ff9e58831b698efd26b9ac744cf8f0aaecbc20 BNB0.21271389
0x1073d651a14dbf9c8f40bcc6190ae51c55814c5ff8bd732c2e1086e9d366966987701022021-05-12 6:55:4877 days 3 hrs ago0xfd0c67edd5e4ce03cd8397dc748b19b0a5c0f645 IN  0x721ff9e58831b698efd26b9ac744cf8f0aaecbc20 BNB0.21271389
0xf619417d72b965a2329449bf6510a9f5cf87d9da60f5e4037f543becc9086ee387701002021-05-12 6:55:4277 days 3 hrs ago0xfd0c67edd5e4ce03cd8397dc748b19b0a5c0f645 IN  0x721ff9e58831b698efd26b9ac744cf8f0aaecbc20 BNB0.21271389
0xfbc9b14a108ba5085abef704c77d91035280271b2cc95d596ba823c588170f2687700992021-05-12 6:55:3977 days 3 hrs ago0xfd0c67edd5e4ce03cd8397dc748b19b0a5c0f645 IN  0x721ff9e58831b698efd26b9ac744cf8f0aaecbc20 BNB0.21286389
0xdcb4716dc68294aab9902c13298e3c4045587a762109840538e4dbf212336ea387700562021-05-12 6:53:3077 days 3 hrs ago0xfd0c67edd5e4ce03cd8397dc748b19b0a5c0f645 IN  Contract Creation0 BNB0.00475598
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TestPlayerRead

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at BscScan.com on 2021-05-12
*/

// SPDX-License-Identifier: MIT
pragma solidity 0.8.3;

contract TestPlayerRead {

    struct Player {
        uint id;
    }

    Player[] public playerList;
    mapping(uint => Player) public playerMap;

    constructor () {}

    function addPlayers(uint more) public {
        uint currentSize = getPlayerSize();
        for (uint i = currentSize; i < currentSize + more; i++) {
            uint id = i + 1;
            Player memory player = Player(id);
            playerList.push(player);
            playerMap[id] = player;
        }
    }
    
    function getPlayerSize() public view returns (uint length) {
        return playerList.length;
    }
    
    function getPlayers() public view returns (Player[] memory players) {
        return playerList;
    }
    
    function getPlayersPaging(uint offset, uint limit) public view returns (Player[] memory players, uint nextOffset, uint total) {
        uint totalPlayers = playerList.length;
        if(limit == 0) {
            limit = 1;
        }
        
        if (limit > totalPlayers- offset) {
            limit = totalPlayers - offset;
        }

        Player[] memory values = new Player[] (limit);
        for (uint i = 0; i < limit; i++) {
            values[i] = playerList[offset + i];
        }

        return (values, offset + limit, totalPlayers);
    }
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"more","type":"uint256"}],"name":"addPlayers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPlayerSize","outputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPlayers","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"}],"internalType":"struct TestPlayerRead.Player[]","name":"players","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"getPlayersPaging","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"}],"internalType":"struct TestPlayerRead.Player[]","name":"players","type":"tuple[]"},{"internalType":"uint256","name":"nextOffset","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"playerList","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"playerMap","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b506107ac806100206000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80630179cefe146100675780632fbbbdd2146100835780638b5b9ccc146100a1578063a4d18c51146100bf578063ae6d9073146100f1578063c74714d514610121575b600080fd5b610081600480360381019061007c919061048a565b610151565b005b61008b610209565b60405161009891906105ff565b60405180910390f35b6100a9610215565b6040516100b6919061059f565b60405180910390f35b6100d960048036038101906100d491906104b3565b61027a565b6040516100e8939291906105c1565b60405180910390f35b61010b6004803603810190610106919061048a565b61041a565b60405161011891906105ff565b60405180910390f35b61013b6004803603810190610136919061048a565b610444565b60405161014891906105ff565b60405180910390f35b600061015b610209565b905060008190505b828261016f9190610653565b8110156102045760006001826101859190610653565b90506000604051806020016040528083815250905060008190806001815401808255809150506001900390600052602060002001600090919091909150600082015181600001555050806001600084815260200190815260200160002060008201518160000155905050505080806101fc906106e7565b915050610163565b505050565b60008080549050905090565b60606000805480602002602001604051908101604052809291908181526020016000905b828210156102715783829060005260206000200160405180602001604052908160008201548152505081526020019060010190610239565b50505050905090565b6060600080600080805490509050600085141561029657600194505b85816102a291906106a9565b8511156102b85785816102b591906106a9565b94505b60008567ffffffffffffffff8111156102fa577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561033357816020015b610320610462565b8152602001906001900390816103185790505b50905060005b868110156103fc576000818961034f9190610653565b81548110610386577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020016040518060200160405290816000820154815250508282815181106103de577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018190525080806103f4906106e7565b915050610339565b5080868861040a9190610653565b8394509450945050509250925092565b6000818154811061042a57600080fd5b906000526020600020016000915090508060000154905081565b60016020528060005260406000206000915090508060000154905081565b6040518060200160405280600081525090565b6000813590506104848161075f565b92915050565b60006020828403121561049c57600080fd5b60006104aa84828501610475565b91505092915050565b600080604083850312156104c657600080fd5b60006104d485828601610475565b92505060206104e585828601610475565b9150509250929050565b60006104fb8383610565565b60208301905092915050565b60006105128261062a565b61051c8185610642565b93506105278361061a565b8060005b8381101561055857815161053f88826104ef565b975061054a83610635565b92505060018101905061052b565b5085935050505092915050565b60208201600082015161057b6000850182610581565b50505050565b61058a816106dd565b82525050565b610599816106dd565b82525050565b600060208201905081810360008301526105b98184610507565b905092915050565b600060608201905081810360008301526105db8186610507565b90506105ea6020830185610590565b6105f76040830184610590565b949350505050565b60006020820190506106146000830184610590565b92915050565b6000819050602082019050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600061065e826106dd565b9150610669836106dd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561069e5761069d610730565b5b828201905092915050565b60006106b4826106dd565b91506106bf836106dd565b9250828210156106d2576106d1610730565b5b828203905092915050565b6000819050919050565b60006106f2826106dd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561072557610724610730565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b610768816106dd565b811461077357600080fd5b5056fea26469706673582212201b5601630b32e6760ec56dc77689955c0e0f64facd317c706fe446a0c80be02a64736f6c63430008030033

Deployed ByteCode Sourcemap

59:1328:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;247:322;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;581:102;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;695:104;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;811:573;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;140:26;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;173:40;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;247:322;296:16;315:15;:13;:15::i;:::-;296:34;;346:6;355:11;346:20;;341:221;386:4;372:11;:18;;;;:::i;:::-;368:1;:22;341:221;;;412:7;426:1;422;:5;;;;:::i;:::-;412:15;;442:20;465:10;;;;;;;;472:2;465:10;;;442:33;;490:10;506:6;490:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;544:6;528:9;:13;538:2;528:13;;;;;;;;;;;:22;;;;;;;;;;;341:221;;392:3;;;;;:::i;:::-;;;;341:221;;;;247:322;;:::o;581:102::-;627:11;658:10;:17;;;;651:24;;581:102;:::o;695:104::-;738:23;781:10;774:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;695:104;:::o;811:573::-;883:23;908:15;925:10;948:17;968:10;:17;;;;948:37;;1008:1;999:5;:10;996:51;;;1034:1;1026:9;;996:51;1093:6;1079:12;:20;;;;:::i;:::-;1071:5;:28;1067:90;;;1139:6;1124:12;:21;;;;:::i;:::-;1116:29;;1067:90;1169:22;1208:5;1194:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;1169:45;;1230:6;1225:94;1246:5;1242:1;:9;1225:94;;;1285:10;1305:1;1296:6;:10;;;;:::i;:::-;1285:22;;;;;;;;;;;;;;;;;;;;;;;1273:34;;;;;;;;;;;;;;;;;:6;1280:1;1273:9;;;;;;;;;;;;;;;;;;;;;:34;;;;1253:3;;;;;:::i;:::-;;;;1225:94;;;;1339:6;1356:5;1347:6;:14;;;;:::i;:::-;1363:12;1331:45;;;;;;;;811:573;;;;;:::o;140:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;173:40::-;;;;;;;;;;;;;;;;;;;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;:::o;7:139:1:-;;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;59:87;;;;:::o;152:262::-;;260:2;248:9;239:7;235:23;231:32;228:2;;;276:1;273;266:12;228:2;319:1;344:53;389:7;380:6;369:9;365:22;344:53;:::i;:::-;334:63;;290:117;218:196;;;;:::o;420:407::-;;;545:2;533:9;524:7;520:23;516:32;513:2;;;561:1;558;551:12;513:2;604:1;629:53;674:7;665:6;654:9;650:22;629:53;:::i;:::-;619:63;;575:117;731:2;757:53;802:7;793:6;782:9;778:22;757:53;:::i;:::-;747:63;;702:118;503:324;;;;;:::o;833:263::-;;965:88;1049:3;1041:6;965:88;:::i;:::-;1085:4;1080:3;1076:14;1062:28;;955:141;;;;:::o;1174:900::-;;1364:75;1433:5;1364:75;:::i;:::-;1455:107;1555:6;1550:3;1455:107;:::i;:::-;1448:114;;1586:77;1657:5;1586:77;:::i;:::-;1686:7;1717:1;1702:347;1727:6;1724:1;1721:13;1702:347;;;1803:6;1797:13;1830:105;1931:3;1916:13;1830:105;:::i;:::-;1823:112;;1958:81;2032:6;1958:81;:::i;:::-;1948:91;;1762:287;1749:1;1746;1742:9;1737:14;;1702:347;;;1706:14;2065:3;2058:10;;1340:734;;;;;;;:::o;2148:313::-;2277:4;2272:3;2268:14;2362:4;2355:5;2351:16;2345:23;2381:63;2438:4;2433:3;2429:14;2415:12;2381:63;:::i;:::-;2292:162;2246:215;;;:::o;2467:108::-;2544:24;2562:5;2544:24;:::i;:::-;2539:3;2532:37;2522:53;;:::o;2581:118::-;2668:24;2686:5;2668:24;:::i;:::-;2663:3;2656:37;2646:53;;:::o;2705:457::-;;2928:2;2917:9;2913:18;2905:26;;2977:9;2971:4;2967:20;2963:1;2952:9;2948:17;2941:47;3005:150;3150:4;3141:6;3005:150;:::i;:::-;2997:158;;2895:267;;;;:::o;3168:677::-;;3447:2;3436:9;3432:18;3424:26;;3496:9;3490:4;3486:20;3482:1;3471:9;3467:17;3460:47;3524:150;3669:4;3660:6;3524:150;:::i;:::-;3516:158;;3684:72;3752:2;3741:9;3737:18;3728:6;3684:72;:::i;:::-;3766;3834:2;3823:9;3819:18;3810:6;3766:72;:::i;:::-;3414:431;;;;;;:::o;3851:222::-;;3982:2;3971:9;3967:18;3959:26;;3995:71;4063:1;4052:9;4048:17;4039:6;3995:71;:::i;:::-;3949:124;;;;:::o;4079:153::-;;4190:3;4182:11;;4220:4;4215:3;4211:14;4203:22;;4172:60;;;:::o;4238:135::-;;4360:5;4354:12;4344:22;;4333:40;;;:::o;4379:134::-;;4502:4;4497:3;4493:14;4485:22;;4475:38;;;:::o;4519:205::-;;4673:6;4668:3;4661:19;4713:4;4708:3;4704:14;4689:29;;4651:73;;;;:::o;4730:305::-;;4789:20;4807:1;4789:20;:::i;:::-;4784:25;;4823:20;4841:1;4823:20;:::i;:::-;4818:25;;4977:1;4909:66;4905:74;4902:1;4899:81;4896:2;;;4983:18;;:::i;:::-;4896:2;5027:1;5024;5020:9;5013:16;;4774:261;;;;:::o;5041:191::-;;5101:20;5119:1;5101:20;:::i;:::-;5096:25;;5135:20;5153:1;5135:20;:::i;:::-;5130:25;;5174:1;5171;5168:8;5165:2;;;5179:18;;:::i;:::-;5165:2;5224:1;5221;5217:9;5209:17;;5086:146;;;;:::o;5238:77::-;;5304:5;5293:16;;5283:32;;;:::o;5321:233::-;;5383:24;5401:5;5383:24;:::i;:::-;5374:33;;5429:66;5422:5;5419:77;5416:2;;;5499:18;;:::i;:::-;5416:2;5546:1;5539:5;5535:13;5528:20;;5364:190;;;:::o;5560:180::-;5608:77;5605:1;5598:88;5705:4;5702:1;5695:15;5729:4;5726:1;5719:15;5746:122;5819:24;5837:5;5819:24;:::i;:::-;5812:5;5809:35;5799:2;;5858:1;5855;5848:12;5799:2;5789:79;:::o

Swarm Source

ipfs://1b5601630b32e6760ec56dc77689955c0e0f64facd317c706fe446a0c80be02a
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading