ETH Price: $3,182.20 (-8.04%)
Gas: 4 Gwei

Contract

0x945E589A4715d1915e6FE14f08e4887Bc4019341
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Payment Toke...168202172023-03-13 16:20:47499 days ago1678724447IN
0x945E589A...Bc4019341
0 ETH0.0026341556.60588663
Set Payment Toke...128755162021-07-22 10:04:531098 days ago1626948293IN
0x945E589A...Bc4019341
0 ETH0.001301328
Set Payment Toke...128755142021-07-22 10:04:201098 days ago1626948260IN
0x945E589A...Bc4019341
0 ETH0.0013029828
Set Payment Toke...128755132021-07-22 10:04:091098 days ago1626948249IN
0x945E589A...Bc4019341
0 ETH0.0013029828
Set Payment Toke...128755122021-07-22 10:03:501098 days ago1626948230IN
0x945E589A...Bc4019341
0 ETH0.0013029828
Set Payment Toke...128755112021-07-22 10:03:401098 days ago1626948220IN
0x945E589A...Bc4019341
0 ETH0.0013029828
0x60806040128755062021-07-22 10:02:591098 days ago1626948179IN
 Create: Resolver
0 ETH0.0060921828

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Resolver

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

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

// SPDX-License-Identifier: MIT
pragma solidity =0.8.6;

interface IResolver {
    function getPaymentToken(uint8 _pt) external view returns (address);
    function setPaymentToken(uint8 _pt, address _v) external;
}

contract Resolver is IResolver {
    address private admin;
    mapping(uint8 => address) private addresses;

    constructor(address _admin) {
        admin = _admin;
    }

    function getPaymentToken(uint8 _pt) external view override returns (address) {
        return addresses[_pt];
    }

    function setPaymentToken(uint8 _pt, address _v) external override {
        require(_pt != 0, "ReNFT::cant set sentinel");
        require(addresses[_pt] == address(0), "ReNFT::cannot reset the address");
        require(msg.sender == admin, "ReNFT::only admin");
        addresses[_pt] = _v;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint8","name":"_pt","type":"uint8"}],"name":"getPaymentToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_pt","type":"uint8"},{"internalType":"address","name":"_v","type":"address"}],"name":"setPaymentToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405161031b38038061031b83398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b610288806100936000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063321c6aea1461003b578063c6ee427f14610050575b600080fd5b61004e61004936600461020f565b610098565b005b61007c61005e3660046101ed565b60ff166000908152600160205260409020546001600160a01b031690565b6040516001600160a01b03909116815260200160405180910390f35b60ff82166100ed5760405162461bcd60e51b815260206004820152601860248201527f52654e46543a3a63616e74207365742073656e74696e656c000000000000000060448201526064015b60405180910390fd5b60ff82166000908152600160205260409020546001600160a01b0316156101565760405162461bcd60e51b815260206004820152601f60248201527f52654e46543a3a63616e6e6f742072657365742074686520616464726573730060448201526064016100e4565b6000546001600160a01b031633146101a45760405162461bcd60e51b81526020600482015260116024820152702932a7232a1d1d37b7363c9030b236b4b760791b60448201526064016100e4565b60ff91909116600090815260016020526040902080546001600160a01b0319166001600160a01b03909216919091179055565b803560ff811681146101e857600080fd5b919050565b6000602082840312156101ff57600080fd5b610208826101d7565b9392505050565b6000806040838503121561022257600080fd5b61022b836101d7565b915060208301356001600160a01b038116811461024757600080fd5b80915050925092905056fea2646970667358221220adc5e6f7600e9eb9801ee5d09d61ab440e7352b921703e859ec1895d31b694ca64736f6c6343000806003300000000000000000000000000000444e5a1a667663b0adfd853e8efa0470698

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063321c6aea1461003b578063c6ee427f14610050575b600080fd5b61004e61004936600461020f565b610098565b005b61007c61005e3660046101ed565b60ff166000908152600160205260409020546001600160a01b031690565b6040516001600160a01b03909116815260200160405180910390f35b60ff82166100ed5760405162461bcd60e51b815260206004820152601860248201527f52654e46543a3a63616e74207365742073656e74696e656c000000000000000060448201526064015b60405180910390fd5b60ff82166000908152600160205260409020546001600160a01b0316156101565760405162461bcd60e51b815260206004820152601f60248201527f52654e46543a3a63616e6e6f742072657365742074686520616464726573730060448201526064016100e4565b6000546001600160a01b031633146101a45760405162461bcd60e51b81526020600482015260116024820152702932a7232a1d1d37b7363c9030b236b4b760791b60448201526064016100e4565b60ff91909116600090815260016020526040902080546001600160a01b0319166001600160a01b03909216919091179055565b803560ff811681146101e857600080fd5b919050565b6000602082840312156101ff57600080fd5b610208826101d7565b9392505050565b6000806040838503121561022257600080fd5b61022b836101d7565b915060208301356001600160a01b038116811461024757600080fd5b80915050925092905056fea2646970667358221220adc5e6f7600e9eb9801ee5d09d61ab440e7352b921703e859ec1895d31b694ca64736f6c63430008060033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000444e5a1a667663b0adfd853e8efa0470698

-----Decoded View---------------
Arg [0] : _admin (address): 0x00000444e5a1a667663b0ADfD853E8Efa0470698

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000444e5a1a667663b0adfd853e8efa0470698


Deployed Bytecode Sourcemap

225:618:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;537:303;;;;;;:::i;:::-;;:::i;:::-;;412:117;;;;;;:::i;:::-;507:14;;480:7;507:14;;;:9;:14;;;;;;-1:-1:-1;;;;;507:14:0;;412:117;;;;-1:-1:-1;;;;;887:32:1;;;869:51;;857:2;842:18;412:117:0;;;;;;;537:303;622:8;;;614:45;;;;-1:-1:-1;;;614:45:0;;1133:2:1;614:45:0;;;1115:21:1;1172:2;1152:18;;;1145:30;1211:26;1191:18;;;1184:54;1255:18;;614:45:0;;;;;;;;;678:14;;;704:1;678:14;;;:9;:14;;;;;;-1:-1:-1;;;;;678:14:0;:28;670:72;;;;-1:-1:-1;;;670:72:0;;1486:2:1;670:72:0;;;1468:21:1;1525:2;1505:18;;;1498:30;1564:33;1544:18;;;1537:61;1615:18;;670:72:0;1458:181:1;670:72:0;775:5;;-1:-1:-1;;;;;775:5:0;761:10;:19;753:49;;;;-1:-1:-1;;;753:49:0;;1846:2:1;753:49:0;;;1828:21:1;1885:2;1865:18;;;1858:30;-1:-1:-1;;;1904:18:1;;;1897:47;1961:18;;753:49:0;1818:167:1;753:49:0;813:14;;;;;;;;;:9;:14;;;;;:19;;-1:-1:-1;;;;;;813:19:0;-1:-1:-1;;;;;813:19:0;;;;;;;;;537:303::o;14:156:1:-;80:20;;140:4;129:16;;119:27;;109:2;;160:1;157;150:12;109:2;61:109;;;:::o;175:182::-;232:6;285:2;273:9;264:7;260:23;256:32;253:2;;;301:1;298;291:12;253:2;324:27;341:9;324:27;:::i;:::-;314:37;243:114;-1:-1:-1;;;243:114:1:o;362:356::-;428:6;436;489:2;477:9;468:7;464:23;460:32;457:2;;;505:1;502;495:12;457:2;528:27;545:9;528:27;:::i;:::-;518:37;-1:-1:-1;605:2:1;590:18;;577:32;-1:-1:-1;;;;;638:31:1;;628:42;;618:2;;684:1;681;674:12;618:2;707:5;697:15;;;447:271;;;;;:::o

Swarm Source

ipfs://adc5e6f7600e9eb9801ee5d09d61ab440e7352b921703e859ec1895d31b694ca

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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