ETH Price: $1,976.71 (+0.80%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NameGen

Compiler Version
v0.6.0+commit.26b70077

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2020-06-04
*/

/**
 *Submitted for verification at Etherscan.io on 2020-06-02
*/

pragma experimental ABIEncoderV2;
pragma solidity ^0.6.0;


/*
 * Copyright (c) The Force Protocol Development Team
*/
/**
 * @title ERC20 interface
 * @dev see https://eips.ethereum.org/EIPS/eip-20
 */
interface IERC20Detailed {
    function symbol() external view returns (string memory);
}

contract NameGen {
    function append(string memory a, string memory b, string memory c) public pure returns (string memory) {
        return string(abi.encodePacked(a, b, c));
    }

   function uint2str(uint _i) public pure returns (string memory _uintAsString) {
        if (_i == 0) {
            return "0";
        }
        uint j = _i;
        uint len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint k = len - 1;
        while (_i != 0) {
            bstr[k--] = byte(uint8(48 + _i % 10));
            _i /= 10;
        }
        return string(bstr);
    }

    function gen(string memory symbol, uint id) public view returns (string memory) {
        return append("Bond", symbol, uint2str(id));
    }

    function gen(address token, uint id) public view returns (string memory) {
        return gen(token != address(0) ? IERC20Detailed(token).symbol() : "ETH", id);
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"string","name":"a","type":"string"},{"internalType":"string","name":"b","type":"string"},{"internalType":"string","name":"c","type":"string"}],"name":"append","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"gen","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"gen","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_i","type":"uint256"}],"name":"uint2str","outputs":[{"internalType":"string","name":"_uintAsString","type":"string"}],"stateMutability":"pure","type":"function"}]

608060405234801561001057600080fd5b5061058e806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806306464ed61461005157806347395ced1461007a578063ee373ddb1461008d578063f76f950e146100a0575b600080fd5b61006461005f36600461040a565b6100b3565b60405161007191906104aa565b60405180910390f35b610064610088366004610386565b6100e6565b61006461009b3660046102da565b610115565b6100646100ae36600461044d565b6101c4565b60606100df60405180604001604052806004815260200163109bdb9960e21b81525084610088856101c4565b9392505050565b60608383836040516020016100fd93929190610465565b60405160208183030381529060405290509392505050565b60606100df6001600160a01b038416610149576040518060400160405280600381526020016208aa8960eb1b8152506101be565b836001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b15801561018257600080fd5b505afa158015610196573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101be9190810190610310565b836100b3565b6060816101e957506040805180820190915260018152600360fc1b6020820152610282565b8160005b811561020157600101600a820491506101ed565b6060816040519080825280601f01601f19166020018201604052801561022e576020820181803883390190505b50905060001982015b851561027c57600a860660300160f81b8282806001900393508151811061025a57fe5b60200101906001600160f81b031916908160001a905350600a86049550610237565b50925050505b919050565b600082601f830112610297578081fd5b81356102aa6102a582610504565b6104dd565b91508082528360208285010111156102c157600080fd5b8060208401602084013760009082016020015292915050565b600080604083850312156102ec578182fd5b82356001600160a01b0381168114610302578283fd5b946020939093013593505050565b600060208284031215610321578081fd5b815167ffffffffffffffff811115610337578182fd5b80830184601f820112610348578283fd5b805191506103586102a583610504565b82815285602084840101111561036c578384fd5b61037d836020830160208501610528565b95945050505050565b60008060006060848603121561039a578081fd5b833567ffffffffffffffff808211156103b1578283fd5b6103bd87838801610287565b945060208601359150808211156103d2578283fd5b6103de87838801610287565b935060408601359150808211156103f3578283fd5b5061040086828701610287565b9150509250925092565b6000806040838503121561041c578182fd5b823567ffffffffffffffff811115610432578283fd5b61043e85828601610287565b95602094909401359450505050565b60006020828403121561045e578081fd5b5035919050565b60008451610477818460208901610528565b845190830161048a828260208901610528565b845191810161049d838260208901610528565b9091019695505050505050565b60006020825282518060208401526104c9816040850160208701610528565b601f01601f19169190910160400192915050565b60405181810167ffffffffffffffff811182821017156104fc57600080fd5b604052919050565b600067ffffffffffffffff82111561051a578081fd5b50601f01601f191660200190565b60005b8381101561054357818101518382015260200161052b565b83811115610552576000848401525b5050505056fea264697066735822122090c3790d03efa2468f728712b330429df39ac0d2c1ab86e2d0ebddecbf01ce9664736f6c63430006000033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806306464ed61461005157806347395ced1461007a578063ee373ddb1461008d578063f76f950e146100a0575b600080fd5b61006461005f36600461040a565b6100b3565b60405161007191906104aa565b60405180910390f35b610064610088366004610386565b6100e6565b61006461009b3660046102da565b610115565b6100646100ae36600461044d565b6101c4565b60606100df60405180604001604052806004815260200163109bdb9960e21b81525084610088856101c4565b9392505050565b60608383836040516020016100fd93929190610465565b60405160208183030381529060405290509392505050565b60606100df6001600160a01b038416610149576040518060400160405280600381526020016208aa8960eb1b8152506101be565b836001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b15801561018257600080fd5b505afa158015610196573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101be9190810190610310565b836100b3565b6060816101e957506040805180820190915260018152600360fc1b6020820152610282565b8160005b811561020157600101600a820491506101ed565b6060816040519080825280601f01601f19166020018201604052801561022e576020820181803883390190505b50905060001982015b851561027c57600a860660300160f81b8282806001900393508151811061025a57fe5b60200101906001600160f81b031916908160001a905350600a86049550610237565b50925050505b919050565b600082601f830112610297578081fd5b81356102aa6102a582610504565b6104dd565b91508082528360208285010111156102c157600080fd5b8060208401602084013760009082016020015292915050565b600080604083850312156102ec578182fd5b82356001600160a01b0381168114610302578283fd5b946020939093013593505050565b600060208284031215610321578081fd5b815167ffffffffffffffff811115610337578182fd5b80830184601f820112610348578283fd5b805191506103586102a583610504565b82815285602084840101111561036c578384fd5b61037d836020830160208501610528565b95945050505050565b60008060006060848603121561039a578081fd5b833567ffffffffffffffff808211156103b1578283fd5b6103bd87838801610287565b945060208601359150808211156103d2578283fd5b6103de87838801610287565b935060408601359150808211156103f3578283fd5b5061040086828701610287565b9150509250925092565b6000806040838503121561041c578182fd5b823567ffffffffffffffff811115610432578283fd5b61043e85828601610287565b95602094909401359450505050565b60006020828403121561045e578081fd5b5035919050565b60008451610477818460208901610528565b845190830161048a828260208901610528565b845191810161049d838260208901610528565b9091019695505050505050565b60006020825282518060208401526104c9816040850160208701610528565b601f01601f19169190910160400192915050565b60405181810167ffffffffffffffff811182821017156104fc57600080fd5b604052919050565b600067ffffffffffffffff82111561051a578081fd5b50601f01601f191660200190565b60005b8381101561054357818101518382015260200161052b565b83811115610552576000848401525b5050505056fea264697066735822122090c3790d03efa2468f728712b330429df39ac0d2c1ab86e2d0ebddecbf01ce9664736f6c63430006000033

Deployed Bytecode Sourcemap

380:1002:0:-:0;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;380:1002:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1061:142;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;404:162;;;;;;;;;:::i;1211:168::-;;;;;;;;;:::i;573:480::-;;;;;;;;;:::i;1061:142::-;1126:13;1159:36;;;;;;;;;;;;;;-1:-1:-1;;;1159:36:0;;;1174:6;1182:12;1191:2;1182:8;:12::i;1159:36::-;1152:43;1061:142;-1:-1:-1;;;1061:142:0:o;404:162::-;492:13;549:1;552;555;532:25;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;532:25:0;;;518:40;;404:162;;;;;:::o;1211:168::-;1269:13;1302:69;-1:-1:-1;;;;;1306:19:0;;:60;;;;;;;;;;;;;;;-1:-1:-1;;;1306:60:0;;;;;;1343:5;-1:-1:-1;;;;;1328:28:0;;:30;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1328:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1328:30:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;1328:30:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;1328:30:0;;;;;;;;;1368:2;1302:3;:69::i;573:480::-;621:27;665:7;661:50;;-1:-1:-1;689:10:0;;;;;;;;;;;;-1:-1:-1;;;689:10:0;;;;;;661:50;730:2;721:6;762:69;769:6;;762:69;;792:5;;817:2;812:7;;;;762:69;;;841:17;871:3;861:14;;;;;;;;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;861:14:0;87:34:-1;135:17;;-1:-1;861:14:0;-1:-1:-1;841:34:0;-1:-1:-1;;;895:7:0;;913:103;920:7;;913:103;;977:2;972;:7;967:2;:12;956:25;;944:4;949:3;;;;;;;944:9;;;;;;;;;;;:37;-1:-1:-1;;;;;944:37:0;;;;;;;;-1:-1:-1;1002:2:0;996:8;;;;913:103;;;-1:-1:-1;1040:4:0;-1:-1:-1;;;573:480:0;;;;:::o;143:442:-1:-;;245:3;238:4;230:6;226:17;222:27;212:2;;-1:-1;;253:12;212:2;300:6;287:20;322:65;337:49;379:6;337:49;;;322:65;;;313:74;;407:6;400:5;393:21;511:3;443:4;502:6;435;493:16;;490:25;487:2;;;528:1;;518:12;487:2;6526:6;443:4;435:6;431:17;443:4;469:5;465:16;6503:30;6582:1;6564:16;;;443:4;6564:16;6557:27;469:5;205:380;-1:-1;;205:380;1183:366;;;1304:2;1292:9;1283:7;1279:23;1275:32;1272:2;;;-1:-1;;1310:12;1272:2;72:20;;-1:-1;;;;;6299:54;;7039:35;;7029:2;;-1:-1;;7078:12;7029:2;1362:63;1462:2;1501:22;;;;1113:20;;-1:-1;;;1266:283;1556:362;;1681:2;1669:9;1660:7;1656:23;1652:32;1649:2;;;-1:-1;;1687:12;1649:2;1738:17;1732:24;1776:18;1768:6;1765:30;1762:2;;;-1:-1;;1798:12;1762:2;1885:6;1874:9;1870:22;707:3;700:4;692:6;688:17;684:27;674:2;;-1:-1;;715:12;674:2;755:6;749:13;735:27;;777:65;792:49;834:6;792:49;;777:65;862:6;855:5;848:21;966:3;1681:2;957:6;890;948:16;;945:25;942:2;;;-1:-1;;973:12;942:2;993:39;1025:6;1681:2;924:5;920:16;1681:2;890:6;886:17;993:39;;;1818:84;1643:275;-1:-1;;;;;1643:275;1925:809;;;;2093:2;2081:9;2072:7;2068:23;2064:32;2061:2;;;-1:-1;;2099:12;2061:2;2157:17;2144:31;2195:18;;2187:6;2184:30;2181:2;;;-1:-1;;2217:12;2181:2;2247:63;2302:7;2293:6;2282:9;2278:22;2247:63;;;2237:73;;2375:2;2364:9;2360:18;2347:32;2333:46;;2195:18;2391:6;2388:30;2385:2;;;-1:-1;;2421:12;2385:2;2451:63;2506:7;2497:6;2486:9;2482:22;2451:63;;;2441:73;;2579:2;2568:9;2564:18;2551:32;2537:46;;2195:18;2595:6;2592:30;2589:2;;;-1:-1;;2625:12;2589:2;;2655:63;2710:7;2701:6;2690:9;2686:22;2655:63;;;2645:73;;;2055:679;;;;;;2741:472;;;2872:2;2860:9;2851:7;2847:23;2843:32;2840:2;;;-1:-1;;2878:12;2840:2;2936:17;2923:31;2974:18;2966:6;2963:30;2960:2;;;-1:-1;;2996:12;2960:2;3026:63;3081:7;3072:6;3061:9;3057:22;3026:63;;;3016:73;3126:2;3165:22;;;;1113:20;;-1:-1;;;;2834:379;3220:241;;3324:2;3312:9;3303:7;3299:23;3295:32;3292:2;;;-1:-1;;3330:12;3292:2;-1:-1;1113:20;;3286:175;-1:-1;3286:175;4189:588;;3985:5;5772:12;4097:52;4142:6;4137:3;4130:4;4123:5;4119:16;4097:52;;;5772:12;;;4161:16;;4097:52;5772:12;4161:16;4130:4;4119:16;;4097:52;;;5772:12;;;4161:16;;4097:52;5772:12;4161:16;4130:4;4119:16;;4097:52;;;4161:16;;;;4412:365;-1:-1;;;;;;4412:365;4784:301;;4922:2;4943:17;4936:47;3613:5;5772:12;5929:6;4922:2;4911:9;4907:18;5917:19;3707:52;3752:6;5957:14;4911:9;5957:14;4922:2;3733:5;3729:16;3707:52;;;6959:7;6943:14;-1:-1;;6939:28;3771:39;;;;5957:14;3771:39;;4893:192;-1:-1;;4893:192;5092:256;5154:2;5148:9;5180:17;;;5255:18;5240:34;;5276:22;;;5237:62;5234:2;;;5312:1;;5302:12;5234:2;5154;5321:22;5132:216;;-1:-1;5132:216;5355:322;;5499:18;5491:6;5488:30;5485:2;;;-1:-1;;5521:12;5485:2;-1:-1;6959:7;5575:17;-1:-1;;5571:33;5662:4;5652:15;;5422:255;6599:268;6664:1;6671:101;6685:6;6682:1;6679:13;6671:101;;;6752:11;;;6746:18;6733:11;;;6726:39;6707:2;6700:10;6671:101;;;6787:6;6784:1;6781:13;6778:2;;;6664:1;6843:6;6838:3;6834:16;6827:27;6778:2;;6648:219;;;

Swarm Source

ipfs://90c3790d03efa2468f728712b330429df39ac0d2c1ab86e2d0ebddecbf01ce96

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

The contract of generating the name of bonds.

Loading...
Loading

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.