Verified contractPartialUNLICENSED
ThirmProtocol
Address0x9b4790d0cd13d3fafa173ac0f430d832fdf0144c
- Balance
0 ETH
- Transactions
2
- Compiler
solc 0.7.1
- Same code
Only this contract
Details
- Compiler
- solc 0.7.1+commit.f4a555be
- Language
- solidity
- Optimization
- No
- License
- UNLICENSED
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 10,863,674
- Creation transaction
- 0xf264e7724f…fa6b2aae2f
ThirmProtocol.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.0;
contract ThirmProtocol {
address payable owner;
uint256 MAX_LENGTH = 999;
mapping(address => mapping(string => string)) addressStore;
mapping(string => uint256) tTokenStore;
constructor() {
owner = msg.sender;
}
function getTToken(string memory _token) public view returns ( uint256 ) {
return tTokenStore[_token];
}
function setTToken(string memory _tkn,uint256 _value) public isadmin() {
tTokenStore[_tkn] = _value;
}
function setAddress(string memory _key, string memory _value) public {
require(bytes(_value).length <= MAX_LENGTH);
addressStore[msg.sender][_key] = _value;
}
function getAddress(address _acct, string memory _key)
public
view
returns (string memory)
{
return addressStore[_acct][_key];
}
function delme() public isadmin(){
selfdestruct(owner);
}
modifier isadmin() {
require( msg.sender == owner, "Not authorized.");
_;
}
}Compiler settingsShow
{
"optimizer": {
"runs": 0,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.