UNPKG

@omisego/omg-js-rootchain

Version:

Module to interact with the Ethereum RootChain

1,231 lines 339 kB
{ "contractName": "PaymentExitGame", "abi": [ { "constant": true, "inputs": [ { "internalType": "uint160[]", "name": "exitIds", "type": "uint160[]" } ], "name": "standardExits", "outputs": [ { "components": [ { "internalType": "bool", "name": "exitable", "type": "bool" }, { "internalType": "uint256", "name": "utxoPos", "type": "uint256" }, { "internalType": "bytes32", "name": "outputId", "type": "bytes32" }, { "internalType": "address payable", "name": "exitTarget", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "uint256", "name": "bondSize", "type": "uint256" } ], "internalType": "struct PaymentExitDataModel.StandardExit[]", "name": "", "type": "tuple[]" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint128", "name": "newBondSize", "type": "uint128" } ], "name": "updateStartStandardExitBondSize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "components": [ { "internalType": "bytes", "name": "inFlightTx", "type": "bytes" }, { "internalType": "bytes", "name": "inFlightTxInclusionProof", "type": "bytes" }, { "internalType": "uint256", "name": "outputUtxoPos", "type": "uint256" }, { "internalType": "bytes", "name": "challengingTx", "type": "bytes" }, { "internalType": "uint16", "name": "challengingTxInputIndex", "type": "uint16" }, { "internalType": "bytes", "name": "challengingTxWitness", "type": "bytes" }, { "internalType": "bytes32", "name": "senderData", "type": "bytes32" } ], "internalType": "struct PaymentInFlightExitRouterArgs.ChallengeOutputSpent", "name": "args", "type": "tuple" } ], "name": "challengeInFlightExitOutputSpent", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint128", "name": "newBondSize", "type": "uint128" } ], "name": "updatePiggybackBondSize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "bytes", "name": "inFlightTx", "type": "bytes" }, { "internalType": "uint256", "name": "inFlightTxPos", "type": "uint256" }, { "internalType": "bytes", "name": "inFlightTxInclusionProof", "type": "bytes" } ], "name": "respondToNonCanonicalChallenge", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "piggybackBondSize", "outputs": [ { "internalType": "uint128", "name": "", "type": "uint128" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "components": [ { "internalType": "bytes", "name": "inFlightTx", "type": "bytes" }, { "internalType": "bytes[]", "name": "inputTxs", "type": "bytes[]" }, { "internalType": "uint256[]", "name": "inputUtxosPos", "type": "uint256[]" }, { "internalType": "bytes[]", "name": "inputTxsInclusionProofs", "type": "bytes[]" }, { "internalType": "bytes[]", "name": "inFlightTxWitnesses", "type": "bytes[]" } ], "internalType": "struct PaymentInFlightExitRouterArgs.StartExitArgs", "name": "args", "type": "tuple" } ], "name": "startInFlightExit", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "components": [ { "internalType": "uint256", "name": "utxoPos", "type": "uint256" }, { "internalType": "bytes", "name": "rlpOutputTx", "type": "bytes" }, { "internalType": "bytes", "name": "outputTxInclusionProof", "type": "bytes" } ], "internalType": "struct PaymentStandardExitRouterArgs.StartStandardExitArgs", "name": "args", "type": "tuple" } ], "name": "startStandardExit", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [], "name": "startIFEBondSize", "outputs": [ { "internalType": "uint128", "name": "", "type": "uint128" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "INITIAL_PB_BOND_SIZE", "outputs": [ { "internalType": "uint128", "name": "", "type": "uint128" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "BOND_LOWER_BOUND_DIVISOR", "outputs": [ { "internalType": "uint16", "name": "", "type": "uint16" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "BOND_UPPER_BOUND_MULTIPLIER", "outputs": [ { "internalType": "uint16", "name": "", "type": "uint16" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "components": [ { "internalType": "bytes", "name": "inFlightTx", "type": "bytes" }, { "internalType": "uint16", "name": "outputIndex", "type": "uint16" } ], "internalType": "struct PaymentInFlightExitRouterArgs.PiggybackInFlightExitOnOutputArgs", "name": "args", "type": "tuple" } ], "name": "piggybackInFlightExitOnOutput", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint128", "name": "newBondSize", "type": "uint128" } ], "name": "updateStartIFEBondSize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint160", "name": "exitId", "type": "uint160" } ], "name": "deleteNonPiggybackedInFlightExit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "components": [ { "internalType": "bytes", "name": "inFlightTx", "type": "bytes" }, { "internalType": "uint16", "name": "inFlightTxInputIndex", "type": "uint16" }, { "internalType": "bytes", "name": "challengingTx", "type": "bytes" }, { "internalType": "uint16", "name": "challengingTxInputIndex", "type": "uint16" }, { "internalType": "bytes", "name": "challengingTxWitness", "type": "bytes" }, { "internalType": "bytes", "name": "inputTx", "type": "bytes" }, { "internalType": "uint256", "name": "inputUtxoPos", "type": "uint256" }, { "internalType": "bytes32", "name": "senderData", "type": "bytes32" } ], "internalType": "struct PaymentInFlightExitRouterArgs.ChallengeInputSpentArgs", "name": "args", "type": "tuple" } ], "name": "challengeInFlightExitInputSpent", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "INITIAL_BOND_SIZE", "outputs": [ { "internalType": "uint128", "name": "", "type": "uint128" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "INITIAL_IFE_BOND_SIZE", "outputs": [ { "internalType": "uint128", "name": "", "type": "uint128" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "uint160[]", "name": "exitIds", "type": "uint160[]" } ], "name": "inFlightExits", "outputs": [ { "components": [ { "internalType": "bool", "name": "isCanonical", "type": "bool" }, { "internalType": "uint64", "name": "exitStartTimestamp", "type": "uint64" }, { "internalType": "uint256", "name": "exitMap", "type": "uint256" }, { "internalType": "uint256", "name": "position", "type": "uint256" }, { "components": [ { "internalType": "bytes32", "name": "outputId", "type": "bytes32" }, { "internalType": "address payable", "name": "exitTarget", "type": "address" }, { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "uint256", "name": "piggybackBondSize", "type": "uint256" } ], "internalType": "struct PaymentExitDataModel.WithdrawData[4]", "name": "inputs", "type": "tuple[4]" }, { "components": [ { "internalType": "bytes32", "name": "outputId", "type": "bytes32" }, { "internalType": "address payable", "name": "exitTarget", "type": "address" }, { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "uint256", "name": "piggybackBondSize", "type": "uint256" } ], "internalType": "struct PaymentExitDataModel.WithdrawData[4]", "name": "outputs", "type": "tuple[4]" }, { "internalType": "address payable", "name": "bondOwner", "type": "address" }, { "internalType": "uint256", "name": "bondSize", "type": "uint256" }, { "internalType": "uint256", "name": "oldestCompetitorPosition", "type": "uint256" } ], "internalType": "struct PaymentExitDataModel.InFlightExit[]", "name": "", "type": "tuple[]" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "components": [ { "internalType": "uint160", "name": "exitId", "type": "uint160" }, { "internalType": "bytes", "name": "exitingTx", "type": "bytes" }, { "internalType": "bytes", "name": "challengeTx", "type": "bytes" }, { "internalType": "uint16", "name": "inputIndex", "type": "uint16" }, { "internalType": "bytes", "name": "witness", "type": "bytes" }, { "internalType": "bytes32", "name": "senderData", "type": "bytes32" } ], "internalType": "struct PaymentStandardExitRouterArgs.ChallengeStandardExitArgs", "name": "args", "type": "tuple" } ], "name": "challengeStandardExit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "components": [ { "internalType": "bytes", "name": "inFlightTx", "type": "bytes" }, { "internalType": "uint16", "name": "inputIndex", "type": "uint16" } ], "internalType": "struct PaymentInFlightExitRouterArgs.PiggybackInFlightExitOnInputArgs", "name": "args", "type": "tuple" } ], "name": "piggybackInFlightExitOnInput", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "components": [ { "internalType": "bytes", "name": "inputTx", "type": "bytes" }, { "internalType": "uint256", "name": "inputUtxoPos", "type": "uint256" }, { "internalType": "bytes", "name": "inFlightTx", "type": "bytes" }, { "internalType": "uint16", "name": "inFlightTxInputIndex", "type": "uint16" }, { "internalType": "bytes", "name": "competingTx", "type": "bytes" }, { "internalType": "uint16", "name": "competingTxInputIndex", "type": "uint16" }, { "internalType": "uint256", "name": "competingTxPos", "type": "uint256" }, { "internalType": "bytes", "name": "competingTxInclusionProof", "type": "bytes" }, { "internalType": "bytes", "name": "competingTxWitness", "type": "bytes" } ], "internalType": "struct PaymentInFlightExitRouterArgs.ChallengeCanonicityArgs", "name": "args", "type": "tuple" } ], "name": "challengeInFlightExitNotCanonical", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "startStandardExitBondSize", "outputs": [ { "internalType": "uint128", "name": "", "type": "uint128" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "contract PlasmaFramework", "name": "framework", "type": "address" }, { "internalType": "uint256", "name": "ethVaultId", "type": "uint256" }, { "internalType": "uint256", "name": "erc20VaultId", "type": "uint256" }, { "internalType": "contract SpendingConditionRegistry", "name": "spendingConditionRegistry", "type": "address" }, { "internalType": "contract IStateTransitionVerifier", "name": "stateTransitionVerifier", "type": "address" }, { "internalType": "uint256", "name": "supportTxType", "type": "uint256" }, { "internalType": "uint256", "name": "safeGasStipend", "type": "uint256" } ], "internalType": "struct PaymentExitGameArgs.Args", "name": "args", "type": "tuple" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint128", "name": "bondSize", "type": "uint128" } ], "name": "IFEBondUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint128", "name": "bondSize", "type": "uint128" } ], "name": "PiggybackBondUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "initiator", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "txHash", "type": "bytes32" } ], "name": "InFlightExitStarted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "exitTarget", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "txHash", "type": "bytes32" }, { "indexed": false, "internalType": "uint16", "name": "inputIndex", "type": "uint16" } ], "name": "InFlightExitInputPiggybacked", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint160", "name": "exitId", "type": "uint160" }, { "indexed": false, "internalType": "address", "name": "token", "type": "address" } ], "name": "InFlightExitOmitted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "receiver", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "InFlightBondReturnFailed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint160", "name": "exitId", "type": "uint160" }, { "indexed": false, "internalType": "uint16", "name": "outputIndex", "type": "uint16" } ], "name": "InFlightExitOutputWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint160", "name": "exitId", "type": "uint160" }, { "indexed": false, "internalType": "uint16", "name": "inputIndex", "type": "uint16" } ], "name": "InFlightExitInputWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "exitTarget", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "txHash", "type": "bytes32" }, { "indexed": false, "internalType": "uint16", "name": "outputIndex", "type": "uint16" } ], "name": "InFlightExitOutputPiggybacked", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "challenger", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "txHash", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "challengeTxPosition", "type": "uint256" } ], "name": "InFlightExitChallenged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "challenger", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "txHash", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "challengeTxPosition", "type": "uint256" } ], "name": "InFlightExitChallengeResponded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "challenger", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "txHash", "type": "bytes32" }, { "indexed": false, "internalType": "uint16", "name": "inputIndex", "type": "uint16" } ], "name": "InFlightExitInputBlocked", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "challenger", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "txHash", "type": "bytes32" }, { "indexed": false, "internalType": "uint16", "name": "outputIndex", "type": "uint16" } ], "name": "InFlightExitOutputBlocked", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint160", "name": "exitId", "type": "uint160" } ], "name": "InFlightExitDeleted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint128", "name": "bondSize", "type": "uint128" } ], "name": "StandardExitBondUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": false, "internalType": "uint160", "name": "exitId", "type": "uint160" } ], "name": "ExitStarted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "utxoPos", "type": "uint256" } ], "name": "ExitChallenged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint160", "name": "exitId", "type": "uint160" } ], "name": "ExitOmitted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint160", "name": "exitId", "type": "uint160" } ], "name": "ExitFinalized", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "receiver", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "BondReturnFailed", "type": "event" }, { "constant": false, "inputs": [ { "internalType": "uint160", "name": "exitId", "type": "uint160" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "address", "name": "token", "type": "address" } ], "name": "processExit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "bool", "name": "_isDeposit", "type": "bool" }, { "internalType": "bytes", "name": "_txBytes", "type": "bytes" }, { "internalType": "uint256", "name": "_utxoPos", "type": "uint256" } ], "name": "getStandardExitId", "outputs": [ { "internalType": "uint160", "name": "", "type": "uint160" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "bytes", "name": "_txBytes", "type": "bytes" } ], "name": "getInFlightExitId", "outputs": [ { "internalType": "uint160", "name": "", "type": "uint160" } ], "payable": false, "stateMutability": "pure", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.5.11+commit.c082d0b4\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[{\"internalType\":\"uint160[]\",\"name\":\"exitIds\",\"type\":\"uint160[]\"}],\"name\":\"standardExits\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"exitable\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"utxoPos\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"outputId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"exitTarget\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bondSize\",\"type\":\"uint256\"}],\"internalType\":\"struct PaymentExitDataModel.StandardExit[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"newBondSize\",\"type\":\"uint128\"}],\"name\":\"updateStartStandardExitBondSize\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"inFlightTx\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"inFlightTxInclusionProof\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"outputUtxoPos\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"challengingTx\",\"type\":\"bytes\"},{\"internalType\":\"uint16\",\"name\":\"challengingTxInputIndex\",\"type\":\"uint16\"},{\"internalType\":\"bytes\",\"name\":\"challengingTxWitness\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"senderData\",\"type\":\"bytes32\"}],\"internalType\":\"struct PaymentInFlightExitRouterArgs.ChallengeOutputSpent\",\"name\":\"args\",\"type\":\"tuple\"}],\"name\":\"challengeInFlightExitOutputSpent\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"newBondSize\",\"type\":\"uint128\"}],\"name\":\"updatePiggybackBondSize\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"inFlightTx\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"inFlightTxPos\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"inFlightTxInclusionProof\",\"type\":\"bytes\"}],\"name\":\"respondToNonCanonicalChallenge\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"piggybackBondSize\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"inFlightTx\",\"type\":\"bytes\"},{\"internalType\":\"bytes[]\",\"name\":\"inputTxs\",\"type\":\"bytes[]\"},{\"internalType\":\"uint256[]\",\"name\":\"inputUtxosPos\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes[]\",\"name\":\"inputTxsInclusionProofs\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes[]\",\"name\":\"inFlightTxWitnesses\",\"type\":\"bytes[]\"}],\"internalType\":\"struct PaymentInFlightExitRouterArgs.StartExitArgs\",\"name\":\"args\",\"type\":\"tuple\"}],\"name\":\"startInFlightExit\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"exitId\",\"type\":\"uint160\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"processExit\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"utxoPos\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"rlpOutputTx\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"outputTxInclusionProof\",\"type\":\"bytes\"}],\"internalType\":\"struct PaymentStandardExitRouterArgs.StartStandardExitArgs\",\"name\":\"args\",\"type\":\"tuple\"}],\"name\":\"startStandardExit\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"startIFEBondSize\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"INITIAL_PB_BOND_SIZE\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_txBytes\",\"type\":\"bytes\"}],\"name\":\"getInFlightExitId\",\"outputs\":[{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"BOND_LOWER_BOUND_DIVISOR\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"BOND_UPPER_BOUND_MULTIPLIER\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"inFlightTx\",\"type\":\"bytes\"},{\"internalType\":\"uint16\",\"name\":\"outputIndex\",\"type\":\"uint16\"}],\"internalType\":\"struct PaymentInFlightExitRouterArgs.PiggybackInFlightExitOnOutputArgs\",\"name\":\"args\",\"type\":\"tuple\"}],\"name\":\"piggybackInFlightExitOnOutput\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"newBondSize\",\"type\":\"uint128\"}],\"name\":\"updateStartIFEBondSize\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_isDeposit\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"_txBytes\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"_utxoPos\",\"type\":\"uint256\"}],\"name\":\"getStandardExitId\",\"outputs\":[{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"exitId\",\"type\":\"uint160\"}],\"name\":\"deleteNonPiggybackedInFlightExit\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"inFlightTx\",\"type\":\"bytes\"},{\"internalType\":\"uint16\",\"name\":\"inFlightTxInputIndex\",\"type\":\"uint16\"},{\"internalType\":\"bytes\",\"name\":\"challengingTx\",\"type\":\"bytes\"},{\"internalType\":\"uint16\",\"name\":\"challengingTxInputIndex\",\"type\":\"uint16\"},{\"internalType\":\"bytes\",\"name\":\"challengingTxWitness\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"inputTx\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"inputUtxoPos\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"senderData\",\"type\":\"bytes32\"}],\"internalType\":\"struct PaymentInFlightExitRouterArgs.ChallengeInputSpentArgs\",\"name\":\"args\",\"type\":\"tuple\"}],\"name\":\"challengeInFlightExitInputSpent\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"INITIAL_BOND_SIZE\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"INITIAL_IFE_BOND_SIZE\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint160[]\",\"name\":\"exitIds\",\"type\":\"uint160[]\"}],\"name\":\"inFlightExits\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"isCanonical\",\"type\":\"bool\"},{\"internalType\":\"uint64\",\"name\":\"exitStartTimestamp\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"exitMap\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"position\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"outputId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"exitTarget\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"piggybackBondSize\",\"type\":\"uint256\"}],\"internalType\":\"struct PaymentExitDataModel.WithdrawData[4]\",\"name\":\"inputs\",\"type\":\"tuple[4]\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"outputId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"exitTarget\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"piggybackBondSize\",\"type\":\"uint256\"}],\"internalType\":\"struct PaymentExitDataModel.WithdrawData[4]\",\"name\":\"outputs\",\"type\":\"tuple[4]\"},{\"internalType\":\"address payable\",\"name\":\"bondOwner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"bondSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"oldestCompetitorPosition\",\"type\":\"uint256\"}],\"internalType\":\"struct PaymentExitDataModel.InFlightExit[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint160\",\"name\":\"exitId\",\"type\":\"uint160\"},{\"internalType\":\"bytes\",\"name\":\"exitingTx\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"challengeTx\",\"type\":\"bytes\"},{\"internalType\":\"uint16\",\"name\":\"inputIndex\",\"type\":\"uint16\"},{\"internalType\":\"bytes\",\"name\":\"witness\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"senderData\",\"type\":\"bytes32\"}],\"internalType\":\"struct PaymentStandardExitRouterArgs.ChallengeStandardExitArgs\",\"name\":\"args\",\"type\":\"tuple\"}],\"name\":\"challengeStandardExit\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"inFlightTx\",\"type\":\"bytes\"},{\"internalType\":\"uint16\",\"name\":\"inputIndex\",\"type\":\"uint16\"}],\"internalType\":\"struct PaymentInFlightExitRouterArgs.PiggybackInFlightExitOnInputArgs\",\"name\":\"args\",\"type\":\"tuple\"}],\"name\":\"piggybackInFlightExitOnInput\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"inputTx\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"inputUtxoPos\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"inFlightTx\",\"type\":\"bytes\"},{\"internalType\":\"uint16\",\"name\":\"inFlightTxInputIndex\",\"type\":\"uint16\"},{\"internalType\":\"bytes\",\"name\":\"competingTx\",\"type\":\"bytes\"},{\"internalType\":\"uint16\",\"name\":\"competingTxInputIndex\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"competingTxPos\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"competingTxInclusionProof\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"competingTxWitness\",\"type\":\"bytes\"}],\"internalType\":\"struct PaymentInFlightExitRouterArgs.ChallengeCanonicityArgs\",\"name\":\"args\",\"type\":\"tuple\"}],\"name\":\"challengeInFlightExitNotCanonical\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"startStandardExitBondSize\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"contract PlasmaFramework\",\"name\":\"framework\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"ethVaultId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"erc20VaultId\",\"type\":\"uint256\"},{\"internalType\":\"contract SpendingConditionRegistry\",\"name\":\"spendingConditionRegistry\",\"type\":\"address\"},{\"internalType\":\"contract IStateTransitionVerifier\",\"name\":\"stateTransitionVerifier\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"supportTxType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"safeGasStipend\",\"type\":\"uint256\"}],\"internalType\":\"struct PaymentExitGameArgs.Args\",\"name\":\"args\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"bondSize\",\"type\":\"uint128\"}],\"name\":\"IFEBondUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"bondSize\",\"type\":\"uint128\"}],\"name\":\"PiggybackBondUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"initiator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"}],\"name\":\"InFlightExitStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"exitTarget\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"inputIndex\",\"type\":\"uint16\"}],\"name\":\"InFlightExitInputPiggybacked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint160\",\"name\":\"exitId\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"InFlightExitOmitted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"InFlightBondReturnFailed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint160\",\"name\":\"exitId\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"outputIndex\",\"type\":\"uint16\"}],\"name\":\"InFlightExitOutputWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint160\",\"name\":\"exitId\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"inputIndex\",\"type\":\"uint16\"}],\"name\":\"InFlightExitInputWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"exitTarget\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"outputIndex\",\"type\":\"uint16\"}],\"name\":\"InFlightExitOutputPiggybacked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"challenger\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"challengeTxPosition\",\"type\":\"uint256\"}],\"name\":\"InFlightExitChallenged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"challenger\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"challengeTxPosition\",\"type\":\"uint256\"}],\"name\":\"InFlightExitChallengeResponded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"challenger\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"inputIndex\",\"type\":\"uint16\"}],\"name\":\"InFlightExitInputBlocked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"challenger\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"outputIndex\",\"type\":\"uint16\"}],\"name\":\"InFlightExitOutputBlocked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint160\",\"name\":\"exitId\",\"type\":\"uint160\"}],\"name\":\"InFlightExitDeleted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"bondSize\",\"type\":\"uint128\"}],\"name\":\"StandardExitBondUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint160\",\"name\":\"exitId\",\"type\":\"uint160\"}],\"name\":\"ExitStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"utxoPos\",\"type\":\"uint256\"}],\"name\":\"ExitChallenged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint160\",\"name\":\"exitId\",\"type\":\"uint160\"}],\"name\":\"ExitOmitted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint160\",\"name\":\"exitId\",\"type\":\"uint160\"}],\"name\":\"ExitFinalized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"BondReturnFailed\",\"type\":\"event\"}],\"devdoc\":{\"methods\":{\"challengeInFlightExitInputSpent((bytes,uint16,bytes,uint16,bytes,bytes,uint256,bytes32))\":{\"params\":{\"args\":\"Argument data to challenge (see also struct 'ChallengeInputSpentArgs')\"}},\"challengeInFlightExitNotCanonical((bytes,uint256,bytes,uint16,bytes,uint16,uint256,bytes,bytes))\":{\"params\":{\"args\":\"Input argument data to challenge (see also struct 'ChallengeCanonicityArgs')\"}},\"challengeInFlightExitOutputSpent((bytes,bytes,uint256,bytes,uint16,bytes,bytes32))\":{\"params\":{\"args\":\"Argument data to challenge (see also struct 'ChallengeOutputSpent')\"}},\"constructor\":{\"details\":\"use struct PaymentExitGameArgs to avoid stack too deep compilation error.\"},\"deleteNonPiggybackedInFlightExit(uint160)\":{\"details\":\"Since IFE is enqueued during piggyback, a non-piggybacked IFE means that it will never be processed. This means that the IFE bond will never be returned. see: https://github.com/omisego/plasma-contracts/issues/440\",\"params\":{\"exitId\":\"The exitId of the in-flight exit\"}},\"inFlightExits(uint160[])\":{\"params\":{\"exitIds\":\"The exit IDs of the in-flight exits\"}},\"piggybackInFlightExitOnInput((bytes,uint16))\":{\"params\":{\"args\":\"Input argument data to piggyback (see also struct 'PiggybackInFlightExitOnInputArgs')\"}},\"piggybackInFlightExitOnOutput((bytes,uint16))\":{\"params\":{\"args\":\"Input argument data to piggyback (see also struct 'PiggybackInFlightExitOnOutputArgs')\"}},\"processExit(uint160,uint256,address)\":{\"params\":{\"exitId\":\"The exit ID\",\"token\":\"Token (ERC20 add