@evolutionland/evolution-js
Version:
evolution evolution-js evolutionland evolution-js-sdk evolution-land metaverse
926 lines (925 loc) • 28.8 kB
JSON
[
{
"constant": false,
"inputs": [
{ "name": "_itemToken", "type": "address" },
{ "name": "_tokenId", "type": "uint256" },
{ "name": "_index", "type": "uint256" }
],
"name": "devestAndClaim",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "_interfaceId", "type": "bytes4" }],
"name": "supportsInterface",
"outputs": [{ "name": "", "type": "bool" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "_landId", "type": "uint256" },
{ "name": "_resource", "type": "address" }
],
"name": "getBarsMiningStrength",
"outputs": [{ "name": "barsMiningStrength", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "resourceReleaseStartTime",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_apostleTokenId", "type": "uint256" }],
"name": "updateMinerStrengthWhenStop",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "_tokenId", "type": "uint256" },
{ "name": "_index", "type": "uint256" }
],
"name": "getBarItem",
"outputs": [
{ "name": "", "type": "address" },
{ "name": "", "type": "uint256" },
{ "name": "", "type": "address" }
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{ "name": "_itemToken", "type": "address" },
{ "name": "_itemId", "type": "uint256" }
],
"name": "claimItemResource",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "owner_", "type": "address" }],
"name": "setOwner",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "InterfaceId_ERC165",
"outputs": [{ "name": "", "type": "bytes4" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "CONTRACT_WATER_ERC20_TOKEN",
"outputs": [{ "name": "", "type": "bytes32" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "CONTRACT_GOLD_ERC20_TOKEN",
"outputs": [{ "name": "", "type": "bytes32" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "RATE_PRECISION",
"outputs": [{ "name": "", "type": "uint128" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "TOTAL_SECONDS",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "_resource", "type": "address" },
{ "name": "_tokenId", "type": "uint256" }
],
"name": "enhanceStrengthRateOf",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_landTokenIds", "type": "uint256[]" }],
"name": "batchClaimLandResource",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_tokenId", "type": "uint256" }],
"name": "stopMining",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "_apostleTokenId", "type": "uint256" }],
"name": "landWorkingOn",
"outputs": [{ "name": "landId", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{ "name": "_tokenId", "type": "uint256" },
{ "name": "_index", "type": "uint256" }
],
"name": "divest",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "_landId", "type": "uint256" },
{ "name": "_resources", "type": "address[]" }
],
"name": "availableLandResources",
"outputs": [{ "name": "", "type": "uint256[]" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_landTokenId", "type": "uint256" }],
"name": "mine",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_maxAmount", "type": "uint256" }],
"name": "setMaxAmount",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{ "name": "_itemTokens", "type": "address[]" },
{ "name": "_itemIds", "type": "uint256[]" }
],
"name": "batchClaimItemResource",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "_landId", "type": "uint256" },
{ "name": "_resource", "type": "address" }
],
"name": "getLandMinedBalance",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "_item", "type": "address" },
{ "name": "_itemId", "type": "uint256" }
],
"name": "getLandIdByItem",
"outputs": [
{ "name": "", "type": "address" },
{ "name": "", "type": "uint256" }
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{ "name": "_tokenId", "type": "uint256" },
{ "name": "_landTokenId", "type": "uint256" },
{ "name": "_resource", "type": "address" }
],
"name": "startMining",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "CONTRACT_WOOD_ERC20_TOKEN",
"outputs": [{ "name": "", "type": "bytes32" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "maxAmount",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "CONTRACT_FIRE_ERC20_TOKEN",
"outputs": [{ "name": "", "type": "bytes32" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_tokenId", "type": "uint256" }],
"name": "activityStopped",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "", "type": "uint256" }],
"name": "miner2Index",
"outputs": [
{ "name": "landTokenId", "type": "uint256" },
{ "name": "resource", "type": "address" },
{ "name": "indexInResource", "type": "uint64" }
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "_landId", "type": "uint256" },
{ "name": "_resource", "type": "address" }
],
"name": "getTotalMiningStrength",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "CONTRACT_LAND_BASE",
"outputs": [{ "name": "", "type": "bytes32" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "", "type": "uint256" },
{ "name": "", "type": "uint256" }
],
"name": "landId2Bars",
"outputs": [
{ "name": "staker", "type": "address" },
{ "name": "token", "type": "address" },
{ "name": "id", "type": "uint256" },
{ "name": "resource", "type": "address" }
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "_landId", "type": "uint256" },
{ "name": "_resource", "type": "address" },
{ "name": "_index", "type": "uint256" }
],
"name": "getBarMiningStrength",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "authority_", "type": "address" }],
"name": "setAuthority",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "registry",
"outputs": [{ "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "FURNACE_ITEM_MINE_FEE",
"outputs": [{ "name": "", "type": "bytes32" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "_landId", "type": "uint256" },
{ "name": "_resource", "type": "address" },
{ "name": "_index", "type": "uint256" }
],
"name": "getMinerOnLand",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "CONTRACT_INTERSTELLAR_ENCODER",
"outputs": [{ "name": "", "type": "bytes32" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "attenPerDay",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "CONTRACT_SOIL_ERC20_TOKEN",
"outputs": [{ "name": "", "type": "bytes32" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "", "type": "address" },
{ "name": "", "type": "uint256" }
],
"name": "protectPeriod",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{ "name": "_tokenId", "type": "uint256" },
{ "name": "_resource", "type": "address" },
{ "name": "_index", "type": "uint256" },
{ "name": "_token", "type": "address" },
{ "name": "_id", "type": "uint256" }
],
"name": "equip",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "_tokenId", "type": "uint256" },
{ "name": "_resource", "type": "address" },
{ "name": "_currentTime", "type": "uint256" },
{ "name": "_lastUpdateTime", "type": "uint256" }
],
"name": "_getMinableBalance",
"outputs": [{ "name": "minableBalance", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_apostleTokenId", "type": "uint256" }],
"name": "updateMinerStrengthWhenStart",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [{ "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "DENOMINATOR",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "_resource", "type": "address" },
{ "name": "_tokenId", "type": "uint256" },
{ "name": "_index", "type": "uint256" }
],
"name": "enhanceStrengthRateByIndex",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{ "name": "_registry", "type": "address" },
{ "name": "_resourceReleaseStartTime", "type": "uint256" }
],
"name": "initializeContract",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "CONTRACT_OBJECT_OWNERSHIP",
"outputs": [{ "name": "", "type": "bytes32" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "", "type": "uint256" }],
"name": "land2ResourceMineState",
"outputs": [
{ "name": "lastUpdateSpeedInSeconds", "type": "uint256" },
{ "name": "lastDestoryAttenInSeconds", "type": "uint256" },
{ "name": "industryIndex", "type": "uint256" },
{ "name": "lastUpdateTime", "type": "uint128" },
{ "name": "totalMiners", "type": "uint64" },
{ "name": "maxMiners", "type": "uint64" }
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "CONTRACT_TOKEN_USE",
"outputs": [{ "name": "", "type": "bytes32" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "_landId", "type": "uint256" },
{ "name": "_resource", "type": "address" }
],
"name": "getBarsRate",
"outputs": [{ "name": "barsRate", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_maxMiners", "type": "uint256" }],
"name": "setMaxMiners",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "CONTRACT_METADATA_TELLER",
"outputs": [{ "name": "", "type": "bytes32" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "authority",
"outputs": [{ "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{ "name": "_tokenIds", "type": "uint256[]" },
{ "name": "_landTokenIds", "type": "uint256[]" },
{ "name": "_resources", "type": "address[]" }
],
"name": "batchStartMining",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "_itemToken", "type": "address" },
{ "name": "_itemId", "type": "uint256" },
{ "name": "_resources", "type": "address[]" }
],
"name": "availableItemResources",
"outputs": [{ "name": "", "type": "uint256[]" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "", "type": "address" },
{ "name": "", "type": "uint256" }
],
"name": "itemId2Status",
"outputs": [
{ "name": "staker", "type": "address" },
{ "name": "tokenId", "type": "uint256" },
{ "name": "index", "type": "uint256" }
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "UINT_ITEMBAR_PROTECT_PERIOD",
"outputs": [{ "name": "", "type": "bytes32" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "_itemToken", "type": "address" },
{ "name": "_itemId", "type": "uint256" },
{ "name": "_resource", "type": "address" }
],
"name": "getItemMinedBalance",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "", "type": "uint256" },
{ "name": "", "type": "address" },
{ "name": "", "type": "uint256" }
],
"name": "land2BarRate",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "maxMiners",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "_landId", "type": "uint256" },
{ "name": "_resource", "type": "address" },
{ "name": "_index", "type": "uint256" }
],
"name": "getBarRate",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "_landId", "type": "uint256" },
{ "name": "_resource", "type": "address" }
],
"name": "getLandMiningStrength",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "_tokenId", "type": "uint256" },
{ "name": "_resource", "type": "address" },
{ "name": "_time", "type": "uint256" }
],
"name": "getReleaseSpeed",
"outputs": [{ "name": "currentSpeed", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "recoverAttenPerDay",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_landId", "type": "uint256" }],
"name": "claimLandResource",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "_token", "type": "address" },
{ "name": "_id", "type": "uint256" }
],
"name": "isNotProtect",
"outputs": [{ "name": "", "type": "bool" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "name": "", "type": "address" },
{ "name": "", "type": "uint256" },
{ "name": "", "type": "address" }
],
"name": "itemMinedBalance",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"anonymous": false,
"inputs": [
{ "indexed": false, "name": "minerTokenId", "type": "uint256" },
{ "indexed": false, "name": "landId", "type": "uint256" },
{ "indexed": false, "name": "_resource", "type": "address" },
{ "indexed": false, "name": "strength", "type": "uint256" }
],
"name": "StartMining",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": false, "name": "minerTokenId", "type": "uint256" },
{ "indexed": false, "name": "landId", "type": "uint256" },
{ "indexed": false, "name": "_resource", "type": "address" },
{ "indexed": false, "name": "strength", "type": "uint256" }
],
"name": "StopMining",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": false, "name": "owner", "type": "address" },
{ "indexed": false, "name": "landTokenId", "type": "uint256" },
{ "indexed": false, "name": "goldBalance", "type": "uint256" },
{ "indexed": false, "name": "woodBalance", "type": "uint256" },
{ "indexed": false, "name": "waterBalance", "type": "uint256" },
{ "indexed": false, "name": "fireBalance", "type": "uint256" },
{ "indexed": false, "name": "soilBalance", "type": "uint256" }
],
"name": "ResourceClaimed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": false, "name": "apostleTokenId", "type": "uint256" },
{ "indexed": false, "name": "landId", "type": "uint256" },
{ "indexed": false, "name": "strength", "type": "uint256" }
],
"name": "UpdateMiningStrengthWhenStop",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": false, "name": "apostleTokenId", "type": "uint256" },
{ "indexed": false, "name": "landId", "type": "uint256" },
{ "indexed": false, "name": "strength", "type": "uint256" }
],
"name": "UpdateMiningStrengthWhenStart",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": false, "name": "barIndex", "type": "uint256" },
{ "indexed": false, "name": "landId", "type": "uint256" },
{ "indexed": false, "name": "resource", "type": "address" },
{ "indexed": false, "name": "rate", "type": "uint256" }
],
"name": "StartBarMining",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": false, "name": "barIndex", "type": "uint256" },
{ "indexed": false, "name": "landId", "type": "uint256" },
{ "indexed": false, "name": "rate", "type": "address" }
],
"name": "StopBarMining",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": false, "name": "owner", "type": "address" },
{ "indexed": false, "name": "landId", "type": "uint256" },
{ "indexed": false, "name": "goldBalance", "type": "uint256" },
{ "indexed": false, "name": "woodBalance", "type": "uint256" },
{ "indexed": false, "name": "waterBalance", "type": "uint256" },
{ "indexed": false, "name": "fireBalance", "type": "uint256" },
{ "indexed": false, "name": "soilBalance", "type": "uint256" }
],
"name": "LandResourceClaimed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": false, "name": "owner", "type": "address" },
{ "indexed": false, "name": "itemToken", "type": "address" },
{ "indexed": false, "name": "itemTokenId", "type": "uint256" },
{ "indexed": false, "name": "goldBalance", "type": "uint256" },
{ "indexed": false, "name": "woodBalance", "type": "uint256" },
{ "indexed": false, "name": "waterBalance", "type": "uint256" },
{ "indexed": false, "name": "fireBalance", "type": "uint256" },
{ "indexed": false, "name": "soilBalance", "type": "uint256" }
],
"name": "ItemResourceClaimed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "tokenId", "type": "uint256" },
{ "indexed": false, "name": "resource", "type": "address" },
{ "indexed": false, "name": "index", "type": "uint256" },
{ "indexed": false, "name": "staker", "type": "address" },
{ "indexed": false, "name": "token", "type": "address" },
{ "indexed": false, "name": "id", "type": "uint256" }
],
"name": "Equip",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "tokenId", "type": "uint256" },
{ "indexed": false, "name": "resource", "type": "address" },
{ "indexed": false, "name": "index", "type": "uint256" },
{ "indexed": false, "name": "staker", "type": "address" },
{ "indexed": false, "name": "token", "type": "address" },
{ "indexed": false, "name": "id", "type": "uint256" }
],
"name": "Divest",
"type": "event"
},
{
"anonymous": false,
"inputs": [{ "indexed": false, "name": "maxAmount", "type": "uint256" }],
"name": "SetMaxLandBar",
"type": "event"
},
{
"anonymous": false,
"inputs": [{ "indexed": false, "name": "maxMiners", "type": "uint256" }],
"name": "SetMaxMiner",
"type": "event"
},
{
"anonymous": false,
"inputs": [{ "indexed": true, "name": "authority", "type": "address" }],
"name": "LogSetAuthority",
"type": "event"
},
{
"anonymous": false,
"inputs": [{ "indexed": true, "name": "owner", "type": "address" }],
"name": "LogSetOwner",
"type": "event"
}
]