Skip to content
Verified contractPartial

FlightDelayController

Address0x91eae0f4e0900a77ee24606567f6f32e8afa3c80
Balance

0.14912 ETH

 

Transactions

16

 

Compiler

solc 0.4.18

 

Same code

1 more contract

 

Details

Compiler
solc 0.4.18+commit.9cf6e910
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
5,578,895
Creation transaction
0xe0d0a747a1…ce0c6815c7

Read6

  • contractIds(uint256) → (bytes32)
  • PATCH_VERSION() → (uint256)
  • owner() → (address)
  • MINOR_VERSION() → (uint256)
  • contracts(bytes32) → (address,bool,bool)
  • MAJOR_VERSION() → (uint256)

Write8

  • deregister(bytes32) → (bool)
  • setOneContract(uint256)
  • destructOne(bytes32)
  • registerContract(address,bytes32,bool) → (bool)
  • destructAll()
  • setAllContracts()
  • getContract(bytes32) → (address)
  • transferOwnership(address)

Events13

  • LogPolicyApplied(uint256,address,bytes32,uint256)
  • LogPolicyAccepted(uint256,uint256,uint256,uint256,uint256,uint256,uint256)
  • LogPolicyPaidOut(uint256,uint256)
  • LogPolicyExpired(uint256)
  • LogPolicyDeclined(uint256,bytes32)
  • LogPolicyManualPayout(uint256,bytes32)
  • LogSendFunds(address,uint8,uint256)
  • LogReceiveFunds(address,uint8,uint256)
  • LogSendFail(uint256,bytes32)
  • LogOraclizeCall(uint256,bytes32,string,uint256)
  • LogOraclizeCallback(uint256,bytes32,string,bytes)
  • LogSetState(uint256,uint8,uint256,bytes32)
  • LogExternal(uint256,address,bytes32)

ABI as JSON

[
  {
    "name": "deregister",
    "type": "function",
    "inputs": [
      {
        "name": "_id",
        "type": "bytes32"
      }
    ],
    "outputs": [
      {
        "name": "_result",
        "type": "bool"
      }
    ],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "contractIds",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bytes32"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "setOneContract",
    "type": "function",
    "inputs": [
      {
        "name": "i",
        "type": "uint256"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "PATCH_VERSION",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "destructOne",
    "type": "function",
    "inputs": [
      {
        "name": "_id",
        "type": "bytes32"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "owner",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "registerContract",
    "type": "function",
    "inputs": [
      {
        "name": "_addr",
        "type": "address"
      },
      {
        "name": "_id",
        "type": "bytes32"
      },
      {
        "name": "_isControlled",
        "type": "bool"
      }
    ],
    "outputs": [
      {
        "name": "_result",
        "type": "bool"
      }
    ],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "MINOR_VERSION",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "destructAll",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "setAllContracts",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "getContract",
    "type": "function",
    "inputs": [
      {
        "name": "_id",
        "type": "bytes32"
      }
    ],
    "outputs": [
      {
        "name": "_addr",
        "type": "address"
      }
    ],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "contracts",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "bytes32"
      }
    ],
    "outputs": [
      {
        "name": "addr",
        "type": "address"
      },
      {
        "name": "isControlled",
        "type": "bool"
      },
      {
        "name": "isInitialized",
        "type": "bool"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "transferOwnership",
    "type": "function",
    "inputs": [
      {
        "name": "_newOwner",
        "type": "address"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "MAJOR_VERSION",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "type": "constructor",
    "inputs": [],
    "payable": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "LogPolicyApplied",
    "type": "event",
    "inputs": [
      {
        "name": "_policyId",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "_customer",
        "type": "address",
        "indexed": false
      },
      {
        "name": "strCarrierFlightNumber",
        "type": "bytes32",
        "indexed": false
      },
      {
        "name": "ethPremium",
        "type": "uint256",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "LogPolicyAccepted",
    "type": "event",
    "inputs": [
      {
        "name": "_policyId",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "_statistics0",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "_statistics1",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "_statistics2",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "_statistics3",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "_statistics4",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "_statistics5",
        "type": "uint256",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "LogPolicyPaidOut",
    "type": "event",
    "inputs": [
      {
        "name": "_policyId",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "ethAmount",
        "type": "uint256",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "LogPolicyExpired",
    "type": "event",
    "inputs": [
      {
        "name": "_policyId",
        "type": "uint256",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "LogPolicyDeclined",
    "type": "event",
    "inputs": [
      {
        "name": "_policyId",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "strReason",
        "type": "bytes32",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "LogPolicyManualPayout",
    "type": "event",
    "inputs": [
      {
        "name": "_policyId",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "strReason",
        "type": "bytes32",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "LogSendFunds",
    "type": "event",
    "inputs": [
      {
        "name": "_recipient",
        "type": "address",
        "indexed": false
      },
      {
        "name": "_from",
        "type": "uint8",
        "indexed": false
      },
      {
        "name": "ethAmount",
        "type": "uint256",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "LogReceiveFunds",
    "type": "event",
    "inputs": [
      {
        "name": "_sender",
        "type": "address",
        "indexed": false
      },
      {
        "name": "_to",
        "type": "uint8",
        "indexed": false
      },
      {
        "name": "ethAmount",
        "type": "uint256",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "LogSendFail",
    "type": "event",
    "inputs": [
      {
        "name": "_policyId",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "strReason",
        "type": "bytes32",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "LogOraclizeCall",
    "type": "event",
    "inputs": [
      {
        "name": "_policyId",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "hexQueryId",
        "type": "bytes32",
        "indexed": false
      },
      {
        "name": "_oraclizeUrl",
        "type": "string",
        "indexed": false
      },
      {
        "name": "_oraclizeTime",
        "type": "uint256",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "LogOraclizeCallback",
    "type": "event",
    "inputs": [
      {
        "name": "_policyId",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "hexQueryId",
        "type": "bytes32",
        "indexed": false
      },
      {
        "name": "_result",
        "type": "string",
        "indexed": false
      },
      {
        "name": "hexProof",
        "type": "bytes",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "LogSetState",
    "type": "event",
    "inputs": [
      {
        "name": "_policyId",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "_policyState",
        "type": "uint8",
        "indexed": false
      },
      {
        "name": "_stateTime",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "_stateMessage",
        "type": "bytes32",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "LogExternal",
    "type": "event",
    "inputs": [
      {
        "name": "_policyId",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "_address",
        "type": "address",
        "indexed": false
      },
      {
        "name": "_externalId",
        "type": "bytes32",
        "indexed": false
      }
    ],
    "anonymous": false
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.