Description:
Multi-signature wallet contract requiring multiple confirmations for transaction execution.
Blockchain: Ethereum
Source Code: View Code On The Blockchain
Solidity Source Code:
{{
"language": "Solidity",
"sources": {
"src/RSC_ConfigRegistry.sol": {
"content": "// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
import {Ownable} from "./utils/Ownable.sol";
/// @title RSC_ConfigRegistry
/// @notice Central parameter store for reactive contracts (timeouts, fees, thresholds)
contract RSC_ConfigRegistry is Ownable {
mapping(bytes32 => uint256) public uintParams;
mapping(bytes32 => bool) public boolParams;
mapping(bytes32 => address) public addrParams;
event UintParamSet(bytes32 indexed key, uint256 value);
event BoolParamSet(bytes32 indexed key, bool value);
event AddrParamSet(bytes32 indexed key, address value);
function setUint(bytes32 key, uint256 value) external onlyOwner {
uintParams[key] = value;
emit UintParamSet(key, value);
}
function setBool(bytes32 key, bool value) external onlyOwner {
boolParams[key] = value;
emit BoolParamSet(key, value);
}
function setAddr(bytes32 key, address value) external onlyOwner {
addrParams[key] = value;
emit AddrParamSet(key, value);
}
}
"
},
"src/utils/Ownable.sol": {
"content": "// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
/// @title Minimal Ownable utility
abstract contract Ownable {
error NotOwner();
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
owner = msg.sender;
emit OwnershipTransferred(address(0), msg.sender);
}
modifier onlyOwner() {
if (msg.sender != owner) revert NotOwner();
_;
}
function transferOwnership(address newOwner) external onlyOwner {
require(newOwner != address(0), "Owner=zero");
emit OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
}
"
}
},
"settings": {
"remappings": [
"forge-std/=lib/forge-std/src/",
"reactive-lib/=lib/reactive-lib/src/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "cancun",
"viaIR": true
}
}}
Submitted on: 2025-09-27 11:50:46
Comments
Log in to comment.
No comments yet.