From 14f9aaa909b3eb1cba69d8d14a28450bd7fd7538 Mon Sep 17 00:00:00 2001 From: Ignacio Mazzara Date: Tue, 23 Apr 2019 15:24:41 -0300 Subject: [PATCH] feat: update land and estate abi (#61) * feat: update land and estate abi * feat: allow unsecure unlock * feat: update ABIS --- .circleci/config.yml | 1 + src/contracts/artifacts/EstateRegistry.json | 996 +++++++++++--------- src/contracts/artifacts/LANDRegistry.json | 109 +++ test.sh | 3 +- 4 files changed, 657 insertions(+), 452 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0a7efdf..44394ec 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,6 +22,7 @@ jobs: --mine --minerthreads=1 --dev + --allow-insecure-unlock # Specify service dependencies here if necessary # CircleCI maintains a library of pre-built images # documented at https://circleci.com/docs/2.0/circleci-images/ diff --git a/src/contracts/artifacts/EstateRegistry.json b/src/contracts/artifacts/EstateRegistry.json index cae2969..191026c 100644 --- a/src/contracts/artifacts/EstateRegistry.json +++ b/src/contracts/artifacts/EstateRegistry.json @@ -35,25 +35,26 @@ "type": "function" }, { - "constant": false, + "constant": true, "inputs": [ { - "name": "_name", - "type": "string" - }, - { - "name": "_symbol", - "type": "string" + "name": "", + "type": "address" }, { - "name": "_registry", + "name": "", "type": "address" } ], - "name": "initialize", - "outputs": [], + "name": "updateManager", + "outputs": [ + { + "name": "", + "type": "bool" + } + ], "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { @@ -113,49 +114,36 @@ "type": "function" }, { - "constant": false, - "inputs": [ - { - "name": "_operator", - "type": "address" - }, - { - "name": "_from", - "type": "address" - }, - { - "name": "_tokenId", - "type": "uint256" - }, - { - "name": "_data", - "type": "bytes" - } - ], - "name": "onERC721Received", + "constant": true, + "inputs": [], + "name": "totalSupply", "outputs": [ { "name": "", - "type": "bytes4" + "type": "uint256" } ], "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { - "name": "estateId", + "name": "_owner", + "type": "address" + }, + { + "name": "_index", "type": "uint256" } ], - "name": "getFingerprint", + "name": "tokenOfOwnerByIndex", "outputs": [ { - "name": "result", - "type": "bytes32" + "name": "", + "type": "uint256" } ], "payable": false, @@ -164,8 +152,17 @@ }, { "constant": true, - "inputs": [], - "name": "totalSupply", + "inputs": [ + { + "name": "", + "type": "uint256" + }, + { + "name": "", + "type": "uint256" + } + ], + "name": "estateLandIds", "outputs": [ { "name": "", @@ -192,47 +189,40 @@ "type": "uint256" } ], - "name": "transferFrom", + "name": "safeTransferFrom", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { - "constant": false, + "constant": true, "inputs": [ { - "name": "estateId", - "type": "uint256" - }, - { - "name": "landId", + "name": "_tokenId", "type": "uint256" - }, + } + ], + "name": "exists", + "outputs": [ { - "name": "data", - "type": "string" + "name": "", + "type": "bool" } ], - "name": "updateLandData", - "outputs": [], "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ - { - "name": "_owner", - "type": "address" - }, { "name": "_index", "type": "uint256" } ], - "name": "tokenOfOwnerByIndex", + "name": "tokenByIndex", "outputs": [ { "name": "", @@ -247,19 +237,15 @@ "constant": true, "inputs": [ { - "name": "", - "type": "uint256" - }, - { - "name": "", + "name": "_tokenId", "type": "uint256" } ], - "name": "estateLandIds", + "name": "ownerOf", "outputs": [ { "name": "", - "type": "uint256" + "type": "address" } ], "payable": false, @@ -267,102 +253,79 @@ "type": "function" }, { - "constant": false, + "constant": true, "inputs": [ { - "name": "estateId", - "type": "uint256" - }, - { - "name": "landIds", - "type": "uint256[]" - }, - { - "name": "destinatary", + "name": "_owner", "type": "address" } ], - "name": "transferManyLands", - "outputs": [], + "name": "balanceOf", + "outputs": [ + { + "name": "", + "type": "uint256" + } + ], "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { - "constant": false, - "inputs": [ - { - "name": "estateId", - "type": "uint256" - }, - { - "name": "landIds", - "type": "uint256[]" - }, + "constant": true, + "inputs": [], + "name": "registry", + "outputs": [ { - "name": "data", - "type": "string" + "name": "", + "type": "address" } ], - "name": "updateManyLandData", - "outputs": [], "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { - "constant": false, - "inputs": [ - { - "name": "_from", - "type": "address" - }, + "constant": true, + "inputs": [], + "name": "owner", + "outputs": [ { - "name": "_to", + "name": "", "type": "address" - }, - { - "name": "_tokenId", - "type": "uint256" } ], - "name": "safeTransferFrom", - "outputs": [], "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { - "constant": false, - "inputs": [ - { - "name": "_name", - "type": "string" - }, + "constant": true, + "inputs": [], + "name": "symbol", + "outputs": [ { - "name": "_symbol", + "name": "", "type": "string" } ], - "name": "initialize", - "outputs": [], "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { - "name": "_tokenId", + "name": "", "type": "uint256" } ], - "name": "exists", + "name": "updateOperator", "outputs": [ { "name": "", - "type": "bool" + "type": "address" } ], "payable": false, @@ -373,11 +336,15 @@ "constant": true, "inputs": [ { - "name": "_index", + "name": "", + "type": "uint256" + }, + { + "name": "", "type": "uint256" } ], - "name": "tokenByIndex", + "name": "estateLandIndex", "outputs": [ { "name": "", @@ -392,11 +359,15 @@ "constant": false, "inputs": [ { - "name": "_registry", + "name": "_to", "type": "address" + }, + { + "name": "_approved", + "type": "bool" } ], - "name": "setLANDRegistry", + "name": "setApprovalForAll", "outputs": [], "payable": false, "stateMutability": "nonpayable", @@ -406,24 +377,23 @@ "constant": false, "inputs": [ { - "name": "estateId", + "name": "_from", + "type": "address" + }, + { + "name": "_to", + "type": "address" + }, + { + "name": "_tokenId", "type": "uint256" }, { - "name": "metadata", - "type": "string" + "name": "_data", + "type": "bytes" } ], - "name": "updateMetadata", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "ping", + "name": "safeTransferFrom", "outputs": [], "payable": false, "stateMutability": "nonpayable", @@ -433,15 +403,19 @@ "constant": true, "inputs": [ { - "name": "_tokenId", - "type": "uint256" + "name": "contractName", + "type": "string" + }, + { + "name": "migrationId", + "type": "string" } ], - "name": "ownerOf", + "name": "isMigrated", "outputs": [ { "name": "", - "type": "address" + "type": "bool" } ], "payable": false, @@ -452,19 +426,15 @@ "constant": true, "inputs": [ { - "name": "operator", - "type": "address" - }, - { - "name": "estateId", + "name": "_tokenId", "type": "uint256" } ], - "name": "isUpdateAuthorized", + "name": "tokenURI", "outputs": [ { "name": "", - "type": "bool" + "type": "string" } ], "payable": false, @@ -477,13 +447,17 @@ { "name": "_owner", "type": "address" + }, + { + "name": "_operator", + "type": "address" } ], - "name": "balanceOf", + "name": "isApprovedForAll", "outputs": [ { "name": "", - "type": "uint256" + "type": "bool" } ], "payable": false, @@ -494,279 +468,340 @@ "constant": false, "inputs": [ { - "name": "from", - "type": "address" - }, - { - "name": "to", + "name": "newOwner", "type": "address" - }, - { - "name": "estateIds", - "type": "uint256[]" } ], - "name": "safeTransferManyFrom", + "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { - "constant": true, - "inputs": [], - "name": "registry", - "outputs": [ + "anonymous": false, + "inputs": [ { - "name": "", + "indexed": true, + "name": "previousOwner", "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "initialize", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "owner", - "outputs": [ + }, { - "name": "", + "indexed": true, + "name": "newOwner", "type": "address" } ], - "payable": false, - "stateMutability": "view", - "type": "function" + "name": "OwnershipTransferred", + "type": "event" }, { - "constant": true, + "anonymous": false, "inputs": [ { - "name": "estateId", - "type": "uint256" + "indexed": true, + "name": "_from", + "type": "address" }, { - "name": "fingerprint", - "type": "bytes" - } - ], - "name": "verifyFingerprint", - "outputs": [ + "indexed": true, + "name": "_to", + "type": "address" + }, { - "name": "", - "type": "bool" + "indexed": true, + "name": "_tokenId", + "type": "uint256" } ], - "payable": false, - "stateMutability": "view", - "type": "function" + "name": "Transfer", + "type": "event" }, { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [ + "anonymous": false, + "inputs": [ { - "name": "", - "type": "string" + "indexed": true, + "name": "_owner", + "type": "address" + }, + { + "indexed": true, + "name": "_approved", + "type": "address" + }, + { + "indexed": true, + "name": "_tokenId", + "type": "uint256" } ], - "payable": false, - "stateMutability": "view", - "type": "function" + "name": "Approval", + "type": "event" }, { - "constant": true, + "anonymous": false, "inputs": [ { - "name": "", - "type": "uint256" - } - ], - "name": "updateOperator", - "outputs": [ + "indexed": true, + "name": "_owner", + "type": "address" + }, { - "name": "", + "indexed": true, + "name": "_operator", "type": "address" + }, + { + "indexed": false, + "name": "_approved", + "type": "bool" } ], - "payable": false, - "stateMutability": "view", - "type": "function" + "name": "ApprovalForAll", + "type": "event" }, { - "constant": true, + "anonymous": false, "inputs": [ { - "name": "", - "type": "uint256" + "indexed": true, + "name": "_owner", + "type": "address" }, { - "name": "", + "indexed": true, + "name": "_estateId", "type": "uint256" - } - ], - "name": "estateLandIndex", - "outputs": [ + }, { - "name": "", - "type": "uint256" + "indexed": false, + "name": "_data", + "type": "string" } ], - "payable": false, - "stateMutability": "view", - "type": "function" + "name": "CreateEstate", + "type": "event" }, { - "constant": false, + "anonymous": false, "inputs": [ { - "name": "_to", - "type": "address" + "indexed": true, + "name": "_estateId", + "type": "uint256" }, { - "name": "_approved", - "type": "bool" + "indexed": true, + "name": "_landId", + "type": "uint256" } ], - "name": "setApprovalForAll", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" + "name": "AddLand", + "type": "event" }, { - "constant": false, + "anonymous": false, "inputs": [ { - "name": "estateId", + "indexed": true, + "name": "_estateId", "type": "uint256" }, { - "name": "landId", + "indexed": true, + "name": "_landId", "type": "uint256" }, { - "name": "destinatary", + "indexed": true, + "name": "_destinatary", "type": "address" } ], - "name": "transferLand", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" + "name": "RemoveLand", + "type": "event" }, { - "constant": true, + "anonymous": false, "inputs": [ { - "name": "estateId", + "indexed": true, + "name": "_assetId", "type": "uint256" - } - ], - "name": "getMetadata", - "outputs": [ + }, { - "name": "", + "indexed": true, + "name": "_holder", + "type": "address" + }, + { + "indexed": true, + "name": "_operator", + "type": "address" + }, + { + "indexed": false, + "name": "_data", "type": "string" } ], - "payable": false, - "stateMutability": "view", - "type": "function" + "name": "Update", + "type": "event" }, { - "constant": false, + "anonymous": false, "inputs": [ { - "name": "estateId", + "indexed": true, + "name": "_estateId", "type": "uint256" }, { - "name": "operator", + "indexed": true, + "name": "_operator", "type": "address" } ], - "name": "setUpdateOperator", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" + "name": "UpdateOperator", + "type": "event" }, { - "constant": false, + "anonymous": false, "inputs": [ { - "name": "_from", + "indexed": true, + "name": "_owner", "type": "address" }, { - "name": "_to", + "indexed": true, + "name": "_operator", "type": "address" }, { - "name": "_tokenId", - "type": "uint256" + "indexed": true, + "name": "_caller", + "type": "address" }, { - "name": "_data", - "type": "bytes" + "indexed": false, + "name": "_approved", + "type": "bool" + } + ], + "name": "UpdateManager", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "_registry", + "type": "address" + } + ], + "name": "SetLANDRegistry", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "name": "contractName", + "type": "string" + }, + { + "indexed": false, + "name": "migrationId", + "type": "string" + } + ], + "name": "Migrated", + "type": "event" + }, + { + "constant": false, + "inputs": [ + { + "name": "to", + "type": "address" + }, + { + "name": "metadata", + "type": "string" + } + ], + "name": "mint", + "outputs": [ + { + "name": "", + "type": "uint256" } ], - "name": "safeTransferFrom", - "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { - "constant": true, + "constant": false, "inputs": [ + { + "name": "estateId", + "type": "uint256" + }, { "name": "landId", "type": "uint256" + }, + { + "name": "destinatary", + "type": "address" } ], - "name": "getLandEstateId", - "outputs": [ + "name": "transferLand", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ { - "name": "", + "name": "estateId", "type": "uint256" + }, + { + "name": "landIds", + "type": "uint256[]" + }, + { + "name": "destinatary", + "type": "address" } ], + "name": "transferManyLands", + "outputs": [], "payable": false, - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { - "name": "contractName", - "type": "string" - }, - { - "name": "migrationId", - "type": "string" + "name": "landId", + "type": "uint256" } ], - "name": "isMigrated", + "name": "getLandEstateId", "outputs": [ { "name": "", - "type": "bool" + "type": "uint256" } ], "payable": false, @@ -777,11 +812,20 @@ "constant": false, "inputs": [ { - "name": "_sender", + "name": "_registry", "type": "address" } ], - "name": "initialize", + "name": "setLANDRegistry", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [], + "name": "ping", "outputs": [], "payable": false, "stateMutability": "nonpayable", @@ -791,15 +835,15 @@ "constant": true, "inputs": [ { - "name": "_tokenId", + "name": "estateId", "type": "uint256" } ], - "name": "tokenURI", + "name": "getEstateSize", "outputs": [ { "name": "", - "type": "string" + "type": "uint256" } ], "payable": false, @@ -810,53 +854,64 @@ "constant": false, "inputs": [ { - "name": "to", - "type": "address" + "name": "estateId", + "type": "uint256" }, { "name": "metadata", "type": "string" } ], - "name": "mint", + "name": "updateMetadata", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "name": "estateId", + "type": "uint256" + } + ], + "name": "getMetadata", "outputs": [ { "name": "", - "type": "uint256" + "type": "string" } ], "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { - "constant": false, + "constant": true, "inputs": [ { - "name": "from", - "type": "address" - }, - { - "name": "to", + "name": "operator", "type": "address" }, { - "name": "estateIds", - "type": "uint256[]" - }, + "name": "estateId", + "type": "uint256" + } + ], + "name": "isUpdateAuthorized", + "outputs": [ { - "name": "data", - "type": "bytes" + "name": "", + "type": "bool" } ], - "name": "safeTransferManyFrom", - "outputs": [], "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { - "constant": true, + "constant": false, "inputs": [ { "name": "_owner", @@ -865,268 +920,307 @@ { "name": "_operator", "type": "address" - } - ], - "name": "isApprovedForAll", - "outputs": [ + }, { - "name": "", + "name": "_approved", "type": "bool" } ], + "name": "setUpdateManager", + "outputs": [], "payable": false, - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { - "name": "newOwner", + "name": "estateId", + "type": "uint256" + }, + { + "name": "operator", "type": "address" } ], - "name": "transferOwnership", + "name": "setUpdateOperator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { - "constant": true, + "constant": false, "inputs": [ { "name": "estateId", "type": "uint256" - } - ], - "name": "getEstateSize", - "outputs": [ + }, { - "name": "", + "name": "landId", "type": "uint256" + }, + { + "name": "operator", + "type": "address" } ], + "name": "setLandUpdateOperator", + "outputs": [], "payable": false, - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ { - "indexed": true, - "name": "previousOwner", - "type": "address" + "name": "_name", + "type": "string" }, { - "indexed": true, - "name": "newOwner", - "type": "address" + "name": "_symbol", + "type": "string" } ], - "name": "OwnershipTransferred", - "type": "event" + "name": "initialize", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, + "constant": false, + "inputs": [], + "name": "initialize", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, "inputs": [ { - "indexed": true, - "name": "_from", - "type": "address" + "name": "_name", + "type": "string" }, { - "indexed": true, - "name": "_to", - "type": "address" + "name": "_symbol", + "type": "string" }, { - "indexed": true, - "name": "_tokenId", - "type": "uint256" + "name": "_registry", + "type": "address" } ], - "name": "Transfer", - "type": "event" + "name": "initialize", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ { - "indexed": true, - "name": "_owner", - "type": "address" - }, - { - "indexed": true, - "name": "_approved", + "name": "_sender", "type": "address" - }, - { - "indexed": true, - "name": "_tokenId", - "type": "uint256" } ], - "name": "Approval", - "type": "event" + "name": "initialize", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ { - "indexed": true, - "name": "_owner", + "name": "_operator", "type": "address" }, { - "indexed": true, - "name": "_operator", + "name": "_from", "type": "address" }, { - "indexed": false, - "name": "_approved", - "type": "bool" + "name": "_tokenId", + "type": "uint256" + }, + { + "name": "_data", + "type": "bytes" } ], - "name": "ApprovalForAll", - "type": "event" + "name": "onERC721Received", + "outputs": [ + { + "name": "", + "type": "bytes4" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, + "constant": true, "inputs": [ { - "indexed": true, - "name": "_owner", - "type": "address" - }, - { - "indexed": true, - "name": "_estateId", + "name": "estateId", "type": "uint256" - }, + } + ], + "name": "getFingerprint", + "outputs": [ { - "indexed": false, - "name": "_data", - "type": "string" + "name": "result", + "type": "bytes32" } ], - "name": "CreateEstate", - "type": "event" + "payable": false, + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, + "constant": true, "inputs": [ { - "indexed": true, - "name": "_estateId", + "name": "estateId", "type": "uint256" }, { - "indexed": true, - "name": "_landId", - "type": "uint256" + "name": "fingerprint", + "type": "bytes" } ], - "name": "AddLand", - "type": "event" + "name": "verifyFingerprint", + "outputs": [ + { + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ { - "indexed": true, - "name": "_estateId", - "type": "uint256" + "name": "from", + "type": "address" }, { - "indexed": true, - "name": "_landId", - "type": "uint256" + "name": "to", + "type": "address" }, { - "indexed": true, - "name": "_destinatary", - "type": "address" + "name": "estateIds", + "type": "uint256[]" } ], - "name": "RemoveLand", - "type": "event" + "name": "safeTransferManyFrom", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ { - "indexed": true, - "name": "_assetId", - "type": "uint256" + "name": "from", + "type": "address" }, { - "indexed": true, - "name": "_holder", + "name": "to", "type": "address" }, { - "indexed": true, - "name": "_operator", - "type": "address" + "name": "estateIds", + "type": "uint256[]" }, { - "indexed": false, - "name": "_data", - "type": "string" + "name": "data", + "type": "bytes" } ], - "name": "Update", - "type": "event" + "name": "safeTransferManyFrom", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ { - "indexed": true, - "name": "_estateId", + "name": "estateId", "type": "uint256" }, { - "indexed": true, - "name": "_operator", - "type": "address" + "name": "landId", + "type": "uint256" + }, + { + "name": "data", + "type": "string" } ], - "name": "UpdateOperator", - "type": "event" + "name": "updateLandData", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ { - "indexed": true, - "name": "_registry", - "type": "address" + "name": "estateId", + "type": "uint256" + }, + { + "name": "landIds", + "type": "uint256[]" + }, + { + "name": "data", + "type": "string" } ], - "name": "SetLANDRegistry", - "type": "event" + "name": "updateManyLandData", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ { - "indexed": false, - "name": "contractName", - "type": "string" + "name": "_from", + "type": "address" }, { - "indexed": false, - "name": "migrationId", - "type": "string" + "name": "_to", + "type": "address" + }, + { + "name": "_tokenId", + "type": "uint256" } ], - "name": "Migrated", - "type": "event" + "name": "transferFrom", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" } ] } \ No newline at end of file diff --git a/src/contracts/artifacts/LANDRegistry.json b/src/contracts/artifacts/LANDRegistry.json index 93822ed..04cbe14 100644 --- a/src/contracts/artifacts/LANDRegistry.json +++ b/src/contracts/artifacts/LANDRegistry.json @@ -48,6 +48,29 @@ "stateMutability": "view", "type": "function" }, + { + "constant": true, + "inputs": [ + { + "name": "", + "type": "address" + }, + { + "name": "", + "type": "address" + } + ], + "name": "updateManager", + "outputs": [ + { + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, { "constant": true, "inputs": [ @@ -535,6 +558,33 @@ "name": "UpdateOperator", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "_owner", + "type": "address" + }, + { + "indexed": true, + "name": "_operator", + "type": "address" + }, + { + "indexed": true, + "name": "_caller", + "type": "address" + }, + { + "indexed": false, + "name": "_approved", + "type": "bool" + } + ], + "name": "UpdateManager", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -569,6 +619,43 @@ "name": "DeployForbidden", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "from", + "type": "address" + }, + { + "indexed": true, + "name": "to", + "type": "address" + }, + { + "indexed": true, + "name": "assetId", + "type": "uint256" + }, + { + "indexed": false, + "name": "operator", + "type": "address" + }, + { + "indexed": false, + "name": "userData", + "type": "bytes" + }, + { + "indexed": false, + "name": "operatorData", + "type": "bytes" + } + ], + "name": "Transfer", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -1143,6 +1230,28 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "constant": false, + "inputs": [ + { + "name": "_owner", + "type": "address" + }, + { + "name": "_operator", + "type": "address" + }, + { + "name": "_approved", + "type": "bool" + } + ], + "name": "setUpdateManager", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, { "constant": false, "inputs": [ diff --git a/test.sh b/test.sh index 06091f4..5cbfac1 100755 --- a/test.sh +++ b/test.sh @@ -17,7 +17,8 @@ docker run \ --rpc --rpcaddr 0.0.0.0 --rpcapi admin,debug,eth,miner,net,personal,shh,txpool,web3 \ --ws --wsaddr 0.0.0.0 --wsapi admin,debug,eth,miner,net,personal,shh,txpool,web3 --wsorigins \* \ --mine --minerthreads=1 \ - --dev + --dev \ + --allow-insecure-unlock # run the tests npm run test