Verified contractExactAGPL-3.0-or-later
Nil
Address0x199a8d49a0a3febe484fb516e9aeb260236edeff
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.15
- Same code
Only this contract
Details
- Compiler
- solc 0.8.15+commit.e14f2714
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- london
- License
- AGPL-3.0-or-later
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 15,247,795
- Creation transaction
- 0xb9fba93ba5…a0b1c251c2
src/nil.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
/// nil.sol -- Counter reset module
// Copyright (C) 2022 Horsefacts <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
pragma solidity ^0.8.15;
interface SumLike {
function zero(address) external;
}
contract Nil {
// --- Data ---
SumLike immutable public sum;
// --- Init ---
constructor(address sum_) {
sum = SumLike(sum_);
}
// --- Counter Reset ---
function nil() external {
sum.zero(msg.sender);
}
}
Compiler settingsShow
{
"metadata": {
"bytecodeHash": "ipfs"
},
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
},
"evmVersion": "london",
"remappings": [
":ds-auth/=lib/ds-auth/src/",
":ds-chief/=lib/ds-chief/src/",
":ds-math/=lib/ds-token/lib/ds-math/src/",
":ds-note/=lib/ds-note/src/",
":ds-pause/=lib/ds-pause/src/",
":ds-roles/=lib/ds-chief/lib/ds-roles/src/",
":ds-test/=lib/ds-test/src/",
":ds-thing/=lib/ds-chief/lib/ds-thing/src/",
":ds-token/=lib/ds-token/src/",
":forge-std/=lib/forge-std/src/",
":script/=script/",
":src/=src/",
":test/=test/"
]
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.