More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 101 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Get All Coas | 64359704 | 17 days ago | IN | 0 POL | 0.07320119 | ||||
Add Coa Hash | 60194009 | 121 days ago | IN | 0 POL | 0.00278813 | ||||
Add Coa Hash | 57688516 | 184 days ago | IN | 0 POL | 0.00291165 | ||||
Add Coa Hash | 57688508 | 184 days ago | IN | 0 POL | 0.00291165 | ||||
Add Coa Hash | 57649187 | 185 days ago | IN | 0 POL | 0.00291165 | ||||
Add Coa Hash | 56957735 | 203 days ago | IN | 0 POL | 0.00291165 | ||||
Add Coa Hash | 56957726 | 203 days ago | IN | 0 POL | 0.00291165 | ||||
Add Coa Hash | 56572420 | 213 days ago | IN | 0 POL | 0.00291165 | ||||
Add Coa Hash | 56420454 | 217 days ago | IN | 0 POL | 0.01356136 | ||||
Add Coa Hash | 55433302 | 243 days ago | IN | 0 POL | 0.01489987 | ||||
Add Coa Hash | 55374401 | 245 days ago | IN | 0 POL | 0.00982444 | ||||
Add Coa Hash | 55374395 | 245 days ago | IN | 0 POL | 0.01017104 | ||||
Add Coa Hash | 55374387 | 245 days ago | IN | 0 POL | 0.01135197 | ||||
Add Coa Hash | 55321594 | 246 days ago | IN | 0 POL | 0.01513215 | ||||
Add Coa Hash | 55266328 | 248 days ago | IN | 0 POL | 0.00856512 | ||||
Add Coa Hash | 55044730 | 254 days ago | IN | 0 POL | 0.00535341 | ||||
Add Coa Hash | 55044332 | 254 days ago | IN | 0 POL | 0.00322411 | ||||
Add Coa Hash | 54996601 | 255 days ago | IN | 0 POL | 0.00385432 | ||||
Add Coa Hash | 54649202 | 264 days ago | IN | 0 POL | 0.01644291 | ||||
Add Coa Hash | 54649193 | 264 days ago | IN | 0 POL | 0.01664771 | ||||
Add Coa Hash | 54649184 | 264 days ago | IN | 0 POL | 0.01753712 | ||||
Add Coa Hash | 54649174 | 264 days ago | IN | 0 POL | 0.0197126 | ||||
Add Coa Hash | 54649165 | 264 days ago | IN | 0 POL | 0.01979795 | ||||
Add Coa Hash | 54609002 | 265 days ago | IN | 0 POL | 0.02521252 | ||||
Add Coa Hash | 54608993 | 265 days ago | IN | 0 POL | 0.02536863 |
Loading...
Loading
Contract Name:
SMCOASC
Compiler Version
v0.8.21+commit.d9974bed
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: SM pragma solidity ^0.8.21; import "Ownable.sol"; contract SMCOASC is Ownable { string[] _coas; function addCoaHash(string memory hash) public onlyOwner { _coas.push(hash); } function getCoa(string calldata hash) public view returns(bool){ for(uint index = 0; index < _coas.length; index++){ if(keccak256(abi.encodePacked(_coas[index])) == keccak256(abi.encodePacked(hash))) return true; } return false; } function deleteCoa(string memory hash) public onlyOwner { for(uint index = 0; index < _coas.length; index++){ if(keccak256(abi.encodePacked(_coas[index])) == keccak256(abi.encodePacked(hash))) delete _coas[index]; } } function getAllCoas() public onlyOwner view returns(string[] memory){ return _coas; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "SMCOASC.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"string","name":"hash","type":"string"}],"name":"addCoaHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"hash","type":"string"}],"name":"deleteCoa","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllCoas","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"hash","type":"string"}],"name":"getCoa","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61099a8061007e6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100b25780639b46684f146100d2578063ecee4470146100f5578063f2fde38b1461010a57600080fd5b80631a025d78146100825780632fd3270414610097578063715018a6146100aa575b600080fd5b61009561009036600461054b565b61011d565b005b6100956100a536600461054b565b6101e0565b610095610223565b6000546040516001600160a01b0390911681526020015b60405180910390f35b6100e56100e03660046105fc565b610237565b60405190151581526020016100c9565b6100fd6102de565b6040516100c99190610692565b61009561011836600461070c565b6103bf565b61012561043d565b60005b6001548110156101dc5781604051602001610143919061073c565b604051602081830303815290604052805190602001206001828154811061016c5761016c610758565b9060005260206000200160405160200161018691906107a8565b60405160208183030381529060405280519060200120036101ca57600181815481106101b4576101b4610758565b9060005260206000200160006101ca91906104e7565b806101d48161081e565b915050610128565b5050565b6101e861043d565b6001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6016101dc8282610894565b61022b61043d565b6102356000610497565b565b6000805b6001548110156102d2578383604051602001610258929190610954565b604051602081830303815290604052805190602001206001828154811061028157610281610758565b9060005260206000200160405160200161029b91906107a8565b60405160208183030381529060405280519060200120036102c05760019150506102d8565b806102ca8161081e565b91505061023b565b50600090505b92915050565b60606102e861043d565b6001805480602002602001604051908101604052809291908181526020016000905b828210156103b65783829060005260206000200180546103299061076e565b80601f01602080910402602001604051908101604052809291908181526020018280546103559061076e565b80156103a25780601f10610377576101008083540402835291602001916103a2565b820191906000526020600020905b81548152906001019060200180831161038557829003601f168201915b50505050508152602001906001019061030a565b50505050905090565b6103c761043d565b6001600160a01b0381166104315760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61043a81610497565b50565b6000546001600160a01b031633146102355760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610428565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5080546104f39061076e565b6000825580601f10610503575050565b601f01602090049060005260206000209081019061043a91905b80821115610531576000815560010161051d565b5090565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561055d57600080fd5b813567ffffffffffffffff8082111561057557600080fd5b818401915084601f83011261058957600080fd5b81358181111561059b5761059b610535565b604051601f8201601f19908116603f011681019083821181831017156105c3576105c3610535565b816040528281528760208487010111156105dc57600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000806020838503121561060f57600080fd5b823567ffffffffffffffff8082111561062757600080fd5b818501915085601f83011261063b57600080fd5b81358181111561064a57600080fd5b86602082850101111561065c57600080fd5b60209290920196919550909350505050565b60005b83811015610689578181015183820152602001610671565b50506000910152565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156106ff57878503603f19018452815180518087526106e0818989018a850161066e565b601f01601f1916959095018601945092850192908501906001016106b9565b5092979650505050505050565b60006020828403121561071e57600080fd5b81356001600160a01b038116811461073557600080fd5b9392505050565b6000825161074e81846020870161066e565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061078257607f821691505b6020821081036107a257634e487b7160e01b600052602260045260246000fd5b50919050565b60008083546107b68161076e565b600182811680156107ce57600181146107e357610812565b60ff1984168752821515830287019450610812565b8760005260208060002060005b858110156108095781548a8201529084019082016107f0565b50505082870194505b50929695505050505050565b60006001820161083e57634e487b7160e01b600052601160045260246000fd5b5060010190565b601f82111561088f57600081815260208120601f850160051c8101602086101561086c5750805b601f850160051c820191505b8181101561088b57828155600101610878565b5050505b505050565b815167ffffffffffffffff8111156108ae576108ae610535565b6108c2816108bc845461076e565b84610845565b602080601f8311600181146108f757600084156108df5750858301515b600019600386901b1c1916600185901b17855561088b565b600085815260208120601f198616915b8281101561092657888601518255948401946001909101908401610907565b50858210156109445787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b818382376000910190815291905056fea264697066735822122085b0d7fc851e1df4f3dbdd058f4e4e352b857c797ac6a52c036128ff147895e864736f6c63430008150033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100b25780639b46684f146100d2578063ecee4470146100f5578063f2fde38b1461010a57600080fd5b80631a025d78146100825780632fd3270414610097578063715018a6146100aa575b600080fd5b61009561009036600461054b565b61011d565b005b6100956100a536600461054b565b6101e0565b610095610223565b6000546040516001600160a01b0390911681526020015b60405180910390f35b6100e56100e03660046105fc565b610237565b60405190151581526020016100c9565b6100fd6102de565b6040516100c99190610692565b61009561011836600461070c565b6103bf565b61012561043d565b60005b6001548110156101dc5781604051602001610143919061073c565b604051602081830303815290604052805190602001206001828154811061016c5761016c610758565b9060005260206000200160405160200161018691906107a8565b60405160208183030381529060405280519060200120036101ca57600181815481106101b4576101b4610758565b9060005260206000200160006101ca91906104e7565b806101d48161081e565b915050610128565b5050565b6101e861043d565b6001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6016101dc8282610894565b61022b61043d565b6102356000610497565b565b6000805b6001548110156102d2578383604051602001610258929190610954565b604051602081830303815290604052805190602001206001828154811061028157610281610758565b9060005260206000200160405160200161029b91906107a8565b60405160208183030381529060405280519060200120036102c05760019150506102d8565b806102ca8161081e565b91505061023b565b50600090505b92915050565b60606102e861043d565b6001805480602002602001604051908101604052809291908181526020016000905b828210156103b65783829060005260206000200180546103299061076e565b80601f01602080910402602001604051908101604052809291908181526020018280546103559061076e565b80156103a25780601f10610377576101008083540402835291602001916103a2565b820191906000526020600020905b81548152906001019060200180831161038557829003601f168201915b50505050508152602001906001019061030a565b50505050905090565b6103c761043d565b6001600160a01b0381166104315760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61043a81610497565b50565b6000546001600160a01b031633146102355760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610428565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5080546104f39061076e565b6000825580601f10610503575050565b601f01602090049060005260206000209081019061043a91905b80821115610531576000815560010161051d565b5090565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561055d57600080fd5b813567ffffffffffffffff8082111561057557600080fd5b818401915084601f83011261058957600080fd5b81358181111561059b5761059b610535565b604051601f8201601f19908116603f011681019083821181831017156105c3576105c3610535565b816040528281528760208487010111156105dc57600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000806020838503121561060f57600080fd5b823567ffffffffffffffff8082111561062757600080fd5b818501915085601f83011261063b57600080fd5b81358181111561064a57600080fd5b86602082850101111561065c57600080fd5b60209290920196919550909350505050565b60005b83811015610689578181015183820152602001610671565b50506000910152565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156106ff57878503603f19018452815180518087526106e0818989018a850161066e565b601f01601f1916959095018601945092850192908501906001016106b9565b5092979650505050505050565b60006020828403121561071e57600080fd5b81356001600160a01b038116811461073557600080fd5b9392505050565b6000825161074e81846020870161066e565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061078257607f821691505b6020821081036107a257634e487b7160e01b600052602260045260246000fd5b50919050565b60008083546107b68161076e565b600182811680156107ce57600181146107e357610812565b60ff1984168752821515830287019450610812565b8760005260208060002060005b858110156108095781548a8201529084019082016107f0565b50505082870194505b50929695505050505050565b60006001820161083e57634e487b7160e01b600052601160045260246000fd5b5060010190565b601f82111561088f57600081815260208120601f850160051c8101602086101561086c5750805b601f850160051c820191505b8181101561088b57828155600101610878565b5050505b505050565b815167ffffffffffffffff8111156108ae576108ae610535565b6108c2816108bc845461076e565b84610845565b602080601f8311600181146108f757600084156108df5750858301515b600019600386901b1c1916600185901b17855561088b565b600085815260208120601f198616915b8281101561092657888601518255948401946001909101908401610907565b50858210156109445787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b818382376000910190815291905056fea264697066735822122085b0d7fc851e1df4f3dbdd058f4e4e352b857c797ac6a52c036128ff147895e864736f6c63430008150033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 29 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.