Sepolia Testnet

Contract

0x812adE7BC90C34e8b2ca92590e525305c85f2D03
Source Code

Overview

ETH Balance

0 ETH

Token Holdings

Multi Chain

Multichain Addresses

2 addresses found via
Transaction Hash
Method
Block
From
To
Value
Register41317372023-08-21 13:42:24109 days 4 hrs ago1692625344IN
0x812adE...c85f2D03
0 ETH0.000080791.80867855
Register41054542023-08-17 7:19:36113 days 11 hrs ago1692256776IN
0x812adE...c85f2D03
0 ETH0.0006065124.4977657
Register40182602023-08-03 12:37:36127 days 6 hrs ago1691066256IN
0x812adE...c85f2D03
0 ETH0.000069281.5515553
Register39680582023-07-26 13:07:36135 days 5 hrs ago1690376856IN
0x812adE...c85f2D03
0 ETH0.000066981.50000001
Register39627992023-07-25 16:45:48136 days 1 hr ago1690303548IN
0x812adE...c85f2D03
0 ETH0.00004982.0107846
Register39509412023-07-23 20:01:24137 days 22 hrs ago1690142484IN
0x812adE...c85f2D03
0 ETH0.0000671.5
Register39364672023-07-21 13:10:24140 days 5 hrs ago1689945024IN
0x812adE...c85f2D03
0 ETH0.00006661.50308976
0x6080604039364152023-07-21 12:59:24140 days 5 hrs ago1689944364IN
 Create: ZKRegistry
0 ETH0.000946832.50340496

Advanced mode:
Parent Txn Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ZKRegistry

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2023-07-21
*/

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

contract ZKRegistry {
    mapping(uint8 => mapping(address => uint256)) public registry;

    /// We currently support only maximum 256 interfaces
    /// Some of interfaces are reserved for standard interfaces
    /// If an interface requires more than one value, it can use another interface id
    /// Usually, by adding an offset to the original interface id

    /// Reserved interface ids
    uint8 public BBJJPK_X_INTERFACE_ID = 0x00; // first byte of keccak("BBJJPK")
    uint8 public BBJJPK_Y_INTERFACE_ID = 0x01; // first byte of keccak("BBJJPK") + 1

    uint8 public BLS12PK_X_INTERFACE_ID = 0xc2; // first byte of keccak("BLS12PK")
    uint8 public BLS12PK_Y_INTERFACE_ID = 0xc3; // first byte of keccak("BLS12PK") + 1

    uint8 public POSEIDON_INTERFACE_ID = 0xbf; // first byte of keccak("POSEIDON")

    /// Register a value for a given interface id
    function register(uint8 interface_id, uint256 value) public {
        registry[interface_id][msg.sender] = value;
    }

    /// De-register a value for a given interface id
    function deregister(uint8 interface_id) public {
        delete registry[interface_id][msg.sender];
    }

    /// Get a value for a given interface id and address
    function get(uint8 interface_id, address addr) public view returns (uint256) {
        return registry[interface_id][addr];
    }
}

Contract ABI

[{"inputs":[],"name":"BBJJPK_X_INTERFACE_ID","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BBJJPK_Y_INTERFACE_ID","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BLS12PK_X_INTERFACE_ID","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BLS12PK_Y_INTERFACE_ID","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POSEIDON_INTERFACE_ID","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"interface_id","type":"uint8"}],"name":"deregister","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"interface_id","type":"uint8"},{"internalType":"address","name":"addr","type":"address"}],"name":"get","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"interface_id","type":"uint8"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"register","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"address","name":"","type":"address"}],"name":"registry","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040526000600160006101000a81548160ff021916908360ff16021790555060018060016101000a81548160ff021916908360ff16021790555060c2600160026101000a81548160ff021916908360ff16021790555060c3600160036101000a81548160ff021916908360ff16021790555060bf600160046101000a81548160ff021916908360ff16021790555034801561009b57600080fd5b5061056b806100ab6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80633d917452116100665780633d917452146101225780638d27c7341461013e5780638e1ab4e71461015c5780639f851e251461017a578063be760aae146101aa57610093565b80630404354914610098578063241144f4146100b657806333e2127a146100d4578063371eb38514610104575b600080fd5b6100a06101c6565b6040516100ad919061037e565b60405180910390f35b6100be6101d7565b6040516100cb919061037e565b60405180910390f35b6100ee60048036038101906100e99190610428565b6101ea565b6040516100fb9190610481565b60405180910390f35b61010c61024a565b604051610119919061037e565b60405180910390f35b61013c6004803603810190610137919061049c565b61025d565b005b6101466102b9565b604051610153919061037e565b60405180910390f35b6101646102cc565b604051610171919061037e565b60405180910390f35b610194600480360381019061018f9190610428565b6102df565b6040516101a19190610481565b60405180910390f35b6101c460048036038101906101bf91906104f5565b610304565b005b60018054906101000a900460ff1681565b600160029054906101000a900460ff1681565b60008060008460ff1660ff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600160039054906101000a900460ff1681565b6000808260ff1660ff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000905550565b600160009054906101000a900460ff1681565b600160049054906101000a900460ff1681565b6000602052816000526040600020602052806000526040600020600091509150505481565b806000808460ff1660ff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600060ff82169050919050565b61037881610362565b82525050565b6000602082019050610393600083018461036f565b92915050565b600080fd5b6103a781610362565b81146103b257600080fd5b50565b6000813590506103c48161039e565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006103f5826103ca565b9050919050565b610405816103ea565b811461041057600080fd5b50565b600081359050610422816103fc565b92915050565b6000806040838503121561043f5761043e610399565b5b600061044d858286016103b5565b925050602061045e85828601610413565b9150509250929050565b6000819050919050565b61047b81610468565b82525050565b60006020820190506104966000830184610472565b92915050565b6000602082840312156104b2576104b1610399565b5b60006104c0848285016103b5565b91505092915050565b6104d281610468565b81146104dd57600080fd5b50565b6000813590506104ef816104c9565b92915050565b6000806040838503121561050c5761050b610399565b5b600061051a858286016103b5565b925050602061052b858286016104e0565b915050925092905056fea2646970667358221220697169470facfcde3535a56ea4747f7fc32dc665f57a9b563af91e5575efddf064736f6c63430008120033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100935760003560e01c80633d917452116100665780633d917452146101225780638d27c7341461013e5780638e1ab4e71461015c5780639f851e251461017a578063be760aae146101aa57610093565b80630404354914610098578063241144f4146100b657806333e2127a146100d4578063371eb38514610104575b600080fd5b6100a06101c6565b6040516100ad919061037e565b60405180910390f35b6100be6101d7565b6040516100cb919061037e565b60405180910390f35b6100ee60048036038101906100e99190610428565b6101ea565b6040516100fb9190610481565b60405180910390f35b61010c61024a565b604051610119919061037e565b60405180910390f35b61013c6004803603810190610137919061049c565b61025d565b005b6101466102b9565b604051610153919061037e565b60405180910390f35b6101646102cc565b604051610171919061037e565b60405180910390f35b610194600480360381019061018f9190610428565b6102df565b6040516101a19190610481565b60405180910390f35b6101c460048036038101906101bf91906104f5565b610304565b005b60018054906101000a900460ff1681565b600160029054906101000a900460ff1681565b60008060008460ff1660ff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600160039054906101000a900460ff1681565b6000808260ff1660ff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000905550565b600160009054906101000a900460ff1681565b600160049054906101000a900460ff1681565b6000602052816000526040600020602052806000526040600020600091509150505481565b806000808460ff1660ff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600060ff82169050919050565b61037881610362565b82525050565b6000602082019050610393600083018461036f565b92915050565b600080fd5b6103a781610362565b81146103b257600080fd5b50565b6000813590506103c48161039e565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006103f5826103ca565b9050919050565b610405816103ea565b811461041057600080fd5b50565b600081359050610422816103fc565b92915050565b6000806040838503121561043f5761043e610399565b5b600061044d858286016103b5565b925050602061045e85828601610413565b9150509250929050565b6000819050919050565b61047b81610468565b82525050565b60006020820190506104966000830184610472565b92915050565b6000602082840312156104b2576104b1610399565b5b60006104c0848285016103b5565b91505092915050565b6104d281610468565b81146104dd57600080fd5b50565b6000813590506104ef816104c9565b92915050565b6000806040838503121561050c5761050b610399565b5b600061051a858286016103b5565b925050602061052b858286016104e0565b915050925092905056fea2646970667358221220697169470facfcde3535a56ea4747f7fc32dc665f57a9b563af91e5575efddf064736f6c63430008120033

Deployed Bytecode Sourcemap

68:1379:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;558:41;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;646:42;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1313:131;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;730:42;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1140:107;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;476:41;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;820;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;95:61;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;957:121;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;558:41;;;;;;;;;;;;:::o;646:42::-;;;;;;;;;;;;;:::o;1313:131::-;1381:7;1408:8;:22;1417:12;1408:22;;;;;;;;;;;;;;;:28;1431:4;1408:28;;;;;;;;;;;;;;;;1401:35;;1313:131;;;;:::o;730:42::-;;;;;;;;;;;;;:::o;1140:107::-;1205:8;:22;1214:12;1205:22;;;;;;;;;;;;;;;:34;1228:10;1205:34;;;;;;;;;;;;;;;1198:41;;;1140:107;:::o;476:41::-;;;;;;;;;;;;;:::o;820:::-;;;;;;;;;;;;;:::o;95:61::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;957:121::-;1065:5;1028:8;:22;1037:12;1028:22;;;;;;;;;;;;;;;:34;1051:10;1028:34;;;;;;;;;;;;;;;:42;;;;957:121;;:::o;7:86:1:-;42:7;82:4;75:5;71:16;60:27;;7:86;;;:::o;99:112::-;182:22;198:5;182:22;:::i;:::-;177:3;170:35;99:112;;:::o;217:214::-;306:4;344:2;333:9;329:18;321:26;;357:67;421:1;410:9;406:17;397:6;357:67;:::i;:::-;217:214;;;;:::o;518:117::-;627:1;624;617:12;764:118;835:22;851:5;835:22;:::i;:::-;828:5;825:33;815:61;;872:1;869;862:12;815:61;764:118;:::o;888:135::-;932:5;970:6;957:20;948:29;;986:31;1011:5;986:31;:::i;:::-;888:135;;;;:::o;1029:126::-;1066:7;1106:42;1099:5;1095:54;1084:65;;1029:126;;;:::o;1161:96::-;1198:7;1227:24;1245:5;1227:24;:::i;:::-;1216:35;;1161:96;;;:::o;1263:122::-;1336:24;1354:5;1336:24;:::i;:::-;1329:5;1326:35;1316:63;;1375:1;1372;1365:12;1316:63;1263:122;:::o;1391:139::-;1437:5;1475:6;1462:20;1453:29;;1491:33;1518:5;1491:33;:::i;:::-;1391:139;;;;:::o;1536:470::-;1602:6;1610;1659:2;1647:9;1638:7;1634:23;1630:32;1627:119;;;1665:79;;:::i;:::-;1627:119;1785:1;1810:51;1853:7;1844:6;1833:9;1829:22;1810:51;:::i;:::-;1800:61;;1756:115;1910:2;1936:53;1981:7;1972:6;1961:9;1957:22;1936:53;:::i;:::-;1926:63;;1881:118;1536:470;;;;;:::o;2012:77::-;2049:7;2078:5;2067:16;;2012:77;;;:::o;2095:118::-;2182:24;2200:5;2182:24;:::i;:::-;2177:3;2170:37;2095:118;;:::o;2219:222::-;2312:4;2350:2;2339:9;2335:18;2327:26;;2363:71;2431:1;2420:9;2416:17;2407:6;2363:71;:::i;:::-;2219:222;;;;:::o;2447:325::-;2504:6;2553:2;2541:9;2532:7;2528:23;2524:32;2521:119;;;2559:79;;:::i;:::-;2521:119;2679:1;2704:51;2747:7;2738:6;2727:9;2723:22;2704:51;:::i;:::-;2694:61;;2650:115;2447:325;;;;:::o;2778:122::-;2851:24;2869:5;2851:24;:::i;:::-;2844:5;2841:35;2831:63;;2890:1;2887;2880:12;2831:63;2778:122;:::o;2906:139::-;2952:5;2990:6;2977:20;2968:29;;3006:33;3033:5;3006:33;:::i;:::-;2906:139;;;;:::o;3051:470::-;3117:6;3125;3174:2;3162:9;3153:7;3149:23;3145:32;3142:119;;;3180:79;;:::i;:::-;3142:119;3300:1;3325:51;3368:7;3359:6;3348:9;3344:22;3325:51;:::i;:::-;3315:61;;3271:115;3425:2;3451:53;3496:7;3487:6;3476:9;3472:22;3451:53;:::i;:::-;3441:63;;3396:118;3051:470;;;;;:::o

Swarm Source

ipfs://697169470facfcde3535a56ea4747f7fc32dc665f57a9b563af91e5575efddf0

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.