Verified contractExactAGPL-3.0-only
TreasuryOperatingFunder
Address0xbfb0ecedb3bdfd80b1f926a99fc39b263ccaa2dd
- Balance
0 ETH
- Transactions
0
- Compiler
solc 0.8.28
- Same code
Only this contract
Details
- Compiler
- solc 0.8.28+commit.7893614a
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- cancun
- License
- AGPL-3.0-only
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,341,207
- Creation transaction
- 0x756a4c516e…ce25ba21cf
Read20
- ALL_MIGHT() → (address)
- ARBITRUM_INBOX() → (address)
- BASE_OPTIMISM_PORTAL() → (address)
- L2_GAS_LIMIT() → (uint256)
- MIN_INTERVAL() → (uint256)
- OPERATOR() → (address)
- SOURCE() → (address)
- STETH() → (address)
- STETH_POOL() → (address)
- configVersion() → (uint256)
- funded(uint8,uint256,uint256) → (uint256)
- futureGovernance() → (address)
- globalLimit() → (uint256)
- governance() → (address)
- guardian() → (address)
- lastFundedAt(uint8,uint256) → (uint256)
- paused() → (bool)
- routes(uint8,uint256) → (address,uint256,uint256,bool)
- sourceSpent(uint256) → (uint256)
- treasurySafe() → (address)
Write10
- acceptGovernance()
- configureRoute(uint8,uint256,tuple)
- fund(uint256,uint8,uint256,uint256,uint256,uint256)
- pause()
- recoverNative(uint256)
- recoverToken(address,uint256)
- setGlobalLimit(uint256)
- setGuardian(address)
- transferGovernance(address)
- unpause()
Events8
- FundingSubmitted(uint256,uint8,uint256,address,uint256,uint256,uint256,uint256)
- GlobalLimitSet(uint256,uint256)
- GovernanceChanged(address)
- GovernanceProposed(address)
- GuardianSet(address)
- Paused(address)
- RouteConfigured(uint8,uint256,tuple,uint256)
- Unpaused()
Errors10
- CONFIGURATION()
- GLOBAL_LIMIT()
- GOVERNANCE()
- LIMIT()
- NOT_ALL_MIGHT()
- NOT_GUARDIAN()
- PAUSED()
- PAYOUT()
- PERIOD()
- ZERO_ADDRESS()
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "operator_",
"type": "address",
"internalType": "address"
},
{
"name": "treasurySafe_",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"name": "CONFIGURATION",
"type": "error",
"inputs": []
},
{
"name": "GLOBAL_LIMIT",
"type": "error",
"inputs": []
},
{
"name": "GOVERNANCE",
"type": "error",
"inputs": []
},
{
"name": "LIMIT",
"type": "error",
"inputs": []
},
{
"name": "NOT_ALL_MIGHT",
"type": "error",
"inputs": []
},
{
"name": "NOT_GUARDIAN",
"type": "error",
"inputs": []
},
{
"name": "PAUSED",
"type": "error",
"inputs": []
},
{
"name": "PAYOUT",
"type": "error",
"inputs": []
},
{
"name": "PERIOD",
"type": "error",
"inputs": []
},
{
"name": "ZERO_ADDRESS",
"type": "error",
"inputs": []
},
{
"name": "FundingSubmitted",
"type": "event",
"inputs": [
{
"name": "week",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "purpose",
"type": "uint8",
"indexed": true,
"internalType": "uint8"
},
{
"name": "chain",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "recipient",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "bridgeFee",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "sourceDebitWei",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "messageNumber",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "GlobalLimitSet",
"type": "event",
"inputs": [
{
"name": "sourceDebitWei",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "configVersion",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "GovernanceChanged",
"type": "event",
"inputs": [
{
"name": "newGovernance",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "GovernanceProposed",
"type": "event",
"inputs": [
{
"name": "newGovernance",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "GuardianSet",
"type": "event",
"inputs": [
{
"name": "guardian",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "Paused",
"type": "event",
"inputs": [
{
"name": "by",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "RouteConfigured",
"type": "event",
"inputs": [
{
"name": "purpose",
"type": "uint8",
"indexed": true,
"internalType": "uint8"
},
{
"name": "chain",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "policy",
"type": "tuple",
"indexed": false,
"components": [
{
"name": "recipient",
"type": "address",
"internalType": "address"
},
{
"name": "maxAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxBridgeFee",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "enabled",
"type": "bool",
"internalType": "bool"
}
],
"internalType": "struct TreasuryOperatingFunder.Route"
},
{
"name": "configVersion",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Unpaused",
"type": "event",
"inputs": [],
"anonymous": false
},
{
"name": "ALL_MIGHT",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "ARBITRUM_INBOX",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "BASE_OPTIMISM_PORTAL",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "L2_GAS_LIMIT",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "MIN_INTERVAL",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "OPERATOR",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "SOURCE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "STETH",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "STETH_POOL",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "acceptGovernance",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "configVersion",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "configureRoute",
"type": "function",
"inputs": [
{
"name": "purpose",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "chain",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "policy",
"type": "tuple",
"components": [
{
"name": "recipient",
"type": "address",
"internalType": "address"
},
{
"name": "maxAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxBridgeFee",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "enabled",
"type": "bool",
"internalType": "bool"
}
],
"internalType": "struct TreasuryOperatingFunder.Route"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "fund",
"type": "function",
"inputs": [
{
"name": "week",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "purpose",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "chain",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "submission",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxFeePerGas",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "funded",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "futureGovernance",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "globalLimit",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "governance",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "guardian",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "lastFundedAt",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "pause",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "paused",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "recoverNative",
"type": "function",
"inputs": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "recoverToken",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "routes",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "recipient",
"type": "address",
"internalType": "address"
},
{
"name": "maxAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxBridgeFee",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "enabled",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "setGlobalLimit",
"type": "function",
"inputs": [
{
"name": "sourceDebitWei",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setGuardian",
"type": "function",
"inputs": [
{
"name": "_guardian",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "sourceSpent",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "transferGovernance",
"type": "function",
"inputs": [
{
"name": "_governance",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "treasurySafe",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "unpause",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "receive",
"stateMutability": "payable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.