Skip to content
Verified contractExactBlueOak-1.0.0

BrokerP1

Address0x63c61086418406ebb062c5c6df80f46c6d052d4c
Balance

0 ETH

 

Transactions

1

 

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
paris
License
BlueOak-1.0.0
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
23,700,257
Creation transaction
0xd81a65befd…5ced84177b

Read14

  • MAX_AUCTION_LENGTH() → (uint48)
  • MIN_AUCTION_LENGTH() → (uint48)
  • batchAuctionLength() → (uint48)
  • batchTradeDisabled() → (bool)
  • batchTradeImplementation() → (address)
  • dutchAuctionLength() → (uint48)
  • dutchTradeDisabled(address) → (bool)
  • dutchTradeImplementation() → (address)
  • gnosis_DEPRECATED() → (address)
  • main() → (address)
  • proxiableUUID() → (bytes32)
  • trustedFillerEnabled() → (bool)
  • trustedFillerRegistry() → (address)
  • version() → (string)

Write13

  • cacheComponents()
  • enableBatchTrade()
  • enableDutchTrade(address)
  • init(address,address,uint48,address,uint48)
  • openTrade(uint8,tuple,tuple) → (address)
  • reportViolation()
  • setBatchAuctionLength(uint48)
  • setBatchTradeImplementation(address)
  • setDutchAuctionLength(uint48)
  • setDutchTradeImplementation(address)
  • setTrustedFillerRegistry(address,bool)
  • upgradeTo(address)
  • upgradeToAndCall(address,bytes)

Events11

  • AdminChanged(address,address)
  • BatchAuctionLengthSet(uint48,uint48)
  • BatchTradeDisabledSet(bool,bool)
  • BatchTradeImplementationSet(address,address)
  • BeaconUpgraded(address)
  • DutchAuctionLengthSet(uint48,uint48)
  • DutchTradeDisabledSet(address,bool,bool)
  • DutchTradeImplementationSet(address,address)
  • Initialized(uint8)
  • TrustedFillerRegistrySet(address,bool)
  • Upgraded(address)

Errors1

  • UIntOutOfBounds()

ABI as JSON

[
  {
    "name": "UIntOutOfBounds",
    "type": "error",
    "inputs": []
  },
  {
    "name": "AdminChanged",
    "type": "event",
    "inputs": [
      {
        "name": "previousAdmin",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "newAdmin",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "BatchAuctionLengthSet",
    "type": "event",
    "inputs": [
      {
        "name": "oldVal",
        "type": "uint48",
        "indexed": false,
        "internalType": "uint48"
      },
      {
        "name": "newVal",
        "type": "uint48",
        "indexed": false,
        "internalType": "uint48"
      }
    ],
    "anonymous": false
  },
  {
    "name": "BatchTradeDisabledSet",
    "type": "event",
    "inputs": [
      {
        "name": "prevVal",
        "type": "bool",
        "indexed": false,
        "internalType": "bool"
      },
      {
        "name": "newVal",
        "type": "bool",
        "indexed": false,
        "internalType": "bool"
      }
    ],
    "anonymous": false
  },
  {
    "name": "BatchTradeImplementationSet",
    "type": "event",
    "inputs": [
      {
        "name": "oldVal",
        "type": "address",
        "indexed": false,
        "internalType": "contract ITrade"
      },
      {
        "name": "newVal",
        "type": "address",
        "indexed": false,
        "internalType": "contract ITrade"
      }
    ],
    "anonymous": false
  },
  {
    "name": "BeaconUpgraded",
    "type": "event",
    "inputs": [
      {
        "name": "beacon",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "DutchAuctionLengthSet",
    "type": "event",
    "inputs": [
      {
        "name": "oldVal",
        "type": "uint48",
        "indexed": false,
        "internalType": "uint48"
      },
      {
        "name": "newVal",
        "type": "uint48",
        "indexed": false,
        "internalType": "uint48"
      }
    ],
    "anonymous": false
  },
  {
    "name": "DutchTradeDisabledSet",
    "type": "event",
    "inputs": [
      {
        "name": "erc20",
        "type": "address",
        "indexed": true,
        "internalType": "contract IERC20Metadata"
      },
      {
        "name": "prevVal",
        "type": "bool",
        "indexed": false,
        "internalType": "bool"
      },
      {
        "name": "newVal",
        "type": "bool",
        "indexed": false,
        "internalType": "bool"
      }
    ],
    "anonymous": false
  },
  {
    "name": "DutchTradeImplementationSet",
    "type": "event",
    "inputs": [
      {
        "name": "oldVal",
        "type": "address",
        "indexed": false,
        "internalType": "contract ITrade"
      },
      {
        "name": "newVal",
        "type": "address",
        "indexed": false,
        "internalType": "contract ITrade"
      }
    ],
    "anonymous": false
  },
  {
    "name": "Initialized",
    "type": "event",
    "inputs": [
      {
        "name": "version",
        "type": "uint8",
        "indexed": false,
        "internalType": "uint8"
      }
    ],
    "anonymous": false
  },
  {
    "name": "TrustedFillerRegistrySet",
    "type": "event",
    "inputs": [
      {
        "name": "trustedFillerRegistry",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "isEnabled",
        "type": "bool",
        "indexed": false,
        "internalType": "bool"
      }
    ],
    "anonymous": false
  },
  {
    "name": "Upgraded",
    "type": "event",
    "inputs": [
      {
        "name": "implementation",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "MAX_AUCTION_LENGTH",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint48",
        "internalType": "uint48"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "MIN_AUCTION_LENGTH",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint48",
        "internalType": "uint48"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "batchAuctionLength",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint48",
        "internalType": "uint48"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "batchTradeDisabled",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "batchTradeImplementation",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract ITrade"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "cacheComponents",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "dutchAuctionLength",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint48",
        "internalType": "uint48"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "dutchTradeDisabled",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract IERC20Metadata"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "dutchTradeImplementation",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract ITrade"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "enableBatchTrade",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "enableDutchTrade",
    "type": "function",
    "inputs": [
      {
        "name": "erc20",
        "type": "address",
        "internalType": "contract IERC20Metadata"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "gnosis_DEPRECATED",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract IGnosis"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "init",
    "type": "function",
    "inputs": [
      {
        "name": "main_",
        "type": "address",
        "internalType": "contract IMain"
      },
      {
        "name": "batchTradeImplementation_",
        "type": "address",
        "internalType": "contract ITrade"
      },
      {
        "name": "batchAuctionLength_",
        "type": "uint48",
        "internalType": "uint48"
      },
      {
        "name": "dutchTradeImplementation_",
        "type": "address",
        "internalType": "contract ITrade"
      },
      {
        "name": "dutchAuctionLength_",
        "type": "uint48",
        "internalType": "uint48"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "main",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract IMain"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "openTrade",
    "type": "function",
    "inputs": [
      {
        "name": "kind",
        "type": "uint8",
        "internalType": "enum TradeKind"
      },
      {
        "name": "req",
        "type": "tuple",
        "components": [
          {
            "name": "sell",
            "type": "address",
            "internalType": "contract IAsset"
          },
          {
            "name": "buy",
            "type": "address",
            "internalType": "contract IAsset"
          },
          {
            "name": "sellAmount",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "minBuyAmount",
            "type": "uint256",
            "internalType": "uint256"
          }
        ],
        "internalType": "struct TradeRequest"
      },
      {
        "name": "prices",
        "type": "tuple",
        "components": [
          {
            "name": "sellLow",
            "type": "uint192",
            "internalType": "uint192"
          },
          {
            "name": "sellHigh",
            "type": "uint192",
            "internalType": "uint192"
          },
          {
            "name": "buyLow",
            "type": "uint192",
            "internalType": "uint192"
          },
          {
            "name": "buyHigh",
            "type": "uint192",
            "internalType": "uint192"
          }
        ],
        "internalType": "struct TradePrices"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract ITrade"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "proxiableUUID",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "reportViolation",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "setBatchAuctionLength",
    "type": "function",
    "inputs": [
      {
        "name": "newAuctionLength",
        "type": "uint48",
        "internalType": "uint48"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "setBatchTradeImplementation",
    "type": "function",
    "inputs": [
      {
        "name": "newTradeImplementation",
        "type": "address",
        "internalType": "contract ITrade"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "setDutchAuctionLength",
    "type": "function",
    "inputs": [
      {
        "name": "newAuctionLength",
        "type": "uint48",
        "internalType": "uint48"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "setDutchTradeImplementation",
    "type": "function",
    "inputs": [
      {
        "name": "newTradeImplementation",
        "type": "address",
        "internalType": "contract ITrade"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "setTrustedFillerRegistry",
    "type": "function",
    "inputs": [
      {
        "name": "_newFillerRegistry",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_enabled",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "trustedFillerEnabled",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "trustedFillerRegistry",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract ITrustedFillerRegistry"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "upgradeTo",
    "type": "function",
    "inputs": [
      {
        "name": "newImplementation",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "upgradeToAndCall",
    "type": "function",
    "inputs": [
      {
        "name": "newImplementation",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "data",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [],
    "stateMutability": "payable"
  },
  {
    "name": "version",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "string",
        "internalType": "string"
      }
    ],
    "stateMutability": "pure"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.