diff --git a/src/contracts/artifacts/MortgageHelper.json b/src/contracts/artifacts/MortgageHelper.json index 7cfec2d..f5ee910 100644 --- a/src/contracts/artifacts/MortgageHelper.json +++ b/src/contracts/artifacts/MortgageHelper.json @@ -1,6 +1,33 @@ { "contractName": "MortgageHelper", "abi": [ + { + "constant": false, + "inputs": [{ "name": "_engine", "type": "address" }], + "name": "setEngine", + "outputs": [{ "name": "", "type": "bool" }], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [{ "name": "_requiredTotal", "type": "uint256" }], + "name": "setRequiredTotal", + "outputs": [{ "name": "", "type": "bool" }], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [{ "name": "_to", "type": "address" }], + "name": "setOwner", + "outputs": [{ "name": "", "type": "bool" }], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, { "constant": true, "inputs": [], @@ -19,6 +46,24 @@ "stateMutability": "view", "type": "function" }, + { + "constant": true, + "inputs": [], + "name": "maxSpend", + "outputs": [{ "name": "", "type": "uint256" }], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": false, + "inputs": [{ "name": "_manaOracle", "type": "address" }], + "name": "setManaOracle", + "outputs": [{ "name": "", "type": "bool" }], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, { "constant": false, "inputs": [ @@ -32,6 +77,15 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "constant": false, + "inputs": [{ "name": "_maxSpend", "type": "uint256" }], + "name": "setMaxSpend", + "outputs": [{ "name": "", "type": "bool" }], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, { "constant": true, "inputs": [], @@ -113,15 +167,6 @@ "stateMutability": "view", "type": "function" }, - { - "constant": false, - "inputs": [{ "name": "_to", "type": "address" }], - "name": "transferTo", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, { "constant": true, "inputs": [], @@ -156,6 +201,15 @@ "stateMutability": "view", "type": "function" }, + { + "constant": false, + "inputs": [{ "name": "_mortgageManager", "type": "address" }], + "name": "setMortgageManager", + "outputs": [{ "name": "", "type": "bool" }], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, { "constant": true, "inputs": [], @@ -183,6 +237,15 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "constant": false, + "inputs": [{ "name": "_landMarket", "type": "address" }], + "name": "setLandMarket", + "outputs": [{ "name": "", "type": "bool" }], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, { "constant": false, "inputs": [{ "name": "_marginSpend", "type": "uint256" }], @@ -196,8 +259,6 @@ "inputs": [ { "name": "_mortgageManager", "type": "address" }, { "name": "_nanoLoanEngine", "type": "address" }, - { "name": "_rcn", "type": "address" }, - { "name": "_mana", "type": "address" }, { "name": "_landMarket", "type": "address" }, { "name": "_manaOracle", "type": "address" }, { "name": "_tokenConverter", "type": "address" }, @@ -217,6 +278,100 @@ ], "name": "NewMortgage", "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": false, "name": "engine", "type": "address" }, + { "indexed": false, "name": "loanId", "type": "uint256" }, + { "indexed": false, "name": "amount", "type": "uint256" } + ], + "name": "PaidLoan", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": false, "name": "_prev", "type": "uint256" }, + { "indexed": false, "name": "_new", "type": "uint256" } + ], + "name": "SetRebuyThreshold", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": false, "name": "_prev", "type": "uint256" }, + { "indexed": false, "name": "_new", "type": "uint256" } + ], + "name": "SetMarginSpend", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": false, "name": "_prev", "type": "uint256" }, + { "indexed": false, "name": "_new", "type": "uint256" } + ], + "name": "SetMaxSpend", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": false, "name": "_prev", "type": "uint256" }, + { "indexed": false, "name": "_new", "type": "uint256" } + ], + "name": "SetRequiredTotal", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": false, "name": "_prev", "type": "address" }, + { "indexed": false, "name": "_new", "type": "address" } + ], + "name": "SetTokenConverter", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": false, "name": "_prev", "type": "address" }, + { "indexed": false, "name": "_new", "type": "address" } + ], + "name": "SetConverterRamp", + "type": "event" + }, + { + "anonymous": false, + "inputs": [{ "indexed": false, "name": "_manaOracle", "type": "address" }], + "name": "SetManaOracle", + "type": "event" + }, + { + "anonymous": false, + "inputs": [{ "indexed": false, "name": "_engine", "type": "address" }], + "name": "SetEngine", + "type": "event" + }, + { + "anonymous": false, + "inputs": [{ "indexed": false, "name": "_landMarket", "type": "address" }], + "name": "SetLandMarket", + "type": "event" + }, + { + "anonymous": false, + "inputs": [{ "indexed": false, "name": "_mortgageManager", "type": "address" }], + "name": "SetMortgageManager", + "type": "event" + }, + { + "anonymous": false, + "inputs": [{ "indexed": false, "name": "_owner", "type": "address" }], + "name": "SetOwner", + "type": "event" } ] } diff --git a/src/contracts/artifacts/MortgageManager.json b/src/contracts/artifacts/MortgageManager.json index 35653ee..efdc9cf 100644 --- a/src/contracts/artifacts/MortgageManager.json +++ b/src/contracts/artifacts/MortgageManager.json @@ -3,33 +3,18 @@ "abi": [ { "constant": true, - "inputs": [ - { - "name": "", - "type": "uint256" - } - ], - "name": "mortgageByLandId", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], + "inputs": [{ "name": "id", "type": "uint256" }], + "name": "getData", + "outputs": [{ "name": "o", "type": "bytes" }], "payable": false, - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { "constant": true, - "inputs": [], - "name": "rcn", - "outputs": [ - { - "name": "", - "type": "address" - } - ], + "inputs": [{ "name": "_interfaceID", "type": "bytes4" }], + "name": "supportsInterface", + "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" @@ -37,151 +22,65 @@ { "constant": true, "inputs": [], - "name": "REQUIRED_ALLOWANCE", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], + "name": "name", + "outputs": [{ "name": "_name", "type": "string" }], "payable": false, - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { - "constant": true, - "inputs": [ - { - "name": "", - "type": "address" - }, - { - "name": "", - "type": "uint256" - } - ], - "name": "loanToLiability", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], + "constant": false, + "inputs": [{ "name": "operator", "type": "address" }, { "name": "assetId", "type": "uint256" }], + "name": "approve", + "outputs": [], "payable": false, - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { - "constant": true, - "inputs": [], - "name": "totalMortgages", - "outputs": [ - { - "name": "", - "type": "uint256" - } + "constant": false, + "inputs": [ + { "name": "engine", "type": "address" }, + { "name": "loanIdentifier", "type": "bytes32" }, + { "name": "deposit", "type": "uint256" }, + { "name": "landMarket", "type": "address" }, + { "name": "landId", "type": "uint256" }, + { "name": "tokenConverter", "type": "address" } ], + "name": "requestMortgage", + "outputs": [{ "name": "id", "type": "uint256" }], "payable": false, - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { "constant": false, - "inputs": [ - { - "name": "token", - "type": "address" - }, - { - "name": "to", - "type": "address" - }, - { - "name": "amountOrId", - "type": "uint256" - } - ], - "name": "withdrawTokens", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], + "inputs": [{ "name": "_to", "type": "address" }], + "name": "setOwner", + "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { - "constant": true, + "constant": false, "inputs": [ - { - "name": "", - "type": "uint256" - } - ], - "name": "mortgages", - "outputs": [ - { - "name": "owner", - "type": "address" - }, - { - "name": "engine", - "type": "address" - }, - { - "name": "loanId", - "type": "uint256" - }, - { - "name": "deposit", - "type": "uint256" - }, - { - "name": "landId", - "type": "uint256" - }, - { - "name": "landCost", - "type": "uint256" - }, - { - "name": "status", - "type": "uint8" - }, - { - "name": "approvedTransfer", - "type": "address" - }, - { - "name": "tokenChanger", - "type": "address" - } + { "name": "", "type": "address" }, + { "name": "", "type": "address" }, + { "name": "_tokenId", "type": "uint256" }, + { "name": "", "type": "bytes" } ], + "name": "onERC721Received", + "outputs": [{ "name": "", "type": "bytes4" }], "payable": false, - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { "constant": true, - "inputs": [ - { - "name": "", - "type": "address" - }, - { - "name": "", - "type": "uint256" - } - ], - "name": "lockedERC721", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], + "inputs": [{ "name": "", "type": "uint256" }], + "name": "mortgageByLandId", + "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" @@ -189,13 +88,8 @@ { "constant": true, "inputs": [], - "name": "landMarket", - "outputs": [ - { - "name": "", - "type": "address" - } - ], + "name": "totalSupply", + "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" @@ -203,46 +97,30 @@ { "constant": true, "inputs": [], - "name": "land", - "outputs": [ - { - "name": "", - "type": "address" - } - ], + "name": "rcn", + "outputs": [{ "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": true, - "inputs": [], - "name": "owner", - "outputs": [ - { - "name": "", - "type": "address" - } - ], + "constant": false, + "inputs": [{ "name": "to", "type": "address" }, { "name": "amount", "type": "uint256" }], + "name": "withdrawEth", + "outputs": [{ "name": "", "type": "bool" }], "payable": false, - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ - { - "name": "_to", - "type": "address" - } - ], - "name": "transferTo", - "outputs": [ - { - "name": "", - "type": "bool" - } + { "name": "from", "type": "address" }, + { "name": "to", "type": "address" }, + { "name": "assetId", "type": "uint256" } ], + "name": "transferFrom", + "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" @@ -250,307 +128,189 @@ { "constant": true, "inputs": [], - "name": "mana", - "outputs": [ - { - "name": "", - "type": "address" - } - ], + "name": "REQUIRED_ALLOWANCE", + "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, - "inputs": [], - "name": "MANA_CURRENCY", - "outputs": [ - { - "name": "", - "type": "bytes32" - } - ], + "inputs": [{ "name": "operator", "type": "address" }, { "name": "assetId", "type": "uint256" }], + "name": "isAuthorized", + "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": true, + "constant": false, + "inputs": [{ "name": "engine", "type": "address" }, { "name": "authorized", "type": "bool" }], + "name": "setEngine", + "outputs": [{ "name": "", "type": "bool" }], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, "inputs": [ - { - "name": "", - "type": "address" - } - ], - "name": "lockedERC20", - "outputs": [ - { - "name": "", - "type": "uint256" - } + { "name": "engine", "type": "address" }, + { "name": "landMarket", "type": "address" }, + { "name": "loanId", "type": "uint256" }, + { "name": "deposit", "type": "uint256" }, + { "name": "landId", "type": "uint256" }, + { "name": "tokenConverter", "type": "address" } ], + "name": "requestMortgageId", + "outputs": [{ "name": "id", "type": "uint256" }], "payable": false, - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { "constant": true, - "inputs": [], - "name": "VERSION", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], + "inputs": [{ "name": "", "type": "address" }, { "name": "", "type": "uint256" }], + "name": "loanToLiability", + "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { + "constant": false, "inputs": [ - { - "name": "_rcn", - "type": "address" - }, - { - "name": "_mana", - "type": "address" - }, - { - "name": "_land", - "type": "address" - }, - { - "name": "_landMarket", - "type": "address" - } + { "name": "from", "type": "address" }, + { "name": "to", "type": "address" }, + { "name": "assetId", "type": "uint256" } ], + "name": "safeTransferFrom", + "outputs": [], "payable": false, "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "_id", - "type": "uint256" - }, - { - "indexed": false, - "name": "_borrower", - "type": "address" - }, - { - "indexed": false, - "name": "_engine", - "type": "address" - }, - { - "indexed": false, - "name": "_loanId", - "type": "uint256" - }, - { - "indexed": false, - "name": "_landId", - "type": "uint256" - }, - { - "indexed": false, - "name": "_deposit", - "type": "uint256" - } - ], - "name": "RequestedMortgage", - "type": "event" + "type": "function" }, { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "_id", - "type": "uint256" - } - ], - "name": "StartedMortgage", - "type": "event" + "constant": false, + "inputs": [{ "name": "id", "type": "uint256" }, { "name": "data", "type": "string" }], + "name": "updateLandData", + "outputs": [{ "name": "", "type": "bool" }], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "_id", - "type": "uint256" - } - ], - "name": "CanceledMortgage", - "type": "event" + "constant": true, + "inputs": [{ "name": "engine", "type": "address" }, { "name": "index", "type": "uint256" }], + "name": "isDefaulted", + "outputs": [{ "name": "", "type": "bool" }], + "payable": false, + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, + "constant": true, "inputs": [ - { - "indexed": false, - "name": "_id", - "type": "uint256" - } + { "name": "", "type": "address" }, + { "name": "", "type": "uint256" }, + { "name": "", "type": "bytes" }, + { "name": "", "type": "bytes" } ], - "name": "PaidMortgage", - "type": "event" + "name": "cost", + "outputs": [{ "name": "", "type": "uint256" }], + "payable": false, + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ - { - "indexed": false, - "name": "_id", - "type": "uint256" - } + { "name": "_tokenId", "type": "uint256" }, + { "name": "", "type": "address" }, + { "name": "", "type": "bytes" } ], - "name": "DefaultedMortgage", - "type": "event" + "name": "onERC721Received", + "outputs": [{ "name": "", "type": "bytes4" }], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "boughtMana", - "type": "uint256" - }, - { - "indexed": false, - "name": "propertyCost", - "type": "uint256" - }, - { - "indexed": false, - "name": "totalTokens", - "type": "uint256" - }, - { - "indexed": false, - "name": "rest", - "type": "uint256" - }, - { - "indexed": false, - "name": "balance", - "type": "uint256" - } - ], - "name": "Debug", - "type": "event" + "constant": true, + "inputs": [], + "name": "url", + "outputs": [{ "name": "", "type": "string" }], + "payable": false, + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ - { - "indexed": true, - "name": "_from", - "type": "address" - }, - { - "indexed": true, - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "name": "_tokenId", - "type": "uint256" - } + { "name": "token", "type": "address" }, + { "name": "to", "type": "address" }, + { "name": "amount", "type": "uint256" } ], - "name": "Transfer", - "type": "event" + "name": "withdrawTokens", + "outputs": [{ "name": "", "type": "bool" }], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "_owner", - "type": "address" - }, - { - "indexed": true, - "name": "_approved", - "type": "address" - }, - { - "indexed": false, - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" + "constant": true, + "inputs": [{ "name": "assetId", "type": "uint256" }], + "name": "ownerOf", + "outputs": [{ "name": "", "type": "address" }], + "payable": false, + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ - { - "indexed": true, - "name": "_owner", - "type": "address" - }, - { - "indexed": true, - "name": "_operator", - "type": "address" - }, - { - "indexed": false, - "name": "_approved", - "type": "bool" - } + { "name": "token", "type": "address" }, + { "name": "to", "type": "address" }, + { "name": "id", "type": "uint256" } ], - "name": "ApprovalForAll", - "type": "event" + "name": "withdrawErc721", + "outputs": [{ "name": "", "type": "bool" }], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [ - { - "name": "_name", - "type": "string" - } - ], + "constant": false, + "inputs": [{ "name": "creator", "type": "address" }, { "name": "authorized", "type": "bool" }], + "name": "setCreator", + "outputs": [{ "name": "", "type": "bool" }], "payable": false, - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [ - { - "name": "_symbol", - "type": "string" - } - ], + "inputs": [{ "name": "owner", "type": "address" }], + "name": "balanceOf", + "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, - "inputs": [], - "name": "totalSupply", + "inputs": [{ "name": "", "type": "uint256" }], + "name": "mortgages", "outputs": [ - { - "name": "", - "type": "uint256" - } + { "name": "landMarket", "type": "address" }, + { "name": "owner", "type": "address" }, + { "name": "engine", "type": "address" }, + { "name": "loanId", "type": "uint256" }, + { "name": "deposit", "type": "uint256" }, + { "name": "landId", "type": "uint256" }, + { "name": "landCost", "type": "uint256" }, + { "name": "status", "type": "uint8" }, + { "name": "tokenConverter", "type": "address" } ], "payable": false, "stateMutability": "view", @@ -558,19 +318,9 @@ }, { "constant": true, - "inputs": [ - { - "name": "_owner", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], + "inputs": [], + "name": "land", + "outputs": [{ "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" @@ -578,133 +328,48 @@ { "constant": true, "inputs": [], - "name": "url", - "outputs": [ - { - "name": "", - "type": "string" - } - ], + "name": "owner", + "outputs": [{ "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": true, + "constant": false, "inputs": [ - { - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "tokenMetadata", - "outputs": [ - { - "name": "", - "type": "string" - } + { "name": "engine", "type": "address" }, + { "name": "loanId", "type": "uint256" }, + { "name": "", "type": "bytes" } ], + "name": "claim", + "outputs": [{ "name": "", "type": "bool" }], "payable": false, - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { "constant": true, - "inputs": [ - { - "name": "", - "type": "address" - }, - { - "name": "", - "type": "uint256" - }, - { - "name": "", - "type": "bytes" - }, - { - "name": "", - "type": "bytes" - } - ], - "name": "cost", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], + "inputs": [{ "name": "", "type": "address" }], + "name": "creators", + "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": false, - "inputs": [ - { - "name": "engine", - "type": "address" - }, - { - "name": "loanIdentifier", - "type": "bytes32" - }, - { - "name": "deposit", - "type": "uint256" - }, - { - "name": "landId", - "type": "uint256" - }, - { - "name": "tokenChanger", - "type": "address" - } - ], - "name": "requestMortgage", - "outputs": [ - { - "name": "id", - "type": "uint256" - } - ], + "constant": true, + "inputs": [], + "name": "symbol", + "outputs": [{ "name": "_symbol", "type": "string" }], "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "pure", "type": "function" }, { "constant": false, - "inputs": [ - { - "name": "engine", - "type": "address" - }, - { - "name": "loanId", - "type": "uint256" - }, - { - "name": "deposit", - "type": "uint256" - }, - { - "name": "landId", - "type": "uint256" - }, - { - "name": "tokenChanger", - "type": "address" - } - ], - "name": "requestMortgageId", - "outputs": [ - { - "name": "id", - "type": "uint256" - } - ], + "inputs": [{ "name": "operator", "type": "address" }, { "name": "authorized", "type": "bool" }], + "name": "setApprovalForAll", + "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" @@ -712,18 +377,13 @@ { "constant": false, "inputs": [ - { - "name": "id", - "type": "uint256" - } - ], - "name": "cancelMortgage", - "outputs": [ - { - "name": "", - "type": "bool" - } + { "name": "from", "type": "address" }, + { "name": "to", "type": "address" }, + { "name": "assetId", "type": "uint256" }, + { "name": "userData", "type": "bytes" } ], + "name": "safeTransferFrom", + "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" @@ -731,355 +391,222 @@ { "constant": false, "inputs": [ - { - "name": "engine", - "type": "address" - }, - { - "name": "index", - "type": "uint256" - }, - { - "name": "data", - "type": "bytes" - }, - { - "name": "oracleData", - "type": "bytes" - } + { "name": "engine", "type": "address" }, + { "name": "index", "type": "uint256" }, + { "name": "data", "type": "bytes" }, + { "name": "oracleData", "type": "bytes" } ], "name": "requestCosign", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], + "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { - "constant": false, - "inputs": [ - { - "name": "engine", - "type": "address" - }, - { - "name": "id", - "type": "uint256" - }, - { - "name": "", - "type": "bytes" - } - ], - "name": "claim", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], + "constant": true, + "inputs": [], + "name": "mana", + "outputs": [{ "name": "", "type": "address" }], "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { "constant": true, - "inputs": [ - { - "name": "engine", - "type": "address" - }, - { - "name": "index", - "type": "uint256" - } - ], - "name": "isDefaulted", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], + "inputs": [{ "name": "", "type": "address" }], + "name": "engines", + "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": false, - "inputs": [ - { - "name": "from", - "type": "address" - }, - { - "name": "to", - "type": "address" - }, - { - "name": "id", - "type": "uint256" - } - ], - "name": "transferFrom", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], + "constant": true, + "inputs": [], + "name": "MANA_CURRENCY", + "outputs": [{ "name": "", "type": "bytes32" }], "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { "constant": false, - "inputs": [ - { - "name": "id", - "type": "uint256" - } - ], - "name": "takeOwnership", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], + "inputs": [{ "name": "id", "type": "uint256" }], + "name": "cancelMortgage", + "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { - "constant": false, - "inputs": [ - { - "name": "to", - "type": "address" - }, - { - "name": "id", - "type": "uint256" - } - ], - "name": "transfer", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], + "constant": true, + "inputs": [{ "name": "operator", "type": "address" }, { "name": "assetHolder", "type": "address" }], + "name": "isApprovedForAll", + "outputs": [{ "name": "", "type": "bool" }], "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { - "constant": false, - "inputs": [ - { - "name": "operator", - "type": "address" - }, - { - "name": "id", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], + "constant": true, + "inputs": [{ "name": "assetId", "type": "uint256" }], + "name": "getApprovedAddress", + "outputs": [{ "name": "", "type": "address" }], "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ - { - "name": "operator", - "type": "address" - }, - { - "name": "approved", - "type": "bool" - } - ], - "name": "setApprovalForAll", - "outputs": [ - { - "name": "", - "type": "bool" - } + { "name": "", "type": "address" }, + { "name": "_tokenId", "type": "uint256" }, + { "name": "", "type": "bytes" } ], + "name": "onERC721Received", + "outputs": [{ "name": "", "type": "bytes4" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, - "inputs": [ - { - "name": "id", - "type": "uint256" - } - ], - "name": "getApproved", - "outputs": [ - { - "name": "", - "type": "address" - } - ], + "inputs": [], + "name": "VERSION", + "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": true, "inputs": [ - { - "name": "owner", - "type": "address" - }, - { - "name": "operator", - "type": "address" - } - ], - "name": "isApprovedForAll", - "outputs": [ - { - "name": "", - "type": "bool" - } + { "name": "_rcn", "type": "address" }, + { "name": "_mana", "type": "address" }, + { "name": "_land", "type": "address" } ], "payable": false, - "stateMutability": "view", - "type": "function" + "stateMutability": "nonpayable", + "type": "constructor" }, { - "constant": true, + "anonymous": false, "inputs": [ - { - "name": "id", - "type": "uint256" - } + { "indexed": false, "name": "_id", "type": "uint256" }, + { "indexed": false, "name": "_borrower", "type": "address" }, + { "indexed": false, "name": "_engine", "type": "address" }, + { "indexed": false, "name": "_loanId", "type": "uint256" }, + { "indexed": false, "name": "_landMarket", "type": "address" }, + { "indexed": false, "name": "_landId", "type": "uint256" }, + { "indexed": false, "name": "_deposit", "type": "uint256" }, + { "indexed": false, "name": "_tokenConverter", "type": "address" } ], - "name": "ownerOf", - "outputs": [ - { - "name": "", - "type": "address" - } + "name": "RequestedMortgage", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": false, "name": "_oracle", "type": "address" }, + { "indexed": false, "name": "_currency", "type": "bytes32" }, + { "indexed": false, "name": "_decimals", "type": "uint256" }, + { "indexed": false, "name": "_rate", "type": "uint256" } ], - "payable": false, - "stateMutability": "view", - "type": "function" + "name": "ReadedOracle", + "type": "event" }, { - "constant": false, + "anonymous": false, + "inputs": [{ "indexed": false, "name": "_id", "type": "uint256" }], + "name": "StartedMortgage", + "type": "event" + }, + { + "anonymous": false, "inputs": [ - { - "name": "_from", - "type": "address" - }, - { - "name": "_tokenId", - "type": "uint256" - }, - { - "name": "data", - "type": "bytes" - } + { "indexed": false, "name": "_from", "type": "address" }, + { "indexed": false, "name": "_id", "type": "uint256" } ], - "name": "onERC721Received", - "outputs": [ - { - "name": "", - "type": "bytes4" - } + "name": "CanceledMortgage", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": false, "name": "_from", "type": "address" }, + { "indexed": false, "name": "_id", "type": "uint256" } ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" + "name": "PaidMortgage", + "type": "event" }, { - "constant": false, + "anonymous": false, + "inputs": [{ "indexed": false, "name": "_id", "type": "uint256" }], + "name": "DefaultedMortgage", + "type": "event" + }, + { + "anonymous": false, "inputs": [ - { - "name": "_tokenId", - "type": "uint256" - }, - { - "name": "_from", - "type": "address" - }, - { - "name": "data", - "type": "bytes" - } + { "indexed": false, "name": "_updater", "type": "address" }, + { "indexed": false, "name": "_parcel", "type": "uint256" }, + { "indexed": false, "name": "_data", "type": "string" } ], - "name": "onERC721Received", - "outputs": [ - { - "name": "", - "type": "bytes4" - } + "name": "UpdatedLandData", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": false, "name": "_creator", "type": "address" }, + { "indexed": false, "name": "_status", "type": "bool" } ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" + "name": "SetCreator", + "type": "event" }, { - "constant": true, + "anonymous": false, "inputs": [ - { - "name": "id", - "type": "uint256" - } + { "indexed": false, "name": "_engine", "type": "address" }, + { "indexed": false, "name": "_status", "type": "bool" } ], - "name": "getData", - "outputs": [ - { - "name": "o", - "type": "bytes" - } + "name": "SetEngine", + "type": "event" + }, + { + "anonymous": false, + "inputs": [{ "indexed": false, "name": "_owner", "type": "address" }], + "name": "SetOwner", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": true, "name": "_from", "type": "address" }, + { "indexed": true, "name": "_to", "type": "address" }, + { "indexed": false, "name": "_tokenId", "type": "uint256" } ], - "payable": false, - "stateMutability": "pure", - "type": "function" + "name": "Transfer", + "type": "event" }, { - "constant": false, + "anonymous": false, "inputs": [ - { - "name": "id", - "type": "uint256" - }, - { - "name": "data", - "type": "string" - } + { "indexed": true, "name": "_owner", "type": "address" }, + { "indexed": true, "name": "_approved", "type": "address" }, + { "indexed": false, "name": "_tokenId", "type": "uint256" } ], - "name": "updateLandData", - "outputs": [ - { - "name": "", - "type": "bool" - } + "name": "Approval", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": true, "name": "_owner", "type": "address" }, + { "indexed": true, "name": "_operator", "type": "address" }, + { "indexed": false, "name": "_approved", "type": "bool" } ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" + "name": "ApprovalForAll", + "type": "event" } ] }