Home Bridge contracts.json

{
  "HomeBridge": {
    "abi": [
      {
        "constant": true,
        "inputs": [],
        "name": "validatorsRequiredPercent",
        "outputs": [
          {
            "name": "",
            "type": "uint256"
          }
        ],
        "payable": false,
        "stateMutability": "view",
        "type": "function"
      },
      {
        "constant": true,
        "inputs": [],
        "name": "validatorProxy",
        "outputs": [
          {
            "name": "",
            "type": "address"
          }
        ],
        "payable": false,
        "stateMutability": "view",
        "type": "function"
      },
      {
        "constant": true,
        "inputs": [
          {
            "name": "transferHash",
            "type": "bytes32"
          },
          {
            "name": "transactionHash",
            "type": "bytes32"
          },
          {
            "name": "amount",
            "type": "uint256"
          },
          {
            "name": "recipient",
            "type": "address"
          }
        ],
        "name": "reconfirmCompletesTransfer",
        "outputs": [
          {
            "name": "",
            "type": "bool"
          }
        ],
        "payable": false,
        "stateMutability": "view",
        "type": "function"
      },
      {
        "constant": true,
        "inputs": [
          {
            "name": "",
            "type": "bytes32"
          }
        ],
        "name": "transferState",
        "outputs": [
          {
            "name": "isCompleted",
            "type": "bool"
          }
        ],
        "payable": false,
        "stateMutability": "view",
        "type": "function"
      },
      {
        "constant": false,
        "inputs": [],
        "name": "fund",
        "outputs": [],
        "payable": true,
        "stateMutability": "payable",
        "type": "function"
      },
      {
        "constant": false,
        "inputs": [
          {
            "name": "transferHash",
            "type": "bytes32"
          },
          {
            "name": "transactionHash",
            "type": "bytes32"
          },
          {
            "name": "amount",
            "type": "uint256"
          },
          {
            "name": "recipient",
            "type": "address"
          }
        ],
        "name": "confirmTransfer",
        "outputs": [],
        "payable": false,
        "stateMutability": "nonpayable",
        "type": "function"
      },
      {
        "inputs": [
          {
            "name": "_proxy",
            "type": "address"
          },
          {
            "name": "_validatorsRequiredPercent",
            "type": "uint256"
          }
        ],
        "payable": false,
        "stateMutability": "nonpayable",
        "type": "constructor"
      },
      {
        "anonymous": false,
        "inputs": [
          {
            "indexed": false,
            "name": "transferHash",
            "type": "bytes32"
          },
          {
            "indexed": false,
            "name": "transactionHash",
            "type": "bytes32"
          },
          {
            "indexed": false,
            "name": "amount",
            "type": "uint256"
          },
          {
            "indexed": false,
            "name": "recipient",
            "type": "address"
          },
          {
            "indexed": true,
            "name": "validator",
            "type": "address"
          }
        ],
        "name": "Confirmation",
        "type": "event"
      },
      {
        "anonymous": false,
        "inputs": [
          {
            "indexed": false,
            "name": "transferHash",
            "type": "bytes32"
          },
          {
            "indexed": false,
            "name": "transactionHash",
            "type": "bytes32"
          },
          {
            "indexed": false,
            "name": "amount",
            "type": "uint256"
          },
          {
            "indexed": false,
            "name": "recipient",
            "type": "address"
          },
          {
            "indexed": false,
            "name": "coinTransferSuccessful",
            "type": "bool"
          }
        ],
        "name": "TransferCompleted",
        "type": "event"
      }
    ],
    "devdoc": {
      "methods": {}
    },
    "bytecode": "0x608060405234801561001057600080fd5b50604051604080610c6e8339810180604052604081101561003057600080fd5b5080516020909101516001600160a01b038216610098576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180610c4b6023913960400191505060405180910390fd5b60648111156100f2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526034815260200180610c176034913960400191505060405180910390fd5b600180546001600160a01b0319166001600160a01b039390931692909217909155600255610af2806101256000396000f3fe6080604052600436106100655760003560e01c8063397bc64111610043578063397bc6411461011b578063b60d428814610145578063f176cde71461014f57610065565b806305dab2881461006a5780630b1ec76014610091578063236459c7146100c2575b600080fd5b34801561007657600080fd5b5061007f610194565b60408051918252519081900360200190f35b34801561009d57600080fd5b506100a661019a565b604080516001600160a01b039092168252519081900360200190f35b3480156100ce57600080fd5b50610107600480360360808110156100e557600080fd5b50803590602081013590604081013590606001356001600160a01b03166101a9565b604080519115158252519081900360200190f35b34801561012757600080fd5b506101076004803603602081101561013e57600080fd5b50356103d7565b61014d6103ef565b005b34801561015b57600080fd5b5061014d6004803603608081101561017257600080fd5b50803590602081013590604081013590606001356001600160a01b03166103f1565b60025481565b6001546001600160a01b031681565b60006001600160a01b0382166101f357604051600160e51b62461bcd028152600401808060200182810382526027815260200180610a7a6027913960400191505060405180910390fd5b6000831161024b5760408051600160e51b62461bcd02815260206004820152601760248201527f616d6f756e74206d757374206e6f74206265207a65726f000000000000000000604482015290519081900360640190fd5b60408051602080820188905281830187905260608083018790526001600160a01b038616901b608083015282516074818403018152609490920183528151918101919091206000818152918290529190206002015460ff16156102f85760408051600160e51b62461bcd02815260206004820152601a60248201527f7472616e7366657220616c726561647920636f6d706c65746564000000000000604482015290519081900360640190fd5b600081815260208190526040812060010190805b82548110156103c15760015483546001600160a01b039091169063facd743b9085908490811061033857fe5b600091825260209182902001546040805163ffffffff851660e01b81526001600160a01b0390921660048301525160248083019392829003018186803b15801561038157600080fd5b505afa158015610395573d6000803e3d6000fd5b505050506040513d60208110156103ab57600080fd5b5051156103b9576001820191505b60010161030c565b506103ca610732565b1115979650505050505050565b60006020819052908152604090206002015460ff1681565b565b60408051602080820187905281830186905260608083018690526001600160a01b038516901b608083015282516074818403018152609490920183528151918101919091206000818152918290529190206002015460ff161561049e5760408051600160e51b62461bcd02815260206004820152601a60248201527f7472616e7366657220616c726561647920636f6d706c65746564000000000000604482015290519081900360640190fd5b600154604080517ffacd743b00000000000000000000000000000000000000000000000000000000815233600482015290516001600160a01b039092169163facd743b91602480820192602092909190829003018186803b15801561050257600080fd5b505afa158015610516573d6000803e3d6000fd5b505050506040513d602081101561052c57600080fd5b505161056c57604051600160e51b62461bcd028152600401808060200182810382526026815260200180610aa16026913960400191505060405180910390fd5b6001600160a01b0382166105b457604051600160e51b62461bcd028152600401808060200182810382526027815260200180610a7a6027913960400191505060405180910390fd5b6000831161060c5760408051600160e51b62461bcd02815260206004820152601760248201527f616d6f756e74206d757374206e6f74206265207a65726f000000000000000000604482015290519081900360640190fd5b61061681336107c5565b1561066e5760408051868152602081018690528082018590526001600160a01b0384166060820152905133917fdee96a12459a8c17d4cf9571d9ab18de19fa1055adff514e2d25595382d218df919081900360800190a25b61067781610863565b1561072b57600081815260208190526040812060028101805460ff191660019081179091556106a892910190610a1a565b6040516000906001600160a01b0384169085156108fc0290869084818181858888f1604080518c8152602081018c90528082018b90526001600160a01b038a166060820152821515608082015290519196507f546c8621785b0cc9f951c75b68621fbdfce93ba6df3943b1271813c3598852d1955081900360a0019350915050a1505b5050505050565b60006064600254600160009054906101000a90046001600160a01b03166001600160a01b031663d6832ea96040518163ffffffff1660e01b815260040160206040518083038186803b15801561078757600080fd5b505afa15801561079b573d6000803e3d6000fd5b505050506040513d60208110156107b157600080fd5b505102606301816107be57fe5b0490505b90565b6000828152602081815260408083206001600160a01b038516845290915281205460ff16156107f65750600061085d565b506000828152602081815260408083206001600160a01b038516808552818452918420805460ff191660019081179091558484529081018054808301825590855292909320909101805473ffffffffffffffffffffffffffffffffffffffff191690911790555b92915050565b60008061086e610732565b6000848152602081905260409020600101549091508111156108945760009150506108c6565b61089d836108cb565b6000838152602081905260409020600101548111156108c05760009150506108c6565b60019150505b919050565b6000818152602081905260408120600101905b8154811015610a155760015482546001600160a01b039091169063facd743b9084908490811061090a57fe5b600091825260209182902001546040805163ffffffff851660e01b81526001600160a01b0390921660048301525160248083019392829003018186803b15801561095357600080fd5b505afa158015610967573d6000803e3d6000fd5b505050506040513d602081101561097d57600080fd5b50511561098c57600101610a10565b81548290600019810190811061099e57fe5b9060005260206000200160009054906101000a90046001600160a01b03168282815481106109c857fe5b6000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03929092169190911790558154610a0e836000198301610a3b565b505b6108de565b505050565b5080546000825590600052602060002090810190610a389190610a5b565b50565b815481835581811115610a1557600083815260209020610a159181019083015b6107c291905b80821115610a755760008155600101610a61565b509056fe726563697069656e74206d757374206e6f7420626520746865207a65726f2061646472657373216d7573742062652076616c696461746f7220746f20636f6e6669726d207472616e7366657273a165627a7a723058200a5a89dc6395b0e3c646cf2787a6152880cf17ff43d93f12cf7670b71c66b91300295f76616c696461746f7273526571756972656450657263656e74206d757374206265206265747765656e203020616e642031303070726f7879206d757374206e6f7420626520746865207a65726f206164647265737321",
    "deployedBytecode": "0x6080604052600436106100655760003560e01c8063397bc64111610043578063397bc6411461011b578063b60d428814610145578063f176cde71461014f57610065565b806305dab2881461006a5780630b1ec76014610091578063236459c7146100c2575b600080fd5b34801561007657600080fd5b5061007f610194565b60408051918252519081900360200190f35b34801561009d57600080fd5b506100a661019a565b604080516001600160a01b039092168252519081900360200190f35b3480156100ce57600080fd5b50610107600480360360808110156100e557600080fd5b50803590602081013590604081013590606001356001600160a01b03166101a9565b604080519115158252519081900360200190f35b34801561012757600080fd5b506101076004803603602081101561013e57600080fd5b50356103d7565b61014d6103ef565b005b34801561015b57600080fd5b5061014d6004803603608081101561017257600080fd5b50803590602081013590604081013590606001356001600160a01b03166103f1565b60025481565b6001546001600160a01b031681565b60006001600160a01b0382166101f357604051600160e51b62461bcd028152600401808060200182810382526027815260200180610a7a6027913960400191505060405180910390fd5b6000831161024b5760408051600160e51b62461bcd02815260206004820152601760248201527f616d6f756e74206d757374206e6f74206265207a65726f000000000000000000604482015290519081900360640190fd5b60408051602080820188905281830187905260608083018790526001600160a01b038616901b608083015282516074818403018152609490920183528151918101919091206000818152918290529190206002015460ff16156102f85760408051600160e51b62461bcd02815260206004820152601a60248201527f7472616e7366657220616c726561647920636f6d706c65746564000000000000604482015290519081900360640190fd5b600081815260208190526040812060010190805b82548110156103c15760015483546001600160a01b039091169063facd743b9085908490811061033857fe5b600091825260209182902001546040805163ffffffff851660e01b81526001600160a01b0390921660048301525160248083019392829003018186803b15801561038157600080fd5b505afa158015610395573d6000803e3d6000fd5b505050506040513d60208110156103ab57600080fd5b5051156103b9576001820191505b60010161030c565b506103ca610732565b1115979650505050505050565b60006020819052908152604090206002015460ff1681565b565b60408051602080820187905281830186905260608083018690526001600160a01b038516901b608083015282516074818403018152609490920183528151918101919091206000818152918290529190206002015460ff161561049e5760408051600160e51b62461bcd02815260206004820152601a60248201527f7472616e7366657220616c726561647920636f6d706c65746564000000000000604482015290519081900360640190fd5b600154604080517ffacd743b00000000000000000000000000000000000000000000000000000000815233600482015290516001600160a01b039092169163facd743b91602480820192602092909190829003018186803b15801561050257600080fd5b505afa158015610516573d6000803e3d6000fd5b505050506040513d602081101561052c57600080fd5b505161056c57604051600160e51b62461bcd028152600401808060200182810382526026815260200180610aa16026913960400191505060405180910390fd5b6001600160a01b0382166105b457604051600160e51b62461bcd028152600401808060200182810382526027815260200180610a7a6027913960400191505060405180910390fd5b6000831161060c5760408051600160e51b62461bcd02815260206004820152601760248201527f616d6f756e74206d757374206e6f74206265207a65726f000000000000000000604482015290519081900360640190fd5b61061681336107c5565b1561066e5760408051868152602081018690528082018590526001600160a01b0384166060820152905133917fdee96a12459a8c17d4cf9571d9ab18de19fa1055adff514e2d25595382d218df919081900360800190a25b61067781610863565b1561072b57600081815260208190526040812060028101805460ff191660019081179091556106a892910190610a1a565b6040516000906001600160a01b0384169085156108fc0290869084818181858888f1604080518c8152602081018c90528082018b90526001600160a01b038a166060820152821515608082015290519196507f546c8621785b0cc9f951c75b68621fbdfce93ba6df3943b1271813c3598852d1955081900360a0019350915050a1505b5050505050565b60006064600254600160009054906101000a90046001600160a01b03166001600160a01b031663d6832ea96040518163ffffffff1660e01b815260040160206040518083038186803b15801561078757600080fd5b505afa15801561079b573d6000803e3d6000fd5b505050506040513d60208110156107b157600080fd5b505102606301816107be57fe5b0490505b90565b6000828152602081815260408083206001600160a01b038516845290915281205460ff16156107f65750600061085d565b506000828152602081815260408083206001600160a01b038516808552818452918420805460ff191660019081179091558484529081018054808301825590855292909320909101805473ffffffffffffffffffffffffffffffffffffffff191690911790555b92915050565b60008061086e610732565b6000848152602081905260409020600101549091508111156108945760009150506108c6565b61089d836108cb565b6000838152602081905260409020600101548111156108c05760009150506108c6565b60019150505b919050565b6000818152602081905260408120600101905b8154811015610a155760015482546001600160a01b039091169063facd743b9084908490811061090a57fe5b600091825260209182902001546040805163ffffffff851660e01b81526001600160a01b0390921660048301525160248083019392829003018186803b15801561095357600080fd5b505afa158015610967573d6000803e3d6000fd5b505050506040513d602081101561097d57600080fd5b50511561098c57600101610a10565b81548290600019810190811061099e57fe5b9060005260206000200160009054906101000a90046001600160a01b03168282815481106109c857fe5b6000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03929092169190911790558154610a0e836000198301610a3b565b505b6108de565b505050565b5080546000825590600052602060002090810190610a389190610a5b565b50565b815481835581811115610a1557600083815260209020610a159181019083015b6107c291905b80821115610a755760008155600101610a61565b509056fe726563697069656e74206d757374206e6f7420626520746865207a65726f2061646472657373216d7573742062652076616c696461746f7220746f20636f6e6669726d207472616e7366657273a165627a7a723058200a5a89dc6395b0e3c646cf2787a6152880cf17ff43d93f12cf7670b71c66b9130029",
    "metadata": {
      "compiler": {
        "version": "0.5.8+commit.23d335f2"
      },
      "language": "Solidity",
      "output": {
        "abi": [
          {
            "constant": true,
            "inputs": [],
            "name": "validatorsRequiredPercent",
            "outputs": [
              {
                "name": "",
                "type": "uint256"
              }
            ],
            "payable": false,
            "stateMutability": "view",
            "type": "function"
          },
          {
            "constant": true,
            "inputs": [],
            "name": "validatorProxy",
            "outputs": [
              {
                "name": "",
                "type": "address"
              }
            ],
            "payable": false,
            "stateMutability": "view",
            "type": "function"
          },
          {
            "constant": true,
            "inputs": [
              {
                "name": "transferHash",
                "type": "bytes32"
              },
              {
                "name": "transactionHash",
                "type": "bytes32"
              },
              {
                "name": "amount",
                "type": "uint256"
              },
              {
                "name": "recipient",
                "type": "address"
              }
            ],
            "name": "reconfirmCompletesTransfer",
            "outputs": [
              {
                "name": "",
                "type": "bool"
              }
            ],
            "payable": false,
            "stateMutability": "view",
            "type": "function"
          },
          {
            "constant": true,
            "inputs": [
              {
                "name": "",
                "type": "bytes32"
              }
            ],
            "name": "transferState",
            "outputs": [
              {
                "name": "isCompleted",
                "type": "bool"
              }
            ],
            "payable": false,
            "stateMutability": "view",
            "type": "function"
          },
          {
            "constant": false,
            "inputs": [],
            "name": "fund",
            "outputs": [],
            "payable": true,
            "stateMutability": "payable",
            "type": "function"
          },
          {
            "constant": false,
            "inputs": [
              {
                "name": "transferHash",
                "type": "bytes32"
              },
              {
                "name": "transactionHash",
                "type": "bytes32"
              },
              {
                "name": "amount",
                "type": "uint256"
              },
              {
                "name": "recipient",
                "type": "address"
              }
            ],
            "name": "confirmTransfer",
            "outputs": [],
            "payable": false,
            "stateMutability": "nonpayable",
            "type": "function"
          },
          {
            "inputs": [
              {
                "name": "_proxy",
                "type": "address"
              },
              {
                "name": "_validatorsRequiredPercent",
                "type": "uint256"
              }
            ],
            "payable": false,
            "stateMutability": "nonpayable",
            "type": "constructor"
          },
          {
            "anonymous": false,
            "inputs": [
              {
                "indexed": false,
                "name": "transferHash",
                "type": "bytes32"
              },
              {
                "indexed": false,
                "name": "transactionHash",
                "type": "bytes32"
              },
              {
                "indexed": false,
                "name": "amount",
                "type": "uint256"
              },
              {
                "indexed": false,
                "name": "recipient",
                "type": "address"
              },
              {
                "indexed": true,
                "name": "validator",
                "type": "address"
              }
            ],
            "name": "Confirmation",
            "type": "event"
          },
          {
            "anonymous": false,
            "inputs": [
              {
                "indexed": false,
                "name": "transferHash",
                "type": "bytes32"
              },
              {
                "indexed": false,
                "name": "transactionHash",
                "type": "bytes32"
              },
              {
                "indexed": false,
                "name": "amount",
                "type": "uint256"
              },
              {
                "indexed": false,
                "name": "recipient",
                "type": "address"
              },
              {
                "indexed": false,
                "name": "coinTransferSuccessful",
                "type": "bool"
              }
            ],
            "name": "TransferCompleted",
            "type": "event"
          }
        ],
        "devdoc": {
          "methods": {}
        },
        "userdoc": {
          "methods": {}
        }
      },
      "settings": {
        "compilationTarget": {
          "../blockchain/contracts/contracts/bridge/HomeBridge.sol": "HomeBridge"
        },
        "evmVersion": "petersburg",
        "libraries": {},
        "optimizer": {
          "enabled": true,
          "runs": 500
        },
        "remappings": []
      },
      "sources": {
        "../blockchain/contracts/contracts/bridge/HomeBridge.sol": {
          "keccak256": "0x0a5f0c9314c96791bdafa1685e6e179af0edba0c0c6b97dc4f8ef9f27cb45b21",
          "urls": [
            "bzzr://754450b8939c82f090d06828148995e31d9491c510658cecb7121bcb699c9d9a"
          ]
        },
        "../blockchain/contracts/contracts/tlc-validator/ValidatorProxy.sol": {
          "keccak256": "0xeec906ae78272ff69eb23879fd3b2a3d2044e1cbc3bafa79f0c017b3d57edb77",
          "urls": [
            "bzzr://539f038353920d87103a59af4bca78786a19b7aea916b3af9e2c5e8f79d3d52c"
          ]
        }
      },
      "version": 1
    },
    "userdoc": {
      "methods": {}
    }
  }
}